1 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3 * linux-low.cc (stopped_pids): Make static.
5 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7 * tdesc.cc (allocate_target_description): Add header comment.
8 (target_desc_deleter::operator()): New function.
9 * tdesc.h (struct target_desc): Declare as final.
11 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
13 * server.cc (handle_query): Use std::vector of
14 std::string for `qsupported` vector. Use separate
16 * target.h (class process_stratum_target) <process_qsupported>:
17 Change parameters to array_view of const char *.
18 (target_process_qsupported): Remove `count` parameter.
19 * target.cc (process_stratum_target::process_qsupported): Change
20 parameters to array_view of const char *.
21 * linux-x86-low.cc (class x86_target) <process_qsupported>:
24 2020-06-29 Tom de Vries <tdevries@suse.de>
26 * ax.h: Include gdbsupport/debug_agent.h.
28 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
30 * tdesc.cc (struct tdesc_compatible_info): New struct.
31 (tdesc_compatible_info_list): New function.
32 (tdesc_compatible_info_arch_name): New function.
34 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36 Use std::list to stop pending signal instead of manually-created
38 * linux-low.h: Include <list>.
39 (struct pending_signal): Move here from linux-low.cc.
40 (struct lwp_info) <pending_signals>
41 <pending_signals_to_report>: Update the type.
42 * linux-low.cc (struct pending_signals): Remove.
43 (linux_process_target::delete_lwp)
44 (linux_process_target::add_lwp)
45 (enqueue_one_deferred_signal)
46 (dequeue_one_deferred_signal)
47 (enqueue_pending_signal)
48 (linux_process_target::resume_one_lwp_throw)
49 (linux_process_target::thread_needs_step_over)
50 (linux_process_target::resume_one_thread)
51 (linux_process_target::proceed_one_lwp): Update the use of pending
54 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
56 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
59 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
61 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
62 * configure.srv: Remove mingw32ce cases.
63 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
64 * win32-low.h (to_back_slashes): Remove.
65 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
67 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
69 * Makefile.in (SFILES): linux-tile-low.cc.
70 * configure.srv: Remove tilegx case.
71 * linux-tile-low.cc: Remove.
73 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
75 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
76 * configure.srv: Remove m32r case.
77 * linux-m32r-low.cc: Remove.
79 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
81 * Makefile.in (SFILES): Remove linux-cris-low.c.
82 * configure.srv: Remove cris cases.
83 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
85 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
87 * Makefile.in (SFILES): Remove linux-bfin-low.c.
88 * configure.srv: Remove bfin case.
89 * linux-bfin-low.cc: Remove.
90 * linux-low.cc: Remove BFIN-conditional code.
92 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
94 * configure: Re-generate.
95 * configure.ac: Remove srv_qnx test.
96 * configure.srv: Remove nto case.
97 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
98 * remote-utils.c: Remove __QNX__-guarded code.
100 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
102 * configure: Re-generate.
103 * configure.ac: Remove srv_lynxos test.
104 * configure.srv: Remove lynxos cases.
105 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
108 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
110 * README: Fix a few outdated or incoherent things.
112 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
114 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
115 (win32_clear_inferiors): Use open_process_used.
116 (get_child_debug_event): Likewise.
118 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
121 * linux-low.cc (linux_process_target::create_inferior),
122 lynx-low.cc (lynx_process_target::create_inferior),
123 win32-low.cc (win32_process_target::create_inferior): Use
124 construct_inferior_arguments instead of stringify_argv
125 to get string representation which properly escapes
127 * server.cc (handle_v_run): Just pass empty program arg
128 as such, since any further processing is now handled via
129 construct_inferior_arguments.
131 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
133 * nto-low.cc (nto_process_target::create_inferior): Pass
134 argv to spawnp function as char **.
136 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
138 * server.cc (captured_main), (handle_v_run): No longer
139 insert extra NULL element to args vector.
141 2020-05-23 Pedro Alves <palves@redhat.com>
143 * gdb-safe-ctype.h: New.
145 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
147 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
148 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
149 (ia64_target::low_breakpoint_at): Ditto.
151 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
153 * win32-i386-low.cc (i386_supports_z_point_type): Handle
154 Z_PACKET_HW_BP z_type.
155 (i386_insert_point): Handle raw_bkpt_type type.
156 (i386_remove_point): Likewise.
158 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
160 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
162 * win32-arm-low.cc (arm_num_regs): New function.
163 (struct win32_target_ops): Use arm_num_regs.
164 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
166 (i386_get_thread_context): Likewise.
167 (i386_prepare_to_resume): Likewise.
168 (i386_thread_added): Likewise.
169 (i386_single_step): Likewise.
170 (i386_fetch_inferior_register): Likewise.
171 (i386_store_inferior_register): Likewise.
172 (i386_arch_setup): Likewise.
173 (i386_win32_num_regs): New function.
174 (struct win32_target_ops): Use i386_win32_num_regs.
175 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
177 (win32_require_context): Likewise.
178 (child_add_thread): Likewise.
179 (do_initial_child_stuff): Likewise.
180 (continue_one_thread): Likewise.
181 (win32_process_target::resume): Likewise.
182 (load_psapi): Likewise.
183 (win32_add_all_dlls): Likewise.
184 (maybe_adjust_pc): Likewise.
185 (win32_process_target::qxfer_siginfo): Likewise.
186 (initialize_low): Likewise.
187 * win32-low.h (struct win32_target_ops): Change num_regs to
190 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
192 * configure.ac: Remove check for fs_base/gs_base in
194 * configure: Re-generate.
195 * config.in: Re-generate.
196 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
197 x86_store_gregset): Adjust.
199 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
201 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
204 2020-04-16 Tom Tromey <tromey@adacore.com>
206 * win32-low.cc (windows_nat::handle_access_violation): New
209 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
211 * win32-low.cc (get_child_debug_event): Fix format string warning.
213 2020-04-13 Tom Tromey <tom@tromey.com>
215 * server.h (gdb_fildes_t): Remove typedef.
216 * remote-utils.c (remote_desc, list_desc): Now int.
217 (INVALID_DESCRIPTOR): Remove.
218 (gdb_connected, remote_close)
219 (check_remote_input_interrupt_request): Update.
220 * utils.h (pfildes): Don't declare.
221 * utils.c (pfildes): Remove.
223 2020-04-13 Tom Tromey <tom@tromey.com>
225 * server.h (handle_serial_event, handle_target_event): Update.
226 * server.c: Don't call initialize_event_loop.
227 (keep_processing_events): New global.
228 (handle_serial_event): Return void. Set keep_processing_events.
229 (handle_target_event): Return void.
230 (start_event_loop): Move from event-loop.c. Rewrite.
231 * remote-utils.c (handle_accept_event): Return void.
232 (reset_readchar): Use delete_timer.
233 (process_remaining): Return void.
234 (reschedule): Use create_timer.
235 * event-loop.h: Remove.
236 * event-loop.cc: Remove.
237 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
239 2020-04-13 Tom Tromey <tom@tromey.com>
241 * server.c (invoke_async_signal_handlers)
242 (check_async_event_handlers, flush_streams, gdb_select): New
245 2020-04-13 Tom Tromey <tom@tromey.com>
247 * configure: Rebuild.
248 * config.in: Rebuild.
250 2020-04-08 Tom Tromey <tromey@adacore.com>
253 * win32-low.c (child_continue): Call matching_pending_stop.
254 (get_child_debug_event): Call fetch_pending_stop. Push pending
257 2020-04-08 Tom Tromey <tromey@adacore.com>
259 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
260 (win32_process_target::supports_stopped_by_sw_breakpoint):
262 * win32-low.c (win32_supports_z_point_type): Always handle
264 (win32_insert_point): Call insert_memory_breakpoint when needed.
265 (win32_remove_point): Call remove_memory_breakpoint when needed.
266 (win32_process_target::stopped_by_sw_breakpoint)
267 (win32_process_target::supports_stopped_by_sw_breakpoint): New
269 (win32_target_ops): Update.
270 (maybe_adjust_pc): New function.
271 (win32_wait): Call maybe_adjust_pc.
273 2020-04-08 Tom Tromey <tromey@adacore.com>
275 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
277 * win32-i386-low.c (the_low_target): Update.
278 * win32-arm-low.c (the_low_target): Update.
280 2020-04-08 Tom Tromey <tromey@adacore.com>
282 * win32-low.h (win32_process_target::read_pc)
283 (win32_process_target::write_pc): Declare.
284 * win32-low.c (win32_process_target::read_pc)
285 (win32_process_target::write_pc): New methods.
286 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
288 (the_low_target): Update.
289 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
291 (the_low_target): Update.
293 2020-04-08 Tom Tromey <tromey@adacore.com>
295 * win32-low.c (win32_kill, get_child_debug_event): Use
296 wait_for_debug_event.
298 2020-04-08 Tom Tromey <tromey@adacore.com>
300 * win32-low.c (child_continue): Call continue_last_debug_event.
302 2020-04-08 Tom Tromey <tromey@adacore.com>
304 * win32-low.c (handle_exception): Remove.
305 (windows_nat::handle_ms_vc_exception): New function.
306 (get_child_debug_event): Add "continue_status" parameter.
308 (win32_wait): Update.
310 2020-04-08 Tom Tromey <tromey@adacore.com>
312 * win32-low.c (windows_nat::handle_load_dll): Rename from
313 handle_load_dll. No longer static.
314 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
317 2020-04-08 Tom Tromey <tromey@adacore.com>
319 * win32-low.c (handle_output_debug_string): Add parameter. Change
321 (win32_kill, get_child_debug_event): Update.
323 2020-04-08 Tom Tromey <tromey@adacore.com>
325 * win32-low.c (current_process_handle, current_process_id)
326 (main_thread_id, last_sig, current_event, siginfo_er): Move to
329 2020-04-08 Tom Tromey <tromey@adacore.com>
331 * win32-low.c (get_image_name): Remove.
332 (handle_load_dll): Update.
334 2020-04-08 Tom Tromey <tromey@adacore.com>
336 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
337 No longer static. Change parameters.
338 (child_add_thread, child_fetch_inferior_registers)
339 (child_store_inferior_registers, win32_resume)
340 (win32_get_tib_address): Update.
342 2020-04-08 Tom Tromey <tromey@adacore.com>
344 * win32-low.h (struct win32_target_ops): Use qualified names where
346 * win32-i386-low.c: Add "using namespace".
347 * win32-low.c: Add "using namespace".
348 * win32-arm-low.c: Add "using namespace".
350 2020-04-08 Tom Tromey <tromey@adacore.com>
352 * win32-low.c (delete_thread_info): Don't call CloseHandle.
354 2020-04-08 Tom Tromey <tromey@adacore.com>
356 * win32-low.c (win32_require_context, suspend_one_thread): Use
357 windows_thread_info::suspend.
358 (continue_one_thread): Use windows_thread_info::resume.
359 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
361 2020-04-08 Tom Tromey <tromey@adacore.com>
363 * win32-i386-low.c (update_debug_registers)
364 (i386_prepare_to_resume, i386_thread_added): Update.
366 2020-04-08 Tom Tromey <tromey@adacore.com>
368 * win32-low.c (child_add_thread): Use new.
369 (delete_thread_info): Use delete.
371 2020-04-08 Tom Tromey <tromey@adacore.com>
373 * win32-low.h (struct windows_thread_info): Remove.
375 2020-04-08 Tom Tromey <tromey@adacore.com>
377 * win32-low.h (struct windows_thread_info): Rename from
378 win32_thread_info. Remove typedef.
379 (struct win32_target_ops, win32_require_context): Update.
380 * win32-low.c (win32_get_thread_context)
381 (win32_set_thread_context, win32_prepare_to_resume)
382 (win32_require_context, thread_rec, child_add_thread)
383 (delete_thread_info, continue_one_thread)
384 (child_fetch_inferior_registers, child_store_inferior_registers)
385 (win32_resume, suspend_one_thread, win32_get_tib_address):
387 * win32-i386-low.c (update_debug_registers)
388 (win32_get_current_dr, i386_get_thread_context)
389 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
390 (i386_fetch_inferior_register, i386_store_inferior_register):
392 * win32-arm-low.c (arm_get_thread_context)
393 (arm_fetch_inferior_register, arm_store_inferior_register):
396 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398 * linux-low.h (struct linux_target_ops): Remove.
399 (the_low_target): Remove.
400 * linux-x86-low.cc (the_low_target): Remove.
401 * linux-aarch64-low.cc (the_low_target): Ditto.
402 * linux-arm-low.cc (the_low_target): Ditto.
403 * linux-bfin-low.cc (the_low_target): Ditto.
404 * linux-cris-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-ia64-low.cc (the_low_target): Ditto.
407 * linux-m32r-low.cc (the_low_target): Ditto.
408 * linux-m68k-low.cc (the_low_target): Ditto.
409 * linux-mips-low.cc (the_low_target): Ditto.
410 * linux-nios2-low.cc (the_low_target): Ditto.
411 * linux-ppc-low.cc (the_low_target): Ditto.
412 * linux-riscv-low.cc (the_low_target): Ditto.
413 * linux-s390-low.cc (the_low_target): Ditto.
414 * linux-sh-low.cc (the_low_target): Ditto.
415 * linux-sparc-low.cc (the_low_target): Ditto.
416 * linux-tic6x-low.cc (the_low_target): Ditto.
417 * linux-tile-low.cc (the_low_target): Ditto.
418 * linux-xtensa-low.cc (the_low_target): Ditto.
420 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
423 linux target define the op by overriding the declaration in
424 process_stratum_target.
426 * linux-low.h (struct linux_target_ops): Remove the op.
427 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
428 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
429 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
430 (x86_get_ipa_tdesc_idx): Turn into...
431 (x86_target::get_ipa_tdesc_idx): ...this.
432 (the_low_target): Remove the op field.
433 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
434 (ppc_get_ipa_tdesc_idx): Turn into...
435 (ppc_target::get_ipa_tdesc_idx): ...this.
436 (the_low_target): Remove the op field.
437 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
438 (s390_get_ipa_tdesc_idx): Turn into...
439 (s390_target::get_ipa_tdesc_idx): ...this.
440 (the_low_target): Remove the op field.
442 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
444 Turn the 'get_syscall_trapinfo' linux target op into a method
445 of process_stratum_target.
447 * linux-low.h (struct linux_target_ops): Remove the op.
448 (class linux_process_target) <get_syscall_trapinfo>
449 <gdb_catch_this_syscall>
450 <low_supports_catch_syscall>
451 <low_get_syscall_trapinfo>: Declare.
452 * linux-low.cc (get_syscall_trapinfo): Turn into...
453 (linux_process_target::get_syscall_trapinfo): ...this.
454 (linux_process_target::low_get_syscall_trapinfo): Define.
455 (gdb_catch_this_syscall_p): Turn into...
456 (linux_process_target::gdb_catch_this_syscall): ...this.
457 (linux_process_target::low_supports_catch_syscall): Define.
459 Update the callers below.
461 (linux_process_target::wait_1)
462 (linux_process_target::supports_catch_syscall)
464 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
465 <low_get_syscall_trapinfo>: Declare.
466 (x86_target::low_supports_catch_syscall): Define.
467 (x86_get_syscall_trapinfo): Turn into...
468 (x86_target::low_get_syscall_trapinfo): ...this.
469 (the_low_target): Remove the op field.
470 * linux-aarch64-low.cc (class aarch64_target)
471 <low_supports_catch_syscall>
472 <low_get_syscall_trapinfo>: Declare.
473 (aarch64_target::low_supports_catch_syscall): Define.
474 (aarch64_get_syscall_trapinfo): Turn into...
475 (aarch64_target::low_get_syscall_trapinfo): ...this.
476 (the_low_target): Remove the op field.
477 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
478 <low_get_syscall_trapinfo>: Declare.
479 (arm_target::low_supports_catch_syscall): Define.
480 (arm_get_syscall_trapinfo): Turn into...
481 (arm_target::low_get_syscall_trapinfo): ...this.
482 (the_low_target): Remove the op field.
483 * linux-ppc-low.cc (the_low_target): Remove the op field.
484 * linux-s390-low.cc (the_low_target): Remove the op field.
486 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
488 Remove the 'supports_hardware_single_step' linux target op and
489 override the process_stratum_target's op definition in
490 linux_process_target to return true.
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <finish_step_over>
494 <maybe_hw_step>: Declare.
495 * linux-low.cc (can_hardware_single_step): Remove.
496 (maybe_hw_step): Turn into...
497 (linux_process_target::maybe_hw_step): ...this.
498 (finish_step_over): Turn into...
499 (linux_process_target::finish_step_over): ...this.
500 (linux_process_target::supports_hardware_single_step): Update
503 Update the callers below.
505 (linux_process_target::single_step)
506 (linux_process_target::resume_one_lwp_throw)
508 * linux-arm-low.cc (class arm_target)
509 <supports_hardware_single_step>: Declare.
510 (arm_supports_hardware_single_step): Turn into...
511 (arm_target::supports_hardware_single_step): ...this.
512 (the_low_target): Remove the op field.
513 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
514 (the_low_target): Remove the op field.
515 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
517 (the_low_target): Remove the op field.
518 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
519 (the_low_target): Remove the op field.
520 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
521 (the_low_target): Remove the op field.
522 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
523 (the_low_target): Remove the op field.
524 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
525 (the_low_target): Remove the op field.
526 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
527 (the_low_target): Remove the op field.
528 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
529 (the_low_target): Remove the op field.
530 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
531 (the_low_target): Remove the op field.
532 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
533 (the_low_target): Remove the op field.
534 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
535 (the_low_target): Remove the op field.
536 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
538 (the_low_target): Remove the op field.
540 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542 Turn the 'supports_range_stepping' linux target op into a method
543 of linux_process_target.
545 * linux-low.h (struct linux_target_ops): Remove the op.
546 (class linux_process_target) <low_supports_range_stepping>: Declare.
547 * linux-low.cc (linux_process_target::low_supports_range_stepping):
549 (linux_process_target::supports_range_stepping): Update the call
551 * linux-x86-low.cc (class x86_target)
552 <low_supports_range_stepping>: Declare.
553 (x86_supports_range_stepping): Turn into...
554 (x86_target::low_supports_range_stepping): ...this.
555 (the_low_target): Remove the op field.
556 * linux-aarch64-low.cc (class aarch64_target)
557 <low_supports_range_stepping>: Declare.
558 (aarch64_supports_range_stepping): Turn into...
559 (aarch64_target::low_supports_range_stepping): ...this.
560 (the_low_target): Remove the op field.
561 * linux-arm-low.cc (the_low_target): Remove the op field.
562 * linux-bfin-low.cc (the_low_target): Ditto.
563 * linux-crisv32-low.cc (the_low_target): Ditto.
564 * linux-m32r-low.cc (the_low_target): Ditto.
565 * linux-m68k-low.cc (the_low_target): Ditto.
566 * linux-ppc-low.cc (the_low_target): Ditto.
567 * linux-s390-low.cc (the_low_target): Ditto.
568 * linux-sh-low.cc (the_low_target): Ditto.
569 * linux-tic6x-low.cc (the_low_target): Ditto.
570 * linux-tile-low.cc (the_low_target): Ditto.
571 * linux-xtensa-low.cc (the_low_target): Ditto.
573 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
575 Remove the 'emit_ops' linux target ops and let the concrete
576 linux target define the op by overriding the declaration of
577 process_stratum_target.
579 * linux-low.h (struct linux_target_ops): Remove the op.
580 (class linux_process_target) <emit_ops>: Remove.
581 * linux-low.cc (linux_process_target::emit_ops): Remove.
582 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
583 (x86_emit_ops): Turn into...
584 (x86_target::emit_ops): ...this.
585 (the_low_target): Remove the op field.
586 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
587 (aarch64_emit_ops): Turn into...
588 (aarch64_target::emit_ops): ...this.
589 (the_low_target): Remove the op field.
590 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
591 (ppc_emit_ops): Turn into...
592 (ppc_target::emit_ops): ...this.
593 (the_low_target): Remove the op field.
594 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
595 (s390_emit_ops): Turn into...
596 (s390_target::emit_ops): ...this.
597 (the_low_target): Remove the op field.
598 * linux-arm-low.cc (the_low_target): Remove the op field.
599 * linux-bfin-low.cc (the_low_target): Ditto.
600 * linux-crisv32-low.cc (the_low_target): Ditto.
601 * linux-m32r-low.cc (the_low_target): Ditto.
602 * linux-m68k-low.cc (the_low_target): Ditto.
603 * linux-sh-low.cc (the_low_target): Ditto.
604 * linux-tic6x-low.cc (the_low_target): Ditto.
605 * linux-tile-low.cc (the_low_target): Ditto.
606 * linux-xtensa-low.cc (the_low_target): Ditto.
608 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610 Remove the 'install_fast_tracepoint_jump_pad' and
611 'get_min_fast_tracepoint_insn_len' linux target ops to let the
612 concrete linux target define the ops by overriding the declarations
613 of process_stratum_target.
615 * linux-low.h (struct linux_target_ops): Remove the ops.
616 (class linux_process_target) <supports_fast_tracepoints>
617 <install_fast_tracepoint_jump_pad>
618 <get_min_fast_tracepoint_insn_len>: Remove.
619 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
620 (linux_process_target::install_fast_tracepoint_jump_pad)
621 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
622 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
623 <install_fast_tracepoint_jump_pad>
624 <get_min_fast_tracepoint_insn_len>: Declare.
625 (x86_target::supports_fast_tracepoints): Define.
626 (x86_install_fast_tracepoint_jump_pad): Turn into...
627 (x86_target::install_fast_tracepoint_jump_pad): ...this.
628 (x86_get_min_fast_tracepoint_insn_len): Turn into...
629 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
630 (the_low_target): Remove the op fields.
631 * linux-aarch64-low.cc (class aarch64_target)
632 <supports_fast_tracepoints>
633 <install_fast_tracepoint_jump_pad>
634 <get_min_fast_tracepoint_insn_len>: Declare.
635 (aarch64_target::supports_fast_tracepoints): Define.
636 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
637 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
638 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
639 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
640 (the_low_target): Remove the op fields.
641 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
642 <install_fast_tracepoint_jump_pad>
643 <get_min_fast_tracepoint_insn_len>: Declare.
644 (ppc_target::supports_fast_tracepoints): Define.
645 (ppc_install_fast_tracepoint_jump_pad): Turn into...
646 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
647 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
648 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
651 <install_fast_tracepoint_jump_pad>
652 <get_min_fast_tracepoint_insn_len>: Declare.
653 (s390_target::supports_fast_tracepoints): Define.
654 (s390_install_fast_tracepoint_jump_pad): Turn into...
655 (s390_target::install_fast_tracepoint_jump_pad): ...this.
656 (s390_get_min_fast_tracepoint_insn_len): Turn into...
657 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
658 (the_low_target): Remove the op fields.
659 * linux-arm-low.cc (the_low_target): Remove the op fields.
660 * linux-bfin-low.cc (the_low_target): Ditto.
661 * linux-crisv32-low.cc (the_low_target): Ditto.
662 * linux-m32r-low.cc (the_low_target): Ditto.
663 * linux-m68k-low.cc (the_low_target): Ditto.
664 * linux-sh-low.cc (the_low_target): Ditto.
665 * linux-tic6x-low.cc (the_low_target): Ditto.
666 * linux-tile-low.cc (the_low_target): Ditto.
667 * linux-xtensa-low.cc (the_low_target): Ditto.
669 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
671 Turn the 'get_thread_area' linux target op into a method of
672 process_stratum_target.
674 * linux-low.h (struct linux_target_ops): Remove the op.
675 (class linux_process_target) <stuck_in_jump_pad>
676 <linux_fast_tracepoint_collecting>
677 <low_get_thread_area>: Declare.
678 * linux-low.cc (supports_fast_tracepoints): Remove.
679 (linux_fast_tracepoint_collecting): Turn into...
680 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
681 (linux_process_target::low_get_thread_area): Define.
682 (stuck_in_jump_pad_callback): Turn into...
683 (linux_process_target::stuck_in_jump_pad): ...this.
685 Update the caller below.
687 (linux_process_target::stabilize_threads)
689 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
691 (x86_get_thread_area): Turn into...
692 (x86_target::low_get_thread_area): ...this.
693 (the_low_target): Remove the op field.
694 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
696 (aarch64_get_thread_area): Turn into...
697 (aarch64_target::low_get_thread_area): ...this.
698 (the_low_target): Remove the op field.
699 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
701 (ppc_get_thread_area): Turn into...
702 (ppc_target::low_get_thread_area): ...this.
703 (the_low_target): Remove the op field.
704 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
706 (s390_get_thread_area): Turn into...
707 (s390_target::low_get_thread_area): ...this.
708 (the_low_target): Remove the op field.
709 * linux-arm-low.cc (the_low_target): Remove the op field.
710 * linux-bfin-low.cc (the_low_target): Ditto.
711 * linux-crisv32-low.cc (the_low_target): Ditto.
712 * linux-m32r-low.cc (the_low_target): Ditto.
713 * linux-m68k-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
719 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721 Remote the 'supports_tracepoints' linux target op and let the
722 concrete linux target define it by overriding the op declared in
723 process_stratum_target.
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <supports_tracepoints>: Remove.
727 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
728 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
730 (x86_supports_tracepoints): Turn into...
731 (x86_target::supports_tracepoints): ...this.
732 (the_low_target): Remove the op field.
733 * linux-aarch64-low.cc (class aarch64_target)
734 <supports_tracepoints>: Declare.
735 (aarch64_supports_tracepoints): Turn into...
736 (aarch64_target::supports_tracepoints): ...this.
737 (the_low_target): Remove the op field.
738 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
740 (ppc_supports_tracepoints): Turn into...
741 (ppc_target::supports_tracepoints): ...this.
742 (the_low_target): Remove the op field.
743 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
745 (s390_supports_tracepoints): Turn into...
746 (s390_target::supports_tracepoints): ...this.
747 (the_low_target): Remove the op field.
748 * linux-arm-low.cc (the_low_target): Remove the op field.
749 * linux-bfin-low.cc (the_low_target): Ditto.
750 * linux-crisv32-low.cc (the_low_target): Ditto.
751 * linux-m32r-low.cc (the_low_target): Ditto.
752 * linux-m68k-low.cc (the_low_target): Ditto.
753 * linux-sh-low.cc (the_low_target): Ditto.
754 * linux-tic6x-low.cc (the_low_target): Ditto.
755 * linux-tile-low.cc (the_low_target): Ditto.
756 * linux-xtensa-low.cc (the_low_target): Ditto.
758 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760 Remove the 'process_qsupported' linux target op and let a concrete
761 linux target define the op by overriding the op declaration in
762 process_stratum_target.
764 * linux-low.h (struct linux_target_ops): Remove the op.
765 (class linux_process_target) <process_qsupported>: Remove.
766 * linux-low.cc (linux_process_target::process_qsupported): Remove.
767 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
768 (x86_linux_process_qsupported): Turn into...
769 (x86_target::process_qsupported): ...this.
770 (the_low_target): Remove the op field.
771 * linux-aarch64-low.cc (the_low_target): Remove the op
773 * linux-arm-low.cc (the_low_target): Ditto.
774 * linux-bfin-low.cc (the_low_target): Ditto.
775 * linux-crisv32-low.cc (the_low_target): Ditto.
776 * linux-m32r-low.cc (the_low_target): Ditto.
777 * linux-m68k-low.cc (the_low_target): Ditto.
778 * linux-ppc-low.cc (the_low_target): Ditto.
779 * linux-s390-low.cc (the_low_target): Ditto.
780 * linux-sh-low.cc (the_low_target): Ditto.
781 * linux-tic6x-low.cc (the_low_target): Ditto.
782 * linux-tile-low.cc (the_low_target): Ditto.
783 * linux-xtensa-low.cc (the_low_target): Ditto.
785 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787 Turn the 'prepare_to_resume' linux target op into a method of
788 linux_process_target.
790 * linux-low.h (struct linux_target_ops): Remove the op.
791 (class linux_process_target) <low_prepare_to_resume>: Declare.
792 * linux-low.cc (linux_process_target::low_prepare_to_resume):
795 Update the callers below:
797 (linux_process_target::resume_one_lwp_throw)
798 (linux_process_target::low_prepare_to_resume)
800 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
802 (x86_target::low_prepare_to_resume): Define.
803 (the_low_target): Remove the op field.
804 * linux-aarch64-low.cc (class aarch64_target)
805 <low_prepare_to_resume>: Declare.
806 (aarch64_target::low_prepare_to_resume): Define.
807 (the_low_target): Remove the op field.
808 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
810 (arm_prepare_to_resume): Turn into...
811 (arm_target::low_prepare_to_resume): ...this.
812 (the_low_target): Remove the op field.
813 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
815 (mips_linux_prepare_to_resume): Turn into...
816 (mips_target::low_prepare_to_resume): ...this.
817 (the_low_target): Remove the op field.
818 * linux-bfin-low.cc (the_low_target): Remove the op field.
819 * linux-crisv32-low.cc (the_low_target): Ditto.
820 * linux-m32r-low.cc (the_low_target): Ditto.
821 * linux-m68k-low.cc (the_low_target): Ditto.
822 * linux-ppc-low.cc (the_low_target): Ditto.
823 * linux-s390-low.cc (the_low_target): Ditto.
824 * linux-sh-low.cc (the_low_target): Ditto.
825 * linux-tic6x-low.cc (the_low_target): Ditto.
826 * linux-tile-low.cc (the_low_target): Ditto.
827 * linux-xtensa-low.cc (the_low_target): Ditto.
829 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831 Turn the 'new_process', 'delete_process', 'new_thread',
832 'delete_thread', and 'new_fork' linux target ops into methods
833 of linux_process_target.
835 * linux-low.h (struct linux_target_ops): Remove the ops.
836 (class linux_process_target) <add_linux_process>
841 <check_zombie_leaders>
847 <low_new_fork>: Declare.
848 * linux-low.cc (delete_lwp): Turn into...
849 (linux_process_target::delete_lwp): ...this.
850 (linux_process_target::low_delete_thread): Define.
851 (linux_add_process): Turn into...
852 (linux_process_target::add_linux_process): ...this.
853 (linux_process_target::low_new_process): Define.
854 (linux_process_target::low_delete_process): Define.
855 (linux_process_target::low_new_fork): Define.
856 (add_lwp): Turn into...
857 (linux_process_target::add_lwp): ...this.
858 (linux_process_target::low_new_thread): Define.
859 (linux_attach_lwp): Turn into...
860 (linux_process_target::attach_lwp): ...this.
861 (linux_detach_one_lwp): Turn into...
862 (linux_process_target::detach_one_lwp): ...this.
863 (linux_detach_lwp_callback): Remove and inline...
864 (linux_process_target::detach): ...here.
865 (check_zombie_leaders): Turn into...
866 (linux_process_target::check_zombie_leaders): ...this.
867 (filter_exit_event): Turn into...
868 (linux_process_target::filter_exit_event): ...this.
870 Update the callers below.
872 (linux_process_target::handle_extended_wait)
873 (linux_process_target::create_inferior)
874 (attach_proc_task_lwp_callback)
875 (linux_process_target::attach)
876 (linux_process_target::detach)
877 (linux_process_target::mourn)
878 * thread-db.cc (attach_thread)
880 * linux-x86-low.cc (class x86_target) <low_new_process>
884 <low_new_fork>: Declare.
885 (x86_linux_new_process): Turn into...
886 (x86_target::low_new_process): ...this.
887 (x86_linux_delete_process): Turn into...
888 (x86_target::low_delete_process): ...this.
889 (x86_target::low_new_thread): Define.
890 (x86_target::low_delete_thread): Define.
891 (x86_linux_new_fork): Turn into...
892 (x86_target::low_new_fork): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
898 <low_new_fork>: Declare.
899 (aarch64_linux_new_process): Turn into...
900 (aarch64_target::low_new_process): ...this.
901 (aarch64_linux_delete_process): Turn into...
902 (aarch64_target::low_delete_process): ...this.
903 (aarch64_target::low_new_thread): Define.
904 (aarch64_target::low_delete_thread): Define.
905 (aarch64_linux_new_fork): Turn into...
906 (aarch64_target::low_new_fork): ...this.
907 (the_low_target): Remove the op fields.
908 * linux-arm-low.cc (class arm_target) <low_new_process>
912 <low_new_fork>: Declare.
913 (arm_new_process): Turn into...
914 (arm_target::low_new_process): ...this.
915 (arm_delete_process): Turn into...
916 (arm_target::low_delete_process): ...this.
917 (arm_new_thread): Turn into...
918 (arm_target::low_new_thread): ...this.
919 (arm_delete_thread): Turn into...
920 (arm_target::low_delete_thread): ...this.
921 (arm_new_fork): Turn into...
922 (arm_target::low_new_fork): ...this.
923 (the_low_target): Remove the op fields.
924 * linux-mips-low.cc (class mips_target) <low_new_process>
928 <low_new_fork>: Declare.
929 (mips_linux_new_process): Turn into...
930 (mips_target::low_new_process): ...this.
931 (mips_linux_delete_process): Turn into...
932 (mips_target::low_delete_process): ...this.
933 (mips_linux_new_thread): Turn into...
934 (mips_target::low_new_thread): ...this.
935 (mips_linux_delete_thread): Turn into...
936 (mips_target::low_delete_thread): ...this.
937 (mips_linux_new_fork): Turn into...
938 (mips_target::low_new_fork): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-bfin-low.cc (the_low_target): Remove the op fields.
941 * linux-crisv32-low.cc (the_low_target): Ditto.
942 * linux-m32r-low.cc (the_low_target): Ditto.
943 * linux-m68k-low.cc (the_low_target): Ditto.
944 * linux-ppc-low.cc (the_low_target): Ditto.
945 * linux-s390-low.cc (the_low_target): Ditto.
946 * linux-sh-low.cc (the_low_target): Ditto.
947 * linux-tic6x-low.cc (the_low_target): Ditto.
948 * linux-tile-low.cc (the_low_target): Ditto.
949 * linux-xtensa-low.cc (the_low_target): Ditto.
951 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
953 Turn the 'siginfo_fixup' linux target op into a method of
954 linux_process_target.
956 * linux-low.h (struct linux_target_ops): Remove the op.
957 (class linux_process_target) <siginfo_fixup>
958 <low_siginfo_fixup>: Declare.
959 * linux-low.cc (siginfo_fixup): Turn into...
960 (linux_process_target::siginfo_fixup): ...this.
961 (linux_process_target::low_siginfo_fixup): Define.
962 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
963 (x86_siginfo_fixup): Turn into...
964 (x86_target::low_siginfo_fixup): ...this.
965 (the_low_target): Remove the op field.
966 * linux-aarch64-low.cc (class aarch64_target):
967 <low_siginfo_fixup>: Declare.
968 (aarch64_linux_siginfo_fixup): Turn into...
969 (aarch64_target::low_siginfo_fixup): ...this.
970 (the_low_target): Remove the op field.
971 * linux-arm-low.cc (the_low_target): Remove the op field.
972 * linux-bfin-low.cc (the_low_target): Ditto.
973 * linux-crisv32-low.cc (the_low_target): Ditto.
974 * linux-m32r-low.cc (the_low_target): Ditto.
975 * linux-m68k-low.cc (the_low_target): Ditto.
976 * linux-mips-low.cc (the_low_target): Ditto.
977 * linux-ppc-low.cc (the_low_target): Ditto.
978 * linux-s390-low.cc (the_low_target): Ditto.
979 * linux-sh-low.cc (the_low_target): Ditto.
980 * linux-tic6x-low.cc (the_low_target): Ditto.
981 * linux-tile-low.cc (the_low_target): Ditto.
982 * linux-xtensa-low.cc (the_low_target): Ditto.
984 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
986 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
987 linux target ops into methods of linux_process_target.
989 * linux-low.h (struct linux_target_ops): Remove the ops.
990 (class linux_process_target) <low_collect_ptrace_register>
991 <low_store_ptrace_register>: Declare.
992 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
993 (linux_process_target::low_supply_ptrace_register): Define.
995 Update the callers below.
997 (linux_process_target::fetch_register)
998 (linux_process_target::store_register)
1000 * linux-x86-low.cc (the_low_target): Remove the op fields.
1001 * linux-aarch64-low.cc (the_low_target): Ditto.
1002 * linux-arm-low.cc (the_low_target): Ditto.
1003 * linux-bfin-low.cc (the_low_target): Ditto.
1004 * linux-crisv32-low.cc (the_low_target): Ditto.
1005 * linux-m32r-low.cc (the_low_target): Ditto.
1006 * linux-m68k-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-sparc-low.cc (the_low_target): Ditto.
1009 * linux-tic6x-low.cc (the_low_target): Ditto.
1010 * linux-tile-low.cc (the_low_target): Ditto.
1011 * linux-xtensa-low.cc (the_low_target): Ditto.
1012 * linux-mips-low.cc (class mips_target)
1013 <low_collect_ptrace_register>
1014 <low_supply_ptrace_register>: Declare.
1015 (mips_collect_ptrace_register): Turn into ...
1016 (mips_target::low_collect_ptrace_register): ...this.
1017 (mips_supply_ptrace_register): Turn into...
1018 (mips_target::low_supply_ptrace_register): ...this.
1019 (the_low_target): Remove the op fields.
1020 * linux-ppc-low.cc (class ppc_target)
1021 <low_collect_ptrace_register>
1022 <low_supply_ptrace_register>: Declare.
1023 (ppc_collect_ptrace_register): Turn into ...
1024 (ppc_target::low_collect_ptrace_register): ...this.
1025 (ppc_supply_ptrace_register): Turn into ...
1026 (ppc_target::low_supply_ptrace_register): ...this.
1027 (ppc_fill_gregset): Update for the calls to
1028 low_collect_ptrace_register.
1029 (the_low_target): Remove the op fields.
1030 * linux-s390-low.cc (class s390_target)
1031 <low_collect_ptrace_register>
1032 <low_supply_ptrace_register>: Declare.
1033 (s390_collect_ptrace_register): Turn into ...
1034 (s390_target::low_collect_ptrace_register): ...this.
1035 (s390_supply_ptrace_register): Turn into ...
1036 (s390_target::low_supply_ptrace_register): ...this.
1037 (s390_fill_gregset): Update for the calls to
1038 low_collect_ptrace_register.
1039 (the_low_target): Remove the op fields.
1041 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1044 target ops into methods of linux_process_target.
1046 * linux-low.h (struct linux_target_ops): Remove the ops.
1047 (class linux_process_target) <check_stopped_by_watchpoint>
1048 <low_stopped_by_watchpoint>
1049 <low_stopped_data_address>: Declare.
1050 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1051 (linux_process_target::check_stopped_by_watchpoint): ...this.
1052 (linux_process_target::low_stopped_by_watchpoint): Define.
1053 (linux_process_target::low_stopped_data_address): Define.
1054 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1055 <low_stopped_data_address>: Declare.
1056 (x86_stopped_by_watchpoint): Turn into...
1057 (x86_target::low_stopped_by_watchpoint): ...this.
1058 (x86_stopped_data_address): Turn into...
1059 (x86_target::low_stopped_data_address): ...this.
1060 (the_low_target): Remove the op fields.
1061 * linux-aarch64-low.cc (class aarch64_target)
1062 <low_stopped_by_watchpoint>
1063 <low_stopped_data_address>: Declare.
1064 (aarch64_stopped_by_watchpoint): Turn into...
1065 (aarch64_target::low_stopped_by_watchpoint): ...this.
1066 (aarch64_stopped_data_address): Turn into...
1067 (aarch64_target::low_stopped_data_address): ...this.
1068 (the_low_target): Remove the op fields.
1069 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1070 <low_stopped_data_address>: Declare.
1071 (arm_stopped_by_watchpoint): Turn into...
1072 (arm_target::low_stopped_by_watchpoint): ...this.
1073 (arm_stopped_data_address): Turn into...
1074 (arm_target::low_stopped_data_address): ...this.
1075 (the_low_target): Remove the op fields.
1076 * linux-crisv32-low.cc (class crisv32_target)
1077 <low_stopped_by_watchpoint>
1078 <low_stopped_data_address>: Declare.
1079 (cris_stopped_by_watchpoint): Turn into...
1080 (crisv32_target::low_stopped_by_watchpoint): ...this.
1081 (cris_stopped_data_address): Turn into...
1082 (crisv32_target::low_stopped_data_address): ...this.
1083 (the_low_target): Remove the op fields.
1084 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1085 <low_stopped_data_address>: Declare.
1086 (mips_stopped_by_watchpoint): Turn into...
1087 (mips_target::low_stopped_by_watchpoint): ...this.
1088 (mips_stopped_data_address): Turn into...
1089 (mips_target::low_stopped_data_address): ...this.
1090 (the_low_target): Remove the op fields.
1091 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1092 * linux-m32r-low.cc (the_low_target): Ditto.
1093 * linux-m68k-low.cc (the_low_target): Ditto.
1094 * linux-ppc-low.cc (the_low_target): Ditto.
1095 * linux-s390-low.cc (the_low_target): Ditto.
1096 * linux-sh-low.cc (the_low_target): Ditto.
1097 * linux-sparc-low.cc (the_low_target): Ditto.
1098 * linux-tic6x-low.cc (the_low_target): Ditto.
1099 * linux-tile-low.cc (the_low_target): Ditto.
1100 * linux-xtensa-low.cc (the_low_target): Ditto.
1102 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1104 Turn the 'insert_point' and 'remove_point' linux target ops into
1105 methods of linux_process_target.
1107 * linux-low.h (struct linux_target_ops): Remove the ops.
1108 (class linux_process_target) <low_insert_point>
1109 <low_remove_point>: Declare.
1110 * linux-low.cc (linux_process_target::low_insert_point)
1111 (linux_process_target::low_remove_point): Define.
1112 (linux_process_target::insert_point)
1113 (linux_process_target::remove_point): Update for calls to
1114 low_insert_point and low_remove_point.
1115 * linux-x86-low.cc (class x86_target) <low_insert_point>
1116 <low_remove_point>: Declare.
1117 (x86_insert_point): Turn into...
1118 (x86_target::low_insert_point): ...this.
1119 (x86_remove_point): Turn into...
1120 (x86_target::low_remove_point): ...this.
1121 (the_low_target): Remove the op fields.
1122 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1123 <low_remove_point>: Declare.
1124 (aarch64_insert_point): Turn into...
1125 (aarch64_target::low_insert_point): ...this.
1126 (aarch64_remove_point): Turn into...
1127 (aarch64_target::low_remove_point): ...this.
1128 (the_low_target): Remove the op fields.
1129 * linux-arm-low.cc (class arm_target) <low_insert_point>
1130 <low_remove_point>: Declare.
1131 (arm_insert_point): Turn into...
1132 (arm_target::low_insert_point): ...this.
1133 (arm_remove_point): Turn into...
1134 (arm_target::low_remove_point): ...this.
1135 (the_low_target): Remove the op fields.
1136 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1137 <low_remove_point>: Declare.
1138 (crisv32_insert_point): Turn into...
1139 (crisv32_target::low_insert_point): ...this.
1140 (crisv32_remove_point): Turn into...
1141 (crisv32_target::low_remove_point): ...this.
1142 (the_low_target): Remove the op fields.
1143 * linux-mips-low.cc (class mips_target) <low_insert_point>
1144 <low_remove_point>: Declare.
1145 (mips_insert_point): Turn into...
1146 (mips_target::low_insert_point): ...this.
1147 (mips_remove_point): Turn into...
1148 (mips_target::low_remove_point): ...this.
1149 (the_low_target): Remove the op fields.
1150 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1151 <low_remove_point>: Declare.
1152 (ppc_insert_point): Turn into...
1153 (ppc_target::low_insert_point): ...this.
1154 (ppc_remove_point): Turn into...
1155 (ppc_target::low_remove_point): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1158 * linux-m32r-low.cc (the_low_target): Ditto.
1159 * linux-m68k-low.cc (the_low_target): Ditto.
1160 * linux-s390-low.cc (the_low_target): Ditto.
1161 * linux-sh-low.cc (the_low_target): Ditto.
1162 * linux-sparc-low.cc (the_low_target): Ditto.
1163 * linux-tic6x-low.cc (the_low_target): Ditto.
1164 * linux-tile-low.cc (the_low_target): Ditto.
1165 * linux-xtensa-low.cc (the_low_target): Ditto.
1167 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169 Remove the 'supports_z_point_type' linux target op and let the
1170 concrete linux target define it by overriding the op declared in
1171 process_stratum_target.
1173 * linux-low.cc (linux_process_target::supports_z_point_type):
1175 * linux-low.h (struct linux_target_ops): Remove the op.
1176 (class linux_process_target) <supports_z_point_type>: Remove.
1177 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1179 (x86_supports_z_point_type): Turn into...
1180 (x86_target::supports_z_point_type): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-aarch64-low.cc (class aarch64_target)
1183 <supports_z_point_type>: Declare.
1184 (aarch64_supports_z_point_type): Turn into...
1185 (aarch64_target::supports_z_point_type): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1189 (arm_supports_z_point_type): Turn into...
1190 (arm_target::supports_z_point_type): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-crisv32-low.cc (class crisv32_target)
1193 <supports_z_point_type>: Declare.
1194 (cris_supports_z_point_type): Turn into...
1195 (crisv32_target::supports_z_point_type): ...this.
1196 (the_low_target): Remove the op field.
1197 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1199 (mips_supports_z_point_type): Turn into...
1200 (mips_target::supports_z_point_type): ...this.
1201 (the_low_target): Remove the op field.
1202 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1204 (ppc_supports_z_point_type): Turn into...
1205 (ppc_target::supports_z_point_type): ...this.
1206 (the_low_target): Remove the op field.
1207 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1209 (s390_supports_z_point_type): Turn into...
1210 (s390_target::supports_z_point_type): ...this.
1211 (the_low_target): Remove the op field.
1212 * linux-bfin-low.cc (the_low_target): Remove the op field.
1213 * linux-m32r-low.cc (the_low_target): Ditto.
1214 * linux-m68k-low.cc (the_low_target): Ditto.
1215 * linux-sh-low.cc (the_low_target): Ditto.
1216 * linux-sparc-low.cc (the_low_target): Ditto.
1217 * linux-tic6x-low.cc (the_low_target): Ditto.
1218 * linux-tile-low.cc (the_low_target): Ditto.
1219 * linux-xtensa-low.cc (the_low_target): Ditto.
1221 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1223 Turn the 'breakpoint_at' linux target op into a method of
1224 linux_process_target.
1226 * linux-low.h (struct linux_target_ops): Remove the op.
1227 (class linux_process_target) <low_breakpoint_at>: Declare.
1229 Update the callers below:
1231 * linux-low.cc (linux_process_target::save_stop_reason)
1232 (linux_process_target::thread_still_has_status_pending)
1233 (linux_process_target::wait_1)
1235 * linux-x86-low.cc (class x86_target)
1236 <low_breakpoint_at>: Declare.
1237 (x86_breakpoint_at): Turn into...
1238 (x86_target::low_breakpoint_at): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-aarch64-low.cc (class aarch64_target)
1241 <low_breakpoint_at>: Declare.
1242 (aarch64_breakpoint_at): Turn into...
1243 (aarch64_target::low_breakpoint_at): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-arm-low.cc (class arm_target)
1246 <low_breakpoint_at>: Declare.
1247 (arm_target::low_breakpoint_at): Define.
1248 (the_low_target): Remove the op field.
1249 * linux-bfin-low.cc (class bfin_target)
1250 <low_breakpoint_at>: Declare.
1251 (bfin_breakpoint_at): Turn into...
1252 (bfin_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-cris-low.cc (class cris_target)
1255 <low_breakpoint_at>: Declare.
1256 (cris_breakpoint_at): Turn into...
1257 (cris_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-crisv32-low.cc (class crisv32_target)
1260 <low_breakpoint_at>: Declare.
1261 (crisv32_breakpoint_at): Turn into...
1262 (crisv32_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-ia64-low.cc (class ia64_target)
1265 <low_breakpoint_at>: Declare.
1266 (ia64_target::low_breakpoint_at): Define.
1267 * linux-m32r-low.cc (class m32r_target)
1268 <low_breakpoint_at>: Declare.
1269 (m32r_breakpoint_at): Turn into...
1270 (m32r_target::low_breakpoint_at): ...this.
1271 (the_low_target): Remove the op field.
1272 * linux-m68k-low.cc (class m68k_target)
1273 <low_breakpoint_at>: Declare.
1274 (m68k_breakpoint_at): Turn into...
1275 (m68k_target::low_breakpoint_at): ...this.
1276 (the_low_target): Remove the op field.
1277 * linux-mips-low.cc (class mips_target)
1278 <low_breakpoint_at>: Declare.
1279 (mips_breakpoint_at): Turn into...
1280 (mips_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-nios2-low.cc (class nios2_target)
1283 <low_breakpoint_at>: Declare.
1284 (nios2_breakpoint_at): Turn into...
1285 (nios2_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-ppc-low.cc (class ppc_target)
1288 <low_breakpoint_at>: Declare.
1289 (ppc_breakpoint_at): Turn into...
1290 (ppc_target::low_breakpoint_at): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-riscv-low.cc (class riscv_target)
1293 <low_breakpoint_at>: Declare.
1294 (riscv_breakpoint_at): Turn into...
1295 (riscv_target::low_breakpoint_at): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-s390-low.cc (class s390_target)
1298 <low_breakpoint_at>: Declare.
1299 (s390_breakpoint_at): Turn into...
1300 (s390_target::low_breakpoint_at): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-sh-low.cc (class sh_target)
1303 <low_breakpoint_at>: Declare.
1304 (sh_breakpoint_at): Turn into...
1305 (sh_target::low_breakpoint_at): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-sparc-low.cc (class sparc_target)
1308 <low_breakpoint_at>: Declare.
1309 (sparc_breakpoint_at): Turn into...
1310 (sparc_target::low_breakpoint_at): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-tic6x-low.cc (class tic6x_target)
1313 <low_breakpoint_at>: Declare.
1314 (tic6x_breakpoint_at): Turn into...
1315 (tic6x_target::low_breakpoint_at): ...this.
1316 (the_low_target): Remove the op field.
1317 * linux-tile-low.cc (class tile_target)
1318 <low_breakpoint_at>: Declare.
1319 (tile_breakpoint_at): Turn into...
1320 (tile_target::low_breakpoint_at): ...this.
1321 (the_low_target): Remove the op field.
1322 * linux-xtensa-low.cc (class xtensa_target)
1323 <low_breakpoint_at>: Declare.
1324 (xtensa_breakpoint_at): Turn into...
1325 (xtensa_target::low_breakpoint_at): ...this.
1326 (the_low_target): Remove the op field.
1328 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1330 Turn the 'decr_pc_after_break' linux_target_ops field into
1331 a method of linux_process_target.
1333 * linux-low.h (struct linux_target_ops)
1334 <decr_pc_after_break>: Remove.
1335 (class linux_process_target) <low_decr_pc_after_break>: New method
1337 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1338 New method implementation.
1340 Update the users below.
1342 (linux_process_target::save_stop_reason)
1343 (linux_process_target::wait_1)
1344 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1346 (x86_target::low_decr_pc_after_break): New method implementation.
1347 (the_low_target): Remove the field.
1348 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1350 (bfin_target::low_decr_pc_after_break): New method implementation.
1351 (the_low_target): Remove the field.
1352 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1354 (m68k_target::low_decr_pc_after_break): New method implementation.
1355 (the_low_target): Remove the field.
1356 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1358 (s390_target::low_decr_pc_after_break): New method implementation.
1359 (the_low_target): Remove the field.
1360 * linux-aarch64-low.cc (the_low_target): Remove the field.
1361 * linux-arm-low.cc (the_low_target): Remove the field.
1362 * linux-cris-low.cc (the_low_target): Remove the field.
1363 * linux-crisv32-low.cc (the_low_target): Remove the field.
1364 * linux-m32r-low.cc (the_low_target): Remove the field.
1365 * linux-mips-low.cc (the_low_target): Remove the field.
1366 * linux-nios2-low.cc (the_low_target): Remove the field.
1367 * linux-ppc-low.cc (the_low_target): Remove the field.
1368 * linux-riscv-low.cc (the_low_target): Remove the field.
1369 * linux-sh-low.cc (the_low_target): Remove the field.
1370 * linux-sparc-low.cc (the_low_target): Remove the field.
1371 * linux-tic6x-low.cc (the_low_target): Remove the field.
1372 * linux-tile-low.cc (the_low_target): Remove the field.
1373 * linux-xtensa-low.cc (the_low_target): Remove the field.
1375 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1377 Remove the 'supports_software_single_step' linux target op and let
1378 the concrete linux target define it by overriding the op in
1379 process_stratum_target.
1380 Turn the 'get_next_pcs' linux target op into a method of
1381 linux_process_target.
1383 * linux-low.h (struct linux_target_ops): Remove the ops.
1384 (class linux_process_target) <supports_software_single_step>:
1386 <low_get_next_pcs>: Declare.
1387 * linux-low.cc (can_software_single_step): Remove.
1388 (linux_process_target::low_get_next_pcs): Define.
1389 (linux_process_target::supports_software_single_step): Remove.
1391 Update the callers below.
1393 (linux_process_target::handle_extended_wait)
1394 (linux_process_target::wait_1)
1395 (linux_process_target::install_software_single_step_breakpoints)
1396 (linux_process_target::single_step)
1397 (linux_process_target::thread_needs_step_over)
1398 (linux_process_target::proceed_one_lwp)
1399 (linux_process_target::supports_range_stepping)
1401 * linux-x86-low.cc (the_low_target): Remove the op field.
1402 * linux-aarch64-low.cc (the_low_target): Ditto.
1403 * linux-bfin-low.cc (the_low_target): Ditto.
1404 * linux-cris-low.cc (the_low_target): Ditto.
1405 * linux-crisv32-low.cc (the_low_target): Ditto.
1406 * linux-m32r-low.cc (the_low_target): Ditto.
1407 * linux-m68k-low.cc (the_low_target): Ditto.
1408 * linux-mips-low.cc (the_low_target): Ditto.
1409 * linux-nios2-low.cc (the_low_target): Ditto.
1410 * linux-ppc-low.cc (the_low_target): Ditto.
1411 * linux-riscv-low.cc (the_low_target): Ditto.
1412 * linux-s390-low.cc (the_low_target): Ditto.
1413 * linux-sh-low.cc (the_low_target): Ditto.
1414 * linux-sparc-low.cc (the_low_target): Ditto.
1415 * linux-tic6x-low.cc (the_low_target): Ditto.
1416 * linux-tile-low.cc (the_low_target): Ditto.
1417 * linux-xtensa-low.cc (the_low_target): Ditto.
1418 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1419 <supports_software_single_step>: Declare.
1420 (arm_target::supports_software_single_step): Define.
1421 (arm_gdbserver_get_next_pcs): Turn into...
1422 (arm_target::low_get_next_pcs): ...this.
1423 (the_low_target): Remove the op field.
1425 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1427 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1428 the concrete linux target define it by overriding the op
1429 in process_stratum_target.
1431 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1433 * linux-low.h (struct linux_target_ops): Remove the op.
1434 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1435 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1437 (x86_sw_breakpoint_from_kind): Turn into...
1438 (x86_target::sw_breakpoint_from_kind): ...this.
1439 (the_low_target): Remove the op field.
1440 * linux-aarch64-low.cc (class aarch64_target)
1441 <sw_breakpoint_from_kind>: Declare.
1442 (aarch64_sw_breakpoint_from_kind): Turn into...
1443 (aarch64_target::sw_breakpoint_from_kind): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1447 (arm_target::sw_breakpoint_from_kind): Define.
1448 (the_low_target): Remove the op field.
1449 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1451 (bfin_sw_breakpoint_from_kind): Turn into...
1452 (bfin_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1456 (cris_sw_breakpoint_from_kind): Turn into...
1457 (cris_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-crisv32-low.cc (class crisv32_target)
1460 <sw_breakpoint_from_kind>: Declare.
1461 (cris_sw_breakpoint_from_kind): Turn into...
1462 (crisv32_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1466 (ia64_target::sw_breakpoint_from_kind): Define.
1467 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1469 (m32r_sw_breakpoint_from_kind): Turn into...
1470 (m32r_target::sw_breakpoint_from_kind): ...this.
1471 (the_low_target): Remove the op field.
1472 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1474 (m68k_sw_breakpoint_from_kind): Turn into...
1475 (m68k_target::sw_breakpoint_from_kind): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1479 (mips_sw_breakpoint_from_kind): Turn into...
1480 (mips_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1484 (nios2_sw_breakpoint_from_kind): Turn into...
1485 (nios2_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1489 (ppc_sw_breakpoint_from_kind): Turn into...
1490 (ppc_target::sw_breakpoint_from_kind): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1494 (riscv_sw_breakpoint_from_kind): Turn into...
1495 (riscv_target::sw_breakpoint_from_kind): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1499 (s390_sw_breakpoint_from_kind): Turn into...
1500 (s390_target::sw_breakpoint_from_kind): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1504 (sh_sw_breakpoint_from_kind): Turn into...
1505 (sh_target::sw_breakpoint_from_kind): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1509 (sparc_sw_breakpoint_from_kind): Turn into...
1510 (sparc_target::sw_breakpoint_from_kind): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1514 (tic6x_sw_breakpoint_from_kind): Turn into...
1515 (tic6x_target::sw_breakpoint_from_kind): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1519 (tile_sw_breakpoint_from_kind): Turn into...
1520 (tile_target::sw_breakpoint_from_kind): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-xtensa-low.cc (class xtensa_target)
1523 <sw_breakpoint_from_kind>: Declare.
1524 (xtensa_sw_breakpoint_from_kind): Turn into...
1525 (xtensa_target::sw_breakpoint_from_kind): ...this.
1526 (the_low_target): Remove the op field.
1528 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530 Remove the 'breakpoint_kind_from_pc' and
1531 'breakpoint_kind_from_current_state' linux target ops, and let the
1532 concrete linux target define them by overriding the ops of
1533 process_stratum_target.
1535 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1537 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1538 * linux-low.h (struct linux_target_ops): Remove ops.
1539 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1540 <breakpoint_kind_from_current_state>: Remove.
1541 * linux-x86-low.cc (the_low_target): Remove the op fields.
1542 * linux-bfin-low.cc (the_low_target): Ditto.
1543 * linux-cris-low.cc (the_low_target): Ditto.
1544 * linux-crisv32-low.cc (the_low_target): Ditto.
1545 * linux-m32r-low.cc (the_low_target): Ditto.
1546 * linux-m68k-low.cc (the_low_target): Ditto.
1547 * linux-mips-low.cc (the_low_target): Ditto.
1548 * linux-nios2-low.cc (the_low_target): Ditto.
1549 * linux-ppc-low.cc (the_low_target): Ditto.
1550 * linux-s390-low.cc (the_low_target): Ditto.
1551 * linux-sh-low.cc (the_low_target): Ditto.
1552 * linux-sparc-low.cc (the_low_target): Ditto.
1553 * linux-tic6x-low.cc (the_low_target): Ditto.
1554 * linux-tile-low.cc (the_low_target): Ditto.
1555 * linux-xtensa-low.cc (the_low_target): Ditto.
1556 * linux-aarch64-low.cc (class aarch64_target)
1557 <breakpoint_kind_from_pc>
1558 <breakpoint_kind_from_current_state>: Declare.
1559 (aarch64_breakpoint_kind_from_pc): Turn into...
1560 (aarch64_target::breakpoint_kind_from_pc): ...this.
1561 (aarch64_breakpoint_kind_from_current_state): Turn into...
1562 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-arm-low.cc (class arm_target):
1565 <breakpoint_kind_from_pc>
1566 <breakpoint_kind_from_current_state>: Declare.
1567 (arm_target::breakpoint_kind_from_pc): Define.
1568 (arm_target::breakpoint_kind_from_current_state): Define.
1569 (the_low_target): Remove the op fields.
1570 * linux-riscv-low.cc (class riscv_target):
1571 <breakpoint_kind_from_pc>: Declare.
1572 (riscv_breakpoint_kind_from_pc): Turn into...
1573 (riscv_target::breakpoint_kind_from_pc): ...this.
1574 (the_low_target): Remove the op fields.
1576 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1578 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1579 of linux_process_target.
1581 * linux-low.h (struct linux_target_ops): Remove the ops.
1582 (class linux_process_target) <low_supports_breakpoints>
1584 <low_set_pc>: Declare.
1585 * linux-low.cc (supports_breakpoints): Turn into...
1586 (linux_process_target::low_supports_breakpoints): ...this.
1587 (linux_process_target::low_get_pc): Define.
1588 (linux_process_target::low_set_pc): Define.
1590 Update the callers below.
1592 (linux_process_target::get_pc)
1593 (linux_process_target::save_stop_reason)
1594 (linux_process_target::maybe_move_out_of_jump_pad)
1595 (linux_process_target::wait_1)
1596 (linux_process_target::resume_one_lwp_throw)
1597 (linux_process_target::resume)
1598 (linux_process_target::proceed_all_lwps)
1599 (linux_process_target::read_pc)
1600 (linux_process_target::write_pc)
1602 * linux-x86-low.cc (class linux_process_target)
1603 <low_supports_breakpoints>
1605 <low_set_pc>: Declare.
1606 (x86_target::low_supports_breakpoints): Define.
1607 (x86_get_pc): Turn into...
1608 (x86_target::low_get_pc): ...this.
1609 (x86_set_pc): Turn into...
1610 (x86_target::low_set_pc): ...this.
1611 (the_low_target): Remove the op fields.
1612 * linux-arm-low.cc (class arm_target)
1613 <low_supports_breakpoints>
1615 <low_set_pc>: Declare.
1616 (arm_target::low_supports_breakpoints)
1617 (arm_target::low_get_pc)
1618 (arm_target::low_set_pc): Define.
1619 (the_low_target): Remove the op fields.
1620 * linux-bfin-low.cc (class bfin_target)
1621 <low_supports_breakpoints>
1623 <low_set_pc>: Declare.
1624 (bfin_target::low_supports_breakpoints)
1625 (bfin_target::low_get_pc)
1626 (bfin_target::low_set_pc): Define.
1627 (the_low_target): Remove the op fields.
1628 * linux-cris-low.cc (class cris_target)
1629 <low_supports_breakpoints>
1631 <low_set_pc>: Declare.
1632 (cris_target::low_supports_breakpoints)
1633 (cris_target::low_get_pc)
1634 (cris_target::low_set_pc): Define.
1635 (the_low_target): Remove the op fields.
1636 * linux-crisv32-low.cc (class crisv32_target)
1637 <low_supports_breakpoints>
1639 <low_set_pc>: Declare.
1640 (crisv32_target::low_supports_breakpoints)
1641 (crisv32_target::low_get_pc)
1642 (crisv32_target::low_set_pc): Define.
1643 (the_low_target): Remove the op fields.
1644 * linux-m32r-low.cc (class m32r_target)
1645 <low_supports_breakpoints>
1647 <low_set_pc>: Declare.
1648 (m32r_target::low_supports_breakpoints)
1649 (m32r_target::low_get_pc)
1650 (m32r_target::low_set_pc): Define.
1651 (the_low_target): Remove the op fields.
1652 * linux-m68k-low.cc (class m68k_target)
1653 <low_supports_breakpoints>
1655 <low_set_pc>: Declare.
1656 (m68k_target::low_supports_breakpoints)
1657 (m68k_target::low_get_pc)
1658 (m68k_target::low_set_pc): Define.
1659 (the_low_target): Remove the op fields.
1660 * linux-nios2-low.cc (class nios2_target)
1661 <low_supports_breakpoints>
1663 <low_set_pc>: Declare.
1664 (nios2_target::low_supports_breakpoints)
1665 (nios2_target::low_get_pc)
1666 (nios2_target::low_set_pc): Define.
1667 (the_low_target): Remove the op fields.
1668 * linux-sh-low.cc (class sh_target)
1669 <low_supports_breakpoints>
1671 <low_set_pc>: Declare.
1672 (sh_target::low_supports_breakpoints)
1673 (sh_target::low_get_pc)
1674 (sh_target::low_set_pc): Define.
1675 (the_low_target): Remove the op fields.
1676 * linux-xtensa-low.cc (class xtensa_target)
1677 <low_supports_breakpoints>
1679 <low_set_pc>: Declare.
1680 (xtensa_target::low_supports_breakpoints)
1681 (xtensa_target::low_get_pc)
1682 (xtensa_target::low_set_pc): Define.
1683 (the_low_target): Remove the op fields.
1684 * linux-sparc-low.cc (class sparc_target)
1685 <low_supports_breakpoints>
1686 <low_get_pc>: Declare.
1687 (sparc_target::low_supports_breakpoints)
1688 (sparc_target::low_get_pc): Define.
1689 (the_low_target): Remove the op fields.
1690 * linux-tile-low.cc (class tile_target)
1691 <low_supports_breakpoints>
1693 <low_set_pc>: Declare.
1694 (tile_target::low_supports_breakpoints)
1695 (tile_target::low_get_pc)
1696 (tile_target::low_set_pc): Define.
1697 (the_low_target): Remove the op fields.
1698 * linux-aarch64-low.cc (class aarch64_target)
1699 <low_supports_breakpoints>
1701 <low_set_pc>: Declare.
1702 (aarch64_target::low_supports_breakpoints): Define.
1703 (aarch64_get_pc): Turn into...
1704 (aarch64_target::low_get_pc): ...this.
1705 (aarch64_set_pc): Turn into...
1706 (aarch64_target::low_set_pc): ...this.
1707 (the_low_target): Remove the op fields.
1708 * linux-mips-low.cc (class mips_target)
1709 <low_supports_breakpoints>
1711 <low_set_pc>: Declare.
1712 (mips_target::low_supports_breakpoints): Define.
1713 (mips_get_pc): Turn into...
1714 (mips_target::low_get_pc): ...this.
1715 (mips_set_pc): Turn into...
1716 (mips_target::low_set_pc): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-ppc-low.cc (class ppc_target)
1719 <low_supports_breakpoints>
1721 <low_set_pc>: Declare.
1722 (ppc_target::low_supports_breakpoints): Define.
1723 (ppc_get_pc): Turn into...
1724 (ppc_target::low_get_pc): ...this.
1725 (ppc_set_pc): Turn into...
1726 (ppc_target::low_set_pc): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-riscv-low.cc (class riscv_target)
1729 <low_supports_breakpoints>
1731 <low_set_pc>: Declare.
1732 (riscv_target::low_supports_breakpoints): Define.
1733 (riscv_get_pc): Turn into...
1734 (riscv_target::low_get_pc): ...this.
1735 (riscv_set_pc): Turn into...
1736 (riscv_target::low_set_pc): ...this.
1737 (the_low_target): Remove the op fields.
1738 * linux-s390-low.cc (class s390_target)
1739 <low_supports_breakpoints>
1741 <low_set_pc>: Declare.
1742 (s390_target::low_supports_breakpoints): Define.
1743 (s390_get_pc): Turn into...
1744 (s390_target::low_get_pc): ...this.
1745 (s390_set_pc): Turn into...
1746 (s390_target::low_set_pc): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-tic6x-low.cc (class tic6x_target)
1749 <low_supports_breakpoints>
1751 <low_set_pc>: Declare.
1752 (tic6x_target::low_supports_breakpoints): Define.
1753 (tic6x_get_pc): Turn into...
1754 (tic6x_target::low_get_pc): ...this.
1755 (tic6x_set_pc): Turn into...
1756 (tic6x_target::low_set_pc): ...this.
1757 (the_low_target): Remove the op fields.
1759 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1761 Turn some more static methods in linux-low into private methods
1762 of linux_process_target.
1764 * linux-low.cc (get_pc): Turn into...
1765 (linux_process_target::get_pc): ...this.
1766 (save_stop_reason): Turn into...
1767 (linux_process_target::save_stop_reason): ...this.
1768 (thread_still_has_status_pending_p): Turn into...
1769 (linux_process_target::thread_still_has_status_pending): ...this.
1770 (status_pending_p_callback): Turn into...
1771 (linux_process_target::status_pending_p_callback): ...this.
1772 (resume_stopped_resumed_lwps): Turn into...
1773 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1774 (install_software_single_step_breakpoints): Turn into...
1775 (linux_process_target::install_software_single_step_breakpoints):
1777 (single_step): Turn into...
1778 (linux_process_target::single_step): ...this.
1779 (linux_resume_one_lwp_throw): Turn into...
1780 (linux_process_target::resume_one_lwp_throw): ...this.
1781 (linux_resume_one_lwp): Turn into...
1782 (linux_process_target::resume_one_lwp): ...this.
1783 (resume_status_pending_p): Turn into...
1784 (linux_process_target::resume_status_pending): ...this.
1785 (need_step_over_p): Turn into...
1786 (linux_process_target::thread_needs_step_over): ...this.
1787 (linux_resume_one_thread): Turn into...
1788 (linux_process_target::resume_one_thread): ...this.
1789 (proceed_one_lwp): Turn into...
1790 (linux_process_target::proceed_one_lwp): ...this.
1791 (unsuspend_and_proceed_one_lwp): Turn into...
1792 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1794 Update the calls/references to the above functions below.
1796 (linux_process_target::handle_extended_wait)
1797 (linux_process_target::filter_event)
1798 (linux_process_target::wait_for_event_filtered)
1799 (linux_process_target::wait_1)
1800 (linux_process_target::move_out_of_jump_pad)
1801 (linux_process_target::start_step_over)
1802 (linux_process_target::resume)
1803 (linux_process_target::proceed_all_lwps)
1804 (regsets_store_inferior_registers)
1805 (linux_process_target::store_register)
1807 * linux-low.h (class linux_process_target)
1810 <thread_still_has_status_pending>
1811 <status_pending_p_callback>
1812 <resume_stopped_resumed_lwps>
1813 <install_software_single_step_breakpoints>
1815 <resume_one_lwp_throw>
1817 <resume_status_pending>
1818 <thread_needs_step_over>
1821 <unsuspend_and_proceed_one_lwp>: Declare.
1823 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1825 Turn the 'fetch_register' linux target op into a method of
1826 linux_process_target.
1828 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1829 (class linux_process_target) <low_fetch_register>: Declare.
1830 * linux-x86-low.cc (the_low_target)
1831 * linux-aarch64-low.cc (the_low_target)
1832 * linux-arm-low.cc (the_low_target)
1833 * linux-bfin-low.cc (the_low_target)
1834 * linux-cris-low.cc (the_low_target)
1835 * linux-crisv32-low.cc (the_low_target)
1836 * linux-m32r-low.cc (the_low_target)
1837 * linux-m68k-low.cc (the_low_target)
1838 * linux-nios2-low.cc (the_low_target)
1839 * linux-ppc-low.cc (the_low_target)
1840 * linux-s390-low.cc (the_low_target)
1841 * linux-sh-low.cc (the_low_target)
1842 * linux-sparc-low.cc (the_low_target)
1843 * linux-tic6x-low.cc (the_low_target)
1844 * linux-tile-low.cc (the_low_target)
1845 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1846 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1848 (ia64_fetch_register): Turn into...
1849 (ia64_target::low_fetch_register): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1853 (mips_fetch_register): Turn into...
1854 (mips_target::low_fetch_register): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1858 (riscv_fetch_register): Turn into...
1859 (riscv_target::low_fetch_register): ...this.
1860 (the_low_target): Remove the op field.
1862 Update the callers below.
1864 * linux-low.cc (linux_process_target::fetch_registers)
1865 (linux_process_target::low_fetch_register)
1867 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1869 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1870 linux target ops into methods of linux_process_target.
1872 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1873 (class linux_process_target) <fetch_register>
1875 <usr_fetch_inferior_registers>
1876 <usr_store_inferior_registers>
1877 <low_cannot_fetch_register>
1878 <low_cannot_fetch_register> Declare.
1879 * linux-low.cc (fetch_register): Turn into...
1880 (linux_process_target::fetch_register): ...this.
1881 (store_register): Turn into ...
1882 (linux_process_target::store_register): ...this.
1883 (usr_fetch_inferior_registers): Turn into...
1884 (linux_process_target::usr_fetch_inferior_registers): ...this.
1885 (usr_store_inferior_registers): Turn into...
1886 (linux_process_target::usr_store_inferior_registers): ...this.
1887 * linux-x86-low.cc (class x86_target)
1888 <low_cannot_fetch_register>
1889 <low_cannot_store_register>: Declare.
1890 (x86_cannot_store_register): Turn into...
1891 (x86_target::low_cannot_store_register): ...this.
1892 (x86_cannot_fetch_register): Turn into...
1893 (x86_target::low_cannot_fetch_register): ...this.
1894 (the_low_target): Remove the target op fields.
1895 * linux-aarch64-low.cc (class aarch64_target)
1896 <low_cannot_fetch_register>
1897 <low_cannot_store_register>: Declare.
1898 (aarch64_target::low_cannot_fetch_register)
1899 (aarch64_target::low_cannot_store_register): Define.
1900 (the_low_target): Remove the op fields.
1901 * linux-arm-low.cc (class arm_target)
1902 <low_cannot_fetch_register>
1903 <low_cannot_store_register>: Declare.
1904 (arm_cannot_fetch_register): Turn into...
1905 (arm_target::low_cannot_fetch_register): ...this.
1906 (arm_cannot_store_register): Turn into...
1907 (arm_target::low_cannot_store_register): ...this.
1908 (the_low_target): Remove the op fields.
1909 * linux-bfin-low.cc (class bfin_target)
1910 <low_cannot_fetch_register>
1911 <low_cannot_store_register>: Declare.
1912 (bfin_cannot_fetch_register): Turn into...
1913 (bfin_target::low_cannot_fetch_register): ...this.
1914 (bfin_cannot_store_register): Turn into...
1915 (bfin_target::low_cannot_store_register): ...this.
1916 (the_low_target): Remove the op fields.
1917 * linux-cris-low.cc (class cris_target)
1918 <low_cannot_fetch_register>
1919 <low_cannot_store_register>: Declare.
1920 (cris_cannot_fetch_register): Turn into...
1921 (cris_target::low_cannot_fetch_register): ...this.
1922 (cris_cannot_store_register): Turn into...
1923 (cris_target::low_cannot_store_register): ...this.
1924 (the_low_target): Remove the op fields.
1925 * linux-crisv32-low.cc (class crisv32_target)
1926 <low_cannot_fetch_register>
1927 <low_cannot_store_register>: Declare.
1928 (crisv32_target::low_cannot_fetch_register)
1929 (crisv32_target::low_cannot_store_register): Define.
1930 (the_low_target): Remove the op fields.
1931 * linux-ia64-low.cc (class ia64_target)
1932 <low_cannot_fetch_register>
1933 <low_cannot_store_register>: Declare.
1934 (ia64_cannot_fetch_register): Turn into...
1935 (ia64_target::low_cannot_fetch_register): ...this.
1936 (ia64_cannot_store_register): Turn into...
1937 (ia64_target::low_cannot_store_register): ...this.
1938 (the_low_target): Remove the op fields.
1939 * linux-m32r-low.cc (class m32r_target)
1940 <low_cannot_fetch_register>
1941 <low_cannot_store_register>: Declare.
1942 (m32r_cannot_fetch_register): Turn into...
1943 (m32r_target::low_cannot_fetch_register): ...this.
1944 (m32r_cannot_store_register): Turn into...
1945 (m32r_target::low_cannot_store_register): ...this.
1946 (the_low_target): Remove the op fields.
1947 * linux-m68k-low.cc (class m68k_target)
1948 <low_cannot_fetch_register>
1949 <low_cannot_store_register>: Declare.
1950 (m68k_cannot_fetch_register): Turn into...
1951 (m68k_target::low_cannot_fetch_register): ...this.
1952 (m68k_cannot_store_register): Turn into...
1953 (m68k_target::low_cannot_store_register): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-mips-low.cc (class mips_target)
1956 <low_cannot_fetch_register>
1957 <low_cannot_store_register>: Declare.
1958 (mips_cannot_fetch_register): Turn into...
1959 (mips_target::low_cannot_fetch_register): ...this.
1960 (mips_cannot_store_register): Turn into...
1961 (mips_target::low_cannot_store_register): ...this.
1962 (get_usrregs_info): Inline at the call sites in
1963 low_cannot_fetch_register and low_cannot_store_register,
1965 (the_low_target): Remove the op fields.
1966 * linux-nios2-low.cc (class nios2_target)
1967 <low_cannot_fetch_register>
1968 <low_cannot_store_register>: Declare.
1969 (nios2_cannot_fetch_register): Turn into...
1970 (nios2_target::low_cannot_fetch_register): ...this.
1971 (nios2_cannot_store_register): Turn into...
1972 (nios2_target::low_cannot_store_register): ...this.
1973 (the_low_target): Remove the op fields.
1974 * linux-ppc-low.cc (class ppc_target)
1975 <low_cannot_fetch_register>
1976 <low_cannot_store_register>: Declare.
1977 (ppc_cannot_fetch_register): Turn into...
1978 (ppc_target::low_cannot_fetch_register): ...this.
1979 (ppc_cannot_store_register): Turn into...
1980 (ppc_target::low_cannot_store_register): ...this.
1981 (the_low_target): Remove the op fields.
1982 * linux-riscv-low.cc (class riscv_target)
1983 <low_cannot_fetch_register>
1984 <low_cannot_store_register>: Declare.
1985 (riscv_target::low_cannot_fetch_register)
1986 (riscv_target::low_cannot_store_register): Define.
1987 (the_low_target): Remove the op fields.
1988 * linux-s390-low.cc (class s390_target)
1989 <low_cannot_fetch_register>
1990 <low_cannot_store_register>: Declare.
1991 (s390_cannot_fetch_register): Turn into...
1992 (s390_target::low_cannot_fetch_register): ...this.
1993 (s390_cannot_store_register): Turn into...
1994 (s390_target::low_cannot_store_register): ...this.
1995 (the_low_target): Remove the op fields.
1996 * linux-sh-low.cc (class sh_target)
1997 <low_cannot_fetch_register>
1998 <low_cannot_store_register>: Declare.
1999 (sh_cannot_fetch_register): Turn into...
2000 (sh_target::low_cannot_fetch_register): ...this.
2001 (sh_cannot_store_register): Turn into...
2002 (sh_target::low_cannot_store_register): ...this.
2003 (the_low_target): Remove the op fields.
2004 * linux-sparc-low.cc (class sparc_target)
2005 <low_cannot_fetch_register>
2006 <low_cannot_store_register>: Declare.
2007 (sparc_cannot_fetch_register): Turn into...
2008 (sparc_target::low_cannot_fetch_register): ...this.
2009 (sparc_cannot_store_register): Turn into...
2010 (sparc_target::low_cannot_store_register): ...this.
2011 (the_low_target): Remove the op fields.
2012 * linux-tic6x-low.cc (class tic6x_target)
2013 <low_cannot_fetch_register>
2014 <low_cannot_store_register>: Declare.
2015 (tic6x_cannot_fetch_register): Turn into...
2016 (tic6x_target::low_cannot_fetch_register): ...this.
2017 (tic6x_cannot_store_register): Turn into...
2018 (tic6x_target::low_cannot_store_register): ...this.
2019 (the_low_target): Remove the op fields.
2020 * linux-tile-low.cc (class tile_target)
2021 <low_cannot_fetch_register>
2022 <low_cannot_store_register>: Declare.
2023 (tile_cannot_fetch_register): Turn into...
2024 (tile_target::low_cannot_fetch_register): ...this.
2025 (tile_cannot_store_register): Turn into...
2026 (tile_target::low_cannot_store_register): ...this.
2027 (the_low_target): Remove the op fields.
2028 * linux-xtensa-low.cc (class xtensa_target)
2029 <low_cannot_fetch_register>
2030 <low_cannot_store_register>: Declare.
2031 (xtensa_target::low_cannot_fetch_register)
2032 (xtensa_target::low_cannot_store_register): Define.
2033 (the_low_target): Remove the op fields.
2035 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037 Turn the 'regs_info' linux target op into a method of
2038 linux_process_target.
2040 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2041 (class linux_process_target) <get_regs_info>: Define.
2043 Update the callers below.
2045 * linux-low.cc (linux_process_target::fetch_registers)
2046 (linux_process_target::store_registers)
2047 * proc-service.cc (gregset_info)
2049 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2050 (x86_linux_regs_info): Turn into ...
2051 (x86_target::get_regs_info): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2055 (aarch64_regs_info): Turn into ...
2056 (aarch64_target::get_regs_info): ...this.
2057 (the_low_target): Remove the op field.
2058 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2059 (arm_regs_info): Turn into ...
2060 (arm_target::get_regs_info): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2063 (bfin_regs_info): Turn into ...
2064 (bfin_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2067 (cris_regs_info): Turn into ...
2068 (cris_target::get_regs_info): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2072 (crisv32_regs_info): Turn into ...
2073 (crisv32_target::get_regs_info): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2076 (ia64_regs_info): Turn into ...
2077 (ia64_target::get_regs_info): ...this.
2078 (the_low_target): Remove the op field.
2079 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2080 (m32r_regs_info): Turn into ...
2081 (m32r_target::get_regs_info): ...this.
2082 (the_low_target): Remove the op field.
2083 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2084 (m68k_regs_info): Turn into ...
2085 (m68k_target::get_regs_info): ...this.
2086 (the_low_target): Remove the op field.
2087 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2088 (mips_regs_info): Turn into ...
2089 (mips_target::get_regs_info): ...this.
2090 (the_low_target): Remove the op field.
2091 (get_usrregs_info): Update the call to the op.
2092 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2093 (nios2_regs_info): Turn into ...
2094 (nios2_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2097 (ppc_regs_info): Turn into ...
2098 (ppc_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2101 (riscv_regs_info): Turn into ...
2102 (riscv_target::get_regs_info): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2105 (s390_regs_info): Turn into ...
2106 (s390_target::get_regs_info): ...this.
2107 (the_low_target): Remove the op field.
2108 (s390_collect_ptrace_register)
2109 (s390_supply_ptrace_register)
2110 (s390_fill_gregset): Update the call to the op.
2111 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2112 (sh_regs_info): Turn into ...
2113 (sh_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2116 (sparc_regs_info): Turn into ...
2117 (sparc_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2120 (tic6x_regs_info): Turn into ...
2121 (tic6x_target::get_regs_info): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2124 (tile_regs_info): Turn into ...
2125 (tile_target::get_regs_info): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2129 (xtensa_regs_info): Turn into ...
2130 (xtensa_target::get_regs_info): ...this.
2131 (the_low_target): Remove the op field.
2133 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2135 Turn the 'arch_setup' linux target op into a method of
2136 linux_process_target.
2138 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2139 (class linux_process_target) <arch_setup_thread>
2140 <low_arch_setup>: New declarations.
2141 * linux-low.cc (linux_arch_setup): Delete.
2142 (linux_arch_setup_thread): Turn into...
2143 (linux_process_target::arch_setup_thread): ... this.
2145 Update the callers below.
2147 (linux_process_target::handle_extended_wait)
2148 (linux_process_target::post_create_inferior)
2149 (linux_process_target::filter_event)
2151 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2153 (x86_linux_update_xmltarget): Turn into...
2154 (x86_target::update_xmltarget): ...this.
2155 (x86_linux_process_qsupported): Update the call to
2156 x86_linux_update_xmltarget.
2157 (x86_arch_setup): Turn into ...
2158 (x86_target::low_arch_setup): ...this.
2159 (the_low_target): Remove the op field.
2160 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2162 (aarch64_arch_setup): Turn into ...
2163 (aarch64_target::low_arch_setup): ...this.
2164 (the_low_target): Remove the op field.
2165 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2167 (arm_arch_setup): Turn into ...
2168 (arm_target::low_arch_setup): ...this.
2169 (the_low_target): Remove the op field.
2170 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2172 (bfin_arch_setup): Turn into ...
2173 (bfin_target::low_arch_setup): ...this.
2174 (the_low_target): Remove the op field.
2175 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2177 (cris_arch_setup): Turn into ...
2178 (cris_target::low_arch_setup): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2182 (crisv32_arch_setup): Turn into ...
2183 (crisv32_target::low_arch_setup): ...this.
2184 (the_low_target): Remove the op field.
2185 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2187 (ia64_arch_setup): Turn into ...
2188 (ia64_target::low_arch_setup): ...this.
2189 (the_low_target): Remove the op field.
2190 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2192 (m32r_arch_setup): Turn into ...
2193 (m32r_target::low_arch_setup): ...this.
2194 (the_low_target): Remove the op field.
2195 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2197 (m68k_arch_setup): Turn into ...
2198 (m68k_target::low_arch_setup): ...this.
2199 (the_low_target): Remove the op field.
2200 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2202 (mips_arch_setup): Turn into ...
2203 (mips_target::low_arch_setup): ...this.
2204 (the_low_target): Remove the op field.
2205 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2207 (nios2_arch_setup): Turn into ...
2208 (nios2_target::low_arch_setup): ...this.
2209 (the_low_target): Remove the op field.
2210 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2212 (ppc_arch_setup): Turn into ...
2213 (ppc_target::low_arch_setup): ...this.
2214 (the_low_target): Remove the op field.
2215 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2217 (riscv_arch_setup): Turn into ...
2218 (riscv_target::low_arch_setup): ...this.
2219 (the_low_target): Remove the op field.
2220 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2222 (s390_arch_setup): Turn into ...
2223 (s390_target::low_arch_setup): ...this.
2224 (the_low_target): Remove the op field.
2225 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2227 (sh_arch_setup): Turn into ...
2228 (sh_target::low_arch_setup): ...this.
2229 (the_low_target): Remove the op field.
2230 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2232 (sparc_arch_setup): Turn into ...
2233 (sparc_target::low_arch_setup): ...this.
2234 (the_low_target): Remove the op field.
2235 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2237 (tic6x_arch_setup): Turn into ...
2238 (tic6x_target::low_arch_setup): ...this.
2239 (the_low_target): Remove the op field.
2240 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2242 (tile_arch_setup): Turn into ...
2243 (tile_target::low_arch_setup): ...this.
2244 (the_low_target): Remove the op field.
2245 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2247 (xtensa_arch_setup): Turn into ...
2248 (xtensa_target::low_arch_setup): ...this.
2249 (the_low_target): Remove the op field.
2251 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2253 * linux-low.h (the_linux_target): New extern declaration.
2254 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2256 (the_linux_target): Remove.
2257 * linux-x86-low.cc (class x86_target): New class.
2258 (the_x86_target): New static object.
2259 (the_linux_target): Define as pointer to the_x86_target.
2260 * linux-aarch64-low.cc (class aarch64_target): New class.
2261 (the_aarch64_target): New static object.
2262 (the_linux_target): Define as pointer to the_aarch64_target.
2263 * linux-arm-low.cc (class arm_target): New class.
2264 (the_arm_target): New static object.
2265 (the_linux_target): Define as pointer to the_arm_target.
2266 * linux-bfin-low.cc (class bfin_target): New class.
2267 (the_bfin_target): New static object.
2268 (the_linux_target): Define as pointer to the_bfin_target.
2269 * linux-cris-low.cc (class cris_target): New class.
2270 (the_cris_target): New static object.
2271 (the_linux_target): Define as pointer to the_cris_target.
2272 * linux-crisv32-low.cc (class crisv32_target): New class.
2273 (the_crisv32_target): New static object.
2274 (the_linux_target): Define as pointer to the_crisv32_target.
2275 * linux-ia64-low.cc (class ia64_target): New class.
2276 (the_ia64_target): New static object.
2277 (the_linux_target): Define as pointer to the_ia64_target.
2278 * linux-m32r-low.cc (class m32r_target): New class.
2279 (the_m32r_target): New static object.
2280 (the_linux_target): Define as pointer to the_m32r_target.
2281 * linux-m68k-low.cc (class m68k_target): New class.
2282 (the_m68k_target): New static object.
2283 (the_linux_target): Define as pointer to the_m68k_target.
2284 * linux-mips-low.cc (class mips_target): New class.
2285 (the_mips_target): New static object.
2286 (the_linux_target): Define as pointer to the_mips_target.
2287 * linux-nios2-low.cc (class nios2_target): New class.
2288 (the_nios2_target): New static object.
2289 (the_linux_target): Define as pointer to the_nios2_target.
2290 * linux-ppc-low.cc (class ppc_target): New class.
2291 (the_ppc_target): New static object.
2292 (the_linux_target): Define as pointer to the_ppc_target.
2293 * linux-riscv-low.cc (class riscv_target): New class.
2294 (the_riscv_target): New static object.
2295 (the_linux_target): Define as pointer to the_riscv_target.
2296 * linux-s390-low.cc (class s390_target): New class.
2297 (the_s390_target): New static object.
2298 (the_linux_target): Define as pointer to the_s390_target.
2299 * linux-sh-low.cc (class sh_target): New class.
2300 (the_sh_target): New static object.
2301 (the_linux_target): Define as pointer to the_sh_target.
2302 * linux-sparc-low.cc (class sparc_target): New class.
2303 (the_sparc_target): New static object.
2304 (the_linux_target): Define as pointer to the_sparc_target.
2305 * linux-tic6x-low.cc (class tic6x_target): New class.
2306 (the_tic6x_target): New static object.
2307 (the_linux_target): Define as pointer to the_tic6x_target.
2308 * linux-tile-low.cc (class tile_target): New class.
2309 (the_tile_target): New static object.
2310 (the_linux_target): Define as pointer to the_tile_target.
2311 * linux-xtensa-low.cc (class xtensa_target): New class.
2312 (the_xtensa_target): New static object.
2313 (the_linux_target): Define as pointer to the_xtensa_target.
2315 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2317 Turn some static functions in linux-low.cc into private methods of
2318 linux_process_target.
2320 * linux-low.cc (handle_extended_wait): Turn into ...
2321 (linux_process_target::handle_extended_wait): ...this. Call
2322 'mourn' on 'this' object instead of 'the_target'.
2323 (maybe_move_out_of_jump_pad): Turn into...
2324 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2325 (linux_low_filter_event): Turn into...
2326 (linux_process_target::filter_event): ...this.
2327 (linux_wait_for_event_filtered): Turn into...
2328 (linux_process_target::wait_for_event_filtered): ...this.
2329 (linux_wait_for_event): Turn into...
2330 (linux_process_target::wait_for_event): ...this.
2331 (linux_wait_1): Turn into...
2332 (linux_process_target::wait_1): ...this.
2333 (wait_for_sigstop): Turn into...
2334 (linux_process_target::wait_for_sigstop): ...this.
2335 (move_out_of_jump_pad_callback): Turn into...
2336 (linux_process_target::move_out_of_jump_pad): ...this.
2337 (stop_all_lwps): Turn into...
2338 (linux_process_target::stop_all_lwps): ...this.
2339 (start_step_over): Turn into...
2340 (linux_process_target::start_step_over): ...this.
2341 (complete_ongoing_step_over): Turn into...
2342 (linux_process_target::complete_ongoing_step_over): ...this.
2343 (proceed_all_lwps): Turn into...
2344 (linux_process_target::proceed_all_lwps): ...this.
2345 (unstop_all_lwps): Turn into...
2346 (linux_process_target::unstop_all_lwps): ...this.
2348 * linux-low.h (class linux_process_target)
2349 <handle_extended_wait>
2350 <maybe_move_out_of_jump_pad>
2352 <wait_for_event_filtered>
2356 <move_out_of_jump_pad>
2359 <complete_ongoing_step_over>
2361 <unstop_all_lwps>: Declare.
2363 Update the callers below.
2365 * linux-low.cc (linux_process_target::attach): Update.
2366 (linux_process_target::stabilize_threads): Ditto.
2367 (linux_process_target::wait): Ditto.
2369 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2371 * linux-low.h (struct linux_target_ops): Update the comment for
2372 'cannot_store_register' to return 0 or 1.
2373 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2376 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2378 * config.in: Re-generate.
2379 * configure: Re-generate.
2381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2383 * regcache.cc (find_register_by_number): Update.
2384 * tdesc.cc (init_target_desc): Likewise.
2385 * tdesc.h (target_desc::reg_defs): Likewise.
2387 2020-03-12 Tom Tromey <tom@tromey.com>
2389 * configure: Rebuild.
2390 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2391 (WIN32APILIBS): New subst.
2392 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2394 (gdbsupport/%.o): Remove target.
2395 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2396 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2397 (WIN32APILIBS): New variable.
2398 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2399 (gdbreplay$(EXEEXT)): Likewise.
2401 2020-03-12 Tom Tromey <tom@tromey.com>
2403 * config.in, configure: Rebuild.
2404 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2405 * acinclude.m4: Include gettext-sister.m4.
2406 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2408 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2409 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2411 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2413 * acinclude.m4: Update path to selftest.m4.
2415 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2417 * configure.ac: Don't source bfd/development.sh, move
2418 GDB_AC_COMMON higher.
2419 * configure: Re-generate.
2421 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2423 * configure: Re-generate.
2425 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2427 * configure: Re-generate.
2429 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2431 * .dir-locals.el: New file.
2433 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435 * .gitattributes: New file.
2437 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2439 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2440 reply into an S reply.
2441 * server.cc (disable_packet_T): New global.
2442 (captured_main): Set new global when appropriate.
2443 * server.h (disable_packet_T): Declare.
2445 2020-02-21 Tom Tromey <tom@tromey.com>
2447 * Makefile.in (mostlyclean): New target.
2449 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2451 * target.h (struct process_stratum_target): Remove.
2452 (class process_target): Rename to ...
2453 (class process_stratum_target): ... this.
2454 * linux-low.h (class linux_process_target): Derive from
2455 'process_stratum_target'.
2456 * linux-low.cc (linux_target_ops): Remove.
2457 (initialize_low): Set the_target to the singleton instance of
2458 linux_process_target.
2459 * lynx-low.h (class lynx_process_target): Derive from
2460 'process_stratum_target'.
2461 * lynx-low.cc (lynx_target_ops): Remove.
2462 (initialize_low): Set the_target to the singleton instance of
2463 lynx_process_target.
2464 * nto-low.h (class nto_process_target): Derive from
2465 'process_stratum_target'.
2466 * nto-low.cc (nto_target_ops): Remove.
2467 (initialize_low): Set the_target to the singleton instance of
2469 * win32-low.h (class win32_process_target): Derive from
2470 'process_stratum_target'.
2471 * win32-low.cc (win32_target_ops): Remove.
2472 (initialize_low): Set the_target to the singleton instance of
2473 win32_process_target.
2475 Replace 'the_target->pt' with 'the_target' in the uses below.
2477 * hostio.cc (hostio_error)
2482 * linux-aarch32-low.cc (arm_breakpoint_at)
2483 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2484 * linux-arm-low.cc (arm_sigreturn_next_pc)
2486 (arm_get_syscall_trapinfo)
2487 * linux-cris-low.cc (cris_breakpoint_at)
2488 * linux-crisv32-low.cc (cris_breakpoint_at)
2489 * linux-low.cc (handle_extended_wait)
2492 (linux_process_target::breakpoint_kind_from_pc)
2494 * linux-m32r-low.cc (m32r_breakpoint_at)
2495 * linux-mips-low.cc (mips_breakpoint_at)
2496 * linux-nios2-low.cc (nios2_breakpoint_at)
2497 * linux-ppc-low.cc (ppc_breakpoint_at)
2498 * linux-s390-low.cc (s390_get_hwcap)
2499 * linux-sh-low.cc (sh_breakpoint_at)
2500 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2501 (sparc_store_gregset_from_stack)
2502 (sparc_breakpoint_at)
2503 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2504 * linux-tile-low.cc (tile_breakpoint_at)
2505 * linux-x86-low.cc (x86_breakpoint_at)
2506 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2507 * mem-break.cc (bp_size)
2509 (insert_memory_breakpoint)
2510 (set_raw_breakpoint_at)
2511 (delete_raw_breakpoint)
2513 (uninsert_raw_breakpoint)
2514 (reinsert_raw_breakpoint)
2515 (validate_inserted_breakpoint)
2516 * regcache.cc (regcache_read_pc)
2518 * remote-utils.cc (putpkt_binary_1)
2521 (prepare_resume_reply)
2522 * server.cc (handle_general_set)
2525 (handle_qxfer_exec_file)
2526 (handle_qxfer_libraries_svr4)
2527 (handle_qxfer_osdata)
2528 (handle_qxfer_siginfo)
2529 (handle_qxfer_fdpic)
2533 (queue_stop_reply_callback)
2535 * target.cc (prepare_to_access_memory)
2536 (done_accessing_memory)
2537 (read_inferior_memory)
2538 (target_write_memory)
2539 (target_stop_and_wait)
2541 (target_mourn_inferior)
2542 (target_continue_no_signal)
2544 (target_supports_multi_process)
2547 (target_create_inferior)
2548 (target_post_create_inferior)
2550 (target_supports_fork_events)
2551 (target_supports_vfork_events)
2552 (target_supports_exec_events)
2553 (target_handle_new_gdb_connection)
2556 (fetch_inferior_registers)
2557 (store_inferior_registers)
2559 (target_supports_non_stop)
2561 (target_process_qsupported)
2562 (target_supports_catch_syscall)
2563 (target_get_ipa_tdesc_idx)
2564 (target_supports_tracepoints)
2565 (target_supports_fast_tracepoints)
2566 (target_get_min_fast_tracepoint_insn_len)
2567 (target_thread_stopped)
2569 (target_unpause_all)
2570 (target_stabilize_threads)
2571 (target_install_fast_tracepoint_jump_pad)
2573 (target_supports_disable_randomization)
2574 (target_supports_agent)
2575 (target_enable_btrace)
2576 (target_disable_btrace)
2577 (target_read_btrace)
2578 (target_read_btrace_conf)
2579 (target_supports_range_stepping)
2580 (target_supports_stopped_by_sw_breakpoint)
2581 (target_stopped_by_sw_breakpoint)
2582 (target_supports_stopped_by_hw_breakpoint)
2583 (target_supports_hardware_single_step)
2584 (target_stopped_by_hw_breakpoint)
2585 (target_breakpoint_kind_from_pc)
2586 (target_breakpoint_kind_from_current_state)
2587 (target_supports_software_single_step)
2588 (target_core_of_thread)
2589 (target_thread_name)
2590 (target_thread_handle)
2591 * win32-low.cc (do_initial_child_stuff)
2593 Rename target op default definitions listed below.
2595 * target.cc (process_target::post_create_inferior): Rename as ...
2596 (process_stratum_target::post_create_inferior): ... this.
2597 (process_target::prepare_to_access_memory): Rename as ...
2598 (process_stratum_target::prepare_to_access_memory): ... this.
2599 (process_target::done_accessing_memory): Rename as ...
2600 (process_stratum_target::done_accessing_memory): ... this.
2601 (process_target::look_up_symbols): Rename as ...
2602 (process_stratum_target::look_up_symbols): ... this.
2603 (process_target::supports_read_auxv): Rename as ...
2604 (process_stratum_target::supports_read_auxv): ... this.
2605 (process_target::read_auxv): Rename as ...
2606 (process_stratum_target::read_auxv): ... this.
2607 (process_target::supports_z_point_type): Rename as ...
2608 (process_stratum_target::supports_z_point_type): ... this.
2609 (process_target::insert_point): Rename as ...
2610 (process_stratum_target::insert_point): ... this.
2611 (process_target::remove_point): Rename as ...
2612 (process_stratum_target::remove_point): ... this.
2613 (process_target::stopped_by_sw_breakpoint): Rename as ...
2614 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2615 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2616 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2617 (process_target::stopped_by_hw_breakpoint): Rename as ...
2618 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2619 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2620 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2621 (process_target::supports_hardware_single_step): Rename as ...
2622 (process_stratum_target::supports_hardware_single_step): ... this.
2623 (process_target::stopped_by_watchpoint): Rename as ...
2624 (process_stratum_target::stopped_by_watchpoint): ... this.
2625 (process_target::stopped_data_address): Rename as ...
2626 (process_stratum_target::stopped_data_address): ... this.
2627 (process_target::supports_read_offsets): Rename as ...
2628 (process_stratum_target::supports_read_offsets): ... this.
2629 (process_target::read_offsets): Rename as ...
2630 (process_stratum_target::read_offsets): ... this.
2631 (process_target::supports_get_tls_address): Rename as ...
2632 (process_stratum_target::supports_get_tls_address): ... this.
2633 (process_target::get_tls_address): Rename as ...
2634 (process_stratum_target::get_tls_address): ... this.
2635 (process_target::hostio_last_error): Rename as ...
2636 (process_stratum_target::hostio_last_error): ... this.
2637 (process_target::supports_qxfer_osdata): Rename as ...
2638 (process_stratum_target::supports_qxfer_osdata): ... this.
2639 (process_target::qxfer_osdata): Rename as ...
2640 (process_stratum_target::qxfer_osdata): ... this.
2641 (process_target::supports_qxfer_siginfo): Rename as ...
2642 (process_stratum_target::supports_qxfer_siginfo): ... this.
2643 (process_target::qxfer_siginfo): Rename as ...
2644 (process_stratum_target::qxfer_siginfo): ... this.
2645 (process_target::supports_non_stop): Rename as ...
2646 (process_stratum_target::supports_non_stop): ... this.
2647 (process_target::async): Rename as ...
2648 (process_stratum_target::async): ... this.
2649 (process_target::start_non_stop): Rename as ...
2650 (process_stratum_target::start_non_stop): ... this.
2651 (process_target::supports_multi_process): Rename as ...
2652 (process_stratum_target::supports_multi_process): ... this.
2653 (process_target::supports_fork_events): Rename as ...
2654 (process_stratum_target::supports_fork_events): ... this.
2655 (process_target::supports_vfork_events): Rename as ...
2656 (process_stratum_target::supports_vfork_events): ... this.
2657 (process_target::supports_exec_events): Rename as ...
2658 (process_stratum_target::supports_exec_events): ... this.
2659 (process_target::handle_new_gdb_connection): Rename as ...
2660 (process_stratum_target::handle_new_gdb_connection): ... this.
2661 (process_target::handle_monitor_command): Rename as ...
2662 (process_stratum_target::handle_monitor_command): ... this.
2663 (process_target::core_of_thread): Rename as ...
2664 (process_stratum_target::core_of_thread): ... this.
2665 (process_target::supports_read_loadmap): Rename as ...
2666 (process_stratum_target::supports_read_loadmap): ... this.
2667 (process_target::read_loadmap): Rename as ...
2668 (process_stratum_target::read_loadmap): ... this.
2669 (process_target::process_qsupported): Rename as ...
2670 (process_stratum_target::process_qsupported): ... this.
2671 (process_target::supports_tracepoints): Rename as ...
2672 (process_stratum_target::supports_tracepoints): ... this.
2673 (process_target::read_pc): Rename as ...
2674 (process_stratum_target::read_pc): ... this.
2675 (process_target::write_pc): Rename as ...
2676 (process_stratum_target::write_pc): ... this.
2677 (process_target::supports_thread_stopped): Rename as ...
2678 (process_stratum_target::supports_thread_stopped): ... this.
2679 (process_target::thread_stopped): Rename as ...
2680 (process_stratum_target::thread_stopped): ... this.
2681 (process_target::supports_get_tib_address): Rename as ...
2682 (process_stratum_target::supports_get_tib_address): ... this.
2683 (process_target::get_tib_address): Rename as ...
2684 (process_stratum_target::get_tib_address): ... this.
2685 (process_target::pause_all): Rename as ...
2686 (process_stratum_target::pause_all): ... this.
2687 (process_target::unpause_all): Rename as ...
2688 (process_stratum_target::unpause_all): ... this.
2689 (process_target::stabilize_threads): Rename as ...
2690 (process_stratum_target::stabilize_threads): ... this.
2691 (process_target::supports_fast_tracepoints): Rename as ...
2692 (process_stratum_target::supports_fast_tracepoints): ... this.
2693 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2694 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2695 (process_target::emit_ops): Rename as ...
2696 (process_stratum_target::emit_ops): ... this.
2697 (process_target::supports_disable_randomization): Rename as ...
2698 (process_stratum_target::supports_disable_randomization): ... this.
2699 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2700 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2701 (process_target::qxfer_libraries_svr4): Rename as ...
2702 (process_stratum_target::qxfer_libraries_svr4): ... this.
2703 (process_target::supports_agent): Rename as ...
2704 (process_stratum_target::supports_agent): ... this.
2705 (process_target::enable_btrace): Rename as ...
2706 (process_stratum_target::enable_btrace): ... this.
2707 (process_target::disable_btrace): Rename as ...
2708 (process_stratum_target::disable_btrace): ... this.
2709 (process_target::read_btrace): Rename as ...
2710 (process_stratum_target::read_btrace): ... this.
2711 (process_target::read_btrace_conf): Rename as ...
2712 (process_stratum_target::read_btrace_conf): ... this.
2713 (process_target::supports_range_stepping): Rename as ...
2714 (process_stratum_target::supports_range_stepping): ... this.
2715 (process_target::supports_pid_to_exec_file): Rename as ...
2716 (process_stratum_target::supports_pid_to_exec_file): ... this.
2717 (process_target::pid_to_exec_file): Rename as ...
2718 (process_stratum_target::pid_to_exec_file): ... this.
2719 (process_target::supports_multifs): Rename as ...
2720 (process_stratum_target::supports_multifs): ... this.
2721 (process_target::multifs_open): Rename as ...
2722 (process_stratum_target::multifs_open): ... this.
2723 (process_target::multifs_unlink): Rename as ...
2724 (process_stratum_target::multifs_unlink): ... this.
2725 (process_target::multifs_readlink): Rename as ...
2726 (process_stratum_target::multifs_readlink): ... this.
2727 (process_target::breakpoint_kind_from_pc): Rename as ...
2728 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2729 (process_target::breakpoint_kind_from_current_state): Rename as ...
2730 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2731 (process_target::thread_name): Rename as ...
2732 (process_stratum_target::thread_name): ... this.
2733 (process_target::thread_handle): Rename as ...
2734 (process_stratum_target::thread_handle): ... this.
2735 (process_target::supports_software_single_step): Rename as ...
2736 (process_stratum_target::supports_software_single_step): ... this.
2737 (process_target::supports_catch_syscall): Rename as ...
2738 (process_stratum_target::supports_catch_syscall): ... this.
2739 (process_target::get_ipa_tdesc_idx): Rename as ...
2740 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2742 2020-02-20 Pedro Alves <palves@redhat.com>
2744 * target.cc (set_target_ops): Simply copy the given target pointer
2745 instead of creating a copy of the pointed object.
2747 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2749 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2752 * target.h (struct process_stratum_target): Remove the target op.
2753 (class process_target): Add the target op.
2754 (target_get_ipa_tdesc_idx): Update the macro.
2755 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2757 Update the derived classes and callers below.
2759 * linux-low.cc (linux_target_ops): Update.
2760 (linux_get_ipa_tdesc_idx): Turn into ...
2761 (linux_process_target::get_ipa_tdesc_idx): ... this.
2762 * linux-low.h (class linux_process_target): Update.
2763 * lynx-low.cc (lynx_target_ops): Update.
2764 * nto-low.cc (nto_target_ops): Update.
2765 * win32-low.cc (win32_target_ops): Update.
2767 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2769 Turn process_stratum_target's supports_catch_syscall op into a
2770 method of process_target.
2772 * target.h (struct process_stratum_target): Remove the target op.
2773 (class process_target): Add the target op.
2774 (target_supports_catch_syscall): Update the macro.
2775 * target.cc (process_target::supports_catch_syscall): Define.
2777 Update the derived classes and callers below.
2779 * linux-low.cc (linux_target_ops): Update.
2780 (linux_supports_catch_syscall): Turn into ...
2781 (linux_process_target::supports_catch_syscall): ... this.
2782 * linux-low.h (class linux_process_target): Update.
2783 * lynx-low.cc (lynx_target_ops): Update.
2784 * nto-low.cc (nto_target_ops): Update.
2785 * win32-low.cc (win32_target_ops): Update.
2787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789 Turn process_stratum_target's supports_software_single_step op
2790 into a method of process_target.
2792 * target.h (struct process_stratum_target): Remove the target op.
2793 (class process_target): Add the target op.
2794 (target_supports_software_single_step): Update the macro.
2795 * target.cc (process_target::supports_software_single_step): Define.
2797 Update the derived classes and callers below.
2799 * linux-low.cc (linux_target_ops): Update.
2800 (linux_supports_software_single_step): Turn into ...
2801 (linux_process_target::supports_software_single_step): ... this.
2802 * linux-low.h (class linux_process_target): Update.
2803 * lynx-low.cc (lynx_target_ops): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 * win32-low.cc (win32_target_ops): Update.
2807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2809 Turn process_stratum_target's thread_name and thread_handle ops
2810 into methods of process_target.
2812 * target.h (struct process_stratum_target): Remove the target ops.
2813 (class process_target): Add the target ops.
2814 (target_thread_name): Update the macro.
2815 (target_thread_handle): Update the macro.
2816 * target.cc (process_target::thread_name): Define.
2817 (process_target::thread_handle): Define.
2819 Update the derived classes and callers below.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_process_target::thread_name): Define.
2823 (linux_process_target::thread_handle): Define.
2824 * linux-low.h (class linux_process_target): Update.
2825 * lynx-low.cc (lynx_target_ops): Update.
2826 * nto-low.cc (nto_target_ops): Update.
2827 * win32-low.cc (win32_target_ops): Update.
2829 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2831 Turn process_stratum_target's breakpoint_kind_from_pc,
2832 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2833 ops into methods of process_target.
2835 * target.h (struct process_stratum_target): Remove the target op.
2836 (class process_target): Add the target op.
2837 (target_breakpoint_kind_from_pc): Update the macro.
2838 (target_breakpoint_kind_from_current_state): Update the macro.
2839 (default_breakpoint_kind_from_pc): Remove declaration.
2840 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2841 (process_target::breakpoint_kind_from_pc): ... this.
2842 (process_target::breakpoint_kind_from_current_state): Define.
2844 Update the derived classes and callers below.
2846 * mem-break.cc (bp_size): Update.
2847 (bp_opcode): Update.
2848 * linux-low.cc (linux_target_ops): Update.
2849 (linux_wait_1): Update.
2850 (linux_breakpoint_kind_from_pc): Turn into ...
2851 (linux_process_target::breakpoint_kind_from_pc): ... this.
2852 (linux_sw_breakpoint_from_kind): Turn into ...
2853 (linux_process_target::sw_breakpoint_from_kind): ... this.
2854 (linux_breakpoint_kind_from_current_state): Turn into ...
2855 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2856 * linux-low.h (class linux_process_target): Update.
2857 * lynx-low.cc (lynx_target_ops): Update.
2858 (lynx_process_target::sw_breakpoint_from_kind): Define.
2859 * lynx-low.h (class lynx_process_target): Update.
2860 * nto-low.cc (nto_target_ops): Update.
2861 (nto_sw_breakpoint_from_kind): Turn into ...
2862 (nto_process_target::sw_breakpoint_from_kind): ... this.
2863 * nto-low.h (class nto_process_target): Update.
2864 * win32-low.cc (win32_target_ops): Update.
2865 (win32_sw_breakpoint_from_kind): Turn into ...
2866 (win32_process_target::sw_breakpoint_from_kind): ... this.
2867 * win32-low.h (class win32_process_target): Update.
2869 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871 Turn process_stratum_target's multifs_open, multifs_readlink,
2872 multifs_unlink ops into methods of process_target.
2874 * target.h (struct process_stratum_target): Remove the target ops.
2875 (class process_target): Add the target ops. Also add
2877 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2879 (process_target::supports_multifs): Define.
2880 (process_target::multifs_open): Define.
2881 (process_target::multifs_readlink): Define.
2882 (process_target::multifs_unlink): Define.
2884 Update the derived classes and callers below.
2886 * hostio.cc (handle_setfs): Update.
2887 (handle_open): Update.
2888 (handle_unlink): Update.
2889 (handle_readlink): Update.
2890 * linux-low.cc (linux_target_ops): Update.
2891 (linux_process_target::supports_multifs): Define.
2892 (linux_process_target::multifs_open): Define.
2893 (linux_process_target::multifs_readlink): Define.
2894 (linux_process_target::multifs_unlink): Define.
2895 * linux-low.h (class linux_process_target): Update.
2896 * lynx-low.cc (lynx_target_ops): Update.
2897 * nto-low.cc (nto_target_ops): Update.
2898 * win32-low.cc (win32_target_ops): Update.
2900 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902 Turn process_stratum_target's pid_to_exec_file op into a method
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op. Also add
2907 'supports_pid_to_exec_file'.
2908 * target.cc (process_target::pid_to_exec_file): Define.
2909 (process_target::supports_pid_to_exec_file): Define.
2911 Update the derived classes and callers below.
2913 * server.cc (handle_qxfer_exec_file): Update.
2914 (handle_query): Update.
2915 * linux-low.cc (linux_target_ops): Update.
2916 (linux_process_target::supports_pid_to_exec_file): Define.
2917 (linux_process_target::pid_to_exec_file): Define.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2925 Turn process_stratum_target's supports_range_stepping op into a
2926 method of process_target.
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op.
2930 (target_supports_range_stepping): Update the macro.
2931 * target.cc (process_target::supports_range_stepping): Define.
2933 Update the derived classes and callers below.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_supports_range_stepping): Turn into ...
2937 (linux_process_target::supports_range_stepping): ... this.
2938 * linux-low.h (class linux_process_target): Update.
2939 * lynx-low.cc (lynx_target_ops): Update.
2940 * nto-low.cc (nto_target_ops): Update.
2941 * win32-low.cc (win32_target_ops): Update.
2943 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945 Turn process_stratum_target's btrace-related ops (enable_btrace,
2946 disable_btrace, read_btrace, read_btrace_conf) into methods of
2949 * target.h (struct process_stratum_target): Remove the target ops.
2950 (class process_target): Add the target ops.
2951 (target_enable_btrace): Update.
2952 (target_disable_btrace): Update.
2953 (target_read_btrace): Update.
2954 (target_read_btrace_conf): Update.
2955 * target.cc (process_target::enable_btrace): Define.
2956 (process_target::disable_btrace): Define.
2957 (process_target::read_btrace): Define.
2958 (process_target::read_btrace_conf): Define.
2960 Update the derived classes and callers below.
2962 * linux-low.cc (linux_target_ops): Update.
2963 (linux_process_target:enable_btrace): Define as a wrapper around
2964 linux_enable_btrace.
2965 (linux_low_disable_btrace): Turn into ...
2966 (linux_process_target::disable_btrace): ... this.
2967 (linux_low_read_btrace): Turn into ...
2968 (linux_process_target::read_btrace): ... this.
2969 (linux_low_btrace_conf): Turn into ...
2970 (linux_process_target::read_btrace_conf): ... this.
2971 * linux-low.h (class linux_process_target): Update.
2972 * lynx-low.cc (lynx_target_ops): Update.
2973 * nto-low.cc (nto_target_ops): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2976 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2978 Turn process_stratum_target's supports_agent op into a method of
2981 * target.h (struct process_stratum_target): Remove the target op.
2982 (class process_target): Add the target op.
2983 (target_supports_agent): Update the macro.
2984 * target.cc (process_target::supports_agent): Define.
2986 Update the derived classes and callers below.
2988 * linux-low.cc (linux_target_ops): Update.
2989 (linux_supports_agent): Turn into ...
2990 (linux_process_target::supports_agent): ... this.
2991 * linux-low.h (class linux_process_target): Update.
2992 * lynx-low.cc (lynx_target_ops): Update.
2993 * nto-low.cc (nto_target_ops): Update.
2994 * win32-low.cc (win32_target_ops): Update.
2996 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2999 method of process_target.
3001 * target.h (struct process_stratum_target): Remove the target op.
3002 (class process_target): Add the target op. Also add
3003 'supports_qxfer_libraries_svr4'.
3004 * target.cc (process_target::qxfer_libraries_svr4): Define.
3005 (process_target::supports_qxfer_libraries_svr4): Define.
3007 Update the derived classes and callers below.
3009 * server.cc (handle_qxfer_libraries_svr4): Update.
3010 (handle_query): Update.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3013 (linux_qxfer_libraries_svr4): Turn into ...
3014 (linux_process_target::qxfer_libraries_svr4): ... this.
3015 * linux-low.h (class linux_process_target): Update.
3016 * lynx-low.cc (lynx_target_ops): Update.
3017 * nto-low.cc (nto_target_ops): Update.
3018 * win32-low.cc (win32_target_ops): Update.
3020 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3022 Turn process_stratum_target's supports_disable_randomization op
3023 into a method of process_target.
3025 * target.h (struct process_stratum_target): Remove the target op.
3026 (class process_target): Add the target op.
3027 (target_supports_disable_randomization): Update the macro.
3028 * target.cc (process_target::supports_disable_randomization): Define.
3030 Update the derived classes and callers below.
3032 * linux-low.cc (linux_target_ops): Update.
3033 (linux_supports_disable_randomization): Turn into ...
3034 (linux_process_target::supports_disable_randomization): ... this.
3035 * linux-low.h (class linux_process_target): Update.
3036 * lynx-low.cc (lynx_target_ops): Update.
3037 * nto-low.cc (nto_target_ops): Update.
3038 * win32-low.cc (win32_target_ops): Update.
3040 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3042 Turn process_stratum_target's emit_ops op into a method of
3045 * target.h (struct process_stratum_target): Remove the target op.
3046 (class process_target): Add the target op.
3047 (target_emit_ops): Update the macro.
3048 * target.cc (process_target::emit_ops): Define.
3050 Update the derived classes and callers below.
3052 * linux-low.cc (linux_target_ops): Update.
3053 (linux_emit_ops): Turn into ...
3054 (linux_process_target::emit_ops): ... 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 install_fast_tracepoint_jump_pad
3063 and get_min_fast_tracepoint_insn_len ops into methods of
3066 * target.h (struct process_stratum_target): Remove the target ops.
3067 (class process_target): Add the target ops. Also add
3068 'supports_fast_tracepoints'.
3069 (target_supports_fast_tracepoints): Update the macro.
3070 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3071 (install_fast_tracepoint_jump_pad): Update and rename the macro
3073 (target_install_fast_tracepoint_jump_pad): ... this.
3074 * target.cc (process_target::supports_fast_tracepoints): Define.
3075 (process_target::install_fast_tracepoint_jump_pad): Define.
3076 (process_target::get_min_fast_tracepoint_insn_len): Define.
3078 Update the derived classes and callers below.
3080 * tracepoint.cc (install_fast_tracepoint): Update.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_process_target::supports_fast_tracepoints): Define.
3083 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3084 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3085 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3086 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3087 * linux-low.h (class linux_process_target): Update.
3088 * lynx-low.cc (lynx_target_ops): Update.
3089 * nto-low.cc (nto_target_ops): Update.
3090 * win32-low.cc (win32_target_ops): Update.
3092 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094 Turn process_stratum_target's stabilize_threads op into a
3095 method of process_target.
3097 * target.h (struct process_stratum_target): Remove the target op.
3098 (class process_target): Add the target op.
3099 (target_stabilize_threads): Update the macro.
3100 * target.cc (process_target::stabilize_threads): Define.
3102 Update the derived classes and callers below.
3104 * server.cc (handle_status): Update.
3105 * tracepoint.cc (cmd_qtdp): Update.
3106 (cmd_qtstart): Update.
3107 * linux-low.cc (linux_target_ops): Update.
3108 (linux_stabilize_threads): Turn into ...
3109 (linux_process_target::stabilize_threads): ... this.
3110 (linux_wait_1): Update.
3111 * linux-low.h (class linux_process_target): Update.
3112 * lynx-low.cc (lynx_target_ops): Update.
3113 * nto-low.cc (nto_target_ops): Update.
3114 * win32-low.cc (win32_target_ops): Update.
3116 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3118 Turn process_stratum_target's pause_all and unpause_all ops
3119 into methods of process_target.
3121 * target.h (struct process_stratum_target): Remove the target ops.
3122 (class process_target): Add the target ops.
3123 (pause_all): Update the macro and rename to...
3124 (target_pause_all): ... this.
3125 (unpause_all): Update the macro and rename to...
3126 (target_unpause_all): ... this.
3127 * target.cc (process_target::pause_all): Define.
3128 (process_target::unpause_all): Define.
3130 Update the derived classes and callers below.
3132 * server.cc (handle_status): Update.
3133 * tracepoint.cc (clear_installed_tracepoints): Update.
3135 (cmd_qtstart): Update.
3136 (stop_tracing): Update.
3137 (cmd_qtstatus): Update.
3138 (upload_fast_traceframes): Update.
3139 (run_inferior_command): Update.
3140 * linux-low.cc (linux_target_ops): Update.
3141 (linux_pause_all): Turn into ...
3142 (linux_process_target::pause_all): ... this.
3143 (linux_unpause_all): Turn into ...
3144 (linux_process_target::unpause_all): ... this.
3145 (linux_process_target::prepare_to_access_memory): Update.
3146 (linux_process_target::done_accessing_memory): Update.
3147 * linux-low.h (class linux_process_target): Update.
3148 * lynx-low.cc (lynx_target_ops): Update.
3149 * nto-low.cc (nto_target_ops): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3152 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3154 Turn process_stratum_target's get_tib_address op into a method of
3157 * target.h (struct process_stratum_target): Remove the target op.
3158 (class process_target): Add the target op. Also add
3159 'supports_get_tib_address'.
3160 * target.cc (process_target::get_tib_address): Define.
3161 (process_target::supports_get_tib_address): Define.
3163 Update the derived classes and callers below.
3165 * server.cc (handle_query): Update.
3166 * linux-low.cc (win32_target_ops): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 * win32-low.cc (win32_target_ops): Update.
3170 (win32_process_target::supports_get_tib_address): Define.
3171 (win32_get_tib_address): Turn into ...
3172 (win32_process_target::get_tib_address): ... this.
3173 * win32-low.h (class win32_process_target): Update.
3175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3177 Turn process_stratum_target's thread_stopped op into a method of
3180 * target.h (struct process_stratum_target): Remove the target op.
3181 (class process_target): Add the target op. Also add
3182 'supports_thread_stopped'.
3183 (target_thread_stopped): Update the macro.
3184 * target.cc (process_target::thread_stopped): Define.
3185 (process_target::supports_thread_stopped): Define.
3186 (prepare_to_access_memory): Update.
3188 Update the derived classes and callers below.
3190 * server.cc (queue_stop_reply_callback): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_process_target::supports_thread_stopped): Define.
3193 (linux_thread_stopped): Turn into ...
3194 (linux_process_target::thread_stopped): ... this.
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 read_pc and write_pc ops into
3203 methods of process_target.
3205 * target.h (struct process_stratum_target): Remove the target ops.
3206 (class process_target): Add the target ops.
3207 * target.cc (process_target::read_pc): Define.
3208 (process_target::write_pc): Define.
3210 Update the derived classes and callers below.
3212 * regcache.cc (regcache_read_pc): Update.
3213 (regcache_write_pc): Update.
3214 * linux-low.cc (linux_target_ops): Update.
3215 (linux_read_pc): Turn into ...
3216 (linux_process_target::read_pc): ... this.
3217 (linux_write_pc): Turn into ...
3218 (linux_process_target::write_pc): ... this.
3219 * linux-low.h (class linux_process_target): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.cc (win32_target_ops): Update.
3224 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226 Turn process_stratum_target's supports_tracepoints op into a
3227 method of process_target.
3229 * target.h (struct process_stratum_target): Remove the target op.
3230 (class process_target): Add the target op.
3231 (target_supports_tracepoints): Update the macro.
3232 * target.cc (process_target::supports_tracepoints): Define.
3234 Update the derived classes and callers below.
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_supports_tracepoints): Turn into ...
3238 (linux_process_target::supports_tracepoints): ... this.
3239 * linux-low.h (class linux_process_target): Update.
3240 * lynx-low.cc (lynx_target_ops): Update.
3241 * nto-low.cc (nto_target_ops): Update.
3242 * win32-low.cc (win32_target_ops): Update.
3244 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3246 Turn process_stratum_target's process_qsupported op into a method
3249 * target.h (struct process_stratum_target): Remove the target op.
3250 (class process_target): Add the target op.
3251 (target_process_qsupported): Update the macro.
3252 * target.cc (process_target::process_qsupported): Define.
3254 Update the derived classes and callers below.
3256 * linux-low.cc (linux_target_ops): Update.
3257 (linux_process_qsupported): Turn into ...
3258 (linux_process_target::process_qsupported): ... this.
3259 * linux-low.h (class linux_process_target): Update.
3260 * lynx-low.cc (lynx_target_ops): Update.
3261 * nto-low.cc (nto_target_ops): Update.
3262 * win32-low.cc (win32_target_ops): Update.
3264 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266 Turn process_stratum_target's read_loadmap op into a method of
3269 * target.h (struct process_stratum_target): Remove the target op.
3270 (class process_target): Add the target op. Also add
3271 'supports_read_loadmap'.
3272 * target.cc (process_target::read_loadmap): Define.
3273 (process_target::supports_read_loadmap): Define.
3275 Update the derived classes and callers below.
3277 * server.cc (handle_qxfer_fdpic): Update.
3278 (handle_query): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_process_target::supports_read_loadmap): Define.
3281 (linux_read_loadmap): Turn into ...
3282 (linux_process_target::read_loadmap): ... this.
3283 * linux-low.h (class linux_process_target): Update.
3284 * lynx-low.cc (lynx_target_ops): Update.
3285 * nto-low.cc (nto_target_ops): Update.
3286 * win32-low.cc (win32_target_ops): Update.
3288 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290 Turn process_stratum_target's core_of_thread op into a method of
3293 * target.h (struct process_stratum_target): Remove the target op.
3294 (class process_target): Add the target op.
3295 (target_core_of_thread): Update the macro.
3296 * target.cc (process_target::core_of_thread): Define.
3298 Update the derived classes and callers below.
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_process_target::core_of_thread): Define.
3302 * linux-low.h (class linux_process_target): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.cc (win32_target_ops): Update.
3307 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3309 Turn process_stratum_target's handle_monitor_command op into a
3310 method of process_target.
3312 * target.h (struct process_stratum_target): Remove the target op.
3313 (class process_target): Add the target op.
3314 (target_handle_monitor_command): Update the macro.
3315 * target.cc (process_target::handle_monitor_command): Define.
3317 Update the derived classes and callers below.
3319 * server.cc (handle_query): Update.
3320 * linux-low.cc (linux_target_ops): Update.
3321 (linux_process_target::handle_monitor_command): Define.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 * win32-low.cc (win32_target_ops): Update.
3327 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3329 Turn process_stratum_target's handle_new_gdb_connection op into a
3330 method of process_target.
3332 * target.h (struct process_stratum_target): Remove the target op.
3333 (class process_target): Add the target op.
3334 (target_handle_new_gdb_connection): Update the macro.
3335 * target.cc (process_target::handle_new_gdb_connection): Define.
3337 Update the derived classes and callers below.
3339 * linux-low.cc (linux_target_ops): Update.
3340 (linux_handle_new_gdb_connection): Turn into ...
3341 (linux_process_target::handle_new_gdb_connection): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 * win32-low.cc (win32_target_ops): Update.
3347 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349 Turn process_stratum_target's supports_fork_events,
3350 supports_vfork_events, and supports_exec_events ops into methods
3353 * target.h (struct process_stratum_target): Remove the target ops.
3354 (class process_target): Add the target ops.
3355 (target_supports_fork_events): Update the macro.
3356 (target_supports_vfork_events): Update the macro.
3357 (target_supports_exec_events): Update the macro.
3358 * target.cc (process_target::supports_fork_events): Define.
3359 (process_target::supports_vfork_events): Define.
3360 (process_target::supports_exec_events): Define.
3362 Update the derived classes and callers below.
3364 * linux-low.cc (linux_target_ops): Update.
3365 (linux_supports_fork_events): Turn into ...
3366 (linux_process_target::supports_fork_events): ... this.
3367 (linux_supports_vfork_events): Turn into ...
3368 (linux_process_target::supports_vfork_events): ... this.
3369 (linux_supports_exec_events): Turn into ...
3370 (linux_process_target::supports_exec_events): ... this.
3371 * linux-low.h (class linux_process_target): Update.
3372 * lynx-low.cc (lynx_target_ops): Update.
3373 * nto-low.cc (nto_target_ops): Update.
3374 * win32-low.cc (win32_target_ops): Update.
3376 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3378 Turn process_stratum_target's supports_multi_process op into a
3379 method of process_target.
3381 * target.h (struct process_stratum_target): Remove the target op.
3382 (class process_target): Add the target op.
3383 * target.cc (process_target::supports_multi_process): Define.
3384 (target_supports_multi_process): Update.
3386 Update the derived classes and callers below.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_supports_multi_process): Turn into ...
3390 (linux_process_target::supports_multi_process): ... this.
3391 * linux-low.h (class linux_process_target): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 * win32-low.cc (win32_target_ops): Update.
3396 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3398 Turn process_stratum_target's supports_non_stop, async, and
3399 start_non_stop ops into methods of process_target.
3401 * target.h (struct process_stratum_target): Remove the target ops.
3402 (class process_target): Add the target ops.
3403 (target_supports_non_stop): Update the macro.
3404 (target_async): Update the macro.
3405 (start_non_stop): Remove declaration.
3406 * target.cc (process_target::supports_non_stop): Define.
3407 (process_target::async): Define.
3408 (process_target::start_non_stop): Define.
3409 (start_non_stop): Remove.
3411 Update the derived classes and callers below.
3413 * server.cc (handle_qxfer_siginfo): Update.
3414 (handle_query): Update.
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_supports_non_stop): Turn into ...
3417 (linux_process_target::supports_non_stop): ... this.
3418 (linux_async): Turn into ...
3419 (linux_process_target::async): ... this.
3420 (linux_start_non_stop): Turn into ...
3421 (linux_process_target::start_non_stop): ... this.
3422 * linux-low.h (class linux_process_target): Update.
3423 * lynx-low.cc (lynx_target_ops): Update.
3424 * nto-low.cc (nto_target_ops): Update.
3425 (nto_supports_non_stop): Remove; rely on the default behavior
3427 * win32-low.cc (win32_target_ops): Update.
3429 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3431 Turn process_stratum_target's qxfer_siginfo op into a method of
3434 * target.h (struct process_stratum_target): Remove the target op.
3435 (class process_target): Add the target op. Also add
3436 'supports_qxfer_siginfo'.
3437 * target.cc (process_target::qxfer_siginfo): Define.
3438 (process_target::supports_qxfer_siginfo): Define.
3440 Update the derived classes and callers below.
3442 * server.cc (handle_qxfer_siginfo): Update.
3443 (handle_query): Update.
3444 * linux-low.cc (linux_target_ops): Update.
3445 (linux_process_target::supports_qxfer_siginfo): Define.
3446 (linux_xfer_siginfo): Turn into ...
3447 (linux_process_target::qxfer_siginfo): ... this.
3448 * linux-low.h (class linux_process_target): Update.
3449 * lynx-low.cc (lynx_target_ops): Update.
3450 * nto-low.cc (nto_target_ops): Update.
3451 * win32-low.cc (win32_target_ops): Update.
3453 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3455 Turn process_stratum_target's qxfer_osdata op into a method of
3458 * target.h (struct process_stratum_target): Remove the target op.
3459 (class process_target): Add the target op. Also add
3460 'supports_qxfer_osdata'.
3461 * target.cc (process_target::qxfer_osdata): Define.
3462 (process_target::supports_qxfer_osdata): Define.
3464 Update the derived classes and callers below.
3466 * server.cc (handle_qxfer_osdata): Update.
3467 (handle_query): Update.
3468 * linux-low.cc (linux_target_ops): Update.
3469 (linux_process_target::supports_qxfer_osdata): Define.
3470 (linux_qxfer_osdata): Turn into ...
3471 (linux_process_target::qxfer_osdata): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3477 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479 Turn process_stratum_target's hostio_last_error op into a
3480 method of process_target.
3482 * target.h (struct process_stratum_target): Remove the target op.
3483 (class process_target): Add the target op.
3484 * target.cc: Add "hostio.h" to includes.
3485 (process_target::hostio_last_error): Define.
3487 Update the derived classes and callers below.
3489 * hostio.cc (hostio_error): Update.
3490 * linux-low.cc: Remove "hostio.h" from includes.
3491 (linux_target_ops): Update.
3492 * lynx-low.cc (lynx_target_ops): Update.
3493 * nto-low.cc (nto_target_ops): Update.
3494 * win32-low.h (class win32_process_target): Update.
3495 * win32-low.cc (win32_target_ops): Update.
3496 (wince_hostio_last_error): Turn into ...
3497 (win32_process_target::hostio_last_error): ... this.
3499 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501 Turn process_stratum_target's get_tls_address op into a method of
3504 * target.h (struct process_stratum_target): Remove the target op.
3505 (class process_target): Add the target op. Also add
3506 'supports_get_tls_address'.
3507 * target.cc (process_target::get_tls_address): Define.
3508 (process_target::supports_get_tls_address): Define.
3510 Update the derived classes and callers below.
3512 * server.cc (handle_query): Update.
3513 * linux-low.cc (linux_target_ops): Update.
3514 (linux_process_target::supports_get_tls_address): Define.
3515 (linux_process_target::get_tls_address): Define.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523 Turn process_stratum_target's read_offsets op into a method of
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op. Also add
3528 'supports_read_offsets'.
3529 * target.cc (process_target::read_offsets): Define.
3530 (process_target::supports_read_offsets): Define.
3532 Update the derived classes and callers below.
3534 * server.cc (handle_query): Update.
3535 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3536 (linux_target_ops): Update.
3537 (linux_process_target::supports_read_offsets): Define.
3538 (linux_read_offsets): Turn into ...
3539 (linux_process_target::read_offsets): ... this.
3540 * linux-low.h (class linux_process_target): Update.
3541 * lynx-low.cc (lynx_target_ops): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 * win32-low.cc (win32_target_ops): Update.
3545 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547 Turn process_stratum_target's stopped_by_watchpoint and
3548 stopped_data_address ops into methods of process_target.
3550 * target.h (struct process_stratum_target): Remove the target ops.
3551 (class process_target): Add the target ops.
3552 * target.cc (process_target::stopped_by_watchpoint): Define.
3553 (process_target::stopped_data_address): Define.
3555 Update the derived classes and callers below.
3557 * remote-utils.cc (prepare_resume_reply): Update.
3558 * linux-low.cc (linux_target_ops): Update.
3559 (linux_stopped_by_watchpoint): Turn into ...
3560 (linux_process_target::stopped_by_watchpoint): ... this.
3561 (linux_stopped_data_address): Turn into ...
3562 (linux_process_target::stopped_data_address): ... this.
3563 * linux-low.h (class linux_process_target): Update.
3564 * lynx-low.cc (lynx_target_ops): Update.
3565 * nto-low.cc (nto_target_ops): Update.
3566 (nto_stopped_by_watchpoint): Turn into ...
3567 (nto_process_target::stopped_by_watchpoint): ... this.
3568 (nto_stopped_data_address): Turn into ...
3569 (nto_process_target::stopped_data_address): ... this.
3570 * nto-low.h (class nto_process_target): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572 (win32_stopped_by_watchpoint): Turn into ...
3573 (win32_process_target::stopped_by_watchpoint): ... this.
3574 (win32_stopped_data_address): Turn into ...
3575 (win32_process_target::stopped_data_address): ... this.
3576 * win32-low.h (class win32_process_target): Update.
3578 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580 Turn process_stratum_target's supports_hardware_single_step op into
3581 a method of process_target.
3583 * target.h (struct process_stratum_target): Remove the target op.
3584 (class process_target): Add the target op.
3585 (target_supports_hardware_single_step): Update the macro.
3586 (target_can_do_hardware_single_step): Remove declaration.
3587 * target.cc (process_target::supports_hardware_single_step): Define.
3588 (target_can_do_hardware_single_step): Remove.
3590 Update the derived classes and callers below.
3592 * linux-low.h (class linux_process_target): Update.
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_supports_hardware_single_step): Turn into ...
3595 (linux_process_target::supports_hardware_single_step): ... this.
3596 * lynx-low.h (class lynx_process_target): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 (lynx_process_target::supports_hardware_single_step): Define.
3599 * nto-low.h (class nto_process_target): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 (nto_process_target::supports_hardware_single_step): Define.
3602 * win32-low.h (class win32_process_target): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604 (win32_process_target::supports_hardware_single_step): Define.
3606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3609 ops into methods of process_target.
3611 * target.h (struct process_stratum_target): Remove the target ops.
3612 (class process_target): Add the target ops.
3613 (target_stopped_by_hw_breakpoint): Update the macro.
3614 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3615 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3616 (process_target::supports_stopped_by_hw_breakpoint): Define.
3618 Update the derived classes and callers below.
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_stopped_by_hw_breakpoint): Turn into ...
3622 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3623 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3624 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3625 * linux-low.h (class linux_process_target): Update.
3626 * lynx-low.cc (lynx_target_ops): Update.
3627 * nto-low.cc (nto_target_ops): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3630 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3633 ops into methods of process_target.
3635 * target.h (struct process_stratum_target): Remove the target ops.
3636 (class process_target): Add the target ops.
3637 (target_stopped_by_sw_breakpoint): Update the macro.
3638 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3639 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3640 (process_target::supports_stopped_by_sw_breakpoint): Define.
3642 Update the derived classes and callers below.
3644 * linux-low.cc (linux_target_ops): Update.
3645 (linux_stopped_by_sw_breakpoint): Turn into ...
3646 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3647 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3648 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 * win32-low.cc (win32_target_ops): Update.
3654 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3656 Turn process_stratum_target's insert_point and remove_point ops
3657 into methods of process_target.
3659 * target.h (struct process_stratum_target): Remove the target ops.
3660 (class process_target): Add the target ops.
3661 * target.cc (process_target::insert_point): Define.
3662 (process_target::remove_point): Define.
3664 Update the derived classes and callers below.
3666 * mem-break.cc (set_raw_breakpoint_at): Update.
3667 (delete_raw_breakpoint): Update.
3668 (uninsert_raw_breakpoint): Update.
3669 (reinsert_raw_breakpoint): Update.
3670 * linux-low.cc (linux_target_ops): Update.
3671 (linux_insert_point): Turn into ...
3672 (linux_process_target::insert_point): ... this.
3673 (linux_remove_point): Turn into ...
3674 (linux_process_target::remove_point): ... this.
3675 * linux-low.h (class linux_process_target): Update.
3676 * lynx-low.cc (lynx_target_ops): Update.
3677 * nto-low.cc (nto_target_ops): Update.
3678 (nto_insert_point): Turn into ...
3679 (nto_process_target::insert_point): ... this.
3680 (nto_remove_point): Turn into ...
3681 (nto_process_target::remove_point): ... this.
3682 * nto-low.h (class nto_process_target): Update.
3683 * win32-low.cc (win32_target_ops): Update.
3684 (win32_insert_point): Turn into ...
3685 (win32_process_target::insert_point): ... this.
3686 (win32_remove_point): Turn into ...
3687 (win32_process_target::remove_point): ... this.
3688 * win32-low.h (class win32_process_target): Update.
3690 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692 Turn process_stratum_target's supports_z_point_type op into a
3693 method of process_target.
3695 * target.h (struct process_stratum_target): Remove the target op.
3696 (class process_target): Add the target op.
3697 * target.cc (process_target::supports_z_point_type): Define.
3699 Update the derived classes and callers below.
3701 * mem-break.cc (z_type_supported): Update.
3702 * linux-low.cc (linux_target_ops): Update.
3703 (linux_supports_z_point_type): Turn into ...
3704 (linux_process_target::supports_z_point_type): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 (nto_supports_z_point_type): Turn into ...
3709 (nto_process_target::supports_z_point_type): ... this.
3710 * nto-low.h (class nto_process_target): Update.
3711 * win32-low.cc (win32_target_ops): Update.
3712 (win32_supports_z_point_type): Turn into ...
3713 (win32_process_target::supports_z_point_type): ... this.
3714 * win32-low.h (class win32_process_target): Update.
3716 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718 Turn process_stratum_target's read_auxv op into a method of
3721 * target.h (class process_stratum_target): Remove the target op.
3722 (struct process_target): Add the target op. Also add
3723 'supports_read_auxv'.
3724 * target.cc (process_target::read_auxv): Define.
3725 (process_target::supports_read_auxv): Define.
3727 Update the derived classes and callers below.
3729 * server.cc (handle_qxfer_auxv): Update.
3730 (handle_query): Update.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_process_target::supports_read_auxv): Define.
3733 (linux_read_auxv): Turn into ...
3734 (linux_process_target::read_auxv): ... this.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 * nto-low.cc (nto_target_ops): Update.
3738 (nto_process_target::supports_read_auxv): Define.
3739 (nto_read_auxv): Turn into ...
3740 (nto_process_target::read_auxv): ... this.
3741 * nto-low.h (class nto_process_target): Update.
3742 * win32-low.cc (win32_target_ops): Update.
3744 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746 Turn process_stratum_target's request_interrupt op into a method of
3749 * target.h (struct process_stratum_target): Remove the target op.
3750 (class process_target): Add the target op.
3752 Update the derived classes and callers below.
3754 * remote-utils.cc (putpkt_binary_1): Update.
3755 (input_interrupt): Update.
3757 * server.cc (handle_v_requests): Update.
3758 * linux-low.cc (linux_target_ops): Update.
3759 (linux_request_interrupt): Turn into ...
3760 (linux_process_target::request_interrupt): ... this.
3761 * linux-low.h (class linux_process_target): Update.
3762 * lynx-low.cc (lynx_target_ops): Update.
3763 (lynx_request_interrupt): Turn into ...
3764 (lynx_process_target::request_interrupt): ... this.
3765 * lynx-low.h (class lynx_process_target): Update.
3766 * nto-low.cc (nto_target_ops): Update.
3767 (nto_request_interrupt): Turn into ...
3768 (nto_process_target::request_interrupt): ... this.
3769 * nto-low.h (class nto_process_target): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3771 (win32_request_interrupt): Turn into ...
3772 (win32_process_target::request_interrupt): ... this.
3773 * win32-low.h (class win32_process_target): Update.
3775 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777 Turn process_stratum_target's look_up_symbols op into a method of
3780 * target.h (struct process_stratum_target): Remove the target op.
3781 (class process_target): Add the target op.
3782 * target.cc (process_target::look_up_symbols): Define.
3784 Update the derived classes and callers below.
3786 * server.cc (handle_query): Update.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_look_up_symbols): Turn into ...
3789 (linux_process_target::look_up_symbols): ... this.
3790 * linux-low.h (class linux_process_target): Update.
3791 * lynx-low.cc (lynx_target_ops): Update.
3792 * nto-low.cc (nto_target_ops): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3795 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3797 Turn process_stratum_target's read_memory and write_memory
3798 ops into methods of process_target.
3800 * target.h (struct process_stratum_target): Remove the target ops.
3801 (class process_target): Add the target ops.
3803 Update the derived classes and callers below.
3805 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3806 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3807 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3808 (arm_get_syscall_trapinfo): Update.
3809 * linux-cris-low.cc (cris_breakpoint_at): Update.
3810 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3811 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3812 * linux-mips-low.cc (mips_breakpoint_at): Update.
3813 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3814 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3815 * linux-sh-low.cc (sh_breakpoint_at): Update.
3816 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3817 (sparc_store_gregset_from_stack): Update.
3818 (sparc_breakpoint_at): Update.
3819 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3820 * linux-tile-low.cc (tile_breakpoint_at): Update.
3821 * linux-x86-low.cc (x86_breakpoint_at): Update.
3822 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3823 * mem-brea.cc (insert_memory_breakpoint): Update.
3824 (validate_inserted_breakpoint): Update.
3825 * target.cc (read_inferior_memory): Update.
3826 (target_write_memory): Update.
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_read_memory): Make a wrapper around the read_memory target
3830 (linux_process_target::read_memory): Rename from linux_read_memory.
3831 (linux_write_memory): Turn into ...
3832 (linux_process_target::write_memory): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_read_memory): Turn into ...
3836 (lynx_process_target::read_memory): ... this.
3837 (lynx_write_memory): Turn into ...
3838 (lynx_process_target::write_memory): ... this.
3839 * lynx-low.h (class lynx_process_target): Update.
3840 * nto-low.cc (nto_target_ops): Update.
3841 (nto_read_memory): Turn into ...
3842 (nto_process_target::read_memory): ... this.
3843 (nto_write_memory): Turn into ...
3844 (nto_process_target::write_memory): ... this.
3845 * nto-low.h (class nto_process_target): Update.
3846 * win32-low.cc (win32_target_ops): Update.
3847 (win32_read_inferior_memory): Turn into ...
3848 (win32_process_target::read_memory): ... this.
3849 (win32_write_inferior_memory): Turn into ...
3850 (win32_process_target::write_memory): ... this.
3851 * win32-low.h (class win32_process_target): Update.
3853 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3855 Turn process_stratum_target's prepare_to_access_memory and
3856 done_accessing_memory ops into methods of process_target.
3858 * target.h (struct process_stratum_target): Remove the target ops.
3859 (class process_target): Add the target ops.
3860 * target.cc (process_target::prepare_to_access_memory): Define.
3861 (process_target::done_accessing_memory): Define.
3862 (prepare_to_access_memory): Update.
3863 (done_accessing_memory): Update.
3865 Update the derived classes and callers below.
3867 * linux-low.cc (linux_target_ops): Update.
3868 (linux_prepare_to_access_memory): Turn into ...
3869 (linux_process_target::prepare_to_access_memory): ... this.
3870 (linux_done_accessing_memory): Turn into ...
3871 (linux_process_target::done_accessing_memory): ... this.
3872 * linux-low.h (class linux_process_target): Update.
3873 * lynx-low.cc (lynx_target_ops): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 * win32-low.cc (win32_target_ops): Update.
3877 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3879 Turn process_stratum_target's fetch_registers and store_registers
3880 ops into methods of process_target.
3882 * target.h (struct process_stratum_target): Remove the target ops.
3883 (class process_target): Add the target ops.
3884 (fetch_inferior_registers): Update the macro.
3885 (store_inferior_registers): Update the macro.
3887 Update the derived classes and callers below.
3889 * linux-low.cc (linux_target_ops): Update.
3890 (linux_fetch_registers): Turn into ...
3891 (linux_process_target::fetch_registers): ... this.
3892 (linux_store_registers): Turn into ...
3893 (linux_process_target::store_registers): ... this.
3894 * linux-low.h (class linux_process_target): Update.
3895 * lynx-low.cc (lynx_target_ops): Update.
3896 (lynx_fetch_registers): Turn into ...
3897 (lynx_process_target::fetch_registers): ... this.
3898 (lynx_store_registers): Turn into ...
3899 (lynx_process_target::store_registers): ... this.
3900 * lynx-low.h (class lynx_process_target): Update.
3901 * nto-low.cc (nto_target_ops): Update.
3902 (nto_fetch_registers): Turn into ...
3903 (nto_process_target::fetch_registers): ... this.
3904 (nto_store_registers): Turn into ...
3905 (nto_process_target::store_registers): ... this.
3906 * nto-low.h (class nto_process_target): Update.
3907 * win32-low.cc (win32_target_ops): Update.
3908 (win32_fetch_inferior_registers): Turn into ...
3909 (win32_process_target::fetch_registers): ... this.
3910 (win32_store_inferior_registers): Turn into ...
3911 (win32_process_target::store_registers): ... this.
3912 * win32-low.h (class win32_process_target): Update.
3914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3916 Turn process_stratum_target's wait op into a method of
3919 * target.h (struct process_stratum_target): Remove the target op.
3920 (class process_target): Add the target op.
3922 Update the derived classes and callers below.
3924 * target.cc (target_wait): Update.
3925 * linux-low.cc (linux_target_ops): Update.
3926 (linux_wait): Turn into ...
3927 (linux_process_target::wait): ... this.
3928 * linux-low.h (class linux_process_target): Update.
3929 * lynx-low.cc (lynx_target_ops): Update.
3930 (lynx_wait): Turn into ...
3931 (lynx_process_target::wait): ... this.
3932 * lynx-low.h (class lynx_process_target): Update.
3933 * nto-low.cc (nto_target_ops): Update.
3934 (nto_wait): Turn into ...
3935 (nto_process_target::wait): ... this.
3936 * nto-low.h (class nto_process_target): Update.
3937 * win32-low.cc (win32_target_ops): Update.
3938 (win32_wait): Turn into ...
3939 (win32_process_target::wait): ... this.
3940 (do_initial_child_stuff): Update.
3941 * win32-low.h (class win32_process_target): Update.
3943 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3945 Turn process_stratum_target's resume op into a method of
3948 * target.h (struct process_stratum_target): Remove the target op.
3949 (class process_target): Add the target op.
3951 Update the derived classes and callers below.
3953 * server.cc (resume): Update.
3954 * target.cc (target_stop_and_wait): Update.
3955 (target_continue_no_signal): Update.
3956 (target_continue): Update.
3957 * linux-low.cc (linux_target_ops): Update.
3958 (linux_resume): Turn into ...
3959 (linux_process_target::resume): ... this.
3960 * linux-low.h (class linux_process_target): Update.
3961 * lynx-low.cc (lynx_target_ops): Update.
3962 (lynx_resume): Turn into ...
3963 (lynx_process_target::resume): ... this.
3964 * lynx-low.h (class lynx_process_target): Update.
3965 * nto-low.cc (nto_target_ops): Update.
3966 (nto_resume): Turn into ...
3967 (nto_process_target::resume): ... this.
3968 * nto-low.h (class nto_process_target): Update.
3969 * win32-low.cc (win32_target_ops): Update.
3970 (win32_resume): Turn into ...
3971 (win32_process_target::resume): ... this.
3972 (win32_process_target::detach): Update.
3973 (do_initial_child_stuff): Update.
3974 * win32-low.h (class win32_process_target): Update.
3976 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978 Turn process_stratum_target's thread_alive op into a method of
3981 * target.h (struct process_stratum_target): Remove the target op.
3982 (class process_target): Add the target op.
3983 (mythread_alive): Update the macro.
3985 Update the derived classes and callers below.
3987 * linux-low.cc (linux_target_ops): Update.
3988 (linux_thread_alive): Turn into ...
3989 (linux_process_target::thread_alive): ... this.
3990 (wait_for_sigstop): Update.
3991 * linux-low.h (class linux_process_target): Update.
3992 * lynx-low.cc (lynx_target_ops): Update.
3993 (lynx_thread_alive): Turn into ...
3994 (lynx_process_target::thread_alive): ... this.
3995 * lynx-low.h (class lynx_process_target): Update.
3996 * nto-low.cc (nto_target_ops): Update.
3997 (nto_thread_alive): Turn into ...
3998 (nto_process_target::thread_alive): ... this.
3999 * nto-low.h (class nto_process_target): Update.
4000 * win32-low.cc (win32_target_ops): Update.
4001 (win32_thread_alive): Turn into ...
4002 (win32_process_target::thread_alive): ... this.
4003 * win32-low.h (class win32_process_target): Update.
4005 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4007 Turn process_stratum_target's join op into a method of
4010 * target.h (struct process_stratum_target): Remove the target op.
4011 (class process_target): Add the target op.
4012 (join_inferior): Update the macro.
4014 Update the derived classes and callers below.
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_join): Turn into ...
4018 (linux_process_target::join): ... this.
4019 * linux-low.h (class linux_process_target): Update.
4020 * lynx-low.cc (lynx_target_ops): Update.
4021 (lynx_join): Turn into ...
4022 (lynx_process_target::join): ... this.
4023 * lynx-low.h (class lynx_process_target): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 (nto_process_target::join): Define.
4026 * nto-low.h (class nto_process_target): Update.
4027 * win32-low.cc (win32_target_ops): Update.
4028 (win32_join): Turn into ...
4029 (win32_process_target::join): ... this.
4030 * win32-low.h (class win32_process_target): Update.
4032 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034 Turn process_stratum_target's mourn op into a method of
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op.
4040 Update the derived classes and callers below.
4042 * target.cc (target_mourn_inferior): Update.
4043 * linux-low.cc (linux_target_ops): Update.
4044 (linux_mourn): Turn into ...
4045 (linux_process_target::mourn): ... this.
4046 (handle_extended_wait): Update.
4047 (linux_process_target::kill): Update.
4048 (linux_process_target::detach): Update.
4049 * linux-low.h (class linux_process_target): Update.
4050 * lynx-low.cc (lynx_target_ops): Update.
4051 (lynx_mourn): Turn into ...
4052 (lynx_process_target::mourn): ... this.
4053 * lynx-low.h (class lynx_process_target): Update.
4054 * nto-low.cc (nto_target_ops): Update.
4055 (nto_mourn): Turn into ...
4056 (nto_process_target::mourn): ... this.
4057 * nto-low.h (class nto_process_target): Update.
4058 * win32-low.cc (win32_target_ops): Update.
4059 (win32_mourn): Turn into ...
4060 (win32_process_target::mourn): ... this.
4061 * win32-low.h (class win32_process_target): Update.
4063 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4065 Turn process_stratum_target's detach op into a method of
4068 * target.h (struct process_stratum_target): Remove the target op.
4069 (class process_target): Add the target op.
4070 (detach_inferior): Update the macro.
4072 Update the derived classes and callers below.
4074 * linux-low.cc (linux_target_ops): Update.
4075 (linux_detach): Turn into ...
4076 (linux_process_target::detach): ... this.
4077 * linux-low.h (class linux_process_target): Update.
4078 * lynx-low.cc (lynx_target_ops): Update.
4079 (lynx_detach): Turn into ...
4080 (lynx_process_target::detach): ... this.
4081 * lynx-low.h (class lynx_process_target): Update.
4082 * nto-low.cc (nto_target_ops): Update.
4083 (nto_detach): Turn into ...
4084 (nto_process_target::detach): ... this.
4085 * nto-low.h (class nto_process_target): Update.
4086 * win32-low.cc (win32_target_ops): Update.
4087 (win32_detach): Turn into ...
4088 (win32_process_target::detach): ... this.
4089 * win32-low.h (class win32_process_target): Update.
4091 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4093 Turn process_stratum_target's kill op into a method of
4096 * target.h (struct process_stratum_target): Remove the target op.
4097 (class process_target): Add the target op.
4099 Update the derived classes and callers below.
4101 * target.cc (kill_inferior): Update.
4102 * linux-low.cc (linux_target_ops): Update.
4103 (linux_kill): Turn into ...
4104 (linux_process_target::kill): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 (lynx_kill): Turn into ...
4108 (lynx_process_target::kill): ... this.
4109 * lynx-low.h (class lynx_process_target): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_kill): Turn into ...
4112 (nto_process_target::kill): ... this.
4113 * nto-low.h (class nto_process_target): Update.
4114 * win32-low.cc (win32_target_ops): Update.
4115 (win32_kill): Turn into ...
4116 (win32_process_target::kill): ... this.
4117 * win32-low.h (class win32_process_target): Update.
4119 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4121 Turn process_stratum_target's attach op into a method of
4124 * target.h (struct process_stratum_target): Remove the target op.
4125 (class process_target): Add the target op.
4126 (myattach): Update the macro.
4128 Update the derived classes and callers below.
4130 * linux-low.cc (linux_target_ops): Update.
4131 (linux_attach): Turn into ...
4132 (linux_process_target::attach): ... this.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_attach): Turn into ...
4136 (lynx_process_target::attach): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_attach): Turn into ...
4140 (nto_process_target::attach): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_attach): Turn into ...
4144 (win32_process_target::attach): ... 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 post_create_inferior op into a method
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (target_post_create_inferior): Update the macro.
4155 * target.cc (process_target::post_create_inferior): Define.
4157 Update the derived classes and callers below.
4159 * linux-low.cc (linux_target_ops): Update.
4160 (linux_post_create_inferior): Turn into ...
4161 (linux_process_target::post_create_inferior): ... this.
4162 * linux-low.h (class linux_process_target): Update.
4163 * lynx-low.cc (lynx_target_ops): Update.
4164 * nto-low.cc (nto_target_ops): Update.
4165 * win32-low.cc (win32_target_ops): Update.
4167 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4169 Turn process_stratum_target's create_inferior op into a method of
4172 * target.h (struct process_stratum_target): Remove the target op.
4173 (class process_target): Add the target op.
4174 (create_inferior): Rename the macro to ...
4175 (target_create_inferior): ... this.
4177 Update the derived classes and callers below.
4179 * server.cc (handle_v_run): Update.
4180 (captured_main): Update.
4181 (process_serial_event): Update.
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_create_inferior): Turn into ...
4184 (linux_process_target::create_inferior): ... this.
4185 * linux-low.h (class linux_process_target): Update.
4186 * lynx-low.cc (lynx_target_ops): Update.
4187 (lynx_create_inferior): Turn into ...
4188 (lynx_process_target::create_inferior): ... this.
4189 * lynx-low.h (class lynx_process_target): Update.
4190 * nto-low.cc (nto_target_ops): Update.
4191 (nto_create_inferior): Turn into ...
4192 (nto_process_target::create_inferior): ... this.
4193 * nto-low.h (class nto_process_target): Update.
4194 * win32-low.cc (win32_target_ops): Update.
4195 (win32_create_inferior): Turn into ...
4196 (win32_process_target::create_inferior): ... this.
4197 * win32-low.h (class win32_process_target): Update.
4199 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4201 * target.h (class process_target): New class definition.
4202 (struct process_stratum_target) <pt>: New field with type
4204 * linux-low.h (class linux_process_target): Define as a derived
4205 class of 'process_target'.
4206 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4208 * lynx-low.h (class lynx_process_target): Define as a derived
4209 class of 'process_target'.
4210 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4212 * nto-low.h (class nto_process_target): Define as a derived
4213 class of 'process_target'.
4214 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4216 * win32-low.h (class win32_process_target): Define as a derived
4217 class of 'process_target'.
4218 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4221 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4223 * configure: Regenerate.
4225 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4226 Andrew Burgess <andrew.burgess@embecosm.com>
4228 * linux-riscv-low.cc: New file.
4229 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4230 and nat/riscv-linux-tdesc.c.
4231 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4232 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4235 2020-02-14 Tom Tromey <tom@tromey.com>
4237 * acinclude.m4: Don't include acx_configure_dir.m4.
4238 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4239 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4240 (all, install-only, uninstall, clean-info, clean)
4241 (maintainer-clean): Don't recurse.
4242 (subdir_do, all-lib): Remove.
4243 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4245 (generated_files): Update.
4246 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4247 * configure: Rebuild.
4248 * configure.ac: Don't configure gnulib or libiberty.
4251 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4253 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4254 preparing the command line for CreateProcess.
4255 (win32_create_inferior): Reflect the program name in debugging
4256 output that shows the process and its command line.
4258 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4260 * Makefile.in: Rename source files from .c to .cc.
4261 * %.c: Rename to %.cc.
4262 * configure.ac: Rename server.c to server.cc.
4263 * configure: Re-generate.
4265 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4267 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4269 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4271 * win32-low.c (win32_create_inferior): Set signal_pid.
4273 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4274 Pedro Alves <palves@redhat.com>
4276 Skip building gdbserver in a cross-configuration.
4277 * configure.srv: Set $gdbserver_host depending on whether $target
4278 is $host. Use $gdbserver_host instead of $host.
4280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4282 * configure: Re-generate.
4284 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4286 * configure: Re-generate.
4288 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4290 * acinclude.m4: Update warning.m4 path.
4292 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4294 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4295 (handle_exception): Set siginfo_er.
4296 (win32_xfer_siginfo): New function.
4298 2020-02-07 Tom Tromey <tom@tromey.com>
4299 Pedro Alves <palves@redhat.com>
4301 * README: Update build documentation.
4302 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4304 * configure.ac: Update paths.
4305 * configure: Rebuild.
4306 * acinclude.m4: Update paths.
4307 * Makefile.in: Update include paths.
4308 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4309 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4310 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4311 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4312 (%-generated.c): Update paths.
4313 * Move entire directory from ../gdb/gdbserver.
4315 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4317 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4319 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4321 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4322 assignment instead of srv_linux_obj.
4324 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4326 * server.c (handle_qxfer_libraries): Write segment-address with
4329 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4331 * Makefile.in (install-strip): New target.
4332 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4333 * aclocal.m4: Regenerate.
4334 * configure: Regenerate.
4335 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4337 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4339 * Makefile.in (SFILES): Adjust paths to point to real files.
4340 (OBS): Move waitstatus.o to target/waitstatus.o.
4341 (TAGS): Transform paths appropriately.
4343 (nat/%.o): ... this pattern rule.
4345 (target/%.o): ... this pattern rule.
4346 * configure.srv: Adjust paths throughout to include nat/ prefix
4347 with the revant files.
4348 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4349 * configure: Regenerate.
4351 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4353 * Makefile.in (TAGS): Remove config files from the recipe.
4355 2020-01-14 Tom Tromey <tom@tromey.com>
4357 * configure: Rebuild.
4358 * configure.ac: Remove any checks that were added to common.m4.
4359 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4362 2020-01-14 Tom Tromey <tom@tromey.com>
4364 * server.h: Include config.h.
4365 * gdbreplay.c: Include config.h.
4366 * configure: Rebuild.
4367 * configure.ac: Don't source common.host.
4368 * acinclude.m4: Update path.
4369 * Makefile.in (INCSUPPORT): New variable.
4370 (INCLUDE_CFLAGS): Add INCSUPPORT.
4371 (SFILES): Update paths.
4372 (version-generated.c): Update path to create-version.sh.
4373 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4375 2020-01-14 Tom Tromey <tom@tromey.com>
4377 * configure.ac (LIBS): Use WIN32APILIBS.
4378 (USE_WIN32API): Don't define.
4379 * configure: Rebuild.
4381 2020-01-14 Tom Tromey <tom@tromey.com>
4383 * configure: Rebuild.
4385 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4387 * Makefile.in (%-generated.c): Remove rule for files from
4390 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4392 * configure: Re-generate.
4394 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4396 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4398 * tracepoint.c (stop_tracing, flush_trace_buffer,
4399 about_to_request_buffer_space, get_trace_state_variable_value,
4400 set_trace_state_variable_value, gdb_collect): Add declaration.
4402 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4404 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4405 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4406 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4407 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4408 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4411 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4413 * inferiors.c: Include gdbsupport/common-inferior.h.
4415 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4417 * hostio-errno.c: Include hostio.h.
4419 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4421 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4424 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4426 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4427 * linux-arm-tdesc.h: Include arch/arm.h.
4429 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4431 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4433 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4435 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4436 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4438 2020-01-10 Pedro Alves <palves@redhat.com>
4440 * fork-child.c (post_fork_inferior): Pass target down to
4442 * inferiors.c (switch_to_thread): Add process_stratum_target
4444 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4445 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4446 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4447 * remote-utils.c (prepare_resume_reply): Pass the target to
4449 * target.c (the_target): Now a process_stratum_target.
4450 (done_accessing_memory): Pass the target to switch_to_thread.
4451 (set_target_ops): Ajust to use process_stratum_target.
4452 * target.h (struct target_ops): Rename to ...
4453 (struct process_stratum_target): ... this.
4454 (the_target, set_target_ops): Adjust.
4455 (prepare_to_access_memory): Adjust comment.
4456 * win32-low.c (child_xfer_memory): Adjust to use
4457 process_stratum_target.
4458 (win32_target_ops): Now a process_stratum_target.
4460 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4461 Pedro Alves <palves@redhat.com>
4463 * win32-low.c (get_child_debug_event): Extract the fatal exception
4464 from the exit status and convert to the equivalent Posix signal
4466 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4467 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4469 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4471 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4473 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4475 * server.c (gdbserver_version): Change copyright year to 2020.
4476 * gdbreplay.c (gdbreplay_version): Likewise.
4478 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4480 * configure: Regenerate.
4481 * configure.ac: Quote variable arguments of test.
4483 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4485 * Makefile.in: Fix build with GNU Make 3.81
4487 2019-12-16 Tom Tromey <tromey@adacore.com>
4489 * server.c (get_exec_file): Constify result.
4491 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4493 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4494 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4495 * config.in: Regenerate.
4496 * configure: Regenerate.
4497 * configure.ac: Don't check for strerror.
4498 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4499 Call safe_strerror instead of strerror.
4500 * server.h (strerror): Remove this now-unnecessary declaration.
4501 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4503 (gdb_agent_helper_thread): Likewise.
4504 * utils.c (perror_with_name): Likewise.
4506 2019-11-26 Tom Tromey <tom@tromey.com>
4508 * configure, config.in: Rebuild.
4510 2019-11-26 Tom Tromey <tom@tromey.com>
4512 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4513 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4515 * configure, config.in: Rebuild.
4517 2019-11-26 Tom Tromey <tom@tromey.com>
4519 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4520 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4521 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4522 * acinclude.m4: Include ax_pthread.m4.
4523 * config.in, configure: Rebuild.
4525 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4527 * debug.c (debug_set_output): Call safe_strerror instead of
4529 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4530 (linux_kill_one_lwp): Likewise.
4531 (linux_detach_one_lwp): Likewise.
4532 (linux_wait_for_event_filtered): Likewise.
4533 (store_register): Likewise.
4534 * lynx-low.c (lynx_attach): Likewise.
4535 * mem-break.c (insert_memory_breakpoint): Likewise.
4536 (remove_memory_breakpoint): Likewise.
4537 (delete_fast_tracepoint_jump): Likewise.
4538 (set_fast_tracepoint_jump): Likewise.
4539 (uninsert_fast_tracepoint_jumps_at): Likewise.
4540 (reinsert_fast_tracepoint_jumps_at): Likewise.
4541 * nto-low.c (nto_xfer_memory): Likewise.
4542 (nto_resume): Likewise.
4544 2019-11-20 Luis Machado <luis.machado@linaro.org>
4546 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4547 instead of register count.
4548 * tdesc.c (tdesc_contains_feature): New function.
4549 * tdesc.h (tdesc_contains_feature): New prototype.
4551 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4553 * Makefile.in: Add safe-strerror.c.
4554 * configure: Regenerate.
4555 * configure.ac: Don't source common.host.
4557 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4559 * config.in: Regenerate.
4560 * configure: Regenerate.
4562 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4564 * ax.c (ax_printf): Handle size_t_arg.
4566 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4568 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4569 * mi/mi-main.c (output_cores): Likewise.
4570 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4571 (linux_xfer_osdata_modules): Likewise.
4572 * remote.c (register_remote_support_xml): Likewise.
4573 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4574 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4576 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4578 * configure: Regenerate.
4579 * configure.ac: Remove check for strerror_r.
4581 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4583 * config.in: Regenerate.
4584 * configure: Regenerate.
4585 * configure.ac: Also check for strerror_r.
4587 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4589 * ax.h (debug_agent): Remove duplicate declaration.
4591 2019-10-26 Tom de Vries <tdevries@suse.de>
4593 * linux-aarch64-low.c: Fix typos in comments.
4594 * linux-arm-low.c: Same.
4595 * linux-low.c: Same.
4596 * linux-ppc-low.c: Same.
4597 * proc-service.c: Same.
4600 * tracepoint.c: Same.
4601 * win32-low.c: Same.
4603 2019-10-25 Tom Tromey <tromey@adacore.com>
4605 * utils.c (xstrdup): Remove.
4607 2019-10-23 Tom Tromey <tom@tromey.com>
4609 * configure, config.in: Rebuild.
4611 2019-10-23 Tom Tromey <tom@tromey.com>
4613 * configure: Rebuild.
4614 * acinclude.m4: Use m4_include, not sinclude.
4616 2019-10-17 Tom Tromey <tromey@adacore.com>
4618 * configure: Rebuild.
4619 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4620 in AC_CONFIG_FILES invocation.
4621 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4624 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4626 * server.c: Include xml-builtin.h.
4627 (get_xml_features): Don't declare xml_builtins here.
4629 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4631 * Makefile.in: Remove references to vec-ipa.o.
4633 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4635 * Makefile.in: Remove references to vec.c.
4637 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4639 * server.c (server_waiting): Change to bool.
4640 (extended_protocol): Likewise.
4641 (response_needed): Likewise.
4642 (exit_requested): Likewise.
4643 (run_once): Likewise.
4644 (report_no_resumed): Likewise.
4645 (non_stop): Likewise.
4646 (disable_packet_vCont): Likewise.
4647 (disable_packet_Tthread): Likewise.
4648 (disable_packet_qC): Likewise.
4649 (disable_packet_qfThreadInfo): Likewise.
4650 (handle_general_set): Update.
4651 (handle_detach): Update.
4652 (handle_monitor_command): Update.
4653 (handle_query): Update.
4654 (captured_main): Update.
4655 (process_serial_event): Update.
4656 * server.h (server_waiting): Change to bool.
4657 (disable_packet_vCont): Likewise.
4658 (disable_packet_Tthread): Likewise.
4659 (disable_packet_qC): Likewise.
4660 (disable_packet_qfThreadInfo): Likewise.
4661 (run_once): Likewise.
4662 (non_stop): Likewise.
4663 * target.c (target_stop_and_wait): Update.
4665 2019-10-02 Tom Tromey <tromey@adacore.com>
4667 * Makefile.in (SFILES): Add common-inferior.c.
4668 (OBS): Add common-inferior.o.
4669 * server.c (startup_with_shell): Don't define.
4671 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4673 * linux-low.c (linux_low_read_btrace): Update for change to
4676 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4678 * debug.c (debug_threads): Remove comment in favor of the header.
4679 * debug.h (using_threads): Add declaration.
4680 (debug_threads): Add comment.
4681 * linux-aarch64-low.c: Include debug.h and remove declaration of
4683 * nto-low.c: Likewise.
4684 * remote-utils.c: Likewise.
4685 * thread-db.c: Likewise.
4687 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4689 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4690 and powerpc-cell64l-ipa.o.
4691 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4692 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4693 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4696 * spu-low.c: Remove file.
4698 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4699 (parse_spufs_run): Remove.
4700 (ppc_get_pc): Remove Cell/B.E. support.
4701 (ppc_set_pc): Likewise.
4702 (ppc_breakpoint_at): Likewise.
4703 (ppc_arch_setup): Likewise.
4704 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4705 tdesc_powerpc_cell32l.
4706 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4707 or init_registers_powerpc_cell32l.
4708 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4709 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4710 or init_registers_powerpc_cell32l.
4711 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4712 (init_registers_powerpc_cell32l): Remove prototype.
4713 (init_registers_powerpc_cell64l): Likewise.
4715 * target.h (struct target_ops): Remove qxfer_spu member.
4716 * server.c (handle_qxfer_spu): Remove.
4717 (qxfer_packets): Remove entry for "spu".
4718 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4719 * linux-low.c (SPUFS_MAGIC): Remove.
4720 (spu_enumerate_spu_ids): Remove.
4721 (linux_qxfer_spu): Remove.
4722 (linux_target_ops): Remove qxfer_spu member.
4723 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4724 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4725 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4727 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4729 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4730 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4731 * config.in: Regenerate.
4732 * configure: Regenerate.
4734 2019-08-15 Tom Tromey <tromey@adacore.com>
4736 * target.c (target_write_memory): Use gdb::byte_vector.
4738 2019-08-15 Tom Tromey <tromey@adacore.com>
4740 * tracepoint.c (write_inferior_data_pointer)
4741 (write_inferior_integer, write_inferior_int8)
4742 (write_inferior_uinteger, m_tracepoint_action_download)
4743 (r_tracepoint_action_download, x_tracepoint_action_download)
4744 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4745 (download_agent_expr, download_tracepoint_1)
4746 (download_trace_state_variables, upload_fast_traceframes): Update.
4747 * server.c (gdb_write_memory): Update.
4748 * remote-utils.c (relocate_instruction): Update.
4749 * proc-service.c (ps_pdwrite): Update.
4750 * mem-break.c (remove_memory_breakpoint)
4751 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4752 (uninsert_fast_tracepoint_jumps_at)
4753 (reinsert_fast_tracepoint_jumps_at): Update.
4754 * linux-x86-low.c (append_insns)
4755 (i386_install_fast_tracepoint_jump_pad)
4756 (amd64_write_goto_address, i386_write_goto_address): Update.
4757 * linux-s390-low.c (append_insns, s390_write_goto_address):
4759 * linux-ppc-low.c (ppc_relocate_instruction)
4760 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4761 (ppc_write_goto_address): Update.
4762 * linux-aarch64-low.c (append_insns): Update.
4763 * target.h (struct target_ops): Update.
4764 (write_inferior_memory): Don't declare.
4765 * target.c (target_write_memory): Rename from
4766 write_inferior_memory. Remove old target_write_memory.
4768 2019-08-15 Tom Tromey <tromey@adacore.com>
4770 * target.c (write_inferior_memory): Use std::vector.
4772 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4775 * configure.ac: Drop enable-libmcheck support.
4776 * configure, config.in: Rebuild.
4777 * acinclude.m4: Don't include it.
4779 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4781 * configure.srv: Remove Arm xml files.
4783 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4785 * configure.srv: Add new files. Remove xml generated files.
4786 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4788 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4789 * linux-aarch32-tdesc.c: New file.
4790 * linux-aarch32-tdesc.h: New file.
4791 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4792 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4793 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4794 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4795 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4796 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4797 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4798 (arm_read_description): Call arm_linux_read_description.
4799 (initialize_low_arch): Don't init registers.
4800 * linux-arm-tdesc.c: New file.
4801 * linux-arm-tdesc.h: New file.
4803 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4805 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4806 Move counter inside for.
4807 (arm_read_description): Check ptrace earlier.
4808 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4810 2019-07-09 Tom Tromey <tom@tromey.com>
4812 * configure: Rebuild.
4813 * configure.ac: Change common to gdbsupport.
4814 * acinclude.m4: Change common to gdbsupport.
4815 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4816 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4817 common to gdbsupport.
4818 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4819 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4820 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4821 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4822 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4823 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4824 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4825 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4826 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4827 common to gdbsupport.
4829 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4831 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4833 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4835 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4837 * configure.srv: Remove legacy xml.
4838 * linux-aarch64-low.c (initialize_low_arch): Remove
4839 initialize_low_tdesc call.
4840 * linux-aarch64-tdesc-selftest.c: Remove file.
4841 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4842 * linux-x86-low.c (initialize_low_arch): Remove
4843 initialize_low_tdesc call.
4844 * linux-x86-tdesc-selftest.c: Remove file.
4845 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4847 2019-06-20 Tom de Vries <tdevries@suse.de>
4849 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4850 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4852 2019-06-19 Tom de Vries <tdevries@suse.de>
4854 * debug.h (debug_write): Change return type to ssize_t.
4855 * debug.c (debug_write): Same.
4857 2019-06-14 Tom Tromey <tom@tromey.com>
4859 * configure.ac: Use new path to gnulib.
4860 * configure: Rebuild.
4861 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4864 2019-06-11 Tom Tromey <tom@tromey.com>
4866 * Makefile.in (SFILES): Add alloc.c.
4868 (IPA_OBJS): Add alloc-ipa.o.
4869 (alloc-ipa.o): New target.
4870 (%.o: ../%.c): New pattern rule.
4872 2019-06-10 Tom Tromey <tromey@adacore.com>
4874 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4875 end warning with a newline.
4876 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4878 * thread-db.c (attach_thread): Don't end warning with a newline.
4879 (thread_db_notice_clone): Likewise.
4880 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4882 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4883 end warning with a newline.
4885 2019-06-04 Pedro Alves <palves@redhat.com>
4887 * server.c (captured_main): Use make_unique_xstrdup.
4889 2019-06-02 Tom Tromey <tom@tromey.com>
4891 * gdbreplay.c (fromhex): Remove.
4892 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4894 2019-05-29 Tom Tromey <tromey@adacore.com>
4896 * configure: Rebuild.
4898 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4900 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4901 sign extension code on 32-bit builds.
4903 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4906 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4908 2019-04-19 Tom Tromey <tom@tromey.com>
4910 * server.c (struct vstop_notif): Derive from notif_event.
4912 (queue_stop_reply): Update.
4913 (remove_all_on_match_ptid): Change type. Rewrite.
4914 (discard_queued_stop_replies): Rewrite.
4915 (in_queued_stop_replies_ptid): Change type.
4916 (in_queued_stop_replies): Rewrite.
4917 (notif_stop): Update.
4918 (queue_stop_reply_callback): Update.
4919 (captured_main): Don't call initialize_notif.
4920 (push_stop_notification): Update.
4921 * notif.c (notif_write_event, handle_notif_ack)
4922 (notif_event_enque, notif_push): Update.
4923 (notif_event_xfree, initialize_notif): Remove.
4924 * notif.h (struct notif_event): Include <list>, not
4926 (struct notif_server) <queue>: Now a std::list.
4927 (notif_event_p): Remove typedef.
4928 (initialize_notif): Don't declare.
4929 (struct notif_event): Add virtual destructor.
4931 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4933 * ax.c (ax_vdebug): Call debug_printf.
4934 * debug.c (debug_write): New function.
4935 * debug.h (debug_write): New declaration.
4936 * linux-low.c (sigchld_handler): Call debug_write.
4938 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4940 * debug.c (debug_set_output): New function.
4941 (debug_vprintf): Send output to debug_file.
4942 (debug_flush): Likewise.
4943 * debug.h (debug_set_output): New declaration.
4944 * server.c (handle_monitor_command): Add debug-file option.
4945 (captured_main): Likewise.
4947 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4949 * debug.c (remote_debug): Add definition.
4950 * debug.h (remote_debug): Add declaration.
4951 * hostio.c (remote_debug): Remove declaration.
4952 * remote-utils.c (struct ui_file): Likewise.
4953 (remote_debug): Likewise.
4954 * remote-utils.h (remote_debug): Likewise,
4955 * server.c (remote_debug): Remove definition.
4957 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4959 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4960 when using a 64-bit gdbserver.
4962 2019-04-09 Tom Tromey <tromey@adacore.com>
4964 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4966 2019-04-08 Tom Tromey <tom@tromey.com>
4968 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4970 (linux_resume_one_lwp): Likewise.
4972 2019-04-08 Tom Tromey <tom@tromey.com>
4974 * gdbreplay.c: Update.
4975 * linux-low.c: Update.
4978 2019-04-08 Tom Tromey <tom@tromey.com>
4980 * server.c: Use C++ exception handling.
4981 * linux-low.c: Use C++ exception handling.
4982 * gdbreplay.c: Use C++ exception handling.
4984 2019-04-08 Tom Tromey <tom@tromey.com>
4986 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4987 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4988 (captured_main, main): Update.
4989 * gdbreplay.c (main): Update.
4991 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4993 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4994 value in argument pointer, return 1 if the entry is found and 0
4995 otherwise. Move comment.
4996 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4997 * linux-low.h (linux_get_auxv): Declare.
4998 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5000 2019-04-05 Tom Tromey <tromey@adacore.com>
5002 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5005 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5007 * linux-low.c (AT_HWCAP2): Add define if not already included.
5009 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5011 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5012 (aarch64_arch_setup): Call linux_get_hwcap.
5013 * linux-arm-low.c (arm_get_hwcap): Remove function.
5014 (arm_read_description): Call linux_get_hwcap.
5015 * linux-low.c (linux_get_auxv): New function.
5016 (linux_get_hwcap): Likewise.
5017 (linux_get_hwcap2): Likewise.
5018 * linux-low.h (linux_get_hwcap): New declaration.
5019 (linux_get_hwcap2): Likewise.
5020 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5021 (ppc_arch_setup): Call linux_get_hwcap.
5022 * linux-s390-low.c (s390_get_hwcap): Remove function.
5023 (s390_arch_setup): Call linux_get_hwcap.
5025 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5026 Jiong Wang <jiong.wang@arm.com>
5028 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5029 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5031 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5033 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5034 Jiong Wang <jiong.wang@arm.com>
5036 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5037 (aarch64_get_hwcap): New function.
5038 (aarch64_arch_setup): Read APIA hwcap.
5040 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5041 Jiong Wang <jiong.wang@arm.com>
5043 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5044 (initialize_low_tracepoint): Likewise.
5045 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5046 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5047 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5048 (aarch64_linux_read_description): Likewise.
5049 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5051 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5053 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5054 i386_create_target_description for 'segments' parameter.
5055 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5056 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5057 * win32-i386-low.c (i386_arch_setup): Likewise.
5059 2019-03-12 Tom Tromey <tromey@adacore.com>
5061 * linux-low.c (iterate_over_lwps): Update.
5063 2019-03-06 Tom Tromey <tom@tromey.com>
5065 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5066 (captured_main): Use SCOPE_EXIT.
5068 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5070 * configure.srv: Use '$enable_unittest' instead of '$development'
5071 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5074 2019-02-27 Tom Tromey <tromey@adacore.com>
5076 * gdbreplay.c (logchar): Handle \r\n.
5078 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5080 * linux-low.c (linux_attach): Add process before lwp.
5081 * server.c (attach_inferior): Check if already attached.
5083 2019-02-07 Tom Tromey <tom@tromey.com>
5085 * x86-tdesc.h: Rename include guard.
5086 * x86-low.h: Add include guard.
5087 * wincecompat.h: Rename include guard.
5088 * win32-low.h: Add include guard.
5089 * utils.h: Rename include guard.
5090 * tracepoint.h: Rename include guard.
5091 * tdesc.h: Rename include guard.
5092 * target.h: Rename include guard.
5093 * server.h: Rename include guard.
5094 * remote-utils.h: Rename include guard.
5095 * regcache.h: Rename include guard.
5096 * nto-low.h: Rename include guard.
5097 * notif.h: Add include guard.
5098 * mem-break.h: Rename include guard.
5099 * lynx-low.h: Add include guard.
5100 * linux-x86-tdesc.h: Add include guard.
5101 * linux-s390-tdesc.h: Add include guard.
5102 * linux-ppc-tdesc-init.h: Add include guard.
5103 * linux-low.h: Add include guard.
5104 * linux-aarch64-tdesc.h: Add include guard.
5105 * linux-aarch32-low.h: Add include guard.
5106 * inferiors.h: Rename include guard.
5107 * i387-fp.h: Rename include guard.
5108 * hostio.h: Rename include guard.
5109 * gdbthread.h: Rename include guard.
5110 * gdb_proc_service.h: Rename include guard.
5111 * event-loop.h: Rename include guard.
5112 * dll.h: Rename include guard.
5113 * debug.h: Rename include guard.
5114 * ax.h: Rename include guard.
5116 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5119 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5120 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5122 2019-01-25 Tom Tromey <tom@tromey.com>
5124 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5126 2019-01-25 Tom Tromey <tom@tromey.com>
5128 * win32-low.c: Fix common/ includes.
5129 * win32-i386-low.c: Fix common/ includes.
5130 * tracepoint.c: Fix common/ includes.
5131 * thread-db.c: Fix common/ includes.
5132 * target.h: Fix common/ includes.
5133 * symbol.c: Fix common/ includes.
5134 * spu-low.c: Fix common/ includes.
5135 * server.h: Fix common/ includes.
5136 * server.c: Fix common/ includes.
5137 * remote-utils.c: Fix common/ includes.
5138 * regcache.h: Fix common/ includes.
5139 * regcache.c: Fix common/ includes.
5140 * nto-x86-low.c: Fix common/ includes.
5141 * notif.h: Fix common/ includes.
5142 * mem-break.h: Fix common/ includes.
5143 * lynx-low.c: Fix common/ includes.
5144 * lynx-i386-low.c: Fix common/ includes.
5145 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5146 * linux-x86-low.c: Fix common/ includes.
5147 * linux-low.c: Fix common/ includes.
5148 * inferiors.h: Fix common/ includes.
5149 * i387-fp.c: Fix common/ includes.
5150 * hostio.c: Fix common/ includes.
5151 * hostio-errno.c: Fix common/ includes.
5152 * gdbthread.h: Fix common/ includes.
5153 * gdbreplay.c: Fix common/ includes.
5154 * fork-child.c: Fix common/ includes.
5155 * event-loop.c: Fix common/ includes.
5157 (enum gdb_agent_op): Fix common/ includes.
5159 2019-01-21 Tom Tromey <tom@tromey.com>
5161 * tracepoint.c: Fix includes.
5162 * remote-utils.c: Fix includes.
5163 * linux-x86-low.c: Fix includes.
5165 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5167 * gdbreplay.c (gdbreplay_version): Update copyright year in
5169 * server.c (gdbserver_version): Likewise.
5171 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5173 * linux-low.c (add_lwp): Switch ordering.
5175 2018-11-29 Tom Tromey <tom@tromey.com>
5177 * win32-low.c (win32_join): Take pid, not process.
5178 * target.h (struct target_ops) <join>: Change argument type.
5179 (join_inferior): Change argument name.
5180 * spu-low.c (spu_join): Take pid, not process.
5181 * server.c (handle_detach): Preserve pid before destroying
5183 * lynx-low.c (lynx_join): Take pid, not process.
5184 * linux-low.c (linux_join): Take pid, not process.
5186 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5188 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5189 (aarch64_cannot_fetch_register): Likewise.
5190 (struct linux_target_ops): Update references.
5192 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5194 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5196 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5198 * configure.srv (ipa_ppc_linux_regobj): Add
5199 powerpc-isa207-htm-vsx32l-ipa.o and
5200 powerpc-isa207-htm-vsx64l-ipa.o.
5201 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5202 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5203 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5204 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5205 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5206 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5207 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5208 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5209 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5210 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5211 (init_registers_powerpc_isa207_htm_vsx32l)
5212 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5213 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5214 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5215 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5216 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5217 (ppc_store_tm_ctarregset): New functions.
5218 (ppc_regsets): Add entries for HTM regsets.
5219 (ppc_arch_setup): Set htm in features struct when needed. Set
5220 sizes for the HTM regsets.
5221 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5222 (initialize_low_arch): Call
5223 init_registers_powerpc_isa207_htm_vsx32l and
5224 init_registers_powerpc_isa207_htm_vsx64l.
5225 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5226 PPC_TDESC_ISA207_HTM_VSX.
5227 (initialize_low_tracepoint): Call
5228 init_registers_powerpc_isa207_htm_vsx32l and
5229 init_registers_powerpc_isa207_htm_vsx64l.
5231 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5233 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5234 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5235 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5236 (ppc_store_pmuregset): New functions.
5237 (ppc_regsets): Add entries for ebb and pmu regsets.
5238 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5239 pmu regsets are available. Set sizes for these regsets.
5241 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5243 * configure.srv (ipa_ppc_linux_regobj): Add
5244 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5245 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5246 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5247 rs6000/powerpc-isa207-vsx32l.xml, and
5248 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5249 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5250 <PPC_TDESC_ISA207_VSX>: New enum value.
5251 (init_registers_powerpc_isa207_vsx32l): Declare.
5252 (init_registers_powerpc_isa207_vsx64l): Declare.
5253 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5254 (ppc_store_tarregset): New function.
5255 (ppc_regsets): Add entry for the TAR regset.
5256 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5257 size for the TAR regsets.
5258 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5259 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5260 and init_registers_powerpc_isa207_vsx64l.
5261 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5262 (initialize_low_tracepoint): Call
5263 init_registers_powerpc_isa207_vsx32l and
5264 init_registers_powerpc_isa207_vsx64l.
5266 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5267 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5269 * configure.srv (ipa_ppc_linux_regobj): Add
5270 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5271 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5272 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5273 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5274 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5275 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5276 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5277 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5278 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5279 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5280 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5281 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5282 (ppc_hwcap): Add comment.
5283 (ppc_hwcap2): New global.
5284 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5285 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5286 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5287 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5288 when needed. Set sizes for the the DSCR and PPR regsets.
5289 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5290 (initialize_low_arch): Call
5291 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5292 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5293 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5294 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5295 (initialize_low_tracepoint): Call
5296 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5297 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5299 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5301 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5303 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5304 Simon Marchi <simark@simark.ca>
5306 * acinclude.m4: Include "../selftest.m4".
5307 * configure: Regenerate.
5308 * configure.ac: Use "GDB_AC_SELFTEST".
5309 * configure.srv: Use "$enable_unittests" instead of
5310 "$development" when checking whether unit tests have been
5312 * server.c (captured_main): Update message informing that
5313 selftests have been disabled.
5315 2018-10-04 Tom Tromey <tom@tromey.com>
5317 * configure: Rebuild.
5319 2018-10-04 Tom Tromey <tom@tromey.com>
5321 * server.c (handle_status): Rename inner "thread".
5322 (process_serial_event): Declare "res" in 'm' case.
5323 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5324 (iterate_over_lwps): Rename inner "thread".
5325 (linux_qxfer_libraries_svr4): Rename inner "len".
5326 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5328 2018-10-01 Gary Benson <gbenson@redhat.com>
5330 * gdb_proc_service.h: Moved common code to
5331 common/gdb_proc_service.h.
5333 2018-10-01 Gary Benson <gbenson@redhat.com>
5335 * gdb_proc_service.h: Synchronize comments and whitespace with
5336 GDB's version of this file.
5338 2018-09-25 Tom Tromey <tom@tromey.com>
5340 * configure: Rebuild.
5341 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5343 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5345 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5346 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5347 ($(IPA_LIB)): Sort IPA_OBJS.
5349 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5351 * Makefile.in: Remove references to $(ADD_DEPS).
5353 2018-09-16 Tom Tromey <tom@tromey.com>
5355 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5357 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5360 2018-09-05 Tom Tromey <tom@tromey.com>
5362 * configure: Rebuild.
5364 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5367 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5369 2018-08-27 Tom Tromey <tom@tromey.com>
5372 * configure: Rebuild.
5374 2018-08-27 Tom Tromey <tom@tromey.com>
5376 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5377 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5378 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5379 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5380 (s390x_emit_stack_adjust): Add casts to unsigned char.
5382 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5386 * server.h (struct client_state) <disable_randomization>:
5389 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5391 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5393 (mips_supply_ptrace_register): Likewise.
5395 2018-07-22 Tom Tromey <tom@tromey.com>
5397 * configure: Rebuild.
5399 2018-07-22 Tom Tromey <tom@tromey.com>
5401 * win32-low.c (win32_create_inferior): Remove unused variables.
5402 * gdbreplay.c (remote_open): Remove unused variable.
5403 * remote-utils.c (remote_prepare): Remove unused variable.
5404 * x86-tdesc.h (X86_TDESC_H): Define.
5405 (amd64_expedite_regs): Define conditionally.
5406 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5407 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5408 * remote-utils.c (readchar): Remove unused variable.
5410 2018-07-13 Pedro Alves <palves@redhat.com>
5412 * linux-low.c (linux_kill): Change parameter to process_info
5413 pointer instead of pid. Adjust.
5414 * lynx-low.c (lynx_kill): Likewise.
5415 * nto-low.c (nto_kill): Likewise.
5416 * spu-low.c (spu_kill): Likewise.
5417 * win32-low.c (win32_kill): Likewise.
5418 * server.c (handle_v_kill, kill_inferior_callback)
5419 (detach_or_kill_for_exit): Adjust.
5420 * target.c (kill_inferior): Change parameter to process_info
5421 pointer instead of pid. Adjust.
5422 * target.h (struct target_ops) <kill>: Change parameter to
5423 process_info pointer instead of pid. Adjust all implementations
5425 (kill_inferior): Likewise.
5427 2018-07-13 Pedro Alves <palves@redhat.com>
5429 * linux-low.c (linux_detach, linux_join): Change parameter to
5430 process_info pointer instead of pid. Adjust.
5431 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5432 * nto-low.c (nto_detach): Likewise.
5433 * spu-low.c (spu_detach, spu_join): Likewise.
5434 * win32-low.c (win32_detach, win32_join): Likewise.
5435 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5436 * target.h (struct target_ops) <detach, join>: Change parameter to
5437 process_info pointer instead of pid. Adjust all implementations
5439 (detach_inferior, join_inferior): Rename 'pid' parameter to
5442 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5443 Jan Kratochvil <jan.kratochvil@redhat.com>
5444 Paul Fertser <fercerpav@gmail.com>
5445 Tsutomu Seki <sekiriki@gmail.com>
5447 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5448 (OBS): Add 'common/netstuff.o'.
5449 (GDBREPLAY_OBS): Likewise.
5450 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5451 (remote_open): Implement support for IPv6
5453 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5455 (handle_accept_event): Accept connections from IPv6 sources.
5456 (remote_prepare): Handle IPv6-style hostnames; implement
5457 support for IPv6 connections.
5458 (remote_open): Implement support for printing connections from
5461 2018-07-11 Pedro Alves <palves@redhat.com>
5464 * mem-break.c (any_persistent_commands): Add process_info
5465 parameter and use it instead of relying on the current process.
5466 Change return type to bool.
5467 * mem-break.h (any_persistent_commands): Add process_info
5468 parameter and change return type to bool.
5469 * server.c (handle_detach): Remove require_running_or_return call.
5470 Look up the process_info for the process we're about to detach.
5471 If not found, return back error to GDB. Adjust
5472 any_persistent_commands call to pass down a process pointer.
5474 2018-07-11 Pedro Alves <palves@redhat.com>
5476 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5477 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5478 instead of collect_register_by_name.
5479 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5480 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5482 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5483 Pedro Alves <palves@redhat.com>
5485 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5487 2018-07-03 Tom Tromey <tom@tromey.com>
5489 * linux-low.c: Update.
5490 * lynx-low.c: Update.
5491 * mem-break.c: Update.
5492 * nto-low.c: Update.
5493 * remote-utils.c: Update.
5495 * spu-low.c: Update.
5497 * win32-low.c: Update.
5499 2018-07-03 Tom Tromey <tom@tromey.com>
5503 2018-07-03 Tom Tromey <tom@tromey.com>
5505 * linux-low.c: Update.
5507 2018-07-03 Tom Tromey <tom@tromey.com>
5511 2018-07-03 Tom Tromey <tom@tromey.com>
5513 * linux-low.c: Update.
5514 * linux-mips-low.c: Update.
5515 * lynx-low.c: Update.
5516 * nto-low.c: Update.
5517 * remote-utils.c: Update.
5519 * spu-low.c: Update.
5521 * thread-db.c: Update.
5523 2018-07-03 Tom Tromey <tom@tromey.com>
5525 * linux-low.c: Update.
5526 * linux-mips-low.c: Update.
5527 * lynx-low.c: Update.
5528 * mem-break.c: Update.
5529 * nto-low.c: Update.
5530 * remote-utils.c: Update.
5532 * spu-low.c: Update.
5534 * tracepoint.c: Update.
5536 2018-07-03 Tom Tromey <tom@tromey.com>
5538 * linux-low.c: Update.
5539 * linux-ppc-low.c: Update.
5540 * linux-x86-low.c: Update.
5541 * proc-service.c: Update.
5543 * spu-low.c: Update.
5544 * thread-db.c: Update.
5545 * win32-low.c: Update.
5547 2018-07-03 Tom Tromey <tom@tromey.com>
5549 * linux-low.c: Update.
5550 * lynx-low.c: Update.
5551 * nto-low.c: Update.
5552 * remote-utils.c: Update.
5553 * spu-low.c: Update.
5554 * thread-db.c: Update.
5555 * win32-low.c: Update.
5557 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5559 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5560 parameter in call to 'amd64_create_target_description'.
5562 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5564 * x86-tdesc.h: Remove executable permission flag.
5566 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5568 * configure.ac: Remove AC_PREREQ, add missing quoting.
5569 * configure: Re-generate.
5570 * config.in: Re-generate.
5571 * aclocal.m4: Re-generate.
5573 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5575 * tracepoint.h (current_traceframe): Remove declaration.
5577 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5579 * linux-aarch64-low.c (is_sve_tdesc): New function.
5580 (aarch64_sve_regs_copy_to_regcache): Likewise.
5581 (aarch64_sve_regs_copy_from_regcache): Likewise.
5582 (aarch64_regs_info): Add SVE checks.
5583 (initialize_low_arch): Initialize SVE.
5585 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5587 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5589 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5591 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5592 (initialize_low_tracepoint): Likewise
5593 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5594 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5596 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5598 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5600 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5602 * server.h (PBUFSIZ): Increase size
5604 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5606 * regcache.c (regcache::raw_compare): New function.
5607 * regcache.h (regcache::raw_compare): New declaration.
5609 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5611 * regcache.c (new_register_cache): Use new.
5612 (free_register_cache): Use delete.
5613 (register_data): Use const.
5614 (supply_register): Move body inside regcache.
5615 (regcache::raw_supply): New override function.
5616 (collect_register): Move body inside regcache.
5617 (regcache::raw_collect): New override function.
5618 (regcache::get_register_status): New override function.
5619 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5621 2018-06-09 Tom Tromey <tom@tromey.com>
5623 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5625 (event_queue): Use std::queue.
5626 (gdb_event_xfree): Remove.
5627 (initialize_event_loop, process_event, wait_for_event): Update.
5629 2018-06-08 Stan Cox <scox@redhat.com>
5631 * win32-low.c (win32_create_inferior): last_ptid and last_status
5632 moved to client_state.
5634 2018-06-08 Pedro Alves <palves@redhat.com>
5636 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5637 common/common-exceptions.o, common/common-utils.o,
5638 common/errors.o, common/print-utils.o and utils.o.
5639 * gdbreplay.c: Include "common-defs.h" instead of the two
5640 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5641 string.h or alloca.h.
5642 (perror_with_name): Delete.
5643 (remote_open): Use xstrdup instead of strdup.
5644 (main): Rename to ...
5645 (captured_main): ... this.
5648 2018-06-08 Tom Tromey <tom@tromey.com>
5650 * linux-low.c (linux_low_read_btrace): Update.
5652 2018-06-04 Stan Cox <scox@redhat.com>
5654 * server.h (struct client_state): New.
5655 * server.c (cont_thread, general_thread, multi_process)
5656 (report_fork_events, report_vfork_events, report_exec_events)
5657 (report_thread_events, swbreak_feature, hwbreak_feature)
5658 (vCont_supported, disable_randomization, pass_signals)
5659 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5660 Moved to client_state.
5661 * remote-utils.c (remote_debug, noack_mode)
5662 (transport_is_reliable): Moved to client_state.
5663 * tracepoint.c (current_traceframe): Moved to client_state.
5666 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5667 linux-low.c, remote-utils.h, target.c: Use client_state.
5669 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5671 * configure.srv: Add new c/h file.
5673 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5675 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5678 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5680 * gdb.arch/mips-fpregset-core.exp: New test.
5681 * gdb.arch/mips-fpregset-core.c: New test source.
5683 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5686 * hostio.c (require_int): Do not report overflow for integers
5687 between 0xfffffff and 0x7fffffff.
5689 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5691 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5692 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5693 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5695 (the_low_target): Wire them.
5697 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5699 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5700 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5701 mode. Call collect_register_by_name with vscr using
5702 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5703 (ppc_store_vrregset): Add and set vscr_offset variable as in
5704 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5707 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5709 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5710 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5711 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5713 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5715 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5716 (ppc_store_vsxregset): Likewise.
5717 (ppc_fill_vrregset): Likewise.
5718 (ppc_store_vrregset): Likewise.
5719 (ppc_fill_evrregset): Likewise.
5720 (ppc_store_evrregset): Likewise.
5721 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5722 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5725 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5727 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5728 wordsize of the inferior. Call ppc_linux_target_wordsize.
5730 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5732 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5733 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5734 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5735 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5736 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5737 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5738 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5739 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5740 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5741 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5742 (tdesc_powerpc_e500l): Remove.
5743 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5744 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5745 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5746 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5748 (ppc_arch_setup): Remove target description matching code. Fill a
5749 ppc_linux_features struct and call ppc_linux_match_description
5752 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5754 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5755 width of the requested register exceeds the width of the
5757 (mips_cannot_store_register): Likewise.
5759 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5761 * linux-mips-low.c (mips_fetch_register): New function. Update
5763 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5764 (the_low_target): Wire `mips_fetch_register'.
5766 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5768 * lynx-i386-low.c (LYNXOS_178): New macro.
5769 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5770 the layout on LynxOS-178.
5771 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5772 handle floating point registers that are not supported by
5775 2018-05-10 Tom Tromey <tom@tromey.com>
5777 * configure: Rebuild.
5779 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5782 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5783 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5784 Use it to set the expedite_regs field in the given tdesc.
5785 * x86-tdesc.h: New file.
5786 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5787 Adjust following the addition of the new expedite_regs parameter
5788 to init_target_desc.
5789 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5790 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5791 (i386_linux_read_description, amd64_linux_read_description):
5792 Adjust following the addition of the new expedite_regs parameter
5793 to init_target_desc.
5794 * lynx-i386-low.c: #include "x86-tdesc.h".
5795 (lynx_i386_arch_setup): Adjust following the addition of the new
5796 expedite_regs parameter to init_target_desc.
5797 * nto-x86-low.c: #include "x86-tdesc.h".
5798 (nto_x86_arch_setup): Adjust following the addition of the new
5799 expedite_regs parameter to init_target_desc.
5800 * win32-i386-low.c: #include "x86-tdesc.h".
5801 (i386_arch_setup): Adjust following the addition of the new
5802 expedite_regs parameter to init_target_desc.
5804 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5807 * win32-low.c (win32_create_inferior): Add call to my_wait
5808 setting last_status global.
5810 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5813 * win32-low.c (create_process): Only call gdb_tilde_expand if
5814 inferior_cwd is not NULL.
5816 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5818 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5819 registers to the cache if their values have changed.
5820 (i387_xsave_to_cache): Provide default values for x87 control
5821 registers when these features are available, but disabled.
5822 * regcache.c (supply_register_by_name_zeroed): New function.
5823 * regcache.h (supply_register_by_name_zeroed): Declare new
5826 2018-05-07 Tom Tromey <tom@tromey.com>
5828 * configure: Rebuild.
5830 2018-05-04 Tom Tromey <tom@tromey.com>
5832 * configure: Rebuild.
5834 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 Pedro Alves <palves@redhat.com>
5837 * linux-aarch64-low.c (aarch64_stopped_data_address):
5840 2018-04-27 Tom Tromey <tom@tromey.com>
5842 * configure: Rebuild.
5844 2018-04-23 Tom Tromey <tom@tromey.com>
5846 * configure: Rebuild.
5848 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5850 * Makefile.in (depcomp): Add "..".
5851 (all_deps_files): New and use it.
5853 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5855 * configure.srv (aarch64*-*-linux*): Don't include xml.
5856 (i[34567]86-*-cygwin*): Likewise.
5857 (i[34567]86-*-linux*): Likewise.
5858 (i[34567]86-*-lynxos*): Likewise.
5859 (i[34567]86-*-mingw32ce*): Likewise.
5860 (i[34567]86-*-mingw*): Likewise.
5861 (i[34567]86-*-nto*): Likewise.
5862 (tic6x-*-uclinux): Likewise.
5863 (x86_64-*-linux*): Likewise.
5864 (x86_64-*-mingw*): Likewise.
5865 (x86_64-*-cygwin*): Likewise.
5867 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5869 * tdesc.c: Remove xml parameter.
5871 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5873 * server.c (get_features_xml): Remove cast.
5874 * tdesc.c (void target_desc::accept): Fill in function.
5875 (tdesc_get_features_xml): Remove old xml creation.
5876 (print_xml_feature::visit_pre): Add xml vistor.
5877 * tdesc.h (struct target_desc): Make xmltarget mutable.
5878 (tdesc_get_features_xml): Remove declaration.
5880 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5882 * tdesc.c (tdesc_architecture_name): Add new function.
5883 (tdesc_osabi_name): Likewise.
5884 (tdesc_get_features_xml): Use new functions.
5886 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5888 * tdesc.c (tdesc_create_flags): Remove.
5889 (tdesc_add_flag): Likewise.
5890 (tdesc_named_type): Likewise.
5891 (tdesc_create_union): Likewise.
5892 (tdesc_create_struct): Likewise.
5893 (tdesc_create_vector): Likewise.
5894 (tdesc_add_bitfield): Likewise.
5895 (tdesc_add_field): Likewise.
5896 (tdesc_set_struct_size): Likewise.
5898 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5900 * tdesc.c (~target_desc): Remove implictly deleted items.
5901 (init_target_desc): Iterate all features.
5902 (tdesc_get_features_xml): Use vector.
5903 (tdesc_create_feature): Create feature.
5904 * tdesc.h (tdesc_feature) Remove
5905 (target_desc): Add features.
5907 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5909 * Makefile.in: Add common/tdesc.c
5910 * tdesc.c (init_target_desc): init all reg_defs from register
5912 (tdesc_create_reg): Create tdesc_reg.
5913 * tdesc.h (tdesc_feature): Add register vector.
5915 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5917 * tdesc.h (struct target_desc) <features>: Change type to
5918 std::vector<std::string>.
5919 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5921 (tdesc_get_features_xml): Likewise.
5922 (tdesc_create_feature): Likewise.
5924 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5926 * regcache.c (find_register_by_number): Return a ref.
5927 (find_regno): Use references.
5928 (register_size): Likewise.
5929 (register_data): Likewise.
5930 * tdesc.c (target_desc::~target_desc): Remove free calls.
5931 (target_desc::operator==): Use std::vector compare.
5932 (init_target_desc): Use reference.
5933 (tdesc_create_reg): Use reg constructors.
5934 * tdesc.h (struct target_desc): Replace pointer with object.
5936 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5938 * regcache.c (find_register_by_number): Make static.
5939 (find_regno): Use find_register_by_number
5940 * regcache.h (struct reg): Remove declaration.
5942 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5944 * tdesc.c (target_desc::~target_desc): Move to here.
5945 (target_desc::operator==): Likewise.
5946 * tdesc.h (target_desc::~target_desc): Move from here.
5947 (target_desc::operator==): Likewise.
5949 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5951 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5953 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5955 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5957 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5958 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5959 and init_registers_s390_gs_linux64.
5961 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5963 * linux-s390-low.c (s390_fill_gs): Remove function.
5964 (s390_fill_gsbc): Remove function.
5965 (s390_regsets): Set fill functions for the guarded storage regsets
5968 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5970 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5971 the word size. Add comment.
5972 (s390_get_wordsize): New function.
5973 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5974 pswm with it. Instead, use s390_get_wordsize to determine the
5975 word size first and derive the correct tdesc from that directly.
5977 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5979 * Makefile.in: Include silent-rules.mk.
5980 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5981 (COMPILE): Add ECHO_CXX.
5982 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5983 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5984 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5985 (version-generated.c): Add ECHO_GEN.
5986 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5987 (IPAGENT_COMPILE): Add ECHO_CXX.
5988 (%-generated.c): Add ECHO_REGDAT.
5990 2018-03-14 Tom Tromey <tom@tromey.com>
5993 * ax.c (ax_printf): Special case for NULL.
5995 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5997 * linux-low.c (linux_qxfer_libraries_svr4): Use
5998 xml_escape_text_append.
6000 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6002 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6004 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6006 * server.c (handle_general_set): Remove unnecessary xstrdup.
6008 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6010 * server.c (parse_debug_format_options): Adjust to
6011 delim_string_to_char_ptr_vec changes.
6012 * thread-db.c (thread_db_load_search): Adjust to
6013 dirnames_to_char_ptr_vec changes.
6015 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6017 * target.h (target_enable_btrace, target_disable_btrace)
6018 (target_read_btrace, target_read_btrace_conf): Turn macro into
6019 inline function. Throw error if target method is not defined.
6020 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6021 check for btrace target method. Be prepared to handle exceptions
6022 from btrace target methods.
6024 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6026 * server.c (captured_main): Change order of error message printed
6027 when the current working directory cannot be found.
6029 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6031 * server.c: Include "filenames.h" and "pathstuff.h".
6032 (program_name): Delete variable.
6033 (program_path): New anonymous class.
6034 (get_exec_wrapper): Use "program_path" instead of
6036 (handle_v_run): Likewise.
6037 (captured_main): Likewise.
6038 (process_serial_event): Likewise.
6040 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6042 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6043 (OBJS): Add "pathstuff.o".
6044 * server.c (current_directory): New global variable.
6045 (captured_main): Initialize "current_directory".
6047 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6049 * tdesc.c: Use common/tdesc.h.
6050 * tdesc.h: Likewise.
6052 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6053 Simon Marchi <simon.marchi@ericsson.com>
6055 * Makefile.in: Switch order of make rules.
6057 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6059 * Makefile.in: Add common directory in build.
6060 * configure.ac: Add common reference.
6061 * configure: Regenerate.
6063 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6065 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6066 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6067 * spu-low.c (spu_target_ops): Likewise.
6068 * win32-low.c (win32_target_ops): Likewise.
6069 * server.c (supported_btrace_packets): Report packets unconditionally.
6070 * target.h (target_ops) <supports_btrace>: Remove.
6071 (target_supports_btrace): Remove.
6073 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6075 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6076 (handle_btrace_disable): Change return type to void. Use exceptions
6078 (handle_btrace_general_set): Catch exception and copy message to
6081 2018-02-08 Tom Tromey <tom@tromey.com>
6083 * linux-low.c (install_software_single_step_breakpoints): Use
6084 make_scoped_restore.
6085 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6086 (do_restore_current_thread_cleanup): Remove.
6087 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6090 2018-02-08 Tom Tromey <tom@tromey.com>
6092 * mem-break.c (set_raw_breakpoint_at): Use
6093 gdb::unique_xmalloc_ptr.
6095 2018-01-30 Pedro Alves <palves@redhat.com>
6098 * target.c (target_terminal::terminal_state): Rename to ...
6099 (target_terminal::m_terminal_state): ... this.
6101 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6103 * linux-low.c (handle_extended_wait): Surround call to
6104 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6106 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6108 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6109 linux_ptrace_attach_fail_reason_string now returning an
6111 (linux_attach): Likewise.
6112 * thread-db.c (attach_thread): Likewise.
6114 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6117 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6118 checking for fs_base/gs_base fields in struct user_regs_struct.
6119 * configure: Regenerate.
6121 2018-01-16 Yao Qi <yao.qi@linaro.org>
6124 * linux-low.c (fetch_register): Call supply_register instead of
6127 2018-01-08 Yao Qi <yao.qi@linaro.org>
6128 Simon Marchi <simon.marchi@ericsson.com>
6130 * Makefile.in (OBS): Remove selftest.o.
6131 * configure.ac: Set srv_selftest_objs if $development is true.
6132 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6133 * configure: Re-generated.
6134 * server.c (captured_main): Wrap variable selftest_filter with
6137 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6139 * server.c (parse_debug_format_options): Return std::string.
6140 (handle_monitor_command, captured_main): Adjust.
6142 2018-01-05 Pedro Alves <palves@redhat.com>
6145 * server.c (captured_main): Pass quiet=false to
6146 save_original_signals_state.
6148 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6150 * gdbreplay.c (gdbreplay_version): Update copyright year in
6152 * server.c (gdbserver_version): Likewise.
6154 2017-12-08 Tom Tromey <tom@tromey.com>
6156 * ax.c (ax_printf): Update.
6158 2017-12-07 Yao Qi <yao.qi@linaro.org>
6160 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6161 aarch64_linux_read_description.
6162 * linux-amd64-ipa.c (idx2mask): New array.
6163 (get_ipa_tdesc): Move idx2mask out.
6164 (initialize_low_tracepoint): Initialize target descriptions.
6165 * linux-i386-ipa.c (idx2mask): New array.
6166 (get_ipa_tdesc): Move idx2mask out.
6167 (initialize_low_tracepoint): Initialize target descriptions.
6169 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6171 * tdesc.c (struct tdesc_type): Change return type.
6172 (tdesc_add_flag): Change parameter type.
6173 (tdesc_add_bitfield): Likewise.
6174 (tdesc_add_field): Likewise.
6175 (tdesc_set_struct_size): Likewise.
6177 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6179 * regcache.c (registers_to_string): Remove unused variable.
6181 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6183 * inferiors.c (for_each_inferior_with_data): Remove.
6184 * inferiors.h (for_each_inferior_with_data): Remove.
6185 * server.c (handle_qxfer_threads_worker): Change parameter type.
6186 (handle_qxfer_threads_proper): Use for_each_thread.
6188 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6190 * inferiors.c (for_each_inferior): Remove.
6191 (clear_inferiors): Use for_each_thread.
6192 * inferiors.h (for_each_inferior): Remove.
6193 * linux-low.c (linux_wait_for_event_filtered): Use
6195 (linux_stabilize_threads): Likewise.
6196 * regcache.c (regcache_release): Likewise.
6197 * server.c (gdb_wants_all_threads_stopped): Likewise.
6198 (clear_pending_status_callback): Remove.
6199 (handle_status): Use for_each_thread.
6200 (captured_main): Likewise.
6201 * win32-low.c (child_init_thread_list): Likewise.
6202 (win32_clear_inferiors): Likewise.
6203 (fake_breakpoint_event): Likewise.
6205 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207 * inferiors.h (find_inferior): Remove.
6208 * inferiors.c (find_inferior): Remove.
6210 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6212 * linux-low.c (resume_status_pending_p): Update comment.
6213 (need_step_over_p): Update comment.
6215 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217 * linux-low.c (proceed_one_lwp): Return void, change parameter
6219 (unsuspend_and_proceed_one_lwp): Likewise.
6220 (proceed_all_lwps): Use for_each_thread.
6221 (unstop_all_lwps): Likewise.
6223 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6225 * linux-low.c (linux_resume_one_thread): Return void, take
6227 (linux_resume): Use for_each_thread.
6229 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6231 * linux-low.c (send_sigstop_callback): Return void, change
6232 parameter type. Rename to...
6233 (send_sigstop): ... this.
6234 (suspend_and_send_sigstop_callback): Return void, change parameter
6236 (suspend_and_send_sigstop): ... this.
6237 (stop_all_lwps): Use for_each_thread.
6239 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6241 * linux-low.c (lwp_running): Return bool, remove unused
6243 (linux_stabilize_threads): Use find_thread.
6245 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6247 * linux-low.c (select_singlestep_lwp_callback): Remove.
6248 (count_events_callback): Remove.
6249 (select_event_lwp_callback): Remove.
6250 (select_event_lwp): Use find_thread/for_each_thread.
6252 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6254 * linux-low.c (not_stopped_callback): Return bool, take filter
6256 (linux_wait_for_event_filtered): Use find_thread.
6257 (linux_wait_1): Likewise.
6259 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6261 * linux-low.c (same_lwp): Remove.
6262 (find_lwp_pid): Use find_thread.
6264 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6266 * linux-low.c (delete_lwp_callback): Remove.
6267 (linux_mourn): Use for_each_thread.
6269 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6271 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6272 args parameter, don't check for pid.
6273 (linux_detach): Use for_each_thread.
6275 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6277 * linux-low.c (struct counter): Remove.
6278 (second_thread_of_pid_p): Remove.
6279 (last_thread_of_process_p): Use find_thread.
6281 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6283 * inferiors.c (find_inferior_in_random): Remove.
6284 * inferiors.h (find_inferior_in_random): Remove.
6285 * linux-low.c (status_pending_p_callback): Return bool, accept
6286 parameter ptid directly.
6287 (linux_wait_for_event_filtered): Use find_thread_in_random.
6288 (linux_wait_1): Likewise.
6290 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6292 * inferiors.c (find_inferior_id): Remove.
6293 (find_thread_ptid): Move implemention from find_inferior_id to
6295 * inferiors.h (find_inferior_id): Remove.
6296 * server.c (handle_status): Use find_thread_ptid.
6297 (process_serial_event): Likewise.
6298 * thread-db.c (find_one_thread): Likewise.
6299 (thread_db_thread_handle): Likewise.
6300 * win32-low.c (thread_rec): Likewise.
6301 (child_delete_thread): Likewise.
6302 (win32_thread_alive): Likewise.
6303 (get_child_debug_event): Likewise.
6305 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6307 * linux-mips-low.c (update_watch_registers_callback): Return
6308 void, remove pid_p parameter, don't check for pid.
6309 (mips_insert_point, mips_remove_point): Use for_each_thread.
6311 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6313 * lynx.low (lynx_delete_thread_callback): Remove.
6314 (lynx_mourn): Use for_each_thread.
6316 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6318 * regcache.c (regcache_invalidate_one): Remove.
6319 (regcache_invalidate_pid): use for_each_thread.
6321 2017-11-26 Tom Tromey <tom@tromey.com>
6323 * linux-low.c (linux_create_inferior): Update.
6325 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6327 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6329 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6331 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6332 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6333 * linux-aarch64-tdesc-selftest.c: New file.
6334 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6336 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6338 * configure.srv: Add new file.
6339 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6340 * linux-aarch64-tdesc-selftest.c: New file.
6341 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6343 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6345 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6346 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6347 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6349 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6351 * configure.srv: Add new files.
6352 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6353 aarch64_linux_read_description.
6354 * linux-aarch64-low.c (aarch64_linux_read_description):
6355 Merge with aarch64_arch_setup.
6356 (aarch64_arch_setup): Call aarch64_linux_read_description.
6357 * linux-aarch64-tdesc.c: New file.
6358 * linux-aarch64-tdesc.h: New file.
6360 2017-11-24 Yao Qi <yao.qi@linaro.org>
6362 * configure.srv: Set $srv_regobj for tic6x-linux.
6363 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6364 (tic6x_read_description): Move some code to tic6x_arch_setup.
6365 (tic6x_tdesc_test): New function.
6366 (initialize_low_arch): Call selftests::register_test.
6368 2017-11-22 Yao Qi <yao.qi@linaro.org>
6370 * remote-utils.c (prepare_resume_reply): Use memcpy.
6372 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6374 * linux-low.c (kill_one_lwp_callback): Return void, take
6375 argument directly, don't filter on pid.
6376 (linux_kill): Use for_each_thread.
6378 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6380 * linux-low.c (need_step_over_p): Return bool, remove dummy
6382 (linux_resume, proceed_all_lwps): Use find_thread.
6384 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6386 * linux-low.c (resume_status_pending_p): Return bool, remove
6388 (linux_resume): Use find_thread.
6390 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6392 * linux-low.c (struct thread_resume_array): Remove.
6393 (linux_set_resume_request): Return void, take arguments
6395 (linux_resume): Use for_each_thread.
6397 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6399 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6400 return bool, remove data argument.
6401 (linux_stabilize_threads): Use find_thread.
6403 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6405 * linux-low.c (unsuspend_one_lwp): Remove.
6406 (unsuspend_all_lwps): Use for_each_thread, inline code from
6409 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6411 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6412 * linux-low.c (struct iterate_over_lwps_args): Remove.
6413 (iterate_over_lwps_filter): Remove.
6414 (iterate_over_lwps): Use find_thread.
6416 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6418 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6419 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6420 code from reset_lwp_ptrace_options_callback.
6422 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6424 * linux-arm-low.c (struct update_registers_data): Remove.
6425 (update_registers_callback): Return void, take arguments
6426 directly, don't check thread's pid.
6427 (arm_insert_point, arm_remove_point): Use for_each_thread.
6429 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6431 * win32-low.c (continue_one_thread): Return void, take argument
6433 (child_continue): Use for_each_thread.
6435 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6437 * win32-i386-low.c (update_debug_registers_callback): Rename
6439 (update_debug_registers): ... this, return void, remove pid_p arg.
6440 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6442 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6444 * inferiors.h (struct process_info): Add constructor, initialize
6446 <syscalls_to_catch>: Change type to std::vector<int>.
6447 * inferiors.c (add_process): Allocate process_info with new.
6448 (remove_process): Free process_info with delete.
6449 * linux-low.c (handle_extended_wait): Adjust.
6450 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6451 * server.c (handle_general_set): Adjust.
6453 2017-11-16 Pedro Alves <palves@redhat.com>
6455 * remote-utils.c (remote_close): Block SIGIO signals instead of
6456 uninstalling the SIGIO handler.
6458 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6460 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6462 2017-11-16 Yao Qi <yao.qi@linaro.org>
6464 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6465 (tic6x_store_gregset): Likewise.
6466 (tic6x_usrregs_info): Move it up.
6468 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6470 * Makefile.in: Update arch rules.
6471 * configure.srv: Explicitly mark arch/ files.
6473 2017-11-13 Andreas Schwab <schwab@suse.de>
6475 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6477 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6479 2017-11-06 Pedro Alves <palves@redhat.com>
6481 * config.in, configure: Regenerate.
6483 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6485 * target.c (struct thread_search): Remove.
6486 (thread_search_callback): Remove.
6487 (prepare_to_access_memory): Use for_each_thread instead of
6488 find_inferior. Inline code from thread_search_callback.
6490 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6492 * server.c (struct visit_actioned_threads_data): Remove.
6493 (visit_actioned_threads): Change prototype to take arguments
6495 (resume): Use find_thread instead of find_inferior.
6497 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6499 * server.c (queue_stop_reply_callback): Change prototype, return
6501 (find_status_pending_thread_callback): Remove.
6502 (handle_status): Replace find_inferior with find_thread and
6505 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6507 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6509 (aarch64_store_gregset): Likewise.
6510 (aarch64_fill_fpregset): Likewise.
6511 (aarch64_store_fpregset): Likewise.
6513 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6515 * gdbthread.h (find_thread, for_each_thread): New functions.
6516 * inferiors.c (thread_of_pid): Remove.
6517 (find_any_thread_of_pid): Use find_thread.
6518 * linux-low.c (num_lwps): Use for_each_thread.
6520 2017-10-17 Yao Qi <yao.qi@linaro.org>
6522 * Makefile.in: Remove one rule.
6523 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6525 2017-10-17 Yao Qi <yao.qi@linaro.org>
6527 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6528 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6530 2017-10-17 Yao Qi <yao.qi@linaro.org>
6532 * configure.srv: Rename arm.o with arch/arm.o.
6534 2017-10-17 Yao Qi <yao.qi@linaro.org>
6536 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6537 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6538 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6539 (arch-i386.o, arch-amd64.o): Remove rules.
6540 (arch/%.o): New rule.
6541 Update POSTCOMPILE and COMPILE.pre.
6542 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6543 * configure: Re-generated.
6544 * configure.srv: Replace arch-i386.o with arch/i386.o.
6545 Replace arch-amd64.o with arch/amd64.o.
6547 2017-10-16 Yao Qi <yao.qi@linaro.org>
6549 * configure: Regenerated.
6551 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6553 * inferiors.h: (struct inferior_list): Remove.
6554 (struct inferior_list_entry); Remove.
6555 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6556 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6557 get_first_inferior): Remove.
6558 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6559 find_inferior_id, find_inferior_in_random): Change signature.
6560 * inferiors.c (all_threads): Change type to
6561 std::list<thread_info *>.
6562 (get_thread): Remove macro.
6563 (find_inferior, find_inferior_id): Change signature, implement
6565 (find_inferior_in_random): Change signature, implement using
6566 find_thread_in_random.
6567 (for_each_inferior, for_each_inferior_with_data): Change
6568 signature, implement using for_each_thread.
6569 (add_inferior_to_list, remove_inferior): Remove.
6570 (add_thread, get_first_thread, thread_of_pid,
6571 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6572 (get_first_inferior, one_inferior_p, clear_inferior_list):
6574 (clear_inferiors, get_thread_process): Update.
6575 * gdbthread.h: Include <list>.
6576 (struct thread_info) <entry>: Remove field.
6578 (all_threads): Change type to std::list<thread_info *>.
6579 (get_first_inferior): Add doc.
6580 (find_thread, for_each_thread, find_thread_in_random): New
6582 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6583 * linux-arm-low.c (update_registers_callback): Update.
6584 * linux-low.c (second_thread_of_pid_p): Update.
6585 (kill_one_lwp_callback, linux_detach_lwp_callback,
6586 delete_lwp_callback, status_pending_p_callback, same_lwp,
6587 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6588 iterate_over_lwps, not_stopped_callback,
6589 resume_stopped_resumed_lwps, count_events_callback,
6590 select_singlestep_lwp_callback, select_event_lwp_callback,
6591 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6592 suspend_and_send_sigstop_callback, wait_for_sigstop,
6593 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6594 lwp_running, linux_set_resume_request, resume_status_pending_p,
6595 need_step_over_p, start_step_over, linux_resume_one_thread,
6596 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6597 reset_lwp_ptrace_options_callback): Update.
6598 * linux-mips-low.c (update_watch_registers_callback): Update.
6599 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6601 (free_register_cache_thread_one): Remove.
6602 (regcache_release): Update.
6603 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6604 handle_qxfer_threads_worker): Update.
6605 (handle_query): Update, use list iterator.
6606 (visit_actioned_threads, handle_pending_status,
6607 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6608 clear_pending_status_callback, set_pending_status_callback,
6609 find_status_pending_thread_callback, handle_status,
6610 process_serial_event): Update.
6611 * target.c (thread_search_callback): Update.
6612 * thread-db.c (thread_db_get_tls_address): Update.
6613 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6615 * win32-i386-low.c (update_debug_registers_callback): Update.
6616 * win32-low.c (delete_thread_info, child_delete_thread,
6617 continue_one_thread, suspend_one_thread,
6618 get_child_debug_event): Adjust.
6620 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6622 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6623 * inferiors.h: Include <list>.
6624 (struct process_info) <entry>: Remove field.
6626 (pid_of): Change macro to function.
6627 (ptid_of, lwpid_of): Remove macro.
6628 (all_processes): Change type to std::list<process_info *>.
6629 (ALL_PROCESSES): Remove macro.
6630 (for_each_process, find_process): New function.
6631 * inferiors.c (all_processes): Change type to
6632 std::list<process_info *>.
6633 (find_thread_process): Adjust.
6634 (add_process): Likewise.
6635 (remove_process): Likewise.
6636 (find_process_pid): Likewise.
6637 (get_first_process): Likewise.
6638 (started_inferior_callback): Remove.
6639 (have_started_inferiors_p): Adjust.
6640 (attached_inferior_callback): Remove.
6641 (have_attached_inferiors_p): Adjust.
6642 * linux-low.c (check_zombie_leaders): Likewise.
6643 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6644 (x86_linux_update_xmltarget): Adjust.
6645 * server.c (handle_query): Likewise.
6646 (gdb_reattached_process): Remove.
6647 (handle_status): Adjust.
6648 (kill_inferior_callback): Likewise.
6649 (detach_or_kill_inferior): Remove.
6650 (print_started_pid): Likewise.
6651 (print_attached_pid): Likewise.
6652 (detach_or_kill_for_exit): Update.
6653 (process_serial_event): Likewise.
6654 * linux-arm-low.c (arm_new_fork): Likewise.
6656 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6658 * dll.h: Include <list>.
6659 (struct dll_info): Add constructor.
6660 <entry>: Remove field.
6661 (all_dlls): Change type to std::list<dll_info>.
6662 * dll.c: Include <algorithm>.
6663 (get_dll): Remove macro.
6664 (all_dlls): Change type to std::list<dll_info *>.
6665 (free_one_dll): Remove.
6666 (match_dll): Likewise.
6667 (loaded_dll): Adjust.
6668 (unloaded_dll): Adjust to all_dlls type change, use
6669 std::find_if. Inline code from match_dll.
6670 (clear_dlls): Adjust to all_dlls type change.
6671 * server.c (emit_dll_description): Remove.
6672 (handle_qxfer_libraries): Adjust to all_dlls type change,
6673 integrate emit_dll_description's functionality.
6675 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6677 * linux-low.h (struct linux_target_ops) <delete_process>: New
6679 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6680 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6681 (struct linux_target_ops): Add delete_process callback.
6682 * linux-arm-low.c (arm_delete_process): New.
6683 (struct linux_target_ops): Add delete_process callback.
6684 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6685 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6686 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6687 * linux-mips-low.c (mips_linux_delete_process): New.
6688 (struct linux_target_ops): Add delete_process callback.
6689 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6690 * linux-s390-low.c (struct linux_target_ops): Likewise.
6691 * linux-sh-low.c (struct linux_target_ops): Likewise.
6692 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6693 * linux-tile-low.c (struct linux_target_ops): Likewise.
6694 * linux-x86-low.c (x86_linux_delete_process): New.
6695 (struct linux_target_ops): Add delete_process callback.
6696 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6698 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6700 * linux-aarch64-low.c (the_low_target): Add thread delete
6702 * linux-arm-low.c (arm_delete_thread): New function.
6703 (the_low_target): Add thread delete callback.
6704 * linux-bfin-low.c (the_low_target): Likewise.
6705 * linux-crisv32-low.c (the_low_target): Likewise.
6706 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6708 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6710 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6711 * linux-mips-low.c (mips_linux_delete_thread): New function.
6712 (the_low_target): Add thread delete callback.
6713 * linux-ppc-low.c (the_low_target): Likewise.
6714 * linux-s390-low.c (the_low_target): Likewise.
6715 * linux-sh-low.c (the_low_target): Likewise.
6716 * linux-tic6x-low.c (the_low_target): Likewise.
6717 * linux-tile-low.c (the_low_target): Likewise.
6718 * linux-x86-low.c (the_low_target): Likewise.
6719 * linux-xtensa-low.c (the_low_target): Likewise.
6721 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6723 * win32-low.c: Include "common-inferior.h".
6725 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6727 * inferiors.c (set_inferior_cwd): New function.
6728 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6729 (handle_query): Inform that QSetWorkingDir is supported.
6730 * win32-low.c (create_process): Pass the inferior's cwd to
6733 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6735 * inferiors.c (current_inferior_cwd): New global variable.
6736 (get_inferior_cwd): New function.
6737 * inferiors.h (struct process_info) <cwd>: New field.
6739 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6741 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6742 (OBS): Add gdb_tilde_expand.o.
6744 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6746 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6747 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6749 2017-09-29 Pedro Alves <palves@redhat.com>
6751 * ax.c (gdb_parse_agent_expr): Constify.
6752 * ax.h (gdb_parse_agent_expr): Constify.
6753 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6755 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6756 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6757 * remote-utils.h (read_ptid): Constify.
6758 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6759 (process_point_options, process_serial_event): Constify.
6760 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6761 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6762 (cmd_qtbuffer): Constify.
6764 2017-09-29 Pedro Alves <palves@redhat.com>
6766 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6769 2017-09-29 Pedro Alves <palves@redhat.com>
6771 * linux-low.c (handle_extended_wait): Pass parent thread instead
6772 of process to thread_db_notice_clone.
6773 * linux-low.h (thread_db_notice_clone): Replace parent process
6774 parameter with parent thread parameter.
6775 * thread-db.c (find_one_thread): Add comment.
6776 (thread_db_notice_clone): Replace parent process parameter with
6777 parent thread parameter. Temporarily switch to the parent thread.
6779 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6781 * gdbthread.h: Include "common-gdbthread.h".
6782 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6783 "if" when validating the ptid.
6784 * remote-utils.c: Include "gdbthread.h".
6785 (prepare_resume_reply): Use "switch_to_thread".
6786 * target.c (done_accessing_memory): Likewise.
6788 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6790 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6791 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6792 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6793 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6794 s390x-gs-linux64-ipa.o to ipa_obj.
6795 * linux-s390-low.c (HWCAP_S390_GS): New define.
6796 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6798 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6799 (s390_arch_setup): Check for guarded-storage support and choose
6801 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6802 init_registers_s390x_gs_linux64.
6803 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6805 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6806 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6808 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6810 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6812 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6814 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6815 (thread_db_thread_handle): Declare.
6816 * linux-low.c (linux_target_ops): Initialize thread_handle.
6817 * server.c (handle_qxfer_threads_worker): Add support for
6819 * target.h (struct target_ops): Add new function pointer,
6821 (target_thread_handle): Define.
6822 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6824 (thread_db_thread_handle): New function.
6826 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6828 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6829 * linux-low.h (thread_db_notice_clone): Declare.
6830 * thread-db.c (thread_db_notice_clone): New function.
6832 2017-09-21 Pedro Alves <palves@redhat.com>
6834 * server.c (gdb_read_memory, handle_status, process_serial_event)
6835 (handle_serial_event, handle_target_event): Adjust to
6836 set_desired_thread prototype change.
6837 * target.c (set_desired_thread): Remove 'use_general' parameter
6839 * target.h (set_desired_thread): Remove 'use_general' parameter.
6841 2017-09-20 Tom Tromey <tom@tromey.com>
6843 * target.c (target_terminal::terminal_state): Define.
6844 (target_terminal::init): Rename from target_terminal_init.
6845 (target_terminal::inferior): Rename from
6846 target_terminal_inferior.
6847 (target_terminal::ours): Rename from target_terminal_ours.
6848 (target_terminal::ours_for_output, target_terminal::info): New.
6850 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6852 * server.c (accumulate_file_name_length): Remove.
6853 (emit_dll_description): Adjust to std::string change.
6854 (handle_qxfer_libraries): Use std::string to hold document.
6856 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6858 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6859 return type of xml_escape_text.
6860 * server.c (emit_dll_description): Likewise.
6862 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6864 * server.c (captured_main): Accept argument for --selftest.
6865 Update run_tests call.
6866 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6867 when registering selftests.
6869 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6871 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6872 instead of "VEC" for "target_desc.reg_defs".
6873 (regcache_cpy): Likewise.
6874 (registers_to_string): Likewise.
6875 (registers_from_string): Likewise.
6876 (find_regno): Likewise.
6877 (supply_regblock): Likewise.
6878 (regcache_raw_read_unsigned): Likewise.
6879 * tdesc.c (init_target_desc): Likewise.
6880 (tdesc_create_reg): Likewise.
6881 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6882 (struct target_desc) <reg_defs>: Convert to "std::vector".
6883 (target_desc): Do not initialize "reg_defs".
6884 (~target_desc): Update code to use "std::vector" instead of "VEC"
6885 for "target_desc.reg_defs".
6886 (operator==): Likewise.
6888 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6890 * inferiors.h (thread_to_gdb_id): Remove.
6891 * inferiors.c (thread_to_gdb_id): Remove.
6892 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6893 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6894 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6896 * nto-low.c (nto_fetch_registers, nto_store_registers,
6897 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6899 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6901 * inferiors.h (gdb_id_to_thread_id): Remove.
6902 * inferiors.c (gdb_id_to_thread_id): Remove.
6903 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6904 removal. Move pid declaration closer to where it's used.
6906 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6908 * server.c (handle_detach): New function.
6909 (process_serial_event): Move code out, call handle_detach.
6911 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6913 * server.c (require_running): Rename to ...
6914 (require_running_or_return): ... this ...
6915 (require_running_or_break): ... and this.
6916 (handle_query, process_serial_event): Adjust.
6918 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6920 * linux-low.c (linux_set_resume_request): Remove unused
6923 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6925 * server.c (first_thread_of): Remove.
6926 (process_serial_event): Replace usage of first_thread_of with
6927 find_any_thread_of_pid.
6928 * tracepoint.c (same_process_p): Remove.
6929 (gdb_agent_about_to_close): Replace usage of same_process_p with
6930 find_any_thread_of_pid.
6931 * linux-x86-low.c (same_process_callback): Remove.
6932 (x86_arch_setup_process_callback): Replace usage of
6933 same_process_callback with find_any_thread_of_pid.
6934 * thread-db.c (any_thread_of): Remove.
6935 (switch_to_process): Replace usage of any_thread_of with
6936 find_any_thread_of_pid.
6937 * inferiors.c (thread_pid_matches_callback): Remove.
6938 (find_thread_process): Adjust to use find_any_thread_of_pid.
6940 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6942 * regcache.c (get_thread_regcache): Guard calls to "memset"
6945 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6947 * linux-low.c (handle_extended_wait): Use
6948 "allocate_target_description" instead of "XNEW".
6949 * linux-x86-low.c (initialize_low_arch): Likewise.
6951 2017-09-05 Yao Qi <yao.qi@linaro.org>
6953 * configure.srv (srv_i386_regobj): Remove.
6954 (srv_amd64_regobj): Remove.
6955 (srv_regobj): Set it to "" for x86 non-linux targets.
6956 * linux-x86-tdesc.c (i386_linux_read_description):
6957 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6958 (init_registers_i386): Remove the declaration.
6959 (tdesc_i386): Remove the declaration.
6960 (lynx_i386_arch_setup): Call i386_create_target_description.
6961 * nto-x86-low.c: Likewise.
6962 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6963 [!__x86_64__]: include arch/i386.h.
6964 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6966 2017-09-05 Yao Qi <yao.qi@linaro.org>
6968 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6969 i386/amd64-XXX-linux from it.
6971 2017-09-05 Yao Qi <yao.qi@linaro.org>
6973 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6975 (ipa_amd64_linux_regobj): Remove.
6976 (ipa_x32_linux_regobj): Remove.
6978 2017-09-05 Yao Qi <yao.qi@linaro.org>
6980 * Makefile.in (arch-amd64.o): New rule.
6981 * configure.srv: Append arch-amd64.o.
6982 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6983 (get_ipa_tdesc): Call amd64_linux_read_description.
6984 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6985 and init_registers_amd64_XXX.
6986 * linux-x86-low.c (x86_linux_read_description): Call
6987 amd64_linux_read_description.
6988 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6989 (initialize_low_arch): Don't call init_registers_x32_XXX and
6990 init_registers_amd64_XXX.
6991 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6992 and tdesc_amd64_XXX.
6993 [__x86_64__] (amd64_tdesc_test): New function.
6994 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6995 and init_registers_amd64_XXX.
6996 * linux-x86-tdesc.c: Include arch/amd64.h.
6997 (xcr0_to_tdesc_idx): New function.
6998 (i386_linux_read_description): New function.
6999 (amd64_get_ipa_tdesc_idx): New function.
7000 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7001 (amd64_get_ipa_tdesc): Declare.
7003 2017-09-05 Yao Qi <yao.qi@linaro.org>
7005 * configure.srv (srv_i386_linux_xmlfiles): Remove
7006 i386/i386-XXX-linux.xml from it.
7008 2017-09-05 Yao Qi <yao.qi@linaro.org>
7010 * configure.srv: Set srv_i386_linux_regobj empty if $development
7012 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7013 initialize_low_tdesc.
7014 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7015 with #if initialize_low_tdesc.
7016 * linux-x86-tdesc-selftest.c: New file.
7017 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7019 2017-09-05 Yao Qi <yao.qi@linaro.org>
7021 * Makefile.in (arch-i386.o): New rule.
7022 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7023 (x86_64-*-linux*): Likewise.
7024 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7025 include arch/i386.h.
7026 (i386_linux_read_description): Remove code and call
7027 i386_create_target_description.
7028 * tdesc.c (allocate_target_description): New function.
7029 * tdesc.h (set_tdesc_architecture): Remove declaration.
7030 (set_tdesc_osabi): Likewise.
7032 2017-09-05 Yao Qi <yao.qi@linaro.org>
7034 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7035 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7036 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7038 * server.c (get_features_xml): Call tdesc_get_features_xml.
7039 * tdesc.c (set_tdesc_architecture): New function.
7040 (set_tdesc_osabi): New function.
7041 (tdesc_get_features_xml): New function.
7042 (tdesc_create_feature): Add an argument.
7043 * tdesc.h (struct target_desc) <features>: New field.
7044 <arch, osabi>: New field.
7045 (~target_desc): xfree features, arch, and osabi.
7046 (target_desc::oerator==): Don't compare .xmltarget.
7047 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7048 (set_tdesc_osabi): Likewise.
7049 (tdesc_get_features_xml): Likewise.
7051 2017-09-05 Yao Qi <yao.qi@linaro.org>
7053 * linux-x86-tdesc.c: Include selftest.h.
7054 (i386_tdesc_test): New function.
7055 (initialize_low_tdesc): Call selftests::register_test.
7056 * tdesc.h: Include regdef.h.
7057 (target_desc): Override operator == and !=.
7059 2017-09-05 Yao Qi <yao.qi@linaro.org>
7061 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7062 (ipa_obj): Likewise.
7063 * linux-i386-ipa.c: Include common/x86-xstate.h
7064 (get_ipa_tdesc): Call i386_linux_read_description.
7065 (initialize_low_tracepoint): Don't call init_registers_XXX
7066 functions, call initialize_low_tdesc instead.
7067 * linux-x86-low.c (x86_linux_read_description): Call
7068 i386_linux_read_description.
7069 (initialize_low_arch): Don't call init_registers_i386_XXX
7070 functions, call initialize_low_tdesc.
7071 * linux-x86-tdesc.c: New file.
7072 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7073 (i386_get_ipa_tdesc_idx): Declare.
7074 (i386_get_ipa_tdesc): Declare.
7075 (initialize_low_tdesc): Declare.
7077 2017-09-05 Yao Qi <yao.qi@linaro.org>
7079 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7082 2017-09-05 Yao Qi <yao.qi@linaro.org>
7084 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7085 * regcache.c (get_thread_regcache): Use VEC_length.
7086 (init_register_cache): Likewise.
7087 (regcache_cpy): Likewise.
7088 (registers_to_string): Iterate reg_defs via VEC_iterate.
7089 (find_regno): Likewise.
7090 (find_register_by_number): Use VEC_index.
7091 (register_size): Call find_register_by_number.
7092 (register_data): Call find_register_by_number.
7093 (supply_regblock): Use VEC_length.
7094 (regcache_raw_read_unsigned): Likewise.
7095 * tdesc.c (init_target_desc): Iterate reg_defs via
7097 (default_description): Update initializer.
7098 (copy_target_description): Don't update field num_registers.
7099 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7100 <num_registers>: Remove.
7102 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7104 * Makefile.in (.SECONDARY): Define target.
7106 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7108 * linux-low.c (linux_wait_1): Adjust.
7109 * server.c (queue_stop_reply_callback): Adjust.
7111 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7113 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7114 QEnvironmentUnset and QEnvironmentReset packets.
7115 (handle_query): Inform remote that QEnvironmentHexEncoded,
7116 QEnvironmentUnset and QEnvironmentReset are supported.
7118 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7120 * inferiors.h (inferior_target_data): Rename to ...
7121 (thread_target_data): ... this.
7122 (inferior_regcache_data): Rename to ...
7123 (thread_regcache_data): ... this.
7124 (set_inferior_regcache_data): Rename to ...
7125 (set_thread_regcache_data): ... this.
7126 * inferiors.c (inferior_target_data): Rename to ...
7127 (thread_target_data): ... this.
7128 (inferior_regcache_data): Rename to ...
7129 (thread_regcache_data): ... this.
7130 (set_inferior_regcache_data): Rename to ...
7131 (set_thread_regcache_data): ... this.
7132 (free_one_thread): Update.
7133 * linux-low.h (get_thread_lwp): Update.
7134 * regcache.c (get_thread_regcache): Update.
7135 (regcache_invalidate_thread): Update.
7136 (free_register_cache_thread): Update.
7137 * win32-i386-low.c (update_debug_registers_callback): Update.
7138 (win32_get_current_dr): Update.
7139 * win32-low.c (thread_rec): Update.
7140 (delete_thread_info): Update.
7141 (continue_one_thread): Update.
7142 (suspend_one_thread): Update.
7144 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7146 * inferiors.c (set_inferior_target_data): Remove.
7147 * inferiors.h (set_inferior_target_data): Remove.
7149 2017-08-18 Yao Qi <yao.qi@linaro.org>
7151 * Makefile.in (OBS): Add selftest.o.
7152 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7153 * configure, config.in: Re-generated.
7154 * server.c: Include common/sefltest.h.
7155 (captured_main): Handle option --selftest.
7157 2017-08-09 Yao Qi <yao.qi@linaro.org>
7159 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7160 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7161 i386-avx-mpx.o and i386-mmx.o.
7162 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7163 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7164 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7165 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7166 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7167 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7168 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7169 i386/amd64-avx-mpx.xml.
7171 2017-08-09 Yao Qi <yao.qi@linaro.org>
7173 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7174 and x32-avx-avx512.o.
7175 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7176 i386/x32-avx-avx512.xml.
7178 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7180 * tracepoint.h (enum class fast_tpoint_collect_result): New
7182 (fast_tracepoint_collecting): Change return type to
7183 fast_tpoint_collect_result.
7184 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7185 * linux-low.h: Include tracepoint.h.
7186 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7187 fast_tpoint_collect_result.
7188 * linux-low.c (handle_tracepoints): Adjust.
7189 (linux_fast_tracepoint_collecting): Change return type to
7190 fast_tpoint_collect_result.
7191 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7192 linux_wait_1, stuck_in_jump_pad_callback,
7193 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7194 proceed_one_lwp): Adjust to type change.
7196 2017-07-10 Yao Qi <yao.qi@linaro.org>
7198 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7200 2017-06-29 Yao Qi <yao.qi@linaro.org>
7202 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7204 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7206 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7208 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7210 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7212 * linux-low.c (linux_create_inferior): Adjust code to access the
7213 environment information via 'gdb_environ' class.
7214 * lynx-low.c (lynx_create_inferior): Likewise.
7215 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7216 (get_environ): Return a pointer to 'our_environ'.
7217 (captured_main): Initialize 'our_environ'.
7218 * server.h (get_environ): Adjust prototype.
7219 * spu-low.c (spu_create_inferior): Adjust code to access the
7220 environment information via 'gdb_environ' class.
7222 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7224 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7225 usage of "register" keyword.
7227 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7229 * configure: Re-generate.
7231 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7233 * configure: Re-generate.
7235 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7237 * Makefile.in (COMPILE.pre): Add "-x c++".
7239 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7241 * fork-child.c: Conditionally include <signal.h>.
7243 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7245 * server.c (handle_general_set): Handle new packet
7246 "QStartupWithShell".
7247 (handle_query): Add "QStartupWithShell" to the list of supported
7249 (gdbserver_usage): Add help text explaining the
7250 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7252 (captured_main): Recognize and act upon the presence of the new
7255 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7256 Pedro Alves <palves@redhat.com>
7258 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7259 * configure: Regenerate.
7260 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7262 (i[34567]86-*-lynxos*): Likewise.
7263 (spu*-*-*): Likewise.
7264 * fork-child.c: New file.
7265 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7267 (linux_ptrace_fun): New function.
7268 (linux_create_inferior): Adjust function prototype to reflect
7269 change on "target.h". Adjust function code to use
7271 (linux_request_interrupt): Delete "signal_pid".
7272 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7273 (lynx_ptrace_fun): New function.
7274 (lynx_create_inferior): Adjust function prototype to reflect
7275 change on "target.h". Adjust function code to use
7277 * nto-low.c (nto_create_inferior): Adjust function prototype and
7278 code to reflect change on "target.h". Update comments.
7279 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7280 "common-terminal.h" and "environ.h".
7281 (terminal_fd): Moved to fork-child.c.
7282 (old_foreground_pgrp): Likewise.
7283 (restore_old_foreground_pgrp): Likewise.
7284 (last_status): Make it global.
7285 (last_ptid): Likewise.
7286 (our_environ): New variable.
7287 (startup_with_shell): Likewise.
7288 (program_name): Likewise.
7289 (program_argv): Rename to...
7290 (program_args): ...this.
7291 (wrapper_argv): New variable.
7292 (start_inferior): Delete function.
7293 (get_exec_wrapper): New function.
7294 (get_exec_file): Likewise.
7295 (get_environ): Likewise.
7296 (prefork_hook): Likewise.
7297 (post_fork_inferior): Likewise.
7298 (postfork_hook): Likewise.
7299 (postfork_child_hook): Likewise.
7300 (handle_v_run): Update code to deal with arguments coming from the
7301 remote host. Update calls from "start_inferior" to
7303 (captured_main): Likewise. Initialize environment variable. Call
7305 * server.h (post_fork_inferior): New prototype.
7306 (get_environ): Likewise.
7307 (last_status): Declare.
7308 (last_ptid): Likewise.
7309 (signal_pid): Likewise.
7310 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7311 (spu_ptrace_fun): New function.
7312 (spu_create_inferior): Adjust function prototype to reflect change
7313 on "target.h". Adjust function code to use "fork_inferior".
7314 * target.c (target_terminal_init): New function.
7315 (target_terminal_inferior): Likewise.
7316 (target_terminal_ours): Likewise.
7317 * target.h: Include <vector>.
7318 (struct target_ops) <create_inferior>: Update prototype.
7319 (create_inferior): Update macro.
7320 * utils.c (gdb_flush_out_err): New function.
7321 * win32-low.c (win32_create_inferior): Adjust function prototype
7322 and code to reflect change on "target.h".
7324 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7326 * inferiors.c (switch_to_thread): New function.
7328 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7330 * Makefile.in (SFILE): Add "common/job-control.c".
7331 (OBS): Add "job-control.o".
7333 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7335 * Makefile: Remove "@host_makefile_frag@".
7337 2017-05-05 Pedro Alves <palves@redhat.com>
7339 * configure: Regenerate.
7341 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7343 * configure: Regenerate.
7345 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7347 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7348 software_single_step change of return type to
7349 std::vector<CORE_ADDR>.
7350 * linux-low.c (install_software_single_step_breakpoints):
7352 * linux-low.h (install_software_single_step_breakpoints):
7355 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7357 * remote-utils.c: Include "gdb_termios.h" instead of
7359 * terminal.h: Delete file.
7361 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7363 * server.c: Include <vector>.
7364 <program_argv, wrapper_argv>: Convert to std::vector.
7365 (start_inferior): Rewrite function to use C++.
7366 (handle_v_run): Likewise. Update code that calculates the argv
7367 based on the vRun packet; use C++.
7368 (captured_main): Likewise.
7370 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7372 * server.c (handle_v_cont): Initialize thread_resume::thread
7375 2017-04-05 Pedro Alves <palves@redhat.com>
7377 * configure: Regenerate.
7379 2017-04-05 Pedro Alves <palves@redhat.com>
7381 * gdbreplay.c (sync_error): Constify.
7382 * linux-x86-low.c (push_opcode): Constify.
7384 2017-04-05 Pedro Alves <palves@redhat.com>
7386 * win32-low.c (get_child_debug_event)
7387 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7388 Report TARGET_WAITKIND_SPURIOUS instead.
7390 2017-04-05 Pedro Alves <palves@redhat.com>
7392 * remote-utils.c (remote_prepare, remote_open): Constify.
7393 * remote-utils.h (remote_prepare, remote_open): Constify.
7394 * server.c (captured_main): Constify 'port' handling.
7396 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7398 * Makefile.in (clean): Clear .deps.
7400 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7402 * .gitignore: Remove generated files, replace with wildcard.
7403 * (clean): Replace removal of generated files with wildcard.
7404 (version.c): Replace with...
7405 (version-generated.c): ...this.
7406 (xml-builtin.c): Replace with...
7407 (xml-builtin-generated.c): ...this.
7408 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7409 (%.c: *regformats*): Replace with...
7410 (%-generated.c: *regformats*): ...this.
7412 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7414 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7415 (xtensa_fill_gregset): Call collect_register_by_name for
7417 (xtensa_store_gregset): Call supply_register_by_name for
7420 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7422 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7423 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7424 (xtensa_store_gregset): Call supply_register for all registers in
7425 a0_regnum..a0_regnum + C0_NREGS range.
7427 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7429 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7430 (ax-ipa.o: ax.c): Remove.
7431 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7432 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7433 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7434 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7435 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7437 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7439 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7440 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7441 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7442 (errors-ipa.o: ../common/errors.c): Remove.
7443 (format-ipa.o: ../common/format.c): Remove.
7444 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7446 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7448 * Makefile.in (%-ipa.o: %.c): New rule.
7449 (tracepoint-ipa.o: tracepoint.c): Remove.
7450 (utils-ipa.o: utils.c): Remove.
7451 (remote-utils-ipa.o: remote-utils.c): Remove.
7452 (regcache-ipa.o: regcache.c): Remove.
7453 (i386-linux-ipa.o: i386-linux.c): Remove.
7454 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7455 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7456 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7457 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7458 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7459 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7460 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7461 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7462 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7463 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7464 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7465 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7466 (aarch64-ipa.o: aarch64.c): Remove.
7467 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7468 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7469 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7470 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7471 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7472 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7473 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7474 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7475 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7476 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7477 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7478 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7479 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7480 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7481 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7482 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7483 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7484 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7485 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7486 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7487 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7488 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7489 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7490 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7491 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7492 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7493 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7494 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7495 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7496 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7497 (tdesc-ipa.o: tdesc.c): Remove.
7498 (x32-linux-ipa.o: x32-linux.c): Remove.
7499 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7500 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7502 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7504 * Makefile.in (%.o: ../arch/%.c): New rule.
7505 (arm.o: ../arch/arm.c): Remove.
7506 (arm-linux.o: ../arch/arm-linux.c): Remove.
7507 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7508 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7510 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7512 * Makefile.in (%.o: ../nat/%.c): New rule.
7513 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7514 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7515 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7516 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7517 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7518 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7519 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7520 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7521 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7522 (linux-personality.o: ../nat/linux-personality.c): Remove.
7523 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7524 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7525 (x86-linux.o: ../nat/x86-linux.c): Remove.
7526 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7527 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7529 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7531 * Makefile.in (%.o: ../common/%.c): New rule.
7532 (signals.o: ../common/signals.c): Remove.
7533 (print-utils.o: ../common/print-utils.c): Remove.
7534 (rsp-low.o: ../common/rsp-low.c): Remove.
7535 (common-utils.o: ../common/common-utils.c): Remove.
7536 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7537 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7538 (vec.o: ../common/vec.c): Remove.
7539 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7540 (xml-utils.o: ../common/xml-utils.c): Remove.
7541 (ptid.o: ../common/ptid.c): Remove.
7542 (buffer.o: ../common/buffer.c): Remove.
7543 (format.o: ../common/format.c): Remove.
7544 (filestuff.o: ../common/filestuff.c): Remove.
7545 (agent.o: ../common/agent.c): Remove.
7546 (errors.o: ../common/errors.c): Remove.
7547 (environ.o: ../common/environ.c): Remove.
7548 (common-debug.o: ../common/common-debug.c): Remove.
7549 (cleanups.o: ../common/cleanups.c): Remove.
7550 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7551 (fileio.o: ../common/fileio.c): Remove.
7552 (common-regcache.o: ../common/common-regcache.c): Remove.
7553 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7554 (new-op.o: ../common/new-op.c): Remove.
7555 (btrace-common.o: ../common/btrace-common.c): Remove.
7557 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7559 * Makefile.in (%.o: ../target/%.c): New rule.
7560 (waitstatus.o: ../target/waitstatus.c): Remove.
7562 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7565 (%.c: ../regformats/%.dat,
7566 (%.c: ../regformats/arm/%.dat,
7567 (%.c: ../regformats/i386/%.dat,
7568 (%.c: ../regformats/rs6000/%.dat): New rules.
7569 (aarch64.c): Remove.
7570 (reg-arm.c): Remove.
7571 (arm-with-iwmmxt.c): Remove.
7572 (arm-with-vfpv2.c): Remove.
7573 (arm-with-vfpv3.c): Remove.
7574 (arm-with-neon.c): Remove.
7575 (reg-bfin.c): Remove.
7576 (reg-cris.c): Remove.
7577 (reg-crisv32.c): Remove.
7579 (i386-linux.c): Remove.
7580 (i386-avx.c): Remove.
7581 (i386-avx-linux.c): Remove.
7582 (i386-avx-avx512.c): Remove.
7583 (i386-avx-avx512-linux.c): Remove.
7584 (i386-mpx.c): Remove.
7585 (i386-mpx-linux.c): Remove.
7586 (i386-avx-mpx-avx512-pku.c): Remove.
7587 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7588 (i386-avx-mpx.c): Remove.
7589 (i386-avx-mpx-linux.c): Remove.
7590 (i386-mmx.c): Remove.
7591 (i386-mmx-linux.c): Remove.
7592 (reg-ia64.c): Remove.
7593 (reg-m32r.c): Remove.
7594 (reg-m68k.c): Remove.
7596 (mips-linux.c): Remove.
7597 (mips-dsp-linux.c): Remove.
7598 (mips64-linux.c): Remove.
7599 (mips64-dsp-linux.c): Remove.
7600 (nios2-linux.c): Remove.
7601 (powerpc-32.c): Remove.
7602 (powerpc-32l.c): Remove.
7603 (powerpc-altivec32l.c): Remove.
7604 (powerpc-cell32l.c): Remove.
7605 (powerpc-vsx32l.c): Remove.
7606 (powerpc-isa205-32l.c): Remove.
7607 (powerpc-isa205-altivec32l.c): Remove.
7608 (powerpc-isa205-vsx32l.c): Remove.
7609 (powerpc-e500l.c): Remove.
7610 (powerpc-64l.c): Remove.
7611 (powerpc-altivec64l.c): Remove.
7612 (powerpc-cell64l.c): Remove.
7613 (powerpc-vsx64l.c): Remove.
7614 (powerpc-isa205-64l.c): Remove.
7615 (powerpc-isa205-altivec64l.c): Remove.
7616 (powerpc-isa205-vsx64l.c): Remove.
7617 (s390-linux32.c): Remove.
7618 (s390-linux32v1.c): Remove.
7619 (s390-linux32v2.c): Remove.
7620 (s390-linux64.c): Remove.
7621 (s390-linux64v1.c): Remove.
7622 (s390-linux64v2.c): Remove.
7623 (s390-te-linux64.c): Remove.
7624 (s390-vx-linux64.c): Remove.
7625 (s390-tevx-linux64.c): Remove.
7626 (s390x-linux64.c): Remove.
7627 (s390x-linux64v1.c): Remove.
7628 (s390x-linux64v2.c): Remove.
7629 (s390x-te-linux64.c): Remove.
7630 (s390x-vx-linux64.c): Remove.
7631 (s390x-tevx-linux64.c): Remove.
7632 (tic6x-c64xp-linux.c): Remove.
7633 (tic6x-c64x-linux.c): Remove.
7634 (tic6x-c62x-linux.c): Remove.
7636 (reg-sparc64.c): Remove.
7637 (reg-spu.c): Remove.
7639 (amd64-linux.c): Remove.
7640 (amd64-avx.c): Remove.
7641 (amd64-avx-linux.c): Remove.
7642 (amd64-avx-avx512.c): Remove.
7643 (amd64-avx-avx512-linux.c): Remove.
7644 (amd64-mpx.c): Remove.
7645 (amd64-mpx-linux.c): Remove.
7646 (amd64-avx-mpx-avx512-pku.c): Remove.
7647 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7648 (amd64-avx-mpx.c): Remove.
7649 (amd64-avx-mpx-linux.c): Remove.
7651 (x32-linux.c): Remove.
7652 (x32-avx.c): Remove.
7653 (x32-avx-linux.c): Remove.
7654 (x32-avx-avx512.c): Remove.
7655 (x32-avx-avx512-linux.c): Remove.
7656 (reg-xtensa.c): Remove.
7657 (reg-tilegx.c): Remove.
7658 (reg-tilegx32.c): Remove.
7660 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7662 * Makefile.in (SFILES): Add "common/environ.c".
7663 (OBJS): Add "common/environ.h".
7665 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7667 * configure.ac: Check if the fs_base and gs_base members of
7668 `struct user_regs_struct' exist.
7669 * config.in: Regenerated.
7670 * configure: Likewise.
7672 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7674 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7676 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7677 (get_next_pcs_syscall_next_pc): Likewise.
7679 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7681 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7682 * nto-x86-low.c: Likewise.
7684 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7686 * Makefile.in: Include disable-implicit-rules.mk.
7688 2016-11-23 Pedro Alves <palves@redhat.com>
7690 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7691 (debug_vprintf): Use std::chrono::steady_clock instead of
7692 gettimeofday. Use '.' instead of ':'.
7693 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7694 (get_timestamp): Use std::chrono::steady_clock instead of
7697 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7699 * Makefile.in: Fix whitespace formatting.
7701 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7703 * Makefile.in (SFILES, OBS): Flatten list and order
7706 2016-11-23 Pedro Alves <palves@redhat.com>
7708 * event-loop.c (handle_file_event): Use warning.
7709 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7710 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7713 2016-11-23 Pedro Alves <palves@redhat.com>
7715 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7717 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7718 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7719 debug_printf and debug_flush for debug output.
7720 * server.c (handle_general_set): Likewise.
7721 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7724 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7726 * Makefile.in (.c.o): Replace rule with ...
7727 (%.o: %.c): ... this one.
7729 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7731 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7732 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7734 * configure.ac: Remove checks for the make program.
7735 * configure: Re-generate.
7737 2016-10-28 Pedro Alves <palves@redhat.com>
7739 * Makefile.in (CXX_DIALECT): Get from configure.
7740 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7741 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7742 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7743 * config.in: Regenerate.
7744 * configure: Regenerate.
7746 2016-10-27 Yao Qi <yao.qi@linaro.org>
7748 * linux-low.c (linux_supports_range_stepping): Return true if
7749 can_software_single_step return true.
7751 2016-10-27 Yao Qi <yao.qi@linaro.org>
7753 * inferiors.c (find_inferior_in_random): New function.
7754 * inferiors.h (find_inferior_in_random): Declare.
7755 * linux-low.c (linux_wait_for_event_filtered): Call
7756 find_inferior_in_random instead of find_inferior.
7758 2016-10-27 Yao Qi <yao.qi@linaro.org>
7760 * linux-low.c (linux_wait_1): If single-step breakpoints are
7761 inserted, remove them.
7763 2016-10-26 Pedro Alves <palves@redhat.com>
7765 * linux-low.c (handle_extended_wait): Link parent/child fork
7767 (linux_wait_1): Unlink them.
7768 (linux_set_resume_request): Ignore resume requests for
7769 already-resumed and unhandled fork child threads.
7770 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7771 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7773 (handle_v_requests) <vCont>: Don't call require_running.
7774 * server.h (in_queued_stop_replies): New declaration.
7776 2016-10-24 Yao Qi <yao.qi@linaro.org>
7779 * linux-aarch64-low.c (append_insns): Cast the return value to
7782 2016-10-10 Yao Qi <yao.qi@linaro.org>
7784 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7786 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7788 * target.c (target_supports_multi_process): New function, moved
7790 * target.h (target_supports_multi_process): ... here. Remove
7793 2016-10-05 Tom Tromey <tom@tromey.com>
7796 * tracepoint.c (handle_tracepoint_bkpts): Check
7797 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7799 2016-10-05 Yao Qi <yao.qi@linaro.org>
7801 * configure.srv: Update the path of arm-*.xml files.
7803 2016-10-05 Terry Guo <terry.guo@arm.com>
7804 Yao Qi <yao.qi@linaro.org>
7806 * Makefile.in: Adjust the path of rules.
7807 * configure.srv: Update the path of xml files.
7808 * regformats/arm-with-iwmmxt.dat: Regenerated.
7809 * regformats/arm-with-neon.dat: Likewise.
7810 * regformats/arm-with-vfpv2.dat: Likewise.
7811 * regformats/arm-with-vfpv3.dat Likewise.
7813 2016-09-30 Yao Qi <yao.qi@linaro.org>
7816 * target.c (target_stop_and_wait): Don't call
7817 target_continue_no_signal, use resume_stop instead.
7819 2016-09-26 Yao Qi <yao.qi@linaro.org>
7821 * linux-low.c (linux_wait_1): Call debug_exit.
7823 2016-09-23 Pedro Alves <palves@redhat.com>
7825 * Makefile.in (SFILES): Add common/new-op.c.
7826 (OBS): Add common/new-op.o.
7827 (new-op.o): New rule.
7829 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7831 * .gitinore: Ignore more files.
7833 2016-09-21 Yao Qi <yao.qi@linaro.org>
7835 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7838 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7840 * server.c (start_inferior): Call target_mourn_inferior instead of
7841 mourn_inferior; pass ptid_t argument to it.
7843 (handle_target_event): Likewise.
7844 * target.c (target_mourn_inferior): New function.
7845 * target.h (mourn_inferior): Delete macro.
7847 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7849 * linux-low.c (lwp_is_stepping): New function.
7851 2016-09-06 Carl Love <cel@us.ibm.com>
7853 * server.c (start_inferior): Fixed comment, requested comment change
7854 didn't get updated correctly. Removed reference to ptrace () call as
7855 it is only true on Linux systems.
7857 2016-09-06 Carl Love <cel@us.ibm.com>
7859 * server.c (start_inferior): Do not call
7860 function target_post_create_inferior () if the
7861 inferior process has already exited.
7863 2016-09-05 Pedro Alves <palves@redhat.com>
7865 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7866 (COMPILE.pre, CC_LD): Use CXX directly.
7867 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7868 * acinclude.m4: Don't include build-with-cxx.m4.
7869 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7870 * configure: Regenerate.
7872 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7875 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7876 call writing data to own_buf.
7878 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7880 * target.c (mywait): Call target_wait instead of
7882 (target_wait): New function.
7884 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7886 * server.c (start_inferior): New variable 'ptid'. Replace calls
7887 to the_target->resume by target_continue{,_no_signal}, depending
7889 * target.c (target_stop_and_wait): Call target_continue_no_signal
7890 instead of the_target->resume.
7891 (target_continue): New function.
7893 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7895 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7897 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7900 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7902 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7903 * linux-arm-low.c (ps_get_thread_area): Likewise.
7904 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7905 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7906 * linux-mips-low.c (ps_get_thread_area): Likewise.
7907 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7908 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7909 * linux-x86-low.c (ps_get_thread_area): Likewise.
7910 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7912 2016-08-19 Pedro Alves <palves@redhat.com>
7914 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7916 2016-08-19 Pedro Alves <palves@redhat.com>
7918 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7919 comment. Use memcpy instead of casting through unsigned long.
7921 2016-08-19 Pedro Alves <palves@redhat.com>
7923 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7924 allocating around 0x80000000.
7926 2016-08-19 Pedro Alves <palves@redhat.com>
7929 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7930 (x32-avx512-linux-ipa.o): New rules.
7931 * configure.ac (x86_64-*-linux*): New x32 check.
7932 * configure.srv (ipa_x32_linux_regobj): New.
7933 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7934 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7936 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7938 * configure: Regenerate.
7940 2016-08-09 Pedro Alves <palves@redhat.com>
7943 * Makefile.in (OBS): Add signals-state-save-restore.o.
7944 (signals-state-save-restore.o): New rule.
7945 * config.in: Regenerate.
7946 * configure: Regenerate.
7947 * linux-low.c: Include "signals-state-save-restore.h".
7948 (linux_create_inferior): Call
7949 restore_original_signals_state.
7950 * server.c: Include "dispositions-save-restore.h".
7951 (captured_main): Call save_original_signals_state.
7953 2016-08-05 Pedro Alves <palves@redhat.com>
7955 * configure: Regenerate.
7957 2016-08-04 Yao Qi <yao.qi@linaro.org>
7959 * linux-low.c (regsets_fetch_inferior_registers): Check
7960 errno is ESRCH or not.
7962 2016-08-02 Yao Qi <yao.qi@linaro.org>
7964 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7965 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7966 (thread_db_load_search): Update.
7967 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7968 td_ta_set_event and td_ta_event_getmsg.
7970 2016-07-26 Pedro Alves <palves@redhat.com>
7973 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7974 of unsigned long for 64-bit registers and use uint32_t instead of
7975 unsigned int for 32-bit registers.
7977 2016-07-26 Pedro Alves <palves@redhat.com>
7979 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7982 2016-07-21 Tom Tromey <tom@tromey.com>
7984 * configure: Rebuild.
7986 2016-07-21 Yao Qi <yao.qi@linaro.org>
7988 * mem-break.c (find_gdb_breakpoint): Cast bp to
7989 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7991 2016-07-21 Yao Qi <yao.qi@linaro.org>
7993 * server.c (handle_v_requests): Support s and S actions
7994 if target_supports_software_single_step return true.
7996 2016-07-21 Yao Qi <yao.qi@linaro.org>
7998 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7999 is resume_step, call maybe_hw_step.
8000 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8002 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8004 (proceed_one_lwp): If resume request is resume_step, install
8005 reinsert breakpoints and call maybe_hw_step.
8007 2016-07-21 Yao Qi <yao.qi@linaro.org>
8009 * linux-low.c (proceed_one_lwp): Declare.
8010 (linux_resume_one_thread): Remove local variable 'step'.
8011 Lift code enqueue signal. Call proceed_one_lwp instead of
8012 linux_resume_one_lwp.
8014 2016-07-21 Yao Qi <yao.qi@linaro.org>
8016 * linux-low.c (linux_resume_one_thread): Call
8017 enqueue_pending_signal.
8019 2016-07-21 Yao Qi <yao.qi@linaro.org>
8021 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8022 * inferiors.c (do_restore_current_thread_cleanup): New function.
8023 (make_cleanup_restore_current_thread): Likewise.
8024 * linux-low.c (install_software_single_step_breakpoints): Call
8025 make_cleanup_restore_current_thread. Switch current_thread to
8028 2016-07-21 Yao Qi <yao.qi@linaro.org>
8030 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8031 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8032 (clone_one_breakpoint): Likewise.
8033 (delete_reinsert_breakpoints): Change parameter to thread.
8035 (has_reinsert_breakpoints): Likewise.
8036 (uninsert_reinsert_breakpoints): Likewise.
8037 (reinsert_reinsert_breakpoints): Likewise.
8038 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8039 (delete_reinsert_breakpoints): Likewise.
8040 (reinsert_reinsert_breakpoints): Likewise.
8041 (uninsert_reinsert_breakpoints): Likewise.
8042 (has_reinsert_breakpoints): Likewise.
8044 2016-07-21 Yao Qi <yao.qi@linaro.org>
8046 * inferiors.c (get_thread_process): Make parameter const.
8047 * inferiors.h (get_thread_process): Update declaration.
8048 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8049 Add new parameters child_thread and parent_thread. Callers
8051 * mem-break.h (clone_all_breakpoints): Update declaration.
8053 2016-07-21 Yao Qi <yao.qi@linaro.org>
8055 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8056 <command_list, handler>: Remove.
8057 (struct gdb_breakpoint): New.
8058 (struct other_breakpoint): New.
8059 (struct reinsert_breakpoint): New.
8060 (is_gdb_breakpoint): New function.
8061 (any_persistent_commands): Update command_list if
8062 is_gdb_breakpoint returns true.
8063 (set_breakpoint): Create breakpoints according to their types.
8064 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8065 (set_gdb_breakpoint_1): Likewise.
8066 (set_gdb_breakpoint): Likewise.
8067 (clear_breakpoint_conditions): Change parameter type to
8068 'struct gdb_breakpoint *'.
8069 (clear_breakpoint_commands): Likewise.
8070 (clear_breakpoint_conditions_and_commands): Likewise.
8071 (add_condition_to_breakpoint): Likewise.
8072 (add_breakpoint_condition): Likewise.
8073 (add_commands_to_breakpoint): Likewise.
8074 (check_breakpoints): Check other_breakpoint.
8075 (clone_one_breakpoint): Clone breakpopint according to its type.
8076 * mem-break.h (struct gdb_breakpoint): Declare.
8077 (set_gdb_breakpoint): Update declaration.
8078 (clear_breakpoint_conditions_and_commands): Likewise.
8079 (add_breakpoint_condition): Likewise.
8080 (add_breakpoint_commands): Likewise.
8081 * server.c (process_point_options): Change parameter type to
8082 'struct gdb_breakpoint *'.
8084 2016-07-21 Yao Qi <yao.qi@linaro.org>
8086 * mem-break.c (set_breakpoint_at): Rename it to ...
8087 (set_breakpoint_type_at): ... it.
8088 (set_breakpoint_at): Call set_breakpoint_type_at.
8089 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8090 * mem-break.h (set_breakpoint_at): Update comments.
8092 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8094 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8096 (nios2_store_gregset): Likewise.
8098 2016-07-01 Pedro Alves <palves@redhat.com>
8099 Antoine Tremblay <antoine.tremblay@ericsson.com>
8101 * linux-low.c: Change interface to take the target lwp_info
8102 pointer directly and return void. Handle detaching from a zombie
8104 (linux_detach_lwp_callback): New function.
8105 (linux_detach): Detach from the leader thread after detaching from
8108 2016-06-28 Yao Qi <yao.qi@linaro.org>
8110 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8111 for variable new_offset.
8112 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8113 (aarch64_ftrace_insn_reloc_cb): Likewise.
8114 (aarch64_ftrace_insn_reloc_tb): Likewise.
8115 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8116 PRIx64 instead of PRIx32.
8118 2016-06-28 Yao Qi <yao.qi@linaro.org>
8120 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8121 (the_low_target): Install arm_get_syscall_trapinfo.
8123 2016-06-28 Yao Qi <yao.qi@linaro.org>
8125 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8127 (the_low_target): Install aarch64_get_syscall_trapinfo.
8129 2016-06-28 Yao Qi <yao.qi@linaro.org>
8131 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8133 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8134 Remove parameter sysno.
8135 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8138 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8140 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8141 (s390_emit_ne_goto): Likewise.
8142 (s390_emit_lt_goto): Likewise.
8143 (s390_emit_le_goto): Likewise.
8144 (s390_emit_gt_goto): Likewise.
8145 (s390_emit_ge_goto): Likewise.
8146 (s390x_emit_eq_goto): Likewise.
8147 (s390x_emit_ne_goto): Likewise.
8148 (s390x_emit_lt_goto): Likewise.
8149 (s390x_emit_le_goto): Likewise.
8150 (s390x_emit_gt_goto): Likewise.
8151 (s390x_emit_ge_goto): Likewise.
8152 (s390_emit_ops_impl): Mark variable static.
8153 (s390x_emit_ops): Likewise.
8155 2016-06-17 Yao Qi <yao.qi@linaro.org>
8157 * linux-low.c (handle_extended_wait): Call
8158 uninsert_reinsert_breakpoints for the parent process. Remove
8159 reinsert breakpoints from the child process. Reinsert them to
8160 the parent process when vfork is done.
8161 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8162 (reinsert_reinsert_breakpoints): New function.
8163 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8164 (reinsert_reinsert_breakpoints): Declare.
8166 2016-06-17 Yao Qi <yao.qi@linaro.org>
8168 * linux-low.c (handle_extended_wait): If the parent is doing
8169 step-over, remove the reinsert breakpoints from the forked child.
8171 2016-06-17 Yao Qi <yao.qi@linaro.org>
8173 * linux-low.c (unsuspend_all_lwps): Declare.
8174 (linux_low_filter_event): If thread exited, call finish_step_over.
8175 If step-over is finished, unsuspend other threads.
8177 2016-06-17 Yao Qi <yao.qi@linaro.org>
8179 * linux-low.c (linux_resume_one_lwp_throw): Assert
8180 has_reinsert_breakpoints returns false.
8181 * mem-break.c (delete_disabled_breakpoints): Assert
8182 bp type isn't reinsert_breakpoint.
8184 2016-06-17 Yao Qi <yao.qi@linaro.org>
8186 * linux-low.c (maybe_hw_step): New function.
8187 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8188 (finish_step_over): Switch current_thread to lwp temporarily,
8189 and assert has_reinsert_breakpoints returns true.
8190 (proceed_one_lwp): Call maybe_hw_step.
8191 * mem-break.c (has_reinsert_breakpoints): New function.
8192 * mem-break.h (has_reinsert_breakpoints): Declare.
8194 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8196 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8198 2016-05-17 Yao Qi <yao.qi@linaro.org>
8200 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8201 instead of find_inferior.
8203 2016-05-05 Yao Qi <yao.qi@linaro.org>
8205 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8206 Initialize res to zero.
8208 2016-05-05 Yao Qi <yao.qi@linaro.org>
8210 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8213 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8215 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8216 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8217 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8219 2016-04-28 Par Olsson <par.olsson@windriver.com>
8220 Simon Marchi <simon.marchi@ericsson.com>
8222 * tracepoint.c (write_inferior_int8): New function.
8223 (cmd_qtenable_disable): Write enable flag using
8224 write_inferior_int8.
8226 2016-04-25 Yao Qi <yao.qi@linaro.org>
8228 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8229 (need_step_over_p): Return zero if the LWP has pending signals
8230 can be delivered on software single step target.
8232 2016-04-25 Yao Qi <yao.qi@linaro.org>
8234 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8235 return instead of error.
8237 2016-04-22 Yao Qi <yao.qi@linaro.org>
8239 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8242 2016-04-22 Yao Qi <yao.qi@linaro.org>
8244 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8245 signal when stepping over breakpoint with software single
8248 2016-04-21 Pedro Alves <palves@redhat.com>
8250 * linux-s390-low.c (s390_collect_ptrace_register)
8251 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8253 (s390_check_regset): Use void * instead of gdb_byte *.
8255 2016-04-20 Pedro Alves <palves@redhat.com>
8257 * configure: Renegerate.
8259 2016-04-20 Yao Qi <yao.qi@linaro.org>
8261 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8262 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8264 (arm_store_gregset): Likewise.
8266 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8268 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8269 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8270 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8271 (amd64-avx-mpx-linux.c): New rules.
8272 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8273 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8274 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8275 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8276 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8277 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8278 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8279 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8280 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8281 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8282 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8283 * linux-x86-low.c (x86_linux_read_description): Add case for
8284 X86_XSTATE_AVX_MPX_MASK.
8285 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8286 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8287 init_registers_i386_avx_mpx_linux.
8288 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8289 (initialize_low_tracepoint): Call
8290 init_registers_i386_avx_mpx_linux.
8291 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8292 (initialize_low_tracepoint): Call
8293 init_registers_amd64_avx_mpx_linux.
8294 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8295 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8296 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8299 2016-04-18 Pedro Alves <palves@redhat.com>
8301 * configure: Regenerate.
8303 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8305 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8306 (aarch64_emit_sub): Likewise.
8308 2016-04-12 Pedro Alves <palves@redhat.com>
8310 * utils.c (prepare_to_throw_exception): Delete.
8312 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8314 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8316 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8318 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8320 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8322 * linux-aarch64-ipa.c: Add <elf.h> include.
8323 * linux-ppc-ipa.c: Add <elf.h> include.
8324 * linux-s390-ipa.c: Add <elf.h> include.
8326 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8328 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8329 (get_raw_reg_ptr): Likewise.
8330 (get_trace_state_variable_value_ptr): Likewise.
8331 (set_trace_state_variable_value_ptr): Likewise.
8332 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8335 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8336 Marcin Kościelnicki <koriakin@0x04.net>
8339 * linux-ppc-low.c (emit_insns): New function.
8340 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8341 (ppc_emit_prologue): New function.
8342 (ppc_emit_epilogue): New function.
8343 (ppc_emit_add): New function.
8344 (ppc_emit_sub): New function.
8345 (ppc_emit_mul): New function.
8346 (ppc_emit_lsh): New function.
8347 (ppc_emit_rsh_signed): New function.
8348 (ppc_emit_rsh_unsigned): New function.
8349 (ppc_emit_ext): New function.
8350 (ppc_emit_zero_ext): New function.
8351 (ppc_emit_log_not): New function.
8352 (ppc_emit_bit_and): New function.
8353 (ppc_emit_bit_or): New function.
8354 (ppc_emit_bit_xor): New function.
8355 (ppc_emit_bit_not): New function.
8356 (ppc_emit_equal): New function.
8357 (ppc_emit_less_signed): New function.
8358 (ppc_emit_less_unsigned): New function.
8359 (ppc_emit_ref): New function.
8360 (ppc_emit_const): New function.
8361 (ppc_emit_reg): New function.
8362 (ppc_emit_pop): New function.
8363 (ppc_emit_stack_flush): New function.
8364 (ppc_emit_swap): New function.
8365 (ppc_emit_stack_adjust): New function.
8366 (ppc_emit_call): New function.
8367 (ppc_emit_int_call_1): New function.
8368 (ppc_emit_void_call_2): New function.
8369 (ppc_emit_if_goto): New function.
8370 (ppc_emit_goto): New function.
8371 (ppc_emit_eq_goto): New function.
8372 (ppc_emit_ne_goto): New function.
8373 (ppc_emit_lt_goto): New function.
8374 (ppc_emit_le_goto): New function.
8375 (ppc_emit_gt_goto): New function.
8376 (ppc_emit_ge_goto): New function.
8377 (ppc_write_goto_address): New function.
8378 (ppc_emit_ops_impl): New static variable.
8379 (ppc64v1_emit_prologue): New function.
8380 (ppc64v2_emit_prologue): New function.
8381 (ppc64_emit_epilogue): New function.
8382 (ppc64_emit_add): New function.
8383 (ppc64_emit_sub): New function.
8384 (ppc64_emit_mul): New function.
8385 (ppc64_emit_lsh): New function.
8386 (ppc64_emit_rsh_signed): New function.
8387 (ppc64_emit_rsh_unsigned): New function.
8388 (ppc64_emit_ext): New function.
8389 (ppc64_emit_zero_ext): New function.
8390 (ppc64_emit_log_not): New function.
8391 (ppc64_emit_bit_and): New function.
8392 (ppc64_emit_bit_or): New function.
8393 (ppc64_emit_bit_xor): New function.
8394 (ppc64_emit_bit_not): New function.
8395 (ppc64_emit_equal): New function.
8396 (ppc64_emit_less_signed): New function.
8397 (ppc64_emit_less_unsigned): New function.
8398 (ppc64_emit_ref): New function.
8399 (ppc64_emit_const): New function.
8400 (ppc64v1_emit_reg): New function.
8401 (ppc64v2_emit_reg): New function.
8402 (ppc64_emit_pop): New function.
8403 (ppc64_emit_stack_flush): New function.
8404 (ppc64_emit_swap): New function.
8405 (ppc64v1_emit_call): New function.
8406 (ppc64v2_emit_call): New function.
8407 (ppc64v1_emit_int_call_1): New function.
8408 (ppc64v2_emit_int_call_1): New function.
8409 (ppc64v1_emit_void_call_2): New function.
8410 (ppc64v2_emit_void_call_2): New function.
8411 (ppc64_emit_if_goto): New function.
8412 (ppc64_emit_eq_goto): New function.
8413 (ppc64_emit_ne_goto): New function.
8414 (ppc64_emit_lt_goto): New function.
8415 (ppc64_emit_le_goto): New function.
8416 (ppc64_emit_gt_goto): New function.
8417 (ppc64_emit_ge_goto): New function.
8418 (ppc64v1_emit_ops_impl): New static variable.
8419 (ppc64v2_emit_ops_impl): New static variable.
8420 (ppc_emit_ops): New function.
8421 (linux_low_target): Wire in ppc_emit_ops.
8423 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8424 Marcin Kościelnicki <koriakin@0x04.net>
8427 * Makefile.in: Add powerpc-*-ipa.o
8428 * configure.srv: Add ipa_obj for powerpc*-linux.
8429 * linux-ppc-ipa.c: New file.
8430 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8432 (PPC_FIELD): New macro.
8433 (PPC_SEXT): New macro.
8434 (PPC_OP6): New macro.
8435 (PPC_BO): New macro.
8436 (PPC_LI): New macro.
8437 (PPC_BD): New macro.
8438 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8439 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8440 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8441 (ppc_get_thread_area): New function.
8442 (is_elfv2_inferior): New function.
8443 (gen_ds_form): New function.
8444 (GEN_STD): New macro.
8445 (GEN_STDU): New macro.
8446 (GEN_LD): New macro.
8447 (GEN_LDU): New macro.
8448 (gen_d_form): New function.
8449 (GEN_ADDI): New macro.
8450 (GEN_ADDIS): New macro.
8451 (GEN_LI): New macro.
8452 (GEN_LIS): New macro.
8453 (GEN_ORI): New macro.
8454 (GEN_ORIS): New macro.
8455 (GEN_LWZ): New macro.
8456 (GEN_STW): New macro.
8457 (GEN_STWU): New macro.
8458 (gen_xfx_form): New function.
8459 (GEN_MFSPR): New macro.
8460 (GEN_MTSPR): New macro.
8461 (GEN_MFCR): New macro.
8462 (GEN_MTCR): New macro.
8463 (GEN_SYNC): New macro.
8464 (GEN_LWSYNC): New macro.
8465 (gen_x_form): New function.
8466 (GEN_OR): New macro.
8467 (GEN_MR): New macro.
8468 (GEN_LWARX): New macro.
8469 (GEN_STWCX): New macro.
8470 (GEN_CMPW): New macro.
8471 (gen_md_form): New function.
8472 (GEN_RLDICL): New macro.
8473 (GEN_RLDICR): New macro.
8474 (gen_i_form): New function.
8476 (GEN_BL): New macro.
8477 (gen_b_form): New function.
8478 (GEN_BNE): New macro.
8479 (GEN_LOAD): New macro.
8480 (GEN_STORE): New macro.
8481 (gen_limm): New function.
8482 (gen_atomic_xchg): New function.
8483 (gen_call): New function.
8484 (ppc_relocate_instruction): New function.
8485 (ppc_install_fast_tracepoint_jump_pad): New function.
8486 (ppc_get_min_fast_tracepoint_insn_len): New function.
8487 (ppc_get_ipa_tdesc_idx): New function.
8488 (the_low_target): Wire in the new functions.
8489 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8491 * linux-ppc-tdesc.h: New file.
8493 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8495 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8496 (alloc_jump_pad_buffer): New function.
8497 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8498 (alloc_jump_pad_buffer): New function.
8499 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8500 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8501 (alloc_jump_pad_buffer): New function.
8502 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8503 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8504 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8505 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8507 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8509 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8510 * linux-amd64-ipa.c: Likewise.
8511 * linux-i386-ipa.c: Likewise.
8512 * linux-s390-ipa.c: Likewise.
8513 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8514 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8515 set_trace_state_variable_value_ptr.
8516 (struct ipa_sym_addresses): Likewise.
8517 (symbol_list): Likewise.
8518 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8519 accessing gdb_collect directly.
8520 (gdb_collect_ptr_type): New typedef.
8521 (get_raw_reg_ptr_type): New typedef.
8522 (get_trace_state_variable_value_ptr_type): New typedef.
8523 (set_trace_state_variable_value_ptr_type): New typedef.
8524 (gdb_collect_ptr): New global.
8525 (get_raw_reg_ptr): New global.
8526 (get_trace_state_variable_value_ptr): New global.
8527 (set_trace_state_variable_value_ptr): New global.
8528 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8529 accessing get_raw_reg directly.
8530 (get_get_tsv_func_addr): Likewise for
8531 get_trace_state_variable_value_ptr.
8532 (get_set_tsv_func_addr): Likewise for
8533 set_trace_state_variable_value_ptr.
8534 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8536 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8538 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8540 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8542 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8544 (relocate_instruction): Remove own_buf.
8545 * server.c (own_buf): Make global.
8546 (handle_v_requests): Make global.
8547 * server.h (own_buf): New declaration.
8548 (handle_v_requests): New prototype.
8550 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8553 * linux-s390-low.c (add_insns): New function.
8554 (s390_emit_prologue): New function.
8555 (s390_emit_epilogue): New function.
8556 (s390_emit_add): New function.
8557 (s390_emit_sub): New function.
8558 (s390_emit_mul): New function.
8559 (s390_emit_lsh): New function.
8560 (s390_emit_rsh_signed): New function.
8561 (s390_emit_rsh_unsigned): New function.
8562 (s390_emit_ext): New function.
8563 (s390_emit_log_not): New function.
8564 (s390_emit_bit_and): New function.
8565 (s390_emit_bit_or): New function.
8566 (s390_emit_bit_xor): New function.
8567 (s390_emit_bit_not): New function.
8568 (s390_emit_equal): New function.
8569 (s390_emit_less_signed): New function.
8570 (s390_emit_less_unsigned): New function.
8571 (s390_emit_ref): New function.
8572 (s390_emit_if_goto): New function.
8573 (s390_emit_goto): New function.
8574 (s390_write_goto_address): New function.
8575 (s390_emit_litpool): New function.
8576 (s390_emit_const): New function.
8577 (s390_emit_call): New function.
8578 (s390_emit_reg): New function.
8579 (s390_emit_pop): New function.
8580 (s390_emit_stack_flush): New function.
8581 (s390_emit_zero_ext): New function.
8582 (s390_emit_swap): New function.
8583 (s390_emit_stack_adjust): New function.
8584 (s390_emit_set_r2): New function.
8585 (s390_emit_int_call_1): New function.
8586 (s390_emit_void_call_2): New function.
8587 (s390_emit_eq_goto): New function.
8588 (s390_emit_ne_goto): New function.
8589 (s390_emit_lt_goto): New function.
8590 (s390_emit_le_goto): New function.
8591 (s390_emit_gt_goto): New function.
8592 (s390_emit_ge_goto): New function.
8593 (s390x_emit_prologue): New function.
8594 (s390x_emit_epilogue): New function.
8595 (s390x_emit_add): New function.
8596 (s390x_emit_sub): New function.
8597 (s390x_emit_mul): New function.
8598 (s390x_emit_lsh): New function.
8599 (s390x_emit_rsh_signed): New function.
8600 (s390x_emit_rsh_unsigned): New function.
8601 (s390x_emit_ext): New function.
8602 (s390x_emit_log_not): New function.
8603 (s390x_emit_bit_and): New function.
8604 (s390x_emit_bit_or): New function.
8605 (s390x_emit_bit_xor): New function.
8606 (s390x_emit_bit_not): New function.
8607 (s390x_emit_equal): New function.
8608 (s390x_emit_less_signed): New function.
8609 (s390x_emit_less_unsigned): New function.
8610 (s390x_emit_ref): New function.
8611 (s390x_emit_if_goto): New function.
8612 (s390x_emit_const): New function.
8613 (s390x_emit_call): New function.
8614 (s390x_emit_reg): New function.
8615 (s390x_emit_pop): New function.
8616 (s390x_emit_stack_flush): New function.
8617 (s390x_emit_zero_ext): New function.
8618 (s390x_emit_swap): New function.
8619 (s390x_emit_stack_adjust): New function.
8620 (s390x_emit_int_call_1): New function.
8621 (s390x_emit_void_call_2): New function.
8622 (s390x_emit_eq_goto): New function.
8623 (s390x_emit_ne_goto): New function.
8624 (s390x_emit_lt_goto): New function.
8625 (s390x_emit_le_goto): New function.
8626 (s390x_emit_gt_goto): New function.
8627 (s390x_emit_ge_goto): New function.
8628 (s390_emit_ops): New function.
8629 (struct linux_target_ops): Fill in emit_ops hook.
8631 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8634 * Makefile.in: Add s390 IPA files.
8635 * configure.srv: Build IPA for s390.
8636 * linux-s390-ipa.c: New file.
8637 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8638 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8639 (tdesc_s390_linux32): Likewise.
8640 (init_registers_s390_linux32v1): Likewise.
8641 (tdesc_s390_linux32v1): Likewise.
8642 (init_registers_s390_linux32v2): Likewise.
8643 (tdesc_s390_linux32v2): Likewise.
8644 (init_registers_s390_linux64): Likewise.
8645 (tdesc_s390_linux64): Likewise.
8646 (init_registers_s390_linux64v1): Likewise.
8647 (tdesc_s390_linux64v1): Likewise.
8648 (init_registers_s390_linux64v2): Likewise.
8649 (tdesc_s390_linux64v2): Likewise.
8650 (init_registers_s390_te_linux64): Likewise.
8651 (tdesc_s390_te_linux64): Likewise.
8652 (init_registers_s390_vx_linux64): Likewise.
8653 (tdesc_s390_vx_linux64): Likewise.
8654 (init_registers_s390_tevx_linux64): Likewise.
8655 (tdesc_s390_tevx_linux64): Likewise.
8656 (init_registers_s390x_linux64): Likewise.
8657 (tdesc_s390x_linux64): Likewise.
8658 (init_registers_s390x_linux64v1): Likewise.
8659 (tdesc_s390x_linux64v1): Likewise.
8660 (init_registers_s390x_linux64v2): Likewise.
8661 (tdesc_s390x_linux64v2): Likewise.
8662 (init_registers_s390x_te_linux64): Likewise.
8663 (tdesc_s390x_te_linux64): Likewise.
8664 (init_registers_s390x_vx_linux64): Likewise.
8665 (tdesc_s390x_vx_linux64): Likewise.
8666 (init_registers_s390x_tevx_linux64): Likewise.
8667 (tdesc_s390x_tevx_linux64): Likewise.
8668 (have_hwcap_s390_vx): New static variable.
8669 (s390_arch_setup): Fill have_hwcap_s390_vx.
8670 (s390_get_thread_area): New function.
8671 (s390_ft_entry_gpr_esa): New const.
8672 (s390_ft_entry_gpr_zarch): New const.
8673 (s390_ft_entry_misc): New const.
8674 (s390_ft_entry_fr): New const.
8675 (s390_ft_entry_vr): New const.
8676 (s390_ft_main_31): New const.
8677 (s390_ft_main_64): New const.
8678 (s390_ft_exit_fr): New const.
8679 (s390_ft_exit_vr): New const.
8680 (s390_ft_exit_misc): New const.
8681 (s390_ft_exit_gpr_esa): New const.
8682 (s390_ft_exit_gpr_zarch): New const.
8683 (append_insns): New function.
8684 (s390_relocate_instruction): New function.
8685 (s390_install_fast_tracepoint_jump_pad): New function.
8686 (s390_get_min_fast_tracepoint_insn_len): New function.
8687 (s390_get_ipa_tdesc_idx): New function.
8688 (struct linux_target_ops): Wire in the above functions.
8689 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8690 * linux-s390-tdesc.h: New file.
8692 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8694 * linux-s390-low.c (s390_supports_tracepoints): New function.
8695 (struct linux_target_ops): Fill supports_tracepoints hook.
8697 2016-03-18 Yao Qi <yao.qi@linaro.org>
8699 * linux-low.c (lwp_signal_can_be_delivered): New function.
8700 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8702 2016-03-18 Yao Qi <yao.qi@linaro.org>
8704 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8705 0 if signal is enqueued. Remove 'signal' from one debugging
8706 message. Move one debugging message to some lines below.
8707 Remove code setting 'signal' to 0.
8709 2016-03-18 Yao Qi <yao.qi@linaro.org>
8711 * linux-low.c (linux_low_filter_event): Remove redundant
8712 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8714 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8716 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8717 (struct linux_target_ops): Wire in the above.
8719 2016-03-03 Yao Qi <yao.qi@linaro.org>
8721 * linux-low.c: Update comments to start_step_over.
8723 2016-03-03 Yao Qi <yao.qi@linaro.org>
8726 * linux-low.c (handle_extended_wait): Set child suspended
8727 if event_lwp->bp_reinsert isn't zero.
8729 2016-03-02 Yao Qi <yao.qi@linaro.org>
8731 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8732 enqueue_pending_signal.
8734 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8736 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8739 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8741 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8742 (s390_regmap_3264) [!__s390x__]: New global.
8743 (s390_collect_ptrace_register): Skip map entries containing -1.
8744 (s390_supply_ptrace_register): Ditto.
8745 (s390_fill_gprs_high): New function.
8746 (s390_store_gprs_high): New function.
8747 (s390_regsets): Add NT_S390_HIGH_GPRS.
8748 (s390_get_hwcap): Enable on 31-bit.
8749 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8750 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8751 Detect NT_S390_HIGH_GPRS.
8752 (s390_usrregs_info_3264): Enable on 31-bit.
8753 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8754 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8756 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8759 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8760 * configure.srv: Ditto.
8761 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8762 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8763 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8764 (init_registers_amd64_linux): Remove prototype.
8765 (tdesc_amd64_linux): Remove declaration.
8766 (get_ipa_tdesc): New function.
8767 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8768 initialize remaining tdescs.
8769 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8770 (init_registers_i386_linux): Remove prototype.
8771 (tdesc_i386_linux): Remove declaration.
8772 (get_ipa_tdesc): New function.
8773 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8774 initialize remaining tdescs.
8775 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8776 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8777 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8778 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8779 (x86_get_ipa_tdesc_idx): New function.
8780 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8781 * linux-x86-tdesc.h: New file.
8782 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8783 (target_get_ipa_tdesc_idx): New macro.
8784 * tracepoint.c (ipa_tdesc_idx): New macro.
8785 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8786 (symbol_list): Add ipa_tdesc_idx.
8787 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8788 (ipa_tdesc): Remove.
8789 (ipa_tdesc_idx): New variable.
8790 (get_context_regcache): Use get_ipa_tdesc.
8791 (gdb_collect): Ditto.
8793 * tracepoint.h (get_ipa_tdesc): New prototype.
8794 (ipa_tdesc): Remove.
8796 2016-02-24 Pedro Alves <palves@redhat.com>
8798 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8799 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8800 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8801 Factor out common code between the USE_SIGTRAP_SIGINFO and
8802 !USE_SIGTRAP_SIGINFO blocks.
8803 (linux_low_filter_event): Call save_stop_reason instead of
8804 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8806 (linux_wait_1): Update comments.
8808 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8810 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8811 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8812 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8813 ppc_insert_point, ppc_remove_point.
8815 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8817 * linux-s390-low.c (s390_supports_z_point_type): New function.
8818 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8820 2016-02-16 Yao Qi <yao.qi@linaro.org>
8822 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8823 PC. Get pc from regcache_read_pc.
8825 2016-02-12 Yao Qi <yao.qi@linaro.org>
8827 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8828 or linux_get_pc_32bit.
8829 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8831 2016-02-12 Yao Qi <yao.qi@linaro.org>
8833 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8834 arm_linux_get_next_pcs_fixup.
8836 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8838 * tracepoint.c (x_tracepoint_action_download): Change
8839 write_inferior_data_ptr to write_inferior_data_pointer.
8840 (cmd_qtstart): Likewise.
8841 (write_inferior_data_ptr): Remove.
8842 (download_agent_expr): Change write_inferior_data_ptr to
8843 write_inferior_data_pointer.
8844 (download_tracepoint_1): Likewise.
8845 (download_tracepoint): Likewise.
8846 (download_trace_state_variables): Likewise.
8848 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8849 Marcin Kościelnicki <koriakin@0x04.net>
8851 * tracepoint.c (struct tracepoint_action_ops): Remove.
8852 (struct tracepoint_action): Remove ops.
8853 (m_tracepoint_action_download, r_tracepoint_action_download)
8854 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8855 size and offset accordingly.
8856 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8857 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8858 (tracepoint_action_send, tracepoint_action_download): New functions.
8859 Helpers for trace action handlers.
8860 (add_tracepoint_action): Remove setup actions ops.
8861 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8863 2016-02-10 Yao Qi <yao.qi@linaro.org>
8865 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8867 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8869 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8871 * configure: Regenerate.
8873 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8875 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8876 void * to gdb_byte *.
8877 * linux-low.c (siginfo_fixup): Likewise.
8878 (linux_xfer_siginfo): Likewise.
8879 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8881 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8883 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8885 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8887 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8889 * linux-x86-low.c [__x86_64__]: Include
8890 "nat/amd64-linux-siginfo.h".
8891 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8892 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8893 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8894 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8895 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8896 (cpt_si_fd, si_timerid, si_overrun): Move from
8897 nat/amd64-linux-siginfo.c.
8898 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8900 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8902 * server.c (skip_to_semicolon): Remove.
8903 (process_point_options): Use strchrnul instead of
8906 2016-01-26 Yao Qi <yao.qi@linaro.org>
8908 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8909 * linux-low.c (install_software_single_step_breakpoints): Don't
8910 call regcache_read_pc.
8911 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8914 2016-01-26 Yao Qi <yao.qi@linaro.org>
8916 * linux-low.c (install_software_single_step_breakpoints): Call
8917 regcache_read_pc instead of get_pc.
8919 2016-01-26 Yao Qi <yao.qi@linaro.org>
8921 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8922 (unblock_async_io): Rename to ...
8923 (block_unblock_async_io): ... it. New function.
8924 (enable_async_io): Don't install SIGIO handler. Unblock it
8926 (disable_async_io): Don't ignore SIGIO. Block it instead.
8927 (initialize_async_io): Install SIGIO handler. Don't call
8930 2016-01-26 Yao Qi <yao.qi@linaro.org>
8932 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8933 first character is '\003', call *the_target->request_interrupt.
8935 2016-01-25 Yao Qi <yao.qi@linaro.org>
8937 * remote-utils.c (new_thread_notify): Remove.
8938 (dead_thread_notify): Likewise.
8939 * remote-utils.h (new_thread_notify): Remove declaration.
8940 (dead_thread_notify): Likewise.
8942 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8944 * gdb.trace/pending.exp: Fix expected message on continue.
8946 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8948 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8949 it works properly on big-endian machines where sizeof (CORE_ADDR)
8952 2016-01-21 Pedro Alves <palves@redhat.com>
8954 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8955 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8956 * configure: Regenerate.
8958 2016-01-21 Yao Qi <yao.qi@linaro.org>
8960 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8961 is_thumb and set it according to CPSR saved on the stack.
8962 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8963 arm_sigreturn_next_pc.
8965 2016-01-18 Yao Qi <yao.qi@linaro.org>
8967 * linux-low.c (linux_set_pc_64bit): New function.
8968 (linux_get_pc_64bit): New function.
8969 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8971 * linux-sparc-low.c (debug_threads): Remove declaration.
8972 (sparc_get_pc): Remove.
8973 (the_low_target): Use linux_get_pc_64bit instead of
8975 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_64bit and
8979 2016-01-18 Yao Qi <yao.qi@linaro.org>
8981 * linux-arm-low.c (debug_threads): Remove declaration.
8982 (arm_get_pc, arm_set_pc): Remove.
8983 (the_low_target): Use linux_get_pc_32bit and
8985 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8986 (the_low_target): Use linux_get_pc_32bit and
8988 * linux-cris-low.c (debug_threads): Remove declaration.
8989 (cris_get_pc, cris_set_pc,): Remove.
8990 (the_low_target): Use linux_get_pc_32bit and
8992 * linux-crisv32-low.c (debug_threads): Remove declaration.
8993 (cris_get_pc, cris_set_pc): Remove.
8994 (the_low_target): Use linux_get_pc_32bit and
8996 * linux-low.c: Include inttypes.h.
8997 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8998 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8999 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9000 (the_low_target): Use linux_get_pc_32bit and
9002 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9003 (the_low_target): Use linux_get_pc_32bit and
9005 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9006 (the_low_target): Use linux_get_pc_32bit and
9008 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9009 (the_low_target): Use linux_get_pc_32bit and
9011 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9012 (the_low_target): Use linux_get_pc_32bit and
9015 2016-01-18 Gary Benson <gbenson@redhat.com>
9017 * configure.ac (AC_FUNC_FORK): New check.
9018 * config.in: Regenerate.
9019 * configure: Likewise.
9021 2016-01-14 Yao Qi <yao.qi@linaro.org>
9023 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9024 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9025 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9026 arm_get_next_pcs_ctor.
9028 2016-01-12 Josh Stone <jistone@redhat.com>
9029 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9031 * inferiors.h: Include "gdb_vecs.h".
9032 (struct process_info): Add syscalls_to_catch.
9033 * inferiors.c (remove_process): Free syscalls_to_catch.
9034 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9035 syscall_return stops.
9036 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9037 * server.c (handle_general_set): Handle QCatchSyscalls.
9038 (handle_query): Report support for QCatchSyscalls.
9039 * target.h (struct target_ops): Add supports_catch_syscall.
9040 (target_supports_catch_syscall): New macro.
9041 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9042 (struct lwp_info): Add syscall_state.
9043 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9044 Maintain syscall_state and syscalls_to_catch across exec.
9045 (get_syscall_trapinfo): New function, proxy to the_low_target.
9046 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9047 (linux_low_filter_event): Toggle syscall_state entry/return for
9048 syscall traps, and set it ignored for all others.
9049 (gdb_catching_syscalls_p): New function.
9050 (gdb_catch_this_syscall_p): New function.
9051 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9052 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9053 (linux_supports_catch_syscall): New function.
9054 (linux_target_ops): Install it.
9055 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9056 (the_low_target): Install it.
9058 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9060 * acinclude.m4: Include new ../warning.m4 file.
9061 * configure: Regenerated.
9062 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9064 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9066 * ax.c (is_goto_target): Mark static.
9067 * linux-low.c (register_addr): Likewise.
9068 (linux_fetch_registers, linux_store_registers): Likewise.
9069 * mem-break.c (any_persistent_commands): Fix old prototype.
9070 (add_commands_to_breakpoint): Mark static.
9071 * regcache.c (find_register_by_name): Delete unused func.
9072 * remote-utils.c (hex_or_minus_one): Mark static.
9073 * server.c (monitor_show_help): Mark static.
9074 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9075 handle_v_requests): Likewise.
9077 2016-01-12 Pedro Alves <palves@redhat.com>
9079 Remove use of the registered trademark symbol throughout.
9081 2016-01-08 Yao Qi <yao.qi@linaro.org>
9083 * remote-utils.c (getpkt): If c is '\003', call target hook
9086 2016-01-06 Yao Qi <yao.qi@linaro.org>
9088 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9089 linux-aarch32-low.c.
9090 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9091 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9092 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9093 (thumb2_breakpoint): Declare.
9094 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9095 linux-aarch32-low.h.
9096 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9097 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9098 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9100 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9102 * gdbreplay.c (gdbreplay_version): Change copyright year in
9104 * server.c (gdbserver_version): Likewise.
9106 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9108 * server.c (crc32_table): Delete.
9109 (crc32): Use libiberty's xcrc32 function.
9111 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9113 * lynx-low.c (lynx_delete_thread_callback): New function.
9114 (lynx_mourn): Properly delete our process and all of its
9115 threads. Remove call to clear_inferiors.
9117 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9119 * target.c (thread_search_callback): Add check that
9120 the thread_stopped target callback is not NULL before
9123 2015-12-21 Yao Qi <yao.qi@linaro.org>
9125 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9128 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9130 * server.c (handle_query): Call target_supports_software_single_step.
9132 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9134 * linux-low.c (single_step): New function.
9135 (linux_resume_one_lwp_throw): Call single_step.
9136 (start_step_over): Likewise.
9138 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9140 * Makefile.in (SFILES): Append arch/arm-linux.c,
9141 arch/arm-get-next-pcs.c.
9142 (arm-linux.o): New rule.
9143 (arm-get-next-pcs.o): New rule.
9144 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9146 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9147 to linux-aarch32-low.c.
9148 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9149 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9150 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9151 (thumb2_breakpoint_len): Likewise.
9152 (arm_is_thumb_mode): Make non-static.
9153 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9154 from linux-aarch32-low.c.
9155 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9156 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9157 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9158 (thumb2_breakpoint_len): Likewise.
9159 (arm_is_thumb_mode): New declaration.
9160 * linux-arm-low.c: Include arch/arm-linux.h
9161 aarch/arm-get-next-pcs.h, sys/syscall.h.
9162 (get_next_pcs_ops): New struct.
9163 (get_next_pcs_addr_bits_remove): New function.
9164 (get_next_pcs_is_thumb): New function.
9165 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9166 (arm_sigreturn_next_pc): Likewise.
9167 (get_next_pcs_syscall_next_pc): Likewise.
9168 (arm_gdbserver_get_next_pcs): Likewise.
9169 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9171 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9172 * server.h: Include gdb_vecs.h.
9174 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9176 * Makefile.in (SFILES): Append common/common-regcache.c.
9177 (OBS): Append common-regcache.o.
9178 (common-regcache.o): New rule.
9179 * regcache.c (init_register_cache): Initialize cache to
9181 (regcache_raw_read_unsigned): New function.
9182 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9183 register_status enum.
9185 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9187 * linux-aarch64-low.c (the_low_targets): Rename
9188 breakpoint_reinsert_addr to get_next_pcs.
9189 * linux-arm-low.c (the_low_targets): Likewise.
9190 * linux-bfin-low.c (the_low_targets): Likewise.
9191 * linux-cris-low.c (the_low_targets): Likewise.
9192 * linux-crisv32-low.c (the_low_targets): Likewise.
9193 * linux-low.c (can_software_single_step): Likewise.
9194 (install_software_single_step_breakpoints): New function.
9195 (start_step_over): Use install_software_single_step_breakpoints.
9196 * linux-low.h: New CORE_ADDR vector.
9197 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9199 * linux-mips-low.c (the_low_targets): Likewise.
9200 * linux-nios2-low.c (the_low_targets): Likewise.
9201 * linux-sparc-low.c (the_low_targets): Likewise.
9203 2015-12-17 Pedro Alves <palves@redhat.com>
9205 * linux-low.c (linux_kill_one_lwp): Remove references to
9207 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9209 (linux_init_signals): Delete.
9210 (initialize_low): Adjust.
9211 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9213 2015-12-16 Pedro Alves <palves@redhat.com>
9215 * configure.ac (compiler warning flags): When testing a
9216 -Wno-foo option, check whether -Wfoo works instead.
9217 * configure: Regenerate.
9219 2015-12-11 Don Breazeal <donb@codesourcery.com>
9221 * server.c (process_serial_event): Don't exit from gdbserver
9222 in remote mode if there are still active inferiors.
9224 2015-12-11 Yao Qi <yao.qi@linaro.org>
9226 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9227 arm_breakpoint_at if the process is 32-bit.
9229 2015-12-11 Yao Qi <yao.qi@linaro.org>
9231 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9234 2015-12-07 Yao Qi <yao.qi@linaro.org>
9236 * configure.srv: Append arm.o to srv_tgtobj for
9237 aarch64*-*-linux* target.
9238 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9239 from linux-arm-low.c.
9240 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9241 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9242 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9243 (thumb2_breakpoint_len): Likewise.
9244 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9245 (arm_breakpoint_kinds): Likewise.
9246 (arm_breakpoint_kind_from_pc): Likewise.
9247 (arm_sw_breakpoint_from_kind): Likewise.
9248 (arm_breakpoint_kind_from_current_state): Likewise.
9249 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9250 (arm_sw_breakpoint_from_kind): Declare.
9251 (arm_breakpoint_kind_from_current_state): Declare.
9252 (arm_breakpoint_at): Declare.
9253 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9254 arm_sw_breakpoint_from_kind if process is 32-bit.
9255 (aarch64_breakpoint_kind_from_pc): New function.
9256 (aarch64_breakpoint_kind_from_current_state): New function.
9257 (the_low_target): Initialize fields breakpoint_kind_from_pc
9258 and breakpoint_kind_from_current_state.
9259 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9260 linux-aarch32-low.c.
9261 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9262 (arm_breakpoint, arm_breakpoint_len): Likewise.
9263 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9264 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9265 (arm_is_thumb_mode): Likewise.
9266 (arm_breakpoint_at): Likewise.
9267 (arm_breakpoint_kind_from_pc): Likewise.
9268 (arm_sw_breakpoint_from_kind): Likewise.
9269 (arm_breakpoint_kind_from_current_state): Likewise.
9272 2015-08-04 Yao Qi <yao.qi@linaro.org>
9274 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9275 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9276 * server.c (extended_protocol): Remove "static".
9277 * server.h (extended_protocol): Declare it.
9279 2015-12-04 Josh Stone <jistone@redhat.com>
9281 * target.h (struct target_ops) <arch_setup>: Rename to ...
9282 (struct target_ops) <post_create_inferior>: ... this.
9283 (target_arch_setup): Rename to ...
9284 (target_post_create_inferior): ... this, calling post_create_inferior.
9285 * server.c (start_inferior): Update target_arch_setup calls to
9286 target_post_create_inferior.
9287 * linux-low.c (linux_low_ptrace_options): Forward declare.
9288 (linux_arch_setup): Update its comment for general use.
9289 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9290 (struct linux_target_ops): Use linux_post_create_inferior.
9291 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9292 to post_create_inferior.
9293 * nto-low.c (struct nto_target_ops): Likewise.
9294 * spu-low.c (struct spu_target_ops): Likewise.
9295 * win32-low.c (struct win32_target_ops): Likewise.
9297 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9299 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9301 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9303 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9304 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9305 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9306 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9307 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9308 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9309 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9310 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9311 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9312 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9313 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9314 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9316 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9318 * linux-low.c (linux_look_up_symbols): Don't call
9319 linux_supports_traceclone.
9320 * linux-low.h (thread_db_init): Remove use_events argument.
9321 * thread-db.c (thread_db_use_event): Remove global variable.
9322 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9323 (struct thread_db) <td_create_bp>: Remove field.
9324 (thread_db_create_event): Remove function.
9325 (thread_db_enable_reporting): Likewise.
9326 (find_one_thread): Don't check for thread_db_use_events.
9327 (attach_thread): Likewise.
9328 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9329 (try_thread_db_load_1): Don't check for thread_db_use_events.
9330 (thread_db_init): Remove use_events argument and thread events
9332 (remove_thread_event_breakpoints): Remove function.
9333 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9335 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9337 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9339 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9340 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9341 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9342 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9343 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9345 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9348 * linux-low.c (can_hardware_single_step): Use
9349 supports_hardware_single_step.
9350 (can_software_single_step): New function.
9351 (start_step_over): Call can_software_single_step.
9352 (linux_supports_hardware_single_step): New function.
9353 (struct target_ops) <supports_software_single_step>: Initialize.
9354 * linux-low.h (struct linux_target_ops)
9355 <supports_hardware_single_step>: Initialize.
9356 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9357 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9358 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9359 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9360 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9361 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9362 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9363 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9364 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9365 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9367 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9368 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9370 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9371 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9372 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9374 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9375 * target.h (struct target_ops): <supports_software_single_step>:
9377 (target_supports_software_single_step): New macro.
9379 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9381 * linux-low.c (linux_wait_1): Fix pc advance condition.
9382 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9383 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9385 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9387 * linux-arm-low.c (arm_is_thumb_mode): New function.
9388 (arm_breakpoint_at): Use arm_is_thumb_mode.
9389 (arm_breakpoint_kind_from_current_state): New function.
9390 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9392 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9393 (linux_breakpoint_kind_from_current_state): New function.
9394 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9395 * linux-low.h (struct linux_target_ops)
9396 <breakpoint_kind_from_current_state>: New field.
9397 * target.h (struct target_ops): Likewise.
9398 (target_breakpoint_kind_from_current_state): New macro.
9400 2015-11-30 Pedro Alves <palves@redhat.com>
9402 * linux-low.c (linux_resume): Wake up the event loop before
9405 2015-11-30 Pedro Alves <palves@redhat.com>
9407 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9409 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9411 * target.c (struct thread_search): New structure.
9412 (thread_search_callback): New function.
9413 (prev_general_thread): New global.
9414 (prepare_to_access_memory, done_accessing_memory): New functions.
9415 * target.h (prepare_to_access_memory, done_accessing_memory):
9416 Replace macros with function declarations.
9418 2015-11-30 Pedro Alves <palves@redhat.com>
9421 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9422 report TARGET_WAITKIND_NO_RESUMED.
9423 * remote-utils.c (prepare_resume_reply): Handle
9424 TARGET_WAITKIND_NO_RESUMED.
9425 * server.c (report_no_resumed): New global.
9426 (handle_query) <qSupported>: Handle "no-resumed+". Report
9427 "no-resumed+" support.
9428 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9429 return error if the client doesn't support no-resumed events.
9430 (push_stop_notification): New function.
9431 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9432 events if the client supports them.
9434 2015-11-30 Pedro Alves <palves@redhat.com>
9436 * linux-low.c (thread_still_has_status_pending_p): Don't check
9438 (lwp_resumed): New function.
9439 (status_pending_p_callback): Return early if the LWP is not
9440 supposed to be resumed.
9442 2015-11-30 Pedro Alves <palves@redhat.com>
9444 * linux-low.c (handle_extended_wait): Assert that the LWP's
9445 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9446 thread create events, leave the new child's status pending.
9447 (linux_low_filter_event): If GDB wants to hear about thread exit
9448 events, leave the LWP marked dead and don't delete it.
9449 (linux_wait_for_event_filtered): Don't check for thread exit.
9450 (filter_exit_event): New function.
9451 (linux_wait_1): Use it, when returning an exit event.
9452 (linux_resume_one_lwp_throw): Assert that the LWP's
9453 waitstatus is TARGET_WAITKIND_IGNORE.
9454 * remote-utils.c (prepare_resume_reply): Handle
9455 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9456 * server.c (report_thread_events): New global.
9457 (handle_general_set): Handle QThreadEvents.
9458 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9459 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9460 TARGET_WAITKIND_THREAD_EXITED.
9461 * server.h (report_thread_events): Declare.
9463 2015-11-30 Pedro Alves <palves@redhat.com>
9465 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9466 the thread's last_resume_kind was resume_stop.
9468 2015-11-30 Pedro Alves <palves@redhat.com>
9470 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9473 2015-11-30 Pedro Alves <palves@redhat.com>
9475 * server.c (handle_v_requests): Handle vCtrlC.
9477 2015-11-30 Pedro Alves <palves@redhat.com>
9479 * gdbthread.h (find_any_thread_of_pid): Declare.
9480 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9482 * server.c (handle_query): If current_thread is NULL, look for
9483 another thread of the selected process.
9485 2015-11-26 Daniel Colascione <dancol@dancol.org>
9486 Simon Marchi <simon.marchi@ericsson.com>
9488 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9489 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9491 * target.h (struct target_ops) <thread_name>: New field.
9492 (target_thread_name): New macro.
9494 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9496 * regcache.h (regcache_invalidate_pid): Add declaration.
9497 * regcache.c (regcache_invalidate_pid): New function, extracted
9498 from regcache_invalidate.
9499 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9500 Add trivial documentation comment.
9501 * lynx-low.c: Use regcache_invalidate_pid instead of
9502 regcache_invalidate.
9504 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9506 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9507 and Elf64_auxv_t if the target is Android.
9509 2015-11-22 Doug Evans <xdje42@gmail.com>
9511 * target.h: #include <sys/types.h>.
9513 2015-11-19 Pedro Alves <palves@redhat.com>
9515 * linux-low.c (linux_process_qsupported): Change prototype.
9517 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9519 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9520 and adjust to loop over all features.
9521 * server.c (handle_query) <qSupported>: Adjust to call
9522 target_process_qsupported once, passing it a vector of unprocessed
9524 * target.h (struct target_ops) <process_qsupported>: Change
9526 (target_process_qsupported): Adjust.
9528 2015-11-19 Pedro Alves <palves@redhat.com>
9530 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9532 * configure: Regenerate.
9534 2015-11-19 Pedro Alves <palves@redhat.com>
9536 * configure: Regenerate.
9538 2015-11-19 Yao Qi <yao.qi@linaro.org>
9540 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9543 2015-11-19 Yao Qi <yao.qi@linaro.org>
9545 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9546 (struct aarch64_operand): Move enum out.
9548 2015-11-19 Yao Qi <yao.qi@linaro.org>
9550 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9551 struct user_fpsimd_state *.
9552 (aarch64_store_fpregset): Likewise.
9554 2015-11-19 Yao Qi <yao.qi@linaro.org>
9556 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9557 struct user_pt_regs *.
9558 (aarch64_store_gregset): Likewise.
9560 2015-11-18 Pedro Alves <palves@redhat.com>
9562 * Makefile.in (all_object_files): Add $IPA_OBJS.
9564 2015-11-17 Pedro Alves <palves@redhat.com>
9566 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9567 GDB_SIGNAL_0 and gdb_signal_to_string.
9569 2015-11-17 Pedro Alves <palves@redhat.com>
9571 * win32-low.c (handle_output_debug_string): Remove parameter.
9572 (win32_kill): Remove our_status local and adjust call to
9573 handle_output_debug_string.
9574 (get_child_debug_event): Adjust call to
9575 handle_output_debug_string.
9577 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9579 * linux-mips-low.c (mips_fill_gregset): Add cast.
9580 (mips_store_gregset): Likewise.
9581 (mips_fill_fpregset): Likewise.
9582 (mips_store_fpregset): Likewise.
9584 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9586 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9589 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9591 * linux-mips-low.c (mips_linux_new_thread): Change type of
9592 watch_type to enum target_hw_bp_type.
9594 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9596 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9597 Change return type to arm_hwbp_type.
9599 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9601 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9602 (arm_store_gregset): Likewise.
9603 * linux-arm-low.c (arm_get_hwcap): Likewise.
9604 (arm_read_description): Likewise.
9606 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9608 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9610 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9612 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9613 (ppc_fill_vsxregset): Likewise.
9614 (ppc_store_vsxregset): Likewise.
9615 (ppc_fill_vrregset): Likewise.
9616 (ppc_store_vrregset): Likewise.
9617 (ppc_fill_evrregset): Likewise.
9618 (ppc_store_evrregset): Likewise.
9620 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9622 * linux-ppc-low.c (ppc_usrregs_info): Remove
9623 forward-declaration.
9624 (ppc_arch_setup): Move lower in file.
9626 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9628 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9629 (ps_pdwrite): Likewise.
9631 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9633 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9634 to after assert checks.
9636 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9638 * proc-service.c (ps_pdread): Add/adjust casts.
9639 (ps_pdwrite): Add/adjust casts.
9641 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9643 * server.c (handle_search_memory_1): Cast return value of
9646 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9648 * server.c (write_qxfer_response): Change type of data to
9651 2015-10-29 Pedro Alves <palves@redhat.com>
9653 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9655 2015-10-29 Pedro Alves <palves@redhat.com>
9657 * tracepoint.c (clear_installed_tracepoints): Add casts.
9659 2015-10-29 Pedro Alves <palves@redhat.com>
9661 * server.c (handle_v_cont, process_serial_event): Add enum
9662 gdb_signal casts to signal parsing code.
9664 2015-10-29 Pedro Alves <palves@redhat.com>
9666 * linux-low.h (NULL_REGSET): Define.
9667 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9668 * linux-arm-low.c (arm_regsets): Likewise.
9669 * linux-crisv32-low.c (cris_regsets): Likewise.
9670 * linux-m68k-low.c (m68k_regsets): Likewise.
9671 * linux-mips-low.c (mips_regsets): Likewise.
9672 * linux-nios2-low.c (nios2_regsets): Likewise.
9673 * linux-ppc-low.c (ppc_regsets): Likewise.
9674 * linux-s390-low.c (s390_regsets): Likewise.
9675 * linux-sh-low.c (sh_regsets): Likewise.
9676 * linux-sparc-low.c (sparc_regsets): Likewise.
9677 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9678 * linux-tile-low.c (tile_regsets): Likewise.
9679 * linux-x86-low.c (x86_regsets): Likewise.
9680 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9682 2015-10-29 Pedro Alves <palves@redhat.com>
9684 * linux-low.h (NULL_REGSET): Define.
9685 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9686 * linux-arm-low.c (arm_regsets): Likewise.
9687 * linux-crisv32-low.c (cris_regsets): Likewise.
9688 * linux-m68k-low.c (m68k_regsets): Likewise.
9689 * linux-mips-low.c (mips_regsets): Likewise.
9690 * linux-nios2-low.c (nios2_regsets): Likewise.
9691 * linux-ppc-low.c (ppc_regsets): Likewise.
9692 * linux-s390-low.c (s390_regsets): Likewise.
9693 * linux-sh-low.c (sh_regsets): Likewise.
9694 * linux-sparc-low.c (sparc_regsets): Likewise.
9695 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9696 * linux-tile-low.c (tile_regsets): Likewise.
9697 * linux-x86-low.c (x86_regsets): Likewise.
9698 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9700 2015-10-26 Doug Evans <dje@google.com>
9702 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9704 2015-10-26 Doug Evans <dje@google.com>
9706 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9708 2015-10-26 Doug Evans <dje@google.com>
9710 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9712 (attach_thread, find_new_threads_callback): Ditto.
9714 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9716 * mem-break.h (set_breakpoint_data): Remove.
9718 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9720 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9721 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9722 (initialize_low): Remove set_breakpoint_data call.
9723 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9724 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9725 (initialize_low): Remove set_breakpoint_data call.
9726 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9727 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9728 (initialize_low): Remove set_breakpoint_data call.
9730 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9733 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9734 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9735 * target.h (target_breakpoint_kind_from_pc): New macro.
9737 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9739 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9740 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9741 the default breakpoint kind.
9743 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9745 * linux-arm-low.c (arm_supports_z_point_type): Add software
9748 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9750 * linux-arm-low.c: Refactor breakpoint definitions.
9751 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9752 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9754 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9756 * Makefile.in: Add arm.c/o.
9757 * configure.srv: Likewise.
9758 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9759 (arm_breakpoint_kind_from_pc): New function.
9760 (arm_sw_breakpoint_from_kind): Return proper kind.
9761 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9763 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9765 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9767 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9768 (struct raw_breakpoint) <size>: Remove.
9769 (struct raw_breakpoint) <kind>: Add.
9770 (bp_size): New function.
9771 (bp_opcode): Likewise.
9772 (find_raw_breakpoint_at): Adjust for kind.
9773 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9774 (remove_memory_breakpoint): Adjust for kind call bp_size.
9775 (set_raw_breakpoint_at): Adjust for kind.
9776 (set_breakpoint): Likewise.
9777 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9778 (delete_raw_breakpoint): Adjust for kind.
9779 (delete_breakpoint): Likewise.
9780 (find_gdb_breakpoint): Likewise.
9781 (set_gdb_breakpoint_1): Likewise.
9782 (set_gdb_breakpoint): Likewise.
9783 (delete_gdb_breakpoint_1): Likewise.
9784 (delete_gdb_breakpoint): Likewise.
9785 (uninsert_raw_breakpoint): Likewise.
9786 (reinsert_raw_breakpoint): Likewise.
9787 (set_breakpoint_data): Remove.
9788 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9789 (check_mem_read): Adjust for kind call bp_size.
9790 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9791 (clone_one_breakpoint): Adjust for kind.
9792 * mem-break.h (set_gdb_breakpoint): Likewise.
9793 (delete_gdb_breakpoint): Likewise.
9794 * server.c (process_serial_event): Likewise.
9796 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9798 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9799 (struct linux_target_ops) <breakpoint>: Remove.
9800 (struct linux_target_ops) <breakpoint_len>: Remove.
9801 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9802 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9803 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9804 (arm_sw_breakpoint_from_kind): New function.
9805 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9806 (struct linux_target_ops) <breakpoint>: Remove.
9807 (struct linux_target_ops) <breakpoint_len>: Remove.
9808 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9809 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9810 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9811 (struct linux_target_ops) <breakpoint>: Remove.
9812 (struct linux_target_ops) <breakpoint_len>: Remove.
9813 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9814 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9815 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9816 (struct linux_target_ops) <breakpoint>: Remove.
9817 (struct linux_target_ops) <breakpoint_len>: Remove.
9818 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9819 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9820 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9821 and sw_breakpoint_from_kind to increment the pc.
9822 (linux_breakpoint_kind_from_pc): New function.
9823 (linux_sw_breakpoint_from_kind): New function.
9824 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9825 (initialize_low): Call breakpoint_kind_from_pc and
9826 sw_breakpoint_from_kind to replace breakpoint_data/len.
9827 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9829 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9830 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9831 (struct linux_target_ops) <breakpoint>: Remove.
9832 (struct linux_target_ops) <breakpoint_len>: Remove.
9833 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9834 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9835 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9836 (struct linux_target_ops) <breakpoint>: Remove.
9837 (struct linux_target_ops) <breakpoint_len>: Remove.
9838 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9839 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9840 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9841 (struct linux_target_ops) <breakpoint>: Remove.
9842 (struct linux_target_ops) <breakpoint_len>: Remove.
9843 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9844 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9845 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9846 (struct linux_target_ops) <breakpoint>: Remove.
9847 (struct linux_target_ops) <breakpoint_len>: Remove.
9848 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9849 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9850 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9851 (struct linux_target_ops) <breakpoint>: Remove.
9852 (struct linux_target_ops) <breakpoint_len>: Remove.
9853 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9854 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9855 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9856 (struct linux_target_ops) <breakpoint>: Remove.
9857 (struct linux_target_ops) <breakpoint_len>: Remove.
9858 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9859 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9860 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9861 (struct linux_target_ops) <breakpoint>: Remove.
9862 (struct linux_target_ops) <breakpoint_len>: Remove.
9863 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9864 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9865 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9866 (struct linux_target_ops) <breakpoint>: Remove.
9867 (struct linux_target_ops) <breakpoint_len>: Remove.
9868 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9869 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9870 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9871 (struct linux_target_ops) <breakpoint>: Remove.
9872 (struct linux_target_ops) <breakpoint_len>: Remove.
9873 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9874 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9875 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9876 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9877 (struct linux_target_ops) <breakpoint>: Remove.
9878 (struct linux_target_ops) <breakpoint_len>: Remove.
9879 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9880 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9881 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9882 (struct linux_target_ops) <breakpoint>: Remove.
9883 (struct linux_target_ops) <breakpoint_len>: Remove.
9884 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9885 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9887 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9889 * linux-cris-low.c (cris_get_pc): Remove void arg.
9891 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9893 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9896 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9898 * inferiors.c (thread_pid_matches_callback): New function.
9899 (find_thread_process): New function.
9900 (remove_thread): Reset current_thread.
9901 (remove_process): Assert threads have been removed first.
9903 2015-10-15 Yao Qi <yao.qi@linaro.org>
9905 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9907 (aarch64_remove_point): Likewise.
9908 * regcache.c (regcache_register_size): New function.
9910 2015-10-12 Yao Qi <yao.qi@linaro.org>
9912 * linux-aarch64-low.c: Update all callers as emit_load_store
9913 is renamed to aarch64_emit_load_store.
9915 2015-10-12 Yao Qi <yao.qi@linaro.org>
9917 * linux-aarch64-low.c: Update all callers of function renaming
9918 from emit_insn to aarch64_emit_insn.
9920 2015-10-12 Yao Qi <yao.qi@linaro.org>
9922 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9923 arch/aarch64-insn.h.
9924 (struct aarch64_memory_operand): Likewise.
9926 (emit_insn): Move to arch/aarch64-insn.c.
9927 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9928 (emit_load_store): Move to arch/aarch64-insn.c.
9929 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9930 (can_encode_int32): Remove.
9932 2015-10-12 Yao Qi <yao.qi@linaro.org>
9934 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9935 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9936 (aarch64_relocate_instruction): Likewise.
9937 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9938 (struct aarch64_insn_visitor): Likewise.
9940 2015-10-12 Yao Qi <yao.qi@linaro.org>
9942 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9943 (struct aarch64_insn_visitor): New.
9944 (struct aarch64_insn_relocation_data): New.
9945 (aarch64_ftrace_insn_reloc_b): New function.
9946 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9947 (aarch64_ftrace_insn_reloc_cb): Likewise.
9948 (aarch64_ftrace_insn_reloc_tb): Likewise.
9949 (aarch64_ftrace_insn_reloc_adr): Likewise.
9950 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9951 (aarch64_ftrace_insn_reloc_others): Likewise.
9953 (aarch64_relocate_instruction): Use visitor.
9955 2015-10-12 Yao Qi <yao.qi@linaro.org>
9957 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9958 int. Add argument buf.
9959 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9960 aarch64_relocate_instruction.
9962 2015-10-12 Yao Qi <yao.qi@linaro.org>
9964 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9965 argument insn. Remove local variable insn. Don't call
9967 (aarch64_install_fast_tracepoint_jump_pad): Call
9970 2015-09-30 Yao Qi <yao.qi@linaro.org>
9972 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9973 (emit_load_store_pair): Likewise.
9975 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9977 * dll.c (match_dll): Add cast(s).
9978 (unloaded_dll): Likewise.
9979 * linux-low.c (second_thread_of_pid_p): Likewise.
9980 (delete_lwp_callback): Likewise.
9981 (count_events_callback): Likewise.
9982 (select_event_lwp_callback): Likewise.
9983 (linux_set_resume_request): Likewise.
9984 * server.c (accumulate_file_name_length): Likewise.
9985 (emit_dll_description): Likewise.
9986 (handle_qxfer_threads_worker): Likewise.
9987 (visit_actioned_threads): Likewise.
9988 * thread-db.c (any_thread_of): Likewise.
9989 * tracepoint.c (same_process_p): Likewise.
9990 (match_blocktype): Likewise.
9991 (build_traceframe_info_xml): Likewise.
9993 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9995 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9997 (gdb_unparse_agent_expr): Likewise.
9998 * hostio.c (require_data): Likewise.
9999 (handle_pread): Likewise.
10000 * linux-low.c (disable_regset): Likewise.
10001 (fetch_register): Likewise.
10002 (store_register): Likewise.
10003 (get_dynamic): Likewise.
10004 (linux_qxfer_libraries_svr4): Likewise.
10005 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10006 (set_fast_tracepoint_jump): Likewise.
10007 (uninsert_fast_tracepoint_jumps_at): Likewise.
10008 (reinsert_fast_tracepoint_jumps_at): Likewise.
10009 (validate_inserted_breakpoint): Likewise.
10010 (clone_agent_expr): Likewise.
10011 * regcache.c (init_register_cache): Likewise.
10012 * remote-utils.c (putpkt_binary_1): Likewise.
10013 (decode_M_packet): Likewise.
10014 (decode_X_packet): Likewise.
10015 (look_up_one_symbol): Likewise.
10016 (relocate_instruction): Likewise.
10017 (monitor_output): Likewise.
10018 * server.c (handle_search_memory): Likewise.
10019 (handle_qxfer_exec_file): Likewise.
10020 (handle_qxfer_libraries): Likewise.
10021 (handle_qxfer): Likewise.
10022 (handle_query): Likewise.
10023 (handle_v_cont): Likewise.
10024 (handle_v_run): Likewise.
10025 (captured_main): Likewise.
10026 * target.c (write_inferior_memory): Likewise.
10027 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10028 * tracepoint.c (init_trace_buffer): Likewise.
10029 (add_tracepoint_action): Likewise.
10030 (add_traceframe): Likewise.
10031 (add_traceframe_block): Likewise.
10032 (cmd_qtdpsrc): Likewise.
10033 (cmd_qtdv): Likewise.
10034 (cmd_qtstatus): Likewise.
10035 (response_source): Likewise.
10036 (response_tsv): Likewise.
10037 (cmd_qtnotes): Likewise.
10038 (gdb_collect): Likewise.
10039 (initialize_tracepoint): Likewise.
10041 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10043 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10044 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10045 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10047 (enum aarch64_condition_codes): New enum.
10048 (w0): New static global.
10051 (struct aarch64_memory_operand) <type>: New
10052 MEMORY_OPERAND_POSTINDEX type.
10053 (postindex_memory_operand): New helper function.
10054 (emit_ret): New function.
10055 (emit_load_store_pair): New function, factored out of emit_stp
10056 with support for MEMORY_OPERAND_POSTINDEX.
10057 (emit_stp): Rewrite using emit_load_store_pair.
10058 (emit_ldp): New function.
10059 (emit_load_store): Likewise.
10060 (emit_ldr): Mention post-index instruction in comment.
10061 (emit_ldrh): New function.
10062 (emit_ldrb): New function.
10063 (emit_ldrsw): Mention post-index instruction in comment.
10064 (emit_str): Likewise.
10065 (emit_subs): New function.
10066 (emit_cmp): Likewise.
10067 (emit_and): Likewise.
10068 (emit_orr): Likewise.
10069 (emit_orn): Likewise.
10070 (emit_eor): Likewise.
10071 (emit_mvn): Likewise.
10072 (emit_lslv): Likewise.
10073 (emit_lsrv): Likewise.
10074 (emit_asrv): Likewise.
10075 (emit_mul): Likewise.
10076 (emit_sbfm): Likewise.
10077 (emit_sbfx): Likewise.
10078 (emit_ubfm): Likewise.
10079 (emit_ubfx): Likewise.
10080 (emit_csinc): Likewise.
10081 (emit_cset): Likewise.
10082 (emit_nop): Likewise.
10083 (emit_ops_insns): New helper function.
10084 (emit_pop): Likewise.
10085 (emit_push): Likewise.
10086 (aarch64_emit_prologue): New function.
10087 (aarch64_emit_epilogue): Likewise.
10088 (aarch64_emit_add): Likewise.
10089 (aarch64_emit_sub): Likewise.
10090 (aarch64_emit_mul): Likewise.
10091 (aarch64_emit_lsh): Likewise.
10092 (aarch64_emit_rsh_signed): Likewise.
10093 (aarch64_emit_rsh_unsigned): Likewise.
10094 (aarch64_emit_ext): Likewise.
10095 (aarch64_emit_log_not): Likewise.
10096 (aarch64_emit_bit_and): Likewise.
10097 (aarch64_emit_bit_or): Likewise.
10098 (aarch64_emit_bit_xor): Likewise.
10099 (aarch64_emit_bit_not): Likewise.
10100 (aarch64_emit_equal): Likewise.
10101 (aarch64_emit_less_signed): Likewise.
10102 (aarch64_emit_less_unsigned): Likewise.
10103 (aarch64_emit_ref): Likewise.
10104 (aarch64_emit_if_goto): Likewise.
10105 (aarch64_emit_goto): Likewise.
10106 (aarch64_write_goto_address): Likewise.
10107 (aarch64_emit_const): Likewise.
10108 (aarch64_emit_call): Likewise.
10109 (aarch64_emit_reg): Likewise.
10110 (aarch64_emit_pop): Likewise.
10111 (aarch64_emit_stack_flush): Likewise.
10112 (aarch64_emit_zero_ext): Likewise.
10113 (aarch64_emit_swap): Likewise.
10114 (aarch64_emit_stack_adjust): Likewise.
10115 (aarch64_emit_int_call_1): Likewise.
10116 (aarch64_emit_void_call_2): Likewise.
10117 (aarch64_emit_eq_goto): Likewise.
10118 (aarch64_emit_ne_goto): Likewise.
10119 (aarch64_emit_lt_goto): Likewise.
10120 (aarch64_emit_le_goto): Likewise.
10121 (aarch64_emit_gt_goto): Likewise.
10122 (aarch64_emit_ge_got): Likewise.
10123 (aarch64_emit_ops_impl): New static global variable.
10124 (aarch64_emit_ops): New target function, return
10125 &aarch64_emit_ops_impl.
10126 (struct linux_target_ops): Install it.
10128 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10130 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10131 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10133 * linux-aarch64-ipa.c: New file.
10134 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10136 (aarch64_get_thread_area): New target method.
10137 (extract_signed_bitfield): New helper function.
10138 (aarch64_decode_ldr_literal): New function.
10139 (enum aarch64_opcodes): New enum.
10140 (struct aarch64_register): New struct.
10141 (struct aarch64_operand): New struct.
10142 (x0): New static global.
10151 (aarch64_register): New helper function.
10152 (register_operand): Likewise.
10153 (immediate_operand): Likewise.
10154 (struct aarch64_memory_operand): New struct.
10155 (offset_memory_operand): New helper function.
10156 (preindex_memory_operand): Likewise.
10157 (enum aarch64_system_control_registers): New enum.
10158 (ENCODE): New macro.
10159 (emit_insn): New helper function.
10160 (emit_b): New function.
10161 (emit_bcond): Likewise.
10162 (emit_cb): Likewise.
10163 (emit_tb): Likewise.
10164 (emit_blr): Likewise.
10165 (emit_stp): Likewise.
10166 (emit_ldp_q_offset): Likewise.
10167 (emit_stp_q_offset): Likewise.
10168 (emit_load_store): Likewise.
10169 (emit_ldr): Likewise.
10170 (emit_ldrsw): Likewise.
10171 (emit_str): Likewise.
10172 (emit_ldaxr): Likewise.
10173 (emit_stxr): Likewise.
10174 (emit_stlr): Likewise.
10175 (emit_data_processing_reg): Likewise.
10176 (emit_data_processing): Likewise.
10177 (emit_add): Likewise.
10178 (emit_sub): Likewise.
10179 (emit_mov): Likewise.
10180 (emit_movk): Likewise.
10181 (emit_mov_addr): Likewise.
10182 (emit_mrs): Likewise.
10183 (emit_msr): Likewise.
10184 (emit_sevl): Likewise.
10185 (emit_wfe): Likewise.
10186 (append_insns): Likewise.
10187 (can_encode_int32_in): New helper function.
10188 (aarch64_relocate_instruction): New function.
10189 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10190 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10191 (struct linux_target_ops): Install aarch64_get_thread_area,
10192 aarch64_install_fast_tracepoint_jump_pad and
10193 aarch64_get_min_fast_tracepoint_insn_len.
10195 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10197 * Makefile.in (aarch64-insn.o): New rule.
10198 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10200 2015-09-21 Yao Qi <yao.qi@linaro.org>
10202 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10204 2015-09-21 Yao Qi <yao.qi@linaro.org>
10206 * tracepoint.c (max_jump_pad_size): Remove.
10208 2015-09-18 Yao Qi <yao.qi@linaro.org>
10210 * linux-aarch64-low.c: Don't include sys/uio.h.
10211 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10213 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10215 * tracepoint.c (eval_result_type): Change prototype.
10216 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10218 2015-09-15 Pedro Alves <palves@redhat.com>
10220 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10221 Check whether to report exec events instead of checking whether
10222 multiprocess is enabled.
10224 2015-09-15 Pedro Alves <palves@redhat.com>
10227 * remote-utils.c (prepare_resume_reply): Merge
10228 TARGET_WAITKIND_VFORK_DONE switch case with the
10229 TARGET_WAITKIND_FORKED case.
10231 2015-09-15 Yao Qi <yao.qi@linaro.org>
10233 * server.c (handle_query): Check string comparison using
10234 "else if" instead of "if".
10236 2015-09-15 Yao Qi <yao.qi@linaro.org>
10238 * server.c (vCont_supported): New global variable.
10239 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10240 matches. Append ";vContSupported+" to own_buf.
10241 (handle_v_requests): Append ";s;S" to own_buf if target supports
10242 hardware single step or vCont_supported is false.
10243 (capture_main): Set vCont_supported to zero.
10245 2015-09-15 Yao Qi <yao.qi@linaro.org>
10247 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10249 (linux_supports_hardware_single_step): ... New function.
10250 (linux_target_ops): Update.
10251 * lynx-low.c (lynx_target_ops): Set field
10252 supports_hardware_single_step to target_can_do_hardware_single_step.
10253 * nto-low.c (nto_target_ops): Likewise.
10254 * spu-low.c (spu_target_ops): Likewise.
10255 * win32-low.c (win32_target_ops): Likewise.
10256 * target.c (target_can_do_hardware_single_step): New function.
10257 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10258 Remove. <supports_hardware_single_step>: New field.
10259 (target_supports_conditional_breakpoints): Remove.
10260 (target_supports_hardware_single_step): New macro.
10261 (target_can_do_hardware_single_step): Declare.
10262 * server.c (handle_query): Use target_supports_hardware_single_step
10263 instead of target_supports_conditional_breakpoints.
10265 2015-09-15 Yao Qi <yao.qi@linaro.org>
10267 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10269 (struct linux_target_ops the_low_target): Install
10270 aarch64_linux_siginfo_fixup.
10272 2015-09-11 Don Breazeal <donb@codesourcery.com>
10273 Luis Machado <lgustavo@codesourcery.com>
10275 * linux-low.c (linux_mourn): Static declaration.
10276 (linux_arch_setup): Move in front of
10277 handle_extended_wait.
10278 (linux_arch_setup_thread): New function.
10279 (handle_extended_wait): Handle exec events. Call
10280 linux_arch_setup_thread. Make event_lwp argument a
10281 pointer-to-a-pointer.
10282 (check_zombie_leaders): Do not check stopped threads.
10283 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10284 (linux_low_filter_event): Add lwp and thread for exec'ing
10285 non-leader thread if leader thread has been deleted.
10286 Refactor code into linux_arch_setup_thread and call it.
10287 Pass child lwp pointer by reference to handle_extended_wait.
10288 (linux_wait_for_event_filtered): Update comment.
10289 (linux_wait_1): Prevent clobbering exec event status.
10290 (linux_supports_exec_events): New function.
10291 (linux_target_ops) <supports_exec_events>: Initialize new member.
10292 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10294 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10295 * server.c (report_exec_events): New global variable.
10296 (handle_query): Handle qSupported query for exec-events feature.
10297 (captured_main): Initialize report_exec_events.
10298 * server.h (report_exec_events): Declare new global variable.
10299 * target.h (struct target_ops) <supports_exec_events>: New
10301 (target_supports_exec_events): New macro.
10302 * win32-low.c (win32_target_ops) <supports_exec_events>:
10303 Initialize new member.
10305 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10307 * linux-low.c (linux_low_enable_btrace): Remove.
10308 (linux_target_ops): Replace linux_low_enable_btrace with
10309 linux_enable_btrace.
10311 2015-09-03 Yao Qi <yao.qi@linaro.org>
10313 * linux-aarch64-low.c (aarch64_insert_point): Call
10314 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10317 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10319 * linux-low.c (check_stopped_by_breakpoint): Use
10320 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10322 2015-08-27 Pedro Alves <palves@redhat.com>
10324 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10326 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10328 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10329 the XNEW-family equivalent.
10330 (compile_bytecodes): Likewise.
10331 * dll.c (loaded_dll): Likewise.
10332 * event-loop.c (append_callback_event): Likewise.
10333 (create_file_handler): Likewise.
10334 (create_file_event): Likewise.
10335 * hostio.c (handle_open): Likewise.
10336 * inferiors.c (add_thread): Likewise.
10337 (add_process): Likewise.
10338 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10339 * linux-arm-low.c (arm_new_process): Likewise.
10340 (arm_new_thread): Likewise.
10341 * linux-low.c (add_to_pid_list): Likewise.
10342 (linux_add_process): Likewise.
10343 (handle_extended_wait): Likewise.
10344 (add_lwp): Likewise.
10345 (enqueue_one_deferred_signal): Likewise.
10346 (enqueue_pending_signal): Likewise.
10347 (linux_resume_one_lwp_throw): Likewise.
10348 (linux_resume_one_thread): Likewise.
10349 (linux_read_memory): Likewise.
10350 (linux_write_memory): Likewise.
10351 * linux-mips-low.c (mips_linux_new_process): Likewise.
10352 (mips_linux_new_thread): Likewise.
10353 (mips_add_watchpoint): Likewise.
10354 * linux-x86-low.c (initialize_low_arch): Likewise.
10355 * lynx-low.c (lynx_add_process): Likewise.
10356 * mem-break.c (set_raw_breakpoint_at): Likewise.
10357 (set_breakpoint): Likewise.
10358 (add_condition_to_breakpoint): Likewise.
10359 (add_commands_to_breakpoint): Likewise.
10360 (clone_agent_expr): Likewise.
10361 (clone_one_breakpoint): Likewise.
10362 * regcache.c (new_register_cache): Likewise.
10363 * remote-utils.c (look_up_one_symbol): Likewise.
10364 * server.c (queue_stop_reply): Likewise.
10365 (start_inferior): Likewise.
10366 (queue_stop_reply_callback): Likewise.
10367 (handle_target_event): Likewise.
10368 * spu-low.c (fetch_ppc_memory): Likewise.
10369 (store_ppc_memory): Likewise.
10370 * target.c (set_target_ops): Likewise.
10371 * thread-db.c (thread_db_load_search): Likewise.
10372 (try_thread_db_load_1): Likewise.
10373 * tracepoint.c (add_tracepoint): Likewise.
10374 (add_tracepoint_action): Likewise.
10375 (create_trace_state_variable): Likewise.
10376 (cmd_qtdpsrc): Likewise.
10377 (cmd_qtro): Likewise.
10378 (add_while_stepping_state): Likewise.
10379 * win32-low.c (child_add_thread): Likewise.
10380 (get_image_name): Likewise.
10382 2015-08-25 Yao Qi <yao.qi@linaro.org>
10384 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10386 2015-08-25 Yao Qi <yao.qi@linaro.org>
10388 * Makefile.in (aarch64-linux.o): New rule.
10389 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10391 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10392 (aarch64_init_debug_reg_state): Make it extern.
10393 (aarch64_linux_prepare_to_resume): Remove.
10395 2015-08-25 Yao Qi <yao.qi@linaro.org>
10397 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10398 lwp_arch_private_info and ptid_of_lwp.
10400 2015-08-25 Yao Qi <yao.qi@linaro.org>
10402 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10403 Find proc_info by find_process_pid. All callers updated.
10405 2015-08-25 Yao Qi <yao.qi@linaro.org>
10407 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10409 (debug_reg_change_callback): Remove.
10410 (aarch64_notify_debug_reg_change): Remove.
10412 2015-08-25 Yao Qi <yao.qi@linaro.org>
10414 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10415 Call current_lwp_ptid.
10417 2015-08-25 Yao Qi <yao.qi@linaro.org>
10419 * linux-aarch64-low.c (debug_reg_change_callback): Use
10422 2015-08-25 Yao Qi <yao.qi@linaro.org>
10424 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10426 2015-08-25 Yao Qi <yao.qi@linaro.org>
10428 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10430 2015-08-25 Yao Qi <yao.qi@linaro.org>
10432 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10435 2015-08-25 Yao Qi <yao.qi@linaro.org>
10437 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10439 (debug_reg_change_callback): Remove argument entry and add argument
10440 lwp. Remove local variable thread. Don't print thread id in the
10441 debugging output. Don't check whether pid of thread equals to pid.
10442 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10443 iterate_over_lwps instead find_inferior.
10445 2015-08-24 Pedro Alves <palves@redhat.com>
10447 * inferiors.c (get_first_process): New function.
10448 * inferiors.h (get_first_process): New declaration.
10449 * remote-utils.c (read_ptid): Default to the first process in the
10450 list, instead of to the current thread's process.
10452 2015-08-24 Pedro Alves <palves@redhat.com>
10454 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10455 * event-loop.c: Likewise.
10456 * remote-utils.c: Likewise.
10457 * tracepoint.c: Likewise.
10459 2015-08-24 Pedro Alves <palves@redhat.com>
10461 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10464 2015-08-21 Pedro Alves <palves@redhat.com>
10466 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10467 instead of literal 1.
10469 2015-08-21 Pedro Alves <palves@redhat.com>
10471 * tdesc.c (default_description): Explicitly zero-initialize.
10473 2015-08-21 Pedro Alves <palves@redhat.com>
10476 * inferiors.c (remove_thread): Discard any pending stop reply for
10478 * server.c (remove_all_on_match_pid): Rename to ...
10479 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10481 (discard_queued_stop_replies): Change parameter to a ptid. Now
10483 (handle_v_kill, kill_inferior_callback, captured_main)
10484 (process_serial_event): Adjust.
10485 * server.h (discard_queued_stop_replies): Declare.
10487 2015-08-21 Pedro Alves <palves@redhat.com>
10489 * linux-low.c (wait_for_sigstop): Always switch to no thread
10490 selected if the previously current thread dies.
10491 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10492 process instead of the current thread's.
10493 * remote-utils.c (input_interrupt): Don't check if there's no
10495 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10496 current thread to the general thread fails, error out.
10497 (handle_qxfer_auxv, handle_qxfer_libraries)
10498 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10499 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10500 (handle_query): Check if there's a thread selected instead of
10501 checking whether there's any thread in the thread list.
10502 (handle_qxfer_threads, handle_qxfer_btrace)
10503 (handle_qxfer_btrace_conf): Don't error out early if there's no
10504 thread in the thread list.
10505 (handle_v_cont, myresume): Don't set the current thread to the
10507 (process_serial_event) <Hg handling>: Also set thread_id if the
10508 previous general thread is still alive.
10509 (process_serial_event) <g/G handling>: If setting the current
10510 thread to the general thread fails, error out.
10511 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10512 thread's lwp instead of the current thread's.
10513 * target.c (set_desired_thread): If the desired thread was not
10514 found, leave the current thread pointing to NULL. Return an int
10515 (boolean) indicating success.
10516 * target.h (set_desired_thread): Change return type to int.
10518 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10520 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10521 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10523 (ps_get_thread_area): New function.
10525 2015-08-19 Gary Benson <gbenson@redhat.com>
10527 * hostio.c (handle_pread): Do not attempt to read more data
10528 than hostio_reply_with_data can fit in a packet.
10530 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10532 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10534 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10536 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10538 2015-08-06 Pedro Alves <palves@redhat.com>
10540 * tracepoint.c (expr_eval_result): Now an int.
10542 2015-08-06 Pedro Alves <palves@redhat.com>
10544 * gdbthread.h (struct regcache): Forward declare.
10545 (struct thread_info) <regcache_data>: Now a struct regcache
10547 * inferiors.c (inferior_regcache_data)
10548 (set_inferior_regcache_data): Now work with struct regcache
10550 * inferiors.h (struct regcache): Forward declare.
10551 (inferior_regcache_data, set_inferior_regcache_data): Now work
10552 with struct regcache pointers.
10553 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10554 (free_register_cache_thread): Remove struct regcache pointer
10557 2015-08-06 Pedro Alves <palves@redhat.com>
10559 * server.c (captured_main): On error, print the exception message
10560 to stderr, and if run_once is set, throw a quit.
10562 2015-08-06 Pedro Alves <palves@redhat.com>
10564 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10565 the current thread.
10567 2015-08-06 Pedro Alves <palves@redhat.com>
10569 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10570 reading beyond the passed in buffer length.
10572 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10574 * tracepoint.c (symbol_list) <required>: Remove.
10576 2015-08-06 Pedro Alves <palves@redhat.com>
10578 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10579 count if stopping and suspending threads.
10580 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10581 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10582 (linux_detach): Complete an ongoing step-over.
10583 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10585 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10586 (linux_wait_1): If passing a signal to the inferior after
10587 finishing a step-over, unsuspend and re-resume all lwps. If we
10588 see a single-step event but the thread should be continuing, don't
10589 pass the trap to gdb.
10590 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10591 internal_error instead of gdb_assert.
10592 (enqueue_pending_signal): New function.
10593 (check_ptrace_stopped_lwp_gone): Add debug output.
10594 (start_step_over): Use internal_error instead of gdb_assert.
10595 (complete_ongoing_step_over): New function.
10596 (linux_resume_one_thread): Don't resume a suspended thread.
10597 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10600 2015-08-06 Pedro Alves <palves@redhat.com>
10602 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10603 (linux_thread_alive): Use lwp_is_marked_dead.
10604 (extended_event_reported): Delete.
10605 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10606 instead of extended_event_reported.
10607 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10609 (lwp_is_marked_dead): New function.
10610 (lwp_running): Use lwp_is_marked_dead.
10611 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10614 2015-08-06 Pedro Alves <palves@redhat.com>
10616 * linux-low.c (linux_wait_1): Move fork event output out of the
10617 !report_to_gdb check. Pass event_child->waitstatus to
10618 target_waitstatus_to_string instead of ourstatus.
10620 2015-08-04 Yao Qi <yao.qi@linaro.org>
10622 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10623 if current_thread is 32 bit.
10625 2015-08-04 Yao Qi <yao.qi@linaro.org>
10627 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10628 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10629 * server.c (extended_protocol): Remove "static".
10630 * server.h (extended_protocol): Declare it.
10632 2015-08-04 Yao Qi <yao.qi@linaro.org>
10634 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10635 both aarch64 and aarch32.
10636 (aarch64_set_pc): Likewise.
10638 2015-08-04 Yao Qi <yao.qi@linaro.org>
10640 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10641 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10642 arm-with-neon.xml to srv_xmlfiles.
10643 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10644 (is_64bit_tdesc): New function.
10645 (aarch64_linux_read_description): New function.
10646 (aarch64_arch_setup): Call aarch64_linux_read_description.
10647 (regs_info): Rename to regs_info_aarch64.
10648 (aarch64_regs_info): Return right regs_info.
10649 (initialize_low_arch): Call initialize_low_arch_aarch32.
10651 2015-08-04 Yao Qi <yao.qi@linaro.org>
10653 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10654 * linux-aarch32-low.c: New file.
10655 * linux-aarch32-low.h: New file.
10656 * linux-arm-low.c (arm_fill_gregset): Move it to
10657 linux-aarch32-low.c.
10658 (arm_store_gregset): Likewise.
10659 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10660 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10661 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10662 (regs_info): Rename to regs_info_arm.
10663 (arm_regs_info): Return regs_info_aarch32 if
10664 have_ptrace_getregset is 1 and target description is
10665 arm_with_neon or arm_with_vfpv3.
10666 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10667 Call initialize_low_arch_aarch32 instead.
10669 2015-08-04 Yao Qi <yao.qi@linaro.org>
10671 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10672 * linux-low.c: ... here.
10673 * linux-low.h (have_ptrace_getregset): Declare it.
10675 2015-08-04 Pedro Alves <palves@redhat.com>
10677 * thread-db.c (struct thread_db): Use new typedefs.
10678 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10680 (disable_thread_event_reporting): Cast result of dlsym to
10681 destination function pointer type.
10682 (thread_db_mourn): Use td_ta_delete_ftype.
10684 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10686 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10688 (CDX_BREAKPOINT): Define for R2.
10689 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10690 (the_low_target): Add comments.
10692 2015-07-30 Yao Qi <yao.qi@linaro.org>
10694 * linux-arm-low.c (arm_hwcap): Remove it.
10695 (arm_read_description): New local variable arm_hwcap. Don't
10696 set arm_hwcap to zero.
10698 2015-07-30 Yao Qi <yao.qi@linaro.org>
10700 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10701 Use regcache->tdesc instead.
10702 (arm_store_wmmxregset): Likewise.
10703 (arm_fill_vfpregset): Likewise.
10704 (arm_store_vfpregset): Likewise.
10706 2015-07-30 Yao Qi <yao.qi@linaro.org>
10708 * linux-arm-low.c: Include arch/arm.h.
10709 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10710 (arm_store_gregset): Likewise.
10712 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10714 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10715 ptrace's 4th parameter.
10717 2015-07-27 Yao Qi <yao.qi@linaro.org>
10719 * configure.srv (case aarch64*-*-linux*): Don't set
10722 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10724 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10726 * linux-arm-low.c: Likewise.
10727 * linux-cris-low.c: Likewise.
10728 * linux-crisv32-low.c: Likewise.
10729 * linux-low.c: Likewise.
10730 * linux-m68k-low.c: Likewise.
10731 * linux-mips-low.c: Likewise.
10732 * linux-nios2-low.c: Likewise.
10733 * linux-s390-low.c: Likewise.
10734 * linux-sparc-low.c: Likewise.
10735 * linux-tic6x-low.c: Likewise.
10736 * linux-tile-low.c: Likewise.
10737 * linux-x86-low.c: Likewise.
10739 2015-07-24 Pedro Alves <palves@redhat.com>
10741 * config.in: Regenerate.
10742 * configure: Regenerate.
10744 2015-07-24 Pedro Alves <palves@redhat.com>
10746 * acinclude.m4: Include ../ptrace.m4.
10747 * configure.ac: Call GDB_AC_PTRACE.
10748 * config.in, configure: Regenerate.
10750 2015-07-24 Yao Qi <yao.qi@linaro.org>
10752 * linux-low.c (linux_create_inferior): Remove setting to
10753 proc->priv->new_inferior.
10754 (linux_attach): Likewise.
10755 (linux_low_filter_event): Likewise.
10756 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10758 2015-07-24 Yao Qi <yao.qi@linaro.org>
10760 * linux-low.c (linux_arch_setup): New function.
10761 (linux_low_filter_event): If proc->tdesc is NULL and
10762 proc->attached is true, call the_low_target.arch_setup.
10763 Otherwise, keep status pending, and return.
10764 (linux_resume_one_lwp_throw): Don't call get_pc if
10765 thread->while_stepping isn't NULL. Don't call
10766 get_thread_regcache if proc->tdesc is NULL.
10767 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10768 (linux_target_ops): Install arch_setup.
10769 * server.c (start_inferior): Call the_target->arch_setup.
10770 * target.h (struct target_ops) <arch_setup>: New field.
10771 (target_arch_setup): New marco.
10772 * lynx-low.c (lynx_target_ops): Update.
10773 * nto-low.c (nto_target_ops): Update.
10774 * spu-low.c (spu_target_ops): Update.
10775 * win32-low.c (win32_target_ops): Update.
10777 2015-07-24 Yao Qi <yao.qi@linaro.org>
10779 * linux-low.c (linux_add_process): Don't set
10780 proc->priv->new_inferior.
10781 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10782 (linux_attach): Likewise.
10784 2015-07-24 Yao Qi <yao.qi@linaro.org>
10786 * server.c (start_inferior): Code refactor.
10788 2015-07-24 Yao Qi <yao.qi@linaro.org>
10790 * server.c (process_serial_event): Set general_thread.
10792 2015-07-21 Yao Qi <yao.qi@linaro.org>
10794 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10795 aarch64_linux_get_debug_reg_capacity.
10797 2015-07-17 Yao Qi <yao.qi@linaro.org>
10799 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10800 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10801 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10802 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10803 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10804 (AARCH64_HWP_ALIGNMENT): Likewise.
10805 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10806 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10807 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10808 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10809 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10810 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10811 (struct aarch64_debug_reg_state): Likewise.
10812 (struct arch_lwp_info): Likewise.
10813 (aarch64_align_watchpoint): Likewise.
10814 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10815 (aarch64_watchpoint_length): Likewise.
10816 (aarch64_point_encode_ctrl_reg): Likewise
10817 (aarch64_point_is_aligned): Likewise.
10818 (aarch64_align_watchpoint): Likewise.
10819 (aarch64_linux_set_debug_regs):
10820 (aarch64_dr_state_insert_one_point): Likewise.
10821 (aarch64_dr_state_remove_one_point): Likewise.
10822 (aarch64_handle_breakpoint): Likewise.
10823 (aarch64_handle_aligned_watchpoint): Likewise.
10824 (aarch64_handle_unaligned_watchpoint): Likewise.
10825 (aarch64_handle_watchpoint): Likewise.
10827 2015-07-17 Yao Qi <yao.qi@linaro.org>
10829 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10830 and don't aarch64_get_debug_reg_state. All callers update.
10831 (aarch64_handle_aligned_watchpoint): Likewise.
10832 (aarch64_handle_unaligned_watchpoint): Likewise.
10833 (aarch64_handle_watchpoint): Likewise.
10834 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10835 (aarch64_remove_point): Likewise.
10837 2015-07-17 Yao Qi <yao.qi@linaro.org>
10839 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10841 (aarch64_handle_unaligned_watchpoint): Likewise.
10843 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10845 Revert the previous 3 commits:
10846 Move gdb_regex* to common/
10847 Move linux_find_memory_regions_full & co.
10848 gdbserver build-id attribute generator
10850 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10851 Jan Kratochvil <jan.kratochvil@redhat.com>
10853 gdbserver build-id attribute generator.
10854 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10855 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10856 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10858 (get_dynamic): Use find_pdhr to traverse program headers.
10859 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10860 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10861 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10862 (get_hex_build_id): New.
10863 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10864 to reply XML document.
10866 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10867 Jan Kratochvil <jan.kratochvil@redhat.com>
10869 * target.c: Include target/target-utils.h and fcntl.h.
10870 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10871 (target_fileio_read_stralloc): New functions.
10873 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10875 * Makefile.in (OBS): Add gdb_regex.o.
10876 (gdb_regex.o): New.
10877 * config.in: Rebuilt.
10878 * configure: Rebuilt.
10880 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10881 Jan Kratochvil <jan.kratochvil@redhat.com>
10883 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10884 * Makefile.in (OBS): Add target-utils.o.
10885 (linux-maps.o, target-utils.o): New.
10886 * configure.srv (srv_linux_obj): Add linux-maps.o.
10888 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10890 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10891 function, return 1.
10892 (the_low_target): Install it.
10894 2015-07-14 Pedro Alves <palves@redhat.com>
10896 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10897 Instead, ignore ECHILD, and throw an error for other errnos.
10899 2015-07-10 Pedro Alves <palves@redhat.com>
10901 * event-loop.c (struct callback_event) <data>: Change type to
10902 gdb_client_data instance instead of gdb_client_data pointer.
10903 (append_callback_event): Adjust.
10905 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10907 * linux-aarch64-low.c: Add comments for each linux_target_ops
10908 method. Remove comments already covered in target_ops and
10909 linux_target_ops definitions.
10910 (the_low_target): Add comments for each unimplemented method.
10912 2015-07-09 Yao Qi <yao.qi@linaro.org>
10914 * linux-aarch64-low.c (aarch64_regmap): Remove.
10915 (aarch64_usrregs_info): Remove.
10916 (regs_info): Set field usrregs to NULL.
10918 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10920 * linux-low.c: Include "rsp-low.h"
10921 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10922 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10923 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10924 (handle_btrace_enable_pt): New.
10925 (handle_btrace_general_set): Support "pt".
10926 (handle_btrace_conf_general_set): Support "pt:size".
10928 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10930 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10933 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10935 * linux-aarch64-low.c: Remove comment about endianness.
10936 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10937 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10940 2015-06-24 Gary Benson <gbenson@redhat.com>
10942 * linux-i386-ipa.c (stdint.h): Do not include.
10943 * lynx-i386-low.c (stdint.h): Likewise.
10944 * lynx-ppc-low.c (stdint.h): Likewise.
10945 * mem-break.c (stdint.h): Likewise.
10946 * thread-db.c (stdint.h): Likewise.
10947 * tracepoint.c (stdint.h): Likewise.
10948 * win32-low.c (stdint.h): Likewise.
10950 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10952 * server.c (write_qxfer_response): Update call to
10953 remote_escape_output.
10955 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10956 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 Merge multiple hex conversions.
10959 * gdbreplay.c (tohex): Rename to 'fromhex'.
10960 (logchar): Use fromhex.
10962 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10964 * server.c (handle_qxfer_libraries): Set `version' attribute for
10967 2015-06-10 Gary Benson <gbenson@redhat.com>
10969 * target.h (struct target_ops) <multifs_open>: New field.
10970 <multifs_unlink>: Likewise.
10971 <multifs_readlink>: Likewise.
10972 * linux-low.c (nat/linux-namespaces.h): New include.
10973 (linux_target_ops): Initialize the_target->multifs_open,
10974 the_target->multifs_unlink and the_target->multifs_readlink.
10975 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10976 * hostio.c (hostio_fs_pid): New static variable.
10977 (hostio_handle_new_gdb_connection): New function.
10978 (handle_setfs): Likewise.
10979 (handle_open): Use the_target->multifs_open as appropriate.
10980 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10981 (handle_readlink): Use the_target->multifs_readlink as
10983 (handle_vFile): Handle vFile:setfs packets.
10984 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10985 after target_handle_new_gdb_connection.
10987 2015-06-10 Gary Benson <gbenson@redhat.com>
10989 * configure.ac (AC_CHECK_FUNCS): Add setns.
10990 * config.in: Regenerate.
10991 * configure: Likewise.
10992 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10993 (linux-namespaces.o): New rule.
10994 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10996 2015-06-09 Gary Benson <gbenson@redhat.com>
10998 * hostio.c (handle_open): Process mode argument with
10999 fileio_to_host_mode.
11001 2015-06-01 Yao Qi <yao.qi@linaro.org>
11003 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11004 * linux-x86-low.c: Likewise.
11006 2015-05-28 Don Breazeal <donb@codesourcery.com>
11008 * linux-low.c (handle_extended_wait): Initialize
11009 thread_info.last_resume_kind for new fork children.
11011 2015-05-15 Pedro Alves <palves@redhat.com>
11013 * target.h (target_handle_new_gdb_connection): Rewrite using if
11014 wrapped in do/while.
11016 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11018 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11019 * configure, config.in: Regenerate.
11020 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11023 2015-05-12 Don Breazeal <donb@codesourcery.com>
11025 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11026 PTRACE_EVENT_VFORK_DONE.
11027 (linux_low_ptrace_options, extended_event_reported): Add vfork
11029 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11030 and "vforkdone" for RSP 'T' Stop Reply Packet.
11031 * server.h (report_vfork_events): Declare
11034 2015-05-12 Don Breazeal <donb@codesourcery.com>
11036 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11037 (the_low_target) <new_fork>: Initialize new member.
11038 * linux-arm-low.c (arm_new_fork): New function.
11039 (the_low_target) <new_fork>: Initialize new member.
11040 * linux-low.c (handle_extended_wait): Call new target function
11042 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11043 * linux-mips-low.c (mips_add_watchpoint): New function
11044 extracted from mips_insert_point.
11045 (the_low_target) <new_fork>: Initialize new member.
11046 (mips_linux_new_fork): New function.
11047 (mips_insert_point): Call mips_add_watchpoint.
11048 * linux-x86-low.c (x86_linux_new_fork): New function.
11049 (the_low_target) <new_fork>: Initialize new member.
11051 2015-05-12 Don Breazeal <donb@codesourcery.com>
11053 * linux-low.c (handle_extended_wait): Implement return value,
11054 rename argument 'event_child' to 'event_lwp', handle
11055 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11056 (linux_low_ptrace_options): New function.
11057 (linux_low_filter_event): Call linux_low_ptrace_options,
11058 use different argument fo linux_enable_event_reporting,
11059 use return value from handle_extended_wait.
11060 (extended_event_reported): New function.
11061 (linux_wait_1): Call extended_event_reported and set
11062 status to report fork events.
11063 (linux_write_memory): Add pid to debug message.
11064 (reset_lwp_ptrace_options_callback): New function.
11065 (linux_handle_new_gdb_connection): New function.
11066 (linux_target_ops): Initialize new structure member.
11067 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11068 * lynx-low.c: Initialize new structure member.
11069 * remote-utils.c (prepare_resume_reply): Implement stop reason
11070 "fork" for "T" stop message.
11071 * server.c (handle_query): Call handle_new_gdb_connection.
11072 * server.h (report_fork_events): Declare global flag.
11073 * target.h (struct target_ops) <handle_new_gdb_connection>:
11075 (target_handle_new_gdb_connection): New macro.
11076 * win32-low.c: Initialize new structure member.
11078 2015-05-12 Don Breazeal <donb@codesourcery.com>
11080 * mem-break.c (APPEND_TO_LIST): Define macro.
11081 (clone_agent_expr): New function.
11082 (clone_one_breakpoint): New function.
11083 (clone_all_breakpoints): New function.
11084 * mem-break.h: Declare new functions.
11086 2015-05-12 Don Breazeal <donb@codesourcery.com>
11088 * linux-low.c (linux_supports_fork_events): New function.
11089 (linux_supports_vfork_events): New function.
11090 (linux_target_ops): Initialize new structure members.
11091 (initialize_low): Call linux_check_ptrace_features.
11092 * lynx-low.c (lynx_target_ops): Initialize new structure
11094 * server.c (report_fork_events, report_vfork_events):
11096 (handle_query): Add new features to qSupported packet and
11098 (captured_main): Initialize new global variables.
11099 * target.h (struct target_ops) <supports_fork_events>:
11101 <supports_vfork_events>: New member.
11102 (target_supports_fork_events): New macro.
11103 (target_supports_vfork_events): New macro.
11104 * win32-low.c (win32_target_ops): Initialize new structure
11107 2015-05-12 Gary Benson <gbenson@redhat.com>
11109 * server.c (handle_qxfer_exec_file): Use current process
11112 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11114 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11115 Remove HAVE_PTRACE_GETREGS conditionals.
11116 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11117 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11119 2015-05-08 Yao Qi <yao.qi@linaro.org>
11121 * linux-low.c (linux_supports_conditional_breakpoints): New
11123 (linux_target_ops): Install new target method.
11124 * lynx-low.c (lynx_target_ops): Install NULL hook for
11125 supports_conditional_breakpoints.
11126 * nto-low.c (nto_target_ops): Likewise.
11127 * spu-low.c (spu_target_ops): Likewise.
11128 * win32-low.c (win32_target_ops): Likewise.
11129 * server.c (handle_query): Check
11130 target_supports_conditional_breakpoints.
11131 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11133 (target_supports_conditional_breakpoints): New macro.
11135 2015-05-06 Pedro Alves <palves@redhat.com>
11138 * server.c (start_inferior): If the process exits, mourn it.
11140 2015-04-21 Gary Benson <gbenson@redhat.com>
11142 * hostio.c (fileio_open_flags_to_host): Factored out to
11143 fileio_to_host_openflags in common/fileio.c. Single use
11146 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11148 * linux-xtensa-low.c (xtensa_fill_gregset)
11149 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11152 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11154 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11155 (regs_info): Replace usrregs pointer with NULL.
11157 2015-04-17 Gary Benson <gbenson@redhat.com>
11159 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11160 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11161 * server.c (handle_qxfer_exec_file): New function.
11162 (qxfer_packets): Add exec-file entry.
11163 (handle_query): Report qXfer:exec-file:read as supported packet.
11165 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11167 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11169 2015-04-09 Gary Benson <gbenson@redhat.com>
11171 * hostio-errno.c (errno_to_fileio_error): Remove function.
11172 Update caller to use remote_fileio_to_fio_error.
11174 2015-04-09 Yao Qi <yao.qi@linaro.org>
11176 * linux-low.c (linux_insert_point): Call
11177 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11178 (linux_remove_point): Call remove_memory_breakpoint if type is
11180 * linux-x86-low.c (x86_insert_point): Don't call
11181 insert_memory_breakpoint.
11182 (x86_remove_point): Don't call remove_memory_breakpoint.
11184 2015-04-01 Pedro Alves <palves@redhat.com>
11185 Cleber Rosa <crosa@redhat.com>
11187 * server.c (gdbserver_usage): Reorganize and extend the usage
11190 2015-03-24 Pedro Alves <palves@redhat.com>
11192 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11193 output. Also dump TRAP_TRACE.
11194 (linux_low_filter_event): In debug output, distinguish a
11195 resume_stop SIGSTOP from a delayed SIGSTOP.
11197 2015-03-24 Gary Benson <gbenson@redhat.com>
11199 * linux-x86-low.c (x86_linux_new_thread): Moved to
11201 (x86_linux_prepare_to_resume): Likewise.
11203 2015-03-24 Gary Benson <gbenson@redhat.com>
11205 * Makefile.in (x86-linux-dregs.o): New rule.
11206 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11207 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11208 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11209 (x86_linux_dr_get): Likewise.
11210 (x86_linux_dr_set): Likewise.
11211 (update_debug_registers_callback): Likewise.
11212 (x86_linux_dr_set_addr): Likewise.
11213 (x86_linux_dr_get_addr): Likewise.
11214 (x86_linux_dr_set_control): Likewise.
11215 (x86_linux_dr_get_control): Likewise.
11216 (x86_linux_dr_get_status): Likewise.
11217 (x86_linux_update_debug_registers): Likewise.
11219 2015-03-24 Gary Benson <gbenson@redhat.com>
11221 * linux-x86-low.c (x86_linux_update_debug_registers):
11222 New function, factored out from...
11223 (x86_linux_prepare_to_resume): ...this.
11225 2015-03-24 Gary Benson <gbenson@redhat.com>
11227 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11228 (x86_linux_dr_set): Likewise.
11229 (update_debug_registers_callback): Likewise.
11230 (x86_linux_dr_set_addr): Likewise.
11231 (x86_linux_dr_get_addr): Likewise.
11232 (x86_linux_dr_set_control): Likewise.
11233 (x86_linux_dr_get_control): Likewise.
11234 (x86_linux_dr_get_status): Likewise.
11235 (x86_linux_prepare_to_resume): Likewise.
11237 2015-03-24 Gary Benson <gbenson@redhat.com>
11239 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11240 Use perror_with_name. Pass string through gettext.
11241 (x86_linux_dr_set): Likewise.
11243 2015-03-24 Gary Benson <gbenson@redhat.com>
11245 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11246 (x86_linux_dr_set_addr): ...this.
11247 (x86_dr_low_get_addr): Rename to...
11248 (x86_linux_dr_get_addr): ...this.
11249 (x86_dr_low_set_control): Rename to...
11250 (x86_linux_dr_set_control): ...this.
11251 (x86_dr_low_get_control): Rename to...
11252 (x86_linux_dr_get_control): ...this.
11253 (x86_dr_low_get_status): Rename to...
11254 (x86_linux_dr_get_status): ...this.
11255 (x86_dr_low): Update with new function names.
11257 2015-03-24 Gary Benson <gbenson@redhat.com>
11259 * Makefile.in (x86-linux.o): New rule.
11260 * configure.srv: Add x86-linux.o to relevant targets.
11261 * linux-low.c (lwp_set_arch_private_info): New function.
11262 (lwp_arch_private_info): Likewise.
11263 * linux-x86-low.c: Include nat/x86-linux.h.
11264 (arch_lwp_info): Removed structure.
11265 (update_debug_registers_callback):
11266 Use lwp_set_debug_registers_changed.
11267 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11268 and lwp_set_debug_registers_changed.
11269 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11271 2015-03-24 Gary Benson <gbenson@redhat.com>
11273 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11274 * linux-arm-low.c (arm_new_thread): Likewise.
11275 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11276 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11277 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11278 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11280 2015-03-24 Gary Benson <gbenson@redhat.com>
11282 * linux-low.c (ptid_of_lwp): New function.
11283 (lwp_is_stopped): Likewise.
11284 (lwp_stop_reason): Likewise.
11285 * linux-x86-low.c (update_debug_registers_callback):
11286 Use lwp_is_stopped.
11287 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11290 2015-03-24 Gary Benson <gbenson@redhat.com>
11292 * linux-low.h (linux_stop_lwp): Remove declaration.
11294 2015-03-24 Gary Benson <gbenson@redhat.com>
11296 * linux-low.h: Include nat/linux-nat.h.
11297 * linux-low.c (iterate_over_lwps_args): New structure.
11298 (iterate_over_lwps_filter): New function.
11299 (iterate_over_lwps): Likewise.
11300 * linux-x86-low.c (update_debug_registers_callback):
11301 Update signature to what iterate_over_lwps expects.
11302 Remove PID check that iterate_over_lwps now performs.
11303 (x86_dr_low_set_addr): Use iterate_over_lwps.
11304 (x86_dr_low_set_control): Likewise.
11306 2015-03-24 Gary Benson <gbenson@redhat.com>
11308 * linux-x86-low.c (x86_debug_reg_state): New function.
11309 (x86_linux_prepare_to_resume): Use the above.
11311 2015-03-24 Gary Benson <gbenson@redhat.com>
11313 * linux-low.c (current_lwp_ptid): New function.
11314 * linux-x86-low.c: Include nat/linux-nat.h.
11315 (x86_dr_low_get_addr): Use current_lwp_ptid.
11316 (x86_dr_low_get_control): Likewise.
11317 (x86_dr_low_get_status): Likewise.
11319 2015-03-20 Pedro Alves <palves@redhat.com>
11321 * tracepoint.c (cmd_qtstatus): Make "str" const.
11323 2015-03-20 Pedro Alves <palves@redhat.com>
11325 * server.c (handle_general_set): Make "req_str" const.
11327 2015-03-19 Pedro Alves <palves@redhat.com>
11329 * linux-low.c (linux_resume_one_lwp): Rename to ...
11330 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11331 instead call perror_with_name.
11332 (check_ptrace_stopped_lwp_gone): New function.
11333 (linux_resume_one_lwp): Reimplement as wrapper around
11334 linux_resume_one_lwp_throw that swallows errors if the LWP is
11337 2015-03-19 Pedro Alves <palves@redhat.com>
11339 * linux-low.c (count_events_callback, select_event_lwp_callback):
11340 No longer check whether the thread has resume_stop as last resume
11343 2015-03-19 Pedro Alves <palves@redhat.com>
11345 * linux-low.c (count_events_callback, select_event_lwp_callback):
11346 Use the lwp's status_pending_p field, not the thread's.
11348 2015-03-19 Pedro Alves <palves@redhat.com>
11350 * linux-low.c (select_event_lwp_callback): Update comments to
11351 no longer mention SIGTRAP.
11353 2015-03-18 Gary Benson <gbenson@redhat.com>
11355 * server.c (handle_query): Do not report vFile:fstat as supported.
11357 2015-03-11 Gary Benson <gbenson@redhat.com>
11359 * hostio.c (sys/types.h): New include.
11360 (sys/stat.h): Likewise.
11361 (common-remote-fileio.h): Likewise.
11362 (handle_fstat): New function.
11363 (handle_vFile): Handle vFile:fstat packets.
11365 2015-03-11 Gary Benson <gbenson@redhat.com>
11367 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11368 struct stat.st_blocks and struct stat.st_blksize.
11369 * configure: Regenerate.
11370 * config.in: Likewise.
11371 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11372 (OBS): Add common-remote-fileio.o.
11373 (common-remote-fileio.o): New rule.
11375 2015-03-09 Pedro Alves <palves@redhat.com>
11377 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11378 'struct sockaddr' pointer in 'accept' call.
11380 2015-03-09 Pedro Alves <palves@redhat.com>
11383 2015-03-07 Pedro Alves <palves@redhat.com>
11384 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11385 or <winsock2.h> here. Instead include "gdb_socket.h".
11386 (remote_open): Use union gdb_sockaddr_u.
11387 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11388 or <winsock2.h> here. Instead include "gdb_socket.h".
11389 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11390 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11392 (init_named_socket, gdb_agent_helper_thread): Use union
11395 2015-03-07 Pedro Alves <palves@redhat.com>
11397 * configure.ac (build_warnings): Move
11398 -Wdeclaration-after-statement to the C-specific set.
11399 * configure: Regenerate.
11401 2015-03-07 Pedro Alves <palves@redhat.com>
11403 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11404 or <winsock2.h> here. Instead include "gdb_socket.h".
11405 (remote_open): Use union gdb_sockaddr_u.
11406 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11407 or <winsock2.h> here. Instead include "gdb_socket.h".
11408 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11409 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11411 (init_named_socket, gdb_agent_helper_thread): Use union
11414 2015-03-07 Pedro Alves <palves@redhat.com>
11416 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11419 2015-03-06 Yao Qi <yao.qi@linaro.org>
11421 * linux-aarch64-low.c (aarch64_insert_point): Use
11422 show_debug_regs as a boolean.
11423 (aarch64_remove_point): Likewise.
11425 2015-03-05 Pedro Alves <palves@redhat.com>
11427 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11428 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11429 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11430 * nto-low.c (nto_target_ops): Likewise.
11431 * spu-low.c (spu_target_ops): Likewise.
11432 * win32-low.c (win32_target_ops): Likewise.
11434 2015-03-04 Pedro Alves <palves@redhat.com>
11436 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11437 Decide whether a breakpoint triggered based on the SIGTRAP's
11439 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11440 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11441 (linux_low_filter_event): Check for breakpoints before checking
11443 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11445 (linux_stopped_by_sw_breakpoint)
11446 (linux_supports_stopped_by_sw_breakpoint)
11447 (linux_stopped_by_hw_breakpoint)
11448 (linux_supports_stopped_by_hw_breakpoint): New functions.
11449 (linux_target_ops): Install new target methods.
11451 2015-03-04 Pedro Alves <palves@redhat.com>
11453 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11454 * server.c (swbreak_feature, hwbreak_feature): New globals.
11455 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11456 (captured_main): Clear swbreak_feature and hwbreak_feature.
11457 * server.h (swbreak_feature, hwbreak_feature): Declare.
11458 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11459 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11460 supports_stopped_by_hw_breakpoint>: New fields.
11461 (target_supports_stopped_by_sw_breakpoint)
11462 (target_stopped_by_sw_breakpoint)
11463 (target_supports_stopped_by_hw_breakpoint)
11464 (target_stopped_by_hw_breakpoint): Declare.
11466 2015-03-04 Pedro Alves <palves@redhat.com>
11468 enum lwp_stop_reason -> enum target_stop_reason
11469 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11470 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11471 (linux_wait_1, stuck_in_jump_pad_callback)
11472 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11473 (linux_stopped_by_watchpoint):
11474 * linux-low.h (enum lwp_stop_reason): Delete.
11475 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11476 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11478 2015-03-04 Yao Qi <yao.qi@linaro.org>
11480 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11482 2015-03-03 Gary Benson <gbenson@redhat.com>
11484 * hostio.c (handle_vFile): Fix prefix lengths.
11486 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11488 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11491 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11493 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11494 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11495 (clean): Add "rm -f" for above C files.
11496 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11497 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11498 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11499 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11500 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11501 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11502 (init_registers_s390x_vx_linux64)
11503 (init_registers_s390x_tevx_linux64)
11504 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11505 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11507 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11508 (s390_store_vxrs_high): New functions.
11509 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11511 (s390_arch_setup): Add logic for selecting one of the new target
11512 descriptions. Activate the new vector regsets if applicable.
11513 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11514 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11515 and init_registers_s390x_tevx_linux64.
11517 2015-03-01 Pedro Alves <palves@redhat.com>
11519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11522 2015-02-27 Pedro Alves <palves@redhat.com>
11524 * linux-x86-low.c (u_debugreg_offset): New function.
11525 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11527 2015-02-27 Pedro Alves <palves@redhat.com>
11529 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11530 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11531 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11532 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11533 (ps_lsetfpregs, ps_getpid)
11534 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11535 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11536 (ps_lsetxregs, ps_plog): Declare.
11538 2015-02-27 Pedro Alves <palves@redhat.com>
11540 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11541 IP_AGENT_EXPORT_FUNC.
11542 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11543 IP_AGENT_EXPORT_FUNC.
11544 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11545 (IP_AGENT_EXPORT): Delete.
11546 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11547 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11548 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11549 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11550 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11551 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11552 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11553 (traceframe_read_count, traceframe_write_count)
11554 (traceframes_created, trace_state_variables, get_raw_reg)
11555 (get_trace_state_variable_value, set_trace_state_variable_value)
11556 (ust_loaded, helper_thread_id, cmd_buf): Use
11557 IPA_SYM_EXPORTED_NAME.
11558 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11559 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11560 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11561 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11562 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11563 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11564 EXTERN_C_PUSH/EXTERN_C_POP.
11565 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11566 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11567 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11568 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11569 (traceframe_write_count, traceframe_read_count)
11570 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11571 (about_to_request_buffer_space, get_trace_state_variable_value)
11572 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11573 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11574 EXTERN_C_PUSH/EXTERN_C_POP.
11575 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11576 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11577 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11578 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11579 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11580 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11581 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11582 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11584 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11585 (IP_AGENT_EXPORT_VAR_DECL): Define.
11586 (tracing): Declare.
11587 (gdb_agent_get_raw_reg): Declare.
11589 2015-02-27 Tom Tromey <tromey@redhat.com>
11590 Pedro Alves <palves@redhat.com>
11592 Rename symbols whose names are reserved C++ keywords throughout.
11594 2015-02-27 Pedro Alves <palves@redhat.com>
11596 * Makefile.in (COMPILER): New, get it from autoconf.
11597 (CXX): Get from autoconf instead.
11598 (COMPILE.pre): Use COMPILER.
11599 (CC-LD): Rename to ...
11600 (CC_LD): ... this. Use COMPILER.
11601 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11602 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11603 * acinclude.m4: Include build-with-cxx.m4.
11604 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11605 Disable -Werror by default if building in C++ mode.
11606 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11607 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11608 the C++ compiler. Save/restore CXXFLAGS too.
11609 * configure: Regenerate.
11611 2015-02-27 Pedro Alves <palves@redhat.com>
11613 * acinclude.m4: Include libiberty.m4.
11614 * configure.ac: Call libiberty_INIT.
11615 * config.in, configure: Regenerate.
11617 2015-02-26 Pedro Alves <palves@redhat.com>
11619 * linux-low.c (linux_wait_1): When incrementing the PC past a
11620 program breakpoint always use the_low_target.breakpoint_len as
11621 increment, rather than the maximum between that and
11622 the_low_target.decr_pc_after_break.
11624 2015-02-23 Pedro Alves <palves@redhat.com>
11626 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11627 thread was doing a step-over; always adjust the PC if
11628 we stepped over a permanent breakpoint.
11629 (linux_wait_1): If we stepped over breakpoint that was on top of a
11630 permanent breakpoint, manually advance the PC past it.
11632 2015-02-23 Pedro Alves <palves@redhat.com>
11634 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11636 (x86_fill_gregset, x86_store_gregset): Use it when handling
11639 2015-02-20 Pedro Alves <palves@redhat.com>
11641 * thread-db.c: Include "nat/linux-procfs.h".
11642 (thread_db_init): Skip listing new threads if the kernel supports
11643 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11645 2015-02-20 Pedro Alves <palves@redhat.com>
11647 * linux-low.c (status_pending_p_callback): Use ptid_match.
11649 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11651 PR breakpoints/16812
11652 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11653 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11654 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11656 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11658 PR breakpoints/15956
11659 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11661 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11663 * linux-low.c (linux_low_btrace_conf): Print size.
11664 * server.c (handle_btrace_conf_general_set): New.
11665 (hanle_general_set): Call handle_btrace_conf_general_set.
11666 (handle_query): Report Qbtrace-conf:bts:size as supported.
11668 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11670 * linux-low.c (linux_low_enable_btrace): Update parameters.
11671 (linux_low_btrace_conf): New.
11672 (linux_target_ops)<to_btrace_conf>: Initialize.
11673 * server.c (current_btrace_conf): New.
11674 (handle_btrace_enable): Rename to ...
11675 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11676 to target_enable_btrace. Update comment. Update users.
11677 (handle_qxfer_btrace_conf): New.
11678 (qxfer_packets): Add btrace-conf entry.
11679 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11680 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11681 (target_ops)<read_btrace_conf>: New.
11682 (target_enable_btrace): Update parameters.
11683 (target_read_btrace_conf): New.
11685 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11687 * server.c (handle_btrace_general_set): Remove call to
11688 target_supports_btrace.
11689 (supported_btrace_packets): New.
11690 (handle_query): Call supported_btrace_packets.
11691 * target.h: include btrace-common.h.
11692 (btrace_target_info): Removed.
11693 (supports_btrace, target_supports_btrace): Update parameters.
11695 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11697 * Makefile.in (SFILES): Add common/btrace-common.c.
11698 (OBS): Add common/btrace-common.o.
11699 (btrace-common.o): Add build rules.
11700 * linux-low: Include btrace-common.h.
11701 (linux_low_read_btrace): Use struct btrace_data. Call
11702 btrace_data_init and btrace_data_fini.
11704 2015-02-06 Pedro Alves <palves@redhat.com>
11706 * thread-db.c (find_new_threads_callback): Add debug output.
11708 2015-02-04 Pedro Alves <palves@redhat.com>
11710 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11711 (resume_stopped_resumed_lwps): New function.
11712 (linux_wait_for_event_filtered): Use it.
11714 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11716 * Makefile.in (SFILES): Add linux-personality.c.
11717 (linux-personality.o): New rule.
11718 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11719 list of objects to be built.
11720 * linux-low.c: Include nat/linux-personality.h.
11721 (linux_create_inferior): Remove code to disable address space
11722 randomization (moved to ../nat/linux-personality.c). Create
11723 cleanup to disable address space randomization.
11725 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11727 * Makefile.in (posix-strerror.o): New rule.
11728 (mingw-strerror.o): Likewise.
11729 * configure: Regenerated.
11730 * configure.ac: Source file ../common/common.host. Initialize new
11731 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11733 2015-01-14 Yao Qi <yao@codesourcery.com>
11735 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11736 (ppc-linux.o): New rule.
11737 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11738 * configure.ac: AC_CHECK_FUNCS(getauxval).
11739 * config.in: Re-generated.
11740 * configure: Re-generated.
11741 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11742 ppc64_64bit_inferior_p
11744 2015-01-14 Yao Qi <yao@codesourcery.com>
11746 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11747 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11748 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11749 (PT_ORIG_R3, PT_TRAP): Likewise.
11750 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11751 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11752 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11754 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11756 * i387-fp.c (i387_cache_to_xsave): In look over
11757 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11758 zmmh_low_space field by use of zmmh_high_space.
11760 2015-01-09 Pedro Alves <palves@redhat.com>
11762 * linux-low.c (step_over_bkpt): Move higher up in the file.
11763 (handle_extended_wait): Don't store the stop_pc here.
11764 (get_stop_pc): Adjust comments and rename to ...
11765 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11766 stopped for a software breakpoint or hardware breakpoint.
11767 (thread_still_has_status_pending_p): New function.
11768 (status_pending_p_callback): Use
11769 thread_still_has_status_pending_p. If the event is no longer
11770 interesting, resume the LWP.
11771 (handle_tracepoints): Add assert.
11772 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11773 (wstatus_maybe_breakpoint): New function.
11774 (cancel_breakpoint): Delete function.
11775 (check_stopped_by_watchpoint): New function, factored out from
11776 linux_low_filter_event.
11777 (lp_status_maybe_breakpoint): Delete function.
11778 (linux_low_filter_event): Remove filter_ptid argument.
11779 Leave thread group exits pending here. Store the LWP's stop PC.
11780 Always leave events pending.
11781 (linux_wait_for_event_filtered): Pull all events out of the
11782 kernel, and leave them all pending.
11783 (count_events_callback, select_event_lwp_callback): Consider all
11785 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11786 (select_event_lwp): Only give preference to the stepping LWP in
11787 all-stop mode. Adjust comments.
11788 (ignore_event): New function.
11789 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11790 references to cancel_breakpoints. Adjust to renames. Also give
11791 equal priority to all LWPs that have had events in non-stop mode.
11792 If reporting a software breakpoint event, unadjust the LWP's PC.
11793 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11794 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11796 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11797 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11798 (linux_stopped_by_watchpoint): Adjust.
11799 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11800 * linux-low.h (enum lwp_stop_reason): New.
11801 (struct lwp_info) <stop_pc>: Adjust comment.
11802 <stopped_by_watchpoint>: Delete field.
11803 <stop_reason>: New field.
11804 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11805 * mem-break.c (software_breakpoint_inserted_here)
11806 (hardware_breakpoint_inserted_here): New function.
11807 * mem-break.h (software_breakpoint_inserted_here)
11808 (hardware_breakpoint_inserted_here): Declare.
11809 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11810 (cancel_breakpoints): Delete.
11811 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11812 (upload_fast_traceframes): Remove references to
11813 cancel_breakpoints.
11815 2015-01-09 Pedro Alves <palves@redhat.com>
11817 * thread-db.c (find_new_threads_callback): Ignore thread if the
11818 kernel thread ID is -1.
11820 2015-01-09 Pedro Alves <palves@redhat.com>
11822 * linux-low.c (linux_attach_fail_reason_string): Move to
11823 nat/linux-ptrace.c, and rename.
11824 (linux_attach_lwp): Update comment.
11825 (attach_proc_task_lwp_callback): New function.
11826 (linux_attach): Adjust to rename and use
11827 linux_proc_attach_tgid_threads.
11828 (linux_attach_fail_reason_string): Delete declaration.
11830 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11832 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11833 * server.c (gdbserver_version): Likewise.
11835 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11837 * remote-utils.c: Include ctype.h.
11838 (input_interrupt): Explicitly handle the case when the char
11839 received is the NUL byte. Improve the printing of non-ASCII
11842 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11844 * linux-low.c (linux_low_filter_event): Update call to
11845 linux_enable_event_reporting following the addition of
11846 a new parameter to that function.
11848 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11851 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11852 (AARCH64_FPCR_REGNO): Likewise.
11853 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11854 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11855 (aarch64_store_fpregset): Likewise.
11857 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11859 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11860 Remove FIXME comment about assumption about N.
11862 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11864 * configure.ac: If large-file support is disabled in GDBserver,
11865 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11866 * configure: Regenerate.
11868 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11870 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11871 warning upon ENODATA from ptrace.
11872 * linux-s390-low.c (s390_store_tdb): New.
11873 (s390_regsets): Add regset for NT_S390_TDB.
11875 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11877 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11878 without a fill_function.
11879 * linux-s390-low.c (s390_fill_last_break): Remove.
11880 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11881 (s390_arch_setup): Use regset's size instead of fill_function for
11882 loop end condition.
11884 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11886 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11887 the regset's store function when ptrace returned an error.
11888 * regcache.c (get_thread_regcache): Invalidate register cache
11889 before fetching inferior's registers.
11891 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11893 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11894 while-loop as for-loop.
11895 (regsets_store_inferior_registers): Likewise.
11897 2014-11-28 Yao Qi <yao@codesourcery.com>
11899 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11900 * config.in, configure: Re-generate.
11901 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11904 2014-11-21 Yao Qi <yao@codesourcery.com>
11906 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11907 (AC_CHECK_HEADERS): Remove malloc.h.
11908 * configure: Re-generated.
11909 * config.in: Re-generated.
11910 * server.h: Don't include alloca.h and malloc.h.
11911 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11912 Don't include malloc.h.
11914 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11916 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11917 corresponding ERRNO check in same block.
11919 2014-11-12 Pedro Alves <palves@redhat.com>
11921 * server.c (cont_thread): Update comment.
11922 (start_inferior, attach_inferior): No longer clear cont_thread.
11923 (handle_v_cont): No longer set cont_thread.
11924 (captured_main): Clear cont_thread each time a GDB connects.
11926 2014-11-12 Pedro Alves <palves@redhat.com>
11928 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11929 thread, and don't resume all threads if the Hc thread has exited.
11931 2014-11-12 Pedro Alves <palves@redhat.com>
11933 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11934 the process group instead of to a specific LWP.
11936 2014-10-15 Pedro Alves <palves@redhat.com>
11939 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11941 (arm_set_thread_context): Delete.
11942 (the_low_target): Adjust.
11943 * win32-i386-low.c (debug_registers_changed)
11944 (debug_registers_used): Delete.
11945 (update_debug_registers_callback): New function.
11946 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11947 needing to update their debug registers.
11948 (win32_get_current_dr): New function.
11949 (x86_dr_low_get_addr, x86_dr_low_get_control)
11950 (x86_dr_low_get_status): Fetch the debug register from the thread
11952 (i386_initial_stuff): Adjust.
11953 (i386_get_thread_context): Remove current_event parameter. Don't
11954 clear debug_registers_changed nor copy DR values to
11956 (i386_set_thread_context): Delete.
11957 (i386_prepare_to_resume): New function.
11958 (i386_thread_added): Mark the thread as needing to update irs
11960 (the_low_target): Remove i386_set_thread_context and install
11961 i386_prepare_to_resume.
11962 * win32-low.c (win32_get_thread_context): Adjust.
11963 (win32_set_thread_context): Use SetThreadContext
11965 (win32_prepare_to_resume): New function.
11966 (win32_require_context): New function, factored out from ...
11967 (thread_rec): ... this.
11968 (continue_one_thread): Call win32_prepare_to_resume on each thread
11969 we're about to continue.
11970 (win32_resume): Call win32_prepare_to_resume on the event thread.
11971 * win32-low.h (struct win32_thread_info)
11972 <debug_registers_changed>: New field.
11973 (struct win32_target_ops): Change prototype of set_thread_context,
11974 delete set_thread_context and add prepare_to_resume.
11975 (win32_require_context): New declaration.
11977 2014-10-08 Gary Benson <gbenson@redhat.com>
11979 * server.h: Do not include common-exceptions.h.
11981 2014-10-08 Gary Benson <gbenson@redhat.com>
11983 * server.h: Do not include cleanups.h.
11985 2014-09-30 James Hogan <james.hogan@imgtec.com>
11987 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11988 mips64-dsp-linux.c.
11990 2014-09-23 Yao Qi <yao@codesourcery.com>
11992 * linux-low.c (lp_status_maybe_breakpoint): New function.
11993 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11994 (count_events_callback): Likewise.
11995 (select_event_lwp_callback): Likewise.
11996 (cancel_breakpoints_callback): Likewise.
11998 2014-09-19 Don Breazeal <donb@codesourcery.com>
12000 * linux-low.c (handle_extended_wait): Call
12001 linux_ptrace_get_extended_event.
12002 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12003 linux_is_extended_waitstatus.
12005 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12007 * Makefile.in (CPPFLAGS): Define.
12008 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12009 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12011 2014-09-16 Gary Benson <gbenson@redhat.com>
12013 * inferiors.h (current_inferior): Renamed as...
12014 (current_thread): New variable. All uses updated.
12015 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12016 (maybe_move_out_of_jump_pad): Likewise.
12017 (cancel_breakpoint): Likewise.
12018 (linux_low_filter_event): Likewise.
12019 (wait_for_sigstop): Likewise.
12020 (linux_resume_one_lwp): Likewise.
12021 (need_step_over_p): Likewise.
12022 (start_step_over): Likewise.
12023 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12024 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12025 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12026 and save_inferior as saved_thread.
12027 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12029 (regcache_invalidate_thread): Likewise.
12030 * remote-utils.c (prepare_resume_reply): Likewise.
12031 * thread-db.c (thread_db_get_tls_address): Likewise.
12032 (disable_thread_event_reporting): Likewise.
12033 (remove_thread_event_breakpoints): Likewise.
12034 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12036 * target.h (set_desired_inferior): Renamed as...
12037 (set_desired_thread): New declaration. All uses updated.
12038 * server.c (myresume): Updated comment to reference thread instead
12040 (handle_serial_event): Likewise.
12041 (handle_target_event): Likewise.
12043 2014-09-12 Tom Tromey <tromey@redhat.com>
12044 Gary Benson <gbenson@redhat.com>
12046 * regcache.h: Include common-regcache.h.
12047 (regcache_read_pc): Don't declare.
12048 * regcache.c (get_thread_regcache_for_ptid): New function.
12050 2014-09-11 Tom Tromey <tromey@redhat.com>
12051 Gary Benson <gbenson@redhat.com>
12053 * symbol.c: New file.
12054 * Makefile.in (SFILES): Add symbol.c.
12055 (OBS): Add symbol.o.
12057 2014-09-11 Gary Benson <gbenson@redhat.com>
12059 * target.c (target_stop_ptid, target_continue_ptid): New
12062 2014-09-11 Tom Tromey <tromey@redhat.com>
12063 Gary Benson <gbenson@redhat.com>
12065 * target.h: Include target/target.h.
12066 * target.c (target_read_memory, target_read_uint32)
12067 (target_write_memory): New functions.
12069 2014-09-11 Gary Benson <gbenson@redhat.com>
12071 * server.h (debug_hw_points): Don't declare.
12072 * server.c (debug_hw_points): Don't define. Replace all uses
12073 with show_debug_regs.
12074 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12075 all uses with show_debug_regs.
12077 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12079 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12080 endianness into account.
12081 (ppc_supply_ptrace_register): Likewise.
12083 2014-09-03 James Hogan <james.hogan@imgtec.com>
12085 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12086 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12088 2014-09-03 Gary Benson <gbenson@redhat.com>
12090 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12091 ALL_DEBUG_ADDRESS_REGISTERS.
12093 2014-09-02 Gary Benson <gbenson@redhat.com>
12095 * i386-low.h: Renamed as...
12096 * x86-low.h: New file. All type, function and variable name
12097 prefixes changed from "i386_" to "x86_". All references updated.
12098 * i386-low.c: Renamed as...
12099 * x86-low.c: New file. All type, function and variable name
12100 prefixes changed from "i386_" to "x86_". All references updated.
12102 2014-09-02 Gary Benson <gbenson@redhat.com>
12104 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12105 (x86_linux_new_thread): Likewise.
12107 2014-08-29 Gary Benson <gbenson@redhat.com>
12109 * server.h (setjmp.h): Do not include.
12110 (toplevel): Do not declare.
12111 (common-exceptions.h): Include.
12112 (cleanups.h): Likewise.
12113 * server.c (toplevel): Do not define.
12114 (exit_code): New static global.
12115 (detach_or_kill_for_exit_cleanup): New function.
12116 (main): New function. Original main renamed to...
12117 (captured_main): New function.
12118 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12120 2014-08-29 Gary Benson <gbenson@redhat.com>
12122 * Makefile.in (SFILES): Add common/common-exceptions.c.
12123 (OBS): Add common-exceptions.o.
12124 (common-exceptions.o): New rule.
12125 * utils.c (prepare_to_throw_exception): New function.
12127 2014-08-29 Gary Benson <gbenson@redhat.com>
12129 * config.in: Regenerate.
12130 * configure: Likewise.
12132 2014-08-29 Gary Benson <gbenson@redhat.com>
12134 * Makefile.in (SFILES): Add common/cleanups.c.
12136 (cleanups.o): New rule.
12138 2014-08-29 Gary Benson <gbenson@redhat.com>
12140 * utils.c (internal_vwarning): New function.
12142 2014-08-28 Gary Benson <gbenson@redhat.com>
12144 * utils.h (fatal): Remove declaration.
12145 * utils.c (fatal): Remove function.
12147 2014-08-28 Gary Benson <gbenson@redhat.com>
12149 * tracepoint.c (gdb_agent_init): Replace fatal with
12151 (initialize_tracepoint): Likewise.
12153 2014-08-28 Gary Benson <gbenson@redhat.com>
12155 * remote-utils.c (remote_prepare): Replace fatal with error.
12157 2014-08-28 Gary Benson <gbenson@redhat.com>
12159 * linux-low.c (linux_async): Replace fatal with warning.
12160 Tidy up and return.
12161 (linux_start_non_stop): Return -1 if linux_async failed.
12163 2014-08-28 Gary Benson <gbenson@redhat.com>
12165 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12167 (i386_dr_low_get_addr): Remove vague comment.
12168 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12171 2014-08-28 Gary Benson <gbenson@redhat.com>
12173 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12174 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12176 (linux_resume_one_lwp): Likewise.
12177 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12179 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12180 with internal_error.
12181 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12182 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12183 (find_register_by_name): Replace fatal with internal_error.
12184 (find_regno): Likewise.
12185 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12186 * thread-db.c (thread_db_create_event): Likewise.
12187 (thread_db_load_search): Likewise.
12188 (try_thread_db_load_1): Likewise.
12189 * tracepoint.c (get_jump_space_head): Replace fatal with
12191 (claim_trampoline_space): Likewise.
12192 (have_fast_tracepoint_trampoline_buffer): Likewise.
12193 (cmd_qtstart): Likewise.
12194 (stop_tracing): Likewise.
12195 (fast_tracepoint_collecting): Likewise.
12196 (target_malloc): Likewise.
12197 (download_tracepoint): Likewise.
12198 (download_trace_state_variables): Replace check with gdb_assert.
12199 (upload_fast_traceframes): Replace fatal with internal_error.
12201 2014-08-19 Tom Tromey <tromey@redhat.com>
12202 Gary Benson <gbenson@redhat.com>
12204 * Makefile.in (SFILES): Add common/common-debug.c.
12205 (OBS): Add common-debug.o.
12206 (common-debug.o): New rule.
12207 * debug.h (debug_printf): Don't declare.
12208 * debug.c (debug_printf): Renamed and rewritten as...
12209 (debug_vprintf): New function.
12211 2014-08-19 Gary Benson <gbenson@redhat.com>
12213 * utils.h: Do not include print-utils.h.
12215 2014-08-19 Tom Tromey <tromey@redhat.com>
12216 Gary Benson <gbenson@redhat.com>
12218 * server.h: Add static assertion.
12219 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12221 2014-08-19 Tom Tromey <tromey@redhat.com>
12222 Gary Benson <gbenson@redhat.com>
12224 * Makefile.in (SFILES): Add common/errors.c.
12225 (OBS): Add errors.o.
12226 (IPA_OBS): Add errors-ipa.o.
12227 (errors.o): New rule.
12228 (errors-ipa.o): Likewise.
12229 * utils.h (perror_with_name, error, warning): Don't declare.
12230 * utils.c (warning): Renamed and rewritten as...
12231 (vwarning): New function.
12232 (error): Renamed and rewritten as...
12233 (verror): New function.
12234 (internal_error): Renamed and rewritten as...
12235 (internal_verror): New function.
12237 2014-08-07 Gary Benson <gbenson@redhat.com>
12239 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12240 * configure: Regenerate.
12241 * config.in: Likewise.
12242 * server.h: Do not include errno.h.
12243 * event-loop.c: Likewise.
12244 * hostio-errno.c: Likewise.
12245 * linux-low.c: Likewise.
12246 * remote-utils.c: Likewise.
12247 * spu-low.c: Likewise.
12248 * utils.c: Likewise.
12249 * gdbreplay.c: Unconditionally include errno.h.
12251 2014-08-07 Gary Benson <gbenson@redhat.com>
12253 * server.h: Do not include string.h.
12254 * event-loop.c: Likewise.
12255 * linux-low.c: Likewise.
12256 * regcache.c: Likewise.
12257 * remote-utils.c: Likewise.
12258 * spu-low.c: Likewise.
12259 * utils.c: Likewise.
12261 2014-08-07 Gary Benson <gbenson@redhat.com>
12263 * server.h: Do not include gdb_assert.h.
12265 2014-08-07 Gary Benson <gbenson@redhat.com>
12267 * server.h: Do not include common-utils.h.
12269 2014-08-07 Gary Benson <gbenson@redhat.com>
12271 * server.h: Do not include ptid.h.
12272 * notif.h: Likewise.
12274 2014-08-07 Gary Benson <gbenson@redhat.com>
12276 * server.h: Do not include gdb_locale.h.
12278 2014-08-07 Gary Benson <gbenson@redhat.com>
12280 * server.h: Do not include gdb/signals.h.
12281 * win32-low.c: Likewise.
12283 2014-08-07 Gary Benson <gbenson@redhat.com>
12285 * server.h: Do not include pathmax.h.
12287 2014-08-07 Gary Benson <gbenson@redhat.com>
12289 * server.h: Do not include libiberty.h.
12290 * linux-bfin-low.c: Likewise.
12292 2014-08-07 Gary Benson <gbenson@redhat.com>
12294 * server.h: Do not include ansidecl.h.
12296 2014-08-07 Gary Benson <gbenson@redhat.com>
12298 * linux-x86-low.c: Do not include stddef.h.
12299 * lynx-ppc-low.c: Likewise.
12300 * tracepoint.c: Likewise.
12302 2014-08-07 Gary Benson <gbenson@redhat.com>
12304 * server.h: Do not include stdarg.h.
12305 * nto-low.c: Likewise.
12307 2014-08-07 Gary Benson <gbenson@redhat.com>
12309 * server.h: Do not include stdlib.h.
12310 * inferiors.c: Likewise.
12311 * linux-low.c: Likewise.
12312 * regcache.c: Likewise.
12313 * spu-low.c: Likewise.
12314 * tracepoint.c: Likewise.
12315 * utils.c: Likewise.
12317 2014-08-07 Gary Benson <gbenson@redhat.com>
12319 * server.h: Do not include stdio.h.
12320 * linux-low.c: Likewise.
12321 * remote-utils.c: Likewise.
12322 * spu-low.c: Likewise.
12323 * utils.c: Likewise.
12324 * wincecompat.c: Likewise.
12326 2014-08-06 Gary Benson <gbenson@redhat.com>
12328 * regcache.c (init_register_cache): Move conditionals inside if.
12330 2014-08-06 Gary Benson <gbenson@redhat.com>
12332 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12334 2014-07-31 Gary Benson <gbenson@redhat.com>
12336 * ax.h: Do not include server.h.
12337 * gdbthread.h: Likewise.
12338 * lynx-low.h: Likewise.
12339 * notif.h: Likewise.
12341 2014-07-30 Gary Benson <gbenson@redhat.com>
12343 * server.h: Include common-defs.h.
12344 Do not include config.h or build-gnulib-gdbserver/config.h.
12346 2014-07-30 Gary Benson <gbenson@redhat.com>
12348 * hostio-errno.c: Move server.h to top of includes list.
12349 * inferiors.c: Likewise.
12350 * linux-x86-low.c: Likewise.
12351 * notif.c: Include server.h.
12353 2014-07-24 Tom Tromey <tromey@redhat.com>
12354 Gary Benson <gbenson@redhat.com>
12356 * server.h (CORE_ADDR): Now unsigned.
12358 2014-07-16 Pedro Alves <palves@redhat.com>
12360 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12362 2014-07-15 Pedro Alves <palves@redhat.com>
12364 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12367 2014-07-11 Pedro Alves <palves@redhat.com>
12369 * linux-low.c (kill_wait_lwp): New function, based on
12370 kill_one_lwp_callback, but use my_waitpid directly.
12371 (kill_one_lwp_callback, linux_kill): Use it.
12373 2014-06-23 Pedro Alves <palves@redhat.com>
12375 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12376 before setting DR0..DR3.
12378 2014-06-20 Gary Benson <gbenson@redhat.com>
12380 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12381 * configure: Regenerated.
12382 * config.in: Likewise.
12384 2014-06-20 Gary Benson <gbenson@redhat.com>
12386 * Makefile.in (SFILES): Update locations for files moved
12387 from common to nat.
12388 (object file files): Reordered.
12390 2014-06-20 Gary Benson <gbenson@redhat.com>
12392 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12393 (i386_dr_low_set_addr): Likewise.
12394 (i386_dr_low_get_addr): Likewise.
12395 (i386_dr_low_can_set_control): Likewise.
12396 (i386_dr_low_set_control): Likewise.
12397 (i386_dr_low_get_control): Likewise.
12398 (i386_dr_low_get_status): Likewise.
12399 (i386_get_debug_register_length): Likewise.
12400 * linux-x86-low.c (i386_dr_low_set_addr):
12401 Changed signature. Made static.
12402 (i386_dr_low_get_addr): Likewise.
12403 (i386_dr_low_set_control): Likewise.
12404 (i386_dr_low_get_control): Likewise.
12405 (i386_dr_low_get_status): Likewise.
12406 (i386_dr_low): New global variable.
12407 * win32-i386-low.c (i386_dr_low_set_addr):
12408 Changed signature. Made static.
12409 (i386_dr_low_get_addr): Likewise.
12410 (i386_dr_low_set_control): Likewise.
12411 (i386_dr_low_get_control): Likewise.
12412 (i386_dr_low_get_status): Likewise.
12413 (i386_dr_low): New global variable.
12415 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12417 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12418 * Makefile.in (AR, AR_FLAGS): Define.
12419 * configure: Regenerate.
12421 2014-06-19 Gary Benson <gbenson@redhat.com>
12423 * Makefile.in (i386-dregs.o): New rule.
12424 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12425 * i386-low.c (target.h): Remove include.
12426 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12427 (DR_CONTROL_SHIFT): Likewise.
12428 (DR_CONTROL_SIZE): Likewise.
12429 (DR_RW_EXECUTE): Likewise.
12430 (DR_RW_WRITE): Likewise.
12431 (DR_RW_READ): Likewise.
12432 (DR_RW_IORW): Likewise.
12433 (DR_LEN_1): Likewise.
12434 (DR_LEN_2): Likewise.
12435 (DR_LEN_4): Likewise.
12436 (DR_LEN_8): Likewise.
12437 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12438 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12439 (DR_ENABLE_SIZE): Likewise.
12440 (DR_LOCAL_SLOWDOWN): Likewise.
12441 (DR_GLOBAL_SLOWDOWN): Likewise.
12442 (DR_CONTROL_RESERVED): Likewise.
12443 (I386_DR_CONTROL_MASK): Likewise.
12444 (I386_DR_VACANT): Likewise.
12445 (I386_DR_LOCAL_ENABLE): Likewise.
12446 (I386_DR_GLOBAL_ENABLE): Likewise.
12447 (I386_DR_DISABLE): Likewise.
12448 (I386_DR_SET_RW_LEN): Likewise.
12449 (I386_DR_GET_RW_LEN): Likewise.
12450 (I386_DR_WATCH_HIT): Likewise.
12451 (i386_wp_op_t): Likewise.
12452 (i386_show_dr): Likewise.
12453 (i386_length_and_rw_bits): Likewise.
12454 (i386_insert_aligned_watchpoint): Likewise.
12455 (i386_remove_aligned_watchpoint): Likewise.
12456 (i386_handle_nonaligned_watchpoint): Likewise.
12457 i386_update_inferior_debug_regs(): Likewise.
12458 (i386_dr_insert_watchpoint): Likewise.
12459 (i386_dr_remove_watchpoint): Likewise.
12460 (i386_dr_region_ok_for_watchpoint): Likewise.
12461 (i386_dr_stopped_data_address): Likewise.
12462 (i386_dr_stopped_by_watchpoint): Likewise.
12464 2014-06-19 Gary Benson <gbenson@redhat.com>
12466 * i386-low.c (i386_dr_show): Renamed to
12467 i386_show_dr and made static. All uses updated.
12468 (i386_dr_length_and_rw_bits): Renamed to
12469 i386_length_and_rw_bits and made static.
12471 (i386_dr_insert_aligned_watchpoint): Renamed to
12472 i386_insert_aligned_watchpoint and made static.
12474 (i386_dr_remove_aligned_watchpoint): Renamed to
12475 i386_remove_aligned_watchpoint and made static.
12477 (i386_dr_update_inferior_debug_regs): Renamed to
12478 i386_update_inferior_debug_regs and made static.
12481 2014-06-18 Gary Benson <gbenson@redhat.com>
12483 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12484 (i386_dr_low_can_set_control): Likewise.
12485 (i386_get_debug_register_length): Likewise.
12486 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12487 (i386_dr_low_can_set_control): Likewise.
12488 (i386_get_debug_register_length): Likewise.
12490 2014-06-17 Gary Benson <gbenson@redhat.com>
12492 * i386-low.h (i386-dregs.h): New include.
12493 (DR_FIRSTADDR): Now in i386-dregs.h.
12494 (DR_LASTADDR): Likewise.
12495 (DR_NADDR): Likewise.
12496 (DR_STATUS): Likewise.
12497 (DR_CONTROL): Likewise.
12498 (i386_debug_reg_state): Likewise.
12499 (i386_dr_insert_watchpoint): Likewise.
12500 (i386_dr_remove_watchpoint): Likewise.
12501 (i386_dr_region_ok_for_watchpoint): Likewise.
12502 (i386_dr_stopped_data_address): Likewise.
12503 (i386_dr_stopped_by_watchpoint): Likewise.
12504 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12506 2014-06-18 Gary Benson <gbenson@redhat.com>
12508 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12509 i386_dr_insert_watchpoint.
12510 (i386_low_remove_watchpoint): Renamed to
12511 i386_dr_remove_watchpoint.
12512 (i386_low_region_ok_for_watchpoint): Renamed to
12513 i386_dr_region_ok_for_watchpoint.
12514 (i386_low_stopped_data_address): Renamed to
12515 i386_dr_stopped_data_address.
12516 (i386_low_stopped_by_watchpoint): Renamed to
12517 i386_dr_stopped_by_watchpoint.
12518 * i386-low.c (i386_show_dr): Renamed to
12519 i386_dr_show and made nonstatic. All uses updated.
12520 (i386_length_and_rw_bits): Renamed to
12521 i386_dr_length_and_rw_bits and made nonstatic.
12523 (i386_insert_aligned_watchpoint): Renamed to
12524 i386_dr_insert_aligned_watchpoint and made nonstatic.
12526 (i386_remove_aligned_watchpoint): Renamed to
12527 i386_dr_remove_aligned_watchpoint and made nonstatic.
12529 (i386_update_inferior_debug_regs): Renamed to
12530 i386_dr_update_inferior_debug_regs and made nonstatic.
12532 (i386_low_insert_watchpoint): Renamed to
12533 i386_dr_insert_watchpoint. All uses updated.
12534 (i386_low_remove_watchpoint): Renamed to
12535 i386_dr_remove_watchpoint. All uses updated.
12536 (i386_low_region_ok_for_watchpoint): Renamed to
12537 i386_dr_region_ok_for_watchpoint. All uses updated.
12538 (i386_low_stopped_data_address): Renamed to
12539 i386_dr_stopped_data_address. All uses updated.
12540 (i386_low_stopped_by_watchpoint): Renamed to
12541 i386_dr_stopped_by_watchpoint. All uses updated.
12543 2014-06-18 Gary Benson <gbenson@redhat.com>
12545 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12546 (i386_dr_low_can_set_control): Likewise.
12547 (i386_insert_aligned_watchpoint): New check.
12549 2014-06-18 Gary Benson <gbenson@redhat.com>
12551 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12554 2014-06-18 Gary Benson <gbenson@redhat.com>
12556 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12557 instead of fatal and error.
12558 (i386_handle_nonaligned_watchpoint): Likewise.
12560 2014-06-18 Gary Benson <gbenson@redhat.com>
12562 * i386-low.c (i386_get_debug_register_length): New macro.
12563 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12564 (i386_show_dr): Use debug_printf instead of fprintf. Use
12565 phex to format values.
12567 2014-06-18 Gary Benson <gbenson@redhat.com>
12569 * i386-low.h: Comment changes.
12570 * i386-low.c: Likewise.
12572 2014-06-18 Gary Benson <gbenson@redhat.com>
12574 * i386-low.c: Whitespace changes.
12576 2014-06-12 Tom Tromey <tromey@redhat.com>
12578 * utils.c (freeargv): Remove.
12580 2014-06-12 Tom Tromey <tromey@redhat.com>
12582 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12583 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12584 (parse_debug_format_options): Likewise.
12585 (gdbserver_usage): Likewise.
12586 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12587 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12588 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12590 ($(LIBGNU)): Depend on libiberty.
12591 (all-lib): Recurse into all subdirs.
12592 (install-only): Invoke "install" target in subdirs.
12593 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12595 * configure: Rebuild.
12596 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12597 for vasprintf, vsnprintf, or gettimeofday.
12598 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12601 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12603 * development.sh: Delete.
12604 * Makefile.in (config.status): Adjust dependency on development.sh.
12605 * configure.ac: Adjust development.sh source call.
12606 * configure: Regenerate.
12608 2014-06-02 Pedro Alves <palves@redhat.com>
12610 * ax.c (gdb_free_agent_expr): New function.
12611 * ax.h (gdb_free_agent_expr): New declaration.
12612 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12614 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12616 (clear_breakpoint_conditions_and_commands): New function.
12617 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12618 (clear_breakpoint_conditions_and_commands): New declaration.
12620 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12622 * linux-aarch64-low.c (asm/ptrace.h): Include.
12624 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12626 Fix TLS access for -static -pthread.
12627 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12628 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12629 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12631 2014-05-20 Pedro Alves <palves@redhat.com>
12633 * linux-aarch64-low.c (aarch64_insert_point)
12634 (aarch64_remove_point): No longer check whether the type is
12635 supported here. Adjust to new interface.
12636 (the_low_target): Install aarch64_supports_z_point_type as
12637 supports_z_point_type method.
12638 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12639 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12640 instead of a Z packet char. Adjust.
12641 (arm_supports_z_point_type): New function.
12642 (arm_insert_point, arm_remove_point): Adjust to new interface.
12643 (the_low_target): Install arm_supports_z_point_type.
12644 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12645 (cris_insert_point, cris_remove_point): Adjust to new interface.
12646 Don't check whether the type is supported here.
12647 (the_low_target): Install cris_supports_z_point_type.
12648 * linux-low.c (linux_supports_z_point_type): New function.
12649 (linux_insert_point, linux_remove_point): Adjust to new interface.
12650 * linux-low.h (struct linux_target_ops) <insert_point,
12651 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12652 raw_breakpoint pointer parameter.
12653 <supports_z_point_type>: New method.
12654 * linux-mips-low.c (mips_supports_z_point_type): New function.
12655 (mips_insert_point, mips_remove_point): Adjust to new interface.
12656 Use mips_supports_z_point_type.
12657 (the_low_target): Install mips_supports_z_point_type.
12658 * linux-ppc-low.c (the_low_target): Install NULL as
12659 supports_z_point_type method.
12660 * linux-s390-low.c (the_low_target): Install NULL as
12661 supports_z_point_type method.
12662 * linux-sparc-low.c (the_low_target): Install NULL as
12663 supports_z_point_type method.
12664 * linux-x86-low.c (x86_supports_z_point_type): New function.
12665 (x86_insert_point): Adjust to new insert_point interface. Use
12666 insert_memory_breakpoint. Adjust to new
12667 i386_low_insert_watchpoint interface.
12668 (x86_remove_point): Adjust to remove_point interface. Use
12669 remove_memory_breakpoint. Adjust to new
12670 i386_low_remove_watchpoint interface.
12671 (the_low_target): Install x86_supports_z_point_type.
12672 * lynx-low.c (lynx_target_ops): Install NULL as
12673 supports_z_point_type callback.
12674 * nto-low.c (nto_supports_z_point_type): New.
12675 (nto_insert_point, nto_remove_point): Adjust to new interface.
12676 (nto_target_ops): Install nto_supports_z_point_type.
12677 * mem-break.c: Adjust intro comment.
12678 (struct raw_breakpoint) <raw_type, size>: New fields.
12679 <inserted>: Update comment.
12680 <shlib_disabled>: Delete field.
12681 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12682 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12683 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12684 (raw_bkpt_type_to_target_hw_bp_type): New function.
12685 (find_enabled_raw_code_breakpoint_at): New function.
12686 (find_raw_breakpoint_at): New type and size parameters. Use them.
12687 (insert_memory_breakpoint): New function, based off
12688 set_raw_breakpoint_at.
12689 (remove_memory_breakpoint): New function.
12690 (set_raw_breakpoint_at): Reimplement.
12691 (set_breakpoint): New, based on set_breakpoint_at.
12692 (set_breakpoint_at): Reimplement.
12693 (delete_raw_breakpoint): Go through the_target->remove_point
12694 instead of assuming memory breakpoints.
12695 (find_gdb_breakpoint_at): Delete.
12696 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12697 (find_gdb_breakpoint): New function.
12698 (set_gdb_breakpoint_at): Delete.
12699 (z_type_supported): New function.
12700 (set_gdb_breakpoint_1): New function, loosely based off
12701 set_gdb_breakpoint_at.
12702 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12703 (delete_gdb_breakpoint_at): Delete.
12704 (delete_gdb_breakpoint_1): New function, loosely based off
12705 delete_gdb_breakpoint_at.
12706 (delete_gdb_breakpoint): New function.
12707 (clear_gdb_breakpoint_conditions): Rename to ...
12708 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12710 (add_condition_to_breakpoint): Make static.
12711 (add_breakpoint_condition): Take a struct breakpoint pointer
12712 instead of an address. Adjust.
12713 (gdb_condition_true_at_breakpoint): Rename to ...
12714 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12716 (gdb_condition_true_at_breakpoint): Reimplement.
12717 (add_breakpoint_commands): Take a struct breakpoint pointer
12718 instead of an address. Adjust.
12719 (gdb_no_commands_at_breakpoint): Rename to ...
12720 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12721 parameter. Return true if no breakpoint was found. Change debug
12723 (gdb_no_commands_at_breakpoint): Reimplement.
12724 (run_breakpoint_commands): Rename to ...
12725 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12726 and change return type to boolean.
12727 (run_breakpoint_commands): New function.
12728 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12729 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12730 breakpoint. Go through the_target->remove_point instead of
12731 assuming memory breakpoint.
12732 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12733 software and hardware breakpoints.
12734 (reinsert_raw_breakpoint): Go through the_target->insert_point
12735 instead of assuming memory breakpoint.
12736 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12737 software and hardware breakpoints.
12738 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12739 Check both software and hardware breakpoints.
12740 (validate_inserted_breakpoint): Assert the breakpoint is a
12741 software breakpoint. Set the inserted flag to -1 instead of
12742 setting shlib_disabled.
12743 (delete_disabled_breakpoints): Adjust.
12744 (validate_breakpoints): Only validate software breakpoints.
12745 Adjust to inserted flag change.
12746 (check_mem_read, check_mem_write): Skip breakpoint types other
12747 than software breakpoints. Adjust to inserted flag change.
12748 * mem-break.h (enum raw_bkpt_type): New enum.
12749 (raw_breakpoint, struct process_info): Forward declare.
12750 (Z_packet_to_target_hw_bp_type): Delete declaration.
12751 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12752 (set_gdb_breakpoint, delete_gdb_breakpoint)
12753 (clear_breakpoint_conditions): New declarations.
12754 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12755 (breakpoint_inserted_here): Update comment.
12756 (add_breakpoint_condition, add_breakpoint_commands): Replace
12757 address parameter with a breakpoint pointer parameter.
12758 (gdb_breakpoint_here): Update comment.
12759 (delete_gdb_breakpoint_at): Delete.
12760 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12761 * server.c (process_point_options): Take a struct breakpoint
12762 pointer instead of an address. Adjust.
12763 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12764 delete_gdb_breakpoint.
12765 * spu-low.c (spu_target_ops): Install NULL as
12766 supports_z_point_type method.
12767 * target.h: Include mem-break.h.
12768 (struct target_ops) <prepare_to_access_memory>: Update comment.
12769 <supports_z_point_type>: New field.
12770 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12771 instead of a char. Also take a raw breakpoint pointer.
12772 * win32-arm-low.c (the_low_target): Install NULL as
12773 supports_z_point_type.
12774 * win32-i386-low.c (i386_supports_z_point_type): New function.
12775 (i386_insert_point, i386_remove_point): Adjust to new interface.
12776 (the_low_target): Install i386_supports_z_point_type.
12777 * win32-low.c (win32_supports_z_point_type): New function.
12778 (win32_insert_point, win32_remove_point): Adjust to new interface.
12779 (win32_target_ops): Install win32_supports_z_point_type.
12780 * win32-low.h (struct win32_target_ops):
12781 <supports_z_point_type>: New method.
12782 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12783 instead of a char. Also take a raw breakpoint pointer.
12785 2014-05-20 Pedro Alves <palves@redhat.com>
12787 * mem-break.h: Include break-common.h.
12788 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12789 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12790 (Z_packet_to_target_hw_bp_type): New declaration.
12791 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12792 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12793 (Z_PACKET_ACCESS_WP): Delete macros.
12794 (Z_packet_to_hw_type): Delete function.
12795 * i386-low.h: Don't include break-common.h here.
12796 (Z_packet_to_hw_type): Delete declaration.
12797 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12798 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12799 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12800 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12801 * linux-aarch64-low.c: Don't include break-common.h here.
12802 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12803 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12804 (Z_packet_to_target_hw_bp_type): Delete function.
12805 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12807 (mips_insert_point, mips_remove_point): Use
12808 Z_packet_to_target_hw_bp_type.
12810 2014-05-20 Pedro Alves <palves@redhat.com>
12812 * linux-aarch64-low.c: Include break-common.h.
12813 (enum target_point_type): Delete.
12814 (Z_packet_to_point_type): Rename to ...
12815 (Z_packet_to_target_hw_bp_type): ... this, and return a
12816 target_hw_bp_type instead.
12817 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12818 instead of an enum target_point_type.
12819 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12821 (aarch64_dr_state_insert_one_point)
12822 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12823 (aarch64_handle_aligned_watchpoint)
12824 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12825 Take an enum target_hw_bp_type instead of an enum
12827 (aarch64_supports_z_point_type): New function.
12828 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12829 use Z_packet_to_target_hw_bp_type.
12831 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12833 * configure.ac: Only use -Werror by default when DEVELOPMENT
12835 * configure: Regenerate.
12837 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12839 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12840 * linux-x86-low.c (X86_64_USER_REGS): New.
12841 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12843 2014-04-28 Yao Qi <yao@codesourcery.com>
12845 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12848 2014-04-25 Pedro Alves <palves@redhat.com>
12851 * linux-low.c (linux_attach_fail_reason_string): New function.
12852 (linux_attach_lwp): Delete.
12853 (linux_attach_lwp_1): Rename to ...
12854 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12855 argument. Remove "initial" parameter. Return int instead of
12856 void. Don't error or warn here.
12857 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12858 failure to attach to the tgid. Call warning when failing to
12860 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12861 argument. Remove "initial" parameter. Return int instead of
12862 void. Don't error or warn here.
12863 (linux_attach_fail_reason_string): New declaration.
12864 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12865 interface change. Use linux_attach_fail_reason_string.
12867 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12868 Walfred Tedeschi <walfred.tedeschi@intel.com>
12870 * Makefile.in: Added rules to handle new files
12871 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12872 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12873 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12874 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12875 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12876 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12877 x32-avx512-linux.o.
12878 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12879 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12880 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12881 i386/x32-avx512.xml.
12882 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12883 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12884 i386/x32-avx512-linux.xml.
12885 * i387-fp.c (num_avx512_k_registers): New constant for number
12887 (num_avx512_zmmh_low_registers): New constant for number of
12888 lower ZMM registers (0-15).
12889 (num_avx512_zmmh_high_registers): New constant for number of
12890 higher ZMM registers (16-31).
12891 (num_avx512_ymmh_registers): New contant for number of higher
12892 YMM registers (ymm16-31 added by avx521 on x86_64).
12893 (num_avx512_xmm_registers): New constant for number of higher
12894 XMM registers (xmm16-31 added by AVX512 on x86_64).
12895 (struct i387_xsave): Add space for AVX512 registers.
12896 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12897 Add code to handle AVX512 registers.
12898 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12899 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12900 prototypei from generated file.
12901 (tdesc_amd64_avx512_linux): Likewise.
12902 (init_registers_x32_avx512_linux): Likewise.
12903 (tdesc_x32_avx512_linux): Likewise.
12904 (init_registers_i386_avx512_linux): Likewise.
12905 (tdesc_i386_avx512_linux): Likewise.
12906 (x86_64_regmap): Add AVX512 registers.
12907 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12909 (initialize_low_arch): Add code to initialize AVX512 registers.
12911 2014-04-23 Pedro Alves <palves@redhat.com>
12913 * mem-break.c (find_gdb_breakpoint_at): Make static.
12914 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12916 2014-04-23 Pedro Alves <palves@redhat.com>
12918 * i386-low.c: Don't include break-common.h here.
12919 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12920 prototype to take target_hw_bp_type as argument instead of a Z
12922 * i386-low.h: Include break-common.h here.
12923 (Z_packet_to_hw_type): Declare.
12924 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12926 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12927 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12928 (x86_remove_point): Convert the packet number to a
12929 target_hw_bp_type before calling i386_low_remove_watchpoint.
12930 * win32-i386-low.c (i386_insert_point): Convert the packet number
12931 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12932 (i386_remove_point): Convert the packet number to a
12933 target_hw_bp_type before calling i386_low_remove_watchpoint.
12935 2014-04-23 Pedro Alves <palves@redhat.com>
12937 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12939 2014-04-10 Pedro Alves <palves@redhat.com>
12941 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12942 Check if the condition or command is NULL before checking if the
12943 breakpoint is known. On success, return true.
12944 * mem-break.h (add_breakpoint_condition): Document return.
12945 (add_breakpoint_commands): Add describing comment.
12946 * server.c (skip_to_semicolon): New function.
12947 (process_point_options): Use it.
12949 2014-04-09 Pedro Alves <palves@redhat.com>
12951 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12954 2014-02-27 Pedro Alves <palves@redhat.com>
12957 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12959 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12961 (last_thread_of_process_p): Take a PID argument instead of a
12963 (linux_wait_for_lwp): Delete.
12964 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12966 (linux_low_filter_event): New function, party factored out from
12967 linux_wait_for_event.
12968 (linux_wait_for_event): Rename to ...
12969 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12970 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12971 sigsuspend. Check for zombie leaders.
12972 (linux_wait_for_event): Reimplement as wrapper around
12973 linux_wait_for_event_filtered.
12974 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12975 a normal or signal exit is seen, it's the whole process exiting.
12976 (wait_for_sigstop): No longer a for_each_inferior callback.
12977 Rewrite on top of linux_wait_for_event_filtered.
12978 (stop_all_lwps): Call wait_for_sigstop directly.
12979 * server.c (resume, handle_target_event): Handle
12980 TARGET_WAITKIND_NO_RESUMED.
12982 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12984 * win32-low.c (psapi_get_dll_name,
12985 * win32_CreateToolhelp32Snapshot): Delete.
12986 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12987 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12989 (handle_load_dll): Add function description.
12990 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12992 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12994 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12996 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12997 base address when calling win32_add_one_solib.
12998 (handle_load_dll): Delete local variable load_addr.
12999 Remove 0x1000 offset applied to DLL base address when calling
13000 win32_add_one_solib.
13001 (handle_unload_dll): Add comment.
13003 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13005 * win32-low.c (win32_add_all_dlls): Renames
13006 win32_ensure_ntdll_loaded. Rewrite function documentation.
13007 Adjust implementation to always load all DLLs.
13008 Add 0x1000 offset to DLL base address when calling
13009 win32_add_one_solib.
13010 (child_initialization_done): New static global.
13011 (do_initial_child_stuff): Set child_initialization_done to
13012 zero during child initialization, and 1 after. Replace call
13013 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13015 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13016 (handle_unload_dll): Add function documentation.
13017 (get_child_debug_event): Ignore load and unload DLL events
13018 during child initialization.
13020 2014-02-20 Doug Evans <dje@google.com>
13022 Remove global all_lwps.
13023 * inferiors.h (ptid_of): Move here from linux-low.h.
13024 (pid_of, lwpid_of): Ditto.
13025 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13026 parameter is a struct thread_info * now.
13027 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13028 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13029 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13031 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13032 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13033 * linux-arm-low.c (update_registers_callback): Update, "entry"
13034 parameter is a struct thread_info * now.
13035 Fetch lwpid from current_inferior directly.
13036 (arm_insert_point): Pass &all_threads to find_inferior instead of
13038 (arm_remove_point): Ditto.
13039 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13040 (arm_prepare_to_resume): Fetch pid from thread.
13041 (arm_read_description): Fetch lwpid from current_inferior directly.
13042 * linux-low.c (all_lwps): Delete.
13043 (delete_lwp): Delete call to remove_inferior.
13044 (handle_extended_wait): Fetch lwpid from thread.
13045 (add_lwp): Don't set lwp->entry.id. Remove call to
13046 add_inferior_to_list.
13047 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13048 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13049 (kill_one_lwp_callback): Ditto.
13050 (linux_kill): Don't dereference NULL pointer.
13051 Fetch ptid,lwpid from thread.
13052 (get_detach_signal): Fetch ptid from thread.
13053 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13054 Simplify call to regcache_invalidate_thread.
13055 (delete_lwp_callback): Update, "entry" parameter is a
13056 struct thread_info * now. Fetch pid from thread.
13057 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13058 (status_pending_p_callback): Update, "entry" parameter is a
13059 struct thread_info * now. Fetch ptid from thread.
13060 (find_lwp_pid): Update, "entry" parameter is a
13061 struct thread_info * now.
13062 (linux_wait_for_lwp): Fetch pid from thread.
13063 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13064 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13065 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13066 (dequeue_one_deferred_signal): Ditto.
13067 (cancel_breakpoint): Fetch ptid from current_inferior.
13068 (linux_wait_for_event): Pass &all_threads to find_inferior,
13069 not &all_lwps. Fetch ptid, lwpid from thread.
13070 (count_events_callback): Update, "entry" parameter is a
13071 struct thread_info * now.
13072 (select_singlestep_lwp_callback): Ditto.
13073 (select_event_lwp_callback): Ditto.
13074 (cancel_breakpoints_callback): Ditto.
13075 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13077 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13078 (unsuspend_one_lwp): Update, "entry" parameter is a
13079 struct thread_info * now.
13080 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13082 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13083 Fetch lwpid from thread, not lwp.
13084 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13085 Pass &all_threads to find_inferior, not &all_lwps.
13086 (send_sigstop): Fetch lwpid from thread, not lwp.
13087 (send_sigstop_callback): Update, "entry" parameter is a
13088 struct thread_info * now.
13089 (suspend_and_send_sigstop_callback): Ditto.
13090 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13091 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13092 struct thread_info * now.
13093 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13095 (lwp_running): Update, "entry" parameter is a
13096 struct thread_info * now.
13097 (stop_all_lwps): Fetch ptid from thread.
13098 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13099 (linux_resume_one_lwp): Fetch lwpid from thread.
13100 (linux_set_resume_request): Update, "entry" parameter is a
13101 struct thread_info * now. Fetch pid, lwpid from thread.
13102 (resume_status_pending_p): Update, "entry" parameter is a
13103 struct thread_info * now.
13104 (need_step_over_p): Ditto. Fetch lwpid from thread.
13105 (start_step_over): Fetch lwpid from thread.
13106 (linux_resume_one_thread): Update, "entry" parameter is a
13107 struct thread_info * now. Fetch lwpid from thread.
13108 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13109 (proceed_one_lwp): Update, "entry" parameter is a
13110 struct thread_info * now. Fetch lwpid from thread.
13111 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13112 struct thread_info * now.
13113 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13114 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13115 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13117 (regsets_store_inferior_registers): Ditto.
13118 (fetch_register, store_register): Ditto.
13119 (linux_read_memory, linux_write_memory): Ditto.
13120 (linux_request_interrupt): Ditto.
13121 (linux_read_auxv): Ditto.
13122 (linux_xfer_siginfo): Ditto.
13123 (linux_qxfer_spu): Ditto.
13124 (linux_qxfer_libraries_svr4): Ditto.
13125 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13126 moved to inferiors.h.
13128 (get_thread_lwp): Update.
13129 (struct lwp_info): Delete member "entry". Simplify comment for
13131 (all_lwps): Delete.
13132 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13133 current_inferior directly.
13134 (update_watch_registers_callback): Update, "entry" parameter is a
13135 struct thread_info * now. Fetch pid from thread.
13136 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13137 (mips_insert_point): Fetch lwpid from current_inferior.
13138 Pass &all_threads to find_inferior, not &all_lwps.
13139 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13140 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13142 (mips_stopped_data_address): Ditto.
13143 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13145 * linux-tile-low.c (tile_arch_setup): Ditto.
13146 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13147 (update_debug_registers_callback): Update, "entry" parameter is a
13148 struct thread_info * now. Fetch pid from thread.
13149 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13150 Pass &all_threads to find_inferior, not &all_lwps.
13151 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13152 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13153 Pass &all_threads to find_inferior, not &all_lwps.
13154 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13155 (i386_dr_low_get_status): Ditto.
13156 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13157 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13158 (x86_linux_read_description): Ditto.
13159 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13161 2014-02-20 Doug Evans <dje@google.com>
13163 * inferiors.c (get_first_inferior): Fix buglet.
13165 2014-02-19 Doug Evans <dje@google.com>
13167 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13168 * inferiors.c (add_thread): Change result type to struct thread_info *.
13169 All callers updated.
13170 (add_lwp): Call add_thread here instead of in callers.
13171 All callers updated.
13172 * linux-low.h (get_lwp_thread): Rewrite.
13173 (struct lwp_info): New member "thread".
13175 2014-02-19 Doug Evans <dje@google.com>
13177 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13178 All callers updated.
13180 2014-02-19 Doug Evans <dje@google.com>
13182 * inferiors.c (add_thread): Fix whitespace.
13184 2014-02-19 Doug Evans <dje@google.com>
13186 * dll.c (clear_dlls): Replace accessing list implemention details
13188 * gdbthread.h (get_first_thread): Declare.
13189 * inferiors.c (for_each_inferior_with_data): New function.
13190 (get_first_thread): New function.
13191 (find_thread_ptid): Simplify.
13192 (get_first_inferior): New function.
13193 (clear_list): Delete.
13194 (one_inferior_p): New function.
13195 (clear_inferior_list): New function.
13196 (clear_inferiors): Update.
13197 * inferiors.h (for_each_inferior_with_data): Declare.
13198 (clear_inferior_list): Declare.
13199 (one_inferior_p): Declare.
13200 (get_first_inferior): Declare.
13201 * linux-low.c (linux_wait_for_event): Replace accessing list
13202 implemention details with API function.
13203 * server.c (target_running): Ditto.
13204 (accumulate_file_name_length): New function.
13205 (emit_dll_description): New function.
13206 (handle_qxfer_libraries): Replace accessing list implemention
13207 details with API function.
13208 (handle_qxfer_threads_worker): New function.
13209 (handle_qxfer_threads_proper): Replace accessing list implemention
13210 details with API function.
13211 (handle_query): Ditto.
13212 (visit_actioned_threads_callback_ftype): New typedef.
13213 (visit_actioned_threads_data): New struct.
13214 (visit_actioned_threads): Rewrite to be find_inferior callback.
13215 (resume): Call find_inferior.
13216 (handle_status): Replace accessing list implemention
13217 details with API function.
13218 (process_serial_event): Replace accessing list implemention details
13220 * target.c (set_desired_inferior): Replace accessing list implemention
13221 details with API function.
13222 * tracepoint.c (same_process_p): New function.
13223 (gdb_agent_about_to_close): Replace accessing list implemention
13224 details with API function.
13225 * win32-low.c (child_delete_thread): Replace accessing list
13226 implemention details with API function.
13227 (match_dll_by_basename): New function.
13228 (dll_is_loaded_by_basename): New function.
13229 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13230 details call to dll_is_loaded_by_basename.
13232 2014-02-19 Doug Evans <dje@google.com>
13234 * dll.h (struct dll_info): Add comment.
13235 * gdbthread.h (struct thread_info): Add comment.
13236 (current_ptid): Simplify.
13237 * inferiors.c (add_process): Update.
13238 (remove_process): Update.
13239 * inferiors.h (struct process_info): Rename member "head" to "entry".
13240 * linux-low.c (delete_lwp): Update.
13242 (last_thread_of_process_p): Update.
13243 (kill_one_lwp_callback, linux_kill): Update.
13244 (status_pending_p_callback): Update.
13245 (wait_for_sigstop): Update. Simplify read of ptid.
13246 (start_step_over): Update.
13247 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13248 (get_lwp_thread): Update.
13249 (struct lwp_info): Rename member "head" to "entry".
13250 * regcache.h (inferior_list_entry): Delete.
13251 * server.c (kill_inferior_callback): Update.
13252 (detach_or_kill_inferior_callback): Update.
13253 (print_started_pid): Update.
13254 (print_attached_pid): Update.
13255 (process_serial_event): Simplify read of ptid.
13256 * thread-db.c (thread_db_create_event): Update.
13257 (thread_db_get_tls_address): Update.
13258 * win32-low.c (current_inferior_ptid): Simplify.
13260 2014-02-19 Tom Tromey <tromey@redhat.com>
13262 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13264 (target_supports_btrace): Update.
13266 2014-02-14 Yao Qi <yao@codesourcery.com>
13268 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13269 (rsp-low-ipa.o): New target.
13271 2014-02-12 Tom Tromey <tromey@redhat.com>
13273 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13274 convert_ascii_to_int.
13275 * regcache.c (registers_to_string): Likewise.
13276 * remote-utils.c (decode_M_packet): Likewise.
13277 * server.c (process_serial_event): Likewise.
13279 2014-02-12 Tom Tromey <tromey@redhat.com>
13281 * server.c (handle_query, handle_v_run): Use hex2bin, not
13283 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13285 2014-02-12 Tom Tromey <tromey@redhat.com>
13287 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13288 convert_int_to_ascii.
13289 * regcache.c (registers_to_string, collect_register_as_string):
13291 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13293 * server.c (process_serial_event): Likewise.
13294 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13295 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13297 2014-02-12 Tom Tromey <tromey@redhat.com>
13299 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13300 bin2hex, not hexify.
13301 * tracepoint.c (cmd_qtstatus): Likewise.
13303 2014-02-12 Tom Tromey <tromey@redhat.com>
13305 * remote-utils.c (monitor_output): Pass explicit length to
13308 2014-02-12 Tom Tromey <tromey@redhat.com>
13310 * tracepoint.c: Include rsp-low.h.
13311 * server.c: Include rsp-low.h.
13312 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13313 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13315 * remote-utils.c: Include rsp-low.h.
13316 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13317 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13318 (convert_int_to_ascii, convert_ascii_to_int): Move to
13320 * regcache.c: Include rsp-low.h.
13321 * ax.c: Include rsp-low.h.
13322 * Makefile.in (SFILES): Add common/rsp-low.c.
13323 (OBS): Add rsp-low.o.
13324 (rsp-low.o): New target.
13326 2014-02-12 Tom Tromey <tromey@redhat.com>
13328 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13329 Include print-utils.h.
13330 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13331 (plongest, thirty_two, phex_nz): Remove.
13332 * Makefile.in (SFILES): Add common/print-utils.c.
13333 (OBS): Add print-utils.o.
13334 (print-utils-ipa.o): New target.
13335 (print-utils.o): New target.
13336 (IPA_OBJS): Add print-utils-ipa.o.
13338 2014-02-06 Tom Tromey <tromey@redhat.com>
13340 * Makefile.in (SFILES): Fix indentation.
13342 2014-02-05 Doug Evans <dje@google.com>
13344 * linux-low.c (linux_wait_for_event): Improve comment.
13345 (linux_wait_1): Keep current_inferior in sync with event_child.
13347 2014-01-22 Doug Evans <dje@google.com>
13349 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13351 2014-01-22 Doug Evans <dje@google.com>
13353 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13354 * configure: Regenerate.
13355 * config.in: Regenerate.
13356 * Makefile.in (SFILES): Add debug.c.
13357 (OBS): Add debug.o.
13358 * debug.c: New file.
13359 * debug.h: New file.
13360 * linux-aarch64-low.c (*): Update all debugging printfs to use
13361 debug_printf instead of fprintf.
13362 * linux-arm-low.c (*): Ditto.
13363 * linux-cris-low.c (*): Ditto.
13364 * linux-crisv32-low.c (*): Ditto.
13365 * linux-m32r-low.c (*): Ditto.
13366 * linux-sparc-low.c (*): Ditto.
13367 * linux-x86.c (*): Ditto.
13368 * linux-low.c (*): Ditto.
13369 (linux_wait_1): Add calls to debug_enter, debug_exit.
13370 (linux_wait): Remove redundant debugging printf.
13371 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13372 (linux_resume, unstop_all_lwps): Ditto.
13373 * mem-break.c (*): Update all debugging printfs to use
13374 debug_printf instead of fprintf.
13375 * remote-utils.c (*): Ditto.
13376 * thread-db.c (*): Ditto.
13377 * server.c #include <ctype.h>, "gdb_vecs.h".
13378 (debug_threads): Moved to debug.c.
13379 (*): Update all debugging printfs to use debug_printf instead of
13381 (start_inferior): Replace call to fflush with call to debug_flush.
13382 (monitor_show_help): Mention set debug-format.
13383 (parse_debug_format_options): New function.
13384 (handle_monitor_command): Handle "monitor set debug-format".
13385 (gdbserver_usage): Mention --debug-format.
13386 (main): Parse --debug-format.
13387 * server.h (debug_threads): Declaration moved to debug.h.
13388 #include "debug.h".
13389 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13390 trace_debug_1 that uses debug_printf.
13391 (tracepoint_look_up_symbols): Update all debugging printfs to use
13392 debug_printf instead of fprintf.
13394 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13396 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13399 2014-01-17 Pedro Alves <palves@redhat.com>
13402 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13403 defined after including gdb_proc_service.h.
13405 2014-01-16 Doug Evans <dje@google.com>
13407 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13408 (match_dll): Use it.
13410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13412 * target.h (target_ops) <read_btrace>: Change parameters and
13413 return type to allow error reporting.
13414 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13415 trace reading errors on.
13416 * linux-low.c (linux_low_read_btrace): Pass trace reading
13418 (linux_low_disable_btrace): New.
13420 2014-01-15 Doug Evans <dje@google.com>
13422 * inferiors.c (thread_id_to_gdb_id): Delete.
13423 * inferiors.h (thread_id_to_gdb_id): Delete.
13425 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13427 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13428 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13431 2014-01-08 Pedro Alves <palves@redhat.com>
13433 * server.c (handle_status): Don't discard previous queued stop
13434 replies or thread's pending status here.
13435 (main) <disconnection>: Do it here instead.
13437 2014-01-08 Pedro Alves <palves@redhat.com>
13439 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13440 * server.c (visit_actioned_threads, handle_pending_status): New
13442 (handle_v_cont): Factor out parts to ...
13443 (resume): ... this new function. If in all-stop, and a thread
13444 being resumed has a pending status, report it without actually
13446 (myresume): Adjust to use the new 'resume' function.
13447 (clear_pending_status_callback, set_pending_status_callback)
13448 (find_status_pending_thread_callback): New functions.
13449 (handle_status): Handle the case of multiple threads having
13450 interesting statuses to report. Report threads' real last signal
13451 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13452 with an interesting thread to report the status for, instead of
13453 always reporting the status of the first thread.
13455 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13457 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13458 * gdbreplay.c (gdbreplay_version): Likewise.
13460 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13462 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13463 iov.iov_len with the real length in use.
13465 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13467 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13468 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13469 for all targets that use win32-low.c.
13470 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13471 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13473 2013-12-13 Pedro Alves <palves@redhat.com>
13475 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13476 if equal to TARGET_WAITKIND_LOADED.
13477 * win32-low.c (cached_status): New static global.
13478 (win32_wait): Add declaration.
13479 (do_initial_child_stuff): Flush all initial pending debug events
13480 up to the initial breakpoint.
13481 (win32_wait): If CACHED_STATUS was set, return that instead
13482 of doing a real wait. Remove the code resuming the execution
13483 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13484 during the initial phase. Also remove the code changing
13485 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13486 TARGET_WAITKIND_STOPPED.
13488 2013-12-11 Yao Qi <yao@codesourcery.com>
13490 * notif.c (handle_notif_ack): Return 0 if no notification
13493 2013-11-20 Doug Evans <dje@google.com>
13495 * linux-low.c (linux_set_resume_request): Fix comment.
13497 2013-11-20 Doug Evans <dje@google.com>
13499 * linux-low.c (resume_status_pending_p): Tweak comment.
13501 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13503 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13504 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13505 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13506 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13507 (srv_amd64_regobj): Add amd64-mpx.o.
13508 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13509 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13510 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13511 * i387-fp.c (num_pl_bnd_register) Added constant.
13512 (num_pl_bnd_cfg_registers) Added constant.
13513 (struct i387_xsave) Added reserved area and MPX fields.
13514 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13515 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13517 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13518 (init_registers_amd64_mpx_linux): Declare new function.
13519 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13520 (x86_64_regmap): Add MPX registers.
13521 (x86_linux_read_description): Add MPX case.
13522 (initialize_low_arch): Initialize MPX targets.
13524 2013-11-18 Tom Tromey <tromey@redhat.com>
13526 * configure: Rebuild.
13527 * configure.ac: Don't check for stdlib.h.
13528 * gdbreplay.c: Unconditionally include stdlib.h.
13530 2013-11-18 Tom Tromey <tromey@redhat.com>
13532 * config.in: Rebuild.
13533 * configure: Rebuild.
13534 * configure.ac: Don't use AC_HEADER_DIRENT.
13536 2013-11-18 Tom Tromey <tromey@redhat.com>
13538 * server.h: Don't check HAVE_STRING_H.
13539 * gdbreplay.c: Don't check HAVE_STRING_H.
13540 * configure: Rebuild.
13542 2013-11-18 Tom Tromey <tromey@redhat.com>
13544 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13547 2013-11-08 Tom Tromey <tromey@redhat.com>
13549 * configure, config.in: Rebuild.
13550 * configure.ac: Remove unused configury.
13552 2013-11-08 Tom Tromey <tromey@redhat.com>
13554 * acinclude.m4: Include common.m4, codeset.m4.
13555 * configure, config.in: Rebuild.
13556 * configure.ac: Use GDB_AC_COMMON.
13558 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13560 * linux-s390-low.c (HWCAP_S390_TE): New define.
13561 (s390_arch_setup): Consider the TE field in the HWCAP for
13562 determining 'have_regset_tdb'.
13564 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13567 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13570 2013-10-02 Pedro Alves <palves@redhat.com>
13572 * server.c (process_serial_event): Don't output "GDBserver
13573 exiting" if GDB is connected through stdio.
13574 * target.c (mywait): Likewise, be silent if GDB is connected
13577 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13579 * lynx-low.c (lynx_add_threads_after_attach): New function.
13580 (lynx_attach): Remove call to add_thread. Add call to
13581 lynx_add_threads_after_attach instead.
13583 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13585 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13586 * config.in, configure: Regenerated.
13588 2013-09-18 Yao Qi <yao@codesourcery.com>
13591 * server.c (start_inferior): Clear 'resume_info'.
13593 2013-09-16 Jiong Wang <jiwang@tilera.com>
13595 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13598 2013-09-16 Jiong Wang <jiwang@tilera.com>
13600 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13601 linux-tile-low.o to srv_tgtobj.
13603 2013-09-16 Will Newton <will.newton@linaro.org>
13605 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13608 2013-09-06 Pedro Alves <palves@redhat.com>
13610 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13611 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13612 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13613 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13614 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13615 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13617 2013-09-06 Pedro Alves <palves@redhat.com>
13619 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13620 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13622 2013-09-06 Pedro Alves <palves@redhat.com>
13624 * linux-amd64-ipa.c: Include tracepoint.h.
13625 * linux-i386-ipa.c: Include tracepoint.h.
13627 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13629 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13630 (ps_get_thread_area): New function.
13632 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13634 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13635 (initialize_low_arch): Call init_registers_crisv32 rather than
13636 init_register_crisv32.
13638 2013-09-05 Pedro Alves <palves@redhat.com>
13640 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13642 * hostio.h: ... this new file.
13643 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13644 win32-low.c: Include hostio.h.
13646 2013-09-05 Pedro Alves <palves@redhat.com>
13648 * server.h (gdb_client_data, handler_func, callback_handler_func)
13649 (delete_file_handler, add_file_handler, append_callback_event)
13650 (delete_callback_event, start_event_loop, initialize_event_loop):
13651 Move to event-loop.h and include it.
13652 * event-loop.h: New file.
13654 2013-09-05 Pedro Alves <palves@redhat.com>
13656 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13657 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13658 (loaded_dll, unloaded_dll): Move to ...
13659 * dll.h: ... this new file.
13660 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13662 2013-09-05 Pedro Alves <palves@redhat.com>
13664 * server.h (current_process, get_thread_process, all_processes)
13665 (add_inferior_to_list, for_each_inferior, current_inferior)
13666 (remove_inferior, add_process, remove_process, find_process_pid)
13667 (have_started_inferiors_p, have_attached_inferiors_p)
13668 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13669 (clear_inferiors, find_inferior, find_inferior_id)
13670 (inferior_target_data, set_inferior_target_data)
13671 (inferior_regcache_data, set_inferior_regcache_data): Move to
13672 inferiors.h, and include it.
13673 * inferiors.h: New file.
13675 2013-09-05 Pedro Alves <palves@redhat.com>
13677 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13681 2013-09-05 Pedro Alves <palves@redhat.com>
13683 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13685 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13686 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13687 (handle_tracepoint_general_set, handle_tracepoint_query)
13688 (tracepoint_finished_step, tracepoint_was_hit)
13689 (release_while_stepping_state_list, current_traceframe)
13690 (in_readonly_region, traceframe_read_mem)
13691 (fetch_traceframe_registers, traceframe_read_sdata)
13692 (traceframe_read_info, struct fast_tpoint_collect_status)
13693 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13694 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13695 (supply_fast_tracepoint_registers)
13696 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13697 (ipa_tdesc, claim_trampoline_space)
13698 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13699 (agent_mem_read, agent_get_trace_state_variable_value)
13700 (agent_set_trace_state_variable_value, agent_tsv_read)
13701 (agent_mem_read_string, get_raw_reg_func_addr)
13702 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13703 * tracepoint.h: ... this new file.
13705 2013-09-05 Pedro Alves <palves@redhat.com>
13707 * server.h (perror_with_name, error, fatal, warning, paddress)
13708 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13710 * utils.h: New file.
13712 2013-09-05 Pedro Alves <palves@redhat.com>
13714 * server.h (remote_debug, noack_mode, transport_is_reliable)
13715 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13716 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13717 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13718 (write_enn, initialize_async_io, enable_async_io)
13719 (disable_async_io, check_remote_input_interrupt_request)
13720 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13721 (dead_thread_notify, prepare_resume_reply)
13722 (decode_address_to_semicolon, decode_address, decode_m_packet)
13723 (decode_M_packet, decode_X_packet, decode_xfer_write)
13724 (decode_search_memory_packet, unhexify, hexify)
13725 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13726 (look_up_one_symbol, relocate_instruction)
13727 (monitor_output): Move to remote-utils.h, and include it.
13728 * remote-utils.h: New file.
13730 2013-09-05 Pedro Alves <palves@redhat.com>
13732 * server.h (_): Delete.
13734 2013-09-02 Pedro Alves <palves@redhat.com>
13736 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13737 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13739 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13741 2013-09-02 Pierre Muller <muller@sourceware.org>
13743 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13744 or WriteProcessMemory complete successfully and handle
13745 ERROR_PARTIAL_COPY error.
13747 2013-09-02 Pedro Alves <palves@redhat.com>
13749 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13750 error instead of EIO.
13752 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13755 * linux-low.c: Include filestuff.h.
13756 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13757 * lynx-low.c: Include filestuff.h.
13758 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13759 * server.c: Include filestuff.h.
13760 (main): Call notice_open_fds.
13761 * spu-low.c: Include filestuff.h.
13762 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13764 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13766 * Makefile.in: Explain why ../target and ../nat are not
13767 listed as include file search paths.
13768 (linux-waitpid.o): New object file rule.
13769 * configure.srv (srv_native_linux_obj): New variable.
13770 Replace all occurrences of linux native object files with
13771 $srv_native_linux_obj.
13772 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13773 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13774 (linux_enable_event_reporting): Remove declaration.
13775 (my_waitpid): Moved to common/linux-waitpid.c.
13776 (linux_wait_for_event): Pass ptid when calling
13777 linux_enable_event_reporting.
13778 (linux_supports_tracefork_flag): Remove.
13779 (linux_enable_event_reporting): Likewise.
13780 (linux_tracefork_grandchild): Remove.
13781 (STACK_SIZE): Moved to common/linux-ptrace.c.
13782 (linux_tracefork_child): Remove.
13783 (linux_test_for_tracefork): Remove.
13784 (linux_look_up_symbols): Call linux_supports_traceclone.
13785 (initialize_low): Remove call to linux_test_for_tracefork.
13786 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13787 common/linux-ptrace.h.
13788 (PTRACE_TYPE_ARG4): Likewise.
13789 Include linux-ptrace.h.
13791 2013-08-21 Pedro Alves <palves@redhat.com>
13793 * config.in: Renegerate.
13795 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13797 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13798 (SFILES): Remove $(srcdir)/common/target-common.c and
13799 add $(srcdir)/target/waitstatus.c.
13800 (OBS): Remove target-common.o and add waitstatus.o.
13801 (server_h): Remove $(srcdir)/../common/target-common.h and
13802 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13803 and $(srcdir)/../target/waitstatus.h.
13804 (target-common.o): Remove.
13805 (waitstatus.o): New target object file.
13806 * target.h: Do not include target-common.h and
13807 include target/resume.h, target/wait.h and
13808 target/waitstatus.h.
13810 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13812 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13813 to PTRACE_TYPE_ARG3.
13814 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13815 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13817 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13818 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13820 2013-07-27 Jie Zhang <jie@codesourcery.com>
13821 Daniel Jacobowitz <dan@codesourcery.com>
13822 Yao Qi <yao@codesourcery.com>
13824 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13825 (mips-linux-watch.o): New rule.
13826 (mips_linux_watch_h): New variable.
13827 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13829 * linux-mips-low.c: Include mips-linux-watch.h.
13830 (struct arch_process_info, struct arch_lwp_info): New.
13831 (update_watch_registers_callback): New function.
13832 (mips_linux_new_process, mips_linux_new_thread) New functions.
13833 (mips_linux_prepare_to_resume, mips_insert_point): New
13835 (mips_remove_point, mips_stopped_by_watchpoint): New
13837 (rsp_bp_type_to_target_hw_bp_type): New function.
13838 (mips_stopped_data_address): New function.
13839 (the_low_target): Add watchpoint support functions.
13841 2013-07-27 Yao Qi <yao@codesourcery.com>
13843 * i386-low.c: Include break-common.h.
13844 (enum target_hw_bp_type): Remove.
13846 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13848 * Makefile.in (SFILES): /common/target-common.c.
13849 (OBS): Add target-common.o.
13850 (server_h): Add $(srcdir)/../common/target-common.h.
13851 (target-common.o): New target.
13852 * server.c (queue_stop_reply_callback): Free
13853 status string after use.
13854 * target.c (target_waitstatus_to_string): Remove.
13855 * target.h: Include target-common.h.
13856 (resume_kind): Likewise.
13857 (target_waitkind): Likewise.
13858 (target_waitstatus): Likewise.
13859 (TARGET_WNOHANG): Likewise.
13861 2013-07-04 Yao Qi <yao@codesourcery.com>
13863 * Makefile.in (host_alias): Use @host_noncanonical@.
13864 (target_alias): Use @target_noncanonical@.
13865 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13866 ACX_NONCANONICAL_HOST.
13867 * configure: Regenerated.
13870 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13872 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13873 * configure: Rebuild.
13874 * Makefile.in (version_host, version_target): Get from configure.
13875 (version.c): Use $(version_host) and $(version_target).
13877 2013-07-03 Pedro Alves <palves@redhat.com>
13879 * Makefile.in (config.status): Depend on development.sh.
13880 * acinclude.m4: Include libmcheck.m4.
13881 * configure: Regenerate.
13883 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13885 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13886 attribute inside the parentheses.
13887 (winapi_DebugSetProcessKillOnExit): Ditto.
13888 (winapi_DebugBreakProcess): Ditto.
13889 (winapi_GenerateConsoleCtrlEvent): Ditto.
13891 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13893 * notif.h (notif_event): Add a dummy member to avoid compiler
13896 2013-07-01 Pedro Alves <palves@redhat.com>
13898 * hostio.c (HOSTIO_PATH_MAX): Define.
13899 (require_filename, handle_open, handle_unlink, handle_readlink):
13902 2013-07-01 Pedro Alves <palves@redhat.com>
13904 * server.h: Include "pathmax.h".
13905 * linux-low.c: Don't include sys/param.h.
13906 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13908 * win32-low.c: Don't include sys/param.h.
13909 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13911 2013-07-01 Pedro Alves <palves@redhat.com>
13913 * event-loop.c: Don't check HAVE_UNISTD_H before including
13915 * gdbreplay.c: Likewise.
13916 * remote-utils.c: Likewise.
13917 * server.c: Likewise.
13918 * configure.ac: Don't check for unistd.h.
13919 * configure: Regenerate.
13921 2013-06-28 Tom Tromey <tromey@redhat.com>
13923 * Makefile.in (version.c): Use version.in, not
13926 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13928 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13929 * configure: Rebuild.
13930 * Makefile.in (version_host, version_target): Get from configure.
13931 (version.c): Use $(version_host) and $(version_target).
13933 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13935 Fix trace-status to output user name without trailing colon.
13936 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13938 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13940 Fix trace-status to output proper start-time and stop-time.
13941 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13942 output start time and stop time in hex as gdb expects.
13944 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13946 * tracepoint.c (build_traceframe_info_xml): Output trace state
13947 variables present in the trace buffer.
13949 2013-06-24 Tom Tromey <tromey@redhat.com>
13951 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13953 (version.o): Remove.
13954 * gdbreplay.c: Include version.h.
13955 (version, host_name): Don't declare.
13956 * server.h: Include version.h.
13957 (version, host_name): Don't declare.
13959 2013-06-12 Pedro Alves <palves@redhat.com>
13961 * linux-x86-low.c (linux_is_elf64): Delete global.
13962 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13963 with local linux_pid_exe_is_elf_64_file use.
13965 2013-06-11 Pedro Alves <palves@redhat.com>
13967 * linux-low.c (regset_disabled, disable_regset): New functions.
13968 (regsets_fetch_inferior_registers)
13969 (regsets_store_inferior_registers): Use them.
13970 (initialize_regsets_info); Don't allocate the disabled_regsets
13972 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13975 2013-06-11 Pedro Alves <palves@redhat.com>
13977 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13980 2013-06-11 Pedro Alves <palves@redhat.com>
13982 * linux-x86-low.c (initialize_low_arch): Call
13983 init_registers_x32_avx_linux.
13985 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13987 Fix compatibility with Android Bionic.
13988 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13991 2013-06-07 Pedro Alves <palves@redhat.com>
13994 * Makefile.in (OBS): Add tdesc.o.
13995 (IPA_OBJS): Add tdesc-ipa.o.
13996 (tdesc-ipa.o): New rule.
13997 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13999 * linux-low.c (new_inferior): Delete.
14000 (disabled_regsets, num_regsets): Delete.
14001 (linux_add_process): Adjust to set the new per-process
14003 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14004 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14005 was a stop. When calling arch_setup, switch the current inferior
14006 to the thread that got an event.
14007 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14008 (regsets_fetch_inferior_registers)
14009 (regsets_store_inferior_registers): New regsets_info parameter.
14011 (linux_register_in_regsets): New regs_info parameter. Adjust to
14013 (register_addr, fetch_register, store_register): New usrregs_info
14014 parameter. Adjust to use it.
14015 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14016 parameter regs_info. Adjust to use it.
14017 (linux_fetch_registers): Get the current inferior's regs_info, and
14019 (linux_store_registers): Ditto.
14020 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14021 (initialize_low): Don't initialize the target_regsets here. Call
14022 initialize_low_arch.
14023 * linux-low.h (target_regsets): Delete declaration.
14024 (struct regsets_info): New.
14025 (struct usrregs_info): New.
14026 (struct regs_info): New.
14027 (struct process_info_private) <new_inferior>: New field.
14028 (struct linux_target_ops): Delete the num_regs, regmap, and
14029 regset_bitmap fields. New field regs_info.
14030 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14031 * i387-fp.c (num_xmm_registers): Delete.
14032 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14033 calls to new interface.
14034 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14035 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14036 Infer the number of xmm registers from the regcache's target
14038 * i387-fp.h (num_xmm_registers): Delete.
14039 * inferiors.c (add_thread): Don't install the thread's regcache
14041 * proc-service.c (gregset_info): Fetch the current inferior's
14042 regs_info. Adjust to use it.
14043 * regcache.c: Include tdesc.h.
14044 (register_bytes, reg_defs, num_registers)
14045 (gdbserver_expedite_regs): Delete.
14046 (get_thread_regcache): If the thread doesn't have a regcache yet,
14047 create one, instead of aborting gdbserver.
14048 (regcache_invalidate_one): Rename to ...
14049 (regcache_invalidate_thread): ... this.
14050 (regcache_invalidate_one): New.
14051 (regcache_invalidate): Only invalidate registers of the current
14053 (init_register_cache): Add target_desc parameter, and use it.
14054 (new_register_cache): Ditto. Assert the target description has a
14055 non zero registers_size.
14056 (regcache_cpy): Add assertions. Adjust.
14057 (realloc_register_cache, set_register_cache): Delete.
14058 (registers_to_string, registers_from_string): Adjust.
14059 (find_register_by_name, find_regno, find_register_by_number)
14060 (register_cache_size): Add target_desc parameter, and use it.
14061 (free_register_cache_thread, free_register_cache_thread_one)
14062 (regcache_release, register_cache_size): New.
14063 (register_size): Add target_desc parameter, and use it.
14064 (register_data, supply_register, supply_register_zeroed)
14065 (supply_regblock, supply_register_by_name, collect_register)
14066 (collect_register_as_string, collect_register_by_name): Adjust.
14067 * regcache.h (struct target_desc): Forward declare.
14068 (struct regcache) <tdesc>: New field.
14069 (init_register_cache, new_register_cache): Add target_desc
14071 (regcache_invalidate_thread): Declare.
14072 (regcache_invalidate_one): Delete declaration.
14073 (regcache_release): Declare.
14074 (find_register_by_number, register_cache_size, register_size)
14075 (find_regno): Add target_desc parameter.
14076 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14078 * remote-utils.c: Include tdesc.h.
14079 (outreg, prepare_resume_reply): Adjust.
14080 * server.c: Include tdesc.h.
14081 (gdbserver_xmltarget): Delete declaration.
14082 (get_features_xml, process_serial_event): Adjust.
14083 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14085 (struct process_info) <tdesc>: New field.
14086 (ipa_tdesc): Declare.
14087 * tdesc.c: New file.
14088 * tdesc.h: New file.
14089 * tracepoint.c: Include tdesc.h.
14090 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14091 (get_context_regcache): Adjust to pass ipa_tdesc down.
14092 (do_action_at_tracepoint): Adjust to get the register cache size
14093 from the context regcache's description.
14094 (traceframe_walk_blocks): Adjust to get the register cache size
14095 from the current trace frame's description.
14096 (traceframe_get_pc): Adjust to get current trace frame's
14097 description and pass it down.
14098 (gdb_collect): Adjust to get the register cache size from the
14100 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14101 (gdbserver_xmltarget): Delete.
14102 (initialize_low_tracepoint): Set the ipa's target description.
14103 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14104 (initialize_low_tracepoint): Set the ipa's target description.
14105 * linux-x86-low.c: Include tdesc.h.
14106 [__x86_64__] (is_64bit_tdesc): New.
14107 (ps_get_thread_area, x86_get_thread_area): Use it.
14108 (i386_cannot_store_register): Rename to ...
14109 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14110 (i386_cannot_fetch_register): Rename to ...
14111 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14112 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14114 (target_regsets): Rename to ...
14115 (x86_regsets): ... this.
14116 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14118 (x86_siginfo_fixup): Use is_64bit_tdesc.
14119 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14120 (tdesc_x32_avx_linux, tdesc_x32_linux)
14121 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14123 (x86_linux_update_xmltarget): Delete.
14124 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14125 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14126 (AMD64_LINUX_USER64_CS): New.
14127 (x86_linux_read_description): New, based on
14128 x86_linux_update_xmltarget.
14129 (same_process_callback): New.
14130 (x86_arch_setup_process_callback): New.
14131 (x86_linux_update_xmltarget): New.
14132 (x86_regsets_info): New.
14133 (amd64_linux_regs_info): New.
14134 (i386_linux_usrregs_info): New.
14135 (i386_linux_regs_info): New.
14136 (x86_linux_regs_info): New.
14137 (x86_arch_setup): Reimplement.
14138 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14139 (x86_emit_ops): Ditto.
14140 (the_low_target): Adjust. Install x86_linux_regs_info,
14141 x86_cannot_fetch_register, and x86_cannot_store_register.
14142 (initialize_low_arch): New.
14143 * linux-ia64-low.c (tdesc_ia64): Declare.
14144 (ia64_fetch_register): Adjust.
14145 (ia64_usrregs_info, regs_info): New globals.
14146 (ia64_regs_info): New function.
14147 (the_low_target): Adjust.
14148 (initialize_low_arch): New function.
14149 * linux-sparc-low.c (tdesc_sparc64): Declare.
14150 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14152 (sparc_arch_setup): New function.
14153 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14154 (the_low_target): Adjust.
14155 (initialize_low_arch): New function.
14156 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14157 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14158 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14159 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14160 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14161 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14162 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14163 (tdesc_powerpc_isa205_vsx64l): Declare.
14164 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14165 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14166 (ppc_set_pc, ppc_get_hwcap): Adjust.
14167 (ppc_usrregs_info): Forward declare.
14168 (!__powerpc64__) ppc_regmap_adjusted: New global.
14169 (ppc_arch_setup): Adjust to the current process'es target
14171 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14172 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14173 (ppc_store_evrregset): Adjust.
14174 (target_regsets): Rename to ...
14175 (ppc_regsets): ... this, and make static.
14176 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14177 (ppc_regs_info): New function.
14178 (the_low_target): Adjust.
14179 (initialize_low_arch): New function.
14180 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14181 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14182 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14183 (tdesc_s390x_linux64v2): Declare.
14184 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14185 (s390_fill_gregset, s390_store_last_break): Adjust.
14186 (target_regsets): Rename to ...
14187 (s390_regsets): ... this, and make static.
14188 (s390_get_pc, s390_set_pc): Adjust.
14189 (s390_get_hwcap): New target_desc parameter, and use it.
14190 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14191 (s390_arch_setup): Adjust to set the current process'es target
14192 description. Don't adjust the regmap.
14193 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14194 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14195 (regs_info_3264): New globals.
14196 (s390_regs_info): New function.
14197 (the_low_target): Adjust.
14198 (initialize_low_arch): New function.
14199 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14200 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14201 [__mips64] (init_registers_mips_linux)
14202 (init_registers_mips_dsp_linux): Delete defines.
14203 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14204 (have_dsp): New global.
14205 (mips_read_description): New, based on mips_arch_setup.
14206 (mips_arch_setup): Reimplement.
14207 (get_usrregs_info): New function.
14208 (mips_cannot_fetch_register, mips_cannot_store_register)
14209 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14210 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14211 (target_regsets): Rename to ...
14212 (mips_regsets): ... this, and make static.
14213 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14214 (dsp_regs_info, regs_info): New globals.
14215 (mips_regs_info): New function.
14216 (the_low_target): Adjust.
14217 (initialize_low_arch): New function.
14218 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14219 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14221 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14222 (arm_read_description): New, with bits factored from
14224 (arm_arch_setup): Reimplement.
14225 (target_regsets): Rename to ...
14226 (arm_regsets): ... this, and make static.
14227 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14228 (arm_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-m68k-low.c (tdesc_m68k): Declare.
14232 (target_regsets): Rename to ...
14233 (m68k_regsets): ... this, and make static.
14234 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14235 (m68k_regs_info): New function.
14236 (m68k_arch_setup): New function.
14237 (the_low_target): Adjust.
14238 (initialize_low_arch): New function.
14239 * linux-sh-low.c (tdesc_sharch): Declare.
14240 (target_regsets): Rename to ...
14241 (sh_regsets): ... this, and make static.
14242 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14243 (sh_regs_info, sh_arch_setup): New functions.
14244 (the_low_target): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-bfin-low.c (tdesc_bfin): Declare.
14247 (bfin_arch_setup): New function.
14248 (bfin_usrregs_info, regs_info): New globals.
14249 (bfin_regs_info): New function.
14250 (the_low_target): Adjust.
14251 (initialize_low_arch): New function.
14252 * linux-cris-low.c (tdesc_cris): Declare.
14253 (cris_arch_setup): New function.
14254 (cris_usrregs_info, regs_info): New globals.
14255 (cris_regs_info): New function.
14256 (the_low_target): Adjust.
14257 (initialize_low_arch): New function.
14258 * linux-cris-low.c (tdesc_crisv32): Declare.
14259 (cris_arch_setup): New function.
14260 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14261 (cris_regs_info): New function.
14262 (the_low_target): Adjust.
14263 (initialize_low_arch): New function.
14264 * linux-m32r-low.c (tdesc_m32r): Declare.
14265 (m32r_arch_setup): New function.
14266 (m32r_usrregs_info, regs_info): New globals.
14267 (m32r_regs_info): Adjust.
14268 (initialize_low_arch): New function.
14269 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14270 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14271 (tic6x_usrregs_info): Forward declare.
14272 (tic6x_read_description): New function, based on ...
14273 (tic6x_arch_setup): ... this. Reimplement.
14274 (target_regsets): Rename to ...
14275 (tic6x_regsets): ... this, and make static.
14276 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14277 (tic6x_regs_info): New function.
14278 (the_low_target): Adjust.
14279 (initialize_low_arch): New function.
14280 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14281 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14282 (target_regsets): Rename to ...
14283 (xtensa_regsets): ... this, and make static.
14284 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14286 (xtensa_arch_setup, xtensa_regs_info): New functions.
14287 (the_low_target): Adjust.
14288 (initialize_low_arch): New function.
14289 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14290 (nios2_arch_setup): Set the current process'es tdesc.
14291 (target_regsets): Rename to ...
14292 (nios2_regsets): ... this.
14293 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14294 (nios2_regs_info): New function.
14295 (the_low_target): Adjust.
14296 (initialize_low_arch): New function.
14297 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14298 (aarch64_arch_setup): Set the current process'es tdesc.
14299 (target_regsets): Rename to ...
14300 (aarch64_regsets): ... this.
14301 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14302 (aarch64_regs_info): New function.
14303 (the_low_target): Adjust.
14304 (initialize_low_arch): New function.
14305 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14307 (target_regsets): Rename to ...
14308 (tile_regsets): ... this.
14309 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14310 (tile_regs_info): New function.
14311 (tile_arch_setup): Set the current process'es tdesc.
14312 (the_low_target): Adjust.
14313 (initialize_low_arch): New function.
14314 * spu-low.c (tdesc_spu): Declare.
14315 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14316 * win32-arm-low.c (tdesc_arm): Declare.
14317 (arm_arch_setup): New function.
14318 (the_low_target): Install arm_arch_setup instead of
14319 init_registers_arm.
14320 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14321 (init_windows_x86): Rename to ...
14322 (i386_arch_setup): ... this. Set `win32_tdesc'.
14323 (the_low_target): Adjust.
14324 * win32-low.c (win32_tdesc): New global.
14325 (child_add_thread): Don't create the thread cache here.
14326 (do_initial_child_stuff): Set the new process'es tdesc.
14327 * win32-low.h (struct target_desc): Forward declare.
14328 (win32_tdesc): Declare.
14329 * lynx-i386-low.c (tdesc_i386): Declare global.
14330 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14331 * lynx-low.c (lynx_tdesc): New global.
14332 (lynx_add_process): Set the new process'es tdesc.
14333 * lynx-low.h (struct target_desc): Forward declare.
14334 (lynx_tdesc): Declare global.
14335 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14336 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14337 * nto-low.c (nto_tdesc): New global.
14338 (do_attach): Set the new process'es tdesc.
14339 * nto-low.h (struct target_desc): Forward declare.
14340 (nto_tdesc): Declare.
14341 * nto-x86-low.c (tdesc_i386): Declare.
14342 (nto_x86_arch_setup): Set `nto_tdesc'.
14344 2013-06-04 Gary Benson <gbenson@redhat.com>
14346 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14347 to qSupported response when appropriate.
14348 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14349 with nonzero-length annex.
14350 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14351 arguments supplied in annex.
14353 2013-05-31 Doug Evans <dje@google.com>
14356 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14357 64 bits in 64-cross-32 environment.
14359 2013-05-28 Pedro Alves <palves@redhat.com>
14361 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14362 (aarch64-without-fpu.c): Delete rule.
14363 * configure.srv (aarch64*-*-linux*): Remove references to
14364 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14365 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14368 2013-05-24 Pedro Alves <palves@redhat.com>
14370 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14371 instead of strchr/decode_address. Error if the range isn't split
14372 with a ','. Don't assume there's be a ':' in the action.
14374 2013-05-23 Yao Qi <yao@codesourcery.com>
14375 Pedro Alves <palves@redhat.com>
14377 * linux-low.c (lwp_in_step_range): New function.
14378 (linux_wait_1): If the thread was range stepping and stopped
14379 outside the stepping range, report the stop to GDB. Otherwise,
14380 continue stepping. Add range stepping debug output.
14381 (linux_set_resume_request): Copy the step range from the resume
14382 request to the lwp.
14383 (linux_supports_range_stepping): New.
14384 (linux_target_ops) <supports_range_stepping>: Set to
14385 linux_supports_range_stepping.
14386 * linux-low.h (struct linux_target_ops)
14387 <supports_range_stepping>: New field.
14388 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14389 * linux-x86-low.c (x86_supports_range_stepping): New.
14390 (the_low_target) <supports_range_stepping>: Set to
14391 x86_supports_range_stepping.
14392 * server.c (handle_v_cont): Handle 'r' action.
14393 (handle_v_requests): Append ";r" if the target supports range
14395 * target.h (struct thread_resume) <step_range_start,
14396 step_range_end>: New fields.
14397 (struct target_ops) <supports_range_stepping>:
14399 (target_supports_range_stepping): New macro.
14401 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14403 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14404 confusion in comment.
14406 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14408 * lynx-low.c (struct process_info_private): New type.
14409 (lynx_add_process): New function.
14410 (lynx_create_inferior, lynx_attach): Replace calls to
14411 add_process by calls to lynx_add_process.
14412 (lynx_resume): If PTID is null, then try using
14413 current_process()->private->last_wait_event_ptid.
14415 (lynx_clear_inferiors): Delete. The contents of that function
14416 has been inlined in lynx_mourn;
14417 (lynx_wait_1): Save the ptid in the process's private data.
14418 (lynx_mourn): Free the process' private data. Replace call
14419 to lynx_clear_inferiors by call to clear_inferiors.
14421 2013-05-17 Yao Qi <yao@codesourcery.com>
14423 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14426 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14428 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14429 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14430 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14431 PT_TEXT_END_ADDR guards. Update comments.
14432 (linux_target_op) <read_offsets>: Conditionally define to
14433 linux_read_offsets if the target is UCLIBC and if it defines
14434 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14436 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14437 Andrew Jenner <andrew@codesourcery.com>
14439 * Makefile.in (SFILES): Add linux-nios2-low.c.
14440 (clean): Add action to delete nios2-linux.c.
14441 (nios2-linux.c): New rule.
14442 * configure.srv: Add nios2*-*-linux*.
14443 * linux-nios2-low.c: New.
14445 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14447 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14449 2013-04-25 Hui Zhu <hui@codesourcery.com>
14452 * ax.c (ax_printf): Add fflush.
14454 2013-04-22 Tom Tromey <tromey@redhat.com>
14456 * Makefile.in (SFILES): Add filestuff.c.
14457 (OBS): Add filestuff.o.
14458 (filestuff.o): New target.
14459 * config.in, configure: Rebuild.
14460 * configure.ac: Check for fdwalk, pipe2.
14462 2013-04-17 Pedro Alves <palves@redhat.com>
14464 * configure.ac (USE_THREAD_DB): Delete variable.
14465 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14466 Don't AC_SUBST USE_THREAD_DB.
14467 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14468 * config.in, configure: Regenerate.
14470 2013-04-16 Pedro Alves <palves@redhat.com>
14472 * linux-low.h (struct lwp_info) <thread_known>: Move under
14473 the USE_THREAD_DB #ifdef.
14475 2013-04-16 Pedro Alves <palves@redhat.com>
14477 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14478 (linux-low.o): Delete rule.
14479 * linux-low.h: Always include "gdb_thread_db.h" instead of
14480 conditionally including thread_db.h.
14481 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14484 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14486 * Makefile.in (install-only): Fix make install regression.
14488 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14490 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14491 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14493 * gdbserver.1: Remove.
14495 2013-03-22 Pedro Alves <palves@redhat.com>
14497 * linux-low.c (handle_extended_wait): Don't call
14498 linux_enable_event_reporting.
14500 2013-03-15 Tony Theodore <tonyt@logyst.com>
14503 * Makefile.in (SHELL): Use @SHELL@.
14505 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14507 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14510 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14512 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14513 Remove extraneous NULL element.
14515 2013-03-13 Yao Qi <yao@codesourcery.com>
14517 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14518 'V' block in trace frame.
14520 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14522 * target.h (struct target_ops): Add btrace ops.
14523 (target_supports_btrace): New macro.
14524 (target_enable_btrace): New macro.
14525 (target_disable_btrace): New macro.
14526 (target_read_btrace): New macro.
14527 * gdbthread.h (struct thread_info): Add btrace field.
14528 * server.c: Include btrace-common.h.
14529 (handle_btrace_general_set): New function.
14530 (handle_btrace_enable): New function.
14531 (handle_btrace_disable): New function.
14532 (handle_general_set): Call handle_btrace_general_set.
14533 (handle_qxfer_btrace): New function.
14534 (struct qxfer qxfer_packets[]): Add btrace entry.
14535 * inferiors.c (remove_thread): Disable btrace.
14536 * linux-low: Include linux-btrace.h.
14537 (linux_low_enable_btrace): New function.
14538 (linux_low_read_btrace): New function.
14539 (linux_target_ops): Add btrace ops.
14540 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14541 Add srv_linux_btrace=yes.
14542 (x86_64-*-linux*): Add linux-btrace.o.
14543 Add srv_linux_btrace=yes.
14544 * configure.ac: Define HAVE_LINUX_BTRACE.
14545 * config.in: Regenerated.
14546 * configure: Regenerated.
14548 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14550 * server.c (handle_qxfer): Preserve error message if -3 is
14552 (qxfer): Document the -3 return value.
14554 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14556 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14557 (linux_btrace_h): New variable.
14558 (linux-btrace.o): New rule.
14560 2013-03-08 Stan Shebs <stan@codesourcery.com>
14561 Hafiz Abid Qadeer <abidh@codesourcery.com>
14563 * tracepoint.c (trace_buffer_size): New global.
14564 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14565 (init_trace_buffer): Change to one-argument function. Allocate
14566 trace buffer memory.
14567 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14568 handle QTBuffer:size packet.
14569 (cmd_bigqtbuffer_size): New function.
14570 (initialize_tracepoint): Call init_trace_buffer with
14571 DEFAULT_TRACE_BUFFER_SIZE.
14572 * server.c (handle_query): Add QTBuffer:size in the
14575 2013-03-07 Yao Qi <yao@codesourcery.com>
14577 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14578 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14580 (cmd_qtsp): Adjust condition. Do post increment.
14581 Set cur_action and cur_step_action back to 0.
14583 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14586 * linux-low.c (linux_write_memory): Return early success if LEN is
14589 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14591 * configure.srv: Add x86_64-*-cygwin* as target.
14593 2013-02-28 Tom Tromey <tromey@redhat.com>
14595 * configure.ac: Invoke AC_SYS_LARGEFILE.
14596 * configure, config.in: Rebuild.
14598 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14600 * win32-low.c: Throughout, fix format strings and casts of
14601 printf-like functions to avoid type related warnings on all
14603 (get_child_debug_event): Print dwDebugEventCode as hex since
14604 that's how it's usually documented.
14606 2013-02-28 Yao Qi <yao@codesourcery.com>
14608 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14611 2013-02-27 Jiong Wang <jiwang@tilera.com>
14613 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14614 (reg-tilegx32.c): New rule.
14615 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14616 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14617 different register info initializer according to elf class.
14618 (init_registers_tilgx32): New function. The tilegx32 register info
14620 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14621 (tile_store_gregset): Likewise.
14623 2013-02-27 Yao Qi <yao@codesourcery.com>
14625 * server.c (process_point_options): Print debug message when
14626 debug_threads is true.
14628 2013-02-26 Yao Qi <yao@codesourcery.com>
14630 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14632 2013-02-19 Pedro Alves <palves@redhat.com>
14633 Kai Tietz <ktietz@redhat.com>
14637 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14638 instead of strtoul to extract address from packet.
14639 (process_serial_event) <'z'>: Likewise.
14641 2013-02-18 Yao Qi <yao@codesourcery.com>
14643 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14645 2013-02-14 Pedro Alves <palves@redhat.com>
14649 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14650 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14652 2013-02-14 Pedro Alves <palves@redhat.com>
14654 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14656 2013-02-14 Pedro Alves <palves@redhat.com>
14658 * tracepoint.c (save_string): Delete.
14659 (add_tracepoint_action): Use savestring instead of save_string.
14661 2013-02-12 Pedro Alves <palves@redhat.com>
14663 * linux-xtensa-low.c: Ditto.
14664 * xtensa-xtregs.c: Ditto.
14666 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14668 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14671 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14673 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14674 aarch64_num_wp_regs and aarch64_num_bp_regs to
14675 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14677 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14679 * linux-aarch64-low.c (ps_get_thread_area): Replace
14680 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14682 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14683 Marcus Shawcroft <marcus.shawcroft@arm.com>
14684 Nigel Stephens <nigel.stephens@arm.com>
14685 Yufeng Zhang <yufeng.zhang@arm.com>
14687 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14688 (aarch64.c, aarch64-without-fpu.c): New targets.
14689 * configure.srv (aarch64*-*-linux*): New.
14690 * linux-aarch64-low.c: New file.
14692 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14694 * linux-low.c (handle_extended_wait, linux_create_inferior)
14695 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14696 (dequeue_one_deferred_signal, linux_resume_one_thread)
14697 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14698 (linux_tracefork_grandchild, linux_test_for_tracefork)
14699 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14700 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14701 where the argument is 0.
14703 2013-01-25 Yao Qi <yao@codesourcery.com>
14705 * event-loop.c: Include "queue.h".
14706 (gdb_event_p): New typedef.
14707 (struct gdb_event) <next_event>: Remove.
14708 (event_queue): Change to QUEUE(gdb_event_p).
14709 (async_queue_event): Remove.
14710 (gdb_event_xfree): New.
14711 (initialize_event_loop): New.
14712 (process_event): Use API from QUEUE.
14713 (wait_for_event): Likewise.
14714 * server.c (main): Call initialize_event_loop.
14715 * server.h (initialize_event_loop): Declare.
14717 2013-01-18 Yao Qi <yao@codesourcery.com>
14719 * ax.h (struct eval_agent_expr_context): New.
14720 (gdb_eval_agent_expr): Update declaration.
14721 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14722 TFRAME. Add new argument CTX.
14723 * server.h (struct eval_agent_expr_context): Declare.
14724 (agent_mem_read, agent_tsv_read): Update declaration.
14725 (agent_mem_read_string): Likewise.
14726 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14727 (add_traceframe_block): Add new argument TPOINT.
14728 Increase TPOINT->traceframe_usage.
14729 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14730 eval_tracepoint_agent_expr.
14731 (condition_true_at_tracepoint): Likewise.
14732 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14733 (agent_mem_read_string, agent_tsv_read): Likewise.
14735 2013-01-16 Yao Qi <yao@codesourcery.com>
14737 * linux-low.c (linux_resume_one_lwp): Don't check
14738 'lwp->bp_reinsert != 0'.
14740 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14741 Pedro Alves <palves@redhat.com>
14743 * lynx-low.c (ptrace_request_to_str): Define a temporary
14744 macro and use it to simplify this function's implementation.
14746 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14748 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14751 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14753 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14755 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14757 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14759 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14761 * lynx-low.c (lynx_resume): Use the resume_info parameter
14762 to determine the ptid for the lynx_ptrace call, unless
14763 it is equal to minus_one_ptid, in which case we use the
14764 ptid of the current_inferior.
14765 (lynx_wait_1): After having received a thread create/exit
14766 event, resume the inferior's execution using the signaling
14767 thread's ptid, rather than the old ptid.
14769 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14771 * lynx-low.c (lynx_resume): Delete variable ret.
14773 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14775 * gdbreplay.c (gdbreplay_version): Update copyright year.
14776 * server.c (gdbserver_version): Likewise.
14778 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14780 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14783 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14785 * lynx-low.c (ptrace_request_to_str): Add handling for
14786 PTRACE_GETTRACESIG.
14788 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14790 * lynx-low.c (lynx_attach): Delete variable new_process.
14792 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14794 * lynx-low.c (lynx_create_inferior): Delete variable
14797 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14799 * lynx-low.c (ptrace_request_to_str): Do not handle
14800 PTRACE_GETTHREADLIST if this macro does not exist.
14802 2012-12-15 Yao Qi <yao@codesourcery.com>
14804 * Makefile.in (OBS): Add notif.o.
14805 * notif.c, notif.h: New.
14806 * server.c: Include "notif.h".
14807 (struct vstop_notif) <next>: Remove.
14809 (queue_stop_reply): Update.
14810 (push_event, send_next_stop_reply): Remove.
14811 (discard_queued_stop_replies): Update.
14812 (notif_stop): New variable.
14813 (handle_v_stopped): Remove.
14814 (handle_v_requests): Don't call handle_v_stopped. Call
14815 handle_ack_notif instead.
14816 (queue_stop_reply_callback): Call notif_event_enque instead
14817 of queue_stop_reply.
14818 (handle_status): Don't call send_next_stop_reply, call
14819 notif_write_event instead.
14820 (kill_inferior_callback): Likewise.
14821 (detach_or_kill_inferior_callback): Likewise.
14822 (main): Call initialize_notif.
14823 (process_serial_event): Call QUEUE_is_empty.
14824 (handle_target_event): Call notif_push instead of push event.
14825 * server.h (push_event): Remove declaration.
14827 2012-12-10 Tom Tromey <tromey@redhat.com>
14829 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14830 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14833 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14834 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14835 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14836 (amd64-linux-ipa.o, ax.o): Rewrite.
14837 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14838 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14839 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14840 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14841 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14842 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14843 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14844 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14845 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14846 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14847 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14848 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14849 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14850 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14851 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14852 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14853 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14854 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14855 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14856 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14857 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14858 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14859 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14860 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14861 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14862 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14863 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14864 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14865 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14866 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14867 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14868 (reg-tilegx.o): Remove.
14869 (all_object_files): New macro.
14870 Include .deps files.
14871 * aclocal.m4, configure: Rebuild.
14872 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14873 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14874 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14876 2012-12-05 Tom Tromey <tromey@redhat.com>
14879 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14881 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14883 * configure.ac: Check for linux/perf_event.h.
14884 * config.in: Regenerated.
14885 * configure: Regenerated.
14887 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14889 * hostio.c (handle_readlink): Decrease buffer size
14890 parameter passed to readlink by one byte.
14892 2012-11-26 Yao Qi <yao@codesourcery.com>
14894 * configure.ac (build_warnings): Append '-Wempty-body'.
14895 * configure: Regenerated.
14896 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14899 2012-11-15 Pierre Muller <muller@sourceware.org>
14901 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14902 * config.in: Regenerate.
14903 * configure: Regenerate.
14904 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14905 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14906 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14907 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14909 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14910 instead of <sys/wait.h> header.
14911 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14913 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14915 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14916 (various make rules): Remove -DGDBSERVER
14918 2012-11-09 Yao Qi <yao@codesourcery.com>
14920 * spu-low.c (current_ptid): Move it to ..
14921 * gdbthread.h: ... here. New.
14922 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14923 * server.c (myresume, process_serial_event): Likewise.
14924 * thread-db.c (thread_db_find_new_threads): Likewise.
14925 * tracepoint.c (run_inferior_command): Likewise.
14927 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14929 * server.c (handle_search_memory_1): Include access length in
14932 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14934 * linux-crisv32-low.c: Fix compile errors.
14936 2012-09-04 Yao Qi <yao@codesourcery.com>
14938 * tracepoint.c (cmd_qtsv): Adjust debug message.
14939 Don't check CUR_TPOINT.
14941 2012-08-28 Yao Qi <yao@codesourcery.com>
14943 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14944 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14945 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14946 Remove declarations of xmalloc, xreallloc, xstrdup and
14948 * Makefile.in (libiberty_h): New.
14949 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14950 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14952 2012-08-23 Yao Qi <yao@codesourcery.com>
14954 * server.h: Remove declaration of 'xsnprintf'.
14956 2012-08-22 Keith Seitz <keiths@redhat.com>
14958 * server.h: Include build-gnulib-gbserver/config.h.
14959 * gdbreplay.c: Likewise.
14961 2012-08-08 Doug Evans <dje@google.com>
14963 * Makefile.in (SFILES): Add gdb_vecs.c.
14964 (OBS): Add gdb_vecs.o.
14965 (gdb_vecs_h, host_defs_h): New variables.
14966 (thread-db.o): Add $(gdb_vecs_h) dependency.
14967 (gdb_vecs.o): New rule.
14968 * thread-db.c: #include "gdb_vecs.h".
14969 (thread_db_load_search): Use a vector to iterate over path elements.
14970 Handle text appearing after "$pdir".
14972 * configure.ac: Add check for strstr.
14973 * config.in: Regenerate.
14974 * configure: Regenerate.
14976 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14978 * hostio.c (handle_pread): If pread fails, fall back to attempting
14980 (handle_pwrite): Likewise for pwrite.
14982 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14984 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14985 between unsupported TYPE and unimplementable ADDR/LEN combination.
14986 (arm_insert_point): Act on new return value.
14988 2012-07-31 Pedro Alves <palves@redhat.com>
14990 * server.c (process_point_options): Only skip tokens if we find
14991 one that is unrecognized. Don't treat 'X' specially while
14992 skipping unrecognized tokens.
14994 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14996 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14997 to 4-byte-align HW breakpoint addresses for Thumb.
14999 2012-07-27 Yao Qi <yao@codesourcery.com>
15003 * server.h: Declare gdb_agent_about_to_close.
15004 * target.c (kill_inferior): Include "agent.h".
15005 New. Send command 'kill'.
15006 * target.h (kill_inferior): Removed macro.
15007 * tracepoint.c (gdb_agent_about_to_close): New.
15008 (gdb_agent_helper_thread): Handle command 'close'.
15009 Wait endlessly until the inferior stops.
15010 Install gdb_agent_remove_socket to atexit hook.
15011 (agent_socket_name): New static variable.
15012 (gdb_agent_socket_init): Replace local variable 'name' with
15013 'agent_socket_name'.
15014 (gdb_agent_remove_socket): New.
15016 2012-07-27 Yao Qi <yao@codesourcery.com>
15018 * server.c (process_point_options): Stop at 'X' when parsing.
15020 2012-07-19 Michael Eager <eager@eagercon.com>
15022 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15024 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15025 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15026 hardware breakpoint.
15028 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15030 * gdbserver/linux-low.c (initialize_low): Call
15031 linux_ptrace_init_warnings.
15033 2012-07-02 Doug Evans <dje@google.com>
15035 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15038 2012-07-02 Stan Shebs <stan@codesourcery.com>
15040 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15041 (ax.o): Add it to build rule.
15043 (OBS): Add format.o.
15044 (IPA_OBS): Add format.o.
15045 * server.c (handle_query): Claim support for breakpoint commands.
15046 (process_point_options): Add command case.
15047 (process_serial_event): Leave running if there are printfs in
15049 * mem-break.h (any_persistent_commands): Declare.
15050 (add_breakpoint_commands): Declare.
15051 (gdb_no_commands_at_breakpoint): Declare.
15052 (run_breakpoint_commands): Declare.
15053 * mem-break.c (struct point_command_list): New struct.
15054 (struct breakpoint): New field command_list.
15055 (any_persistent_commands): New function.
15056 (add_commands_to_breakpoint): New function.
15057 (add_breakpoint_commands): New function.
15058 (gdb_no_commands_at_breakpoint): New function.
15059 (run_breakpoint_commands): New function.
15060 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15062 * ax.c: Include format.h.
15063 (ax_printf): New function.
15064 (gdb_eval_agent_expr): Add printf opcode.
15066 2012-06-13 Yao Qi <yao@codesourcery.com>
15068 * server.c (start_inferior): Remove duplicated writes to fields
15069 'last_resume_kind' and 'last_status' of 'current_inferior'.
15071 2012-06-12 Yao Qi <yao@codesourcery.com>
15072 Pedro Alves <palves@redhat.com>
15074 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15076 * server.c (handle_v_cont): Extend comment.
15078 2012-06-11 Yao Qi <yao@codesourcery.com>
15080 * linux-low.c (linux_attach): Add 'static'.
15082 2012-06-06 Yao Qi <yao@codesourcery.com>
15084 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15086 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15088 Fix gcc -flto compilation warning.
15089 * server.c (main): Make variable multi_mode and attach volatile.
15091 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15093 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15094 if the platform doesn't know about it.
15096 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15098 * Makefile.in (SFILES): Add linux-tile-low.c.
15099 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15100 * configure.srv: Handle tilegx-*-linux*.
15101 * linux-tile-low.c: New file.
15103 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15105 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15107 2012-05-24 Pedro Alves <palves@redhat.com>
15111 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15113 2012-05-24 Pedro Alves <palves@redhat.com>
15117 Replace target_signal with gdb_signal throughout.
15119 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15121 * linux-low.c (linux_store_registers): Avoid the copying sequence
15122 when no data has been retrieved by ptrace.
15124 2012-05-22 Will Deacon <will.deacon@arm.com>
15126 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15127 Include asm/ptrace.h.
15128 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15131 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15133 * linux-low.c (linux_store_registers): Don't re-retrieve data
15134 with ptrace that has already been obtained from /proc. Always
15135 copy any data retrieved with ptrace to the buffer supplied.
15137 2012-05-11 Yao Qi <yao@codesourcery.com>
15138 Pedro Alves <palves@redhat.com>
15140 * linux-low.c (enum stopping_threads_kind): New.
15141 (stopping_threads): Change type to `enum stopping_threads_kind'.
15142 (handle_extended_wait): If stopping and suspending threads, leave
15143 the new_lwp suspended too.
15144 (linux_wait_for_event): Adjust.
15145 (stop_all_lwps): Set `stopping_threads' to
15146 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15147 whether we're suspending threads or just stopping them. Assert no
15150 2012-04-29 Yao Qi <yao@codesourcery.com>
15152 * server.h: Move some code to ...
15153 * gdbthread.h: ... here. New.
15154 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15155 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15156 (nto-low.o, win32-low.o): Likewise.
15157 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15158 * regcache.c, remote-utils.c, server.c: Likewise.
15159 * target.c, tracepoint.c, win32-low.c: Likewise.
15161 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15163 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15164 (PTRACE_ARG4_TYPE): Likewise.
15165 (PTRACE_XFER_TYPE): Likewise.
15166 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15167 ptrace to PTRACE_ARG3_TYPE.
15168 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15169 (PTRACE_ARG4_TYPE): Likewise.
15170 (PTRACE_XFER_TYPE): Likewise.
15171 (linux_detach_one_lwp): Cast fourth argument of
15172 ptrace to long then PTRACE_ARG4_TYPE.
15173 (regsets_fetch_inferior_registers): Cast third argument of
15174 ptrace to long then PTRACE_ARG3_TYPE.
15175 (regsets_store_inferior_registers): Likewise.
15177 2012-04-20 Pedro Alves <palves@redhat.com>
15179 * configure: Regenerate.
15181 2012-04-19 Pedro Alves <palves@redhat.com>
15183 * Makefile.in (GNULIB_BUILDDIR): New.
15184 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15185 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15186 (all, install-only, uninstall, clean-info, all-lib, clean): No
15187 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15188 (maintainer-clean realclean distclean): Use subdir_do.
15190 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15191 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15192 * acinclude.m4: Include acx_configure_dir.m4.
15193 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15194 calls. Call AC_PROG_RANLIB. Configure gnulib using
15197 (GNULIB_STDINT_H): Adjust.
15198 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15199 * gdbreplay.c: Include build-gnulib/config.h.
15200 * server.h: Likewise.
15201 * aclocal.m4: Regenerate.
15202 * config.in: Regenerate.
15203 * configure: Regenerate.
15205 2012-04-19 Pedro Alves <palves@redhat.com>
15207 * Makefile.in (LIBGNU, INCGNU): Adjust.
15208 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15209 (all, install-only, uninstall, clean-info, all-lib, clean)
15210 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15211 * configure.ac: Adjust AC_OUTPUT output.
15212 * aclocal.m4: Regenerate.
15213 * configure: Regenerate.
15215 2012-04-19 Pedro Alves <palves@redhat.com>
15217 * Makefile.in (generated_files): New.
15218 (server_h): Remove the explicit dependency on config.h, and depend
15219 on $generated_files.
15221 2012-04-19 Pedro Alves <palves@redhat.com>
15223 * Makefile.in (INCGNU): Add -Ignulib.
15225 2012-04-19 Pedro Alves <palves@redhat.com>
15227 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15228 (INCGNU): ... this, and spell out -I here.
15229 (GNULIB_LIB): Rename to ...
15230 (LIBGNU): ... this.
15231 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15233 2012-04-19 Pedro Alves <palves@redhat.com>
15235 * config.in: Regenerate.
15237 2012-04-19 Pedro Alves <palves@redhat.com>
15239 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15240 * server.h (memmem): Remove declaration.
15241 * config.in: Regenerate.
15242 * configure: Regenerate.
15244 2012-04-19 Yao Qi <yao@codesourcery.com>
15246 * Makefile.in (SFILES): Add common/vec.c.
15250 2012-04-19 Yao Qi <yao@codesourcery.com>
15252 * remote-utils.c (prepare_resume_reply): Replace with macro
15253 target_core_of_thread.
15254 * server.c (handle_qxfer_threads_proper): Likewise.
15255 * target.h (traget_core_of_thread): New macro.
15257 2012-04-18 Pedro Alves <palves@redhat.com>
15259 * aclocal.m4: Regenerate.
15260 * configure: Regenerate.
15262 2012-04-16 Yao Qi <yao@codesourcery.com>
15264 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15265 duplicated on address.
15267 2012-04-16 Yao Qi <yao@codesourcery.com>
15269 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15270 (struct tracepoint_action_ops) <send>: New field.
15271 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15272 (agent_expr_send, x_tracepoint_action_send): New.
15273 (l_tracepoint_action_send): New.
15274 (cmd_qtdp): Download and install tracepoint
15275 according to `use_agent'.
15276 (run_inferior_command): Add one more parameter `len'.
15278 (tracepoint_send_agent): New.
15279 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15281 2012-04-16 Yao Qi <yao@codesourcery.com>
15283 * tracepoint.c (download_tracepoints): Moved to ...
15284 (cmd_qtstart): ... here.
15286 2012-04-14 Yao Qi <yao@codesourcery.com>
15288 * tracepoint.c: Include inttypes.h.
15289 (struct collect_memory_action): Use sized types.
15290 (struct tracepoint): Likewise.
15291 (cmd_qtdp, stop_tracing): Update print specifiers.
15292 (cmd_qtp, response_tracepoint): Likewise.
15293 (collect_data_at_tracepoint): Likewise.
15294 (collect_data_at_step): Likewise.
15296 2012-04-14 Yao Qi <yao@codesourcery.com>
15298 Import gnulib module inttypes.
15299 * aclocal.m4, config.in, configure: Regenerated.
15301 2012-04-14 Yao Qi <yao@codesourcery.com>
15303 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15304 Makefile and config.status at last.
15306 2012-04-13 Yao Qi <yao@codesourcery.com>
15308 * tracepoint.c: Include stdint.h unconditionally.
15310 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15312 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15313 on BFD_HAVE_SYS_PROCFS_TYPE.
15314 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15315 * configure: Regenerate.
15316 * config.in: Likewise.
15318 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15320 * Makefile.in (clean): Also remove x32.c x32-linux.c
15321 x32-avx.c x32-avx-linux.c.
15322 (x32.o): New target.
15324 (x32-linux.o): Likewise.
15325 (x32-linux.c): Likewise.
15326 (x32-avx.o): Likewise.
15327 (x32-avx.c): Likewise.
15328 (x32-avx-linux.o): Likewise.
15329 (x32-avx-linux.c): Likewise.
15331 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15332 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15333 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15334 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15335 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15336 i386/x32-avx-linux.xml.
15338 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15339 (init_registers_x32_avx_linux): Likwise.
15340 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15341 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15343 2012-04-13 Pedro Alves <palves@redhat.com>
15345 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15346 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15347 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15348 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15351 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15353 * linux-x86-low.c (compat_x32_clock_t): New.
15354 (compat_x32_siginfo_t): Likewise.
15355 (compat_x32_siginfo_from_siginfo): Likewise.
15356 (siginfo_from_compat_x32_siginfo): Likewise.
15357 (linux_is_elf64): Likewise.
15358 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15359 and siginfo_from_compat_x32_siginfo for x32.
15360 (x86_arch_setup): Set linux_is_elf64.
15362 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15365 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15367 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15368 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15369 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15370 compatible with process.
15372 2012-04-12 Yao Qi <yao@codesourcery.com>
15374 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15375 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15376 (install-only, install-info, clean): Handle sub dir gnulib.
15377 (all-lib, am--refresh): New targets.
15378 (memmem.o): Remove target.
15379 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15380 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15381 (AC_REPLACE_FUNCS): Remove memmem.
15382 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15383 (AC_OUTPUT): Generate Makefile in gnulib/.
15384 * aclocal.m4, config.in, configure: Regenerated.
15386 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15388 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15390 2012-04-05 Pedro Alves <palves@redhat.com>
15392 -Werror=strict-aliasing
15394 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15397 2012-04-04 Pedro Alves <palves@redhat.com>
15399 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15400 (sparc_store_gregset_from_stack, sparc_store_gregset)
15401 (sparc_breakpoint_at): Fix formatting.
15403 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15405 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15407 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15408 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15409 * config.in: Regenerate.
15410 * configure: Likewise.
15412 2012-03-29 Pedro Alves <palves@redhat.com>
15414 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15415 Correct ptrace arguments.
15417 2012-03-28 Pedro Alves <palves@redhat.com>
15419 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15420 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15421 (IA64_FR1_REGNUM): New defines.
15422 (ia64_fetch_register): New.
15423 (the_low_target): Install it.
15424 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15426 * linux-low.c (linux_fetch_registers): Try the
15427 the_low_target.fetch_register hook first.
15429 * linux-arm-low.c (the_low_target): Adjust.
15430 * linux-bfin-low.c (the_low_target): Adjust.
15431 * linux-cris-low.c (the_low_target): Adjust.
15432 * linux-crisv32-low.c (the_low_target): Adjust.
15433 * linux-m32r-low.c (the_low_target): Adjust.
15434 * linux-m68k-low.c (the_low_target): Adjust.
15435 * linux-mips-low.c (the_low_target): Adjust.
15436 * linux-ppc-low.c (the_low_target): Adjust.
15437 * linux-s390-low.c (the_low_target): Adjust.
15438 * linux-sh-low.c (the_low_target): Adjust.
15439 * linux-sparc-low.c (the_low_target): Adjust.
15440 * linux-tic6x-low.c (the_low_target): Adjust.
15441 * linux-x86-low.c (the_low_target): Adjust.
15442 * linux-xtensa-low.c (the_low_target): Adjust.
15444 2012-03-26 Pedro Alves <palves@redhat.com>
15446 * server.c (handle_qxfer_libraries): Don't bail early if
15447 the_target->qxfer_libraries_svr4 is not NULL.
15449 2012-03-26 Pedro Alves <palves@redhat.com>
15451 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15453 2012-03-23 Pedro Alves <palves@redhat.com>
15455 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15456 "library-list-svr4" element's start tag when the the DSO list is
15459 2012-03-23 Pedro Alves <palves@redhat.com>
15461 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15462 a variable whose type size is the same as the inferior's pointer
15465 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15467 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15469 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15470 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15471 * linux-low.h: Include <signal.h>.
15472 (struct siginfo): Remove forward declaration.
15473 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15476 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15478 * .gitignore: Ignore more files.
15480 2012-03-19 Pedro Alves <palves@redhat.com>
15481 Jan Kratochvil <jan.kratochvil@redhat.com>
15483 * server.c (cont_thread, general_thread): Add describing comments.
15484 (start_inferior): Clear `cont_thread'.
15485 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15488 2012-03-15 Yao Qi <yao@codesourcery.com>
15490 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15492 (cmd_qtdp): ... here.
15494 2012-03-15 Yao Qi <yao@codesourcery.com>
15496 * tracepoint.c (struct tracepoint_action_ops): New.
15497 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15498 (m_tracepoint_action_download): New.
15499 (r_tracepoint_action_download): New.
15500 (x_tracepoint_action_download): New.
15501 (l_tracepoint_action_download): New.
15502 (add_tracepoint_action): Install `action->ops' according type.
15503 (download_tracepoint_1): Move code `download' function pointer
15504 of various tracepoint_action_ops.
15506 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15508 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15509 linux_ptrace_attach_warnings.
15511 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15513 * Makefile.in (linux-ptrace.o): New.
15514 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15515 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15516 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15517 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15518 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15520 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15522 2012-03-08 Yao Qi <yao@codesourcery.com>
15523 Pedro Alves <palves@redhat.com>
15525 Fix PR server/13392.
15526 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15527 offset of JMP insn.
15528 * tracepoint.c (remove_tracepoint): New.
15529 (cmd_qtdp): Call remove_tracepoint when failed to install.
15531 2012-03-07 Pedro Alves <palves@redhat.com>
15533 * linux-low.c (get_detach_signal): New.
15534 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15535 Pass on pending signals to PTRACE_DETACH. Check the result of the
15537 * server.c (program_signals, program_signals_p): New.
15538 (handle_general_set): Handle QProgramSignals.
15539 * server.h (program_signals, program_signals_p): Declare.
15541 2012-03-05 Pedro Alves <palves@redhat.com>
15542 Jan Kratochvil <jan.kratochvil@redhat.com>
15544 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15547 2012-03-03 Yao Qi <yao@codesourcery.com>
15549 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15550 agent_look_up_symbols.
15552 2012-03-03 Yao Qi <yao@codesourcery.com>
15554 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15555 (linux-x86-low.o): Likewise.
15556 * server.h: Remove in_process_agent_loaded.
15557 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15561 2012-03-03 Yao Qi <yao@codesourcery.com>
15563 * tracepoint.c (gdb_agent_capability): New global.
15564 (in_process_agent_loaded_ust): Renamed to
15565 `in_process_agent_supports_ust'.
15567 (in_process_agent_supports_ust): Call agent_capability_check.
15568 (clear_installed_tracepoints): Assert that agent supports
15571 2012-03-03 Yao Qi <yao@codesourcery.com>
15573 * linux-low.c (linux_supports_agent): New.
15574 (linux_target_ops): Initialize field `supports_agent' with
15575 linux_supports_agent.
15576 * target.h (struct target_ops) <supports_agent>: New.
15577 (target_supports_agent): New macro.
15578 * server.c (handle_general_set): Handle packet 'QAgent'.
15579 (handle_query): Send `QAgent+'.
15580 * Makefile.in (server.o): Depends on agent.h.
15582 2012-03-03 Yao Qi <yao@codesourcery.com>
15584 * Makefile.in (OBS): Add agent.o.
15585 Add new rule for agent.o.
15586 Track dependence of tracepoint.c on agent.h.
15587 * tracepoint.c (run_inferior_command_1):
15588 (run_inferior_command): Call agent_run_command.
15589 (gdb_ust_connect_sync_socket): Deleted. Move it to
15591 (resume_thread, stop_thread): Likewise.
15592 (gdb_ust_socket_init): Renamed to ...
15593 (gdb_agent_socket_init): ... New.
15594 (gdb_ust_thread): Renamed to ...
15595 (gdb_agent_helper_thread): ... New.
15596 (gdb_ust_init): Move some code to ...
15597 (gdb_agent_init): ... here. New.
15598 [HAVE_UST]: Call gdb_ust_init.
15599 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15600 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15601 * config.in, configure: Regenerated.
15603 2012-03-02 Pedro Alves <palves@redhat.com>
15605 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15606 * linux-low.c (struct simple_pid_list): New.
15607 (stopped_pids): New a struct simple_pid_list pointer.
15608 (add_to_pid_list, pull_pid_from_list): New.
15609 (handle_extended_wait): Don't assume the first signal new children
15610 report is SIGSTOP. Adjust call to pull_pid_from_list.
15611 (linux_wait_for_lwp): Adjust.
15613 2012-03-02 Yao Qi <yao@codesourcery.com>
15615 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15618 2012-03-02 Yao Qi <yao@codesourcery.com>
15620 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15621 `stop_pc' and `tpoint'. Update caller.
15623 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15625 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15626 * linux-low.c (use_linux_regsets): New macro.
15627 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15628 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15629 (linux_register_in_regsets): New function.
15630 (usr_fetch_inferior_registers): Skip registers covered by
15632 (usr_store_inferior_registers): Likewise.
15633 (usr_fetch_inferior_registers): New macro.
15634 (usr_store_inferior_registers): Likewise.
15635 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15636 (linux_store_registers): Likewise.
15637 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15639 (init_registers_mips64_dsp_linux): Likewise.
15640 (init_registers_mips_linux): New macro.
15641 (init_registers_mips_dsp_linux): Likewise.
15642 (mips_dsp_num_regs): Likewise.
15643 (DSP_BASE, DSP_CONTROL): New fallback macros.
15644 (mips_base_regs): New macro.
15645 (mips_regmap): Use it. Fix the size.
15646 (mips_dsp_regmap): New variable.
15647 (mips_dsp_regset_bitmap): Likewise.
15648 (mips_arch_setup): New function.
15649 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15651 (mips_cannot_store_register): Likewise.
15652 (the_low_target): Update .arch_setup, .num_regs and .regmap
15653 initializers. Add .regset_bitmap initializer.
15654 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15656 * linux-bfin-low.c (the_low_target): Likewise.
15657 * linux-cris-low.c (the_low_target): Likewise.
15658 * linux-crisv32-low.c (the_low_target): Likewise.
15659 * linux-ia64-low.c (the_low_target): Likewise.
15660 * linux-m32r-low.c (the_low_target): Likewise.
15661 * linux-m68k-low.c (the_low_target): Likewise.
15662 * linux-ppc-low.c (the_low_target): Likewise.
15663 * linux-s390-low.c (the_low_target): Likewise.
15664 * linux-sh-low.c (the_low_target): Likewise.
15665 * linux-sparc-low.c (the_low_target): Likewise.
15666 * linux-tic6x-low.c (the_low_target): Likewise.
15667 * linux-x86-low.c (the_low_target): Likewise.
15668 * linux-xtensa-low.c (the_low_target): Likewise.
15669 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15670 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15671 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15673 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15674 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15676 2012-02-29 Yao Qi <yao@codesourcery.com>
15677 Pedro Alves <palves@redhat.com>
15679 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15680 `step_over_finished' is true.
15682 2012-02-27 Pedro Alves <palves@redhat.com>
15684 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15685 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15687 2012-02-27 Pedro Alves <palves@redhat.com>
15690 * linux-low.c (pid_is_stopped): New.
15691 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15693 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15695 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15698 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15700 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15702 2012-02-24 Luis Machado <lgustavo@codesourcery>
15704 * server.c (handle_query): Advertise support for target-side
15705 breakpoint condition evaluation.
15706 (process_point_options): New function.
15707 (process_serial_event): When inserting a breakpoint, check for
15708 a target-side condition that should be evaluated.
15710 * mem-break.c: Include regcache.h and ax.h.
15711 (point_cond_list_t): New data structure.
15712 (breakpoint) <cond_list>: New field.
15713 (find_gdb_breakpoint_at): Make non-static.
15714 (delete_gdb_breakpoint_at): Clear any target-side
15716 (clear_gdb_breakpoint_conditions): New function.
15717 (add_condition_to_breakpoint): Likewise.
15718 (add_breakpoint_condition): Likewise.
15719 (gdb_condition_true_at_breakpoint): Likewise.
15720 (gdb_breakpoint_here): Return result directly instead
15721 of going through a local variable.
15723 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15724 (clear_gdb_breakpoint_conditions): Likewise.
15725 (add_breakpoint_condition): Likewise.
15726 (gdb_condition_true_at_breakpoint): Likewise.
15728 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15729 (need_step_over_p): Take target-side breakpoint condition into
15732 2012-02-24 Luis Machado <lgustavo@codesourcery>
15734 * server.h: Include tracepoint.h.
15735 (agent_mem_read, agent_get_trace_state_variable_value,
15736 agent_set_trace_state_variable_value,
15737 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15738 get_set_tsv_func_addr): New prototypes.
15740 * ax.h: New include file.
15741 * ax.c: New source file.
15743 * tracepoint.c: Include ax.h.
15744 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15745 agent_expr, eval_result_type): Move to ax.h.
15746 (parse_agent_expr): Rename to ...
15747 (gdb_parse_agent_expr): ... this, make it non-static and move
15749 (unparse_agent_expr) Rename to ...
15750 (gdb_unparse_agent_expr): ... this, make it non-static and move
15752 (eval_agent_expr): Rename to ...
15753 (eval_tracepoint_agent_expr): ... this.
15754 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15755 forward declarations.
15756 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15757 (agent_get_trace_state_variable_value): New function.
15758 (agent_set_trace_state_variable_value): New function.
15759 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15760 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15761 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15762 (condition_true_at_tracepoint): Likewise.
15763 (parse_agent_expr): Rename to ...
15764 (gdb_parse_agent_expr): ... this and move to ax.c.
15765 (unparse_agent_expr): Rename to ...
15766 (gdb_unparse_agent_expr): ... this and move to ax.c.
15767 (gdb_agent_op_name): Move to ax.c.
15768 (eval_agent_expr): Rename to ...
15769 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15771 (eval_tracepoint_agent_expr): New function.
15772 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15774 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15776 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15777 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15778 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15779 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15780 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15781 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15782 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15783 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15784 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15785 (compile_bytecodes): Remove forward declaration.
15786 (is_goto_target): Move to ax.c.
15787 (compile_bytecodes): Move to ax.c and call
15788 agent_get_trace_state_variable_value (...) and
15789 agent_set_trace_state_variable_value (...).
15791 * Makefile.in: Update ax.c and IPA dependencies.
15793 2012-02-24 Pedro Alves <palves@redhat.com>
15795 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15796 (cmd_bigqtbuffer_circular): ... this. Only handle
15797 'QTBuffer:circular:'.
15798 (handle_tracepoint_general_set): Adjust.
15800 2012-02-16 Yao Qi <yao@codesourcery.com>
15802 * inferiors.c: Move code to ...
15803 * dll.c: .... here. New.
15804 * server.h: Declare clear_dlls.
15805 * Makefile.in (SFILES): Add dll.c.
15809 2012-02-11 Yao Qi <yao@codesourcery.com>
15811 * server.c: (handle_monitor_command): Add a new parameter
15813 (handle_query): Update caller.
15815 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15817 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15818 * configure, config.in: Regenerate.
15819 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15822 2012-02-02 Pedro Alves <palves@redhat.com>
15824 Try SIGKILL first, then PTRACE_KILL.
15825 * linux-low.c (linux_kill_one_lwp): New.
15826 (linux_kill_one_lwp): Rename to ...
15827 (kill_one_lwp_callback): ... this. Use the new
15828 linux_kill_one_lwp.
15830 2012-02-02 Pedro Alves <palves@redhat.com>
15832 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15835 2012-01-27 Pedro Alves <palves@redhat.com>
15837 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15838 (elf_64_file_p): Make static.
15839 (linux_pid_exe_is_elf_64_file): New.
15840 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15841 Delete declarations.
15842 (linux_pid_exe_is_elf_64_file): Declare.
15843 * linux-x86-low.c (x86_arch_setup): Use
15844 linux_pid_exe_is_elf_64_file.
15846 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15848 * linux-low.c (linux_wait_for_event_1): Rename to ...
15849 (linux_wait_for_event): ... here and merge it with former
15850 linux_wait_for_event - new variable wait_ptid, use it.
15851 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15853 2012-01-23 Pedro Alves <palves@redhat.com>
15855 * server.c (main): Avoid yet another case of infinite loop while
15856 detaching/killing after a longjmp.
15858 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15861 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15863 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15865 * hostio.c (handle_readlink): New function.
15866 (handle_vFile): Call it to handle "vFile:readlink" packets.
15868 2012-01-20 Pedro Alves <palves@redhat.com>
15869 Ulrich Weigand <ulrich.weigand@linaro.org>
15871 * server.c (handle_v_requests): Only support vAttach and vRun to
15872 start multiple processes when in extended protocol mode.
15874 2012-01-17 Pedro Alves <palves@redhat.com>
15876 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15877 memalign plus mprotect to allocate the scratch buffer.
15879 2012-01-13 Pedro Alves <palves@redhat.com>
15881 * server.c (attach_inferior): Clear `cont_thread'.
15883 2012-01-13 Pedro Alves <palves@redhat.com>
15885 * server.c (main): Avoid infinite loop while detaching/killing
15888 2012-01-09 Doug Evans <dje@google.com>
15890 * server.c (start_inferior): Set last_ptid in --wrapper case.
15892 2012-01-06 Yao Qi <yao@codesourcery.com>
15894 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15896 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15898 2012-01-04 Yao Qi <yao@codesourcery.com>
15900 * tracepoint.c (cmd_qtdp): Print debug message
15901 for static tracepoint.
15903 2012-01-04 Yao Qi <yao@codesourcery.com>
15905 * tracepoint.c (trace_vdebug): Differentiate debug message
15906 between gdbserver and IPA.
15908 2012-01-03 Yao Qi <yao@codesourcery.com>
15910 * tracepoint.c (tracepoint_was_hit): Don't collect for
15913 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15915 * terminal.h: Reformat copyright header.
15917 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15919 * server.c (gdbserver_version): Update copyright year.
15920 * gdbreplay.c (gdbreplay_version): Likewise.
15922 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15924 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15927 2011-12-18 Hui Zhu <teawater@gmail.com>
15928 * linux-low.c (linux_create_inferior): Save return value to ret.
15930 2011-12-18 Hui Zhu <teawater@gmail.com>
15932 * linux-low.c (linux_create_inferior): Save return value to ret.
15934 2011-12-16 Doug Evans <dje@google.com>
15936 * linux-low.c (linux_create_inferior): If stdio connection,
15937 redirect stdin from /dev/null, stdout to stderr.
15938 * remote-utils.c (remote_is_stdio): New static global.
15939 (remote_connection_is_stdio): New function.
15940 (remote_prepare): Handle stdio connection.
15941 (remote_open): Ditto.
15942 (remote_close): Don't close stdin for stdio connections.
15943 (read_prim,write_prim): New functions. Replace all calls to
15944 read/write to these.
15945 * server.c (main): Watch for "-" argument. Move call to
15946 remote_prepare before start_inferior.
15947 * server.h (STDIO_CONNECTION_NAME): New macro.
15948 (remote_connection_is_stdio): Declare.
15950 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15951 in debugging output.
15953 2011-12-15 Yao Qi <yao@codesourcery.com>
15955 * tracepoint.c: Include sys/syscall.h.
15956 (gdb_ust_thread): Remove preprocessor conditional.
15958 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15960 * linux-low.c (linux_detach_one_lwp): Call
15961 the_low_target.prepare_to_resume before detaching.
15963 2011-12-14 Yao Qi <yao@codesourcery.com>
15965 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15968 2011-12-14 Yao Qi <yao@codesourcery.com>
15970 * i386-low.c (i386_low_stopped_data_address): Initialize local
15971 variable `control'.
15973 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15977 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15978 DR_CONTROL unless necessary. Extend comments.
15979 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15980 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15982 2011-12-13 Yao Qi <yao@codesourcery.com>
15984 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15986 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15988 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15990 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15991 Print new debug message for such case.
15993 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15995 Fix overlapping memcpy.
15996 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15997 the read_inferior_memory transfer.
15998 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15999 write_inferior_memory transfer.
16000 (set_fast_tracepoint_jump): New variable buf. Use it for the
16001 read_inferior_memory and write_inferior_memory transfers.
16002 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16003 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16004 Use it for the write_inferior_memory transfer.
16005 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16008 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16010 * linux-low.c (fetch_register, store_register): Make code
16011 consistent, fix formatting.
16013 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16015 * linux-low.c (usr_store_inferior_registers): Factor out code
16016 to handle individual registers into...
16017 (store_register): ... this new function.
16019 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16021 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16022 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16023 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16024 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16025 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16026 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16027 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16028 (srv_xmlfiles): Add new XML files.
16030 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16032 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16033 (init_registers_s390_linux32v1): Add prototype.
16034 (init_registers_s390_linux32v2): Likewise.
16035 (init_registers_s390_linux64v1): Likewise.
16036 (init_registers_s390_linux64v2): Likewise.
16037 (init_registers_s390x_linux64v1): Likewise.
16038 (init_registers_s390x_linux64v2): Likewise.
16039 (s390_num_regs): Increment to 52.
16040 (s390_regmap): Add orig_r2 register.
16041 (s390_num_regs_3264): Increment to 68.
16042 (s390_regmap_3264): Add orig_r2 register.
16043 (s390_collect_ptrace_register): Handle orig_r2 register.
16044 (s390_supply_ptrace_register): Likewise.
16045 (s390_fill_last_break): New function.
16046 (s390_store_last_break): Likewise.
16047 (s390_fill_system_call): New function.
16048 (s390_store_system_call): Likewise.
16049 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16051 (s390_check_regset): New function.
16052 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16053 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16054 Update target_regsets for available register sets.
16056 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16057 Jan Kratochvil <jan.kratochvil@redhat.com>
16059 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16060 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16062 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16063 * linux-low.h (struct process_info_private): New member r_debug.
16064 * server.c (handle_qxfer_libraries): Call
16065 the_target->qxfer_libraries_svr4.
16066 (handle_qxfer_libraries_svr4): New function.
16067 (qxfer_packets): New entry "libraries-svr4".
16068 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16069 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16070 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16071 PACKET_qXfer_libraries_svr4.
16073 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16075 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16076 PSW address/mask between 8-byte and 16-byte formats.
16077 (s390_supply_ptrace_register): Likewise.
16078 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16079 basic addressing mode bit.
16081 2011-11-24 Stan Shebs <stan@codesourcery.com>
16083 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16085 2011-11-17 Stan Shebs <stan@codesourcery.com>
16087 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16088 (tracing_start_time): New global.
16089 (tracing_stop_time): New global.
16090 (tracing_user_name): New global.
16091 (tracing_notes): New global.
16092 (tracing_stop_note): New global.
16093 (cmd_qtstart): Set traceframe_usage, start_time.
16094 (stop_tracing): Set stop_time.
16095 (cmd_qtstatus): Report additional status.
16096 (cmd_qtp): New function.
16097 (handle_tracepoint_query): Call it.
16098 (cmd_qtnotes): New function.
16099 (handle_tracepoint_general_set): Call it.
16100 (get_timestamp): Rename from tsv_get_timestamp.
16102 2011-11-14 Stan Shebs <stan@codesourcery.com>
16103 Kwok Cheung Yeung <kcy@codesourcery.com>
16105 * linux-x86-low.c (small_jump_insn): New.
16106 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16107 trampoline and error message, build a trampoline and issue a small
16108 jump instruction to it.
16109 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16110 trampoline and error message.
16111 (x86_get_min_fast_tracepoint_insn_len): New.
16112 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16113 * linux-low.h (struct linux_target_ops): Add arguments to
16114 install_fast_tracepoint_jump_pad operation, add new operation.
16115 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16117 (linux_get_min_fast_tracepoint_insn_len): New function.
16118 (linux_target_op): Add new operation.
16119 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16120 (gdb_trampoline_buffer_end): Ditto.
16121 (gdb_trampoline_buffer_error): Ditto.
16122 (struct ipa_sym_addresses): Add fields for new IPA variables.
16123 (symbol_list): Add entries for new IPA variables.
16124 (struct tracepoint): Add fields to hold the address range of the
16125 trampoline used by the tracepoint.
16126 (trampoline_buffer_head): New static variable.
16127 (trampoline_buffer_tail): Ditto.
16128 (claim_trampoline_space): New function.
16129 (have_fast_tracepoint_trampoline_buffer): New function.
16130 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16132 (install_fast_tracepoint): Ditto, also add error buffer argument.
16133 (cmd_qtminftpilen): New function.
16134 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16135 (fast_tracepoint_from_trampoline_address): New function.
16136 (fast_tracepoint_collecting): Handle trampoline as part of jump
16138 (set_trampoline_buffer_space): New function.
16139 (initialize_tracepoint): Initialize new IPA variables.
16140 * target.h (struct target_ops): Add arguments to
16141 install_fast_tracepoint_jump_pad operation, add new
16142 get_min_fast_tracepoint_insn_len operation.
16143 (target_get_min_fast_tracepoint_insn_len): New.
16144 (install_fast_tracepoint_jump_pad): Add arguments.
16145 * server.h (IPA_BUFSIZ): Define.
16146 * linux-i386-ipa.c: Include extra header files.
16147 (initialize_fast_tracepoint_trampoline_buffer): New function.
16148 (initialize_low_tracepoint): Call it.
16149 * server.h (set_trampoline_buffer_space): Declare.
16150 (claim_trampoline_space): Ditto.
16151 (have_fast_tracepoint_trampoline_buffer): Ditto.
16153 2011-11-14 Yao Qi <yao@codesourcery.com>
16155 * server.c (handle_query): Handle InstallInTrace for qSupported.
16156 * tracepoint.c (add_tracepoint): Sort list.
16157 (install_tracepoint, download_tracepoint): New.
16158 (cmd_qtdp): Call them to install and download tracepoints.
16159 (sort_tracepoints): Removed.
16160 (cmd_qtstart): Update.
16162 2011-11-14 Yao Qi <yao@codesourcery.com>
16164 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16165 * mem-break.h: Declare.
16166 * tracepoint.c (cmd_qtstart): Move some code to ...
16167 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16169 (download_tracepoints): Move some code to ...
16170 (download_tracepoint_1): ... here. New.
16172 2011-11-08 Yao Qi <yao@codesourcery.com>
16174 * remote-utils.c (relocate_instruction): A comment fix.
16176 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16178 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16179 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16180 dr_status_mirror and dr_control_mirror from debug_reg_state.
16181 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16182 (i386_initial_stuff): Remove use of deleted globals.
16183 (i386_get_thread_context, i386_set_thread_context,
16184 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16185 from debug_reg_state.
16187 2011-11-05 Yao Qi <yao@codesourcery.com>
16189 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16190 address as TPOINT's.
16192 2011-11-02 Stan Shebs <stan@codesourcery.com>
16194 * tracepoint.c (agent_mem_read_string): New function.
16195 (eval_agent_expr): Call it for tracenz.
16196 * server.c (handle_query): Report support for tracenz.
16198 2011-11-02 Yao Qi <yao@codesourcery.com>
16200 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16202 2011-11-02 Yao Qi <yao@codesourcery.com>
16204 * target.h: Fix a typo in comment.
16206 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16208 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16209 clobber the breakpoints' shadows with fast tracepoint jumps.
16210 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16211 * target.c (write_inferior_memory): Also pass MYADDR down to
16214 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16216 * configure.ac: Check support for personality routine.
16217 * configure: Regenerate.
16218 * config.in: Likewise.
16219 * linux-low.c: Include <sys/personality.h>.
16220 Define ADDR_NO_RANDOMIZE if necessary.
16221 (linux_create_inferior): Disable address space randomization when
16222 forking inferior, if requested.
16223 (linux_supports_disable_randomization): New function.
16224 (linux_target_ops): Install it.
16225 * server.h (disable_randomization): Declare.
16226 * server.c (disable_randomization): New global variable.
16227 (handle_general_set): Handle QDisableRandomization.
16228 (handle_query): Likewise for qSupported.
16229 (main): Support --disable-randomization and --no-disable-randomization
16230 command line arguments.
16231 * target.h (struct target_ops): Add supports_disable_randomization.
16232 (target_supports_disable_randomization): New macro.
16234 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16236 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16238 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16239 [!PT_GETDSBT] (target_loadmap): New definition.
16240 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16241 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16242 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16243 and PT_GETDSBT to LINUX_LOADMAP.
16244 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16245 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16247 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16249 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16250 (arm_linux_hwbp_cap): New static variable.
16251 (arm_linux_get_hwbp_cap): Replace by ...
16252 (arm_linux_init_hwbp_cap): ... this new function.
16253 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16254 (arm_linux_get_hw_watchpoint_count): Likewise.
16255 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16256 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16257 (arm_prepare_to_resume): Use perror_with_name instead of error.
16259 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16261 * linux-arm-low.c: Include <signal.h>.
16262 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16263 (struct arm_linux_hwbp_cap): New data type.
16264 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16265 (struct arm_linux_hw_breakpoint): New data type.
16266 (MAX_BPTS, MAX_WPTS): Define.
16267 (struct arch_process_info, struct arch_lwp_info): New data types.
16268 (arm_linux_get_hwbp_cap): New function.
16269 (arm_linux_get_hw_breakpoint_count): Likewise.
16270 (arm_linux_get_hw_watchpoint_count): Likewise.
16271 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16272 (arm_hwbp_control_initialize): Likewise.
16273 (arm_hwbp_control_is_enabled): Likewise.
16274 (arm_hwbp_control_is_initialized): Likewise.
16275 (arm_hwbp_control_disable): Likewise.
16276 (arm_linux_hw_breakpoint_equal): Likewise.
16277 (arm_linux_hw_point_initialize): Likewise.
16278 (struct update_registers_data): New data structure.
16279 (update_registers_callback: New function.
16280 (arm_insert_point): Likewise.
16281 (arm_remove_point): Likewise.
16282 (arm_stopped_by_watchpoint): Likewise.
16283 (arm_stopped_data_address): Likewise.
16284 (arm_new_process): Likewise.
16285 (arm_new_thread): Likewise.
16286 (arm_prepare_to_resume): Likewise.
16287 (the_low_target): Register arm_insert_point, arm_remove_point,
16288 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16289 arm_new_thread, and arm_prepare_to_resume.
16291 2011-09-15 Stan Shebs <stan@codesourcery.com>
16293 * server.h (struct emit_ops): Add compare-goto fields.
16294 * tracepoint.c (gdb_agent_op_sizes): New table.
16295 (emit_eq_goto): New function.
16296 (emit_ne_goto): New function.
16297 (emit_lt_goto): New function.
16298 (emit_le_goto): New function.
16299 (emit_gt_goto): New function.
16300 (emit_ge_goto): New function.
16301 (is_goto_target): New function.
16302 (compile_bytecodes): Recognize special cases of compare-goto
16303 combinations and call specialized emitters for them.
16304 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16305 (amd64_emit_ne_goto): New function.
16306 (amd64_emit_lt_goto): New function.
16307 (amd64_emit_le_goto): New function.
16308 (amd64_emit_gt_goto): New function.
16309 (amd64_emit_ge_goto): New function.
16310 (amd64_emit_ops): Add the new functions.
16311 (i386_emit_eq_goto): New function.
16312 (i386_emit_ne_goto): New function.
16313 (i386_emit_lt_goto): New function.
16314 (i386_emit_le_goto): New function.
16315 (i386_emit_gt_goto): New function.
16316 (i386_emit_ge_goto): New function.
16317 (i386_emit_ops): Add the new functions.
16319 2011-09-08 Stan Shebs <stan@codesourcery.com>
16321 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16322 (i386_emit_epilogue): Restore %ebx.
16324 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16326 * server.c (step_thread): Remove definition.
16327 (process_serial_event): Don't handle Hs.
16328 * server.h (step_thread): Remove declaration.
16329 * target.c (set_desired_inferior): Remove use of step_thread.
16331 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16333 * linux-low.c: Include linux-procfs.h.
16334 (linux_attach_lwp_1): Update comments.
16335 (linux_attach): Scan for existing threads when attaching to a
16336 process that is the tgid.
16337 * Makefile.in: Update dependencies.
16339 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16341 * configure.srv: Add linux-procfs.o dependencies.
16343 2011-08-14 Yao Qi <yao@codesourcery.com>
16345 * target.h (struct target_ops): Fix indent.
16346 * win32-low.c (win32_target_ops): Fix comment.
16348 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16349 Yao Qi <yao@codesourcery.com>
16351 * Makefile.in (clean): Remove tic6x-*.c files.
16352 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16353 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16354 (tic6x-c64xp-linux.c): Likewise.
16355 * configure.srv: Add support for tic6x-*-uclinux.
16356 * linux-tic6x-low.c: New.
16357 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16359 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16360 Yao Qi <yao@codesourcery.com>
16362 * target.h (struct target_ops): Add read_loadmap.
16363 * linux-low.c (struct target_loadseg): New type.
16364 (struct target_loadmap): New type.
16365 (linux_read_loadmap): New function.
16366 (linux_target_ops): Add linux_read_loadmap.
16367 * server.c (handle_query): Support qXfer:fdpic:read packet.
16368 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16371 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16373 * win32-low.c: Include <stdint.h>.
16375 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16377 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16378 to the inferior here.
16379 (i386_remove_aligned_watchpoint): Ditto.
16380 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16381 fit part of the watchpoint in the debug registers.
16382 (i386_update_inferior_debug_regs): New.
16383 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16384 registers, and only update the inferior on success.
16385 (i386_low_remove_watchpoint): Ditto.
16387 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16389 * linux-low.c (compare_ints, unique, list_threads, show_process,
16390 linux_core_of_thread): Delete.
16391 (linux_target_ops): Change linux_core_of_thread to
16392 linux_common_core_of_thread.
16393 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16394 * utils.c (malloc_failure): Change type of argument.
16395 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16396 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16397 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16398 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16399 (IPA_OBJS): Add common-utils-ipa.o.
16400 (ptid_h, linux_osdata_h): New macros.
16401 (server_h): Add common/common-utils.h, common/xml-utils.h,
16402 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16404 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16405 ptid.o, buffer.o): New rules.
16406 (linux-low.o): Add common/linux-osdata.h as a dependency.
16407 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16408 * configure.ac: Add AC_HEADER_DIRENT check.
16409 * config.in: Regenerate.
16410 * configure: Regenerate.
16411 * remote-utils.c (xml_escape_text): Delete.
16412 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16413 buffer_xml_printf): Move to common/buffer.c.
16414 * server.c (main): Remove call to initialize_inferiors.
16415 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16416 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16417 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16418 internal_error, gdb_assert, gdb_assert_fail): Delete.
16419 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16420 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16422 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16423 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16424 initialize_inferiors): Delete.
16426 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16428 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16431 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16433 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16435 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16437 2011-05-26 Yao Qi <yao@codesourcery.com>
16439 * Makefile.in (thread-db.o): Track dependence to
16440 common/gdb_thread_db.h.
16441 * thread-db.c: include gdb_thread_db.h from right place.
16443 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16445 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16446 __FILE__ and __LINE__ to internal_error.
16448 2011-05-13 Doug Evans <dje@google.com>
16450 * thread-db.c (try_thread_db_load_from_sdir): New function.
16451 (try_thread_db_load_from_dir): New function.
16452 (thread_db_load_search): Handle $sdir, ignore $pdir.
16453 Remove trying of system directories if search of
16454 libthread-db-search-path fails, that is now done via $sdir.
16456 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16458 * server.c (handle_query): Add EnableDisableTracepoints to the list
16459 of supported features.
16460 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16462 (cmd_qtenable_disable): New.
16463 (cmd_qtstart): Install tracepoints even if disabled.
16464 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16465 receiving a QTEnable or QTDisable packet.
16466 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16467 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16469 (gdb_probe): Skip data collection if static tracepoint is disabled.
16471 2011-05-10 Doug Evans <dje@google.com>
16473 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16475 2011-05-04 Doug Evans <dje@google.com>
16477 * linux-low.c (linux_join): Skip process lookup.
16478 * spu-low.c (spu_join): Ditto.
16479 * server.c (join_inferiors_callback): Delete.
16480 (process_serial_event): For 'D' packet (detach) call join_inferior
16483 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16485 * README: Don't mention xscale*-*-linux*.
16486 * configure.srv (xscale*-*-linux*): Don't handle target.
16488 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16490 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16492 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16493 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16494 (i386_emit_void_call_2): Likewise.
16496 2011-04-26 Yao Qi <yao@codesourcery.com>
16498 * linux-low.c: Move common macros to linux-ptrace.h.
16499 Include linux-ptrace.h.
16500 * Makefile.in (linux_ptrace_h): New.
16501 (linux-low.o): Depends on linux-ptrace.h.
16503 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16505 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16506 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16507 (remote_prepare): New function with most of the TCP code from ...
16508 (remote_open): ... here. Detect PORT here unconditionally. Move also
16509 setting transport_is_reliable.
16510 * server.c (run_once): New variable.
16511 (gdbserver_usage): Document it.
16512 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16513 the first run if RUN_ONCE.
16514 * server.h (run_once, remote_prepare): New declarations.
16516 2011-04-19 Tom Tromey <tromey@redhat.com>
16518 * win32-low.c (handle_load_dll): Remove duplicate "the".
16520 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16522 Remove support for old Cygwin 1.5 versions.
16523 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16524 function to avoid warning.
16525 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16528 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16530 * gdbserver/server.h (Macro _): Define it if not available.
16532 2011-03-14 Michael Snyder <msnyder@vmware.com>
16534 * hostio.c (handle_close): Remove unnecessary null test.
16536 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16538 * Makefile.in (maintainer-clean realclean distclean): Remove
16539 "make ... subdir_do" command.
16541 2011-03-10 Michael Snyder <msnyder@vmware.com>
16543 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16545 * server.c (handle_v_run): Free alloced buffer on early return.
16547 2011-03-09 Yao Qi <yao@codesourcery.com>
16550 2011-03-04 Yao Qi <yao@codesourcery.com>
16552 * Makefile.in: Remove GNU make feature --directory.
16554 2011-03-05 Yao Qi <yao@codesourcery.com>
16556 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16557 (subdir_do): New make target. Copied from gdb/Makefile.
16558 (maintainer-clean, realclean, distclean, clean): Call corresponding
16559 make targets in common/Makefile.
16561 2011-02-11 Yao Qi <yao@codesourcery.com>
16563 * configure.ac: Call AC_PROG_RANLIB.
16564 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16565 * configure: Regenerate.
16567 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16569 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16571 2011-03-06 Yao Qi <yao@codesourcery.com>
16573 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16575 2011-03-05 Yao Qi <yao@codesourcery.com>
16577 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16578 (subdir_do): New make target. Copied from gdb/Makefile.
16579 (maintainer-clean, realclean, distclean, clean): Call corresponding
16580 make targets in common/Makefile.
16582 2011-03-04 Yao Qi <yao@codesourcery.com>
16584 * Makefile.in: Remove GNU make feature --directory.
16586 2011-03-04 Michael Snyder <msnyder@vmware.com>
16588 * server.c (queue_stop_reply): Call xmalloc not malloc.
16590 2011-03-02 Michael Snyder <msnyder@vmware.com>
16592 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16594 2011-02-28 Michael Snyder <msnyder@vmware.com>
16596 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16597 (cmd_qtframe): Ditto.
16598 (cmd_qtbuffer): Ditto.
16599 (cmd_bigqtbuffer): Ditto.
16601 * utils.c (decimal2str): Initialize 'width' to nine, then
16602 don't mess with it.
16604 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16606 * hostio.c (require_data): Free *data, not data.
16608 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16610 * hostio.c (require_data): Use free, not xfree.
16612 2011-02-27 Michael Snyder <msnyder@vmware.com>
16614 * server.c (handle_query): Discard unused value.
16616 * hostio.c (require_data): Free malloc memory before returning
16619 2011-02-26 Michael Snyder <msnyder@vmware.com>
16621 * linux-low.c (list_threads): Call closedir for dirent.
16623 2011-02-27 Michael Snyder <msnyder@vmware.com>
16625 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16626 a case statement falls through.
16628 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16630 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16633 2011-02-26 Michael Snyder <msnyder@vmware.com>
16635 * utils.c (decimal2str): Eliminate dead code and dead param.
16636 (pulongest): Drop dead param from call to decimal2str.
16639 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16641 Revert the following patch (not approved yet):
16642 2011-02-21 Hui Zhu <teawater@gmail.com>
16643 * tracepoint.c (tp_printf): New function.
16644 (eval_agent_expr): Handle gdb_agent_op_printf.
16646 2011-02-21 Hui Zhu <teawater@gmail.com>
16648 * tracepoint.c (tp_printf): New function.
16649 (eval_agent_expr): Handle gdb_agent_op_printf.
16651 2011-02-18 Tom Tromey <tromey@redhat.com>
16653 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16654 (tracepoint.o): Likewise.
16655 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16656 (gdb_agent_op_names): Likewise.
16658 2011-02-18 Tom Tromey <tromey@redhat.com>
16660 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16661 gdb_agent_op_rot>: New constants.
16662 (gdb_agent_op_names): Add pick and roll.
16663 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16666 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16668 * aclocal.m4: Regenerated with aclocal-1.11.1.
16670 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16672 * server.c (handle_qxfer_traceframe_info): New.
16673 (qxfer_packets): Register "traceframe-info".
16674 (handle_query): Report support for qXfer:traceframe-info:read+.
16675 * tracepoint.c (match_blocktype): New.
16676 (traceframe_find_block_type): Rename to ...
16677 (traceframe_walk_blocks): ... this. Add callback filter argument,
16679 (traceframe_find_block_type): New, reimplemented on top of
16680 traceframe_walk_blocks.
16681 (build_traceframe_info_xml): New.
16682 (traceframe_read_info): New.
16683 * server.h (traceframe_read_info): Declare.
16685 2011-02-11 Yao Qi <yao@codesourcery.com>
16687 * configure.ac: Call AC_PROG_RANLIB.
16688 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16689 * configure: Regenerate.
16691 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16693 * server.c (gdb_read_memory): Change return semantics to allow
16695 (handle_search_memory_1): Adjust.
16696 (process_serial_event) <'m' packet>: Handle partial transfers.
16697 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16699 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16701 * regcache.c (init_register_cache): Initialize
16702 regcache->register_status.
16703 (free_register_cache): Release regcache->register_status.
16704 (regcache_cpy): Copy register_status.
16705 (registers_to_string): Print 'x's for unavailable registers.
16706 (supply_register): Mark the register's status valid or
16707 unavailable, depending on whether a buffer was passed in or not.
16708 (supply_register_zeroed): New.
16709 (supply_regblock): Mark the registers' status valid or
16710 unavailable, depending on whether a buffer was passed in or not.
16711 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16712 (struct regcache): New `register_status' field.
16713 (supply_register_zeroed): Declare.
16714 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16715 supply_register_zeroed, rather than passing a NULL buffer to
16717 * tracepoint.c (fetch_traceframe_registers): Update comment.
16719 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16721 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16724 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16726 * server.h (decode_xfer_write): Change prototype.
16727 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16728 and don't extract the annex here.
16729 * server.c (decode_xfer_read): Remove `annex' parameter,
16730 and don't extract the annex here.
16731 (decode_xfer): New.
16732 (struct qxfer): New.
16733 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16734 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16735 (handle_qxfer_statictrace): New functions, abstracted out from
16736 handle_query, and made to use the struct qxfer interface.
16737 (handle_threads_qxfer_proper): Rename to ...
16738 (handle_qxfer_threads_proper): ... this.
16739 (handle_threads_qxfer): Rename to ...
16740 (handle_qxfer_threads): ... this. Adjust.
16741 (qxfer_packets): New array.
16742 (handle_qxfer): New function.
16743 (handle_query): Use handle_qxfer.
16745 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16747 * gdbreplay.c: Shorten lines of >= 80 columns.
16748 * linux-low.c: Ditto.
16749 * linux-ppc-low.c: Ditto.
16750 * linux-s390-low.c: Ditto.
16751 * linux-sparc-low.c: Ditto.
16752 * linux-x86-low.c: Ditto.
16753 * linux-xtensa-low.c: Ditto.
16754 * mem-break.c: Ditto.
16755 * nto-low.c: Ditto.
16756 * regcache.h: Ditto.
16757 * remote-utils.c: Ditto.
16760 * thread-db.c: Ditto.
16761 * tracepoint.c: Ditto.
16763 * win32-low.h: Ditto.
16765 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16767 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16770 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16772 * server.c (gdbserver_version): Update copyright year in version
16774 * gdbreplay.c (gdbreplay_version): Ditto.
16776 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16778 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16779 * linux-bfin-low.c: New file.
16780 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16781 PT_DATA_ADDR for BFIN targets.
16782 * Makefile.in (SFILES): Add linux-bfin-low.c.
16783 (clean): Remove reg-bfin.c.
16784 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16785 * README: Mention supported Blackfin targets.
16787 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16789 * .gitignore: New file.
16791 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16793 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16795 2010-10-22 Jie Zhang <jie@codesourcery.com>
16797 * Makefile.in: Add FLAGS_TO_PASS variable.
16798 (install): Remove dependency of install-only and recursively
16799 invoke make for install-only.
16801 2010-10-04 Doug Evans <dje@google.com>
16803 * Makefile.in (uninstall): Use $(DESTDIR).
16805 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16809 * linux-x86-low.c (compat_siginfo_from_siginfo)
16810 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16811 si_code is < 0. Check for si_code == SI_TIMER before checking for
16814 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16816 * lynx-i386-low.c: New file.
16817 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16819 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16821 * lynx-low.c (ptrace_request_to_str): Remove handling for
16822 request values that have been removed in LynxOS 5.x.
16824 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16826 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16829 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16831 * configure.ac: Add --enable-inprocess-agent option.
16832 * configure: Rebuilt.
16834 2010-09-06 Yao Qi <yao@codesourcery.com>
16836 * linux-low.c (linux_kill): Remove unused variable.
16837 (linux_stabilize_threads): Likewise.
16838 * server.c (start_inferior): Likewise.
16839 (queue_stop_reply_callback): Likewise.
16840 * tracepoint.c (do_action_at_tracepoint): Likewise.
16842 2010-09-06 Yao Qi <yao@codesourcery.com>
16844 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16847 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16849 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16851 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16853 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16856 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16858 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16859 gdbserver/lynx-ppc-low.c: New files.
16860 * Makefile.in (lynx_low_h): New variable.
16861 (lynx-low.o, lynx-ppc-low.o): New rules.
16862 * configure.ac: On LynxOS, link with -lnetinet.
16863 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16864 * configure: regenerate.
16866 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16868 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16869 * configure.ac: Add check for vasprintf and vsnprintf.
16870 * configure, config.in: Regenerate.
16871 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16873 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16875 * gdbreplay.c: Move include of alloca.h up, next to include of
16877 * server.h: Add include of malloc.h.
16878 * mem-break.c: Remove include of malloc.h.
16879 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16881 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16883 * Makefile.in (memmem.o): Build with -Wno-error.
16885 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16887 * utils.c (xsnprintf): Make non-static.
16888 * server.h: Add xsnprintf declaration.
16889 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16890 replace calls to snprintf by calls to xsnprintf throughout.
16892 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16894 * configure.ac: Add configure check for alloca.
16895 * configure, config.in: Regenerate.
16896 * server.h: Include alloca.h if it exists.
16897 * gdbreplay.c: Include alloca.h if it exists.
16899 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16901 * linux-low.c (__SIGRTMIN): Define if not already defined.
16902 (linux_create_inferior): Check for __ANDROID__ rather than
16904 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16905 are already deferred.
16906 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16907 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16908 stopped and already has a pending signal to report.
16909 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16910 a pending signal to report or is moving out of a jump pad.
16911 (linux_init_signals): Check for __ANDROID__ rather than
16914 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16916 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16917 debug_threads check. Avoid a linear search when not doing debug
16920 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16922 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16923 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16924 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16925 (process_event): Change local fd's type to gdb_fildes_t.
16926 (create_file_handler): Adjust prototype.
16927 (delete_file_handler): Adjust prototype.
16928 (handle_file_event): Adjust prototype. Use pfildes.
16929 (create_file_event): Adjsut prototype.
16930 * remote-utils.c (remote_desc, listen_desc): Change type to
16932 * server.h: New gdb_fildes_t typedef.
16933 [USE_WIN32API]: Include winsock2.h.
16934 (delete_file_handler, add_file_handler): Adjust prototypes.
16935 (pfildes): Declare.
16936 * utils.c (pfildes): New.
16938 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16940 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16941 * configure: Regenerate.
16943 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16945 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16946 (linux_done_accessing_memory): ... this.
16947 (linux_target_ops): Adjust.
16948 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16949 * nto-low.c (nto_target_ops): Adjust comment.
16950 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16951 * spu-low.c (spu_target_ops): Adjust comment.
16952 * target.h (target_ops): Rename unprepare_to_access_memory field
16953 to done_accessing_memory.
16954 (unprepare_to_access_memory): Rename to ...
16955 (done_accessing_memory): ... this.
16957 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16959 * linux-low.c (linux_prepare_to_access_memory): New.
16960 (linux_unprepare_to_access_memory): New.
16961 (linux_target_ops): Install them.
16962 * server.c (read_memory): Rename to ...
16963 (gdb_read_memory): ... this. Use
16964 prepare_to_access_memory/prepare_to_access_memory.
16965 (write_memory): Rename to ...
16966 (gdb_write_memory): ... this. Use
16967 prepare_to_access_memory/prepare_to_access_memory.
16968 (handle_search_memory_1): Adjust.
16969 (process_serial_event): Adjust.
16970 * target.h (struct target_ops): New fields
16971 prepare_to_access_memory and unprepare_to_access_memory.
16972 (prepare_to_access_memory, unprepare_to_access_memory): New.
16973 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16974 prepare_to_access_memory/prepare_to_access_memory.
16975 * nto-low.c (nto_target_ops): Adjust.
16976 * spu-low.c (spu_target_ops): Adjust.
16977 * win32-low.c (win32_target_ops): Adjust.
16979 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16981 * Makefile.in (WARN_CFLAGS): Get it from configure.
16982 (WERROR_CFLAGS): New.
16983 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16984 * configure.ac: Introduce --enable-werror, which adds -Werror to
16985 the compiler command line. Enabled by default. Disable with
16986 --disable-werror. Add -Wdeclaration-after-statement
16987 Wpointer-arith and -Wformat-nonliteral to warning flags.
16988 * configure: Regenerate.
16990 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16992 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16994 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16996 * gdbreplay.c (remote_error): New.
16998 (expect): Use gdbchar. Check for error reading from GDB.
16999 Clarify sync error output.
17000 (play): Check for errors writing to GDB.
17001 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17002 * remote-utils.c (getpkt): Check for errors writing to the remote
17005 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17007 * linux-low.c (linux_wait_1): Move non-debugging code out of
17008 `debug_threads' control.
17010 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17012 * linux-low.c (linux_wait_1): Don't set last_status here.
17013 * server.c (push_event, queue_stop_reply_callback): Assert we're
17014 not pushing a TARGET_WAITKIND_IGNORE event.
17015 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17016 (myresume, handle_target_event): Set the thread's last_resume_kind
17017 and last_status from the target returned status.
17019 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17023 * linux-x86-low.c (update_debug_registers_callback): New.
17024 (i386_dr_low_set_addr): Use it.
17025 (i386_dr_low_get_addr): New.
17026 (i386_dr_low_set_control): Use update_debug_registers_callback.
17027 (i386_dr_low_get_control): New.
17028 (i386_dr_low_get_status): Adjust.
17029 * linux-low.c (linux_stop_lwp): New.
17030 * linux-low.h (linux_stop_lwp): Declare.
17032 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17033 argument instead of a i386_debug_reg_state.
17034 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17035 a i386_debug_reg_state.
17036 (i386_insert_aligned_watchpoint): Adjust.
17037 (i386_remove_aligned_watchpoint): Adjust.
17038 (i386_low_stopped_data_address): Read the debug registers from the
17039 inferior instead of from the mirrors.
17040 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17041 (i386_dr_low_get_addr): Declare.
17042 (i386_dr_low_get_control): Declare.
17043 (i386_dr_low_get_status): Change prototype.
17045 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17046 (i386_dr_low_get_addr): New.
17047 (i386_dr_low_get_control): New.
17048 (i386_dr_low_get_status): Adjust prototype. Return
17050 (i386_initial_stuff): Clear dr_status_mirror and
17052 (i386_get_thread_context): Adjust.
17053 (i386_set_thread_context): Adjust.
17054 (i386_thread_added): Adjust.
17056 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17058 * linux-low.h (linux_thread_area): Delete declaration.
17060 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17062 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17063 after its termination.
17065 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17067 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17068 (gdb_wants_all_stopped): Delete.
17069 (linux_wait_1): Don't call them.
17070 * server.c (handle_v_cont): Tag all threads as want-stopped.
17071 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17072 stopped as "client-wants-stopped".
17074 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17076 * Makefile.in (signals_h): New.
17077 (server_h): Depend on it.
17078 (server.o): Don't depend on $(signals_def).
17079 (signals.o): Depend on $(signals_def).
17081 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17083 * Makefile.in (signals_def): New.
17084 (server_h): Append include/gdb/signals.h and signals_def.
17085 (server.o): Append signals_def.
17087 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17089 * server.c (handle_target_event): Use target_signal_to_host for
17090 resume_info.sig initialization.
17091 * target.h (struct thread_resume) <sig>: New comment.
17093 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17095 * server.c (handle_query): strcpy() the returned string from paddress()
17096 instead of sprintf().
17097 * utils.c (paddress): Return phex_nz().
17099 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17101 * server.c (handle_v_cont): Call mourn_inferior if process
17103 (myresume): Likewise.
17105 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17107 Static tracepoints, and integration with UST.
17109 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17110 * mem-break.c (uninsert_all_breakpoints)
17111 (reinsert_all_breakpoints): New.
17112 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17113 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17114 (gdb_agent_ust_loaded, helper_thread_id)
17115 (gdb_agent_helper_thread_id): New macros.
17116 (struct ipa_sym_addresses): Add addr_ust_loaded,
17117 addr_helper_thread_id, addr_cmd_buf.
17118 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17119 (in_process_agent_loaded_ust): New.
17120 (write_e_ust_not_loaded): New.
17121 (maybe_write_ipa_ust_not_loaded): New.
17122 (struct collect_static_trace_data_action): New.
17123 (enum tracepoint_type) <static_tracepoint>: New.
17124 (struct tracepoint) <handle>: Mention static tracepoints.
17125 (struct static_tracepoint_ctx): New.
17126 (CMD_BUF_SIZE): New.
17127 (add_tracepoint_action): Handle static tracepoint actions.
17128 (unprobe_marker_at): New.
17129 (clear_installed_tracepoints): Handle static tracepoints.
17130 (cmd_qtdp): Handle static tracepoints.
17131 (probe_marker_at): New.
17132 (cmd_qtstart): Handle static tracepoints.
17133 (response_tracepoint): Handle static tracepoints.
17134 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17135 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17136 (get_context_regcache): Handle static tracepoints.
17137 (do_action_at_tracepoint): Handle static tracepoint actions.
17138 (traceframe_find_block_type): Handle static trace data blocks.
17139 (traceframe_read_sdata): New.
17140 (download_tracepoints): Download static tracepoint actions.
17141 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17142 (GDB_PROBE_NAME): New.
17144 (GET_UST_SYM): New.
17147 (ust_marker_to_static_tracepoint): New.
17149 (collect_ust_data_at_tracepoint): New.
17150 (gdb_ust_probe): New.
17151 (UNIX_PATH_MAX, SOCK_DIR): New.
17152 (gdb_ust_connect_sync_socket): New.
17153 (resume_thread, stop_thread): New.
17154 (run_inferior_command): New.
17155 (init_named_socket): New.
17156 (gdb_ust_socket_init): New.
17157 (cstr_to_hexstr): New.
17159 (first_marker, next_marker): New.
17160 (response_ust_marker): New.
17161 (cmd_qtfstm, cmd_qtsstm): New.
17162 (unprobe_marker_at, probe_marker_at): New.
17163 (cmd_qtstmat, gdb_ust_thread): New.
17164 (gdb_ust_init): New.
17165 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17166 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17167 (ST_REGENTRY): New.
17168 (x86_64_st_collect_regmap): New.
17169 (X86_64_NUM_ST_COLLECT_GREGS): New.
17170 (AMD64_RIP_REGNUM): New.
17171 (supply_static_tracepoint_registers): New.
17172 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17173 (ST_REGENTRY): New.
17174 (i386_st_collect_regmap): New.
17175 (i386_NUM_ST_COLLECT_GREGS): New.
17176 (supply_static_tracepoint_registers): New.
17177 * server.c (handle_query): Handle qXfer:statictrace:read.
17178 <qSupported>: Report support for StaticTracepoints, and
17179 qXfer:statictrace:read features.
17180 * server.h (traceframe_read_sdata)
17181 (supply_static_tracepoint_registers): Declare.
17182 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17183 (unpack_varlen_hex): Include in IPA build.
17184 * Makefile.in (ustlibs, ustinc): New.
17185 (IPA_OBJS): Add remote-utils-ipa.o.
17186 ($(IPA_LIB)): Link -ldl and -lpthread.
17188 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17189 * config.in, configure: Regenerate.
17191 2010-06-20 Ian Lance Taylor <iant@google.com>
17192 Pedro Alves <pedro@codesourcery.com>
17194 * linux-x86-low.c (always_true): Delete.
17195 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17196 trying to fool the compiler with always_true.
17198 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17200 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17201 conditions in gdbserver.
17203 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17205 * spu-low.c (spu_read_memory): Wrap around local store limit.
17206 (spu_write_memory): Likewise.
17208 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17210 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17211 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17213 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17215 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17216 uses with LONGEST uses.
17218 2010-06-14 Stan Shebs <stan@codesourcery.com>
17219 Pedro Alves <pedro@codesourcery.com>
17223 * linux-x86-low.c: Include limits.h.
17225 (always_true): New.
17228 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17229 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17230 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17231 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17232 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17233 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17234 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17235 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17236 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17237 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17238 (amd64_emit_void_call_2): New.
17239 (amd64_emit_ops): New.
17240 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17241 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17242 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17243 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17244 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17245 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17246 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17247 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17248 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17249 (i386_emit_stack_adjust, i386_emit_int_call_1)
17250 (i386_emit_void_call_2): New.
17251 (i386_emit_ops): New.
17252 (x86_emit_ops): New.
17253 (the_low_target): Install x86_emit_ops.
17254 * server.h (struct emit_ops): New.
17255 (get_raw_reg_func_addr): Declare.
17256 (current_insn_ptr, emit_error): Declare.
17257 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17258 (set_trace_state_variable_value): New defines.
17259 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17260 addr_get_trace_state_variable_value and
17261 addr_set_trace_state_variable_value.
17262 (symbol_list): New fields for get_raw_reg,
17263 get_trace_state_variable_value and set_trace_state_variable_value.
17264 (condfn): New typedef.
17265 (struct tracepoint): New field `compiled_cond'.
17266 (do_action_at_tracepoint): Clear compiled_cond.
17267 (get_trace_state_variable_value, set_trace_state_variable_value):
17269 (condition_true_at_tracepoint): If there's a compiled condition,
17271 (current_insn_ptr, emit_error): New globals.
17272 (struct bytecode_address): New.
17273 (get_raw_reg_func_addr): New.
17274 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17275 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17276 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17277 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17278 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17279 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17280 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17281 (compile_tracepoint_condition, compile_bytecodes): New.
17282 * target.h (emit_ops): Forward declare.
17283 (struct target_ops): New field emit_ops.
17284 (target_emit_ops): New.
17285 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17286 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17287 * linux-low.c (linux_emit_ops): New.
17288 (linux_target_ops): Install it.
17289 * linux-low.h (struct linux_target_ops): New field emit_ops.
17291 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17293 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17294 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17296 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17297 Stan Shebs <stan@codesourcery.com>
17299 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17300 (all): Depend on $(extra_libraries).
17301 (install-only): Install the IPA.
17302 (IPA_OBJS, IPA_LIB): New.
17303 (clean): Remove the IPA lib.
17304 (IPAGENT_CFLAGS): New.
17305 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17306 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17307 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17308 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17309 * configure.ac: Check for atomic builtins support in the compiler.
17310 (IPA_DEPFILES, extra_libraries): Define.
17311 * configure.srv (ipa_obj): Add description.
17312 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17313 (i[34567]86-*-linux*): Set ipa_obj.
17314 (x86_64-*-linux*): Set ipa_obj.
17315 * linux-low.c (stabilizing_threads): New.
17316 (supports_fast_tracepoints): New.
17317 (linux_detach): Stabilize threads before detaching.
17318 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17319 the lwp is either not stabilizing, or is moving out of a jump pad.
17320 (linux_fast_tracepoint_collecting): New.
17321 (maybe_move_out_of_jump_pad): New.
17322 (enqueue_one_deferred_signal): New.
17323 (dequeue_one_deferred_signal): New.
17324 (linux_wait_for_event_1): If moving out of a jump pad, defer
17325 pending signals to later.
17326 (linux_stabilize_threads): New.
17327 (linux_wait_1): Check if threads need moving out of jump pads, and
17329 (stuck_in_jump_pad_callback): New.
17330 (move_out_of_jump_pad_callback): New.
17331 (lwp_running): New.
17332 (linux_resume_one_lwp): Handle moving out of jump pads.
17333 (linux_set_resume_request): Dequeue deferred signals.
17334 (need_step_over_p): Also step over fast tracepoint jumps.
17335 (start_step_over): Also uninsert fast tracepoint jumps.
17336 (finish_step_over): Also reinsert fast tracepoint jumps.
17337 (linux_install_fast_tracepoint_jump): New.
17338 (linux_target_ops): Install linux_stabilize_threads and
17339 linux_install_fast_tracepoint_jump_pad.
17340 * linux-low.h (linux_target_ops) <get_thread_area,
17341 install_fast_tracepoint_jump_pad>: New fields.
17342 (struct lwp_info) <collecting_fast_tracepoint,
17343 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17344 (linux_get_thread_area): Declare.
17345 * linux-x86-low.c (jump_insn): New.
17346 (x86_get_thread_area): New.
17347 (append_insns): New.
17348 (push_opcode): New.
17349 (amd64_install_fast_tracepoint_jump_pad): New.
17350 (i386_install_fast_tracepoint_jump_pad): New.
17351 (x86_install_fast_tracepoint_jump_pad): New.
17352 (the_low_target): Install x86_get_thread_area and
17353 x86_install_fast_tracepoint_jump_pad.
17354 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17355 (struct fast_tracepoint_jump): New.
17356 (fast_tracepoint_jump_insn): New.
17357 (fast_tracepoint_jump_shadow): New.
17358 (find_fast_tracepoint_jump_at): New.
17359 (fast_tracepoint_jump_here): New.
17360 (delete_fast_tracepoint_jump): New.
17361 (set_fast_tracepoint_jump): New.
17362 (uninsert_fast_tracepoint_jumps_at): New.
17363 (reinsert_fast_tracepoint_jumps_at): New.
17364 (set_breakpoint_at): Use write_inferior_memory.
17365 (uninsert_raw_breakpoint): Use write_inferior_memory.
17366 (check_mem_read): Mask out fast tracepoint jumps.
17367 (check_mem_write): Mask out fast tracepoint jumps.
17368 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17369 (set_fast_tracepoint_jump): Declare.
17370 (delete_fast_tracepoint_jump)
17371 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17372 (reinsert_fast_tracepoint_jumps_at): Declare.
17373 * regcache.c: Don't compile many functions when building the
17374 in-process agent library.
17375 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17376 the register buffer in the heap.
17377 (free_register_cache): If the register buffer isn't owned by the
17378 regcache, don't free it.
17379 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17380 pre-existing register caches.
17381 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17383 (convert_ascii_to_int): : Constify `from' parameter type.
17384 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17385 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17386 the needed buffer in-place.
17387 (relocate_instruction): New.
17388 * server.c (handle_query) <qSymbols>: If the target supports
17389 tracepoints, give it a chance of looking up symbols. Report
17390 support for fast tracepoints.
17391 (handle_status): Stabilize threads.
17392 (process_serial_event): Adjust.
17393 * server.h (struct fast_tracepoint_jump): Forward declare.
17394 (struct process_info) <fast_tracepoint_jumps>: New field.
17395 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17396 (decode_X_packet, decode_M_packet): Adjust.
17397 (relocate_instruction): Declare.
17398 (in_process_agent_loaded): Declare.
17399 (tracepoint_look_up_symbols): Declare.
17400 (struct fast_tpoint_collect_status): Declare.
17401 (fast_tracepoint_collecting): Declare.
17402 (force_unlock_trace_buffer): Declare.
17403 (handle_tracepoint_bkpts): Declare.
17404 (initialize_low_tracepoint)
17405 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17406 * target.h (struct target_ops) <stabilize_threads,
17407 install_fast_tracepoint_jump_pad>: New fields.
17408 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17409 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17410 [HAVE_STDINT_H]: Include stdint.h.
17411 (trace_debug_1): Rename to ...
17412 (trace_vdebug): ... this.
17413 (trace_debug): Rename to ...
17414 (trace_debug_1): ... this. Add `level' parameter.
17415 (trace_debug): New.
17416 (ATTR_USED, ATTR_NOINLINE): New.
17417 (IP_AGENT_EXPORT): New.
17418 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17419 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17420 (about_to_request_buffer_space, trace_buffer_is_full)
17421 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17422 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17423 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17424 (traceframe_write_count, traceframes_created)
17425 (trace_state_variables)
17426 New renaming defines.
17427 (struct ipa_sym_addresses): New.
17428 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17429 (symbol_list): New.
17430 (ipa_sym_addrs): New.
17431 (all_tracepoint_symbols_looked_up): New.
17432 (in_process_agent_loaded): New.
17433 (write_e_ipa_not_loaded): New.
17434 (maybe_write_ipa_not_loaded): New.
17435 (tracepoint_look_up_symbols): New.
17436 (debug_threads) [IN_PROCESS_AGENT]: New.
17437 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17438 (UNKNOWN_SIDE_EFFECTS): New.
17439 (stop_tracing): New.
17440 (flush_trace_buffer): New.
17441 (stop_tracing_bkpt): New.
17442 (flush_trace_buffer_bkpt): New.
17443 (read_inferior_integer): New.
17444 (read_inferior_uinteger): New.
17445 (read_inferior_data_pointer): New.
17446 (write_inferior_data_pointer): New.
17447 (write_inferior_integer): New.
17448 (write_inferior_uinteger): New.
17449 (struct collect_static_trace_data_action): Delete.
17450 (enum tracepoint_type): New.
17451 (struct tracepoint) <type>: New field `type'.
17452 <actions_str, step_actions, step_actions_str>: Only include in
17454 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17455 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17456 (tracepoints): Use IP_AGENT_EXPORT.
17457 (last_tracepoint): Don't include in the IPA.
17458 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17459 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17460 (alloced_trace_state_variables): New.
17461 (trace_state_variables): Use IP_AGENT_EXPORT.
17462 (traceframe_t): Delete unused variable.
17463 (circular_trace_buffer): Don't include in the IPA.
17464 (trace_buffer_start): Delete.
17465 (struct trace_buffer_control): New.
17466 (trace_buffer_free): Delete.
17467 (struct ipa_trace_buffer_control): New.
17468 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17469 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17471 (trace_buffer_ctrl): New.
17472 (TRACE_BUFFER_CTRL_CURR): New.
17473 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17474 Reimplement as macros.
17475 (trace_buffer_wrap): Delete.
17476 (traceframe_write_count, traceframe_read_count)
17477 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17478 (struct tracepoint_hit_ctx) <type>: New field.
17479 (struct fast_tracepoint_ctx): New.
17480 (memory_barrier): New.
17482 (record_tracepoint_error): Update atomically in the IPA.
17483 (clear_inferior_trace_buffer): New.
17484 (about_to_request_buffer_space): New.
17485 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17486 updating the same buffer.
17487 (add_tracepoint): Default the tracepoint's type to trap
17488 tracepoint, and orig_size to -1.
17489 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17490 internal variables.
17491 (create_trace_state_variable): New parameter `gdb'. Handle it.
17492 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17493 (cmd_qtdp): Handle fast tracepoints.
17494 (cmd_qtdv): Adjust.
17495 (max_jump_pad_size): New.
17496 (gdb_jump_pad_head): New.
17497 (get_jump_space_head): New.
17498 (claim_jump_space): New.
17499 (sort_tracepoints): New.
17500 (MAX_JUMP_SIZE): New.
17501 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17503 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17504 support. Upload fast traceframes, and delete internal IPA
17506 (stop_tracing_handler): New.
17507 (flush_trace_buffer_handler): New.
17508 (cmd_qtstop): Upload fast tracepoints.
17509 (response_tracepoint): Handle fast tracepoints.
17510 (tracepoint_finished_step): Upload fast traceframes. Set the
17511 tracepoint hit context's tracepoint type.
17512 (handle_tracepoint_bkpts): New.
17513 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17514 type. Add comment about fast tracepoints.
17515 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17516 non-existing action_str field.
17517 (get_context_regcache): Handle fast tracepoints.
17518 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17520 (fast_tracepoint_from_jump_pad_address): New.
17521 (fast_tracepoint_from_ipa_tpoint_address): New.
17522 (collecting_t): New.
17523 (force_unlock_trace_buffer): New.
17524 (fast_tracepoint_collecting): New.
17526 (gdb_collect): New.
17527 (write_inferior_data_ptr): New.
17528 (target_tp_heap): New.
17529 (target_malloc): New.
17530 (download_agent_expr): New.
17532 (download_tracepoints): New.
17533 (download_trace_state_variables): New.
17534 (upload_fast_traceframes): New.
17535 (IPA_FIRST_TRACEFRAME): New.
17536 (IPA_NEXT_TRACEFRAME_1): New.
17537 (IPA_NEXT_TRACEFRAME): New.
17538 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17539 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17540 (gdb_jump_pad_buffer_end): New.
17541 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17542 (initialize_tracepoint): Adjust.
17543 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17544 buffer. Initialize the low module.
17545 * utils.c (PREFIX, TOOLNAME): New.
17546 (malloc_failure): Use PREFIX.
17547 (error): In the IPA, an error causes an exit.
17548 (fatal, warning): Use PREFIX.
17549 (internal_error): Use TOOLNAME.
17550 (NUMCELLS): Increase to 10.
17551 * configure, config.in: Regenerate.
17553 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17555 * server.c (handle_query) <qSupported>: Do two passes over the
17556 qSupported string to avoid nesting strtok.
17558 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17560 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17562 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17563 -Wl,--dynamic-list.
17564 * configure: Regenerate.
17565 * proc-service.list: New.
17567 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17569 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17572 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17574 * gdbreplay.c (remote_open): Check error return from socket() call by
17575 its equality to -1 not by it being negative.
17576 * remote-utils.c (remote_open): Likewise.
17578 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17580 * config.h: Regenerate.
17582 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17584 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17585 doesn't provide PTRACE_GET_THREAD_AREA.
17587 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17589 * linux-m68k-low.c: Include <asm/ptrace.h>
17590 (ps_get_thread_area): Implement.
17592 2010-05-03 Doug Evans <dje@google.com>
17594 * event-loop.c (struct callback_event): New struct.
17595 (callback_list): New global.
17596 (append_callback_event, delete_callback_event): New functions.
17597 (process_callback): New function.
17598 (start_event_loop): Call it.
17599 * remote-utils.c (NOT_SCHEDULED): Define.
17600 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17601 moved out of readchar.
17602 (readchar): Rewrite. Call reschedule before returning.
17603 (reset_readchar): New function.
17604 (remote_close): Call it.
17605 (process_remaining, reschedule): New functions.
17606 * server.h (callback_handler_func): New typedef.
17607 (append_callback_event, delete_callback_event): Declare.
17609 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17611 * proc-service.c (ps_pglobal_lookup): Use
17612 thread_db_look_up_one_symbol.
17613 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17614 parameter. Use it instead of all_symbols_looked_up.
17615 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17617 (all_symbols_looked_up): Don't declare.
17618 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17619 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17621 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17622 Set all_symbols_looked_up here.
17623 (thread_db_look_up_one_symbol): New.
17624 (thread_db_get_tls_address): Adjust.
17625 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17626 thread_db object on the heap, and tentatively set it in the
17628 (thread_db_init): Don't set all_symbols_looked_up here.
17629 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17631 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17633 * linux-low.c (linux_kill, linux_detach): Adjust.
17634 (status_pending_p_callback): Remove redundant statement. Check
17635 for !TARGET_WAITIKIND_IGNORE, instead of
17636 TARGET_WAITKIND_STOPPED.
17637 (handle_tracepoints): Make sure LWP is locked. Adjust.
17638 (linux_wait_for_event_1): Adjust.
17639 (linux_cancel_breakpoints): New.
17640 (unsuspend_one_lwp): New.
17641 (unsuspend_all_lwps): New.
17642 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17643 (send_sigstop_callback): Change return type to int, add new
17644 `except' parameter and handle it.
17645 (suspend_and_send_sigstop_callback): New.
17646 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17647 pass them down. If SUSPEND, also increment the lwp's suspend
17649 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17650 (need_step_over_p): Don't consider suspended LWPs.
17651 (start_step_over): Adjust.
17652 (proceed_one_lwp): Change return type to int, add new `except'
17653 parameter and handle it.
17654 (unsuspend_and_proceed_one_lwp): New.
17655 (proceed_all_lwps): Use find_inferior instead of
17657 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17658 also decrement the suspend count of LWPs. Pass `except' down,
17659 instead of hacking its suspend count.
17660 (linux_pause_all): Add `freeze' parameter. Adjust.
17661 (linux_unpause_all): New.
17662 (linux_target_ops): Install linux_unpause_all.
17663 * server.c (handle_status): Adjust.
17664 * target.h (struct target_ops): New fields `unpause_all' and
17665 `cancel_breakpoints'. Add new parameter to `pause_all'.
17666 (pause_all): Add new `freeze' parameter.
17667 (unpause_all): New.
17668 (cancel_breakpoints): New.
17669 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17670 cancel breakpoints.
17671 (cmd_qtstart): Pause threads.
17672 (stop_tracing): Pause threads, and cancel breakpoints.
17673 * win32-low.c (win32_target_ops): Adjust.
17675 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17677 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17678 the inferior right away from here...
17679 (linux_wait_1): ... to here, and adjust to check the thread's
17680 last_resume_kind instead of the lwp's step or stop_expected flags.
17682 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17684 * README: Use consistent `GDB' and `GDBserver' spellings.
17686 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17688 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17689 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17690 (linux_detach_one_lwp): Assume the lwp is stopped.
17691 (any_thread_of): Delete.
17692 (linux_detach): Stop all lwps here. Don't blindly delete all
17694 (delete_lwp_callback): New.
17695 (linux_mourn): Delete all lwps of the process that is gone.
17696 (linux_wait_1): Don't delete the last lwp of the process here.
17697 * mem-break.h (mark_breakpoints_out): Declare.
17698 * mem-break.c (mark_breakpoints_out): New.
17699 (free_all_breakpoints): Use it.
17700 * server.c (handle_target_event): If the process is gone, mark
17702 * thread-db.c (struct thread_db) <create_bp>: New field.
17703 (thread_db_enable_reporting): Fix prototype. Store a thread event
17704 breakpoint reference in the thread_db struct.
17705 (thread_db_load_search): Clear the thread_db object.
17706 (try_thread_db_load_1): Ditto.
17707 (switch_to_process): New.
17708 (disable_thread_event_reporting): Use it.
17709 (remove_thread_event_breakpoints): New.
17710 (thread_db_detach, thread_db_mourn): Use it.
17712 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17714 * linux-low.c (linux_enable_event_reporting): New.
17715 (linux_wait_for_event_1, handle_extended_wait): Use it.
17717 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17719 * linux-low.c (linux_kill_one_lwp, linux_kill)
17720 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17721 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17722 SIGSTOP even if the LWP is stopped.
17723 (send_sigstop_callback): New.
17724 (stop_all_lwps): Use send_sigstop_callback instead.
17725 (linux_resume_one_thread): Adjust.
17726 (proceed_one_lwp): Still proceed an LWP that the client has
17727 requested to stop, if we haven't reported it as stopped yet. Make
17728 sure that LWPs the client want stopped, have a pending SIGSTOP.
17730 2010-04-26 Doug Evans <dje@google.com>
17732 * server.c (handle_general_set): Make static.
17734 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17735 Print received char after testing for error/eof instead of before.
17736 (input_interrupt): Tweak comment.
17738 2010-04-23 Doug Evans <dje@google.com>
17740 * server.c (start_inferior): Print inferior argv if --debug.
17742 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17744 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17745 * nto-x86-low.c: Include server.h
17747 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17749 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17750 be consistent with other sources of this directory.
17751 (init_registers_amd64): Correct name of source file of this function
17754 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17756 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17757 64-bit executables.
17759 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17761 * win32-i386-low.c: Add 64-bit support.
17762 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17763 (init_registers_amd64): Declare.
17764 (mappings): Add 64-bit version of array.
17765 (init_windows_x86): New function.
17766 (the_low_target): Change init_arch field to init_windows_x86.
17768 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17770 * win32-low.c: Adapt to support also 64-bit architecture.
17771 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17772 (get_image_name): Use SIZE_T type for local variable `done'.
17773 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17774 (toolhelp_get_dll_name): Idem.
17775 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17776 Use uintptr_t typecast to avoid warning.
17777 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17778 (handle_exception): Use phex_nz to avoid warning.
17779 (win32_wait): Remove unused local variable `process'.
17781 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17783 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17786 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17788 * configure.ac: Use `ws2_32' library for srv_mingw.
17789 * configure: Regenerate.
17790 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17791 * remote-utils.c: Likewise.
17793 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17795 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17796 if __x86_64__ is defined.
17798 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17800 * configure: Regenerate.
17802 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17804 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17805 * target.h (target_ops): New get_tib_address field.
17806 * win32-low.h (win32_thread_info): Add thread_local_base field.
17807 * win32-low.c (child_add_thread): Add tlb argument.
17808 Set thread_local_base field to TLB.
17809 (get_child_debug_event): Adapt to child_add_thread change.
17810 (win32_get_tib_address): New function.
17811 (win32_target_ops): Set get_tib_address field to
17812 win32_get_tib_address.
17813 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17815 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17817 * linux-low.c (linux_mourn): Also remove the process.
17818 * server.c (handle_target_event): Don't remove the process here.
17819 * nto-low.c (nto_mourn): New.
17820 (nto_target_ops): Install it.
17821 * spu-low.c (spu_mourn): New.
17822 (spu_target_ops): Install it.
17823 * win32-low.c (win32_mourn): New.
17824 (win32_target_ops): Install it.
17826 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17828 * server.h (buffer_xml_printf): Remove redundant `;'.
17830 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17832 * regcache.c (set_register_cache): Invalidate regcaches before
17833 changing the register cache layout.
17834 (regcache_invalidate_one): Allow a NULL regcache.
17835 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17836 regcaches before changing the register cache layout or the target
17839 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17841 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17842 variable warning on Linux/x86-64.
17844 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17846 GDBserver disconnected tracing support.
17848 * linux-low.c (linux_remove_process): Delete.
17849 (add_lwp): Don't set last_resume_kind here.
17850 (linux_kill): Use `mourn'.
17851 (linux_detach): Use `thread_db_detach', and `mourn'.
17852 (linux_mourn): New.
17853 (linux_attach_lwp_1): Adjust comment.
17854 (linux_attach): last_resume_kind moved the thread_info; adjust.
17855 (status_pending_p_callback): Adjust.
17856 (linux_wait_for_event_1): Adjust.
17857 (count_events_callback, select_singlestep_lwp_callback)
17858 (select_event_lwp_callback, cancel_breakpoints_callback)
17859 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17860 (proceed_one_lwp): Adjust.
17861 (linux_async): Add debug output.
17862 (linux_thread_stopped): New.
17863 (linux_pause_all): New.
17864 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17866 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17867 (thread_db_free): Delete declaration.
17868 (thread_db_detach, thread_db_mourn): Declare.
17869 * thread-db.c (thread_db_init): Use thread_db_mourn.
17870 (thread_db_free): Delete, split in two.
17871 (disable_thread_event_reporting): New.
17872 (thread_db_detach): New.
17873 (thread_db_mourn): New.
17875 * server.h (struct thread_info) <last_resume_kind>: New field.
17876 <attached>: Add comment.
17877 <gdb_detached>: New field.
17878 (handler_func): Change return type to int.
17879 (handle_serial_event, handle_target_event): Ditto.
17880 (gdb_connected): Declare.
17882 (disconnected_tracing): Declare.
17883 (stop_tracing): Declare.
17885 * server.c (handle_query) <qSupported>: Report support for
17886 disconnected tracing.
17887 (queue_stop_reply_callback): Account for running threads.
17888 (gdb_wants_thread_stopped): New.
17889 (gdb_wants_all_threads_stopped): New.
17890 (gdb_reattached_process): New.
17891 (handle_status): Clear the `gdb_detached' flag of all processes.
17892 In all-stop, stop all threads.
17893 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17894 (process_serial_event): If the remote connection breaks, or if an
17895 exit was forced with "monitor exit", force an event loop exit.
17896 Handle disconnected tracing on detach.
17897 (handle_serial_event): Adjust.
17898 (handle_target_event): If GDB isn't connected, forward events back
17899 to the inferior, unless the last process exited, in which case,
17900 exit gdbserver. Adjust interface.
17902 * remote-utils.c (remote_open): Don't block in accept. Instead
17903 register an event loop source on the listen socket file
17904 descriptor. Refactor bits into ...
17905 (listen_desc): ... this new global.
17906 (gdb_connected): ... this new function.
17907 (enable_async_notification): ... this new function.
17908 (handle_accept_event): ... this new function.
17909 (remote_close): Clear remote_desc.
17911 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17913 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17915 (mourn_inferior): Define.
17916 (target_process_qsupported): Avoid the dangling else problem.
17917 (thread_stopped): Define.
17918 (pause_all): Define.
17919 (target_waitstatus_to_string): Declare.
17920 * target.c (target_waitstatus_to_string): New.
17922 * tracepoint.c (tracing): Make extern.
17923 (disconnected_tracing): New.
17924 (stop_tracing): Make extern. Handle tracing stops due to GDB
17926 (cmd_qtdisconnected): New.
17927 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17928 (handle_tracepoint_general_set): Handle QTDisconnected.
17930 * event-loop.c (event_handler_func): Change return type to int.
17931 (process_event): Bail out if the event handler wants the event
17933 (handle_file_event): Ditto.
17934 (start_event_loop): Bail out if the event handler wants the event
17937 * nto-low.c (nto_target_ops): Adjust.
17938 * spu-low.c (spu_wait): Don't remove the process here.
17939 (spu_target_ops): Adjust.
17940 * win32-low.c (win32_wait): Don't remove the process here.
17941 (win32_target_ops): Adjust.
17943 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17945 * regcache.c (realloc_register_cache): Invalidate inferior's
17946 regcache before recreating it.
17948 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17950 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17952 2010-04-09 Stan Shebs <stan@codesourcery.com>
17953 Pedro Alves <pedro@codesourcery.com>
17955 * server.h (LONGEST): New.
17956 (struct thread_info) <while_stepping>: New field.
17957 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17959 (initialize_tracepoint, handle_tracepoint_general_set)
17960 (handle_tracepoint_query, tracepoint_finished_step)
17961 (tracepoint_was_hit, release_while_stepping_state_list):
17962 (current_traceframe): Declare.
17963 * server.c (handle_general_set): Handle tracepoint packets.
17964 (read_memory): New.
17965 (write_memory): New.
17966 (handle_search_memory_1): Use read_memory.
17967 (handle_query): Report support for conditional tracepoints, trace
17968 state variables, and tracepoint sources. Handle tracepoint
17970 (main): Initialize the tracepoints module.
17971 (process_serial_event): Handle traceframe reads/writes.
17973 * linux-low.c (handle_tracepoints): New.
17974 (linux_wait_1): Call it.
17975 (linux_resume_one_lwp): Handle while-stepping.
17976 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17977 (linux_target_ops): Install them.
17978 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17980 * linux-x86-low.c (x86_supports_tracepoints): New.
17981 (the_low_target). Install it.
17983 * mem-break.h (delete_breakpoint): Declare.
17984 * mem-break.c (delete_breakpoint): Make external.
17986 * target.h (struct target_ops): Add `supports_tracepoints',
17987 `read_pc', and `write_pc' fields.
17988 (target_supports_tracepoints): Define.
17989 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17992 * regcache.h (struct regcache) <registers_owned>: New field.
17993 (init_register_cache, regcache_cpy): Declare.
17994 (regcache_read_pc, regcache_write_pc): Declare.
17995 (register_cache_size): Declare.
17996 (supply_regblock): Declare.
17997 * regcache.c (init_register_cache): New.
17998 (new_register_cache): Use it.
17999 (regcache_cpy): New.
18000 (register_cache_size): New.
18001 (supply_regblock): New.
18002 (regcache_read_pc, regcache_write_pc): New.
18004 * tracepoint.c: New.
18006 * Makefile.in (OBS): Add tracepoint.o.
18007 (tracepoint.o): New rule.
18009 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18011 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18013 (i386-mmx.c): Likewise.
18014 (i386-mmx-linux.o): Likewise.
18015 (i386-mmx-linux.c): Likewise.
18017 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18018 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18019 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18020 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18022 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18023 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18024 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18026 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18028 * Makefile.in (clean): Updated.
18030 (i386-avx.c): Likewise.
18031 (i386-avx-linux.o): Likewise.
18032 (i386-avx-linux.c): Likewise.
18033 (amd64-avx.o): Likewise.
18034 (amd64-avx.c): Likewise.
18035 (amd64-avx-linux.o): Likewise.
18036 (amd64-avx-linux.c): Likewise.
18038 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18039 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18040 (srv_amd64_regobj): Add amd64-avx.o.
18041 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18042 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18043 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18044 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18045 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18046 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18047 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18049 * i387-fp.c: Include "i386-xstate.h".
18051 (i387_cache_to_xsave): Likewise.
18052 (i387_xsave_to_cache): Likewise.
18053 (x86_xcr0): Likewise.
18055 * i387-fp.h (i387_cache_to_xsave): Likewise.
18056 (i387_xsave_to_cache): Likewise.
18057 (x86_xcr0): Likewise.
18059 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18060 * linux-crisv32-low.c (target_regsets): Likewise.
18061 * linux-m68k-low.c (target_regsets): Likewise.
18062 * linux-mips-low.c (target_regsets): Likewise.
18063 * linux-ppc-low.c (target_regsets): Likewise.
18064 * linux-s390-low.c (target_regsets): Likewise.
18065 * linux-sh-low.c (target_regsets): Likewise.
18066 * linux-sparc-low.c (target_regsets): Likewise.
18067 * linux-xtensa-low.c (target_regsets): Likewise.
18069 * linux-low.c: Include <sys/uio.h>.
18070 (regsets_fetch_inferior_registers): Support nt_type.
18071 (regsets_store_inferior_registers): Likewise.
18072 (linux_process_qsupported): New.
18073 (linux_target_ops): Add linux_process_qsupported.
18075 * linux-low.h (regset_info): Add nt_type.
18076 (linux_target_ops): Add process_qsupported.
18078 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18080 (init_registers_i386_avx_linux): New.
18081 (init_registers_amd64_avx_linux): Likewise.
18082 (xmltarget_i386_linux_no_xml): Likewise.
18083 (xmltarget_amd64_linux_no_xml): Likewise.
18084 (PTRACE_GETREGSET): Likewise.
18085 (PTRACE_SETREGSET): Likewise.
18086 (x86_fill_xstateregset): Likewise.
18087 (x86_store_xstateregset): Likewise.
18088 (use_xml): Likewise.
18089 (x86_linux_update_xmltarget): Likewise.
18090 (x86_linux_process_qsupported): Likewise.
18091 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18092 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18093 init_registers_i386_linux here. Call
18094 x86_linux_update_xmltarget.
18095 (the_low_target): Add x86_linux_process_qsupported.
18097 * server.c (handle_query): Call target_process_qsupported.
18099 * target.h (target_ops): Add process_qsupported.
18100 (target_process_qsupported): New.
18102 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18104 * inferiors.c (add_thread): Set last_status kind to
18105 TARGET_WAITKIND_IGNORE.
18106 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18107 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18108 (linux_wait_1): Move `thread' local definition to block that uses
18109 it. Don't NULL initialize `event_child'.
18110 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18111 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18112 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18114 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18116 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18117 an extended waitstatus, or by a watchpoint.
18118 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18119 thread was stepping or has been stopped by a watchpoint.
18121 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18123 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18124 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18125 of another, then delete the previous, and validate all
18127 (validate_inserted_breakpoint): New.
18128 (delete_disabled_breakpoints): New.
18129 (validate_breakpoints): New.
18130 (check_mem_read): Validate breakpoints before trusting their
18131 shadow. Delete disabled breakpoints.
18132 (check_mem_write): Validate breakpoints before trusting they
18133 should be inserted. Delete disabled breakpoints.
18134 * mem-break.h (validate_breakpoints):
18135 * server.c (handle_query): Validate breakpoints when we see a
18138 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18140 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18141 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18142 if we could tell there's a GDB breakpoint at stop_pc.
18143 (need_step_over_p): Don't do a step over if we find a GDB
18144 breakpoint at the resume PC.
18146 * mem-break.c (struct raw_breakpoint): New.
18147 (enum bkpt_type): New type `gdb_breakpoint'.
18148 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18149 fields. New field `raw'.
18150 (find_raw_breakpoint_at): New.
18151 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18152 breakpoint instead.
18153 (set_breakpoint_at): Adjust.
18154 (delete_raw_breakpoint): New.
18155 (release_breakpoint): New.
18156 (delete_breakpoint): Rename to...
18157 (delete_breakpoint_1): ... this. Add proc parameter. Use
18158 release_breakpoint. Return ENOENT.
18159 (delete_breakpoint): Reimplement.
18160 (find_breakpoint_at): Delete.
18161 (find_gdb_breakpoint_at): New.
18162 (delete_breakpoint_at): Delete.
18163 (set_gdb_breakpoint_at): New.
18164 (delete_gdb_breakpoint_at): New.
18165 (gdb_breakpoint_here): New.
18166 (set_reinsert_breakpoint): Use release_breakpoint.
18167 (uninsert_breakpoint): Rename to ...
18168 (uninsert_raw_breakpoint): ... this.
18169 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18170 (reinsert_raw_breakpoint): Change parameter type to
18172 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18174 (check_breakpoints): Adjust. Use release_breakpoint.
18175 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18176 (breakpoint_inserted_here): Ditto.
18177 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18178 Don't trust the breakpoint's shadow if it is not inserted.
18179 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18180 (delete_all_breakpoints): Adjust.
18181 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18182 use delete_breakpoint_1.
18184 * mem-break.h (breakpoints_supported): Delete declaration.
18185 (set_gdb_breakpoint_at): Declare.
18186 (gdb_breakpoint_here): Declare.
18187 (delete_breakpoint_at): Delete.
18188 (delete_gdb_breakpoint_at): Declare.
18190 * server.h (struct raw_breakpoint): Forward declare.
18191 (struct process_info): New field `raw_breakpoints'.
18193 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18196 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18198 * linux-low.c (status_pending_p_callback): Fix comment.
18199 (linux_wait_for_event_1): Move most of the internal breakpoint
18200 handling from here...
18201 (linux_wait_1): ... to here.
18202 (count_events_callback): New.
18203 (select_singlestep_lwp_callback): New.
18204 (select_event_lwp_callback): New.
18205 (cancel_breakpoints_callback): New.
18206 (select_event_lwp): New.
18207 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18208 priority to all LWPs that have had events that should be reported
18209 to the client. Cancel breakpoints when about to reporting the
18210 event to the client, not while stopping lwps. No longer cancel
18211 finished single-steps here.
18212 (cancel_finished_single_step): Delete.
18213 (cancel_finished_single_steps): Delete.
18215 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18217 * mem-break.c (enum bkpt_type): New.
18218 (struct breakpoint): New field `type'.
18219 (set_breakpoint_at): Change return type to struct breakpoint
18220 pointer. Set type to `other_breakpoint' by default.
18221 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18222 in the breakpoint list.
18223 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18224 (reinsert_breakpoint): Rename to ...
18225 (reinsert_raw_breakpoint): ... this.
18226 (reinsert_breakpoints_at): Adjust.
18227 * mem-break.h (struct breakpoint): Declare.
18228 (set_breakpoint_at): Change return type to struct breakpoint
18231 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18233 * server.c (handle_query): Assign, not compare.
18235 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18237 Teach linux gdbserver to step-over-breakpoints.
18239 * linux-low.c (can_hardware_single_step): New.
18240 (supports_breakpoints): New.
18241 (handle_extended_wait): If stopping threads, read the stop pc of
18242 the new cloned LWP.
18244 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18245 low target doesn't support retrieving the PC.
18246 (add_lwp): Set last_resume_kind to resume_continue.
18247 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18248 (linux_attach): Don't clear stop_expected. Set the lwp's
18249 last_resume_kind to resume_stop.
18250 (linux_detach_one_lwp): Don't check for removed breakpoints.
18251 (check_removed_breakpoint): Delete.
18252 (status_pending_p): Rename to ...
18253 (status_pending_p_callback): ... this. Don't check for removed
18254 breakpoints. Don't consider threads that are stopped from GDB's
18256 (linux_wait_for_lwp): Always read the stop_pc here.
18257 (cancel_breakpoint): New.
18258 (step_over_bkpt): New global.
18259 (linux_wait_for_event_1): Implement stepping over breakpoints.
18260 (gdb_wants_lwp_stopped): New.
18261 (gdb_wants_all_stopped): New.
18262 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18263 single-step traps here. Store the thread's last reported target
18265 (send_sigstop): Don't clear stop_expected. Always set it,
18267 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18268 (cancel_finished_single_step): New.
18269 (cancel_finished_single_steps): New.
18270 (wait_for_sigstop): Don't cancel finished single-step traps here.
18271 (linux_resume_one_lwp): Don't check for removed breakpoints.
18272 Don't set `step' on non-hardware step archs.
18273 (linux_set_resume_request): Ignore resume_stop requests if already
18274 stopping or stopped. Set the lwp's last_resume_kind.
18275 (resume_status_pending_p): Don't check for removed breakpoints.
18276 (need_step_over_p): New.
18277 (start_step_over): New.
18278 (finish_step_over): New.
18279 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18280 requests. Clear the thread's last reported target waitstatus.
18281 Don't use the `suspended' flag. Don't consider pending breakpoints.
18282 (linux_resume): Start a step-over if necessary.
18283 (proceed_one_lwp): New.
18284 (proceed_all_lwps): New.
18285 (unstop_all_lwps): New.
18286 * linux-low.h (struct lwp_info): Rewrite comment for the
18287 `suspended' flag. Add the `stop_pc' field. Delete the
18288 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18289 Add `'last_resume_kind' and `need_step_over' fields.
18290 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18291 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18292 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18293 (set_raw_breakpoint_at): New.
18294 (set_breakpoint_at): Rewrite to use it.
18295 (reinsert_breakpoint_handler): Delete.
18296 (set_reinsert_breakpoint): New.
18297 (reinsert_breakpoint_by_bp): Delete.
18298 (delete_reinsert_breakpoints): New.
18299 (uninsert_breakpoint): Rewrite.
18300 (uninsert_breakpoints_at): New.
18301 (reinsert_breakpoint): Rewrite.
18302 (reinsert_breakpoints_at): New.
18303 (check_breakpoints): Rewrite.
18304 (breakpoint_here): New.
18305 (breakpoint_inserted_here): New.
18306 (check_mem_read): Adjust.
18307 * mem-break.h (breakpoints_supported, breakpoint_here)
18308 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18309 (reinsert_breakpoint_by_bp): Delete declaration.
18310 (delete_reinsert_breakpoints): Declare.
18311 (reinsert_breakpoint): Delete declaration.
18312 (reinsert_breakpoints_at): Declare.
18313 (uninsert_breakpoint): Delete declaration.
18314 (uninsert_breakpoints_at): Declare.
18315 (check_breakpoints): Adjust prototype.
18316 * server.h: Adjust include order.
18317 (struct thread_info): Declare here. Add a `last_status' field.
18319 2010-03-23 Michael Snyder <msnyder@vmware.com>
18321 * server.c (crc32): New function.
18322 (handle_query): Add handling for 'qCRC:' request.
18324 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18326 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18327 lwp had been stopped by a watchpoint.
18329 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18331 * server.h (internal_error): Declare.
18332 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18333 * utils.c (internal_error): New function.
18335 2010-03-15 Andreas Schwab <schwab@redhat.com>
18337 * configure.srv: Fix typo setting srv_regobj.
18339 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18341 * linux-low.c (fetch_register): Avoid passing a non string literal
18343 (usr_store_inferior_registers): Ditto.
18345 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18347 * linux-low.c (linux_write_memory): Bail out early if peeking
18350 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18352 * linux-low.h (struct lwp_info): New fields
18353 `stopped_by_watchpoint' and `stopped_data_address'.
18354 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18355 here, and cache them in the lwp object.
18356 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18358 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18360 (linux_stopped_by_watchpoint): Rewrite.
18361 (linux_stopped_data_address): Rewrite.
18363 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18365 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18366 switching the current inferior, not before.
18368 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18370 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18371 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18372 i386-linux.c and amd64-linux.c.
18373 (reg-i386.o): Removed.
18374 (reg-i386.c): Likewise.
18375 (reg-i386-linux.o): Likewise.
18376 (reg-i386-linux.c): Likewise.
18377 (reg-x86-64.o): Likewise.
18378 (reg-x86-64.c): Likewise.
18379 (reg-x86-64-linux.o): Likewise.
18380 (reg-x86-64-linux.c): Likewise.
18382 (i386.c): Likewise.
18383 (i386-linux.o): Likewise.
18384 (i386-linux.c): Likewise.
18385 (amd64.o): Likewise.
18386 (amd64.c): Likewise.
18387 (amd64-linux.o): Likewise.
18388 (amd64-linux.c): Likewise.
18390 * configure.srv (srv_i386_regobj): New.
18391 (srv_i386_linux_regobj): Likewise.
18392 (srv_amd64_regobj): Likewise.
18393 (srv_amd64_linux_regobj): Likewise.
18394 (srv_i386_32bit_xmlfiles): Likewise.
18395 (srv_i386_64bit_xmlfiles): Likewise.
18396 (srv_i386_xmlfiles): Likewise.
18397 (srv_amd64_xmlfiles): Likewise.
18398 (srv_i386_linux_xmlfiles): Likewise.
18399 (srv_amd64_linux_xmlfiles): Likewise.
18400 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18401 srv_xmlfiles to $srv_i386_xmlfiles.
18402 (i[34567]86-*-mingw32ce*): Likewise.
18403 (i[34567]86-*-mingw*): Likewise.
18404 (i[34567]86-*-nto*): Likewise.
18405 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18406 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18407 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18408 (x86_64-*-linux*): Likewise.
18410 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18411 (init_registers_amd64_linux): New.
18412 (x86_arch_setup): Replace init_registers_x86_64_linux with
18413 init_registers_amd64_linux.
18415 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18417 * configure.ac: Check for libdl. If it is not available link against
18418 static libthread_db.
18419 * configure: Regenerate.
18421 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18425 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18426 handing a read watchpoint.
18427 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18429 2010-02-12 Doug Evans <dje@google.com>
18431 * linux-low.c (linux_supports_tracefork_flag): Document.
18432 (linux_look_up_symbols): Add comment.
18434 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18436 * regcache.c (supply_register): Clear regcache if buf is NULL.
18438 2010-02-02 Nicolas Roche <roche@sourceware.org>
18439 Joel Brobecker <brobecker@adacore.com>
18441 * inferiors.c (find_inferior): Add function documentation.
18442 (unloaded_dll): Handle the case where the unloaded dll has not
18443 been previously registered in the dll list.
18445 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18447 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18448 (thumb2_breakpoint): New.
18449 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18451 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18453 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18454 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18457 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18459 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18461 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18463 * linux-s390-low.c (s390_collect_ptrace_register)
18464 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18466 2010-01-21 Doug Evans <dje@google.com>
18468 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18469 (PTRACE_ARG4_TYPE): New macro.
18470 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18471 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18472 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18473 (usr_store_inferior_registers): Ditto.
18474 (linux_read_memory, linux_write_memory): Ditto.
18475 (linux_test_for_tracefork): Ditto.
18477 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18478 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18480 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18482 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18485 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18487 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18488 prototype to take a regcache. Adjust.
18490 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18492 * regcache.h (struct thread_info): Forward declare.
18493 (struct regcache): New.
18494 (new_register_cache): Adjust prototype.
18495 (get_thread_regcache): Declare.
18496 (free_register_cache): Adjust prototype.
18497 (registers_to_string, registers_from_string): Ditto.
18498 (supply_register, supply_register_by_name, collect_register)
18499 (collect_register_as_string, collect_register_by_name): Ditto.
18500 * regcache.c (struct inferior_regcache_data): Delete.
18501 (get_regcache): Rename to ...
18502 (get_thread_regcache): ... this. Adjust. Switch inferior before
18503 fetching registers.
18504 (regcache_invalidate_one): Adjust.
18505 (regcache_invalidate): Fix prototype.
18506 (new_register_cache): Return the new register cache.
18507 (free_register_cache): Change prototype.
18508 (realloc_register_cache): Adjust.
18509 (registers_to_string): Change prototype to take a regcache. Adjust.
18510 (registers_from_string): Ditto.
18511 (register_data): Ditto.
18512 (supply_register): Ditto.
18513 (supply_register_by_name): Ditto.
18514 (collect_register): Ditto.
18515 (collect_register_as_string): Ditto.
18516 (collect_register_by_name): Ditto.
18517 * server.c (process_serial_event): Adjust.
18518 * linux-low.h (regset_fill_func, regset_store_func): Change
18520 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18522 * linux-low.c (get_stop_pc): Adjust.
18523 (check_removed_breakpoint): Adjust.
18524 (linux_wait_for_event): Adjust.
18525 (linux_resume_one_lwp): Adjust.
18526 (fetch_register): Add regcache parameter. Adjust.
18527 (usr_store_inferior_registers): Ditto.
18528 (regsets_fetch_inferior_registers): Ditto.
18529 (regsets_store_inferior_registers): Ditto.
18530 (linux_fetch_registers, linux_store_registers): Ditto.
18531 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18533 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18535 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18536 prototype to take a regcache.
18537 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18538 * remote-utils.c (convert_ascii_to_int, outreg)
18539 (prepare_resume_reply): Change prototype to take a regcache.
18541 * target.h (struct target_ops) <fetch_registers, store_registers>:
18542 Change prototype to take a regcache.
18543 (fetch_inferior_registers, store_inferior_registers): Change
18544 prototype to take a regcache. Adjust.
18545 * proc-service.c (ps_lgetregs): Adjust.
18546 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18547 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18548 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18549 take a regcache. Adjust.
18550 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18551 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18552 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18553 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18554 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18555 (cris_cannot_fetch_register):
18556 (cris_breakpoint_at): Change prototype to take a regcache.
18558 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18559 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18560 to take a regcache. Adjust.
18561 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18563 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18564 take a regcache. Adjust.
18565 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18566 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18567 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18568 * linux-mips-low.c (mips_get_pc):
18569 (mips_set_pc): Change prototype to take a regcache. Adjust.
18570 (mips_reinsert_addr): Adjust.
18571 (mips_collect_register): Change prototype to take a regcache.
18573 (mips_supply_register):
18574 (mips_collect_register_32bit, mips_supply_register_32bit)
18575 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18576 (mips_store_fpregset): Ditto.
18577 * linux-ppc-low.c (ppc_supply_ptrace_register)
18578 (ppc_supply_ptrace_register): Ditto.
18579 (parse_spufs_run): Adjust.
18580 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18581 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18582 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18583 take a regcache. Adjust.
18584 * linux-s390-low.c (s390_collect_ptrace_register)
18585 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18586 (s390_set_pc): Change prototype to take a regcache. Adjust.
18587 (s390_arch_setup): Adjust.
18588 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18589 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18590 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18591 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18592 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18594 (sparc_breakpoint_at): Adjust.
18595 * linux-xtensa-low.c (xtensa_fill_gregset):
18596 (xtensa_store_gregset):
18597 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18598 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18599 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18600 prototype to take a regcache. Adjust.
18601 * win32-arm-low.c (arm_fetch_inferior_register)
18602 (arm_store_inferior_register): Change prototype to take a
18604 * win32-i386-low.c (i386_fetch_inferior_register)
18605 (i386_store_inferior_register): Change prototype to take a
18607 * win32-low.c (child_fetch_inferior_registers)
18608 (child_store_inferior_registers): Change prototype to take a
18610 (win32_wait): Adjust.
18611 (win32_fetch_inferior_registers): Change prototype to take a
18613 (win32_store_inferior_registers): Adjust.
18614 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18615 store_inferior_register>: Change prototype to take a regcache.
18617 2010-01-20 Doug Evans <dje@google.com>
18619 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18621 (linux_wait_for_event1, linux_init_signals): Ditto.
18622 (W_STOPCODE): Provide definition if missing.
18624 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18626 * linux-low.c (linux_core_of_thread): New.
18627 (compare_ints, show_process, list_threads): New.
18628 (linux_qxfer_osdata): Report threads and cores.
18629 (linux_target_op): Register linux_core_of_thread.
18630 * remote-utils.c (prepare_resume_reply): Report the core.
18631 (buffer_xml_printf): Support %d specifier.
18632 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18634 (handle_query): Handle qXfer:threads. Announce availability
18636 * target.h (struct target_ops): New field core_of_thread.
18638 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18640 * Makefile.in (clean): Remove new generated files.
18641 (reg-s390.o, reg-s390.c): Remove rules.
18642 (reg-s390x.o, reg-s390x.c): Likewise.
18643 (s390-linux32.o, s390-linux32.c): Add rules.
18644 (s390-linux64.o, s390-linux64.c): Likewise.
18645 (s390x-linux64.o, s390x-linux64.c): Likewise.
18646 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18647 * linux-s390-low.c: Include <elf.h>.
18648 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18649 (init_registers_s390): Remove prototype.
18650 (init_registers_s390x): Likewise.
18651 (init_registers_s390_linux32): Add prototype.
18652 (init_registers_s390_linux64): Likewise.
18653 (init_registers_s390x_linux64): Likewise.
18654 (s390_num_regs_3264): New define.
18655 (s390_regmap_3264): New global variable.
18656 (s390_cannot_fetch_register): Remove obsolete check.
18657 (s390_cannot_store_register): Likewise.
18658 (s390_collect_ptrace_register): Handle upper/lower register halves.
18659 (s390_supply_ptrace_register): Likewise.
18660 (s390_fill_gregset): Update to register number changes.
18661 (s390_get_hwcap): New routine.
18662 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18663 Install appropriate regmap and register set.
18665 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18667 * server.c (gdbserver_version): Update copyright year to 2010.
18668 * gdbreplay.c (gdbreplay_version): Likewise.
18670 2009-12-28 Doug Evans <dje@google.com>
18672 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18673 elf/external.h. Include <elf.h> instead but only if necessary.
18675 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18677 * linux-low.c (linux_remove_process): Remove `detaching'
18678 parameter. Don't release/detach from thread_db here.
18679 (linux_kill): Release/detach from thread_db here, ...
18680 (linux_detach): ... and here, before actually detaching.
18681 (linux_wait_1): ... and here, when a process exits.
18682 * thread-db.c (any_thread_of): New.
18683 (thread_db_free): Switch the current inferior to a thread of the
18686 2009-12-21 Doug Evans <dje@google.com>
18688 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18690 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18691 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18692 warning ifndef __NR_tkill. Move setting of errno there too.
18693 Delete unnecessary resetting of errno after syscall.
18694 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18696 * configure.ac: Check for dladdr.
18697 * config.in: Regenerate.
18698 * configure: Regenerate.
18699 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18700 (try_thread_db_load): Update.
18702 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18704 2009-12-18 Doug Evans <dje@google.com>
18706 * event-loop.c: Include unistd.h if it exists.
18708 * linux-low.c (my_waitpid): Move definition away from being in
18709 between linux_tracefork_child/linux_test_for_tracefork.
18711 * gdb_proc_service.h (psaddr_t): Fix type.
18712 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18713 signature to match glibc.
18715 2009-12-16 Doug Evans <dje@google.com>
18717 * linux-low.c (linux_read_memory): Fix argument to read.
18719 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18721 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18722 events, don't leave current_inferior pointing at null.
18724 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18726 * win32-low.c (LOG): Delete.
18727 (OUTMSG): Output to stderr.
18728 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18729 on compile time LOG macro.
18730 (win32_wait): Fix debug output.
18732 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18734 * win32-low.c (win32_add_one_solib): If the dll name is
18735 "ntdll.dll", prepend the system directory to the dll path.
18737 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18739 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18741 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18742 Vladimir Prus <vladimir@codesourcery.com>
18744 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18745 * configure.ac: Check for __mcoldfire__ and set
18746 gdb_cv_m68k_is_coldfire.
18747 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18748 reg-cf.o and reg-m68k.o.
18749 * configure: Regenerated.
18751 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18753 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18754 Pass it to thread_db_free.
18755 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18756 proper `detaching' argument to linux_remove_process.
18757 * linux-low.h (thread_db_free): Add `detaching' parameter.
18758 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18760 (thread_db_free): Add `detaching' parameter. Only
18761 call td_ta_clear_event if detaching from process.
18763 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18765 * thread-db.c (thread_db_free): Fix typo.
18767 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18770 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18772 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18774 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18775 with an i686 compiler.
18776 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18778 * configure: Rebuilt.
18780 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18784 * server.c (handle_search_memory_1): Correct read_addr initialization
18785 in loop for searching subsequent chunks.
18787 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18789 * configure.ac: New --with-libthread-db option.
18790 * thread-db.c: Allow direct dependence on libthread_db.
18791 (thread_db_free): Adjust.
18792 * config.in: Regenerate.
18793 * configure: Likewise.
18795 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18798 * thread-db.c (attach_thread): New function.
18799 (maybe_attach_thread): Return success/failure.
18800 (find_new_threads_callback): Adjust.
18801 (thread_db_find_new_threads): Loop until no new threads.
18803 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18805 * proc-service.c (ps_lgetregs): Formatting.
18807 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18809 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18810 * configure.ac: Adjust.
18811 * linux-low.h (struct process_info_private): Move members to struct
18813 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18814 * linux-low.c (linux_remove_process): Adjust.
18815 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18816 * server.c (handle_query): Move code ...
18817 (handle_monitor_command): ... here. New function.
18818 * target.h (struct target_ops): New member.
18819 * thread-db.c (struct thread_db): New.
18820 (libthread_db_search_path): New variable.
18821 (thread_db_create_event, thread_db_enable_reporting)
18822 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18823 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18824 (try_thread_db_load_1, dladdr_to_soname): New functions.
18825 (try_thread_db_load, thread_db_load_search): New functions.
18826 (thread_db_init): Search for libthread_db.
18827 (thread_db_free): New function.
18828 (thread_db_handle_monitor_command): Likewise.
18829 * config.in: Regenerate.
18830 * configure: Regenerate.
18832 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18834 * spu-low.c (spu_kill): Wait for inferior to terminate.
18835 Call clear_inferiors.
18836 (spu_detach): Call clear_inferiors.
18838 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18840 * aclocal.m4: Regenerate.
18841 * config.in: Likewise.
18842 * configure: Likewise.
18844 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18846 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18847 (parse_spufs_run): New function.
18848 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18849 (ppc_breakpoint_at): Handle SPU breakpoints.
18851 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18853 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18854 (SPUFS_MAGIC): Define.
18855 (spu_enumerate_spu_ids): New function.
18856 (linux_qxfer_spu): New function.
18857 (linux_target_ops): Install linux_qxfer_spu.
18859 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18861 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18862 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18863 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18864 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18865 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18866 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18867 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18868 (init_registers_powerpc_cell32l): Add prototype.
18869 (init_registers_powerpc_cell64l): Likewise.
18870 (ppc_arch_setup): Detect Cell/B.E. architecture.
18872 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18874 * Makefile.in (datarootdir): New variable.
18876 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18878 * linux-low.c (linux_write_memory): Update debugging output.
18879 * Makefile.in (clean): Add new descriptions.
18880 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18881 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18882 * configure.srv: Add new files for arm*-*-linux*.
18883 * linux-arm-low.c: Add new declarations.
18884 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18885 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18886 (HWCAP_VFPv3D16): New.
18887 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18888 instead of __IWMMXT__.
18889 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18890 (arm_arch_setup): New.
18891 (target_regsets): Remove #ifdef. Add VFP regset.
18892 (the_low_target): Use arm_arch_setup.
18894 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18896 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18897 the main thread again.
18899 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18901 Adding Neutrino gdbserver.
18902 * configure: Regenerated.
18903 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18904 * configure.srv (i[34567]86-*-nto*): New target.
18905 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18906 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18907 (nto_comctrl) [__QNX__]: New function.
18908 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18910 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18912 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18915 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18916 Pedro Alves <pedro@codesourcery.com>
18918 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18919 don't support CONTEXT_EXTENDED_REGISTERS.
18920 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18921 (the_low_target): Install them.
18922 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18923 failing with ERROR_PIPE_NOT_CONNECTED.
18925 2009-06-30 Doug Evans <dje@google.com>
18926 Pierre Muller <muller@ics.u-strasbg.fr>
18928 Add h/w watchpoint support to x86-linux, win32-i386.
18929 * Makefile.in (SFILES): Add i386-low.c
18930 (i386_low_h): Define.
18931 (i386-low.o): Add dependencies.
18932 (linux-x86-low.o): Add i386-low.h dependency.
18933 (win32-i386-low.o): Ditto.
18934 * i386-low.c: New file.
18935 * i386-low.h: New file.
18936 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18937 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18938 * linux-low.c (linux_add_process): Initialize arch_private.
18939 (linux_remove_process): Free arch_private.
18940 (add_lwp): Initialize arch_private.
18941 (delete_lwp): Free arch_private.
18942 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18944 * linux-low.h (process_info_private): New member arch_private.
18945 (lwp_info): New member arch_private.
18946 (linux_target_ops): New members new_process, new_thread,
18948 (ptid_of): New macro.
18949 * linux-x86-low.c: Include stddef.h, i386-low.h.
18950 (arch_process_info): New struct.
18951 (arch_lwp_info): New struct.
18952 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18953 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18954 (i386_dr_low_get_status): New function.
18955 (x86_insert_point, x86_remove_point): New functions.
18956 (x86_stopped_by_watchpoint): New function.
18957 (x86_stopped_data_address): New function.
18958 (x86_linux_new_process, x86_linux_new_thread): New functions.
18959 (x86_linux_prepare_to_resume): New function.
18960 (the_low_target): Add entries for insert_point, remove_point,
18961 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18963 * server.c (debug_hw_points): New global.
18964 (monitor_show_help): Document set debug-hw-points.
18965 (handle_query): Process "set debug-hw-points".
18966 * server.h (debug_hw_points): Declare.
18967 (paddress): Declare.
18968 * utils.c (NUMCELLS, CELLSIZE): New macros.
18969 (get_sell, xsnprintf, paddress): New functions.
18970 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18971 remove_point, stopped_by_watchpoint, stopped_data_address.
18972 * win32-i386-low.c: Include i386-low.h.
18973 (debug_reg_state): Replaces dr.
18974 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18975 (i386_dr_low_get_status): New function.
18976 (i386_insert_point, i386_remove_point): New functions.
18977 (i386_stopped_by_watchpoint): New function.
18978 (i386_stopped_data_address): New function.
18979 (i386_initial_stuff): Update.
18980 (get_thread_context,set_thread_context,i386_thread_added): Update.
18981 (the_low_target): Add entries for insert_point,
18982 remove_point, stopped_by_watchpoint, stopped_data_address.
18983 * win32-low.c (win32_insert_watchpoint): New function.
18984 (win32_remove_watchpoint): New function.
18985 (win32_stopped_by_watchpoint): New function.
18986 (win32_stopped_data_address): New function.
18987 (win32_target_ops): Add entries for insert_watchpoint,
18988 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18989 * win32-low.h (win32_target_ops): New members insert_point,
18990 remove_point, stopped_by_watchpoint, stopped_data_address.
18992 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18994 * server.c (process_serial_event): Re-return unsupported, not
18995 error, if the type isn't recognized. Re-allow supporting only
18996 insert or remove packets. Also call require_running for
18997 breakpoints. Add missing break statement to default case. Tidy.
18998 * target.h (struct target_ops): Rename insert_watchpoint to
18999 insert_point, and remove_watchpoint to remove_point.
19001 * linux-low.h (struct linux_target_ops): Likewise.
19002 * linux-low.c (linux_insert_watchpoint): Rename to ...
19003 (linux_insert_point): ... this. Adjust.
19004 (linux_remove_watchpoint): Rename to ...
19005 (linux_remove_point): ... this. Adjust.
19006 (linux_target_ops): Adjust.
19007 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19008 (cris_insert_point): ... this.
19009 (cris_remove_watchpoint): Rename to ...
19010 (cris_remove_point): ... this.
19011 (the_low_target): Adjust.
19013 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19015 * server.c (handle_v_kill): Pass signal_pid to
19016 kill_inferior if multi_process is zero.
19018 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19020 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19021 * target.h (target_ops): Comment for *_watchpoint to make it clear
19022 the functions can get types '0' and '1'.
19024 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19026 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19027 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19028 * regcache.c (get_regcache): Likewise.
19029 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19030 * win32-low.c (child_fetch_inferior_registers): Remove check for
19033 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19034 Pedro Alves <pedro@codesourcery.com>
19036 * target.h (struct target_ops) <supports_multi_process>: New
19038 (target_supports_multi_process): New.
19039 * server.c (handle_query): Even if GDB reports support, only
19040 enable multi-process if the target also supports it. Report
19041 multi-process support only if the target backend supports it.
19042 * linux-low.c (linux_supports_multi_process): New function.
19043 (linux_target_ops): Install it as target_supports_multi_process
19046 2009-05-24 Doug Evans <dje@google.com>
19048 Global renaming of find_thread_pid to find_thread_ptid.
19049 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19050 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19051 All callers updated.
19053 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19054 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19057 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19058 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19059 (linux_resume_one_lwp): Ditto.
19061 2009-05-23 Doug Evans <dje@google.com>
19063 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19064 from struct inferior_list_entry * to struct lwp_info *.
19065 All callers updated.
19067 2009-05-13 Doug Evans <dje@google.com>
19069 * linux-x86-low.c: Don't include assert.h.
19070 (x86_siginfo_fixup): Use fatal, not assert.
19071 (x86_arch_setup): Fix comment.
19073 2009-05-12 Doug Evans <dje@google.com>
19075 Biarch support for i386/amd64 gdbserver.
19076 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19077 Add linux-x86-low.c.
19078 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19079 (linux-x86-low.o): Add.
19080 * linux-x86-64-low.c: Delete.
19081 * linux-i386-low.c: Delete.
19082 * linux-x86-low.c: New file.
19083 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19085 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19087 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19088 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19089 (linux_child_pid_to_exec_file): New function.
19090 (elf_64_header_p, elf_64_file_p): New functions.
19091 (siginfo_fixup): New function.
19092 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19093 give target a chance to convert layout.
19094 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19095 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19097 2009-05-07 Doug Evans <dje@google.com>
19099 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19100 (regsets_store_inferior_registers): Ditto.
19102 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19106 * linux-low.c (must_set_ptrace_flags): Delete.
19107 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19109 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19110 `lwp->must_set_ptrace_flags' instead.
19111 (linux_wait_for_event_1): Set ptrace options here.
19112 (linux_wait_1): ... not here.
19114 2009-04-30 Doug Evans <dje@google.com>
19116 * inferiors.c (started_inferior_callback): New function.
19117 (attached_inferior_callback): New function.
19118 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19119 * server.c (print_started_pid, print_attached_pid): New functions.
19120 (detach_or_kill_for_exit): New function.
19121 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19122 * server.h (have_started_inferiors_p): Declare.
19123 (have_attached_inferiors_p): Declare.
19125 * inferiors.c (remove_process): Fix memory leak, free process.
19126 * linux-low.c (linux_remove_process): New function.
19127 (linux_kill): Call it instead of remove_process.
19128 (linux_detach, linux_wait_1): Ditto.
19130 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19132 * configure.srv: Add x86 Windows CE target.
19134 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19136 * inferiors.c (get_thread_process): Make global.
19137 * server.h (get_thread_process): Add prototype.
19138 * thread-db.c (find_one_thread): Use get_thread_process
19139 instead of current_process.
19140 (thread_db_get_tls_address): Do not crash if called when
19141 thread layer is not yet initialized.
19143 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19145 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19146 * spu-low.c (current_tid): Rename to ...
19147 (current_ptid): ... this.
19148 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19149 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19150 ptid_get_lwp (current_ptid) instead of current_tid.
19151 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19152 instead of current_tid. Use find_process_pid to verify pid
19153 argument is valid. Pass proper argument to remove_process.
19154 (spu_thread_alive): Compare current_ptid instead of current_tid.
19155 (spu_resume): Likewise.
19157 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19159 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19162 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19164 Implement the multiprocess extensions, and add linux multiprocess
19167 * server.h (ULONGEST): Declare.
19168 (struct ptid, ptid_t): New.
19169 (minus_one_ptid, null_ptid): Declare.
19170 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19171 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19172 (struct inferior_list_entry): Change `id' type from unsigned from
19174 (struct sym_cache, struct breakpoint, struct
19175 process_info_private): Forward declare.
19176 (struct process_info): Declare.
19177 (current_process): Declare.
19178 (all_processes): Declare.
19179 (initialize_inferiors): Declare.
19180 (add_thread): Adjust to use ptid_t.
19181 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19182 (add_process, remove_process, find_thread_pid): Declare.
19183 (find_inferior_id): Adjust to use ptid_t.
19184 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19185 (multi_process): Declare.
19186 (push_event): Adjust to use ptid_t.
19187 (read_ptid, write_ptid): Declare.
19188 (prepare_resume_reply): Adjust to use ptid_t.
19189 (clear_symbol_cache): Declare.
19190 * inferiors.c (all_processes): New.
19191 (null_ptid, minus_one_ptid): New.
19192 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19193 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19194 (add_thread): Change unsigned long to ptid. Remove gdb_id
19196 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19197 (gdb_id_to_thread): Rename to ...
19198 (find_thread_pid): ... this. Change unsigned long to ptid.
19199 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19200 (loaded_dll, pull_pid_from_list): Adjust.
19201 (add_process, remove_process, find_process_pid)
19202 (get_thread_process, current_process, initialize_inferiors): New.
19203 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19204 (struct target_waitstatus) <related_pid>: Ditto.
19205 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19206 return type to int.
19207 (struct target_ops) <join>: Add `pid' argument.
19208 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19209 (struct target_ops) <wait>: Add `ptid' field. Change return type
19211 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19212 (mywait): Add `ptid' argument. Change return type to ptid_t.
19213 (target_pid_to_str): Declare.
19214 * target.c (set_desired_inferior): Adjust to use ptids.
19215 (mywait): Add new `ptid' argument. Adjust.
19216 (target_pid_to_str): New.
19217 * mem-break.h (free_all_breakpoints): Declare.
19218 * mem-break.c (breakpoints): Delelete.
19219 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19220 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19221 to use per-process breakpoint list.
19222 (free_all_breakpoints): New.
19223 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19224 (symbol_cache, all_symbols_looked_up): Delete.
19226 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19228 (prepare_resume_reply): Change ptid argument's type from unsigned
19229 long to ptid_t. Adjust. Implement W;process and X;process.
19230 (free_sym_cache, clear_symbol_cache): New.
19231 (look_up_one_symbol): Adjust to per-process symbol cache. *
19232 * server.c (cont_thread, general_thread, step_thread): Change type
19234 (attached): Delete.
19235 (multi_process): New.
19236 (last_ptid): Change type to ptid_t.
19237 (struct vstop_notif) <ptid>: Change type to ptid_t.
19238 (queue_stop_reply, push_event): Change `ptid' argument's type to
19240 (discard_queued_stop_replies): Add `pid' argument.
19241 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19242 changes. Don't reference the `attached' global.
19243 (attach_inferior): Adjust to mywait interface changes.
19244 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19245 features. Handle and report "multiprocess+". Handle
19247 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19249 (handle_v_kill): New.
19250 (handle_v_stopped): Adjust to use target_pid_to_str.
19251 (handle_v_requests): Allow multiple attaches and runs when
19252 multiprocess extensions are in effect. Handle "vKill".
19253 (myresume): Adjust to use ptids.
19254 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19255 (handle_status): Adjust to discard_queued_stop_replies interface
19257 (first_thread_of, kill_inferior_callback)
19258 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19259 (main): Call initialize_inferiors. Adjust to use ptids, killing
19260 and detaching from all inferiors. Handle multiprocess packet
19262 * linux-low.h: Include gdb_proc_service.h.
19263 (struct process_info_private): New.
19264 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19265 <lwpid_of>: Use ptid_get_lwp.
19266 (get_lwp_thread): Adjust.
19267 (struct lwp_info): Add `dead' member.
19268 (find_lwp_pid): Declare.
19269 * linux-low.c (thread_db_active): Delete.
19270 (new_inferior): Adjust comment.
19271 (inferior_pid): Delete.
19272 (linux_add_process): New.
19273 (handle_extended_wait): Adjust.
19274 (add_lwp): Change unsigned long to ptid.
19275 (linux_create_inferior): Add process to processes table. Adjust
19276 to use ptids. Don't set new_inferior here.
19277 (linux_attach_lwp): Rename to ...
19278 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19279 it. Adjust to use ptids.
19280 (linux_attach_lwp): New.
19281 (linux_attach): Add process to processes table. Don't set
19283 (struct counter): New.
19284 (second_thread_of_pid_p, last_thread_of_process_p): New.
19285 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19286 multiple processes.
19287 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19288 processes. Remove process from process table.
19289 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19290 to multiple processes.
19291 (any_thread_of): New.
19292 (linux_detach): Add `pid' argument, and handle it. Remove process
19293 from processes table.
19294 (linux_join): Add `pid' argument. Handle it.
19295 (linux_thread_alive): Change unsighed long argument to ptid_t.
19296 Consider dead lwps as not being alive.
19297 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19298 threads we're not interested in.
19299 (same_lwp, find_lwp_pid): New.
19300 (linux_wait_for_lwp): Change `pid' argument's type from int to
19302 (linux_wait_for_event): Rename to ...
19303 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19304 from int to ptid_t. Adjust.
19305 (linux_wait_for_event): New.
19306 (linux_wait_1): Add `ptid' argument. Change return type to
19307 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19308 that exit from the process table.
19309 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19311 (mark_lwp_dead): New.
19312 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19313 stopping all threads, mark its main lwp as dead.
19314 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19316 (fetch_register, usr_store_inferior_registers)
19317 (regsets_fetch_inferior_registers)
19318 (regsets_store_inferior_registers, linux_read_memory)
19319 (linux_write_memory): Inline `inferior_pid'.
19320 (linux_look_up_symbols): Adjust to use per-process
19321 `thread_db_active'.
19322 (linux_request_interrupt): Adjust to use ptids.
19323 (linux_read_auxv): Inline `inferior_pid'.
19324 (initialize_low): Don't reference thread_db_active.
19325 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19326 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19327 (ps_getpid): Return the pid of the current inferior.
19328 * thread-db.c (proc_handle, thread_agent): Delete.
19329 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19331 (find_one_thread): Change argument type to ptid_t. Adjust to
19333 (maybe_attach_thread): Adjust to per-process data and ptids.
19334 (thread_db_find_new_threads): Ditto.
19335 (thread_db_init): Ditto.
19336 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19337 processes table. Adjust to use ptids.
19338 (spu_kill, spu_detach): Adjust interface. Remove process from
19340 (spu_join, spu_thread_alive): Adjust interface.
19341 (spu_wait): Adjust interface. Remove process from processes
19342 table. Adjust to use ptids.
19343 * win32-low.c (current_inferior_tid): Delete.
19344 (current_inferior_ptid): New.
19345 (debug_event_ptid): New.
19346 (thread_rec): Take a ptid. Adjust.
19347 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19348 (child_delete_thread): Ditto.
19349 (do_initial_child_stuff): Add `attached' argument. Add process to
19351 (child_fetch_inferior_registers, child_store_inferior_registers):
19353 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19354 (win32_attach): Pass 1 to do_initial_child_stuff.
19355 (win32_kill): Adjust interface. Remove process from processes
19357 (win32_detach): Ditto.
19358 (win32_join): Adjust interface.
19359 (win32_thread_alive): Take a ptid.
19360 (win32_resume): Adjust to use ptids.
19361 (get_child_debug_event): Ditto.
19362 (win32_wait): Adjust interface. Remove exiting process from
19365 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19367 Non-stop mode support.
19369 * server.h (non_stop): Declare.
19370 (gdb_client_data, handler_func): Declare.
19371 (delete_file_handler, add_file_handler, start_event_loop):
19373 (handle_serial_event, handle_target_event, push_event)
19374 (putpkt_notif): Declare.
19375 * target.h (enum resume_kind): New.
19376 (struct thread_resume): Replace `step' field by `kind' field.
19377 (TARGET_WNOHANG): Define.
19378 (struct target_ops) <wait>: Add `options' argument.
19379 <supports_non_stop, async, start_non_stop>: New fields.
19380 (target_supports_non_stop, target_async): New.
19381 (start_non_stop): Declare.
19382 (mywait): Add `options' argument.
19383 * target.c (mywait): Add `options' argument. Print child exit
19384 notifications here.
19385 (start_non_stop): New.
19386 * server.c (non_stop, own_buf, mem_buf): New globals.
19387 (struct vstop_notif): New.
19388 (notif_queue): New global.
19389 (queue_stop_reply, push_event, discard_queued_stop_replies)
19390 (send_next_stop_reply): New.
19391 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19393 (attach_inferior): In non-stop mode, don't wait for the target
19395 (handle_general_set): Handle QNonStop.
19396 (handle_query): When handling qC, return the current general
19397 thread, instead of the first thread of the list.
19398 (handle_query): If the backend supports non-stop mode, include
19399 QNonStop+ in the qSupported query response.
19400 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19402 (handle_v_attach, handle_v_run): Handle non-stop mode.
19403 (handle_v_stopped): New.
19404 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19405 (myresume): Adjust to use resume_kind. Handle non-stop.
19406 (queue_stop_reply_callback): New.
19407 (handle_status): Handle non-stop mode.
19408 (main): Clear non_stop flag on reconnection. Use the event-loop.
19409 Refactor serial protocol handling from here ...
19410 (process_serial_event): ... to this new function. When GDB
19411 selects any thread, select one here. In non-stop mode, wait until
19412 GDB acks all pending events before exiting.
19413 (handle_serial_event, handle_target_event): New.
19414 * remote-utils.c (remote_open): Install remote_desc in the event
19416 (remote_close): Remove remote_desc from the event loop.
19417 (putpkt_binary): Rename to...
19418 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19419 (putpkt_binary): New as wrapper around putpkt_binary_1.
19420 (putpkt_notif): New.
19421 (prepare_resume_reply): In non-stop mode, don't change the
19423 * event-loop.c: New.
19424 * Makefile.in (OBJ): Add event-loop.o.
19425 (event-loop.o): New rule.
19427 * linux-low.h (pid_of): Moved here.
19429 (get_lwp_thread): Use lwpid_of.
19430 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19431 * linux-low.c (pid_of): Delete.
19432 (inferior_pid): Use lwpid_of.
19433 (linux_event_pipe): New.
19434 (target_is_async_p): New.
19436 (handle_extended_wait): Use lwpid_of.
19437 (add_lwp): Don't set lwpid field.
19438 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19439 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19440 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19441 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19442 first. Adjust to linux_wait_for_event interface changes. Use
19444 (linux_detach): Don't delete the main lwp here.
19445 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19446 (status_pending_p): Don't consider explicitly suspended lwps.
19447 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19448 pointer. Add OPTIONS argument. Change return type to int. Use
19449 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19450 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19451 pointer. Add status pointer argument. Return a pid instead of a
19452 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19453 changes. In non-stop mode, don't switch to a random thread.
19454 (linux_wait): Rename to...
19455 (linux_wait_1): ... this. Add target_options argument, and handle
19456 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19457 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19458 clean exit and signal exit code. Don't stop all threads in
19459 non-stop mode. In all-stop mode, only stop all threads when
19460 reporting a stop to GDB. Handle explicit thread stop requests.
19461 (async_file_flush, async_file_mark): New.
19463 (send_sigstop): Use lwpid_of.
19464 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19465 interface changes. In non-stop mode, don't switch to a random
19467 (linux_resume_one_lwp): Use lwpid_of.
19468 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19469 (linux_resume_one_thread): ... this. Handle resume_stop. In
19470 non-stop mode, don't look for pending flag in all threads.
19471 (resume_status_pending_p): Don't consider explicitly suspended
19473 (my_waitpid): Reimplement. Emulate __WALL.
19474 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19476 (sigchld_handler, linux_supports_non_stop, linux_async)
19477 (linux_start_non_stop): New.
19478 (linux_target_ops): Register linux_supports_non_stop, linux_async
19479 and linux_start_non_stop.
19480 (initialize_low): Install SIGCHLD handler.
19481 * thread-db.c (thread_db_create_event, find_one_thread)
19482 (thread_db_get_tls_address): Use lwpid_of.
19483 * win32-low.c (win32_detach): Adjust to use resume_kind.
19484 (win32_wait): Add `options' argument.
19485 * spu-low.c (spu_resume): Adjust to use resume_kind.
19486 (spu_wait): Add `options' argument.
19488 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19490 Decouple target code from remote protocol.
19492 * target.h (enum target_waitkind): New.
19493 (struct target_waitstatus): New.
19494 (struct target_ops) <wait>: Return an unsigned long. Take a
19495 target_waitstatus pointer instead of a char pointer.
19496 (mywait): Likewise.
19497 * target.c (mywait): Change prototype to return an unsigned long.
19498 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19499 * server.h (thread_from_wait, old_thread_from_wait): Delete
19501 (prepare_resume_reply): Change prototype to take a
19503 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19504 (last_status, last_ptid): New.
19505 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19506 pid instead of a signal.
19507 (attach_inferior): Remove "status" and "signal" parameters.
19509 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19511 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19512 (handle_v_requests, myresume): Remove "status" and "signal"
19513 parameters. Adjust.
19514 (handle_status): New.
19515 (main): Delete local `status'. Adjust.
19516 * remote-utils.c: Include target.h.
19517 (prepare_resume_reply): Change prototype to take a
19518 target_waitstatus. Adjust.
19520 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19522 * spu-low.c (spu_wait): Adjust.
19523 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19525 (win32_wait): Adjust.
19527 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19529 * target.h (struct thread_resume): Delete leave_stopped member.
19530 (struct target_ops): Add a `n' argument to the `resume' callback.
19531 * server.c (start_inferior): Adjust.
19532 (handle_v_cont, myresume): Adjust.
19533 * linux-low.c (check_removed_breakpoint): Adjust to resume
19534 interface change, and to removed leave_stopped field.
19535 (resume_ptr): Delete.
19536 (struct thread_resume_array): New.
19537 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19538 resume interface change.
19539 (linux_continue_one_thread, linux_queue_one_thread)
19540 (resume_status_pending_p): Check if the resume field is NULL
19541 instead of checking the leave_stopped member.
19542 (linux_resume): Adjust to the target resume interface change.
19543 * spu-low.c (spu_resume): Adjust to the target resume interface
19545 * win32-low.c (win32_detach, win32_resume): Ditto.
19547 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19549 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19551 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19553 (linux_continue_one_thread): Only preserve the stepping flag if
19554 there's a pending breakpoint.
19556 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19558 * server.c (main): After the inferior having exited, call
19559 remote_close before exiting gdbserver.
19561 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19563 Fix size of FPSCR in Power 7 processors.
19564 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19565 (PPC_FEATURE_HAS_DFP): New #define.
19566 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19569 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19571 * server.c (handle_query) Whitespace and formatting.
19573 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19575 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19576 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19577 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19578 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19579 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19580 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19581 Makefile.in, configure.ac: Fix whitespace throughout.
19582 * configure: Regenerate.
19584 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19586 * inferiors.c (find_inferior): Make it safe for the callback
19587 function to delete the currently iterated inferior.
19589 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19591 * Makefile.in (linuw_low_h): Move higher.
19592 (thread-db.o): Depend on $(linux_low_h).
19594 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19596 Rename "process" to "lwp" throughout.
19598 * linux-low.c (all_processes): Rename to...
19599 (all_lwps): ... this.
19600 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19601 (add_process): Rename to ...
19602 (add_lwp): ... this. Adjust.
19603 (linux_create_inferior): Adjust.
19604 (linux_attach_lwp): Adjust.
19605 (linux_attach): Adjust.
19606 (linux_kill_one_process): Rename to ...
19607 (linux_kill_one_lwp): ... this. Adjust.
19608 (linux_kill): Adjust.
19609 (linux_detach_one_process): Rename to ...
19610 (linux_detach_one_lwp): ... this. Adjust.
19611 (linux_detach): Adjust.
19612 (check_removed_breakpoint): Adjust.
19613 (status_pending_p): Adjust.
19614 (linux_wait_for_process): Rename to ...
19615 (linux_wait_for_lwp): ... this. Adjust.
19616 (linux_wait_for_event): Adjust.
19617 (send_sigstop): Adjust.
19618 (wait_for_sigstop): Adjust.
19619 (stop_all_processes): Rename to ...
19620 (stop_all_lwps): ... this.
19621 (linux_resume_one_process): Rename to ...
19622 (linux_resume_one_lwp): ... this. Adjust.
19623 (linux_set_resume_request, linux_continue_one_thread)
19624 (linux_queue_one_thread, resume_status_pending_p)
19625 (usr_store_inferior_registers, regsets_store_inferior_registers)
19626 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19628 * linux-low.h (get_process): Rename to ...
19629 (get_lwp): ... this. Adjust.
19630 (get_thread_process): Rename to ...
19631 (get_thread_lwp): ... this. Adjust.
19632 (get_process_thread): Rename to ...
19633 (get_lwp_thread): ... this. Adjust.
19634 (struct process_info): Rename to ...
19635 (struct lwp_info): ... this.
19636 (all_processes): Rename to ...
19637 (all_lwps): ... this.
19638 * proc-service.c (ps_lgetregs): Adjust.
19639 * thread-db.c (thread_db_create_event, find_one_thread)
19640 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19642 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19644 * server.c (handle_query): Handle "qAttached".
19646 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19648 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19649 GPLv3, update license URL.
19651 2009-03-01 Doug Evans <dje@google.com>
19653 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19654 (server_h): Add gdb_signals.h.
19655 (signals.o): Update.
19656 * server.h (target_signal_from_host,target_signal_to_host_p)
19657 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19659 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19661 * remote-utils.c (getpkt): Also generate remote-debug
19662 information if noack_mode is set.
19664 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19666 * server.c (handle_query): Report qXfer:siginfo:read and
19667 qXfer:siginfo:write as supported and handle them.
19668 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19669 * linux-low.c (linux_xfer_siginfo): New.
19670 (linux_target_ops): Set it.
19672 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19674 * server.c (gdbserver_usage): Mention --remote-debug.
19675 (main): Accept '--remote-debug' switch.
19677 2009-01-18 Doug Evans <dje@google.com>
19679 * regcache.c (new_register_cache): No need to check result of xcalloc.
19680 * server.c (handle_search_memory): Back out calls to xmalloc,
19681 result is checked and error is returned to user upon failure.
19682 (handle_query): Ditto. Add more checks for result of malloc.
19683 (handle_v_cont): Check result of malloc, report error back to
19685 (handle_v_run): Ditto. Call freeargv.
19686 * server.h (freeargv): Declare.
19687 * utils.c (freeargv): New fn.
19689 2009-01-15 Doug Evans <dje@google.com>
19691 * gdbreplay.c (perror_with_name): Make arg const char *.
19692 * server.h (target_signal_to_name): Make return type const char *.
19693 * thread-db.c (thread_db_err_str): Make return type const char *.
19694 * utils.c (perror_with_name): Make arg const char *.
19696 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19698 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19699 when handling a EXIT_PROCESS_DEBUG_EVENT.
19701 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19703 * gdbreplay.c (gdbreplay_version): Update copyright year.
19704 * server.c (gdbserver_version): Likewise.
19706 2009-01-05 Doug Evans <dje@google.com>
19708 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19709 (handle_extended_wait): Improve comment.
19711 2008-12-13 Doug Evans <dje@google.com>
19713 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19714 * server.h (ATTR_MALLOC): New macro.
19715 (xmalloc,xcalloc,xstrdup): Declare.
19716 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19717 * inferiors.c: Ditto.
19718 * linux-low.c: Ditto.
19719 * mem-break.c: Ditto.
19720 * regcache.c: Ditto.
19721 * remote-utils.c: Ditto.
19724 * win32-low.c: Ditto.
19726 2008-12-12 Doug Evans <dje@google.com>
19728 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19729 in debugging printf.
19731 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19733 2008-12-09 Doug Evans <dje@google.com>
19735 * linux-low.h (struct process_info): Delete member tid, unused.
19736 * thread-db.c (find_one_thread): Update.
19737 (maybe_attach_thread): Update.
19739 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19741 * target.h (struct target_ops): Add qxfer_osdata member.
19742 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19744 (linux_qxfer_osdata): New functions.
19745 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19747 * server.c (handle_query): Handle "qXfer:osdata:read:".
19748 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19749 (buffer_xml_printf): New functions.
19750 * server.h (struct buffer): New.
19751 (buffer_grow_str, buffer_grow_str0): New macros.
19752 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19753 (buffer_xml_printf): Declare.
19755 2008-11-24 Doug Evans <dje@google.com>
19757 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19759 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19761 * server.c (handle_v_run): Always use the supplied argument list.
19763 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19765 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19766 (xtensa_regmap_table): Add entry for scompare1.
19768 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19770 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19771 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19772 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19773 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19774 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19775 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19776 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19777 XML target descriptions.
19778 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19779 when inferior is running on an ISA 2.05 or later processor. Add
19780 special case to return offset for full 64-bit slot of FPSCR when
19783 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19785 * Makefile.in (SFILES, clean): Added sparc64 files.
19786 (reg-sparc64.o, reg-sparc64.c): New.
19787 * configure.srv (sparc*-*-linux*): New configuration.
19788 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19789 syscall arguments for SPARC.
19790 (regsets_store_inferior_registers): Likewise.
19791 * linux-sparc-low.c: New file.
19793 2008-10-21 Doug Evans <dje@google.com>
19795 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19796 (READLINE_DIR,READLINE_DEP): Delete.
19797 (INTERNAL_CFLAGS): Update.
19798 (LINTFLAGS): Update.
19800 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19802 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19803 whole argv from the last run, not just argv[0].
19805 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19807 * regcache.c (new_register_cache): Return NULL if the register
19808 cache size isn't known yet.
19809 (free_register_cache): Avoid dereferencing a NULL regcache.
19811 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19813 * configure.srv: Merge MIPS and MIPS64.
19815 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19817 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19819 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19821 * Makefile.in: Add required vsx dependencies.
19823 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19824 Declare init_registers_powerpc_vsx32l.
19825 Declare init_registers_powerpc_vsx64l.
19826 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19827 (ppc_arch_setup): Check for VSX in hwcap.
19828 (ppc_fill_vsxregset): New function.
19829 (ppc_store_vsxregset): New function.
19830 Add new VSX entry in regset_info target_regsets.
19832 * configure.srv: Add new VSX dependencies.
19834 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19836 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19837 (remote_open): Set or clear transport_is_reliable.
19838 (putpkt_binary): Don't expect acks in noack mode.
19839 (getpkt): Don't send ack/nac in noack mode.
19840 * server.c (handle_general_set): Handle QStartNoAckMode.
19841 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19843 (main): Reset noack_mode on every connection.
19844 * server.h (noack_mode): Declare.
19846 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19848 * Makefile.in (GDBREPLAY_OBS): New variable.
19849 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19851 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19852 Daniel Jacobowitz <dan@codesourcery.com>
19854 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19855 (usr_store_inferior_registers): Likewise.
19856 (regsets_store_inferior_registers): Likewise.
19858 2008-07-31 Rolf Jansen <rj@surtec.com>
19859 Pedro Alves <pedro@codesourcery.com>
19861 * configure.ac: Check for memmem declaration.
19862 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19863 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19864 (disable_packet_qfThreadInfo): Unconditionally compile.
19865 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19866 * configure, config.in: Regenerate.
19868 2008-07-28 Doug Kwan <dougkwan@google.com>
19870 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19871 (linux_write_memory): Remove declaration of errno.
19873 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19875 * linux-low.c (handle_extended_wait): Do not use "status"
19876 variable uninitialized.
19878 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19880 * server.c (handle_v_attach): Inhibit reporting dll changes.
19882 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19884 * remote-utils.c (prepare_resume_reply): If requested, don't
19885 output "thread:TID" in the T stop reply.
19887 * server.c (disable_packet_vCont, disable_packet_Tthread)
19888 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19889 (handle_query): If requested, disable support for qC, qfThreadInfo
19891 (handle_v_requests): If requested, disable support for vCont.
19892 (gdbserver_show_disableable): New.
19893 (main): Handle --disable-packet and --disable-packet=LIST.
19895 * server.h (disable_packet_vCont, disable_packet_Tthread)
19896 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19898 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19900 * server.c (gdbserver_usage): Mention --version.
19902 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19904 * Makefile.in (gdbreplay.o): New rule.
19906 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19908 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19909 message, not gdbserver.
19911 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19912 Nathan Sidwell <nathan@codesourcery.com>
19913 Joseph Myers <joseph@codesourcery.com>
19915 * acinclude.m4: Include ../../config/acx.m4.
19916 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19917 * configure, config.in: Regenerate.
19918 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19919 * server.c (gdbserver_version): Print PKGVERSION.
19920 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19921 (main): Adjust gdbserver_usage calls.
19922 * gdbreplay.c (version, host_name): Add declarations.
19923 (gdbreplay_version, gdbreplay_usage): New.
19924 (main): Accept --version and --help options.
19926 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19928 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19929 (arm_breakpoint_at): Handle Thumb.
19930 (the_low_target): Add comment.
19932 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19934 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19936 2008-05-09 Doug Evans <dje@google.com>
19938 * server.h (decode_search_memory_packet): Declare.
19939 * remote-utils.c (decode_search_memory_packet): New fn.
19940 * server.c (handle_search_memory_1): New fn.
19941 (handle_search_memory): New fn.
19942 (handle_query): Process qSearch:memory packets.
19944 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19946 * regcache.c (registers_length): Remove.
19947 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19948 full register packet.
19949 * regcache.h (registers_length): Remove prototype.
19950 * server.h (PBUFSIZ): Define to 16384.
19952 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19954 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19955 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19956 powerpc-64l.o, and powerpc-altivec64l.o.
19957 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19958 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19959 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19960 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19961 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19964 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19965 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19966 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19967 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19968 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19969 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19970 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19971 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19972 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19973 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19976 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19977 (init_registers_powerpc_32l): ... this new prototype.
19978 (init_registers_powerpc_32): Remove, replace by ...
19979 (init_registers_powerpc_altivec32l): ... this new prototype.
19980 (init_registers_powerpc_e500): Remove, replace by ...
19981 (init_registers_powerpc_e500l): ... this new prototype.
19982 (init_registers_ppc64): Remove, replace by ...
19983 (init_registers_powerpc_64l): ... this new prototype.
19984 (init_registers_powerpc_64): Remove, replace by ...
19985 (init_registers_powerpc_altivec64l): ... this new prototype.
19986 (ppc_num_regs): Set to 73.
19987 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19988 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19989 (ppc_cannot_store_register): Handle orig_r3 and trap.
19990 (ppc_arch_setup): Update init_registers_... calls.
19991 (ppc_fill_gregset): Handle orig_r3 and trap.
19993 * inferiors.c (clear_inferiors): Reset current_inferior.
19995 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19997 * acinclude.m4: Add override.m4.
19998 * configure: Regenerate.
20000 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20002 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20003 initial call to init_register_ppc64.
20005 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20007 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20008 single powerpc*-*-linux* case.
20009 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20011 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20013 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20014 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20016 * linux-ppc-low.c: Include <elf.h>.
20017 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20018 (ppc_hwcap): New global variable.
20019 (ppc_regmap): Remove __SPE__ #ifdef sections.
20020 (ppc_regmap_e500): New global variable.
20021 (ppc_cannot_store_register): Update __SPE__ special case.
20022 (ppc_get_hwcap): New function.
20023 (ppc_arch_setup): Use it to determine whether inferior supports
20024 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20025 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20026 Do not access registers if target does not support AltiVec.
20027 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20028 Do not access registers if target does not support SPE.
20029 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20031 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20033 * linux-low.c (disabled_regsets, num_regsets): New.
20034 (use_regsets_p): Delete.
20035 (linux_wait_for_process): Clear disabled_regsets.
20036 (regsets_fetch_inferior_registers): Check and set it.
20037 (regsets_store_inferior_registers): Likewise.
20038 (linux_fetch_registers, linux_store_registers): Do not use
20040 (initialize_low): Allocate disabled_regsets.
20042 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20044 * Makefile.in (LIBOBJS): New.
20045 (OBS): Use LIBOBJS.
20046 (memmem.o): New rule.
20047 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20048 * configure: Regenerated.
20050 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20052 * server.c (handle_query): Never return "unsupported" for
20053 qXfer:features:read queries.
20055 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20057 * server.c (get_features_xml): Fix inverted condition.
20058 (handle_query): Always support qXfer:feature:read.
20060 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20062 * server.c (wrapper_argv): New.
20063 (start_inferior): Handle wrapper_argv. If set, expect an extra
20065 (gdbserver_usage): Document --wrapper.
20066 (main): Parse --wrapper.
20068 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20070 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20071 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20072 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20073 (ppc_set_pc): Likewise.
20074 (ppc_arch_setup): New function.
20075 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20076 of collect_register.
20077 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20079 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20081 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20082 instead of linux-ppc64-low.o.
20083 * linux-ppc64-low.c: Remove file.
20084 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20085 (linux-ppc64-low.o): Remove rule.
20087 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20088 (init_registers_powerpc_64): Likewise.
20089 (ppc_regmap): Conditionally define depending on __powerpc64__.
20090 (ppc_cannot_store_register): Do not special-case "fpscr" when
20091 compiled on __powerpc64__.
20092 (ppc_collect_ptrace_register): New function.
20093 (ppc_supply_ptrace_register): New function.
20094 (ppc_breakpoint): Change type to "unsigned int".
20095 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20096 (the_low_target): Conditionally provide initializers for the
20097 arch_setup member depending on __powerpc64__. Install
20098 collect_ptrace_register and supply_ptrace_register members.
20100 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20102 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20103 * server.c (gdbserver_xmltarget): Define.
20104 (get_features_xml): Use it to replace "target.xml" and arch_string.
20106 * configure.srv: Remove srv_xmltarget. Add XML files that were
20107 mentioned there to srv_xmlfiles instead. Remove conditional tests
20108 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20109 srv_xmlfiles and srv_regobj to include all possible choices.
20110 * configure.ac (srv_xmltarget): Remove.
20111 (srv_xmlfiles): Do not add "target.xml".
20112 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20113 checks for supplementary target information.
20114 * configure: Regenerate.
20115 * Makefile.in (XML_TARGET): Remove.
20116 (target.xml): Remove rule.
20117 (clean): Do not clean up target.xml.
20118 (.PRECIOUS): Do not mention target.xml.
20120 * target.h (struct target_ops): Remove arch_string member.
20121 * linux-low.c (linux_arch_string): Remove.
20122 (linux_target_ops): Remove arch_string initializer.
20123 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20124 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20125 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20126 * spu-low.c (spu_arch_string): Remove.
20127 (spu_target_ops): Remove arch_string initializer.
20128 * win32-low.c (win32_arch_string): Remove.
20129 (win32_target_ops): Remove arch_string initializer.
20130 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20131 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20132 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20134 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20136 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20137 by collect_ptrace_register and supply_ptrace_register hooks.
20138 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20139 instead of checking for the_low_target.left_pad_xfer.
20140 (usr_store_inferior_registers): Use collect_ptrace_register callback
20141 instead of checking for the_low_target.left_pad_xfer.
20143 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20144 (s390_supply_ptrace_register): Likewise.
20145 (s390_fill_gregset): Call s390_collect_ptrace_register.
20146 (the_low_target): Update.
20148 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20149 (ppc_supply_ptrace_register): Likewise.
20150 (the_low_target): Update.
20152 * linux-i386-low.c (the_low_target): Update.
20153 * linux-x86-64-low.c (the_low_target): Update.
20155 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20157 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20158 reg-s390.o and reg-s390x.o.
20160 * linux-low.c (new_inferior): New global variable.
20161 (linux_create_inferior, linux_attach): Set it.
20162 (linux_wait_for_process): Call the_low_target.arch_setup after the
20163 target has stopped for the first time.
20164 (initialize_low): Do not call the_low_target.arch_setup.
20166 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20167 (s390_set_pc): Likewise.
20168 (s390_arch_setup): New function.
20169 (the_low_target): Use s390_arch_setup as arch_setup routine.
20171 * regcache.c (realloc_register_cache): New function.
20172 (set_register_cache): Call it for each existing regcache.
20174 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20176 * server.h (init_registers): Remove prototype.
20178 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20179 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20180 instead of init_registers ().
20181 * linux-arm-low.c (init_registers_arm): Add prototype.
20182 (init_registers_arm_with_iwmmxt): Likewise.
20183 (the_low_target): Add initializer for arch_setup field.
20184 * linux-cris-low.c (init_registers_cris): Add prototype.
20185 (the_low_target): Add initializer for arch_setup field.
20186 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20187 (the_low_target): Add initializer for arch_setup field.
20188 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20189 (the_low_target): Add initializer for arch_setup field.
20190 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20191 (the_low_target): Add initializer for arch_setup field.
20192 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20193 (the_low_target): Add initializer for arch_setup field.
20194 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20195 (the_low_target): Add initializer for arch_setup field.
20196 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20197 (init_registers_mips64_linux): Likewise.
20198 (the_low_target): Add initializer for arch_setup field.
20199 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20200 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20201 (the_low_target): Add initializer for arch_setup field.
20202 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20203 (init_registers_powerpc_64): Likewise.
20204 (the_low_target): Add initializer for arch_setup field.
20205 * linux-s390-low.c (init_registers_s390): Add prototype.
20206 (init_registers_s390x): Likewise.
20207 (the_low_target): Add initializer for arch_setup field.
20208 * linux-sh-low.c (init_registers_sh): Add prototype.
20209 (the_low_target): Add initializer for arch_setup field.
20210 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20211 (the_low_target): Add initializer for arch_setup field.
20212 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20213 (the_low_target): Add initializer for arch_setup field.
20215 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20216 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20217 instead of init_registers ().
20218 * win32-arm-low.c (init_registers_arm): Add prototype.
20219 (the_low_target): Add initializer for arch_setup field.
20220 * win32-i386-low.c (init_registers_i386): Add prototype.
20221 (the_low_target): Add initializer for arch_setup field.
20223 * spu-low.c (init_registers_spu): Add prototype.
20224 (initialize_low): Call initialie_registers_spu () instead of
20225 initialize_registers ().
20227 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20229 * server.c (handle_v_requests): When handling the vRun and vAttach
20230 packets, if already debugging a process, don't kill it. Return an
20233 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20235 * server.c (handle_query): Correct length check.
20237 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20239 * win32-low.c (do_initial_child_stuff): Add process handle
20240 parameter. Set current_process_handle and current_process_id from the
20241 parameters. Clear globals.
20242 (win32_create_inferior): Don't set current_process_handle and
20243 current_process_id here. Instead pass them on the call to
20244 do_initial_child_stuff.
20245 (win32_attach): Likewise.
20246 (win32_clear_inferiors): New.
20247 (win32_kill): Don't close the current process handle or the
20248 current thread handle here. Instead call win32_clear_inferiors.
20249 (win32_detach): Don't open a new handle to the process. Call
20250 win32_clear_inferiors.
20251 (win32_join): Don't rely on current_process_handle; open a new
20252 handle using the process id.
20253 (win32_wait): Call win32_clear_inferiors when the inferior process
20256 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20258 * server.c (monitor_show_help): Add "exit".
20260 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20262 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20263 (clean): Add reg-xtensa.c.
20264 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20265 * configure.srv (xtensa*-*-linux*) New target.
20266 * linux-xtensa-low.c: New.
20267 * xtensa-xtregs.c: New.
20269 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20271 * hostio.c: Don't include errno.h.
20272 (errno_to_fileio_errno): Move to hostio-errno.
20273 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20274 error number outputting to the target->hostio_last_error callback.
20275 (hostio_packet_error): Use FILEIO_EINVAL directly.
20276 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20277 calls to hostio_error.
20278 * hostio-errno.c: New.
20279 * server.h (hostio_last_error_from_errno): Declare.
20280 * target.h (target_ops): Add hostio_last_error member.
20281 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20282 as hostio_last_error handler.
20283 * spu-low.c (spu_target_ops): Likewise.
20284 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20285 (wince_hostio_last_error): New functions.
20286 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20287 as hostio_last_error handler.
20288 (win32_target_ops) [!_WIN32_WCE]: Register
20289 hostio_last_error_from_errno as hostio_last_error handler.
20290 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20291 (hostio-errno.o): New rule.
20292 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20293 * configure.srv (srv_hostio_err_objs): New variable. Default to
20295 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20296 * configure: Regenerate.
20298 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20300 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20301 (linux_kill, linux_detach): Clean up the process list.
20302 * remote-utils.c (remote_open): Improve port number parsing.
20303 (putpkt_binary, input_interrupt): Only send interrupts if the target
20305 * server.c (extended_protocol): Make static.
20306 (attached): Define earlier.
20307 (exit_requested, response_needed, program_argv): New variables.
20308 (target_running): New.
20309 (start_inferior): Clear attached here.
20310 (attach_inferior): Set attached here.
20311 (require_running): Define.
20312 (handle_query): Use require_running and target_running. Implement
20314 (handle_v_attach, handle_v_run): New.
20315 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20316 (gdbserver_usage): Update.
20317 (main): Redo argument parsing. Handle --debug and --multi. Handle
20318 --attach along with other options or after the port. Save
20319 program_argv. Support no initial program. Resynchronize
20320 communication with GDB after an error. Handle "monitor exit".
20321 Use require_running and target_running. Always allow the extended
20322 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20323 restart in extended mode.
20324 * README: Refer to the GDB manual. Update --attach usage.
20326 2007-12-20 Andreas Schwab <schwab@suse.de>
20328 * linux-low.c (STACK_SIZE): Define.
20329 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20330 (linux_test_for_tracefork): Likewise.
20332 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20334 * linux-low.c (linux_wait_for_event): Update messages. Do not
20335 reinsert auto-delete breakpoints.
20336 * mem-break.c (struct breakpoint): Change return type of handler to
20338 (set_breakpoint_at): Update handler type.
20339 (reinsert_breakpoint_handler): Return 1 instead of calling
20341 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20343 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20344 * mem-break.h (set_breakpoint_at): Update handler type.
20345 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20346 * win32-low.c (auto_delete_breakpoint): New.
20347 (get_child_debug_event): Use it.
20349 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20351 * configure.ac: Check for pread and pwrite.
20352 * hostio.c (handle_pread): Fall back to lseek and read.
20353 (handle_pwrite): Fall back to lseek and write.
20354 * config.in, configure: Regenerated.
20356 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20358 * server.c (myresume): Add own_buf argument.
20359 (main): Update calls.
20361 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20363 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20364 * remote-utils.c (remote_open): Do not call disable_async_io.
20365 (block_async_io): Delete.
20366 (unblock_async_io): Make static.
20367 (initialize_async_io): New.
20368 * server.c (handle_v_cont): Handle async I/O here.
20369 (myresume): Likewise. Move other common resume tasks here...
20370 (main): ... from here. Call initialize_async_io. Disable async
20371 I/O before the main loop.
20372 * server.h (initialize_async_io): Declare.
20373 (block_async_io, unblock_async_io): Delete prototypes.
20374 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20376 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20378 * remote-utils.c (readchar): Allow binary data in received messages.
20380 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20382 * win32-low.c (attaching): New global.
20383 (win32_create_inferior): Clear the `attaching' global.
20384 (win32_attach): Set the `attaching' global.
20385 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20386 attaching. Only set a breakpoint at the entry point if not
20389 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20391 * server.c (main): Don't report dll events on the initial
20392 connection on attaches.
20394 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20396 * server.c (main): Relax numerical bases supported for the pid of
20397 the --attach command line argument.
20399 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20401 * win32-low.c (win32_attach): Call OpenProcess before
20402 DebugActiveProcess, not after. Add last error output to error
20405 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20407 * win32-low.c (win32_get_thread_context)
20408 (win32_set_thread_context): New functions.
20409 (thread_rec): Use win32_get_thread_context.
20410 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20411 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20414 2007-12-03 Leo Zayas
20415 Pedro Alves <pedro_alves@portugalmail.pt>
20417 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20419 (child_add_thread): Minor cleanup.
20420 (child_continue): Resume artificially suspended threads before
20421 calling ContinueDebugEvent.
20422 (suspend_one_thread): New.
20423 (fake_breakpoint_event): New.
20424 (get_child_debug_event): Change return type to int. Check here if
20425 gdb sent an interrupt request. If a soft interrupt was requested,
20426 fake a breakpoint event. Return 0 if there is no event to handle,
20428 (win32_wait): Don't check here if gdb sent an interrupt request.
20429 Ensure there is a valid event to handle.
20430 (win32_request_interrupt): Add soft interruption method as last
20433 2007-12-03 Leo Zayas
20434 Pedro Alves <pedro_alves@portugalmail.pt>
20436 * win32-low.h (win32_thread_info): Add descriptions to the
20437 structure members. Replace `suspend_count' counter by a
20439 * win32-low.c (thread_rec): Update condition of when to get the
20440 context from the inferior. Rely on ContextFlags being set if it
20441 has already been retrieved. Only suspend the inferior thread if
20442 we haven't already. Warn if that fails.
20443 (continue_one_thread): s/suspend_count/suspended/. Only call
20444 ResumeThread once. Warn if that fails.
20446 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20448 * win32-low.c (win32_wait): Don't read from the inferior when it
20449 has already exited.
20451 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20453 * Makefile.in (win32_low_h): New variable.
20454 (win32-low.o): Add dependency on $(win32_low_h).
20455 (win32-arm-low.o, win32-i386-low.o): New rules.
20457 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20459 * hostio.c: Correct copyright year.
20461 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20463 * Makefile.in (OBS): Add hostio.o.
20464 (hostio.o): New rule.
20465 * server.h (handle_vFile): Declare.
20466 * hostio.c: New file.
20467 * server.c (handle_v_requests): Take packet_len and new_packet_len
20468 for binary packets. Call handle_vFile.
20469 (main): Update call to handle_v_requests.
20471 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20473 * linux-low.c: Include <sched.h>.
20475 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20477 * linux-low.c (linux_tracefork_grandchild): New.
20478 (linux_tracefork_child): Use clone.
20479 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20481 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20483 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20485 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20487 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20489 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20491 * inferiors.c (change_inferior_id): Delete.
20492 (add_pid_to_list, pull_pid_from_list): New.
20493 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20494 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20495 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20496 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20497 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20498 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20499 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20500 (using_threads): Always set to 1.
20501 (handle_extended_wait): New.
20502 (add_process): Do not set TID.
20503 (linux_create_inferior): Set must_set_ptrace_flags.
20504 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20505 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20506 (linux_thread_alive): Rename TID argument to LWPID.
20507 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20508 (linux_wait_for_event): Do not use TID or check using_threads. Update
20509 call to dead_thread_notify. Call handle_extended_wait.
20510 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20511 (send_sigstop): Delete sigstop_sent.
20512 (wait_for_sigstop): Avoid TID.
20513 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20514 (linux_test_for_tracefork): New.
20515 (linux_lookup_signals): Use thread_db_active and
20516 linux_supports_tracefork_flag.
20517 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20518 * linux-low.h (get_process_thread): Avoid TID.
20519 (struct process_ifo): Move thread_known and tid to the end. Remove
20521 (linux_attach_lwp, thread_db_init): Update prototypes.
20522 * server.h (change_inferior_id): Delete prototype.
20523 (add_pid_to_list, pull_pid_from_list): New prototypes.
20524 * thread-db.c (thread_db_use_events): New.
20525 (find_first_thread): Rename to...
20526 (find_one_thread): ...this. Update callers and messages. Do not
20527 call fatal. Check thread_db_use_events. Do not call
20528 change_inferior_id or new_thread_notify.
20529 (maybe_attach_thread): Update. Do not call new_thread_notify.
20530 (thread_db_init): Set thread_db_use_events. Check use_events.
20531 * utils.c (fatal, warning): Correct message prefix.
20533 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20535 * Makefile.in (clean): Remove new files.
20536 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20537 (powerpc-64.o, powerpc-64.c): New rules.
20538 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20539 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20541 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20543 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20544 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20545 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20546 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20547 (target_regsets): Add AltiVec and SPE register sets.
20548 * configure.ac: Check for AltiVec and SPE.
20549 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20550 (ppc_fill_vrregset, ppc_store_vrregset): New.
20551 (target_regsets): Add AltiVec register set.
20552 * configure: Regenerated.
20554 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20556 * linux-low.c (O_LARGEFILE): Define.
20557 (linux_read_memory): Use /proc/PID/mem.
20558 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20559 * configure, config.in: Regenerated.
20561 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20563 * linux-low.c (linux_wait_for_event): Do not pass signals while
20566 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20568 * win32-low.c (create_process): New.
20569 (win32_create_inferior): Use create_process instead of
20570 CreateProcess. If create_process failed retry appending an ".exe"
20571 suffix. Store the GetLastError result immediatelly after
20572 create_process calls and use it on the call to error.
20574 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20576 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20578 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20580 * configure.ac: Switch license to GPLv3.
20582 2007-08-01 Michael Snyder <msnyder@access-company.com>
20584 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20586 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20588 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20590 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20591 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20592 CloseToolhelp32Snapshot.
20593 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20594 CloseToolhelp32Snapshot.
20596 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20598 * server.c (main): Check for inferior exit before main loop.
20600 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20602 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20603 instead of on tmp_desc.
20605 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20606 Daniel Jacobowitz <dan@codesourcery.com>
20608 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20609 (add_thread): Minor cleanups.
20610 (clear_inferiors): Move lower in the file. Clear the DLL
20612 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20613 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20614 (xml_escape_text): New.
20615 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20617 (handle_v_cont): Report errors.
20618 (gdbserver_version): Update.
20619 (main): Correct size of own_buf. Do not report initial DLL events.
20620 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20621 (unloaded_dll, xml_escape_text): New.
20622 * win32-low.c (enum target_waitkind): Update comments.
20623 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20624 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20625 (win32_EnumProcessModules, win32_GetModuleInformation)
20626 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20627 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20628 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20629 (win32_Module32First, win32_Module32Next, load_toolhelp)
20630 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20631 (get_child_debug_event): Handle DLL events.
20632 (win32_wait): Likewise.
20634 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20636 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20637 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20639 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20641 * win32-low.c (handle_output_debug_string): Ignore event if not
20644 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20646 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20648 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20650 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20652 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20654 * inferiors.c (change_inferior_id): Add comment.
20655 * linux-low.c (check_removed_breakpoint): Add an early
20656 prototype. Improve debug output.
20657 (linux_attach): Doc update.
20658 (linux_detach_one_process, linux_detach): Clean up before releasing
20660 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20661 * linux-low.h (struct process_info): Doc improvement.
20662 * mem-break.c (delete_all_breakpoints): New.
20663 * mem-break.h (delete_all_breakpoints): New prototype.
20664 * thread-db.c (find_first_thread): New.
20665 (thread_db_create_event): Call it instead of
20666 thread_db_find_new_threads. Clean up unused variables.
20667 (maybe_attach_thread): Remove first thread handling.
20668 (thread_db_find_new_threads): Use find_first_thread.
20669 (thread_db_get_tls_address): Likewise.
20671 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20673 * thread-db.c (thread_db_find_new_threads): Add prototype.
20674 (thread_db_create_event): Check for the main thread before adding
20676 (maybe_attach_thread): Only enable event reporting if TID == 0.
20677 (thread_db_get_tls_address): Check for new threads.
20679 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20681 * linux-low.c (linux_create_inferior): Try execv before execvp.
20682 * spu-low.c (spu_create_inferior): Likewise.
20684 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20686 * linux-low.c (linux_create_inferior): Change execv to execvp.
20687 * spu-low.c (spu_create_inferior): Likewies.
20689 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20691 * Makefile.in (clean): Clean new files instead of deleted ones.
20692 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20693 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20695 * configure.srv: Specify XML files and new regformats for MIPS and
20697 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20698 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20699 an entry for the restart register.
20700 (mips_cannot_fetch_register, mips_cannot_store_register)
20701 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20702 register names to match the XML descriptions.
20703 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20704 restart register instead of $0.
20706 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20707 Markus Deuling <deuling@de.ibm.com>
20709 * remote-utils.c (decode_xfer_write): New function.
20710 * server.h (decode_xfer_write): Add prototype.
20711 * server.c (handle_query): Add PACKET_LEN argument. Support
20712 qXfer:spu:read and qXfer:spu:write packets.
20713 (main): Pass packet_len to handle_query.
20714 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20715 * target.h (target_ops): Add qxfer_spu.
20717 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20719 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20720 accessing non-seekable spufs files.
20722 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20724 * server.c (handle_query): Add reply for qC packet.
20726 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20727 Leo Zayas <lerele@champenstudios@com>
20729 * server.h (check_remote_input_interrupt_request): New function.
20730 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20731 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20732 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20733 (check_remote_input_interrupt_request): New function.
20734 * server.h (check_remote_input_interrupt_request): Declare.
20735 * win32-low.c (winapi_DebugBreakProcess,
20736 winapi_GenerateConsoleCtrlEvent): New typedefs.
20737 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20739 (win32_wait): Check for remote interrupt request
20740 with check_remote_input_interrupt_request.
20741 (win32_request_interrupt): New function.
20742 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20744 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20746 * win32-low.c (debug_registers_changed,
20747 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20748 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20749 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20750 (thread_rec): Get context using the low target.
20751 (child_add_thread): Call thread_added on the low target,
20752 which does the same thing.
20754 (do_initial_child_stuff): Remove debug registers references.
20755 Set context using the low target. Resume threads after
20756 setting the contexts.
20757 (child_continue): Remove dead variable. Remove debug
20758 registers references.
20759 (child_fetch_inferior_registers): Go through the low target.
20760 (do_child_store_inferior_registers): Remove.
20761 (child_store_inferior_registers): Go through the low target.
20762 (win32_resume): Remove debug registers references.
20763 Set context using the low target.
20764 (handle_exception): Change return type to void. Don't record
20765 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20766 first chance exception.
20767 (get_child_debug_event): Change return type to void. Remove
20768 goto loop. Always return after waiting for debug event.
20769 (win32_wait): Convert to switch statement. Handle spurious
20772 * win32-i386-low.c (debug_registers_changed,
20773 debug_registers_used): New.
20774 (initial_stuff): Rename to ...
20775 (i386_initial_stuff): ... this. Clear debug registers
20777 (store_debug_registers): Delete.
20778 (i386_get_thread_context): New.
20779 (load_debug_registers): Delete.
20780 (i386_set_thread_context): New.
20781 (i386_thread_added): New.
20782 (single_step): Rename to ...
20783 (i386_single_step): ... this.
20784 (do_fetch_inferior_registers): Rename to ...
20785 (i386_fetch_inferior_register): ... this.
20786 (i386_store_inferior_register): New.
20787 (the_low_target): Adapt to new interface.
20789 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20790 (arm_get_thread_context): New.
20791 (arm_set_thread_context): New.
20793 (do_fetch_inferior_registers): Rename to ...
20794 (arm_fetch_inferior_register): ... this.
20795 (arm_store_inferior_register): New.
20796 (arm_wince_breakpoint): Reimplement as unsigned long.
20797 (arm_wince_breakpoint_len): Define.
20798 (the_low_target): Adapt to new interface.
20800 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20801 load_debug_registers. Add get_thread_context, set_thread_context,
20802 thread_added and store_inferior_register. Rename
20803 fetch_inferior_registers to fetch_inferior_register.
20804 (regptr): Remove declaration.
20806 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20808 * linux-low.c (linux_detach): Change return type to int. Return 0.
20809 * spu-low.c (spu_detach): Likewise.
20811 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * target.h (target_ops): Change return type of detach to int.
20815 (join_inferior): New.
20816 * server.c (main): Don't skip detach support on mingw32.
20817 If the inferior doesn't support detaching return error.
20818 Call join_inferior instead of using waitpid.
20819 * linux-low.c (linux_join): New.
20820 (linux_target_op): Add linux_join.
20821 * spu-low.c (spu_join): New.
20822 (spu_target_ops): Add spu_join.
20823 * win32-low.c (win32_detach): Adapt to new interface.
20824 Reopen current_process_handle before detaching. Issue a child
20825 resume before detaching.
20827 (win32_target_op): Add win32_join.
20829 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20831 * win32-low.c (win32-attach): Fix return value.
20832 * target.h (target_ops): Describe ATTACH return values.
20834 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20836 * win32-low.c (GETPROCADDRESS): Define.
20837 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20838 (winapi_DebugSetProcessKillOnExit): Likewise.
20839 (win32_create_inferior): Force usage of ansi CreateProcessA.
20840 (win32_attach): Use GETPROCADDRESS.
20841 (win32_detach): Likewise.
20843 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20845 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20847 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20849 * win32-low.c: Commit leftover changes from 2007-03-29.
20851 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20853 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20854 fields short instead of int. Add explicit padding.
20855 (i387_cache_to_fsave): Remove unnecessary casts.
20856 (i387_fsave_to_cache): Doc fix.
20857 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20859 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20861 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20862 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20864 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20866 * configure.srv (arm*-*-mingw32ce*): Move near the other
20869 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20871 * configure.ac: Add errno checking.
20872 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20873 sys/file.h and malloc.h.
20874 (AC_CHECK_DECLS): Add perror.
20875 (srv_mingwce): Handle.
20876 * configure.srv (i[34567]86-*-cygwin*): Add
20877 win32-i386-low.o to srv_tgtobj.
20878 (i[34567]86-*-mingw*): Likewise.
20879 (arm*-*-mingw32ce*): Add case.
20880 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20881 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20882 [__MINGW32CE__] (strerror): New function.
20883 [__MINGW32CE__] (errno): Define to GetLastError.
20884 [__MINGW32CE__] (COUNTOF): New macro.
20885 (remote_open): Remove extra close call.
20886 * mem-break.c (delete_breakpoint_at): New function.
20887 * mem-break.h (delete_breakpoint_at): Declare.
20888 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20889 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20890 [USE_WIN32API] (read, write): Add char* casts.
20891 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20892 * server.h: Include wincecompat.h on Windows CE.
20893 [HAVE_ERRNO_H]: Check.
20894 (perror): Declare if not declared.
20895 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20896 (perror_with_name): Remove errno declaration.
20897 * wincecompat.h: New.
20898 * wincecompat.c: New.
20899 * win32-low.h: New.
20900 * win32-arm-low.c: New.
20901 * win32-i386-low.c: New.
20902 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20903 (OUTMSG2): Make it safe.
20905 (COUNTOF): New macro.
20906 (NUM_REGS): Get it from the low target.
20907 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20908 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20909 (thread_rec): Let low target handle debug registers.
20910 (child_add_thread): Likewise.
20911 (child_init_thread_list): Likewise.
20912 (continue_one_thread): Likewise.
20914 (do_child_fetch_inferior_registers): Move to ...
20915 * win32-i386-low.c: ... here, and rename to ...
20916 (do_fetch_inferior_registers): ... this.
20917 * win32-low.c (child_fetch_inferior_registers):
20918 Go through the low target.
20919 (do_child_store_inferior_registers): Use regptr.
20920 (strwinerror): New function.
20921 (win32_create_inferior): Handle Windows CE.
20922 Use strwinerror instead of strerror on Windows error
20923 codes. Add program to the error output.
20924 Don't close the main thread handle on Windows CE.
20925 (win32_attach): Use coredll.dll on Windows CE.
20926 (win32_kill): Close current process and current
20928 (win32_detach): Use coredll.dll on Windows CE.
20929 (win32_resume): Let low target handle debug registers, and
20931 (handle_exception): Add/Remove initial breakpoint. Avoid
20932 non-existant WSTOPSIG on Windows CE.
20933 (win32_read_inferior_memory): Cast to remove warning.
20934 (win32_arch_string): Go through the low target.
20935 (initialize_low): Call set_breakpoint_data with the low
20936 target's breakpoint.
20937 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20938 FOP_REGNUM, mappings): Move to ...
20939 * win32-i386-low.c: ... here.
20940 * win32-low.c (win32_thread_info): Move to ...
20941 * win32-low.h: ... here.
20942 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20943 win32-arm-low.c and wincecompat.c.
20944 (all:): Add $EXEEXT.
20945 (install-only:): Likewise.
20946 (gdbserver:): Likewise.
20947 (gdbreplay:): Likewise.
20948 * config.in: Regenerate.
20949 * configure: Regenerate.
20951 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20953 * win32-low.c: Rename typedef thread_info to
20954 win32_thread_info throughout.
20956 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20958 * win32-i386-low.c: Rename to ...
20959 * win32-low.c: ... this.
20960 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20961 * Makefile.in: Likewise.
20963 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20965 * remote-utils.c (monitor_output): Constify msg parameter.
20966 * server.h (monitor_output): Likewise.
20967 * win32-i386-low.c (handle_output_debug_string): New.
20968 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20969 handle_output_debug_string.
20970 (get_child_debug_event): Likewise.
20972 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20974 * server.c (main): Correct strtoul check.
20976 2007-03-27 Jon Ringle <jon@ringle.org>
20978 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20980 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20982 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20984 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20986 * terminal.h: Check HAVE_SGTTY_H.
20988 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20990 * remote-utils.c (remote_open): Print out the assigned port number.
20992 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20994 * remote-utils.c (monitor_output): New function.
20995 * server.c (debug_threads): Define here.
20996 (monitor_show_help): New function.
20997 (handle_query): Handle qRcmd.
20998 (main): Do not handle 'd' packet.
20999 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21000 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21003 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21005 * Makefile.in (EXEEXT): New.
21006 (clean): Use $(EXEEXT).
21008 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21010 * target.h (target_ops): Rename send_signal to request_interrupt,
21011 and remove enum target_signal parameter.
21012 * linux-low.c (linux_request_interrupt): Rename from
21013 linux_send_signal, and always send SIGINT.
21014 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21015 and always send SIGINT.
21016 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21018 (input_interrupt): Likewise.
21020 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21022 * server.c (get_features_xml): Check if target implemented
21024 * win32-i386-low.c (win32_arch_string): New.
21025 (win32_target_ops): Add win32_arch_string as arch_string member.
21027 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21029 * spu-low.c (spu_arch_string): New.
21030 (spu_target_ops): Add spu_arch_string.
21032 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21034 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21035 * configure.ac: Do not check for terminal.h.
21036 * configure, config.in: Regenerated.
21038 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21040 * Makefile.in (OBS): Add $(XML_BUILTIN).
21041 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21043 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21044 (arm-with-iwmmxt.c): New.
21045 * config.in, configure: Regenerate.
21046 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21047 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21048 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21049 (arm*-*-linux*): Add iWMMXt and regset support.
21050 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21051 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21052 (arm_store_wmmxregset, target_regsets): New.
21053 * server.c (get_features_xml): Take annex argument. Check builtin
21055 (handle_query): Handle multiple annexes.
21057 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21059 * remote-utils.c [USE_WIN32API] (read, write): Define.
21060 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21063 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21065 * linux-i386-low.c (the_low_target): Set arch_string.
21066 * linux-x86-64-low.c (the_low_target): Likewise.
21067 * linux-low.c (linux_arch_string): New.
21068 (linux_target_ops): Add it.
21069 * linux-low.h (struct linux_target_ops): Add arch_string.
21070 * server.c (write_qxfer_response): Use const void * for DATA.
21071 (get_features_xml): New.
21072 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21073 * target.h (struct target_ops): Add arch_string method.
21075 2007-01-03 Denis Pilat <denis.pilat@st.com>
21076 Daniel Jacobowitz <dan@codesourcery.com>
21078 * linux-low.c (linux_kill): Handle being called with no threads.
21079 * win32-i386-low.c (win32_kill): Likewise.
21080 (get_child_debug_event): Clear current_process_handle.
21082 2006-12-30 Denis PILAT <denis.pilat@st.com>
21083 Daniel Jacobowitz <dan@codesourcery.com>
21085 * remote-utils.c (remote_open): Check the type of specified
21086 serial port devices before opening them.
21087 * server.c (main): Kill the inferior if an error occurs during
21088 the first remote_open.
21090 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21092 * README: Update supported targets.
21094 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21096 * Makefile.in (clean): Remove reg-mips64.c.
21097 (reg-mips64.c, reg-mips64.o): New rules.
21098 * configure.srv: Handle mips64. Include regset support for mips.
21099 * linux-mips-low.c (union mips_register): New.
21100 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21101 (mips_breakpoint, mips_breakpoint_at): Use int.
21102 (mips_collect_register, mips_supply_register)
21103 (mips_collect_register_32bit, mips_supply_register_32bit)
21104 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21105 (mips_store_fpregset, target_regsets): New.
21106 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21108 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21110 * configure.srv: Add target "spu*-*-*".
21111 * Makefile.in (clean): Remove reg-spu.c.
21112 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21113 * spu-low.c: New file.
21115 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21117 * configure.ac: Correct td_thr_tls_get_addr test.
21118 * configure: Regenerated.
21120 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21122 * linux-low.c (linux_wait_for_event): Reformat. Use the
21123 pass_signals array.
21124 * remote-utils.c (decode_address_to_semicolon): New.
21125 * server.c (pass_signals, handle_general_set): New.
21126 (handle_query): Mention QPassSignals for qSupported.
21127 (main): Call handle_general_set.
21128 * server.h (pass_signals, decode_address_to_semicolon): New.
21130 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21132 * server.c (handle_query): Correct error handling for read_auxv.
21134 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21136 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21137 and srv_linux_thread_db to yes.
21138 * linux-s390-low.c (s390_fill_gregset): New function.
21139 (target_regsets): Define data structure.
21141 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21143 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21144 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21145 * config.in, configure: Regenerated.
21146 * inferiors.c (gdb_id_to_thread): New function.
21147 (gdb_id_to_thread_id): Use it.
21148 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21149 * linux-low.h (struct process_info): Add th member.
21150 (thread_db_get_tls_address): New prototype.
21151 * remote-utils.c (decode_address): Make non-static.
21152 * server.c (handle_query): Handle qGetTLSAddr.
21153 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21154 * target.h (struct target_ops): Add get_tls_address.
21155 * thread-db.c (maybe_attach_thread): Save the thread handle.
21156 (thread_db_get_tls_address): New.
21158 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21160 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21161 (linux_resume_one_process): Take a siginfo_t *. Update all
21162 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21163 (struct pending_signals): Add a siginfo_t.
21164 (linux_wait_for_process): Always set last_status.
21165 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21166 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21167 * linux-low.h (struct process_info): Add last_status.
21169 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21171 * remote-utils.c (try_rle): New function.
21172 (putpkt_binary): Use it.
21174 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21176 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21177 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21178 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21179 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21180 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21183 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21185 * server.c (terminal_fd): New variable.
21186 (old_foreground_pgrp): Likewise.
21187 (restore_old_foreground_pgrp): New function.
21188 (start_inferior): Record the terminal file descriptor in terminal_fd
21189 and its original foreground group in old_foreground_pgrp. Register
21190 restore_old_foreground_pgrp with atexit().
21192 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21194 * server.c (handle_query): Correct qPart to qXfer.
21196 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21198 * configure.ac: Check for more headers which are missing on
21199 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21200 * configure.srv: Add Cygwin and mingw32.
21201 * remote-utils.c: Don't include headers unconditionally which
21202 are missing on mingw32. Include <winsock.h> for mingw32.
21203 (remote_open): Adjust for mingw32 support. Flush
21204 standard error after writing to it.
21205 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21206 (unblock_async_io, enable_async_io, disable_async_io)
21207 (readchar, getpkt): Update for Winsock support.
21208 (prepare_resume_reply): Expect a protocol signal number.
21209 * server.c: Disable <sys/wait.h> on mingw32.
21210 (start_inferior): Adjust for mingw32 support. Flush
21211 standard error after writing to it.
21212 (attach_inferior): Likewise. Use protocol signal
21214 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21216 * win32-i386-low.c: New file.
21217 * Makefile.in (XM_CLIBS): Set.
21218 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21219 (win32-i386-low.o): New dependency rule.
21220 * linux-low.c (linux_wait): Use target signal numbers.
21221 * target.h (struct target_ops): Doc fix.
21222 * server.h (target_signal_to_name): New prototype.
21223 * gdbreplay.c: Don't include headers unconditionally which
21224 are missing on mingw32. Include <winsock.h> for mingw32.
21225 (remote_close, remote_open): Adjust for Winsock support.
21226 * configure, config.in: Regenerated.
21228 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21230 * server.c (decode_xfer_read, write_qxfer_response): New.
21231 (handle_query): Take a packet length argument. Handle
21232 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21233 the qSupported response.
21234 (main): Update call to handle_query.
21236 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21238 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21239 (putpkt_binary): Renamed from putpkt and adjusted for binary
21241 (putpkt): New wrapper for putpkt_binary.
21242 (readchar): Don't mask off the high bit.
21243 (decode_X_packet): New function.
21244 * server.c (main): Call putpkt_binary if a handler sets the packet
21245 length. Save the length of the incoming packet. Handle 'X'.
21246 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21248 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21250 * server.c (handle_query): Handle qSupported.
21252 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21254 * remote-utils.c (all_symbols_looked_up): New variable.
21255 (look_up_one_symbol): Check it.
21256 * server.h (look_up_one_symbol): New declaration.
21257 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21259 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21261 * Makefile.in (linux-arm-low.o): Update dependencies.
21262 * linux-arm-low.c: Include "gdb_proc_service.h".
21263 (PTRACE_GET_THREAD_AREA): Define.
21264 (ps_get_thread_area): New function.
21266 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21268 * configure.srv (m68k*-*-uclinux*): New target.
21269 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21270 (linux_resume_one_process): Remove extraneous cast.
21271 (linux_read_offsets): New.
21272 (linux_target_op): Add linux_read_offsets on mmuless systems.
21273 * server.c (handle_query): Add qOffsets logic.
21274 * target.h (struct target_ops): Add read_offsets.
21276 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21278 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21279 (PTRACE_GET_THREAD_AREA): Define.
21280 (ps_get_thread_area): New function.
21281 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21282 (linux-x86-64-low.o): Update.
21284 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21286 * configure.ac: Remove checks for prfpregset_t.
21287 * gdb_proc_service.h: New file.
21288 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21289 new "gdb_proc_service.h".
21290 * proc-service.c: Likewise.
21291 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21292 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21293 * Makefile.in (gdb_proc_service_h): Updated.
21294 * configure, config.in: Regenerated.
21296 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21298 * remote-utils.c (prepare_resume_reply): Move declaration
21299 of gdb_id_from_wait to the top of the block.
21301 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21303 * linux-low.c (regsets_store_inferior_registers): Read the regset
21304 from the target before filling it.
21306 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21308 * server.c (attach_inferior): Return SIGTRAP for a successful
21311 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21313 * Makefile.in (OBS): Add version.o.
21314 (STAGESTUFF): Delete.
21315 (version.o): Add dependencies.
21316 (version.c): Replace rule.
21317 (clean): Remove version.c.
21318 * server.c (gdbserver_version): New.
21319 (gdbserver_usage): Use printf.
21320 (main): Handle --version and --help.
21321 * server.h (version, host_name): Add declarations.
21323 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21335 * linux-x86-64-low.c:
21337 * linux-s390-low.c:
21338 * linux-ppc64-low.c:
21340 * linux-mips-low.c:
21341 * linux-m68k-low.c:
21342 * linux-m32r-low.c:
21345 * linux-ia64-low.c:
21346 * linux-i386-low.c:
21347 * linux-crisv32-low.c:
21359 * gdbserver.1: Add (C) after Copyright. Update the FSF
21362 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21364 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21365 (arm_breakpoint_at): Recognize both breakpoints.
21366 (the_low_target): Use the correct breakpoint instruction.
21368 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21370 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21371 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21372 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21373 (the_low_target): Update.
21375 2005-10-25 Andreas Schwab <schwab@suse.de>
21377 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21379 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21380 (ia64_num_regs): Reduce to 462.
21382 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21384 * acinclude.m4: Correct quoting.
21385 * aclocal.m4: Regenerated.
21387 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21388 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21389 (thread_db_init): Call thread_db_err_str.
21390 * configure.ac: Check for TD_VERSION.
21391 * config.in, configure: Regenerated.
21393 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21395 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21397 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21399 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21400 is not available. Define HAVE_PTRACE_GETREGS if it is.
21401 * config.in, configure: Regenerated.
21402 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21403 * linux-i386-low.c, linux-m68k-low.c: Update to use
21404 HAVE_PTRACE_GETREGS.
21405 * linux-low.c (regsets_fetch_inferior_registers)
21406 (regsets_store_inferior_registers): Only return 0 if we processed
21408 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21409 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21411 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21413 * inferiors.c (struct thread_info): Add gdb_id.
21414 (add_thread): Add gdb_id argument.
21415 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21416 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21417 calls to add_thread.
21418 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21419 * server.c (handle_query): Use thread_to_gdb_id.
21420 (handle_v_cont, main): Use gdb_id_to_thread_id.
21421 * server.h (add_thread): Update prototype.
21422 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21425 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21427 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21428 left-padded registers.
21429 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21430 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21432 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21434 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21435 * configure: Regenerate.
21436 * config.in: Regenerate.
21437 * server.h (NEED_DECLARATION_STRERROR):
21438 Replace with !HAVE_DECL_STRERROR.
21440 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21442 * linux-low.c (linux_wait, linux_send_signal): Don't test
21443 an unsigned long variable for > 0 if it could be MAX_ULONG.
21444 * server.c (myresume): Likewise.
21445 * target.c (set_desired_inferior): Likewise.
21447 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21449 * configure.ac: Simplify and improve check for socklen_t.
21450 * configure, config.in: Regenerate.
21452 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21454 * acconfig.h: Remove.
21455 * configure.ac: Add a test for socklen_t. Use three-argument
21456 AC_DEFINE throughout.
21457 * config.in: Regenerated using autoheader 2.59.
21458 * configure: Regenerated.
21460 * gdbreplay.c (socklen_t): Provide a default.
21461 (remote_open): Use socklen_t.
21462 * remote-utils.c (socklen_t): Provide a default.
21463 (remote_open): Use socklen_t.
21464 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21467 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21469 * linux-low.c (linux_read_memory, linux_write_memory)
21470 (linux_read_auxv): Likewise.
21471 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21472 (check_mem_write): Likewise.
21473 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21475 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21476 (registers_from_string, register_data): Likewise.
21477 * server.c (handle_query, main): Likewise.
21478 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21479 (decode_M_packet): Likewise.
21480 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21481 * target.h (struct target_ops): Update read_memory, write_memory,
21483 (read_inferior_memory, write_inferior_memory): Update.
21484 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21485 to unsigned char *.
21486 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21487 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21488 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21489 linux-s390-low.c, linux-sh-low.c: Update for changes in
21490 read_inferior_memory and the_low_target->breakpoint.
21492 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21494 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21495 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21496 * configure.srv: Add powerpc64-*-linux*.
21497 * linux-ppc64-low.c: New file.
21499 2005-05-23 Orjan Friberg <orjanf@axis.com>
21501 * linux-cris-low.c: New file with support for CRIS.
21502 * linux-crisv32-low.c: Ditto for CRISv32.
21503 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21504 (clean): Add reg-cris.c and reg-crisv32.c.
21505 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21506 reg-crisv32.o, and reg-crisv32.c to make rules.
21507 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21508 recognized targets.
21510 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21512 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21513 of sizeof (PTRACE_XFER_TYPE).
21514 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21516 2005-05-12 Orjan Friberg <orjanf@axis.com>
21518 * target.h (struct target_ops): Add insert_watchpoint,
21519 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21520 pointers for hardware watchpoint support.
21521 * linux-low.h (struct linux_target_ops): Ditto.
21522 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21523 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21524 to linux_target_ops.
21525 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21527 * server.c (main): Recognize 'Z' and 'z' packets.
21529 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21531 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21532 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21533 (the_low_target): Add new members.
21535 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21537 * proc-service.c (ps_lgetregs): Search all_processes instead of
21540 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21542 * server.c (start_inferior): Change return type to int.
21543 (attach_inferior): Change sigptr to int *.
21544 (handle_v_cont, handle_v_requests): Change signal to int *.
21545 (main): Change signal to int.
21547 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21549 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21550 * configure.srv: Add m32r*-*-linux*.
21551 * linux-m32r-low.c: New file.
21553 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21555 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21557 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21559 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21560 Take unsigned long arguments for PIDs.
21561 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21562 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21563 (wait_for_sigstop, linux_resume_one_process)
21564 (regsets_fetch_inferior_registers, linux_send_signal)
21565 (linux_read_auxv): Likewise. Update the types of variables holding
21566 PIDs. Update format string specifiers.
21567 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21568 * remote-utils.c (prepare_resume_reply): Likewise.
21569 * server.c (cont_thread, general_thread, step_thread)
21570 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21572 (handle_query): Update format specifiers.
21573 (handle_v_cont, main): Use strtoul for thread IDs.
21574 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21575 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21576 (general_thread, step_thread, thread_from_wait)
21577 (old_thread_from_wait): Update.
21578 * target.h (struct thread_resume): Use unsigned long for THREAD.
21579 (struct target_ops): Use unsigned long for arguments to attach and
21582 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21584 * acinclude.m4: Include bfd/bfd.m4 directly.
21585 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21586 <agriffis@toolchain.org>.
21587 * aclocal.m4, configure: Regenerated.
21589 2005-01-07 Andrew Cagney <cagney@gnu.org>
21591 * configure.ac: Rename configure.in, require autoconf 2.59.
21592 * configure: Re-generate.
21594 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21596 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21597 LIBS when finished.
21598 * aclocal.m4: Regenerated.
21599 * configure: Regenerated.
21601 2004-11-21 Andreas Schwab <schwab@suse.de>
21603 * linux-m68k-low.c (m68k_num_gregs): Define.
21604 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21605 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21606 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21607 (m68k_breakpoint_at): New. Add to the_low_target.
21609 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21610 srv_linux_thread_db to yes.
21612 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21614 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21615 (ARCH_SET_FS): Likewise.
21616 (ARCH_GET_FS): Likewise.
21617 (ARCH_GET_GS): Likewise.
21619 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21621 * linux-i386-low.c (ps_get_thread_area): New.
21622 * linux-x86-64-low.c (ps_get_thread_area): New.
21623 * linux-low.c: Include <sys/syscall.h>.
21624 (linux_kill_one_process): Don't kill the first thread here.
21625 (linux_kill): Kill the first thread here.
21626 (kill_lwp): New function.
21627 (send_sigstop, linux_send_signal): Use it.
21628 * proc-service.c: Clean up #ifdefs.
21629 (fpregset_info): Delete.
21630 (ps_lgetregs): Update and enable implementation.
21631 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21633 * remote-utils.c (struct sym_cache, symbol_cache): New.
21634 (input_interrupt): Print a clearer message.
21635 (async_io_enabled): New variable.
21636 (enable_async_io, disable_async_io): Use it. Update comments.
21637 (look_up_one_symbol): Use the symbol cache.
21638 * thread-db.c (thread_db_look_up_symbols): New function.
21639 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21641 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21643 * configure.in: Test for -rdynamic.
21644 * configure: Regenerated.
21645 * Makefile (INTERNAL_LDFLAGS): New.
21646 (gdbserver, gdbreplay): Use it.
21648 2004-09-02 Andrew Cagney <cagney@gnu.org>
21650 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21652 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21654 * linux-low.c (linux_wait): Clear all_processes list also.
21656 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21658 * linux-low.c: Include <errno.h>. Remove extern declaration of
21661 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21663 * gdbreplay.c, server.h, utils.c: Update copyright years.
21665 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21667 * server.c (main): Print child status or termination signal from
21668 variable 'signal', not 'sig'.
21670 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21672 * linux-low.c (linux_read_memory): Change return type to
21673 int. Check for and return error from ptrace().
21674 * target.c (read_inferior_memory): Change return type to int. Pass
21675 back return status from the_target->read_memory().
21676 * target.h (struct target_ops): Adapt *read_memory() prototype.
21678 (read_inferior_memory): Adapt prototype.
21679 * server.c (main): Return an error packet if
21680 read_inferior_memory() returns an error.
21682 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21684 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21685 Unify with other clean targets.
21687 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21689 * server.c (handle_v_cont): Call set_desired_inferior.
21691 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21693 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21695 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21697 * linux-low.c (linux_wait): Unblock async I/O.
21698 (linux_resume): Block and enable async I/O.
21699 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21700 * server.h (block_async_io, unblock_async_io): Add prototypes.
21702 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21704 * remote-utils.c (remote_open): Print a status notice after
21705 opening a TCP port.
21706 * server.c (attach_inferior): Print a status notice after
21709 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21711 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21713 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21715 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21717 * server.c, target.h: Update copyright years.
21719 2004-02-25 Roland McGrath <roland@redhat.com>
21721 * target.h (struct target_ops): New member `read_auxv'.
21722 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21723 * linux-low.c (linux_read_auxv): New function.
21724 (linux_target_ops): Initialize `read_auxv' member to that.
21726 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21728 Committed by Jim Blandy <jimb@redhat.com>.
21730 * linux-s390-low.c (s390_num_regs): Update.
21731 (s390_regmap): Remove control registers. Use __s390x__ predefine
21732 instead of GPR_SIZE to distiguish s390 and s390x targets.
21734 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21736 * linux-low.c: Update copyright year.
21737 (check_removed_breakpoint): Clear pending_is_breakpoint.
21738 (linux_set_resume_request, linux_queue_one_thread)
21739 (resume_status_pending_p): New functions.
21740 (linux_continue_one_thread): Use process->resume.
21741 (linux_resume): Only resume threads if there are no pending events.
21742 * linux-low.h (struct process_info): Add resume request
21745 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21747 * regcache.c (new_register_cache): Clear the allocated register
21748 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21750 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21752 * linux-low.c (linux_resume): Take a struct thread_resume *
21754 (linux_wait): Update call.
21755 (resume_ptr): New static variable.
21756 (linux_continue_one_thread): Renamed from
21757 linux_continue_one_process. Use resume_ptr.
21758 (linux_resume): Use linux_continue_one_thread.
21759 * server.c (handle_v_cont, handle_v_requests): New functions.
21760 (myresume): New function.
21761 (main): Handle 'v' case.
21762 * target.h (struct thread_resume): New type.
21763 (struct target_ops): Change argument of "resume" to struct
21765 (myresume): Delete macro.
21767 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21769 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21770 (uninstall): Support DESTDIR.
21772 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21774 * configure.srv: Add xscale*linux copy of arm*linux entry.
21776 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21778 * linux-arm-low.c (arm_reinsert_addr): New function.
21779 (the_low_target): Add arm_reinsert_addr.
21781 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21783 * mem-break.c: Remove whitespace at end of file.
21785 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21787 * configure.in: Check whether we need to prototype strerror.
21788 * server.h: Optionally prototype strerror.
21789 * gdbreplay.c (perror_with_name): Use strerror.
21790 * linux-low.c (linux_attach_lwp): Use strerror.
21791 * utils.c (perror_with_name): Use strerror.
21792 * config.in, configure: Regenerated.
21794 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21796 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21797 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21799 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21801 * Makefile.in (SFILES): Update.
21802 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21803 low-sun3.c: Remove files.
21805 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21807 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21808 (linux_detach_one_process, linux_detach): New functions.
21809 (linux_target_ops): Add linux_detach.
21810 * server.c (main): Handle 'D' packet.
21811 * target.h (struct target_ops): Add "detach" member.
21812 (detach_inferior): Define.
21814 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21816 From Kelley Cook <kelleycook@wideopenwest.com>:
21817 * configure.srv: Accept i[34567]86 variants.
21819 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21821 * linux-low.c (linux_wait_for_event): Correct comment typos.
21822 (linux_resume_one_process): Call check_removed_breakpoint.
21823 (linux_send_signal): New function.
21824 (linux_target_ops): Add linux_send_signal.
21825 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21827 * target.h (struct target_ops): Add send_signal.
21829 2003-05-29 Jim Blandy <jimb@redhat.com>
21831 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21832 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21833 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21834 away part of the register's value.
21836 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21838 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21839 (linux_wait_for_event, linux_init_signals): Likewise.
21841 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21843 * configure.in: Check for stdlib.h.
21844 * configure: Regenerated.
21845 * config.in: Regenerated.
21847 2003-01-04 Andreas Schwab <schwab@suse.de>
21849 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21851 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21853 * Makefile.in: Remove obsolete code.
21855 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21857 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21858 defined(PT_FPR0_HI).
21860 2002-11-17 Stuart Hughes <seh@zee2.com>
21862 * linux-arm-low.c (arm_num_regs): Increase.
21863 (arm_regmap): Include status register.
21865 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21867 * linux-low.c (register_addr): Remove incorrect -1 check.
21869 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21871 * linux-low.c (linux_create_inferior): Call setpgid. Return
21873 (unstopped_p, linux_signal_pid): Remove.
21874 (linux_target_ops): Remove linux_signal_pid.
21875 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21876 global instead of target method.
21877 * target.h (struct target_ops): Remove signal_pid. Update comment
21878 for create_inferior.
21879 * server.c (signal_pid): New variable.
21880 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21881 gdbserver. Set the child to be the foreground process group.
21882 (attach_inferior): Set signal_pid.
21884 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21886 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21888 2002-08-20 Jim Blandy <jimb@redhat.com>
21890 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21893 2002-08-01 Andrew Cagney <cagney@redhat.com>
21895 * Makefile.in: Make chill references obsolete.
21897 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21899 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21900 * configure: Regenerate.
21901 * config.in: Regenerate.
21903 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21905 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21906 (perror_with_name, remote_close, remote_open, expect, play): Static.
21908 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21910 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21911 byte offsets instead of an array of indexes.
21912 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21914 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21916 * regcache.c: Add comment.
21918 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21920 * thread-db.c: New file.
21921 * proc-service.c: New file.
21922 * acinclude.m4: New file.
21923 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21924 proc-service.o, and thread-db.o.
21925 (linux-low.o): Add USE_THREAD_DB.
21926 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21927 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21928 * aclocal.m4: Regenerated.
21929 * config.in: Regenerated.
21930 * configure: Regenerated.
21931 * configure.in: Check for proc_service.h, sys/procfs.h,
21932 thread_db.h, and linux/elf.h headrs.
21933 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21934 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21935 Check for -lthread_db and thread support.
21936 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21937 PowerPC, and SuperH.
21938 * i387-fp.c: Constify arguments.
21939 * i387-fp.h: Likewise.
21940 * inferiors.c: (struct thread_info): Renamed from
21941 `struct inferior_info'. Remove PID member. Use generic inferior
21942 list header. All uses updated.
21943 (inferiors, signal_pid): Removed.
21944 (all_threads): New variable.
21945 (get_thread): Define.
21946 (add_inferior_to_list): New function.
21947 (for_each_inferior): New function.
21948 (change_inferior_id): New function.
21949 (add_inferior): Removed.
21950 (remove_inferior): New function.
21951 (add_thread): New function.
21952 (free_one_thread): New function.
21953 (remove_thread): New function.
21954 (clear_inferiors): Use for_each_inferior and free_one_thread.
21955 (find_inferior): New function.
21956 (find_inferior_id): New function.
21957 (inferior_target_data): Update argument type.
21958 (set_inferior_target_data): Likewise.
21959 (inferior_regcache_data): Likewise.
21960 (set_inferior_regcache_data): Likewise.
21961 * linux-low.c (linux_bp_reinsert): Remove.
21962 (all_processes, stopping_threads, using_thrads)
21963 (struct pending_signals, debug_threads, pid_of): New.
21964 (inferior_pid): Replace with macro.
21965 (struct inferior_linux_data): Remove.
21966 (get_stop_pc, add_process): New functions.
21967 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21968 Use add_process and add_thread.
21969 (linux_attach_lwp): New function, based on old linux_attach. Use
21970 add_process and add_thread. Set stop_expected for new threads.
21971 (linux_attach): New function.
21972 (linux_kill_one_process): New function.
21973 (linux_kill): Kill all LWPs.
21974 (linux_thread_alive): Use find_inferior_id.
21975 (check_removed_breakpoints, status_pending_p): New functions.
21976 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21977 Update. Use WNOHANG. Wait for cloned processes also. Update process
21978 struct for the found process.
21979 (linux_wait_for_event): New function.
21980 (linux_wait): Use it. Support LWPs.
21981 (send_sigstop, wait_for_sigstop, stop_all_processes)
21982 (linux_resume_one_process, linux_continue_one_process): New functions.
21983 (linux_resume): Support LWPs.
21984 (REGISTER_RAW_SIZE): Remove.
21985 (fetch_register): Use register_size instead. Call supply_register.
21986 (usr_store_inferior_registers): Likewise. Call collect_register.
21987 Fix recursive case.
21988 (regsets_fetch_inferior_registers): Improve error message.
21989 (regsets_store_inferior_registers): Add debugging.
21990 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21991 (unstopped_p, linux_signal_pid): New functions.
21992 (linux_target_ops): Add linux_signal_pid.
21993 (linux_init_signals): New function.
21994 (initialize_low): Call it. Initialize using_threads.
21995 * regcache.c (inferior_regcache_data): Add valid
21997 (get_regcache): Fetch registers lazily. Add fetch argument
21998 and update all callers.
21999 (regcache_invalidate_one, regcache_invalidate): New
22001 (new_register_cache): Renamed from create_register_cache.
22002 Return the new regcache.
22003 (free_register_cache): Change argument to a void *.
22004 (registers_to_string, registers_from_string): Call get_regcache
22005 with fetch flag set.
22006 (register_data): Make static. Pass fetch flag to get_regcache.
22007 (supply_register): Call get_regcache with fetch flag clear.
22008 (collect_register): Call get_regcache with fetch flag set.
22009 (collect_register_as_string): New function.
22010 * regcache.h: Update.
22011 * remote-utils.c (putpkt): Flush after debug output and use
22013 Handle input interrupts while waiting for an ACK.
22014 (input_interrupt): Use signal_pid method.
22015 (getpkt): Flush after debug output and use stderr.
22016 (outreg): Use collect_register_as_string.
22017 (new_thread_notify, dead_thread_notify): New functions.
22018 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22019 and general_thread.
22020 (look_up_one_symbol): Flush after debug output.
22021 * server.c (step_thread, server_waiting): New variables.
22022 (start_inferior): Don't use signal_pid. Update call to mywait.
22023 (attach_inferior): Update call to mywait.
22024 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22025 (main): Don't fetch/store registers explicitly. Use
22026 set_desired_inferior. Support proposed ``Hs'' packet. Update
22028 * server.h: Update.
22029 (struct inferior_list, struct_inferior_list_entry): New.
22030 * target.c (set_desired_inferior): New.
22031 (write_inferior_memory): Constify.
22032 (mywait): New function.
22033 * target.h: Update.
22034 (struct target_ops): New signal_pid method.
22035 (mywait): Removed macro, added prototype.
22037 * linux-low.h (regset_func): Removed.
22038 (regset_fill_func, regset_store_func): New.
22039 (enum regset_type): New.
22040 (struct regset_info): Add type field. Use new operation types.
22041 (struct linux_target_ops): stop_pc renamed to get_pc.
22042 Add decr_pc_after_break and breakpoint_at.
22043 (get_process, get_thread_proess, get_process_thread)
22044 (strut process_info, all_processes, linux_attach_lwp)
22045 (thread_db_init): New.
22047 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22048 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22049 (the_low_target): Add new members.
22050 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22051 (i386_store_fpxregset): Constify.
22052 (target_regsets): Add new kind identifier.
22053 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22054 (i386_set_pc): Add debugging.
22055 (i386_breakpoint_at): New function.
22056 (the_low_target): Add new members.
22057 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22058 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22059 (mips_breakpoint_at): New.
22060 (the_low_target): Add new members.
22061 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22062 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22063 (the_low_target): Add new members.
22064 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22065 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22066 (the_low_target): Add new members.
22067 * linux-x86-64-low.c (target_regsets): Add new kind
22070 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22072 From Martin Pool <mbp@samba.org>:
22073 * server.c (gdbserver_usage): New function.
22076 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22078 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22079 stop_at -> stop_pc.
22081 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22083 * Makefile.in: Remove obsolete code.
22085 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22087 * linux-low.c (regsets_fetch_inferior_registers),
22088 (regsets_store_inferior_registers): Removed cast to int from
22090 * regcache.h: Added declaration of struct inferior_info.
22092 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22094 * inferiors.c (struct inferior_info): Add regcache_data.
22095 (add_inferior): Call create_register_cache.
22096 (clear_inferiors): Call free_register_cache.
22097 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22098 * regcache.c (struct inferior_regcache_data): New.
22099 (registers): Remove.
22100 (get_regcache): New function.
22101 (create_register_cache, free_register_cache): New functions.
22102 (set_register_cache): Don't initialize the register cache here.
22103 (registers_to_string, registers_from_string, register_data): Call
22105 * regcache.h: Add prototypes.
22106 * server.h: Likewise.
22108 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22110 * mem-break.c: New file.
22111 * mem-break.h: New file.
22112 * Makefile.in: Add mem-break.o rule; update server.h
22114 * inferiors.c (struct inferior_info): Add target_data
22116 (clear_inferiors): Free target_data member if set.
22117 (inferior_target_data, set_inferior_target_data): New functions.
22118 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22119 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22120 * linux-low.c (linux_bp_reinsert): New variable.
22121 (struct inferior_linux_data): New.
22122 (linux_create_inferior): Use set_inferior_target_data.
22123 (linux_attach): Likewise. Call add_inferior.
22124 (linux_wait_for_one_inferior): New function.
22125 (linux_wait): Call it.
22126 (linux_write_memory): Add const.
22127 (initialize_low): Call set_breakpoint_data.
22128 * linux-low.h (struct linux_target_ops): Add breakpoint
22130 * server.c (attach_inferior): Remove extra add_inferior
22132 * server.h: Include mem-break.h. Update inferior.c
22134 * target.c (read_inferior_memory)
22135 (write_inferior_memory): New functions.
22136 * target.h (read_inferior_memory)
22137 (write_inferior_memory): Change macros to prototypes.
22138 (struct target_ops): Update comments. Add const to write_memory
22141 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22143 * linux-low.c (usr_store_inferior_registers): Support
22144 registers which are allowed to fail to store.
22145 * linux-low.h (linux_target_ops): Likewise.
22146 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22147 (ppc_cannot_store_register): FPSCR may not be storable.
22149 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22151 * server.h: Include <string.h> if HAVE_STRING_H.
22152 * ChangeLog: Correct paths in last ChangeLog entry.
22154 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22156 * linux-low.h: Remove obsolete prototypes.
22157 (struct linux_target_ops): New.
22158 (extern the_low_target): New.
22159 * linux-low.c (num_regs, regmap): Remove declarations.
22160 (register_addr): Use the_low_target explicitly.
22161 (fetch_register): Likewise.
22162 (usr_fetch_inferior_registers): Likewise.
22163 (usr_store_inferior_registers): Likewise.
22164 * linux-arm-low.c (num_regs): Remove.
22165 (arm_num_regs): Define.
22166 (arm_regmap): Renamed from regmap, made static.
22167 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22169 (arm_cannot_store_register): Renamed from cannot_store_register,
22171 (the_low_target): New.
22172 * linux-i386-low.c (num_regs): Remove.
22173 (i386_num_regs): Define.
22174 (i386_regmap): Renamed from regmap, made static.
22175 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22177 (i386_cannot_store_register): Renamed from cannot_store_register,
22179 (the_low_target): New.
22180 * linux-ia64-low.c (num_regs): Remove.
22181 (ia64_num_regs): Define.
22182 (ia64_regmap): Renamed from regmap, made static.
22183 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22185 (ia64_cannot_store_register): Renamed from cannot_store_register,
22187 (the_low_target): New.
22188 * linux-m68k-low.c (num_regs): Remove.
22189 (m68k_num_regs): Define.
22190 (m68k_regmap): Renamed from regmap, made static.
22191 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22193 (m68k_cannot_store_register): Renamed from cannot_store_register,
22195 (the_low_target): New.
22196 * linux-mips-low.c (num_regs): Remove.
22197 (mips_num_regs): Define.
22198 (mips_regmap): Renamed from regmap, made static.
22199 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22201 (mips_cannot_store_register): Renamed from cannot_store_register,
22203 (the_low_target): New.
22204 * linux-ppc-low.c (num_regs): Remove.
22205 (ppc_num_regs): Define.
22206 (ppc_regmap): Renamed from regmap, made static.
22207 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22209 (ppc_cannot_store_register): Renamed from cannot_store_register,
22211 (the_low_target): New.
22212 * linux-s390-low.c (num_regs): Remove.
22213 (s390_num_regs): Define.
22214 (s390_regmap): Renamed from regmap, made static.
22215 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22217 (s390_cannot_store_register): Renamed from cannot_store_register,
22219 (the_low_target): New.
22220 * linux-sh-low.c (num_regs): Remove.
22221 (sh_num_regs): Define.
22222 (sh_regmap): Renamed from regmap, made static.
22223 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22225 (sh_cannot_store_register): Renamed from cannot_store_register,
22227 (the_low_target): New.
22228 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22229 (the_low_target): New.
22231 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22233 * Makefile.in: Add stamp-h target.
22234 * configure.in: Create stamp-h.
22235 * configure: Regenerated.
22237 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22239 * inferiors.c: New file.
22240 * target.c: New file.
22241 * target.h: New file.
22242 * Makefile.in: Add target.o and inferiors.o. Update
22244 * linux-low.c (inferior_pid): New static variable,
22245 moved from server.c.
22246 (linux_create_inferior): Renamed from create_inferior.
22247 Call add_inferior. Return 0 on success instead of a PID.
22248 (linux_attach): Renamed from myattach.
22249 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22250 (linux_thread_alive): Renamed from mythread_alive.
22251 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22253 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22254 (regsets_store_inferior_registers): Correct error message.
22255 Add missing ``return 0''.
22256 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22257 (linux_store_registers): Renamed from store_inferior_registers.
22258 (linux_read_memory): Renamed from read_inferior_memory.
22259 (linux_write_memory): Renamed from write_inferior_memory.
22260 (linux_target_ops): New structure.
22261 (initialize_low): Call set_target_ops ().
22262 * remote-utils.c (unhexify): New function.
22263 (hexify): New function.
22264 (input_interrupt): Send signals to ``signal_pid''.
22265 * server.c (inferior_pid): Remove.
22266 (start_inferior): Update create_inferior call.
22267 (attach_inferior): Call add_inferior.
22268 (handle_query): New function.
22269 (main): Call handle_query for `q' packets.
22270 * server.h: Include "target.h". Remove obsolete prototypes.
22271 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22273 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22275 * Makefile.in: Add WARN_CFLAGS. Update configury
22277 * configure.in: Check for <string.h>
22278 * configure: Regenerate.
22279 * config.in: Regenerate.
22280 * gdbreplay.c: Include needed system headers.
22281 (remote_open): Remove strchr prototype.
22282 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22283 * regcache.c (supply_register): Change buf argument to const void *.
22284 (supply_register_by_name): Likewise.
22285 (collect_register): Change buf argument to void *.
22286 (collect_register_by_name): Likewise.
22287 * regcache.h: Add missing prototypes.
22288 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22289 * server.c (handle_query): New function.
22290 (attached): New static variable, moved out of main.
22291 (main): Quiet longjmp clobber warnings.
22292 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22293 * utils.c (error): Remove NORETURN.