1 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Use std::list to stop pending signal instead of manually-created
5 * linux-low.h: Include <list>.
6 (struct pending_signal): Move here from linux-low.cc.
7 (struct lwp_info) <pending_signals>
8 <pending_signals_to_report>: Update the type.
9 * linux-low.cc (struct pending_signals): Remove.
10 (linux_process_target::delete_lwp)
11 (linux_process_target::add_lwp)
12 (enqueue_one_deferred_signal)
13 (dequeue_one_deferred_signal)
14 (enqueue_pending_signal)
15 (linux_process_target::resume_one_lwp_throw)
16 (linux_process_target::thread_needs_step_over)
17 (linux_process_target::resume_one_thread)
18 (linux_process_target::proceed_one_lwp): Update the use of pending
21 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
23 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
26 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
28 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
29 * configure.srv: Remove mingw32ce cases.
30 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
31 * win32-low.h (to_back_slashes): Remove.
32 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
34 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
36 * Makefile.in (SFILES): linux-tile-low.cc.
37 * configure.srv: Remove tilegx case.
38 * linux-tile-low.cc: Remove.
40 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
42 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
43 * configure.srv: Remove m32r case.
44 * linux-m32r-low.cc: Remove.
46 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
48 * Makefile.in (SFILES): Remove linux-cris-low.c.
49 * configure.srv: Remove cris cases.
50 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
52 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
54 * Makefile.in (SFILES): Remove linux-bfin-low.c.
55 * configure.srv: Remove bfin case.
56 * linux-bfin-low.cc: Remove.
57 * linux-low.cc: Remove BFIN-conditional code.
59 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
61 * configure: Re-generate.
62 * configure.ac: Remove srv_qnx test.
63 * configure.srv: Remove nto case.
64 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
65 * remote-utils.c: Remove __QNX__-guarded code.
67 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
69 * configure: Re-generate.
70 * configure.ac: Remove srv_lynxos test.
71 * configure.srv: Remove lynxos cases.
72 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
75 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
77 * README: Fix a few outdated or incoherent things.
79 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
81 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
82 (win32_clear_inferiors): Use open_process_used.
83 (get_child_debug_event): Likewise.
85 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
88 * linux-low.cc (linux_process_target::create_inferior),
89 lynx-low.cc (lynx_process_target::create_inferior),
90 win32-low.cc (win32_process_target::create_inferior): Use
91 construct_inferior_arguments instead of stringify_argv
92 to get string representation which properly escapes
94 * server.cc (handle_v_run): Just pass empty program arg
95 as such, since any further processing is now handled via
96 construct_inferior_arguments.
98 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
100 * nto-low.cc (nto_process_target::create_inferior): Pass
101 argv to spawnp function as char **.
103 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
105 * server.cc (captured_main), (handle_v_run): No longer
106 insert extra NULL element to args vector.
108 2020-05-23 Pedro Alves <palves@redhat.com>
110 * gdb-safe-ctype.h: New.
112 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
114 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
115 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
116 (ia64_target::low_breakpoint_at): Ditto.
118 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
120 * win32-i386-low.cc (i386_supports_z_point_type): Handle
121 Z_PACKET_HW_BP z_type.
122 (i386_insert_point): Handle raw_bkpt_type type.
123 (i386_remove_point): Likewise.
125 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
127 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
129 * win32-arm-low.cc (arm_num_regs): New function.
130 (struct win32_target_ops): Use arm_num_regs.
131 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
133 (i386_get_thread_context): Likewise.
134 (i386_prepare_to_resume): Likewise.
135 (i386_thread_added): Likewise.
136 (i386_single_step): Likewise.
137 (i386_fetch_inferior_register): Likewise.
138 (i386_store_inferior_register): Likewise.
139 (i386_arch_setup): Likewise.
140 (i386_win32_num_regs): New function.
141 (struct win32_target_ops): Use i386_win32_num_regs.
142 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
144 (win32_require_context): Likewise.
145 (child_add_thread): Likewise.
146 (do_initial_child_stuff): Likewise.
147 (continue_one_thread): Likewise.
148 (win32_process_target::resume): Likewise.
149 (load_psapi): Likewise.
150 (win32_add_all_dlls): Likewise.
151 (maybe_adjust_pc): Likewise.
152 (win32_process_target::qxfer_siginfo): Likewise.
153 (initialize_low): Likewise.
154 * win32-low.h (struct win32_target_ops): Change num_regs to
157 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
159 * configure.ac: Remove check for fs_base/gs_base in
161 * configure: Re-generate.
162 * config.in: Re-generate.
163 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
164 x86_store_gregset): Adjust.
166 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
168 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
171 2020-04-16 Tom Tromey <tromey@adacore.com>
173 * win32-low.cc (windows_nat::handle_access_violation): New
176 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
178 * win32-low.cc (get_child_debug_event): Fix format string warning.
180 2020-04-13 Tom Tromey <tom@tromey.com>
182 * server.h (gdb_fildes_t): Remove typedef.
183 * remote-utils.c (remote_desc, list_desc): Now int.
184 (INVALID_DESCRIPTOR): Remove.
185 (gdb_connected, remote_close)
186 (check_remote_input_interrupt_request): Update.
187 * utils.h (pfildes): Don't declare.
188 * utils.c (pfildes): Remove.
190 2020-04-13 Tom Tromey <tom@tromey.com>
192 * server.h (handle_serial_event, handle_target_event): Update.
193 * server.c: Don't call initialize_event_loop.
194 (keep_processing_events): New global.
195 (handle_serial_event): Return void. Set keep_processing_events.
196 (handle_target_event): Return void.
197 (start_event_loop): Move from event-loop.c. Rewrite.
198 * remote-utils.c (handle_accept_event): Return void.
199 (reset_readchar): Use delete_timer.
200 (process_remaining): Return void.
201 (reschedule): Use create_timer.
202 * event-loop.h: Remove.
203 * event-loop.cc: Remove.
204 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
206 2020-04-13 Tom Tromey <tom@tromey.com>
208 * server.c (invoke_async_signal_handlers)
209 (check_async_event_handlers, flush_streams, gdb_select): New
212 2020-04-13 Tom Tromey <tom@tromey.com>
214 * configure: Rebuild.
215 * config.in: Rebuild.
217 2020-04-08 Tom Tromey <tromey@adacore.com>
220 * win32-low.c (child_continue): Call matching_pending_stop.
221 (get_child_debug_event): Call fetch_pending_stop. Push pending
224 2020-04-08 Tom Tromey <tromey@adacore.com>
226 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
227 (win32_process_target::supports_stopped_by_sw_breakpoint):
229 * win32-low.c (win32_supports_z_point_type): Always handle
231 (win32_insert_point): Call insert_memory_breakpoint when needed.
232 (win32_remove_point): Call remove_memory_breakpoint when needed.
233 (win32_process_target::stopped_by_sw_breakpoint)
234 (win32_process_target::supports_stopped_by_sw_breakpoint): New
236 (win32_target_ops): Update.
237 (maybe_adjust_pc): New function.
238 (win32_wait): Call maybe_adjust_pc.
240 2020-04-08 Tom Tromey <tromey@adacore.com>
242 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
244 * win32-i386-low.c (the_low_target): Update.
245 * win32-arm-low.c (the_low_target): Update.
247 2020-04-08 Tom Tromey <tromey@adacore.com>
249 * win32-low.h (win32_process_target::read_pc)
250 (win32_process_target::write_pc): Declare.
251 * win32-low.c (win32_process_target::read_pc)
252 (win32_process_target::write_pc): New methods.
253 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
255 (the_low_target): Update.
256 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
258 (the_low_target): Update.
260 2020-04-08 Tom Tromey <tromey@adacore.com>
262 * win32-low.c (win32_kill, get_child_debug_event): Use
263 wait_for_debug_event.
265 2020-04-08 Tom Tromey <tromey@adacore.com>
267 * win32-low.c (child_continue): Call continue_last_debug_event.
269 2020-04-08 Tom Tromey <tromey@adacore.com>
271 * win32-low.c (handle_exception): Remove.
272 (windows_nat::handle_ms_vc_exception): New function.
273 (get_child_debug_event): Add "continue_status" parameter.
275 (win32_wait): Update.
277 2020-04-08 Tom Tromey <tromey@adacore.com>
279 * win32-low.c (windows_nat::handle_load_dll): Rename from
280 handle_load_dll. No longer static.
281 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
284 2020-04-08 Tom Tromey <tromey@adacore.com>
286 * win32-low.c (handle_output_debug_string): Add parameter. Change
288 (win32_kill, get_child_debug_event): Update.
290 2020-04-08 Tom Tromey <tromey@adacore.com>
292 * win32-low.c (current_process_handle, current_process_id)
293 (main_thread_id, last_sig, current_event, siginfo_er): Move to
296 2020-04-08 Tom Tromey <tromey@adacore.com>
298 * win32-low.c (get_image_name): Remove.
299 (handle_load_dll): Update.
301 2020-04-08 Tom Tromey <tromey@adacore.com>
303 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
304 No longer static. Change parameters.
305 (child_add_thread, child_fetch_inferior_registers)
306 (child_store_inferior_registers, win32_resume)
307 (win32_get_tib_address): Update.
309 2020-04-08 Tom Tromey <tromey@adacore.com>
311 * win32-low.h (struct win32_target_ops): Use qualified names where
313 * win32-i386-low.c: Add "using namespace".
314 * win32-low.c: Add "using namespace".
315 * win32-arm-low.c: Add "using namespace".
317 2020-04-08 Tom Tromey <tromey@adacore.com>
319 * win32-low.c (delete_thread_info): Don't call CloseHandle.
321 2020-04-08 Tom Tromey <tromey@adacore.com>
323 * win32-low.c (win32_require_context, suspend_one_thread): Use
324 windows_thread_info::suspend.
325 (continue_one_thread): Use windows_thread_info::resume.
326 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
328 2020-04-08 Tom Tromey <tromey@adacore.com>
330 * win32-i386-low.c (update_debug_registers)
331 (i386_prepare_to_resume, i386_thread_added): Update.
333 2020-04-08 Tom Tromey <tromey@adacore.com>
335 * win32-low.c (child_add_thread): Use new.
336 (delete_thread_info): Use delete.
338 2020-04-08 Tom Tromey <tromey@adacore.com>
340 * win32-low.h (struct windows_thread_info): Remove.
342 2020-04-08 Tom Tromey <tromey@adacore.com>
344 * win32-low.h (struct windows_thread_info): Rename from
345 win32_thread_info. Remove typedef.
346 (struct win32_target_ops, win32_require_context): Update.
347 * win32-low.c (win32_get_thread_context)
348 (win32_set_thread_context, win32_prepare_to_resume)
349 (win32_require_context, thread_rec, child_add_thread)
350 (delete_thread_info, continue_one_thread)
351 (child_fetch_inferior_registers, child_store_inferior_registers)
352 (win32_resume, suspend_one_thread, win32_get_tib_address):
354 * win32-i386-low.c (update_debug_registers)
355 (win32_get_current_dr, i386_get_thread_context)
356 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
357 (i386_fetch_inferior_register, i386_store_inferior_register):
359 * win32-arm-low.c (arm_get_thread_context)
360 (arm_fetch_inferior_register, arm_store_inferior_register):
363 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 * linux-low.h (struct linux_target_ops): Remove.
366 (the_low_target): Remove.
367 * linux-x86-low.cc (the_low_target): Remove.
368 * linux-aarch64-low.cc (the_low_target): Ditto.
369 * linux-arm-low.cc (the_low_target): Ditto.
370 * linux-bfin-low.cc (the_low_target): Ditto.
371 * linux-cris-low.cc (the_low_target): Ditto.
372 * linux-crisv32-low.cc (the_low_target): Ditto.
373 * linux-ia64-low.cc (the_low_target): Ditto.
374 * linux-m32r-low.cc (the_low_target): Ditto.
375 * linux-m68k-low.cc (the_low_target): Ditto.
376 * linux-mips-low.cc (the_low_target): Ditto.
377 * linux-nios2-low.cc (the_low_target): Ditto.
378 * linux-ppc-low.cc (the_low_target): Ditto.
379 * linux-riscv-low.cc (the_low_target): Ditto.
380 * linux-s390-low.cc (the_low_target): Ditto.
381 * linux-sh-low.cc (the_low_target): Ditto.
382 * linux-sparc-low.cc (the_low_target): Ditto.
383 * linux-tic6x-low.cc (the_low_target): Ditto.
384 * linux-tile-low.cc (the_low_target): Ditto.
385 * linux-xtensa-low.cc (the_low_target): Ditto.
387 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
389 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
390 linux target define the op by overriding the declaration in
391 process_stratum_target.
393 * linux-low.h (struct linux_target_ops): Remove the op.
394 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
395 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
396 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
397 (x86_get_ipa_tdesc_idx): Turn into...
398 (x86_target::get_ipa_tdesc_idx): ...this.
399 (the_low_target): Remove the op field.
400 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
401 (ppc_get_ipa_tdesc_idx): Turn into...
402 (ppc_target::get_ipa_tdesc_idx): ...this.
403 (the_low_target): Remove the op field.
404 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
405 (s390_get_ipa_tdesc_idx): Turn into...
406 (s390_target::get_ipa_tdesc_idx): ...this.
407 (the_low_target): Remove the op field.
409 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411 Turn the 'get_syscall_trapinfo' linux target op into a method
412 of process_stratum_target.
414 * linux-low.h (struct linux_target_ops): Remove the op.
415 (class linux_process_target) <get_syscall_trapinfo>
416 <gdb_catch_this_syscall>
417 <low_supports_catch_syscall>
418 <low_get_syscall_trapinfo>: Declare.
419 * linux-low.cc (get_syscall_trapinfo): Turn into...
420 (linux_process_target::get_syscall_trapinfo): ...this.
421 (linux_process_target::low_get_syscall_trapinfo): Define.
422 (gdb_catch_this_syscall_p): Turn into...
423 (linux_process_target::gdb_catch_this_syscall): ...this.
424 (linux_process_target::low_supports_catch_syscall): Define.
426 Update the callers below.
428 (linux_process_target::wait_1)
429 (linux_process_target::supports_catch_syscall)
431 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
432 <low_get_syscall_trapinfo>: Declare.
433 (x86_target::low_supports_catch_syscall): Define.
434 (x86_get_syscall_trapinfo): Turn into...
435 (x86_target::low_get_syscall_trapinfo): ...this.
436 (the_low_target): Remove the op field.
437 * linux-aarch64-low.cc (class aarch64_target)
438 <low_supports_catch_syscall>
439 <low_get_syscall_trapinfo>: Declare.
440 (aarch64_target::low_supports_catch_syscall): Define.
441 (aarch64_get_syscall_trapinfo): Turn into...
442 (aarch64_target::low_get_syscall_trapinfo): ...this.
443 (the_low_target): Remove the op field.
444 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
445 <low_get_syscall_trapinfo>: Declare.
446 (arm_target::low_supports_catch_syscall): Define.
447 (arm_get_syscall_trapinfo): Turn into...
448 (arm_target::low_get_syscall_trapinfo): ...this.
449 (the_low_target): Remove the op field.
450 * linux-ppc-low.cc (the_low_target): Remove the op field.
451 * linux-s390-low.cc (the_low_target): Remove the op field.
453 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
455 Remove the 'supports_hardware_single_step' linux target op and
456 override the process_stratum_target's op definition in
457 linux_process_target to return true.
459 * linux-low.h (struct linux_target_ops): Remove the op.
460 (class linux_process_target) <finish_step_over>
461 <maybe_hw_step>: Declare.
462 * linux-low.cc (can_hardware_single_step): Remove.
463 (maybe_hw_step): Turn into...
464 (linux_process_target::maybe_hw_step): ...this.
465 (finish_step_over): Turn into...
466 (linux_process_target::finish_step_over): ...this.
467 (linux_process_target::supports_hardware_single_step): Update
470 Update the callers below.
472 (linux_process_target::single_step)
473 (linux_process_target::resume_one_lwp_throw)
475 * linux-arm-low.cc (class arm_target)
476 <supports_hardware_single_step>: Declare.
477 (arm_supports_hardware_single_step): Turn into...
478 (arm_target::supports_hardware_single_step): ...this.
479 (the_low_target): Remove the op field.
480 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
481 (the_low_target): Remove the op field.
482 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
484 (the_low_target): Remove the op field.
485 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
486 (the_low_target): Remove the op field.
487 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
488 (the_low_target): Remove the op field.
489 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
490 (the_low_target): Remove the op field.
491 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
492 (the_low_target): Remove the op field.
493 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
494 (the_low_target): Remove the op field.
495 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
496 (the_low_target): Remove the op field.
497 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
498 (the_low_target): Remove the op field.
499 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
500 (the_low_target): Remove the op field.
501 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
502 (the_low_target): Remove the op field.
503 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
505 (the_low_target): Remove the op field.
507 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
509 Turn the 'supports_range_stepping' linux target op into a method
510 of linux_process_target.
512 * linux-low.h (struct linux_target_ops): Remove the op.
513 (class linux_process_target) <low_supports_range_stepping>: Declare.
514 * linux-low.cc (linux_process_target::low_supports_range_stepping):
516 (linux_process_target::supports_range_stepping): Update the call
518 * linux-x86-low.cc (class x86_target)
519 <low_supports_range_stepping>: Declare.
520 (x86_supports_range_stepping): Turn into...
521 (x86_target::low_supports_range_stepping): ...this.
522 (the_low_target): Remove the op field.
523 * linux-aarch64-low.cc (class aarch64_target)
524 <low_supports_range_stepping>: Declare.
525 (aarch64_supports_range_stepping): Turn into...
526 (aarch64_target::low_supports_range_stepping): ...this.
527 (the_low_target): Remove the op field.
528 * linux-arm-low.cc (the_low_target): Remove the op field.
529 * linux-bfin-low.cc (the_low_target): Ditto.
530 * linux-crisv32-low.cc (the_low_target): Ditto.
531 * linux-m32r-low.cc (the_low_target): Ditto.
532 * linux-m68k-low.cc (the_low_target): Ditto.
533 * linux-ppc-low.cc (the_low_target): Ditto.
534 * linux-s390-low.cc (the_low_target): Ditto.
535 * linux-sh-low.cc (the_low_target): Ditto.
536 * linux-tic6x-low.cc (the_low_target): Ditto.
537 * linux-tile-low.cc (the_low_target): Ditto.
538 * linux-xtensa-low.cc (the_low_target): Ditto.
540 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542 Remove the 'emit_ops' linux target ops and let the concrete
543 linux target define the op by overriding the declaration of
544 process_stratum_target.
546 * linux-low.h (struct linux_target_ops): Remove the op.
547 (class linux_process_target) <emit_ops>: Remove.
548 * linux-low.cc (linux_process_target::emit_ops): Remove.
549 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
550 (x86_emit_ops): Turn into...
551 (x86_target::emit_ops): ...this.
552 (the_low_target): Remove the op field.
553 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
554 (aarch64_emit_ops): Turn into...
555 (aarch64_target::emit_ops): ...this.
556 (the_low_target): Remove the op field.
557 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
558 (ppc_emit_ops): Turn into...
559 (ppc_target::emit_ops): ...this.
560 (the_low_target): Remove the op field.
561 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
562 (s390_emit_ops): Turn into...
563 (s390_target::emit_ops): ...this.
564 (the_low_target): Remove the op field.
565 * linux-arm-low.cc (the_low_target): Remove the op field.
566 * linux-bfin-low.cc (the_low_target): Ditto.
567 * linux-crisv32-low.cc (the_low_target): Ditto.
568 * linux-m32r-low.cc (the_low_target): Ditto.
569 * linux-m68k-low.cc (the_low_target): Ditto.
570 * linux-sh-low.cc (the_low_target): Ditto.
571 * linux-tic6x-low.cc (the_low_target): Ditto.
572 * linux-tile-low.cc (the_low_target): Ditto.
573 * linux-xtensa-low.cc (the_low_target): Ditto.
575 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577 Remove the 'install_fast_tracepoint_jump_pad' and
578 'get_min_fast_tracepoint_insn_len' linux target ops to let the
579 concrete linux target define the ops by overriding the declarations
580 of process_stratum_target.
582 * linux-low.h (struct linux_target_ops): Remove the ops.
583 (class linux_process_target) <supports_fast_tracepoints>
584 <install_fast_tracepoint_jump_pad>
585 <get_min_fast_tracepoint_insn_len>: Remove.
586 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
587 (linux_process_target::install_fast_tracepoint_jump_pad)
588 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
589 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
590 <install_fast_tracepoint_jump_pad>
591 <get_min_fast_tracepoint_insn_len>: Declare.
592 (x86_target::supports_fast_tracepoints): Define.
593 (x86_install_fast_tracepoint_jump_pad): Turn into...
594 (x86_target::install_fast_tracepoint_jump_pad): ...this.
595 (x86_get_min_fast_tracepoint_insn_len): Turn into...
596 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
597 (the_low_target): Remove the op fields.
598 * linux-aarch64-low.cc (class aarch64_target)
599 <supports_fast_tracepoints>
600 <install_fast_tracepoint_jump_pad>
601 <get_min_fast_tracepoint_insn_len>: Declare.
602 (aarch64_target::supports_fast_tracepoints): Define.
603 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
604 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
605 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
606 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
607 (the_low_target): Remove the op fields.
608 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
609 <install_fast_tracepoint_jump_pad>
610 <get_min_fast_tracepoint_insn_len>: Declare.
611 (ppc_target::supports_fast_tracepoints): Define.
612 (ppc_install_fast_tracepoint_jump_pad): Turn into...
613 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
614 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
615 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
616 (the_low_target): Remove the op fields.
617 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
618 <install_fast_tracepoint_jump_pad>
619 <get_min_fast_tracepoint_insn_len>: Declare.
620 (s390_target::supports_fast_tracepoints): Define.
621 (s390_install_fast_tracepoint_jump_pad): Turn into...
622 (s390_target::install_fast_tracepoint_jump_pad): ...this.
623 (s390_get_min_fast_tracepoint_insn_len): Turn into...
624 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
625 (the_low_target): Remove the op fields.
626 * linux-arm-low.cc (the_low_target): Remove the op fields.
627 * linux-bfin-low.cc (the_low_target): Ditto.
628 * linux-crisv32-low.cc (the_low_target): Ditto.
629 * linux-m32r-low.cc (the_low_target): Ditto.
630 * linux-m68k-low.cc (the_low_target): Ditto.
631 * linux-sh-low.cc (the_low_target): Ditto.
632 * linux-tic6x-low.cc (the_low_target): Ditto.
633 * linux-tile-low.cc (the_low_target): Ditto.
634 * linux-xtensa-low.cc (the_low_target): Ditto.
636 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638 Turn the 'get_thread_area' linux target op into a method of
639 process_stratum_target.
641 * linux-low.h (struct linux_target_ops): Remove the op.
642 (class linux_process_target) <stuck_in_jump_pad>
643 <linux_fast_tracepoint_collecting>
644 <low_get_thread_area>: Declare.
645 * linux-low.cc (supports_fast_tracepoints): Remove.
646 (linux_fast_tracepoint_collecting): Turn into...
647 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
648 (linux_process_target::low_get_thread_area): Define.
649 (stuck_in_jump_pad_callback): Turn into...
650 (linux_process_target::stuck_in_jump_pad): ...this.
652 Update the caller below.
654 (linux_process_target::stabilize_threads)
656 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
658 (x86_get_thread_area): Turn into...
659 (x86_target::low_get_thread_area): ...this.
660 (the_low_target): Remove the op field.
661 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
663 (aarch64_get_thread_area): Turn into...
664 (aarch64_target::low_get_thread_area): ...this.
665 (the_low_target): Remove the op field.
666 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
668 (ppc_get_thread_area): Turn into...
669 (ppc_target::low_get_thread_area): ...this.
670 (the_low_target): Remove the op field.
671 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
673 (s390_get_thread_area): Turn into...
674 (s390_target::low_get_thread_area): ...this.
675 (the_low_target): Remove the op field.
676 * linux-arm-low.cc (the_low_target): Remove the op field.
677 * linux-bfin-low.cc (the_low_target): Ditto.
678 * linux-crisv32-low.cc (the_low_target): Ditto.
679 * linux-m32r-low.cc (the_low_target): Ditto.
680 * linux-m68k-low.cc (the_low_target): Ditto.
681 * linux-sh-low.cc (the_low_target): Ditto.
682 * linux-tic6x-low.cc (the_low_target): Ditto.
683 * linux-tile-low.cc (the_low_target): Ditto.
684 * linux-xtensa-low.cc (the_low_target): Ditto.
686 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
688 Remote the 'supports_tracepoints' linux target op and let the
689 concrete linux target define it by overriding the op declared in
690 process_stratum_target.
692 * linux-low.h (struct linux_target_ops): Remove the op.
693 (class linux_process_target) <supports_tracepoints>: Remove.
694 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
695 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
697 (x86_supports_tracepoints): Turn into...
698 (x86_target::supports_tracepoints): ...this.
699 (the_low_target): Remove the op field.
700 * linux-aarch64-low.cc (class aarch64_target)
701 <supports_tracepoints>: Declare.
702 (aarch64_supports_tracepoints): Turn into...
703 (aarch64_target::supports_tracepoints): ...this.
704 (the_low_target): Remove the op field.
705 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
707 (ppc_supports_tracepoints): Turn into...
708 (ppc_target::supports_tracepoints): ...this.
709 (the_low_target): Remove the op field.
710 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
712 (s390_supports_tracepoints): Turn into...
713 (s390_target::supports_tracepoints): ...this.
714 (the_low_target): Remove the op field.
715 * linux-arm-low.cc (the_low_target): Remove the op field.
716 * linux-bfin-low.cc (the_low_target): Ditto.
717 * linux-crisv32-low.cc (the_low_target): Ditto.
718 * linux-m32r-low.cc (the_low_target): Ditto.
719 * linux-m68k-low.cc (the_low_target): Ditto.
720 * linux-sh-low.cc (the_low_target): Ditto.
721 * linux-tic6x-low.cc (the_low_target): Ditto.
722 * linux-tile-low.cc (the_low_target): Ditto.
723 * linux-xtensa-low.cc (the_low_target): Ditto.
725 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727 Remove the 'process_qsupported' linux target op and let a concrete
728 linux target define the op by overriding the op declaration in
729 process_stratum_target.
731 * linux-low.h (struct linux_target_ops): Remove the op.
732 (class linux_process_target) <process_qsupported>: Remove.
733 * linux-low.cc (linux_process_target::process_qsupported): Remove.
734 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
735 (x86_linux_process_qsupported): Turn into...
736 (x86_target::process_qsupported): ...this.
737 (the_low_target): Remove the op field.
738 * linux-aarch64-low.cc (the_low_target): Remove the op
740 * linux-arm-low.cc (the_low_target): Ditto.
741 * linux-bfin-low.cc (the_low_target): Ditto.
742 * linux-crisv32-low.cc (the_low_target): Ditto.
743 * linux-m32r-low.cc (the_low_target): Ditto.
744 * linux-m68k-low.cc (the_low_target): Ditto.
745 * linux-ppc-low.cc (the_low_target): Ditto.
746 * linux-s390-low.cc (the_low_target): Ditto.
747 * linux-sh-low.cc (the_low_target): Ditto.
748 * linux-tic6x-low.cc (the_low_target): Ditto.
749 * linux-tile-low.cc (the_low_target): Ditto.
750 * linux-xtensa-low.cc (the_low_target): Ditto.
752 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754 Turn the 'prepare_to_resume' linux target op into a method of
755 linux_process_target.
757 * linux-low.h (struct linux_target_ops): Remove the op.
758 (class linux_process_target) <low_prepare_to_resume>: Declare.
759 * linux-low.cc (linux_process_target::low_prepare_to_resume):
762 Update the callers below:
764 (linux_process_target::resume_one_lwp_throw)
765 (linux_process_target::low_prepare_to_resume)
767 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
769 (x86_target::low_prepare_to_resume): Define.
770 (the_low_target): Remove the op field.
771 * linux-aarch64-low.cc (class aarch64_target)
772 <low_prepare_to_resume>: Declare.
773 (aarch64_target::low_prepare_to_resume): Define.
774 (the_low_target): Remove the op field.
775 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
777 (arm_prepare_to_resume): Turn into...
778 (arm_target::low_prepare_to_resume): ...this.
779 (the_low_target): Remove the op field.
780 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
782 (mips_linux_prepare_to_resume): Turn into...
783 (mips_target::low_prepare_to_resume): ...this.
784 (the_low_target): Remove the op field.
785 * linux-bfin-low.cc (the_low_target): Remove the op field.
786 * linux-crisv32-low.cc (the_low_target): Ditto.
787 * linux-m32r-low.cc (the_low_target): Ditto.
788 * linux-m68k-low.cc (the_low_target): Ditto.
789 * linux-ppc-low.cc (the_low_target): Ditto.
790 * linux-s390-low.cc (the_low_target): Ditto.
791 * linux-sh-low.cc (the_low_target): Ditto.
792 * linux-tic6x-low.cc (the_low_target): Ditto.
793 * linux-tile-low.cc (the_low_target): Ditto.
794 * linux-xtensa-low.cc (the_low_target): Ditto.
796 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798 Turn the 'new_process', 'delete_process', 'new_thread',
799 'delete_thread', and 'new_fork' linux target ops into methods
800 of linux_process_target.
802 * linux-low.h (struct linux_target_ops): Remove the ops.
803 (class linux_process_target) <add_linux_process>
808 <check_zombie_leaders>
814 <low_new_fork>: Declare.
815 * linux-low.cc (delete_lwp): Turn into...
816 (linux_process_target::delete_lwp): ...this.
817 (linux_process_target::low_delete_thread): Define.
818 (linux_add_process): Turn into...
819 (linux_process_target::add_linux_process): ...this.
820 (linux_process_target::low_new_process): Define.
821 (linux_process_target::low_delete_process): Define.
822 (linux_process_target::low_new_fork): Define.
823 (add_lwp): Turn into...
824 (linux_process_target::add_lwp): ...this.
825 (linux_process_target::low_new_thread): Define.
826 (linux_attach_lwp): Turn into...
827 (linux_process_target::attach_lwp): ...this.
828 (linux_detach_one_lwp): Turn into...
829 (linux_process_target::detach_one_lwp): ...this.
830 (linux_detach_lwp_callback): Remove and inline...
831 (linux_process_target::detach): ...here.
832 (check_zombie_leaders): Turn into...
833 (linux_process_target::check_zombie_leaders): ...this.
834 (filter_exit_event): Turn into...
835 (linux_process_target::filter_exit_event): ...this.
837 Update the callers below.
839 (linux_process_target::handle_extended_wait)
840 (linux_process_target::create_inferior)
841 (attach_proc_task_lwp_callback)
842 (linux_process_target::attach)
843 (linux_process_target::detach)
844 (linux_process_target::mourn)
845 * thread-db.cc (attach_thread)
847 * linux-x86-low.cc (class x86_target) <low_new_process>
851 <low_new_fork>: Declare.
852 (x86_linux_new_process): Turn into...
853 (x86_target::low_new_process): ...this.
854 (x86_linux_delete_process): Turn into...
855 (x86_target::low_delete_process): ...this.
856 (x86_target::low_new_thread): Define.
857 (x86_target::low_delete_thread): Define.
858 (x86_linux_new_fork): Turn into...
859 (x86_target::low_new_fork): ...this.
860 (the_low_target): Remove the op fields.
861 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
865 <low_new_fork>: Declare.
866 (aarch64_linux_new_process): Turn into...
867 (aarch64_target::low_new_process): ...this.
868 (aarch64_linux_delete_process): Turn into...
869 (aarch64_target::low_delete_process): ...this.
870 (aarch64_target::low_new_thread): Define.
871 (aarch64_target::low_delete_thread): Define.
872 (aarch64_linux_new_fork): Turn into...
873 (aarch64_target::low_new_fork): ...this.
874 (the_low_target): Remove the op fields.
875 * linux-arm-low.cc (class arm_target) <low_new_process>
879 <low_new_fork>: Declare.
880 (arm_new_process): Turn into...
881 (arm_target::low_new_process): ...this.
882 (arm_delete_process): Turn into...
883 (arm_target::low_delete_process): ...this.
884 (arm_new_thread): Turn into...
885 (arm_target::low_new_thread): ...this.
886 (arm_delete_thread): Turn into...
887 (arm_target::low_delete_thread): ...this.
888 (arm_new_fork): Turn into...
889 (arm_target::low_new_fork): ...this.
890 (the_low_target): Remove the op fields.
891 * linux-mips-low.cc (class mips_target) <low_new_process>
895 <low_new_fork>: Declare.
896 (mips_linux_new_process): Turn into...
897 (mips_target::low_new_process): ...this.
898 (mips_linux_delete_process): Turn into...
899 (mips_target::low_delete_process): ...this.
900 (mips_linux_new_thread): Turn into...
901 (mips_target::low_new_thread): ...this.
902 (mips_linux_delete_thread): Turn into...
903 (mips_target::low_delete_thread): ...this.
904 (mips_linux_new_fork): Turn into...
905 (mips_target::low_new_fork): ...this.
906 (the_low_target): Remove the op fields.
907 * linux-bfin-low.cc (the_low_target): Remove the op fields.
908 * linux-crisv32-low.cc (the_low_target): Ditto.
909 * linux-m32r-low.cc (the_low_target): Ditto.
910 * linux-m68k-low.cc (the_low_target): Ditto.
911 * linux-ppc-low.cc (the_low_target): Ditto.
912 * linux-s390-low.cc (the_low_target): Ditto.
913 * linux-sh-low.cc (the_low_target): Ditto.
914 * linux-tic6x-low.cc (the_low_target): Ditto.
915 * linux-tile-low.cc (the_low_target): Ditto.
916 * linux-xtensa-low.cc (the_low_target): Ditto.
918 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920 Turn the 'siginfo_fixup' linux target op into a method of
921 linux_process_target.
923 * linux-low.h (struct linux_target_ops): Remove the op.
924 (class linux_process_target) <siginfo_fixup>
925 <low_siginfo_fixup>: Declare.
926 * linux-low.cc (siginfo_fixup): Turn into...
927 (linux_process_target::siginfo_fixup): ...this.
928 (linux_process_target::low_siginfo_fixup): Define.
929 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
930 (x86_siginfo_fixup): Turn into...
931 (x86_target::low_siginfo_fixup): ...this.
932 (the_low_target): Remove the op field.
933 * linux-aarch64-low.cc (class aarch64_target):
934 <low_siginfo_fixup>: Declare.
935 (aarch64_linux_siginfo_fixup): Turn into...
936 (aarch64_target::low_siginfo_fixup): ...this.
937 (the_low_target): Remove the op field.
938 * linux-arm-low.cc (the_low_target): Remove the op field.
939 * linux-bfin-low.cc (the_low_target): Ditto.
940 * linux-crisv32-low.cc (the_low_target): Ditto.
941 * linux-m32r-low.cc (the_low_target): Ditto.
942 * linux-m68k-low.cc (the_low_target): Ditto.
943 * linux-mips-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 'collect_ptrace_register' and 'supply_ptrace_register'
954 linux target ops into methods of linux_process_target.
956 * linux-low.h (struct linux_target_ops): Remove the ops.
957 (class linux_process_target) <low_collect_ptrace_register>
958 <low_store_ptrace_register>: Declare.
959 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
960 (linux_process_target::low_supply_ptrace_register): Define.
962 Update the callers below.
964 (linux_process_target::fetch_register)
965 (linux_process_target::store_register)
967 * linux-x86-low.cc (the_low_target): Remove the op fields.
968 * linux-aarch64-low.cc (the_low_target): Ditto.
969 * linux-arm-low.cc (the_low_target): Ditto.
970 * linux-bfin-low.cc (the_low_target): Ditto.
971 * linux-crisv32-low.cc (the_low_target): Ditto.
972 * linux-m32r-low.cc (the_low_target): Ditto.
973 * linux-m68k-low.cc (the_low_target): Ditto.
974 * linux-sh-low.cc (the_low_target): Ditto.
975 * linux-sparc-low.cc (the_low_target): Ditto.
976 * linux-tic6x-low.cc (the_low_target): Ditto.
977 * linux-tile-low.cc (the_low_target): Ditto.
978 * linux-xtensa-low.cc (the_low_target): Ditto.
979 * linux-mips-low.cc (class mips_target)
980 <low_collect_ptrace_register>
981 <low_supply_ptrace_register>: Declare.
982 (mips_collect_ptrace_register): Turn into ...
983 (mips_target::low_collect_ptrace_register): ...this.
984 (mips_supply_ptrace_register): Turn into...
985 (mips_target::low_supply_ptrace_register): ...this.
986 (the_low_target): Remove the op fields.
987 * linux-ppc-low.cc (class ppc_target)
988 <low_collect_ptrace_register>
989 <low_supply_ptrace_register>: Declare.
990 (ppc_collect_ptrace_register): Turn into ...
991 (ppc_target::low_collect_ptrace_register): ...this.
992 (ppc_supply_ptrace_register): Turn into ...
993 (ppc_target::low_supply_ptrace_register): ...this.
994 (ppc_fill_gregset): Update for the calls to
995 low_collect_ptrace_register.
996 (the_low_target): Remove the op fields.
997 * linux-s390-low.cc (class s390_target)
998 <low_collect_ptrace_register>
999 <low_supply_ptrace_register>: Declare.
1000 (s390_collect_ptrace_register): Turn into ...
1001 (s390_target::low_collect_ptrace_register): ...this.
1002 (s390_supply_ptrace_register): Turn into ...
1003 (s390_target::low_supply_ptrace_register): ...this.
1004 (s390_fill_gregset): Update for the calls to
1005 low_collect_ptrace_register.
1006 (the_low_target): Remove the op fields.
1008 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1010 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1011 target ops into methods of linux_process_target.
1013 * linux-low.h (struct linux_target_ops): Remove the ops.
1014 (class linux_process_target) <check_stopped_by_watchpoint>
1015 <low_stopped_by_watchpoint>
1016 <low_stopped_data_address>: Declare.
1017 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1018 (linux_process_target::check_stopped_by_watchpoint): ...this.
1019 (linux_process_target::low_stopped_by_watchpoint): Define.
1020 (linux_process_target::low_stopped_data_address): Define.
1021 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1022 <low_stopped_data_address>: Declare.
1023 (x86_stopped_by_watchpoint): Turn into...
1024 (x86_target::low_stopped_by_watchpoint): ...this.
1025 (x86_stopped_data_address): Turn into...
1026 (x86_target::low_stopped_data_address): ...this.
1027 (the_low_target): Remove the op fields.
1028 * linux-aarch64-low.cc (class aarch64_target)
1029 <low_stopped_by_watchpoint>
1030 <low_stopped_data_address>: Declare.
1031 (aarch64_stopped_by_watchpoint): Turn into...
1032 (aarch64_target::low_stopped_by_watchpoint): ...this.
1033 (aarch64_stopped_data_address): Turn into...
1034 (aarch64_target::low_stopped_data_address): ...this.
1035 (the_low_target): Remove the op fields.
1036 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1037 <low_stopped_data_address>: Declare.
1038 (arm_stopped_by_watchpoint): Turn into...
1039 (arm_target::low_stopped_by_watchpoint): ...this.
1040 (arm_stopped_data_address): Turn into...
1041 (arm_target::low_stopped_data_address): ...this.
1042 (the_low_target): Remove the op fields.
1043 * linux-crisv32-low.cc (class crisv32_target)
1044 <low_stopped_by_watchpoint>
1045 <low_stopped_data_address>: Declare.
1046 (cris_stopped_by_watchpoint): Turn into...
1047 (crisv32_target::low_stopped_by_watchpoint): ...this.
1048 (cris_stopped_data_address): Turn into...
1049 (crisv32_target::low_stopped_data_address): ...this.
1050 (the_low_target): Remove the op fields.
1051 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1052 <low_stopped_data_address>: Declare.
1053 (mips_stopped_by_watchpoint): Turn into...
1054 (mips_target::low_stopped_by_watchpoint): ...this.
1055 (mips_stopped_data_address): Turn into...
1056 (mips_target::low_stopped_data_address): ...this.
1057 (the_low_target): Remove the op fields.
1058 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1059 * linux-m32r-low.cc (the_low_target): Ditto.
1060 * linux-m68k-low.cc (the_low_target): Ditto.
1061 * linux-ppc-low.cc (the_low_target): Ditto.
1062 * linux-s390-low.cc (the_low_target): Ditto.
1063 * linux-sh-low.cc (the_low_target): Ditto.
1064 * linux-sparc-low.cc (the_low_target): Ditto.
1065 * linux-tic6x-low.cc (the_low_target): Ditto.
1066 * linux-tile-low.cc (the_low_target): Ditto.
1067 * linux-xtensa-low.cc (the_low_target): Ditto.
1069 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1071 Turn the 'insert_point' and 'remove_point' linux target ops into
1072 methods of linux_process_target.
1074 * linux-low.h (struct linux_target_ops): Remove the ops.
1075 (class linux_process_target) <low_insert_point>
1076 <low_remove_point>: Declare.
1077 * linux-low.cc (linux_process_target::low_insert_point)
1078 (linux_process_target::low_remove_point): Define.
1079 (linux_process_target::insert_point)
1080 (linux_process_target::remove_point): Update for calls to
1081 low_insert_point and low_remove_point.
1082 * linux-x86-low.cc (class x86_target) <low_insert_point>
1083 <low_remove_point>: Declare.
1084 (x86_insert_point): Turn into...
1085 (x86_target::low_insert_point): ...this.
1086 (x86_remove_point): Turn into...
1087 (x86_target::low_remove_point): ...this.
1088 (the_low_target): Remove the op fields.
1089 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1090 <low_remove_point>: Declare.
1091 (aarch64_insert_point): Turn into...
1092 (aarch64_target::low_insert_point): ...this.
1093 (aarch64_remove_point): Turn into...
1094 (aarch64_target::low_remove_point): ...this.
1095 (the_low_target): Remove the op fields.
1096 * linux-arm-low.cc (class arm_target) <low_insert_point>
1097 <low_remove_point>: Declare.
1098 (arm_insert_point): Turn into...
1099 (arm_target::low_insert_point): ...this.
1100 (arm_remove_point): Turn into...
1101 (arm_target::low_remove_point): ...this.
1102 (the_low_target): Remove the op fields.
1103 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1104 <low_remove_point>: Declare.
1105 (crisv32_insert_point): Turn into...
1106 (crisv32_target::low_insert_point): ...this.
1107 (crisv32_remove_point): Turn into...
1108 (crisv32_target::low_remove_point): ...this.
1109 (the_low_target): Remove the op fields.
1110 * linux-mips-low.cc (class mips_target) <low_insert_point>
1111 <low_remove_point>: Declare.
1112 (mips_insert_point): Turn into...
1113 (mips_target::low_insert_point): ...this.
1114 (mips_remove_point): Turn into...
1115 (mips_target::low_remove_point): ...this.
1116 (the_low_target): Remove the op fields.
1117 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1118 <low_remove_point>: Declare.
1119 (ppc_insert_point): Turn into...
1120 (ppc_target::low_insert_point): ...this.
1121 (ppc_remove_point): Turn into...
1122 (ppc_target::low_remove_point): ...this.
1123 (the_low_target): Remove the op fields.
1124 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1125 * linux-m32r-low.cc (the_low_target): Ditto.
1126 * linux-m68k-low.cc (the_low_target): Ditto.
1127 * linux-s390-low.cc (the_low_target): Ditto.
1128 * linux-sh-low.cc (the_low_target): Ditto.
1129 * linux-sparc-low.cc (the_low_target): Ditto.
1130 * linux-tic6x-low.cc (the_low_target): Ditto.
1131 * linux-tile-low.cc (the_low_target): Ditto.
1132 * linux-xtensa-low.cc (the_low_target): Ditto.
1134 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136 Remove the 'supports_z_point_type' linux target op and let the
1137 concrete linux target define it by overriding the op declared in
1138 process_stratum_target.
1140 * linux-low.cc (linux_process_target::supports_z_point_type):
1142 * linux-low.h (struct linux_target_ops): Remove the op.
1143 (class linux_process_target) <supports_z_point_type>: Remove.
1144 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1146 (x86_supports_z_point_type): Turn into...
1147 (x86_target::supports_z_point_type): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-aarch64-low.cc (class aarch64_target)
1150 <supports_z_point_type>: Declare.
1151 (aarch64_supports_z_point_type): Turn into...
1152 (aarch64_target::supports_z_point_type): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1156 (arm_supports_z_point_type): Turn into...
1157 (arm_target::supports_z_point_type): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-crisv32-low.cc (class crisv32_target)
1160 <supports_z_point_type>: Declare.
1161 (cris_supports_z_point_type): Turn into...
1162 (crisv32_target::supports_z_point_type): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1166 (mips_supports_z_point_type): Turn into...
1167 (mips_target::supports_z_point_type): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1171 (ppc_supports_z_point_type): Turn into...
1172 (ppc_target::supports_z_point_type): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1176 (s390_supports_z_point_type): Turn into...
1177 (s390_target::supports_z_point_type): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-bfin-low.cc (the_low_target): Remove the op field.
1180 * linux-m32r-low.cc (the_low_target): Ditto.
1181 * linux-m68k-low.cc (the_low_target): Ditto.
1182 * linux-sh-low.cc (the_low_target): Ditto.
1183 * linux-sparc-low.cc (the_low_target): Ditto.
1184 * linux-tic6x-low.cc (the_low_target): Ditto.
1185 * linux-tile-low.cc (the_low_target): Ditto.
1186 * linux-xtensa-low.cc (the_low_target): Ditto.
1188 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1190 Turn the 'breakpoint_at' linux target op into a method of
1191 linux_process_target.
1193 * linux-low.h (struct linux_target_ops): Remove the op.
1194 (class linux_process_target) <low_breakpoint_at>: Declare.
1196 Update the callers below:
1198 * linux-low.cc (linux_process_target::save_stop_reason)
1199 (linux_process_target::thread_still_has_status_pending)
1200 (linux_process_target::wait_1)
1202 * linux-x86-low.cc (class x86_target)
1203 <low_breakpoint_at>: Declare.
1204 (x86_breakpoint_at): Turn into...
1205 (x86_target::low_breakpoint_at): ...this.
1206 (the_low_target): Remove the op field.
1207 * linux-aarch64-low.cc (class aarch64_target)
1208 <low_breakpoint_at>: Declare.
1209 (aarch64_breakpoint_at): Turn into...
1210 (aarch64_target::low_breakpoint_at): ...this.
1211 (the_low_target): Remove the op field.
1212 * linux-arm-low.cc (class arm_target)
1213 <low_breakpoint_at>: Declare.
1214 (arm_target::low_breakpoint_at): Define.
1215 (the_low_target): Remove the op field.
1216 * linux-bfin-low.cc (class bfin_target)
1217 <low_breakpoint_at>: Declare.
1218 (bfin_breakpoint_at): Turn into...
1219 (bfin_target::low_breakpoint_at): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-cris-low.cc (class cris_target)
1222 <low_breakpoint_at>: Declare.
1223 (cris_breakpoint_at): Turn into...
1224 (cris_target::low_breakpoint_at): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-crisv32-low.cc (class crisv32_target)
1227 <low_breakpoint_at>: Declare.
1228 (crisv32_breakpoint_at): Turn into...
1229 (crisv32_target::low_breakpoint_at): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-ia64-low.cc (class ia64_target)
1232 <low_breakpoint_at>: Declare.
1233 (ia64_target::low_breakpoint_at): Define.
1234 * linux-m32r-low.cc (class m32r_target)
1235 <low_breakpoint_at>: Declare.
1236 (m32r_breakpoint_at): Turn into...
1237 (m32r_target::low_breakpoint_at): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-m68k-low.cc (class m68k_target)
1240 <low_breakpoint_at>: Declare.
1241 (m68k_breakpoint_at): Turn into...
1242 (m68k_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-mips-low.cc (class mips_target)
1245 <low_breakpoint_at>: Declare.
1246 (mips_breakpoint_at): Turn into...
1247 (mips_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-nios2-low.cc (class nios2_target)
1250 <low_breakpoint_at>: Declare.
1251 (nios2_breakpoint_at): Turn into...
1252 (nios2_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-ppc-low.cc (class ppc_target)
1255 <low_breakpoint_at>: Declare.
1256 (ppc_breakpoint_at): Turn into...
1257 (ppc_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-riscv-low.cc (class riscv_target)
1260 <low_breakpoint_at>: Declare.
1261 (riscv_breakpoint_at): Turn into...
1262 (riscv_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-s390-low.cc (class s390_target)
1265 <low_breakpoint_at>: Declare.
1266 (s390_breakpoint_at): Turn into...
1267 (s390_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-sh-low.cc (class sh_target)
1270 <low_breakpoint_at>: Declare.
1271 (sh_breakpoint_at): Turn into...
1272 (sh_target::low_breakpoint_at): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-sparc-low.cc (class sparc_target)
1275 <low_breakpoint_at>: Declare.
1276 (sparc_breakpoint_at): Turn into...
1277 (sparc_target::low_breakpoint_at): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-tic6x-low.cc (class tic6x_target)
1280 <low_breakpoint_at>: Declare.
1281 (tic6x_breakpoint_at): Turn into...
1282 (tic6x_target::low_breakpoint_at): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-tile-low.cc (class tile_target)
1285 <low_breakpoint_at>: Declare.
1286 (tile_breakpoint_at): Turn into...
1287 (tile_target::low_breakpoint_at): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-xtensa-low.cc (class xtensa_target)
1290 <low_breakpoint_at>: Declare.
1291 (xtensa_breakpoint_at): Turn into...
1292 (xtensa_target::low_breakpoint_at): ...this.
1293 (the_low_target): Remove the op field.
1295 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1297 Turn the 'decr_pc_after_break' linux_target_ops field into
1298 a method of linux_process_target.
1300 * linux-low.h (struct linux_target_ops)
1301 <decr_pc_after_break>: Remove.
1302 (class linux_process_target) <low_decr_pc_after_break>: New method
1304 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1305 New method implementation.
1307 Update the users below.
1309 (linux_process_target::save_stop_reason)
1310 (linux_process_target::wait_1)
1311 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1313 (x86_target::low_decr_pc_after_break): New method implementation.
1314 (the_low_target): Remove the field.
1315 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1317 (bfin_target::low_decr_pc_after_break): New method implementation.
1318 (the_low_target): Remove the field.
1319 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1321 (m68k_target::low_decr_pc_after_break): New method implementation.
1322 (the_low_target): Remove the field.
1323 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1325 (s390_target::low_decr_pc_after_break): New method implementation.
1326 (the_low_target): Remove the field.
1327 * linux-aarch64-low.cc (the_low_target): Remove the field.
1328 * linux-arm-low.cc (the_low_target): Remove the field.
1329 * linux-cris-low.cc (the_low_target): Remove the field.
1330 * linux-crisv32-low.cc (the_low_target): Remove the field.
1331 * linux-m32r-low.cc (the_low_target): Remove the field.
1332 * linux-mips-low.cc (the_low_target): Remove the field.
1333 * linux-nios2-low.cc (the_low_target): Remove the field.
1334 * linux-ppc-low.cc (the_low_target): Remove the field.
1335 * linux-riscv-low.cc (the_low_target): Remove the field.
1336 * linux-sh-low.cc (the_low_target): Remove the field.
1337 * linux-sparc-low.cc (the_low_target): Remove the field.
1338 * linux-tic6x-low.cc (the_low_target): Remove the field.
1339 * linux-tile-low.cc (the_low_target): Remove the field.
1340 * linux-xtensa-low.cc (the_low_target): Remove the field.
1342 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1344 Remove the 'supports_software_single_step' linux target op and let
1345 the concrete linux target define it by overriding the op in
1346 process_stratum_target.
1347 Turn the 'get_next_pcs' linux target op into a method of
1348 linux_process_target.
1350 * linux-low.h (struct linux_target_ops): Remove the ops.
1351 (class linux_process_target) <supports_software_single_step>:
1353 <low_get_next_pcs>: Declare.
1354 * linux-low.cc (can_software_single_step): Remove.
1355 (linux_process_target::low_get_next_pcs): Define.
1356 (linux_process_target::supports_software_single_step): Remove.
1358 Update the callers below.
1360 (linux_process_target::handle_extended_wait)
1361 (linux_process_target::wait_1)
1362 (linux_process_target::install_software_single_step_breakpoints)
1363 (linux_process_target::single_step)
1364 (linux_process_target::thread_needs_step_over)
1365 (linux_process_target::proceed_one_lwp)
1366 (linux_process_target::supports_range_stepping)
1368 * linux-x86-low.cc (the_low_target): Remove the op field.
1369 * linux-aarch64-low.cc (the_low_target): Ditto.
1370 * linux-bfin-low.cc (the_low_target): Ditto.
1371 * linux-cris-low.cc (the_low_target): Ditto.
1372 * linux-crisv32-low.cc (the_low_target): Ditto.
1373 * linux-m32r-low.cc (the_low_target): Ditto.
1374 * linux-m68k-low.cc (the_low_target): Ditto.
1375 * linux-mips-low.cc (the_low_target): Ditto.
1376 * linux-nios2-low.cc (the_low_target): Ditto.
1377 * linux-ppc-low.cc (the_low_target): Ditto.
1378 * linux-riscv-low.cc (the_low_target): Ditto.
1379 * linux-s390-low.cc (the_low_target): Ditto.
1380 * linux-sh-low.cc (the_low_target): Ditto.
1381 * linux-sparc-low.cc (the_low_target): Ditto.
1382 * linux-tic6x-low.cc (the_low_target): Ditto.
1383 * linux-tile-low.cc (the_low_target): Ditto.
1384 * linux-xtensa-low.cc (the_low_target): Ditto.
1385 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1386 <supports_software_single_step>: Declare.
1387 (arm_target::supports_software_single_step): Define.
1388 (arm_gdbserver_get_next_pcs): Turn into...
1389 (arm_target::low_get_next_pcs): ...this.
1390 (the_low_target): Remove the op field.
1392 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1395 the concrete linux target define it by overriding the op
1396 in process_stratum_target.
1398 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1400 * linux-low.h (struct linux_target_ops): Remove the op.
1401 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1402 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1404 (x86_sw_breakpoint_from_kind): Turn into...
1405 (x86_target::sw_breakpoint_from_kind): ...this.
1406 (the_low_target): Remove the op field.
1407 * linux-aarch64-low.cc (class aarch64_target)
1408 <sw_breakpoint_from_kind>: Declare.
1409 (aarch64_sw_breakpoint_from_kind): Turn into...
1410 (aarch64_target::sw_breakpoint_from_kind): ...this.
1411 (the_low_target): Remove the op field.
1412 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1414 (arm_target::sw_breakpoint_from_kind): Define.
1415 (the_low_target): Remove the op field.
1416 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1418 (bfin_sw_breakpoint_from_kind): Turn into...
1419 (bfin_target::sw_breakpoint_from_kind): ...this.
1420 (the_low_target): Remove the op field.
1421 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1423 (cris_sw_breakpoint_from_kind): Turn into...
1424 (cris_target::sw_breakpoint_from_kind): ...this.
1425 (the_low_target): Remove the op field.
1426 * linux-crisv32-low.cc (class crisv32_target)
1427 <sw_breakpoint_from_kind>: Declare.
1428 (cris_sw_breakpoint_from_kind): Turn into...
1429 (crisv32_target::sw_breakpoint_from_kind): ...this.
1430 (the_low_target): Remove the op field.
1431 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1433 (ia64_target::sw_breakpoint_from_kind): Define.
1434 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1436 (m32r_sw_breakpoint_from_kind): Turn into...
1437 (m32r_target::sw_breakpoint_from_kind): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1441 (m68k_sw_breakpoint_from_kind): Turn into...
1442 (m68k_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1446 (mips_sw_breakpoint_from_kind): Turn into...
1447 (mips_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1451 (nios2_sw_breakpoint_from_kind): Turn into...
1452 (nios2_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1456 (ppc_sw_breakpoint_from_kind): Turn into...
1457 (ppc_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1461 (riscv_sw_breakpoint_from_kind): Turn into...
1462 (riscv_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1466 (s390_sw_breakpoint_from_kind): Turn into...
1467 (s390_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1471 (sh_sw_breakpoint_from_kind): Turn into...
1472 (sh_target::sw_breakpoint_from_kind): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1476 (sparc_sw_breakpoint_from_kind): Turn into...
1477 (sparc_target::sw_breakpoint_from_kind): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1481 (tic6x_sw_breakpoint_from_kind): Turn into...
1482 (tic6x_target::sw_breakpoint_from_kind): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1486 (tile_sw_breakpoint_from_kind): Turn into...
1487 (tile_target::sw_breakpoint_from_kind): ...this.
1488 (the_low_target): Remove the op field.
1489 * linux-xtensa-low.cc (class xtensa_target)
1490 <sw_breakpoint_from_kind>: Declare.
1491 (xtensa_sw_breakpoint_from_kind): Turn into...
1492 (xtensa_target::sw_breakpoint_from_kind): ...this.
1493 (the_low_target): Remove the op field.
1495 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497 Remove the 'breakpoint_kind_from_pc' and
1498 'breakpoint_kind_from_current_state' linux target ops, and let the
1499 concrete linux target define them by overriding the ops of
1500 process_stratum_target.
1502 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1504 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1505 * linux-low.h (struct linux_target_ops): Remove ops.
1506 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1507 <breakpoint_kind_from_current_state>: Remove.
1508 * linux-x86-low.cc (the_low_target): Remove the op fields.
1509 * linux-bfin-low.cc (the_low_target): Ditto.
1510 * linux-cris-low.cc (the_low_target): Ditto.
1511 * linux-crisv32-low.cc (the_low_target): Ditto.
1512 * linux-m32r-low.cc (the_low_target): Ditto.
1513 * linux-m68k-low.cc (the_low_target): Ditto.
1514 * linux-mips-low.cc (the_low_target): Ditto.
1515 * linux-nios2-low.cc (the_low_target): Ditto.
1516 * linux-ppc-low.cc (the_low_target): Ditto.
1517 * linux-s390-low.cc (the_low_target): Ditto.
1518 * linux-sh-low.cc (the_low_target): Ditto.
1519 * linux-sparc-low.cc (the_low_target): Ditto.
1520 * linux-tic6x-low.cc (the_low_target): Ditto.
1521 * linux-tile-low.cc (the_low_target): Ditto.
1522 * linux-xtensa-low.cc (the_low_target): Ditto.
1523 * linux-aarch64-low.cc (class aarch64_target)
1524 <breakpoint_kind_from_pc>
1525 <breakpoint_kind_from_current_state>: Declare.
1526 (aarch64_breakpoint_kind_from_pc): Turn into...
1527 (aarch64_target::breakpoint_kind_from_pc): ...this.
1528 (aarch64_breakpoint_kind_from_current_state): Turn into...
1529 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1530 (the_low_target): Remove the op fields.
1531 * linux-arm-low.cc (class arm_target):
1532 <breakpoint_kind_from_pc>
1533 <breakpoint_kind_from_current_state>: Declare.
1534 (arm_target::breakpoint_kind_from_pc): Define.
1535 (arm_target::breakpoint_kind_from_current_state): Define.
1536 (the_low_target): Remove the op fields.
1537 * linux-riscv-low.cc (class riscv_target):
1538 <breakpoint_kind_from_pc>: Declare.
1539 (riscv_breakpoint_kind_from_pc): Turn into...
1540 (riscv_target::breakpoint_kind_from_pc): ...this.
1541 (the_low_target): Remove the op fields.
1543 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1546 of linux_process_target.
1548 * linux-low.h (struct linux_target_ops): Remove the ops.
1549 (class linux_process_target) <low_supports_breakpoints>
1551 <low_set_pc>: Declare.
1552 * linux-low.cc (supports_breakpoints): Turn into...
1553 (linux_process_target::low_supports_breakpoints): ...this.
1554 (linux_process_target::low_get_pc): Define.
1555 (linux_process_target::low_set_pc): Define.
1557 Update the callers below.
1559 (linux_process_target::get_pc)
1560 (linux_process_target::save_stop_reason)
1561 (linux_process_target::maybe_move_out_of_jump_pad)
1562 (linux_process_target::wait_1)
1563 (linux_process_target::resume_one_lwp_throw)
1564 (linux_process_target::resume)
1565 (linux_process_target::proceed_all_lwps)
1566 (linux_process_target::read_pc)
1567 (linux_process_target::write_pc)
1569 * linux-x86-low.cc (class linux_process_target)
1570 <low_supports_breakpoints>
1572 <low_set_pc>: Declare.
1573 (x86_target::low_supports_breakpoints): Define.
1574 (x86_get_pc): Turn into...
1575 (x86_target::low_get_pc): ...this.
1576 (x86_set_pc): Turn into...
1577 (x86_target::low_set_pc): ...this.
1578 (the_low_target): Remove the op fields.
1579 * linux-arm-low.cc (class arm_target)
1580 <low_supports_breakpoints>
1582 <low_set_pc>: Declare.
1583 (arm_target::low_supports_breakpoints)
1584 (arm_target::low_get_pc)
1585 (arm_target::low_set_pc): Define.
1586 (the_low_target): Remove the op fields.
1587 * linux-bfin-low.cc (class bfin_target)
1588 <low_supports_breakpoints>
1590 <low_set_pc>: Declare.
1591 (bfin_target::low_supports_breakpoints)
1592 (bfin_target::low_get_pc)
1593 (bfin_target::low_set_pc): Define.
1594 (the_low_target): Remove the op fields.
1595 * linux-cris-low.cc (class cris_target)
1596 <low_supports_breakpoints>
1598 <low_set_pc>: Declare.
1599 (cris_target::low_supports_breakpoints)
1600 (cris_target::low_get_pc)
1601 (cris_target::low_set_pc): Define.
1602 (the_low_target): Remove the op fields.
1603 * linux-crisv32-low.cc (class crisv32_target)
1604 <low_supports_breakpoints>
1606 <low_set_pc>: Declare.
1607 (crisv32_target::low_supports_breakpoints)
1608 (crisv32_target::low_get_pc)
1609 (crisv32_target::low_set_pc): Define.
1610 (the_low_target): Remove the op fields.
1611 * linux-m32r-low.cc (class m32r_target)
1612 <low_supports_breakpoints>
1614 <low_set_pc>: Declare.
1615 (m32r_target::low_supports_breakpoints)
1616 (m32r_target::low_get_pc)
1617 (m32r_target::low_set_pc): Define.
1618 (the_low_target): Remove the op fields.
1619 * linux-m68k-low.cc (class m68k_target)
1620 <low_supports_breakpoints>
1622 <low_set_pc>: Declare.
1623 (m68k_target::low_supports_breakpoints)
1624 (m68k_target::low_get_pc)
1625 (m68k_target::low_set_pc): Define.
1626 (the_low_target): Remove the op fields.
1627 * linux-nios2-low.cc (class nios2_target)
1628 <low_supports_breakpoints>
1630 <low_set_pc>: Declare.
1631 (nios2_target::low_supports_breakpoints)
1632 (nios2_target::low_get_pc)
1633 (nios2_target::low_set_pc): Define.
1634 (the_low_target): Remove the op fields.
1635 * linux-sh-low.cc (class sh_target)
1636 <low_supports_breakpoints>
1638 <low_set_pc>: Declare.
1639 (sh_target::low_supports_breakpoints)
1640 (sh_target::low_get_pc)
1641 (sh_target::low_set_pc): Define.
1642 (the_low_target): Remove the op fields.
1643 * linux-xtensa-low.cc (class xtensa_target)
1644 <low_supports_breakpoints>
1646 <low_set_pc>: Declare.
1647 (xtensa_target::low_supports_breakpoints)
1648 (xtensa_target::low_get_pc)
1649 (xtensa_target::low_set_pc): Define.
1650 (the_low_target): Remove the op fields.
1651 * linux-sparc-low.cc (class sparc_target)
1652 <low_supports_breakpoints>
1653 <low_get_pc>: Declare.
1654 (sparc_target::low_supports_breakpoints)
1655 (sparc_target::low_get_pc): Define.
1656 (the_low_target): Remove the op fields.
1657 * linux-tile-low.cc (class tile_target)
1658 <low_supports_breakpoints>
1660 <low_set_pc>: Declare.
1661 (tile_target::low_supports_breakpoints)
1662 (tile_target::low_get_pc)
1663 (tile_target::low_set_pc): Define.
1664 (the_low_target): Remove the op fields.
1665 * linux-aarch64-low.cc (class aarch64_target)
1666 <low_supports_breakpoints>
1668 <low_set_pc>: Declare.
1669 (aarch64_target::low_supports_breakpoints): Define.
1670 (aarch64_get_pc): Turn into...
1671 (aarch64_target::low_get_pc): ...this.
1672 (aarch64_set_pc): Turn into...
1673 (aarch64_target::low_set_pc): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-mips-low.cc (class mips_target)
1676 <low_supports_breakpoints>
1678 <low_set_pc>: Declare.
1679 (mips_target::low_supports_breakpoints): Define.
1680 (mips_get_pc): Turn into...
1681 (mips_target::low_get_pc): ...this.
1682 (mips_set_pc): Turn into...
1683 (mips_target::low_set_pc): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-ppc-low.cc (class ppc_target)
1686 <low_supports_breakpoints>
1688 <low_set_pc>: Declare.
1689 (ppc_target::low_supports_breakpoints): Define.
1690 (ppc_get_pc): Turn into...
1691 (ppc_target::low_get_pc): ...this.
1692 (ppc_set_pc): Turn into...
1693 (ppc_target::low_set_pc): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-riscv-low.cc (class riscv_target)
1696 <low_supports_breakpoints>
1698 <low_set_pc>: Declare.
1699 (riscv_target::low_supports_breakpoints): Define.
1700 (riscv_get_pc): Turn into...
1701 (riscv_target::low_get_pc): ...this.
1702 (riscv_set_pc): Turn into...
1703 (riscv_target::low_set_pc): ...this.
1704 (the_low_target): Remove the op fields.
1705 * linux-s390-low.cc (class s390_target)
1706 <low_supports_breakpoints>
1708 <low_set_pc>: Declare.
1709 (s390_target::low_supports_breakpoints): Define.
1710 (s390_get_pc): Turn into...
1711 (s390_target::low_get_pc): ...this.
1712 (s390_set_pc): Turn into...
1713 (s390_target::low_set_pc): ...this.
1714 (the_low_target): Remove the op fields.
1715 * linux-tic6x-low.cc (class tic6x_target)
1716 <low_supports_breakpoints>
1718 <low_set_pc>: Declare.
1719 (tic6x_target::low_supports_breakpoints): Define.
1720 (tic6x_get_pc): Turn into...
1721 (tic6x_target::low_get_pc): ...this.
1722 (tic6x_set_pc): Turn into...
1723 (tic6x_target::low_set_pc): ...this.
1724 (the_low_target): Remove the op fields.
1726 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728 Turn some more static methods in linux-low into private methods
1729 of linux_process_target.
1731 * linux-low.cc (get_pc): Turn into...
1732 (linux_process_target::get_pc): ...this.
1733 (save_stop_reason): Turn into...
1734 (linux_process_target::save_stop_reason): ...this.
1735 (thread_still_has_status_pending_p): Turn into...
1736 (linux_process_target::thread_still_has_status_pending): ...this.
1737 (status_pending_p_callback): Turn into...
1738 (linux_process_target::status_pending_p_callback): ...this.
1739 (resume_stopped_resumed_lwps): Turn into...
1740 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1741 (install_software_single_step_breakpoints): Turn into...
1742 (linux_process_target::install_software_single_step_breakpoints):
1744 (single_step): Turn into...
1745 (linux_process_target::single_step): ...this.
1746 (linux_resume_one_lwp_throw): Turn into...
1747 (linux_process_target::resume_one_lwp_throw): ...this.
1748 (linux_resume_one_lwp): Turn into...
1749 (linux_process_target::resume_one_lwp): ...this.
1750 (resume_status_pending_p): Turn into...
1751 (linux_process_target::resume_status_pending): ...this.
1752 (need_step_over_p): Turn into...
1753 (linux_process_target::thread_needs_step_over): ...this.
1754 (linux_resume_one_thread): Turn into...
1755 (linux_process_target::resume_one_thread): ...this.
1756 (proceed_one_lwp): Turn into...
1757 (linux_process_target::proceed_one_lwp): ...this.
1758 (unsuspend_and_proceed_one_lwp): Turn into...
1759 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1761 Update the calls/references to the above functions below.
1763 (linux_process_target::handle_extended_wait)
1764 (linux_process_target::filter_event)
1765 (linux_process_target::wait_for_event_filtered)
1766 (linux_process_target::wait_1)
1767 (linux_process_target::move_out_of_jump_pad)
1768 (linux_process_target::start_step_over)
1769 (linux_process_target::resume)
1770 (linux_process_target::proceed_all_lwps)
1771 (regsets_store_inferior_registers)
1772 (linux_process_target::store_register)
1774 * linux-low.h (class linux_process_target)
1777 <thread_still_has_status_pending>
1778 <status_pending_p_callback>
1779 <resume_stopped_resumed_lwps>
1780 <install_software_single_step_breakpoints>
1782 <resume_one_lwp_throw>
1784 <resume_status_pending>
1785 <thread_needs_step_over>
1788 <unsuspend_and_proceed_one_lwp>: Declare.
1790 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1792 Turn the 'fetch_register' linux target op into a method of
1793 linux_process_target.
1795 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1796 (class linux_process_target) <low_fetch_register>: Declare.
1797 * linux-x86-low.cc (the_low_target)
1798 * linux-aarch64-low.cc (the_low_target)
1799 * linux-arm-low.cc (the_low_target)
1800 * linux-bfin-low.cc (the_low_target)
1801 * linux-cris-low.cc (the_low_target)
1802 * linux-crisv32-low.cc (the_low_target)
1803 * linux-m32r-low.cc (the_low_target)
1804 * linux-m68k-low.cc (the_low_target)
1805 * linux-nios2-low.cc (the_low_target)
1806 * linux-ppc-low.cc (the_low_target)
1807 * linux-s390-low.cc (the_low_target)
1808 * linux-sh-low.cc (the_low_target)
1809 * linux-sparc-low.cc (the_low_target)
1810 * linux-tic6x-low.cc (the_low_target)
1811 * linux-tile-low.cc (the_low_target)
1812 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1813 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1815 (ia64_fetch_register): Turn into...
1816 (ia64_target::low_fetch_register): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1820 (mips_fetch_register): Turn into...
1821 (mips_target::low_fetch_register): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1825 (riscv_fetch_register): Turn into...
1826 (riscv_target::low_fetch_register): ...this.
1827 (the_low_target): Remove the op field.
1829 Update the callers below.
1831 * linux-low.cc (linux_process_target::fetch_registers)
1832 (linux_process_target::low_fetch_register)
1834 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1836 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1837 linux target ops into methods of linux_process_target.
1839 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1840 (class linux_process_target) <fetch_register>
1842 <usr_fetch_inferior_registers>
1843 <usr_store_inferior_registers>
1844 <low_cannot_fetch_register>
1845 <low_cannot_fetch_register> Declare.
1846 * linux-low.cc (fetch_register): Turn into...
1847 (linux_process_target::fetch_register): ...this.
1848 (store_register): Turn into ...
1849 (linux_process_target::store_register): ...this.
1850 (usr_fetch_inferior_registers): Turn into...
1851 (linux_process_target::usr_fetch_inferior_registers): ...this.
1852 (usr_store_inferior_registers): Turn into...
1853 (linux_process_target::usr_store_inferior_registers): ...this.
1854 * linux-x86-low.cc (class x86_target)
1855 <low_cannot_fetch_register>
1856 <low_cannot_store_register>: Declare.
1857 (x86_cannot_store_register): Turn into...
1858 (x86_target::low_cannot_store_register): ...this.
1859 (x86_cannot_fetch_register): Turn into...
1860 (x86_target::low_cannot_fetch_register): ...this.
1861 (the_low_target): Remove the target op fields.
1862 * linux-aarch64-low.cc (class aarch64_target)
1863 <low_cannot_fetch_register>
1864 <low_cannot_store_register>: Declare.
1865 (aarch64_target::low_cannot_fetch_register)
1866 (aarch64_target::low_cannot_store_register): Define.
1867 (the_low_target): Remove the op fields.
1868 * linux-arm-low.cc (class arm_target)
1869 <low_cannot_fetch_register>
1870 <low_cannot_store_register>: Declare.
1871 (arm_cannot_fetch_register): Turn into...
1872 (arm_target::low_cannot_fetch_register): ...this.
1873 (arm_cannot_store_register): Turn into...
1874 (arm_target::low_cannot_store_register): ...this.
1875 (the_low_target): Remove the op fields.
1876 * linux-bfin-low.cc (class bfin_target)
1877 <low_cannot_fetch_register>
1878 <low_cannot_store_register>: Declare.
1879 (bfin_cannot_fetch_register): Turn into...
1880 (bfin_target::low_cannot_fetch_register): ...this.
1881 (bfin_cannot_store_register): Turn into...
1882 (bfin_target::low_cannot_store_register): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-cris-low.cc (class cris_target)
1885 <low_cannot_fetch_register>
1886 <low_cannot_store_register>: Declare.
1887 (cris_cannot_fetch_register): Turn into...
1888 (cris_target::low_cannot_fetch_register): ...this.
1889 (cris_cannot_store_register): Turn into...
1890 (cris_target::low_cannot_store_register): ...this.
1891 (the_low_target): Remove the op fields.
1892 * linux-crisv32-low.cc (class crisv32_target)
1893 <low_cannot_fetch_register>
1894 <low_cannot_store_register>: Declare.
1895 (crisv32_target::low_cannot_fetch_register)
1896 (crisv32_target::low_cannot_store_register): Define.
1897 (the_low_target): Remove the op fields.
1898 * linux-ia64-low.cc (class ia64_target)
1899 <low_cannot_fetch_register>
1900 <low_cannot_store_register>: Declare.
1901 (ia64_cannot_fetch_register): Turn into...
1902 (ia64_target::low_cannot_fetch_register): ...this.
1903 (ia64_cannot_store_register): Turn into...
1904 (ia64_target::low_cannot_store_register): ...this.
1905 (the_low_target): Remove the op fields.
1906 * linux-m32r-low.cc (class m32r_target)
1907 <low_cannot_fetch_register>
1908 <low_cannot_store_register>: Declare.
1909 (m32r_cannot_fetch_register): Turn into...
1910 (m32r_target::low_cannot_fetch_register): ...this.
1911 (m32r_cannot_store_register): Turn into...
1912 (m32r_target::low_cannot_store_register): ...this.
1913 (the_low_target): Remove the op fields.
1914 * linux-m68k-low.cc (class m68k_target)
1915 <low_cannot_fetch_register>
1916 <low_cannot_store_register>: Declare.
1917 (m68k_cannot_fetch_register): Turn into...
1918 (m68k_target::low_cannot_fetch_register): ...this.
1919 (m68k_cannot_store_register): Turn into...
1920 (m68k_target::low_cannot_store_register): ...this.
1921 (the_low_target): Remove the op fields.
1922 * linux-mips-low.cc (class mips_target)
1923 <low_cannot_fetch_register>
1924 <low_cannot_store_register>: Declare.
1925 (mips_cannot_fetch_register): Turn into...
1926 (mips_target::low_cannot_fetch_register): ...this.
1927 (mips_cannot_store_register): Turn into...
1928 (mips_target::low_cannot_store_register): ...this.
1929 (get_usrregs_info): Inline at the call sites in
1930 low_cannot_fetch_register and low_cannot_store_register,
1932 (the_low_target): Remove the op fields.
1933 * linux-nios2-low.cc (class nios2_target)
1934 <low_cannot_fetch_register>
1935 <low_cannot_store_register>: Declare.
1936 (nios2_cannot_fetch_register): Turn into...
1937 (nios2_target::low_cannot_fetch_register): ...this.
1938 (nios2_cannot_store_register): Turn into...
1939 (nios2_target::low_cannot_store_register): ...this.
1940 (the_low_target): Remove the op fields.
1941 * linux-ppc-low.cc (class ppc_target)
1942 <low_cannot_fetch_register>
1943 <low_cannot_store_register>: Declare.
1944 (ppc_cannot_fetch_register): Turn into...
1945 (ppc_target::low_cannot_fetch_register): ...this.
1946 (ppc_cannot_store_register): Turn into...
1947 (ppc_target::low_cannot_store_register): ...this.
1948 (the_low_target): Remove the op fields.
1949 * linux-riscv-low.cc (class riscv_target)
1950 <low_cannot_fetch_register>
1951 <low_cannot_store_register>: Declare.
1952 (riscv_target::low_cannot_fetch_register)
1953 (riscv_target::low_cannot_store_register): Define.
1954 (the_low_target): Remove the op fields.
1955 * linux-s390-low.cc (class s390_target)
1956 <low_cannot_fetch_register>
1957 <low_cannot_store_register>: Declare.
1958 (s390_cannot_fetch_register): Turn into...
1959 (s390_target::low_cannot_fetch_register): ...this.
1960 (s390_cannot_store_register): Turn into...
1961 (s390_target::low_cannot_store_register): ...this.
1962 (the_low_target): Remove the op fields.
1963 * linux-sh-low.cc (class sh_target)
1964 <low_cannot_fetch_register>
1965 <low_cannot_store_register>: Declare.
1966 (sh_cannot_fetch_register): Turn into...
1967 (sh_target::low_cannot_fetch_register): ...this.
1968 (sh_cannot_store_register): Turn into...
1969 (sh_target::low_cannot_store_register): ...this.
1970 (the_low_target): Remove the op fields.
1971 * linux-sparc-low.cc (class sparc_target)
1972 <low_cannot_fetch_register>
1973 <low_cannot_store_register>: Declare.
1974 (sparc_cannot_fetch_register): Turn into...
1975 (sparc_target::low_cannot_fetch_register): ...this.
1976 (sparc_cannot_store_register): Turn into...
1977 (sparc_target::low_cannot_store_register): ...this.
1978 (the_low_target): Remove the op fields.
1979 * linux-tic6x-low.cc (class tic6x_target)
1980 <low_cannot_fetch_register>
1981 <low_cannot_store_register>: Declare.
1982 (tic6x_cannot_fetch_register): Turn into...
1983 (tic6x_target::low_cannot_fetch_register): ...this.
1984 (tic6x_cannot_store_register): Turn into...
1985 (tic6x_target::low_cannot_store_register): ...this.
1986 (the_low_target): Remove the op fields.
1987 * linux-tile-low.cc (class tile_target)
1988 <low_cannot_fetch_register>
1989 <low_cannot_store_register>: Declare.
1990 (tile_cannot_fetch_register): Turn into...
1991 (tile_target::low_cannot_fetch_register): ...this.
1992 (tile_cannot_store_register): Turn into...
1993 (tile_target::low_cannot_store_register): ...this.
1994 (the_low_target): Remove the op fields.
1995 * linux-xtensa-low.cc (class xtensa_target)
1996 <low_cannot_fetch_register>
1997 <low_cannot_store_register>: Declare.
1998 (xtensa_target::low_cannot_fetch_register)
1999 (xtensa_target::low_cannot_store_register): Define.
2000 (the_low_target): Remove the op fields.
2002 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2004 Turn the 'regs_info' linux target op into a method of
2005 linux_process_target.
2007 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2008 (class linux_process_target) <get_regs_info>: Define.
2010 Update the callers below.
2012 * linux-low.cc (linux_process_target::fetch_registers)
2013 (linux_process_target::store_registers)
2014 * proc-service.cc (gregset_info)
2016 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2017 (x86_linux_regs_info): Turn into ...
2018 (x86_target::get_regs_info): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2022 (aarch64_regs_info): Turn into ...
2023 (aarch64_target::get_regs_info): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2026 (arm_regs_info): Turn into ...
2027 (arm_target::get_regs_info): ...this.
2028 (the_low_target): Remove the op field.
2029 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2030 (bfin_regs_info): Turn into ...
2031 (bfin_target::get_regs_info): ...this.
2032 (the_low_target): Remove the op field.
2033 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2034 (cris_regs_info): Turn into ...
2035 (cris_target::get_regs_info): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2039 (crisv32_regs_info): Turn into ...
2040 (crisv32_target::get_regs_info): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2043 (ia64_regs_info): Turn into ...
2044 (ia64_target::get_regs_info): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2047 (m32r_regs_info): Turn into ...
2048 (m32r_target::get_regs_info): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2051 (m68k_regs_info): Turn into ...
2052 (m68k_target::get_regs_info): ...this.
2053 (the_low_target): Remove the op field.
2054 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2055 (mips_regs_info): Turn into ...
2056 (mips_target::get_regs_info): ...this.
2057 (the_low_target): Remove the op field.
2058 (get_usrregs_info): Update the call to the op.
2059 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2060 (nios2_regs_info): Turn into ...
2061 (nios2_target::get_regs_info): ...this.
2062 (the_low_target): Remove the op field.
2063 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2064 (ppc_regs_info): Turn into ...
2065 (ppc_target::get_regs_info): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2068 (riscv_regs_info): Turn into ...
2069 (riscv_target::get_regs_info): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2072 (s390_regs_info): Turn into ...
2073 (s390_target::get_regs_info): ...this.
2074 (the_low_target): Remove the op field.
2075 (s390_collect_ptrace_register)
2076 (s390_supply_ptrace_register)
2077 (s390_fill_gregset): Update the call to the op.
2078 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2079 (sh_regs_info): Turn into ...
2080 (sh_target::get_regs_info): ...this.
2081 (the_low_target): Remove the op field.
2082 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2083 (sparc_regs_info): Turn into ...
2084 (sparc_target::get_regs_info): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2087 (tic6x_regs_info): Turn into ...
2088 (tic6x_target::get_regs_info): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2091 (tile_regs_info): Turn into ...
2092 (tile_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2096 (xtensa_regs_info): Turn into ...
2097 (xtensa_target::get_regs_info): ...this.
2098 (the_low_target): Remove the op field.
2100 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102 Turn the 'arch_setup' linux target op into a method of
2103 linux_process_target.
2105 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2106 (class linux_process_target) <arch_setup_thread>
2107 <low_arch_setup>: New declarations.
2108 * linux-low.cc (linux_arch_setup): Delete.
2109 (linux_arch_setup_thread): Turn into...
2110 (linux_process_target::arch_setup_thread): ... this.
2112 Update the callers below.
2114 (linux_process_target::handle_extended_wait)
2115 (linux_process_target::post_create_inferior)
2116 (linux_process_target::filter_event)
2118 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2120 (x86_linux_update_xmltarget): Turn into...
2121 (x86_target::update_xmltarget): ...this.
2122 (x86_linux_process_qsupported): Update the call to
2123 x86_linux_update_xmltarget.
2124 (x86_arch_setup): Turn into ...
2125 (x86_target::low_arch_setup): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2129 (aarch64_arch_setup): Turn into ...
2130 (aarch64_target::low_arch_setup): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2134 (arm_arch_setup): Turn into ...
2135 (arm_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2139 (bfin_arch_setup): Turn into ...
2140 (bfin_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2144 (cris_arch_setup): Turn into ...
2145 (cris_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2149 (crisv32_arch_setup): Turn into ...
2150 (crisv32_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2154 (ia64_arch_setup): Turn into ...
2155 (ia64_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2159 (m32r_arch_setup): Turn into ...
2160 (m32r_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2164 (m68k_arch_setup): Turn into ...
2165 (m68k_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2169 (mips_arch_setup): Turn into ...
2170 (mips_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2174 (nios2_arch_setup): Turn into ...
2175 (nios2_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2179 (ppc_arch_setup): Turn into ...
2180 (ppc_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2184 (riscv_arch_setup): Turn into ...
2185 (riscv_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2189 (s390_arch_setup): Turn into ...
2190 (s390_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2194 (sh_arch_setup): Turn into ...
2195 (sh_target::low_arch_setup): ...this.
2196 (the_low_target): Remove the op field.
2197 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2199 (sparc_arch_setup): Turn into ...
2200 (sparc_target::low_arch_setup): ...this.
2201 (the_low_target): Remove the op field.
2202 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2204 (tic6x_arch_setup): Turn into ...
2205 (tic6x_target::low_arch_setup): ...this.
2206 (the_low_target): Remove the op field.
2207 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2209 (tile_arch_setup): Turn into ...
2210 (tile_target::low_arch_setup): ...this.
2211 (the_low_target): Remove the op field.
2212 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2214 (xtensa_arch_setup): Turn into ...
2215 (xtensa_target::low_arch_setup): ...this.
2216 (the_low_target): Remove the op field.
2218 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2220 * linux-low.h (the_linux_target): New extern declaration.
2221 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2223 (the_linux_target): Remove.
2224 * linux-x86-low.cc (class x86_target): New class.
2225 (the_x86_target): New static object.
2226 (the_linux_target): Define as pointer to the_x86_target.
2227 * linux-aarch64-low.cc (class aarch64_target): New class.
2228 (the_aarch64_target): New static object.
2229 (the_linux_target): Define as pointer to the_aarch64_target.
2230 * linux-arm-low.cc (class arm_target): New class.
2231 (the_arm_target): New static object.
2232 (the_linux_target): Define as pointer to the_arm_target.
2233 * linux-bfin-low.cc (class bfin_target): New class.
2234 (the_bfin_target): New static object.
2235 (the_linux_target): Define as pointer to the_bfin_target.
2236 * linux-cris-low.cc (class cris_target): New class.
2237 (the_cris_target): New static object.
2238 (the_linux_target): Define as pointer to the_cris_target.
2239 * linux-crisv32-low.cc (class crisv32_target): New class.
2240 (the_crisv32_target): New static object.
2241 (the_linux_target): Define as pointer to the_crisv32_target.
2242 * linux-ia64-low.cc (class ia64_target): New class.
2243 (the_ia64_target): New static object.
2244 (the_linux_target): Define as pointer to the_ia64_target.
2245 * linux-m32r-low.cc (class m32r_target): New class.
2246 (the_m32r_target): New static object.
2247 (the_linux_target): Define as pointer to the_m32r_target.
2248 * linux-m68k-low.cc (class m68k_target): New class.
2249 (the_m68k_target): New static object.
2250 (the_linux_target): Define as pointer to the_m68k_target.
2251 * linux-mips-low.cc (class mips_target): New class.
2252 (the_mips_target): New static object.
2253 (the_linux_target): Define as pointer to the_mips_target.
2254 * linux-nios2-low.cc (class nios2_target): New class.
2255 (the_nios2_target): New static object.
2256 (the_linux_target): Define as pointer to the_nios2_target.
2257 * linux-ppc-low.cc (class ppc_target): New class.
2258 (the_ppc_target): New static object.
2259 (the_linux_target): Define as pointer to the_ppc_target.
2260 * linux-riscv-low.cc (class riscv_target): New class.
2261 (the_riscv_target): New static object.
2262 (the_linux_target): Define as pointer to the_riscv_target.
2263 * linux-s390-low.cc (class s390_target): New class.
2264 (the_s390_target): New static object.
2265 (the_linux_target): Define as pointer to the_s390_target.
2266 * linux-sh-low.cc (class sh_target): New class.
2267 (the_sh_target): New static object.
2268 (the_linux_target): Define as pointer to the_sh_target.
2269 * linux-sparc-low.cc (class sparc_target): New class.
2270 (the_sparc_target): New static object.
2271 (the_linux_target): Define as pointer to the_sparc_target.
2272 * linux-tic6x-low.cc (class tic6x_target): New class.
2273 (the_tic6x_target): New static object.
2274 (the_linux_target): Define as pointer to the_tic6x_target.
2275 * linux-tile-low.cc (class tile_target): New class.
2276 (the_tile_target): New static object.
2277 (the_linux_target): Define as pointer to the_tile_target.
2278 * linux-xtensa-low.cc (class xtensa_target): New class.
2279 (the_xtensa_target): New static object.
2280 (the_linux_target): Define as pointer to the_xtensa_target.
2282 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2284 Turn some static functions in linux-low.cc into private methods of
2285 linux_process_target.
2287 * linux-low.cc (handle_extended_wait): Turn into ...
2288 (linux_process_target::handle_extended_wait): ...this. Call
2289 'mourn' on 'this' object instead of 'the_target'.
2290 (maybe_move_out_of_jump_pad): Turn into...
2291 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2292 (linux_low_filter_event): Turn into...
2293 (linux_process_target::filter_event): ...this.
2294 (linux_wait_for_event_filtered): Turn into...
2295 (linux_process_target::wait_for_event_filtered): ...this.
2296 (linux_wait_for_event): Turn into...
2297 (linux_process_target::wait_for_event): ...this.
2298 (linux_wait_1): Turn into...
2299 (linux_process_target::wait_1): ...this.
2300 (wait_for_sigstop): Turn into...
2301 (linux_process_target::wait_for_sigstop): ...this.
2302 (move_out_of_jump_pad_callback): Turn into...
2303 (linux_process_target::move_out_of_jump_pad): ...this.
2304 (stop_all_lwps): Turn into...
2305 (linux_process_target::stop_all_lwps): ...this.
2306 (start_step_over): Turn into...
2307 (linux_process_target::start_step_over): ...this.
2308 (complete_ongoing_step_over): Turn into...
2309 (linux_process_target::complete_ongoing_step_over): ...this.
2310 (proceed_all_lwps): Turn into...
2311 (linux_process_target::proceed_all_lwps): ...this.
2312 (unstop_all_lwps): Turn into...
2313 (linux_process_target::unstop_all_lwps): ...this.
2315 * linux-low.h (class linux_process_target)
2316 <handle_extended_wait>
2317 <maybe_move_out_of_jump_pad>
2319 <wait_for_event_filtered>
2323 <move_out_of_jump_pad>
2326 <complete_ongoing_step_over>
2328 <unstop_all_lwps>: Declare.
2330 Update the callers below.
2332 * linux-low.cc (linux_process_target::attach): Update.
2333 (linux_process_target::stabilize_threads): Ditto.
2334 (linux_process_target::wait): Ditto.
2336 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338 * linux-low.h (struct linux_target_ops): Update the comment for
2339 'cannot_store_register' to return 0 or 1.
2340 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2343 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2345 * config.in: Re-generate.
2346 * configure: Re-generate.
2348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2350 * regcache.cc (find_register_by_number): Update.
2351 * tdesc.cc (init_target_desc): Likewise.
2352 * tdesc.h (target_desc::reg_defs): Likewise.
2354 2020-03-12 Tom Tromey <tom@tromey.com>
2356 * configure: Rebuild.
2357 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2358 (WIN32APILIBS): New subst.
2359 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2361 (gdbsupport/%.o): Remove target.
2362 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2363 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2364 (WIN32APILIBS): New variable.
2365 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2366 (gdbreplay$(EXEEXT)): Likewise.
2368 2020-03-12 Tom Tromey <tom@tromey.com>
2370 * config.in, configure: Rebuild.
2371 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2372 * acinclude.m4: Include gettext-sister.m4.
2373 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2375 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2376 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2378 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2380 * acinclude.m4: Update path to selftest.m4.
2382 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2384 * configure.ac: Don't source bfd/development.sh, move
2385 GDB_AC_COMMON higher.
2386 * configure: Re-generate.
2388 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2390 * configure: Re-generate.
2392 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2394 * configure: Re-generate.
2396 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2398 * .dir-locals.el: New file.
2400 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2402 * .gitattributes: New file.
2404 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2406 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2407 reply into an S reply.
2408 * server.cc (disable_packet_T): New global.
2409 (captured_main): Set new global when appropriate.
2410 * server.h (disable_packet_T): Declare.
2412 2020-02-21 Tom Tromey <tom@tromey.com>
2414 * Makefile.in (mostlyclean): New target.
2416 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2418 * target.h (struct process_stratum_target): Remove.
2419 (class process_target): Rename to ...
2420 (class process_stratum_target): ... this.
2421 * linux-low.h (class linux_process_target): Derive from
2422 'process_stratum_target'.
2423 * linux-low.cc (linux_target_ops): Remove.
2424 (initialize_low): Set the_target to the singleton instance of
2425 linux_process_target.
2426 * lynx-low.h (class lynx_process_target): Derive from
2427 'process_stratum_target'.
2428 * lynx-low.cc (lynx_target_ops): Remove.
2429 (initialize_low): Set the_target to the singleton instance of
2430 lynx_process_target.
2431 * nto-low.h (class nto_process_target): Derive from
2432 'process_stratum_target'.
2433 * nto-low.cc (nto_target_ops): Remove.
2434 (initialize_low): Set the_target to the singleton instance of
2436 * win32-low.h (class win32_process_target): Derive from
2437 'process_stratum_target'.
2438 * win32-low.cc (win32_target_ops): Remove.
2439 (initialize_low): Set the_target to the singleton instance of
2440 win32_process_target.
2442 Replace 'the_target->pt' with 'the_target' in the uses below.
2444 * hostio.cc (hostio_error)
2449 * linux-aarch32-low.cc (arm_breakpoint_at)
2450 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2451 * linux-arm-low.cc (arm_sigreturn_next_pc)
2453 (arm_get_syscall_trapinfo)
2454 * linux-cris-low.cc (cris_breakpoint_at)
2455 * linux-crisv32-low.cc (cris_breakpoint_at)
2456 * linux-low.cc (handle_extended_wait)
2459 (linux_process_target::breakpoint_kind_from_pc)
2461 * linux-m32r-low.cc (m32r_breakpoint_at)
2462 * linux-mips-low.cc (mips_breakpoint_at)
2463 * linux-nios2-low.cc (nios2_breakpoint_at)
2464 * linux-ppc-low.cc (ppc_breakpoint_at)
2465 * linux-s390-low.cc (s390_get_hwcap)
2466 * linux-sh-low.cc (sh_breakpoint_at)
2467 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2468 (sparc_store_gregset_from_stack)
2469 (sparc_breakpoint_at)
2470 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2471 * linux-tile-low.cc (tile_breakpoint_at)
2472 * linux-x86-low.cc (x86_breakpoint_at)
2473 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2474 * mem-break.cc (bp_size)
2476 (insert_memory_breakpoint)
2477 (set_raw_breakpoint_at)
2478 (delete_raw_breakpoint)
2480 (uninsert_raw_breakpoint)
2481 (reinsert_raw_breakpoint)
2482 (validate_inserted_breakpoint)
2483 * regcache.cc (regcache_read_pc)
2485 * remote-utils.cc (putpkt_binary_1)
2488 (prepare_resume_reply)
2489 * server.cc (handle_general_set)
2492 (handle_qxfer_exec_file)
2493 (handle_qxfer_libraries_svr4)
2494 (handle_qxfer_osdata)
2495 (handle_qxfer_siginfo)
2496 (handle_qxfer_fdpic)
2500 (queue_stop_reply_callback)
2502 * target.cc (prepare_to_access_memory)
2503 (done_accessing_memory)
2504 (read_inferior_memory)
2505 (target_write_memory)
2506 (target_stop_and_wait)
2508 (target_mourn_inferior)
2509 (target_continue_no_signal)
2511 (target_supports_multi_process)
2514 (target_create_inferior)
2515 (target_post_create_inferior)
2517 (target_supports_fork_events)
2518 (target_supports_vfork_events)
2519 (target_supports_exec_events)
2520 (target_handle_new_gdb_connection)
2523 (fetch_inferior_registers)
2524 (store_inferior_registers)
2526 (target_supports_non_stop)
2528 (target_process_qsupported)
2529 (target_supports_catch_syscall)
2530 (target_get_ipa_tdesc_idx)
2531 (target_supports_tracepoints)
2532 (target_supports_fast_tracepoints)
2533 (target_get_min_fast_tracepoint_insn_len)
2534 (target_thread_stopped)
2536 (target_unpause_all)
2537 (target_stabilize_threads)
2538 (target_install_fast_tracepoint_jump_pad)
2540 (target_supports_disable_randomization)
2541 (target_supports_agent)
2542 (target_enable_btrace)
2543 (target_disable_btrace)
2544 (target_read_btrace)
2545 (target_read_btrace_conf)
2546 (target_supports_range_stepping)
2547 (target_supports_stopped_by_sw_breakpoint)
2548 (target_stopped_by_sw_breakpoint)
2549 (target_supports_stopped_by_hw_breakpoint)
2550 (target_supports_hardware_single_step)
2551 (target_stopped_by_hw_breakpoint)
2552 (target_breakpoint_kind_from_pc)
2553 (target_breakpoint_kind_from_current_state)
2554 (target_supports_software_single_step)
2555 (target_core_of_thread)
2556 (target_thread_name)
2557 (target_thread_handle)
2558 * win32-low.cc (do_initial_child_stuff)
2560 Rename target op default definitions listed below.
2562 * target.cc (process_target::post_create_inferior): Rename as ...
2563 (process_stratum_target::post_create_inferior): ... this.
2564 (process_target::prepare_to_access_memory): Rename as ...
2565 (process_stratum_target::prepare_to_access_memory): ... this.
2566 (process_target::done_accessing_memory): Rename as ...
2567 (process_stratum_target::done_accessing_memory): ... this.
2568 (process_target::look_up_symbols): Rename as ...
2569 (process_stratum_target::look_up_symbols): ... this.
2570 (process_target::supports_read_auxv): Rename as ...
2571 (process_stratum_target::supports_read_auxv): ... this.
2572 (process_target::read_auxv): Rename as ...
2573 (process_stratum_target::read_auxv): ... this.
2574 (process_target::supports_z_point_type): Rename as ...
2575 (process_stratum_target::supports_z_point_type): ... this.
2576 (process_target::insert_point): Rename as ...
2577 (process_stratum_target::insert_point): ... this.
2578 (process_target::remove_point): Rename as ...
2579 (process_stratum_target::remove_point): ... this.
2580 (process_target::stopped_by_sw_breakpoint): Rename as ...
2581 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2582 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2583 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2584 (process_target::stopped_by_hw_breakpoint): Rename as ...
2585 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2586 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2587 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2588 (process_target::supports_hardware_single_step): Rename as ...
2589 (process_stratum_target::supports_hardware_single_step): ... this.
2590 (process_target::stopped_by_watchpoint): Rename as ...
2591 (process_stratum_target::stopped_by_watchpoint): ... this.
2592 (process_target::stopped_data_address): Rename as ...
2593 (process_stratum_target::stopped_data_address): ... this.
2594 (process_target::supports_read_offsets): Rename as ...
2595 (process_stratum_target::supports_read_offsets): ... this.
2596 (process_target::read_offsets): Rename as ...
2597 (process_stratum_target::read_offsets): ... this.
2598 (process_target::supports_get_tls_address): Rename as ...
2599 (process_stratum_target::supports_get_tls_address): ... this.
2600 (process_target::get_tls_address): Rename as ...
2601 (process_stratum_target::get_tls_address): ... this.
2602 (process_target::hostio_last_error): Rename as ...
2603 (process_stratum_target::hostio_last_error): ... this.
2604 (process_target::supports_qxfer_osdata): Rename as ...
2605 (process_stratum_target::supports_qxfer_osdata): ... this.
2606 (process_target::qxfer_osdata): Rename as ...
2607 (process_stratum_target::qxfer_osdata): ... this.
2608 (process_target::supports_qxfer_siginfo): Rename as ...
2609 (process_stratum_target::supports_qxfer_siginfo): ... this.
2610 (process_target::qxfer_siginfo): Rename as ...
2611 (process_stratum_target::qxfer_siginfo): ... this.
2612 (process_target::supports_non_stop): Rename as ...
2613 (process_stratum_target::supports_non_stop): ... this.
2614 (process_target::async): Rename as ...
2615 (process_stratum_target::async): ... this.
2616 (process_target::start_non_stop): Rename as ...
2617 (process_stratum_target::start_non_stop): ... this.
2618 (process_target::supports_multi_process): Rename as ...
2619 (process_stratum_target::supports_multi_process): ... this.
2620 (process_target::supports_fork_events): Rename as ...
2621 (process_stratum_target::supports_fork_events): ... this.
2622 (process_target::supports_vfork_events): Rename as ...
2623 (process_stratum_target::supports_vfork_events): ... this.
2624 (process_target::supports_exec_events): Rename as ...
2625 (process_stratum_target::supports_exec_events): ... this.
2626 (process_target::handle_new_gdb_connection): Rename as ...
2627 (process_stratum_target::handle_new_gdb_connection): ... this.
2628 (process_target::handle_monitor_command): Rename as ...
2629 (process_stratum_target::handle_monitor_command): ... this.
2630 (process_target::core_of_thread): Rename as ...
2631 (process_stratum_target::core_of_thread): ... this.
2632 (process_target::supports_read_loadmap): Rename as ...
2633 (process_stratum_target::supports_read_loadmap): ... this.
2634 (process_target::read_loadmap): Rename as ...
2635 (process_stratum_target::read_loadmap): ... this.
2636 (process_target::process_qsupported): Rename as ...
2637 (process_stratum_target::process_qsupported): ... this.
2638 (process_target::supports_tracepoints): Rename as ...
2639 (process_stratum_target::supports_tracepoints): ... this.
2640 (process_target::read_pc): Rename as ...
2641 (process_stratum_target::read_pc): ... this.
2642 (process_target::write_pc): Rename as ...
2643 (process_stratum_target::write_pc): ... this.
2644 (process_target::supports_thread_stopped): Rename as ...
2645 (process_stratum_target::supports_thread_stopped): ... this.
2646 (process_target::thread_stopped): Rename as ...
2647 (process_stratum_target::thread_stopped): ... this.
2648 (process_target::supports_get_tib_address): Rename as ...
2649 (process_stratum_target::supports_get_tib_address): ... this.
2650 (process_target::get_tib_address): Rename as ...
2651 (process_stratum_target::get_tib_address): ... this.
2652 (process_target::pause_all): Rename as ...
2653 (process_stratum_target::pause_all): ... this.
2654 (process_target::unpause_all): Rename as ...
2655 (process_stratum_target::unpause_all): ... this.
2656 (process_target::stabilize_threads): Rename as ...
2657 (process_stratum_target::stabilize_threads): ... this.
2658 (process_target::supports_fast_tracepoints): Rename as ...
2659 (process_stratum_target::supports_fast_tracepoints): ... this.
2660 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2661 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2662 (process_target::emit_ops): Rename as ...
2663 (process_stratum_target::emit_ops): ... this.
2664 (process_target::supports_disable_randomization): Rename as ...
2665 (process_stratum_target::supports_disable_randomization): ... this.
2666 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2667 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2668 (process_target::qxfer_libraries_svr4): Rename as ...
2669 (process_stratum_target::qxfer_libraries_svr4): ... this.
2670 (process_target::supports_agent): Rename as ...
2671 (process_stratum_target::supports_agent): ... this.
2672 (process_target::enable_btrace): Rename as ...
2673 (process_stratum_target::enable_btrace): ... this.
2674 (process_target::disable_btrace): Rename as ...
2675 (process_stratum_target::disable_btrace): ... this.
2676 (process_target::read_btrace): Rename as ...
2677 (process_stratum_target::read_btrace): ... this.
2678 (process_target::read_btrace_conf): Rename as ...
2679 (process_stratum_target::read_btrace_conf): ... this.
2680 (process_target::supports_range_stepping): Rename as ...
2681 (process_stratum_target::supports_range_stepping): ... this.
2682 (process_target::supports_pid_to_exec_file): Rename as ...
2683 (process_stratum_target::supports_pid_to_exec_file): ... this.
2684 (process_target::pid_to_exec_file): Rename as ...
2685 (process_stratum_target::pid_to_exec_file): ... this.
2686 (process_target::supports_multifs): Rename as ...
2687 (process_stratum_target::supports_multifs): ... this.
2688 (process_target::multifs_open): Rename as ...
2689 (process_stratum_target::multifs_open): ... this.
2690 (process_target::multifs_unlink): Rename as ...
2691 (process_stratum_target::multifs_unlink): ... this.
2692 (process_target::multifs_readlink): Rename as ...
2693 (process_stratum_target::multifs_readlink): ... this.
2694 (process_target::breakpoint_kind_from_pc): Rename as ...
2695 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2696 (process_target::breakpoint_kind_from_current_state): Rename as ...
2697 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2698 (process_target::thread_name): Rename as ...
2699 (process_stratum_target::thread_name): ... this.
2700 (process_target::thread_handle): Rename as ...
2701 (process_stratum_target::thread_handle): ... this.
2702 (process_target::supports_software_single_step): Rename as ...
2703 (process_stratum_target::supports_software_single_step): ... this.
2704 (process_target::supports_catch_syscall): Rename as ...
2705 (process_stratum_target::supports_catch_syscall): ... this.
2706 (process_target::get_ipa_tdesc_idx): Rename as ...
2707 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2709 2020-02-20 Pedro Alves <palves@redhat.com>
2711 * target.cc (set_target_ops): Simply copy the given target pointer
2712 instead of creating a copy of the pointed object.
2714 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2719 * target.h (struct process_stratum_target): Remove the target op.
2720 (class process_target): Add the target op.
2721 (target_get_ipa_tdesc_idx): Update the macro.
2722 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2724 Update the derived classes and callers below.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_get_ipa_tdesc_idx): Turn into ...
2728 (linux_process_target::get_ipa_tdesc_idx): ... this.
2729 * linux-low.h (class linux_process_target): Update.
2730 * lynx-low.cc (lynx_target_ops): Update.
2731 * nto-low.cc (nto_target_ops): Update.
2732 * win32-low.cc (win32_target_ops): Update.
2734 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736 Turn process_stratum_target's supports_catch_syscall op into a
2737 method of process_target.
2739 * target.h (struct process_stratum_target): Remove the target op.
2740 (class process_target): Add the target op.
2741 (target_supports_catch_syscall): Update the macro.
2742 * target.cc (process_target::supports_catch_syscall): Define.
2744 Update the derived classes and callers below.
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_supports_catch_syscall): Turn into ...
2748 (linux_process_target::supports_catch_syscall): ... this.
2749 * linux-low.h (class linux_process_target): Update.
2750 * lynx-low.cc (lynx_target_ops): Update.
2751 * nto-low.cc (nto_target_ops): Update.
2752 * win32-low.cc (win32_target_ops): Update.
2754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2756 Turn process_stratum_target's supports_software_single_step op
2757 into a method of process_target.
2759 * target.h (struct process_stratum_target): Remove the target op.
2760 (class process_target): Add the target op.
2761 (target_supports_software_single_step): Update the macro.
2762 * target.cc (process_target::supports_software_single_step): Define.
2764 Update the derived classes and callers below.
2766 * linux-low.cc (linux_target_ops): Update.
2767 (linux_supports_software_single_step): Turn into ...
2768 (linux_process_target::supports_software_single_step): ... this.
2769 * linux-low.h (class linux_process_target): Update.
2770 * lynx-low.cc (lynx_target_ops): Update.
2771 * nto-low.cc (nto_target_ops): Update.
2772 * win32-low.cc (win32_target_ops): Update.
2774 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2776 Turn process_stratum_target's thread_name and thread_handle ops
2777 into methods of process_target.
2779 * target.h (struct process_stratum_target): Remove the target ops.
2780 (class process_target): Add the target ops.
2781 (target_thread_name): Update the macro.
2782 (target_thread_handle): Update the macro.
2783 * target.cc (process_target::thread_name): Define.
2784 (process_target::thread_handle): Define.
2786 Update the derived classes and callers below.
2788 * linux-low.cc (linux_target_ops): Update.
2789 (linux_process_target::thread_name): Define.
2790 (linux_process_target::thread_handle): Define.
2791 * linux-low.h (class linux_process_target): Update.
2792 * lynx-low.cc (lynx_target_ops): Update.
2793 * nto-low.cc (nto_target_ops): Update.
2794 * win32-low.cc (win32_target_ops): Update.
2796 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798 Turn process_stratum_target's breakpoint_kind_from_pc,
2799 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2800 ops into methods of process_target.
2802 * target.h (struct process_stratum_target): Remove the target op.
2803 (class process_target): Add the target op.
2804 (target_breakpoint_kind_from_pc): Update the macro.
2805 (target_breakpoint_kind_from_current_state): Update the macro.
2806 (default_breakpoint_kind_from_pc): Remove declaration.
2807 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2808 (process_target::breakpoint_kind_from_pc): ... this.
2809 (process_target::breakpoint_kind_from_current_state): Define.
2811 Update the derived classes and callers below.
2813 * mem-break.cc (bp_size): Update.
2814 (bp_opcode): Update.
2815 * linux-low.cc (linux_target_ops): Update.
2816 (linux_wait_1): Update.
2817 (linux_breakpoint_kind_from_pc): Turn into ...
2818 (linux_process_target::breakpoint_kind_from_pc): ... this.
2819 (linux_sw_breakpoint_from_kind): Turn into ...
2820 (linux_process_target::sw_breakpoint_from_kind): ... this.
2821 (linux_breakpoint_kind_from_current_state): Turn into ...
2822 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2823 * linux-low.h (class linux_process_target): Update.
2824 * lynx-low.cc (lynx_target_ops): Update.
2825 (lynx_process_target::sw_breakpoint_from_kind): Define.
2826 * lynx-low.h (class lynx_process_target): Update.
2827 * nto-low.cc (nto_target_ops): Update.
2828 (nto_sw_breakpoint_from_kind): Turn into ...
2829 (nto_process_target::sw_breakpoint_from_kind): ... this.
2830 * nto-low.h (class nto_process_target): Update.
2831 * win32-low.cc (win32_target_ops): Update.
2832 (win32_sw_breakpoint_from_kind): Turn into ...
2833 (win32_process_target::sw_breakpoint_from_kind): ... this.
2834 * win32-low.h (class win32_process_target): Update.
2836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838 Turn process_stratum_target's multifs_open, multifs_readlink,
2839 multifs_unlink ops into methods of process_target.
2841 * target.h (struct process_stratum_target): Remove the target ops.
2842 (class process_target): Add the target ops. Also add
2844 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2846 (process_target::supports_multifs): Define.
2847 (process_target::multifs_open): Define.
2848 (process_target::multifs_readlink): Define.
2849 (process_target::multifs_unlink): Define.
2851 Update the derived classes and callers below.
2853 * hostio.cc (handle_setfs): Update.
2854 (handle_open): Update.
2855 (handle_unlink): Update.
2856 (handle_readlink): Update.
2857 * linux-low.cc (linux_target_ops): Update.
2858 (linux_process_target::supports_multifs): Define.
2859 (linux_process_target::multifs_open): Define.
2860 (linux_process_target::multifs_readlink): Define.
2861 (linux_process_target::multifs_unlink): Define.
2862 * linux-low.h (class linux_process_target): Update.
2863 * lynx-low.cc (lynx_target_ops): Update.
2864 * nto-low.cc (nto_target_ops): Update.
2865 * win32-low.cc (win32_target_ops): Update.
2867 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2869 Turn process_stratum_target's pid_to_exec_file op into a method
2872 * target.h (struct process_stratum_target): Remove the target op.
2873 (class process_target): Add the target op. Also add
2874 'supports_pid_to_exec_file'.
2875 * target.cc (process_target::pid_to_exec_file): Define.
2876 (process_target::supports_pid_to_exec_file): Define.
2878 Update the derived classes and callers below.
2880 * server.cc (handle_qxfer_exec_file): Update.
2881 (handle_query): Update.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_process_target::supports_pid_to_exec_file): Define.
2884 (linux_process_target::pid_to_exec_file): Define.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892 Turn process_stratum_target's supports_range_stepping op into a
2893 method of process_target.
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op.
2897 (target_supports_range_stepping): Update the macro.
2898 * target.cc (process_target::supports_range_stepping): Define.
2900 Update the derived classes and callers below.
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_supports_range_stepping): Turn into ...
2904 (linux_process_target::supports_range_stepping): ... this.
2905 * linux-low.h (class linux_process_target): Update.
2906 * lynx-low.cc (lynx_target_ops): Update.
2907 * nto-low.cc (nto_target_ops): Update.
2908 * win32-low.cc (win32_target_ops): Update.
2910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912 Turn process_stratum_target's btrace-related ops (enable_btrace,
2913 disable_btrace, read_btrace, read_btrace_conf) into methods of
2916 * target.h (struct process_stratum_target): Remove the target ops.
2917 (class process_target): Add the target ops.
2918 (target_enable_btrace): Update.
2919 (target_disable_btrace): Update.
2920 (target_read_btrace): Update.
2921 (target_read_btrace_conf): Update.
2922 * target.cc (process_target::enable_btrace): Define.
2923 (process_target::disable_btrace): Define.
2924 (process_target::read_btrace): Define.
2925 (process_target::read_btrace_conf): Define.
2927 Update the derived classes and callers below.
2929 * linux-low.cc (linux_target_ops): Update.
2930 (linux_process_target:enable_btrace): Define as a wrapper around
2931 linux_enable_btrace.
2932 (linux_low_disable_btrace): Turn into ...
2933 (linux_process_target::disable_btrace): ... this.
2934 (linux_low_read_btrace): Turn into ...
2935 (linux_process_target::read_btrace): ... this.
2936 (linux_low_btrace_conf): Turn into ...
2937 (linux_process_target::read_btrace_conf): ... 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 supports_agent op into a method of
2948 * target.h (struct process_stratum_target): Remove the target op.
2949 (class process_target): Add the target op.
2950 (target_supports_agent): Update the macro.
2951 * target.cc (process_target::supports_agent): Define.
2953 Update the derived classes and callers below.
2955 * linux-low.cc (linux_target_ops): Update.
2956 (linux_supports_agent): Turn into ...
2957 (linux_process_target::supports_agent): ... this.
2958 * linux-low.h (class linux_process_target): Update.
2959 * lynx-low.cc (lynx_target_ops): Update.
2960 * nto-low.cc (nto_target_ops): Update.
2961 * win32-low.cc (win32_target_ops): Update.
2963 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2966 method of process_target.
2968 * target.h (struct process_stratum_target): Remove the target op.
2969 (class process_target): Add the target op. Also add
2970 'supports_qxfer_libraries_svr4'.
2971 * target.cc (process_target::qxfer_libraries_svr4): Define.
2972 (process_target::supports_qxfer_libraries_svr4): Define.
2974 Update the derived classes and callers below.
2976 * server.cc (handle_qxfer_libraries_svr4): Update.
2977 (handle_query): Update.
2978 * linux-low.cc (linux_target_ops): Update.
2979 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2980 (linux_qxfer_libraries_svr4): Turn into ...
2981 (linux_process_target::qxfer_libraries_svr4): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 Turn process_stratum_target's supports_disable_randomization op
2990 into a method of process_target.
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994 (target_supports_disable_randomization): Update the macro.
2995 * target.cc (process_target::supports_disable_randomization): Define.
2997 Update the derived classes and callers below.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_supports_disable_randomization): Turn into ...
3001 (linux_process_target::supports_disable_randomization): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009 Turn process_stratum_target's emit_ops op into a method of
3012 * target.h (struct process_stratum_target): Remove the target op.
3013 (class process_target): Add the target op.
3014 (target_emit_ops): Update the macro.
3015 * target.cc (process_target::emit_ops): Define.
3017 Update the derived classes and callers below.
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_emit_ops): Turn into ...
3021 (linux_process_target::emit_ops): ... this.
3022 * linux-low.h (class linux_process_target): Update.
3023 * lynx-low.cc (lynx_target_ops): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 * win32-low.cc (win32_target_ops): Update.
3027 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3029 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3030 and get_min_fast_tracepoint_insn_len ops into methods of
3033 * target.h (struct process_stratum_target): Remove the target ops.
3034 (class process_target): Add the target ops. Also add
3035 'supports_fast_tracepoints'.
3036 (target_supports_fast_tracepoints): Update the macro.
3037 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3038 (install_fast_tracepoint_jump_pad): Update and rename the macro
3040 (target_install_fast_tracepoint_jump_pad): ... this.
3041 * target.cc (process_target::supports_fast_tracepoints): Define.
3042 (process_target::install_fast_tracepoint_jump_pad): Define.
3043 (process_target::get_min_fast_tracepoint_insn_len): Define.
3045 Update the derived classes and callers below.
3047 * tracepoint.cc (install_fast_tracepoint): Update.
3048 * linux-low.cc (linux_target_ops): Update.
3049 (linux_process_target::supports_fast_tracepoints): Define.
3050 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3051 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3052 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3053 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3054 * linux-low.h (class linux_process_target): Update.
3055 * lynx-low.cc (lynx_target_ops): Update.
3056 * nto-low.cc (nto_target_ops): Update.
3057 * win32-low.cc (win32_target_ops): Update.
3059 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3061 Turn process_stratum_target's stabilize_threads op into a
3062 method of process_target.
3064 * target.h (struct process_stratum_target): Remove the target op.
3065 (class process_target): Add the target op.
3066 (target_stabilize_threads): Update the macro.
3067 * target.cc (process_target::stabilize_threads): Define.
3069 Update the derived classes and callers below.
3071 * server.cc (handle_status): Update.
3072 * tracepoint.cc (cmd_qtdp): Update.
3073 (cmd_qtstart): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_stabilize_threads): Turn into ...
3076 (linux_process_target::stabilize_threads): ... this.
3077 (linux_wait_1): Update.
3078 * linux-low.h (class linux_process_target): Update.
3079 * lynx-low.cc (lynx_target_ops): Update.
3080 * nto-low.cc (nto_target_ops): Update.
3081 * win32-low.cc (win32_target_ops): Update.
3083 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085 Turn process_stratum_target's pause_all and unpause_all ops
3086 into methods of process_target.
3088 * target.h (struct process_stratum_target): Remove the target ops.
3089 (class process_target): Add the target ops.
3090 (pause_all): Update the macro and rename to...
3091 (target_pause_all): ... this.
3092 (unpause_all): Update the macro and rename to...
3093 (target_unpause_all): ... this.
3094 * target.cc (process_target::pause_all): Define.
3095 (process_target::unpause_all): Define.
3097 Update the derived classes and callers below.
3099 * server.cc (handle_status): Update.
3100 * tracepoint.cc (clear_installed_tracepoints): Update.
3102 (cmd_qtstart): Update.
3103 (stop_tracing): Update.
3104 (cmd_qtstatus): Update.
3105 (upload_fast_traceframes): Update.
3106 (run_inferior_command): Update.
3107 * linux-low.cc (linux_target_ops): Update.
3108 (linux_pause_all): Turn into ...
3109 (linux_process_target::pause_all): ... this.
3110 (linux_unpause_all): Turn into ...
3111 (linux_process_target::unpause_all): ... this.
3112 (linux_process_target::prepare_to_access_memory): Update.
3113 (linux_process_target::done_accessing_memory): Update.
3114 * linux-low.h (class linux_process_target): Update.
3115 * lynx-low.cc (lynx_target_ops): Update.
3116 * nto-low.cc (nto_target_ops): Update.
3117 * win32-low.cc (win32_target_ops): Update.
3119 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121 Turn process_stratum_target's get_tib_address op into a method of
3124 * target.h (struct process_stratum_target): Remove the target op.
3125 (class process_target): Add the target op. Also add
3126 'supports_get_tib_address'.
3127 * target.cc (process_target::get_tib_address): Define.
3128 (process_target::supports_get_tib_address): Define.
3130 Update the derived classes and callers below.
3132 * server.cc (handle_query): Update.
3133 * linux-low.cc (win32_target_ops): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 * nto-low.cc (nto_target_ops): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3137 (win32_process_target::supports_get_tib_address): Define.
3138 (win32_get_tib_address): Turn into ...
3139 (win32_process_target::get_tib_address): ... this.
3140 * win32-low.h (class win32_process_target): Update.
3142 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3144 Turn process_stratum_target's thread_stopped op into a method of
3147 * target.h (struct process_stratum_target): Remove the target op.
3148 (class process_target): Add the target op. Also add
3149 'supports_thread_stopped'.
3150 (target_thread_stopped): Update the macro.
3151 * target.cc (process_target::thread_stopped): Define.
3152 (process_target::supports_thread_stopped): Define.
3153 (prepare_to_access_memory): Update.
3155 Update the derived classes and callers below.
3157 * server.cc (queue_stop_reply_callback): Update.
3158 * linux-low.cc (linux_target_ops): Update.
3159 (linux_process_target::supports_thread_stopped): Define.
3160 (linux_thread_stopped): Turn into ...
3161 (linux_process_target::thread_stopped): ... this.
3162 * linux-low.h (class linux_process_target): Update.
3163 * lynx-low.cc (lynx_target_ops): Update.
3164 * nto-low.cc (nto_target_ops): Update.
3165 * win32-low.cc (win32_target_ops): Update.
3167 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169 Turn process_stratum_target's read_pc and write_pc ops into
3170 methods of process_target.
3172 * target.h (struct process_stratum_target): Remove the target ops.
3173 (class process_target): Add the target ops.
3174 * target.cc (process_target::read_pc): Define.
3175 (process_target::write_pc): Define.
3177 Update the derived classes and callers below.
3179 * regcache.cc (regcache_read_pc): Update.
3180 (regcache_write_pc): Update.
3181 * linux-low.cc (linux_target_ops): Update.
3182 (linux_read_pc): Turn into ...
3183 (linux_process_target::read_pc): ... this.
3184 (linux_write_pc): Turn into ...
3185 (linux_process_target::write_pc): ... this.
3186 * linux-low.h (class linux_process_target): Update.
3187 * lynx-low.cc (lynx_target_ops): Update.
3188 * nto-low.cc (nto_target_ops): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3191 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3193 Turn process_stratum_target's supports_tracepoints op into a
3194 method of process_target.
3196 * target.h (struct process_stratum_target): Remove the target op.
3197 (class process_target): Add the target op.
3198 (target_supports_tracepoints): Update the macro.
3199 * target.cc (process_target::supports_tracepoints): Define.
3201 Update the derived classes and callers below.
3203 * linux-low.cc (linux_target_ops): Update.
3204 (linux_supports_tracepoints): Turn into ...
3205 (linux_process_target::supports_tracepoints): ... this.
3206 * linux-low.h (class linux_process_target): Update.
3207 * lynx-low.cc (lynx_target_ops): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 * win32-low.cc (win32_target_ops): Update.
3211 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213 Turn process_stratum_target's process_qsupported op into a method
3216 * target.h (struct process_stratum_target): Remove the target op.
3217 (class process_target): Add the target op.
3218 (target_process_qsupported): Update the macro.
3219 * target.cc (process_target::process_qsupported): Define.
3221 Update the derived classes and callers below.
3223 * linux-low.cc (linux_target_ops): Update.
3224 (linux_process_qsupported): Turn into ...
3225 (linux_process_target::process_qsupported): ... this.
3226 * linux-low.h (class linux_process_target): Update.
3227 * lynx-low.cc (lynx_target_ops): Update.
3228 * nto-low.cc (nto_target_ops): Update.
3229 * win32-low.cc (win32_target_ops): Update.
3231 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3233 Turn process_stratum_target's read_loadmap op into a method of
3236 * target.h (struct process_stratum_target): Remove the target op.
3237 (class process_target): Add the target op. Also add
3238 'supports_read_loadmap'.
3239 * target.cc (process_target::read_loadmap): Define.
3240 (process_target::supports_read_loadmap): Define.
3242 Update the derived classes and callers below.
3244 * server.cc (handle_qxfer_fdpic): Update.
3245 (handle_query): Update.
3246 * linux-low.cc (linux_target_ops): Update.
3247 (linux_process_target::supports_read_loadmap): Define.
3248 (linux_read_loadmap): Turn into ...
3249 (linux_process_target::read_loadmap): ... this.
3250 * linux-low.h (class linux_process_target): Update.
3251 * lynx-low.cc (lynx_target_ops): Update.
3252 * nto-low.cc (nto_target_ops): Update.
3253 * win32-low.cc (win32_target_ops): Update.
3255 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3257 Turn process_stratum_target's core_of_thread op into a method of
3260 * target.h (struct process_stratum_target): Remove the target op.
3261 (class process_target): Add the target op.
3262 (target_core_of_thread): Update the macro.
3263 * target.cc (process_target::core_of_thread): Define.
3265 Update the derived classes and callers below.
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_process_target::core_of_thread): Define.
3269 * linux-low.h (class linux_process_target): Update.
3270 * lynx-low.cc (lynx_target_ops): Update.
3271 * nto-low.cc (nto_target_ops): Update.
3272 * win32-low.cc (win32_target_ops): Update.
3274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276 Turn process_stratum_target's handle_monitor_command op into a
3277 method of process_target.
3279 * target.h (struct process_stratum_target): Remove the target op.
3280 (class process_target): Add the target op.
3281 (target_handle_monitor_command): Update the macro.
3282 * target.cc (process_target::handle_monitor_command): Define.
3284 Update the derived classes and callers below.
3286 * server.cc (handle_query): Update.
3287 * linux-low.cc (linux_target_ops): Update.
3288 (linux_process_target::handle_monitor_command): Define.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296 Turn process_stratum_target's handle_new_gdb_connection op into a
3297 method of process_target.
3299 * target.h (struct process_stratum_target): Remove the target op.
3300 (class process_target): Add the target op.
3301 (target_handle_new_gdb_connection): Update the macro.
3302 * target.cc (process_target::handle_new_gdb_connection): Define.
3304 Update the derived classes and callers below.
3306 * linux-low.cc (linux_target_ops): Update.
3307 (linux_handle_new_gdb_connection): Turn into ...
3308 (linux_process_target::handle_new_gdb_connection): ... this.
3309 * linux-low.h (class linux_process_target): Update.
3310 * lynx-low.cc (lynx_target_ops): Update.
3311 * nto-low.cc (nto_target_ops): Update.
3312 * win32-low.cc (win32_target_ops): Update.
3314 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3316 Turn process_stratum_target's supports_fork_events,
3317 supports_vfork_events, and supports_exec_events ops into methods
3320 * target.h (struct process_stratum_target): Remove the target ops.
3321 (class process_target): Add the target ops.
3322 (target_supports_fork_events): Update the macro.
3323 (target_supports_vfork_events): Update the macro.
3324 (target_supports_exec_events): Update the macro.
3325 * target.cc (process_target::supports_fork_events): Define.
3326 (process_target::supports_vfork_events): Define.
3327 (process_target::supports_exec_events): Define.
3329 Update the derived classes and callers below.
3331 * linux-low.cc (linux_target_ops): Update.
3332 (linux_supports_fork_events): Turn into ...
3333 (linux_process_target::supports_fork_events): ... this.
3334 (linux_supports_vfork_events): Turn into ...
3335 (linux_process_target::supports_vfork_events): ... this.
3336 (linux_supports_exec_events): Turn into ...
3337 (linux_process_target::supports_exec_events): ... this.
3338 * linux-low.h (class linux_process_target): Update.
3339 * lynx-low.cc (lynx_target_ops): Update.
3340 * nto-low.cc (nto_target_ops): Update.
3341 * win32-low.cc (win32_target_ops): Update.
3343 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3345 Turn process_stratum_target's supports_multi_process op into a
3346 method of process_target.
3348 * target.h (struct process_stratum_target): Remove the target op.
3349 (class process_target): Add the target op.
3350 * target.cc (process_target::supports_multi_process): Define.
3351 (target_supports_multi_process): Update.
3353 Update the derived classes and callers below.
3355 * linux-low.cc (linux_target_ops): Update.
3356 (linux_supports_multi_process): Turn into ...
3357 (linux_process_target::supports_multi_process): ... this.
3358 * linux-low.h (class linux_process_target): Update.
3359 * lynx-low.cc (lynx_target_ops): Update.
3360 * nto-low.cc (nto_target_ops): Update.
3361 * win32-low.cc (win32_target_ops): Update.
3363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365 Turn process_stratum_target's supports_non_stop, async, and
3366 start_non_stop ops into methods of process_target.
3368 * target.h (struct process_stratum_target): Remove the target ops.
3369 (class process_target): Add the target ops.
3370 (target_supports_non_stop): Update the macro.
3371 (target_async): Update the macro.
3372 (start_non_stop): Remove declaration.
3373 * target.cc (process_target::supports_non_stop): Define.
3374 (process_target::async): Define.
3375 (process_target::start_non_stop): Define.
3376 (start_non_stop): Remove.
3378 Update the derived classes and callers below.
3380 * server.cc (handle_qxfer_siginfo): Update.
3381 (handle_query): Update.
3382 * linux-low.cc (linux_target_ops): Update.
3383 (linux_supports_non_stop): Turn into ...
3384 (linux_process_target::supports_non_stop): ... this.
3385 (linux_async): Turn into ...
3386 (linux_process_target::async): ... this.
3387 (linux_start_non_stop): Turn into ...
3388 (linux_process_target::start_non_stop): ... this.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 * nto-low.cc (nto_target_ops): Update.
3392 (nto_supports_non_stop): Remove; rely on the default behavior
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 qxfer_siginfo op into a method of
3401 * target.h (struct process_stratum_target): Remove the target op.
3402 (class process_target): Add the target op. Also add
3403 'supports_qxfer_siginfo'.
3404 * target.cc (process_target::qxfer_siginfo): Define.
3405 (process_target::supports_qxfer_siginfo): Define.
3407 Update the derived classes and callers below.
3409 * server.cc (handle_qxfer_siginfo): Update.
3410 (handle_query): Update.
3411 * linux-low.cc (linux_target_ops): Update.
3412 (linux_process_target::supports_qxfer_siginfo): Define.
3413 (linux_xfer_siginfo): Turn into ...
3414 (linux_process_target::qxfer_siginfo): ... this.
3415 * linux-low.h (class linux_process_target): Update.
3416 * lynx-low.cc (lynx_target_ops): Update.
3417 * nto-low.cc (nto_target_ops): Update.
3418 * win32-low.cc (win32_target_ops): Update.
3420 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3422 Turn process_stratum_target's qxfer_osdata op into a method of
3425 * target.h (struct process_stratum_target): Remove the target op.
3426 (class process_target): Add the target op. Also add
3427 'supports_qxfer_osdata'.
3428 * target.cc (process_target::qxfer_osdata): Define.
3429 (process_target::supports_qxfer_osdata): Define.
3431 Update the derived classes and callers below.
3433 * server.cc (handle_qxfer_osdata): Update.
3434 (handle_query): Update.
3435 * linux-low.cc (linux_target_ops): Update.
3436 (linux_process_target::supports_qxfer_osdata): Define.
3437 (linux_qxfer_osdata): Turn into ...
3438 (linux_process_target::qxfer_osdata): ... this.
3439 * linux-low.h (class linux_process_target): Update.
3440 * lynx-low.cc (lynx_target_ops): Update.
3441 * nto-low.cc (nto_target_ops): Update.
3442 * win32-low.cc (win32_target_ops): Update.
3444 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3446 Turn process_stratum_target's hostio_last_error op into a
3447 method of process_target.
3449 * target.h (struct process_stratum_target): Remove the target op.
3450 (class process_target): Add the target op.
3451 * target.cc: Add "hostio.h" to includes.
3452 (process_target::hostio_last_error): Define.
3454 Update the derived classes and callers below.
3456 * hostio.cc (hostio_error): Update.
3457 * linux-low.cc: Remove "hostio.h" from includes.
3458 (linux_target_ops): Update.
3459 * lynx-low.cc (lynx_target_ops): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 * win32-low.h (class win32_process_target): Update.
3462 * win32-low.cc (win32_target_ops): Update.
3463 (wince_hostio_last_error): Turn into ...
3464 (win32_process_target::hostio_last_error): ... this.
3466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468 Turn process_stratum_target's get_tls_address op into a method of
3471 * target.h (struct process_stratum_target): Remove the target op.
3472 (class process_target): Add the target op. Also add
3473 'supports_get_tls_address'.
3474 * target.cc (process_target::get_tls_address): Define.
3475 (process_target::supports_get_tls_address): Define.
3477 Update the derived classes and callers below.
3479 * server.cc (handle_query): Update.
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_process_target::supports_get_tls_address): Define.
3482 (linux_process_target::get_tls_address): Define.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490 Turn process_stratum_target's read_offsets op into a method of
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op. Also add
3495 'supports_read_offsets'.
3496 * target.cc (process_target::read_offsets): Define.
3497 (process_target::supports_read_offsets): Define.
3499 Update the derived classes and callers below.
3501 * server.cc (handle_query): Update.
3502 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3503 (linux_target_ops): Update.
3504 (linux_process_target::supports_read_offsets): Define.
3505 (linux_read_offsets): Turn into ...
3506 (linux_process_target::read_offsets): ... this.
3507 * linux-low.h (class linux_process_target): Update.
3508 * lynx-low.cc (lynx_target_ops): Update.
3509 * nto-low.cc (nto_target_ops): Update.
3510 * win32-low.cc (win32_target_ops): Update.
3512 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514 Turn process_stratum_target's stopped_by_watchpoint and
3515 stopped_data_address ops into methods of process_target.
3517 * target.h (struct process_stratum_target): Remove the target ops.
3518 (class process_target): Add the target ops.
3519 * target.cc (process_target::stopped_by_watchpoint): Define.
3520 (process_target::stopped_data_address): Define.
3522 Update the derived classes and callers below.
3524 * remote-utils.cc (prepare_resume_reply): Update.
3525 * linux-low.cc (linux_target_ops): Update.
3526 (linux_stopped_by_watchpoint): Turn into ...
3527 (linux_process_target::stopped_by_watchpoint): ... this.
3528 (linux_stopped_data_address): Turn into ...
3529 (linux_process_target::stopped_data_address): ... this.
3530 * linux-low.h (class linux_process_target): Update.
3531 * lynx-low.cc (lynx_target_ops): Update.
3532 * nto-low.cc (nto_target_ops): Update.
3533 (nto_stopped_by_watchpoint): Turn into ...
3534 (nto_process_target::stopped_by_watchpoint): ... this.
3535 (nto_stopped_data_address): Turn into ...
3536 (nto_process_target::stopped_data_address): ... this.
3537 * nto-low.h (class nto_process_target): Update.
3538 * win32-low.cc (win32_target_ops): Update.
3539 (win32_stopped_by_watchpoint): Turn into ...
3540 (win32_process_target::stopped_by_watchpoint): ... this.
3541 (win32_stopped_data_address): Turn into ...
3542 (win32_process_target::stopped_data_address): ... this.
3543 * win32-low.h (class win32_process_target): Update.
3545 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3547 Turn process_stratum_target's supports_hardware_single_step op into
3548 a method of process_target.
3550 * target.h (struct process_stratum_target): Remove the target op.
3551 (class process_target): Add the target op.
3552 (target_supports_hardware_single_step): Update the macro.
3553 (target_can_do_hardware_single_step): Remove declaration.
3554 * target.cc (process_target::supports_hardware_single_step): Define.
3555 (target_can_do_hardware_single_step): Remove.
3557 Update the derived classes and callers below.
3559 * linux-low.h (class linux_process_target): Update.
3560 * linux-low.cc (linux_target_ops): Update.
3561 (linux_supports_hardware_single_step): Turn into ...
3562 (linux_process_target::supports_hardware_single_step): ... this.
3563 * lynx-low.h (class lynx_process_target): Update.
3564 * lynx-low.cc (lynx_target_ops): Update.
3565 (lynx_process_target::supports_hardware_single_step): Define.
3566 * nto-low.h (class nto_process_target): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 (nto_process_target::supports_hardware_single_step): Define.
3569 * win32-low.h (class win32_process_target): Update.
3570 * win32-low.cc (win32_target_ops): Update.
3571 (win32_process_target::supports_hardware_single_step): Define.
3573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3576 ops into methods of process_target.
3578 * target.h (struct process_stratum_target): Remove the target ops.
3579 (class process_target): Add the target ops.
3580 (target_stopped_by_hw_breakpoint): Update the macro.
3581 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3582 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3583 (process_target::supports_stopped_by_hw_breakpoint): Define.
3585 Update the derived classes and callers below.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_stopped_by_hw_breakpoint): Turn into ...
3589 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3590 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3591 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3592 * linux-low.h (class linux_process_target): Update.
3593 * lynx-low.cc (lynx_target_ops): Update.
3594 * nto-low.cc (nto_target_ops): Update.
3595 * win32-low.cc (win32_target_ops): Update.
3597 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3599 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3600 ops into methods of process_target.
3602 * target.h (struct process_stratum_target): Remove the target ops.
3603 (class process_target): Add the target ops.
3604 (target_stopped_by_sw_breakpoint): Update the macro.
3605 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3606 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3607 (process_target::supports_stopped_by_sw_breakpoint): Define.
3609 Update the derived classes and callers below.
3611 * linux-low.cc (linux_target_ops): Update.
3612 (linux_stopped_by_sw_breakpoint): Turn into ...
3613 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3614 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3615 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3616 * linux-low.h (class linux_process_target): Update.
3617 * lynx-low.cc (lynx_target_ops): Update.
3618 * nto-low.cc (nto_target_ops): Update.
3619 * win32-low.cc (win32_target_ops): Update.
3621 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3623 Turn process_stratum_target's insert_point and remove_point ops
3624 into methods of process_target.
3626 * target.h (struct process_stratum_target): Remove the target ops.
3627 (class process_target): Add the target ops.
3628 * target.cc (process_target::insert_point): Define.
3629 (process_target::remove_point): Define.
3631 Update the derived classes and callers below.
3633 * mem-break.cc (set_raw_breakpoint_at): Update.
3634 (delete_raw_breakpoint): Update.
3635 (uninsert_raw_breakpoint): Update.
3636 (reinsert_raw_breakpoint): Update.
3637 * linux-low.cc (linux_target_ops): Update.
3638 (linux_insert_point): Turn into ...
3639 (linux_process_target::insert_point): ... this.
3640 (linux_remove_point): Turn into ...
3641 (linux_process_target::remove_point): ... this.
3642 * linux-low.h (class linux_process_target): Update.
3643 * lynx-low.cc (lynx_target_ops): Update.
3644 * nto-low.cc (nto_target_ops): Update.
3645 (nto_insert_point): Turn into ...
3646 (nto_process_target::insert_point): ... this.
3647 (nto_remove_point): Turn into ...
3648 (nto_process_target::remove_point): ... this.
3649 * nto-low.h (class nto_process_target): Update.
3650 * win32-low.cc (win32_target_ops): Update.
3651 (win32_insert_point): Turn into ...
3652 (win32_process_target::insert_point): ... this.
3653 (win32_remove_point): Turn into ...
3654 (win32_process_target::remove_point): ... this.
3655 * win32-low.h (class win32_process_target): Update.
3657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3659 Turn process_stratum_target's supports_z_point_type op into a
3660 method of process_target.
3662 * target.h (struct process_stratum_target): Remove the target op.
3663 (class process_target): Add the target op.
3664 * target.cc (process_target::supports_z_point_type): Define.
3666 Update the derived classes and callers below.
3668 * mem-break.cc (z_type_supported): Update.
3669 * linux-low.cc (linux_target_ops): Update.
3670 (linux_supports_z_point_type): Turn into ...
3671 (linux_process_target::supports_z_point_type): ... this.
3672 * linux-low.h (class linux_process_target): Update.
3673 * lynx-low.cc (lynx_target_ops): Update.
3674 * nto-low.cc (nto_target_ops): Update.
3675 (nto_supports_z_point_type): Turn into ...
3676 (nto_process_target::supports_z_point_type): ... this.
3677 * nto-low.h (class nto_process_target): Update.
3678 * win32-low.cc (win32_target_ops): Update.
3679 (win32_supports_z_point_type): Turn into ...
3680 (win32_process_target::supports_z_point_type): ... this.
3681 * win32-low.h (class win32_process_target): Update.
3683 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3685 Turn process_stratum_target's read_auxv op into a method of
3688 * target.h (class process_stratum_target): Remove the target op.
3689 (struct process_target): Add the target op. Also add
3690 'supports_read_auxv'.
3691 * target.cc (process_target::read_auxv): Define.
3692 (process_target::supports_read_auxv): Define.
3694 Update the derived classes and callers below.
3696 * server.cc (handle_qxfer_auxv): Update.
3697 (handle_query): Update.
3698 * linux-low.cc (linux_target_ops): Update.
3699 (linux_process_target::supports_read_auxv): Define.
3700 (linux_read_auxv): Turn into ...
3701 (linux_process_target::read_auxv): ... this.
3702 * linux-low.h (class linux_process_target): Update.
3703 * lynx-low.cc (lynx_target_ops): Update.
3704 * nto-low.cc (nto_target_ops): Update.
3705 (nto_process_target::supports_read_auxv): Define.
3706 (nto_read_auxv): Turn into ...
3707 (nto_process_target::read_auxv): ... this.
3708 * nto-low.h (class nto_process_target): Update.
3709 * win32-low.cc (win32_target_ops): Update.
3711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713 Turn process_stratum_target's request_interrupt op into a method of
3716 * target.h (struct process_stratum_target): Remove the target op.
3717 (class process_target): Add the target op.
3719 Update the derived classes and callers below.
3721 * remote-utils.cc (putpkt_binary_1): Update.
3722 (input_interrupt): Update.
3724 * server.cc (handle_v_requests): Update.
3725 * linux-low.cc (linux_target_ops): Update.
3726 (linux_request_interrupt): Turn into ...
3727 (linux_process_target::request_interrupt): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 (lynx_request_interrupt): Turn into ...
3731 (lynx_process_target::request_interrupt): ... this.
3732 * lynx-low.h (class lynx_process_target): Update.
3733 * nto-low.cc (nto_target_ops): Update.
3734 (nto_request_interrupt): Turn into ...
3735 (nto_process_target::request_interrupt): ... this.
3736 * nto-low.h (class nto_process_target): Update.
3737 * win32-low.cc (win32_target_ops): Update.
3738 (win32_request_interrupt): Turn into ...
3739 (win32_process_target::request_interrupt): ... this.
3740 * win32-low.h (class win32_process_target): Update.
3742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3744 Turn process_stratum_target's look_up_symbols op into a method of
3747 * target.h (struct process_stratum_target): Remove the target op.
3748 (class process_target): Add the target op.
3749 * target.cc (process_target::look_up_symbols): Define.
3751 Update the derived classes and callers below.
3753 * server.cc (handle_query): Update.
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_look_up_symbols): Turn into ...
3756 (linux_process_target::look_up_symbols): ... this.
3757 * linux-low.h (class linux_process_target): Update.
3758 * lynx-low.cc (lynx_target_ops): Update.
3759 * nto-low.cc (nto_target_ops): Update.
3760 * win32-low.cc (win32_target_ops): Update.
3762 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3764 Turn process_stratum_target's read_memory and write_memory
3765 ops into methods of process_target.
3767 * target.h (struct process_stratum_target): Remove the target ops.
3768 (class process_target): Add the target ops.
3770 Update the derived classes and callers below.
3772 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3773 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3774 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3775 (arm_get_syscall_trapinfo): Update.
3776 * linux-cris-low.cc (cris_breakpoint_at): Update.
3777 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3778 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3779 * linux-mips-low.cc (mips_breakpoint_at): Update.
3780 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3781 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3782 * linux-sh-low.cc (sh_breakpoint_at): Update.
3783 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3784 (sparc_store_gregset_from_stack): Update.
3785 (sparc_breakpoint_at): Update.
3786 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3787 * linux-tile-low.cc (tile_breakpoint_at): Update.
3788 * linux-x86-low.cc (x86_breakpoint_at): Update.
3789 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3790 * mem-brea.cc (insert_memory_breakpoint): Update.
3791 (validate_inserted_breakpoint): Update.
3792 * target.cc (read_inferior_memory): Update.
3793 (target_write_memory): Update.
3794 * linux-low.cc (linux_target_ops): Update.
3795 (linux_read_memory): Make a wrapper around the read_memory target
3797 (linux_process_target::read_memory): Rename from linux_read_memory.
3798 (linux_write_memory): Turn into ...
3799 (linux_process_target::write_memory): ... this.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 (lynx_read_memory): Turn into ...
3803 (lynx_process_target::read_memory): ... this.
3804 (lynx_write_memory): Turn into ...
3805 (lynx_process_target::write_memory): ... this.
3806 * lynx-low.h (class lynx_process_target): Update.
3807 * nto-low.cc (nto_target_ops): Update.
3808 (nto_read_memory): Turn into ...
3809 (nto_process_target::read_memory): ... this.
3810 (nto_write_memory): Turn into ...
3811 (nto_process_target::write_memory): ... this.
3812 * nto-low.h (class nto_process_target): Update.
3813 * win32-low.cc (win32_target_ops): Update.
3814 (win32_read_inferior_memory): Turn into ...
3815 (win32_process_target::read_memory): ... this.
3816 (win32_write_inferior_memory): Turn into ...
3817 (win32_process_target::write_memory): ... this.
3818 * win32-low.h (class win32_process_target): Update.
3820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3822 Turn process_stratum_target's prepare_to_access_memory and
3823 done_accessing_memory ops into methods of process_target.
3825 * target.h (struct process_stratum_target): Remove the target ops.
3826 (class process_target): Add the target ops.
3827 * target.cc (process_target::prepare_to_access_memory): Define.
3828 (process_target::done_accessing_memory): Define.
3829 (prepare_to_access_memory): Update.
3830 (done_accessing_memory): Update.
3832 Update the derived classes and callers below.
3834 * linux-low.cc (linux_target_ops): Update.
3835 (linux_prepare_to_access_memory): Turn into ...
3836 (linux_process_target::prepare_to_access_memory): ... this.
3837 (linux_done_accessing_memory): Turn into ...
3838 (linux_process_target::done_accessing_memory): ... this.
3839 * linux-low.h (class linux_process_target): Update.
3840 * lynx-low.cc (lynx_target_ops): Update.
3841 * nto-low.cc (nto_target_ops): Update.
3842 * win32-low.cc (win32_target_ops): Update.
3844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846 Turn process_stratum_target's fetch_registers and store_registers
3847 ops into methods of process_target.
3849 * target.h (struct process_stratum_target): Remove the target ops.
3850 (class process_target): Add the target ops.
3851 (fetch_inferior_registers): Update the macro.
3852 (store_inferior_registers): Update the macro.
3854 Update the derived classes and callers below.
3856 * linux-low.cc (linux_target_ops): Update.
3857 (linux_fetch_registers): Turn into ...
3858 (linux_process_target::fetch_registers): ... this.
3859 (linux_store_registers): Turn into ...
3860 (linux_process_target::store_registers): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_fetch_registers): Turn into ...
3864 (lynx_process_target::fetch_registers): ... this.
3865 (lynx_store_registers): Turn into ...
3866 (lynx_process_target::store_registers): ... this.
3867 * lynx-low.h (class lynx_process_target): Update.
3868 * nto-low.cc (nto_target_ops): Update.
3869 (nto_fetch_registers): Turn into ...
3870 (nto_process_target::fetch_registers): ... this.
3871 (nto_store_registers): Turn into ...
3872 (nto_process_target::store_registers): ... this.
3873 * nto-low.h (class nto_process_target): Update.
3874 * win32-low.cc (win32_target_ops): Update.
3875 (win32_fetch_inferior_registers): Turn into ...
3876 (win32_process_target::fetch_registers): ... this.
3877 (win32_store_inferior_registers): Turn into ...
3878 (win32_process_target::store_registers): ... this.
3879 * win32-low.h (class win32_process_target): Update.
3881 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883 Turn process_stratum_target's wait op into a method of
3886 * target.h (struct process_stratum_target): Remove the target op.
3887 (class process_target): Add the target op.
3889 Update the derived classes and callers below.
3891 * target.cc (target_wait): Update.
3892 * linux-low.cc (linux_target_ops): Update.
3893 (linux_wait): Turn into ...
3894 (linux_process_target::wait): ... this.
3895 * linux-low.h (class linux_process_target): Update.
3896 * lynx-low.cc (lynx_target_ops): Update.
3897 (lynx_wait): Turn into ...
3898 (lynx_process_target::wait): ... this.
3899 * lynx-low.h (class lynx_process_target): Update.
3900 * nto-low.cc (nto_target_ops): Update.
3901 (nto_wait): Turn into ...
3902 (nto_process_target::wait): ... this.
3903 * nto-low.h (class nto_process_target): Update.
3904 * win32-low.cc (win32_target_ops): Update.
3905 (win32_wait): Turn into ...
3906 (win32_process_target::wait): ... this.
3907 (do_initial_child_stuff): Update.
3908 * win32-low.h (class win32_process_target): Update.
3910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912 Turn process_stratum_target's resume op into a method of
3915 * target.h (struct process_stratum_target): Remove the target op.
3916 (class process_target): Add the target op.
3918 Update the derived classes and callers below.
3920 * server.cc (resume): Update.
3921 * target.cc (target_stop_and_wait): Update.
3922 (target_continue_no_signal): Update.
3923 (target_continue): Update.
3924 * linux-low.cc (linux_target_ops): Update.
3925 (linux_resume): Turn into ...
3926 (linux_process_target::resume): ... this.
3927 * linux-low.h (class linux_process_target): Update.
3928 * lynx-low.cc (lynx_target_ops): Update.
3929 (lynx_resume): Turn into ...
3930 (lynx_process_target::resume): ... this.
3931 * lynx-low.h (class lynx_process_target): Update.
3932 * nto-low.cc (nto_target_ops): Update.
3933 (nto_resume): Turn into ...
3934 (nto_process_target::resume): ... this.
3935 * nto-low.h (class nto_process_target): Update.
3936 * win32-low.cc (win32_target_ops): Update.
3937 (win32_resume): Turn into ...
3938 (win32_process_target::resume): ... this.
3939 (win32_process_target::detach): Update.
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 thread_alive op into a method of
3948 * target.h (struct process_stratum_target): Remove the target op.
3949 (class process_target): Add the target op.
3950 (mythread_alive): Update the macro.
3952 Update the derived classes and callers below.
3954 * linux-low.cc (linux_target_ops): Update.
3955 (linux_thread_alive): Turn into ...
3956 (linux_process_target::thread_alive): ... this.
3957 (wait_for_sigstop): Update.
3958 * linux-low.h (class linux_process_target): Update.
3959 * lynx-low.cc (lynx_target_ops): Update.
3960 (lynx_thread_alive): Turn into ...
3961 (lynx_process_target::thread_alive): ... this.
3962 * lynx-low.h (class lynx_process_target): Update.
3963 * nto-low.cc (nto_target_ops): Update.
3964 (nto_thread_alive): Turn into ...
3965 (nto_process_target::thread_alive): ... this.
3966 * nto-low.h (class nto_process_target): Update.
3967 * win32-low.cc (win32_target_ops): Update.
3968 (win32_thread_alive): Turn into ...
3969 (win32_process_target::thread_alive): ... this.
3970 * win32-low.h (class win32_process_target): Update.
3972 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3974 Turn process_stratum_target's join op into a method of
3977 * target.h (struct process_stratum_target): Remove the target op.
3978 (class process_target): Add the target op.
3979 (join_inferior): Update the macro.
3981 Update the derived classes and callers below.
3983 * linux-low.cc (linux_target_ops): Update.
3984 (linux_join): Turn into ...
3985 (linux_process_target::join): ... this.
3986 * linux-low.h (class linux_process_target): Update.
3987 * lynx-low.cc (lynx_target_ops): Update.
3988 (lynx_join): Turn into ...
3989 (lynx_process_target::join): ... this.
3990 * lynx-low.h (class lynx_process_target): Update.
3991 * nto-low.cc (nto_target_ops): Update.
3992 (nto_process_target::join): Define.
3993 * nto-low.h (class nto_process_target): Update.
3994 * win32-low.cc (win32_target_ops): Update.
3995 (win32_join): Turn into ...
3996 (win32_process_target::join): ... this.
3997 * win32-low.h (class win32_process_target): Update.
3999 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4001 Turn process_stratum_target's mourn op into a method of
4004 * target.h (struct process_stratum_target): Remove the target op.
4005 (class process_target): Add the target op.
4007 Update the derived classes and callers below.
4009 * target.cc (target_mourn_inferior): Update.
4010 * linux-low.cc (linux_target_ops): Update.
4011 (linux_mourn): Turn into ...
4012 (linux_process_target::mourn): ... this.
4013 (handle_extended_wait): Update.
4014 (linux_process_target::kill): Update.
4015 (linux_process_target::detach): Update.
4016 * linux-low.h (class linux_process_target): Update.
4017 * lynx-low.cc (lynx_target_ops): Update.
4018 (lynx_mourn): Turn into ...
4019 (lynx_process_target::mourn): ... this.
4020 * lynx-low.h (class lynx_process_target): Update.
4021 * nto-low.cc (nto_target_ops): Update.
4022 (nto_mourn): Turn into ...
4023 (nto_process_target::mourn): ... this.
4024 * nto-low.h (class nto_process_target): Update.
4025 * win32-low.cc (win32_target_ops): Update.
4026 (win32_mourn): Turn into ...
4027 (win32_process_target::mourn): ... this.
4028 * win32-low.h (class win32_process_target): Update.
4030 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4032 Turn process_stratum_target's detach op into a method of
4035 * target.h (struct process_stratum_target): Remove the target op.
4036 (class process_target): Add the target op.
4037 (detach_inferior): Update the macro.
4039 Update the derived classes and callers below.
4041 * linux-low.cc (linux_target_ops): Update.
4042 (linux_detach): Turn into ...
4043 (linux_process_target::detach): ... this.
4044 * linux-low.h (class linux_process_target): Update.
4045 * lynx-low.cc (lynx_target_ops): Update.
4046 (lynx_detach): Turn into ...
4047 (lynx_process_target::detach): ... this.
4048 * lynx-low.h (class lynx_process_target): Update.
4049 * nto-low.cc (nto_target_ops): Update.
4050 (nto_detach): Turn into ...
4051 (nto_process_target::detach): ... this.
4052 * nto-low.h (class nto_process_target): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4054 (win32_detach): Turn into ...
4055 (win32_process_target::detach): ... this.
4056 * win32-low.h (class win32_process_target): Update.
4058 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4060 Turn process_stratum_target's kill op into a method of
4063 * target.h (struct process_stratum_target): Remove the target op.
4064 (class process_target): Add the target op.
4066 Update the derived classes and callers below.
4068 * target.cc (kill_inferior): Update.
4069 * linux-low.cc (linux_target_ops): Update.
4070 (linux_kill): Turn into ...
4071 (linux_process_target::kill): ... this.
4072 * linux-low.h (class linux_process_target): Update.
4073 * lynx-low.cc (lynx_target_ops): Update.
4074 (lynx_kill): Turn into ...
4075 (lynx_process_target::kill): ... this.
4076 * lynx-low.h (class lynx_process_target): Update.
4077 * nto-low.cc (nto_target_ops): Update.
4078 (nto_kill): Turn into ...
4079 (nto_process_target::kill): ... this.
4080 * nto-low.h (class nto_process_target): Update.
4081 * win32-low.cc (win32_target_ops): Update.
4082 (win32_kill): Turn into ...
4083 (win32_process_target::kill): ... this.
4084 * win32-low.h (class win32_process_target): Update.
4086 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4088 Turn process_stratum_target's attach op into a method of
4091 * target.h (struct process_stratum_target): Remove the target op.
4092 (class process_target): Add the target op.
4093 (myattach): Update the macro.
4095 Update the derived classes and callers below.
4097 * linux-low.cc (linux_target_ops): Update.
4098 (linux_attach): Turn into ...
4099 (linux_process_target::attach): ... this.
4100 * linux-low.h (class linux_process_target): Update.
4101 * lynx-low.cc (lynx_target_ops): Update.
4102 (lynx_attach): Turn into ...
4103 (lynx_process_target::attach): ... this.
4104 * lynx-low.h (class lynx_process_target): Update.
4105 * nto-low.cc (nto_target_ops): Update.
4106 (nto_attach): Turn into ...
4107 (nto_process_target::attach): ... this.
4108 * nto-low.h (class nto_process_target): Update.
4109 * win32-low.cc (win32_target_ops): Update.
4110 (win32_attach): Turn into ...
4111 (win32_process_target::attach): ... this.
4112 * win32-low.h (class win32_process_target): Update.
4114 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4116 Turn process_stratum_target's post_create_inferior op into a method
4119 * target.h (struct process_stratum_target): Remove the target op.
4120 (class process_target): Add the target op.
4121 (target_post_create_inferior): Update the macro.
4122 * target.cc (process_target::post_create_inferior): Define.
4124 Update the derived classes and callers below.
4126 * linux-low.cc (linux_target_ops): Update.
4127 (linux_post_create_inferior): Turn into ...
4128 (linux_process_target::post_create_inferior): ... this.
4129 * linux-low.h (class linux_process_target): Update.
4130 * lynx-low.cc (lynx_target_ops): Update.
4131 * nto-low.cc (nto_target_ops): Update.
4132 * win32-low.cc (win32_target_ops): Update.
4134 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4136 Turn process_stratum_target's create_inferior op into a method of
4139 * target.h (struct process_stratum_target): Remove the target op.
4140 (class process_target): Add the target op.
4141 (create_inferior): Rename the macro to ...
4142 (target_create_inferior): ... this.
4144 Update the derived classes and callers below.
4146 * server.cc (handle_v_run): Update.
4147 (captured_main): Update.
4148 (process_serial_event): Update.
4149 * linux-low.cc (linux_target_ops): Update.
4150 (linux_create_inferior): Turn into ...
4151 (linux_process_target::create_inferior): ... this.
4152 * linux-low.h (class linux_process_target): Update.
4153 * lynx-low.cc (lynx_target_ops): Update.
4154 (lynx_create_inferior): Turn into ...
4155 (lynx_process_target::create_inferior): ... this.
4156 * lynx-low.h (class lynx_process_target): Update.
4157 * nto-low.cc (nto_target_ops): Update.
4158 (nto_create_inferior): Turn into ...
4159 (nto_process_target::create_inferior): ... this.
4160 * nto-low.h (class nto_process_target): Update.
4161 * win32-low.cc (win32_target_ops): Update.
4162 (win32_create_inferior): Turn into ...
4163 (win32_process_target::create_inferior): ... this.
4164 * win32-low.h (class win32_process_target): Update.
4166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4168 * target.h (class process_target): New class definition.
4169 (struct process_stratum_target) <pt>: New field with type
4171 * linux-low.h (class linux_process_target): Define as a derived
4172 class of 'process_target'.
4173 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4175 * lynx-low.h (class lynx_process_target): Define as a derived
4176 class of 'process_target'.
4177 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4179 * nto-low.h (class nto_process_target): Define as a derived
4180 class of 'process_target'.
4181 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4183 * win32-low.h (class win32_process_target): Define as a derived
4184 class of 'process_target'.
4185 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4188 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4190 * configure: Regenerate.
4192 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4193 Andrew Burgess <andrew.burgess@embecosm.com>
4195 * linux-riscv-low.cc: New file.
4196 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4197 and nat/riscv-linux-tdesc.c.
4198 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4199 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4202 2020-02-14 Tom Tromey <tom@tromey.com>
4204 * acinclude.m4: Don't include acx_configure_dir.m4.
4205 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4206 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4207 (all, install-only, uninstall, clean-info, clean)
4208 (maintainer-clean): Don't recurse.
4209 (subdir_do, all-lib): Remove.
4210 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4212 (generated_files): Update.
4213 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4214 * configure: Rebuild.
4215 * configure.ac: Don't configure gnulib or libiberty.
4218 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4220 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4221 preparing the command line for CreateProcess.
4222 (win32_create_inferior): Reflect the program name in debugging
4223 output that shows the process and its command line.
4225 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4227 * Makefile.in: Rename source files from .c to .cc.
4228 * %.c: Rename to %.cc.
4229 * configure.ac: Rename server.c to server.cc.
4230 * configure: Re-generate.
4232 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4234 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4236 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4238 * win32-low.c (win32_create_inferior): Set signal_pid.
4240 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4241 Pedro Alves <palves@redhat.com>
4243 Skip building gdbserver in a cross-configuration.
4244 * configure.srv: Set $gdbserver_host depending on whether $target
4245 is $host. Use $gdbserver_host instead of $host.
4247 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4249 * configure: Re-generate.
4251 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4253 * configure: Re-generate.
4255 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4257 * acinclude.m4: Update warning.m4 path.
4259 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4261 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4262 (handle_exception): Set siginfo_er.
4263 (win32_xfer_siginfo): New function.
4265 2020-02-07 Tom Tromey <tom@tromey.com>
4266 Pedro Alves <palves@redhat.com>
4268 * README: Update build documentation.
4269 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4271 * configure.ac: Update paths.
4272 * configure: Rebuild.
4273 * acinclude.m4: Update paths.
4274 * Makefile.in: Update include paths.
4275 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4276 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4277 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4278 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4279 (%-generated.c): Update paths.
4280 * Move entire directory from ../gdb/gdbserver.
4282 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4284 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4286 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4288 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4289 assignment instead of srv_linux_obj.
4291 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4293 * server.c (handle_qxfer_libraries): Write segment-address with
4296 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4298 * Makefile.in (install-strip): New target.
4299 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4300 * aclocal.m4: Regenerate.
4301 * configure: Regenerate.
4302 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4304 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4306 * Makefile.in (SFILES): Adjust paths to point to real files.
4307 (OBS): Move waitstatus.o to target/waitstatus.o.
4308 (TAGS): Transform paths appropriately.
4310 (nat/%.o): ... this pattern rule.
4312 (target/%.o): ... this pattern rule.
4313 * configure.srv: Adjust paths throughout to include nat/ prefix
4314 with the revant files.
4315 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4316 * configure: Regenerate.
4318 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4320 * Makefile.in (TAGS): Remove config files from the recipe.
4322 2020-01-14 Tom Tromey <tom@tromey.com>
4324 * configure: Rebuild.
4325 * configure.ac: Remove any checks that were added to common.m4.
4326 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4329 2020-01-14 Tom Tromey <tom@tromey.com>
4331 * server.h: Include config.h.
4332 * gdbreplay.c: Include config.h.
4333 * configure: Rebuild.
4334 * configure.ac: Don't source common.host.
4335 * acinclude.m4: Update path.
4336 * Makefile.in (INCSUPPORT): New variable.
4337 (INCLUDE_CFLAGS): Add INCSUPPORT.
4338 (SFILES): Update paths.
4339 (version-generated.c): Update path to create-version.sh.
4340 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4342 2020-01-14 Tom Tromey <tom@tromey.com>
4344 * configure.ac (LIBS): Use WIN32APILIBS.
4345 (USE_WIN32API): Don't define.
4346 * configure: Rebuild.
4348 2020-01-14 Tom Tromey <tom@tromey.com>
4350 * configure: Rebuild.
4352 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4354 * Makefile.in (%-generated.c): Remove rule for files from
4357 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4359 * configure: Re-generate.
4361 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4363 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4365 * tracepoint.c (stop_tracing, flush_trace_buffer,
4366 about_to_request_buffer_space, get_trace_state_variable_value,
4367 set_trace_state_variable_value, gdb_collect): Add declaration.
4369 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4371 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4372 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4373 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4374 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4375 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4378 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4380 * inferiors.c: Include gdbsupport/common-inferior.h.
4382 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4384 * hostio-errno.c: Include hostio.h.
4386 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4388 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4391 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4393 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4394 * linux-arm-tdesc.h: Include arch/arm.h.
4396 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4398 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4400 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4402 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4403 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4405 2020-01-10 Pedro Alves <palves@redhat.com>
4407 * fork-child.c (post_fork_inferior): Pass target down to
4409 * inferiors.c (switch_to_thread): Add process_stratum_target
4411 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4412 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4413 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4414 * remote-utils.c (prepare_resume_reply): Pass the target to
4416 * target.c (the_target): Now a process_stratum_target.
4417 (done_accessing_memory): Pass the target to switch_to_thread.
4418 (set_target_ops): Ajust to use process_stratum_target.
4419 * target.h (struct target_ops): Rename to ...
4420 (struct process_stratum_target): ... this.
4421 (the_target, set_target_ops): Adjust.
4422 (prepare_to_access_memory): Adjust comment.
4423 * win32-low.c (child_xfer_memory): Adjust to use
4424 process_stratum_target.
4425 (win32_target_ops): Now a process_stratum_target.
4427 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4428 Pedro Alves <palves@redhat.com>
4430 * win32-low.c (get_child_debug_event): Extract the fatal exception
4431 from the exit status and convert to the equivalent Posix signal
4433 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4434 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4436 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4438 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4440 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4442 * server.c (gdbserver_version): Change copyright year to 2020.
4443 * gdbreplay.c (gdbreplay_version): Likewise.
4445 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4447 * configure: Regenerate.
4448 * configure.ac: Quote variable arguments of test.
4450 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4452 * Makefile.in: Fix build with GNU Make 3.81
4454 2019-12-16 Tom Tromey <tromey@adacore.com>
4456 * server.c (get_exec_file): Constify result.
4458 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4460 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4461 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4462 * config.in: Regenerate.
4463 * configure: Regenerate.
4464 * configure.ac: Don't check for strerror.
4465 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4466 Call safe_strerror instead of strerror.
4467 * server.h (strerror): Remove this now-unnecessary declaration.
4468 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4470 (gdb_agent_helper_thread): Likewise.
4471 * utils.c (perror_with_name): Likewise.
4473 2019-11-26 Tom Tromey <tom@tromey.com>
4475 * configure, config.in: Rebuild.
4477 2019-11-26 Tom Tromey <tom@tromey.com>
4479 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4480 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4482 * configure, config.in: Rebuild.
4484 2019-11-26 Tom Tromey <tom@tromey.com>
4486 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4487 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4488 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4489 * acinclude.m4: Include ax_pthread.m4.
4490 * config.in, configure: Rebuild.
4492 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4494 * debug.c (debug_set_output): Call safe_strerror instead of
4496 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4497 (linux_kill_one_lwp): Likewise.
4498 (linux_detach_one_lwp): Likewise.
4499 (linux_wait_for_event_filtered): Likewise.
4500 (store_register): Likewise.
4501 * lynx-low.c (lynx_attach): Likewise.
4502 * mem-break.c (insert_memory_breakpoint): Likewise.
4503 (remove_memory_breakpoint): Likewise.
4504 (delete_fast_tracepoint_jump): Likewise.
4505 (set_fast_tracepoint_jump): Likewise.
4506 (uninsert_fast_tracepoint_jumps_at): Likewise.
4507 (reinsert_fast_tracepoint_jumps_at): Likewise.
4508 * nto-low.c (nto_xfer_memory): Likewise.
4509 (nto_resume): Likewise.
4511 2019-11-20 Luis Machado <luis.machado@linaro.org>
4513 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4514 instead of register count.
4515 * tdesc.c (tdesc_contains_feature): New function.
4516 * tdesc.h (tdesc_contains_feature): New prototype.
4518 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4520 * Makefile.in: Add safe-strerror.c.
4521 * configure: Regenerate.
4522 * configure.ac: Don't source common.host.
4524 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4526 * config.in: Regenerate.
4527 * configure: Regenerate.
4529 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4531 * ax.c (ax_printf): Handle size_t_arg.
4533 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4535 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4536 * mi/mi-main.c (output_cores): Likewise.
4537 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4538 (linux_xfer_osdata_modules): Likewise.
4539 * remote.c (register_remote_support_xml): Likewise.
4540 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4541 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4543 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4545 * configure: Regenerate.
4546 * configure.ac: Remove check for strerror_r.
4548 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4550 * config.in: Regenerate.
4551 * configure: Regenerate.
4552 * configure.ac: Also check for strerror_r.
4554 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4556 * ax.h (debug_agent): Remove duplicate declaration.
4558 2019-10-26 Tom de Vries <tdevries@suse.de>
4560 * linux-aarch64-low.c: Fix typos in comments.
4561 * linux-arm-low.c: Same.
4562 * linux-low.c: Same.
4563 * linux-ppc-low.c: Same.
4564 * proc-service.c: Same.
4567 * tracepoint.c: Same.
4568 * win32-low.c: Same.
4570 2019-10-25 Tom Tromey <tromey@adacore.com>
4572 * utils.c (xstrdup): Remove.
4574 2019-10-23 Tom Tromey <tom@tromey.com>
4576 * configure, config.in: Rebuild.
4578 2019-10-23 Tom Tromey <tom@tromey.com>
4580 * configure: Rebuild.
4581 * acinclude.m4: Use m4_include, not sinclude.
4583 2019-10-17 Tom Tromey <tromey@adacore.com>
4585 * configure: Rebuild.
4586 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4587 in AC_CONFIG_FILES invocation.
4588 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4591 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4593 * server.c: Include xml-builtin.h.
4594 (get_xml_features): Don't declare xml_builtins here.
4596 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4598 * Makefile.in: Remove references to vec-ipa.o.
4600 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4602 * Makefile.in: Remove references to vec.c.
4604 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4606 * server.c (server_waiting): Change to bool.
4607 (extended_protocol): Likewise.
4608 (response_needed): Likewise.
4609 (exit_requested): Likewise.
4610 (run_once): Likewise.
4611 (report_no_resumed): Likewise.
4612 (non_stop): Likewise.
4613 (disable_packet_vCont): Likewise.
4614 (disable_packet_Tthread): Likewise.
4615 (disable_packet_qC): Likewise.
4616 (disable_packet_qfThreadInfo): Likewise.
4617 (handle_general_set): Update.
4618 (handle_detach): Update.
4619 (handle_monitor_command): Update.
4620 (handle_query): Update.
4621 (captured_main): Update.
4622 (process_serial_event): Update.
4623 * server.h (server_waiting): Change to bool.
4624 (disable_packet_vCont): Likewise.
4625 (disable_packet_Tthread): Likewise.
4626 (disable_packet_qC): Likewise.
4627 (disable_packet_qfThreadInfo): Likewise.
4628 (run_once): Likewise.
4629 (non_stop): Likewise.
4630 * target.c (target_stop_and_wait): Update.
4632 2019-10-02 Tom Tromey <tromey@adacore.com>
4634 * Makefile.in (SFILES): Add common-inferior.c.
4635 (OBS): Add common-inferior.o.
4636 * server.c (startup_with_shell): Don't define.
4638 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4640 * linux-low.c (linux_low_read_btrace): Update for change to
4643 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4645 * debug.c (debug_threads): Remove comment in favor of the header.
4646 * debug.h (using_threads): Add declaration.
4647 (debug_threads): Add comment.
4648 * linux-aarch64-low.c: Include debug.h and remove declaration of
4650 * nto-low.c: Likewise.
4651 * remote-utils.c: Likewise.
4652 * thread-db.c: Likewise.
4654 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4656 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4657 and powerpc-cell64l-ipa.o.
4658 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4659 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4660 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4663 * spu-low.c: Remove file.
4665 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4666 (parse_spufs_run): Remove.
4667 (ppc_get_pc): Remove Cell/B.E. support.
4668 (ppc_set_pc): Likewise.
4669 (ppc_breakpoint_at): Likewise.
4670 (ppc_arch_setup): Likewise.
4671 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4672 tdesc_powerpc_cell32l.
4673 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4674 or init_registers_powerpc_cell32l.
4675 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4676 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4677 or init_registers_powerpc_cell32l.
4678 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4679 (init_registers_powerpc_cell32l): Remove prototype.
4680 (init_registers_powerpc_cell64l): Likewise.
4682 * target.h (struct target_ops): Remove qxfer_spu member.
4683 * server.c (handle_qxfer_spu): Remove.
4684 (qxfer_packets): Remove entry for "spu".
4685 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4686 * linux-low.c (SPUFS_MAGIC): Remove.
4687 (spu_enumerate_spu_ids): Remove.
4688 (linux_qxfer_spu): Remove.
4689 (linux_target_ops): Remove qxfer_spu member.
4690 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4691 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4692 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4694 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4696 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4697 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4698 * config.in: Regenerate.
4699 * configure: Regenerate.
4701 2019-08-15 Tom Tromey <tromey@adacore.com>
4703 * target.c (target_write_memory): Use gdb::byte_vector.
4705 2019-08-15 Tom Tromey <tromey@adacore.com>
4707 * tracepoint.c (write_inferior_data_pointer)
4708 (write_inferior_integer, write_inferior_int8)
4709 (write_inferior_uinteger, m_tracepoint_action_download)
4710 (r_tracepoint_action_download, x_tracepoint_action_download)
4711 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4712 (download_agent_expr, download_tracepoint_1)
4713 (download_trace_state_variables, upload_fast_traceframes): Update.
4714 * server.c (gdb_write_memory): Update.
4715 * remote-utils.c (relocate_instruction): Update.
4716 * proc-service.c (ps_pdwrite): Update.
4717 * mem-break.c (remove_memory_breakpoint)
4718 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4719 (uninsert_fast_tracepoint_jumps_at)
4720 (reinsert_fast_tracepoint_jumps_at): Update.
4721 * linux-x86-low.c (append_insns)
4722 (i386_install_fast_tracepoint_jump_pad)
4723 (amd64_write_goto_address, i386_write_goto_address): Update.
4724 * linux-s390-low.c (append_insns, s390_write_goto_address):
4726 * linux-ppc-low.c (ppc_relocate_instruction)
4727 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4728 (ppc_write_goto_address): Update.
4729 * linux-aarch64-low.c (append_insns): Update.
4730 * target.h (struct target_ops): Update.
4731 (write_inferior_memory): Don't declare.
4732 * target.c (target_write_memory): Rename from
4733 write_inferior_memory. Remove old target_write_memory.
4735 2019-08-15 Tom Tromey <tromey@adacore.com>
4737 * target.c (write_inferior_memory): Use std::vector.
4739 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4742 * configure.ac: Drop enable-libmcheck support.
4743 * configure, config.in: Rebuild.
4744 * acinclude.m4: Don't include it.
4746 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4748 * configure.srv: Remove Arm xml files.
4750 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4752 * configure.srv: Add new files. Remove xml generated files.
4753 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4755 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4756 * linux-aarch32-tdesc.c: New file.
4757 * linux-aarch32-tdesc.h: New file.
4758 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4759 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4760 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4761 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4762 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4763 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4764 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4765 (arm_read_description): Call arm_linux_read_description.
4766 (initialize_low_arch): Don't init registers.
4767 * linux-arm-tdesc.c: New file.
4768 * linux-arm-tdesc.h: New file.
4770 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4772 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4773 Move counter inside for.
4774 (arm_read_description): Check ptrace earlier.
4775 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4777 2019-07-09 Tom Tromey <tom@tromey.com>
4779 * configure: Rebuild.
4780 * configure.ac: Change common to gdbsupport.
4781 * acinclude.m4: Change common to gdbsupport.
4782 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4783 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4784 common to gdbsupport.
4785 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4786 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4787 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4788 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4789 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4790 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4791 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4792 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4793 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4794 common to gdbsupport.
4796 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4798 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4800 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4802 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4804 * configure.srv: Remove legacy xml.
4805 * linux-aarch64-low.c (initialize_low_arch): Remove
4806 initialize_low_tdesc call.
4807 * linux-aarch64-tdesc-selftest.c: Remove file.
4808 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4809 * linux-x86-low.c (initialize_low_arch): Remove
4810 initialize_low_tdesc call.
4811 * linux-x86-tdesc-selftest.c: Remove file.
4812 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4814 2019-06-20 Tom de Vries <tdevries@suse.de>
4816 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4817 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4819 2019-06-19 Tom de Vries <tdevries@suse.de>
4821 * debug.h (debug_write): Change return type to ssize_t.
4822 * debug.c (debug_write): Same.
4824 2019-06-14 Tom Tromey <tom@tromey.com>
4826 * configure.ac: Use new path to gnulib.
4827 * configure: Rebuild.
4828 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4831 2019-06-11 Tom Tromey <tom@tromey.com>
4833 * Makefile.in (SFILES): Add alloc.c.
4835 (IPA_OBJS): Add alloc-ipa.o.
4836 (alloc-ipa.o): New target.
4837 (%.o: ../%.c): New pattern rule.
4839 2019-06-10 Tom Tromey <tromey@adacore.com>
4841 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4842 end warning with a newline.
4843 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4845 * thread-db.c (attach_thread): Don't end warning with a newline.
4846 (thread_db_notice_clone): Likewise.
4847 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4849 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4850 end warning with a newline.
4852 2019-06-04 Pedro Alves <palves@redhat.com>
4854 * server.c (captured_main): Use make_unique_xstrdup.
4856 2019-06-02 Tom Tromey <tom@tromey.com>
4858 * gdbreplay.c (fromhex): Remove.
4859 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4861 2019-05-29 Tom Tromey <tromey@adacore.com>
4863 * configure: Rebuild.
4865 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4867 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4868 sign extension code on 32-bit builds.
4870 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4873 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4875 2019-04-19 Tom Tromey <tom@tromey.com>
4877 * server.c (struct vstop_notif): Derive from notif_event.
4879 (queue_stop_reply): Update.
4880 (remove_all_on_match_ptid): Change type. Rewrite.
4881 (discard_queued_stop_replies): Rewrite.
4882 (in_queued_stop_replies_ptid): Change type.
4883 (in_queued_stop_replies): Rewrite.
4884 (notif_stop): Update.
4885 (queue_stop_reply_callback): Update.
4886 (captured_main): Don't call initialize_notif.
4887 (push_stop_notification): Update.
4888 * notif.c (notif_write_event, handle_notif_ack)
4889 (notif_event_enque, notif_push): Update.
4890 (notif_event_xfree, initialize_notif): Remove.
4891 * notif.h (struct notif_event): Include <list>, not
4893 (struct notif_server) <queue>: Now a std::list.
4894 (notif_event_p): Remove typedef.
4895 (initialize_notif): Don't declare.
4896 (struct notif_event): Add virtual destructor.
4898 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4900 * ax.c (ax_vdebug): Call debug_printf.
4901 * debug.c (debug_write): New function.
4902 * debug.h (debug_write): New declaration.
4903 * linux-low.c (sigchld_handler): Call debug_write.
4905 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4907 * debug.c (debug_set_output): New function.
4908 (debug_vprintf): Send output to debug_file.
4909 (debug_flush): Likewise.
4910 * debug.h (debug_set_output): New declaration.
4911 * server.c (handle_monitor_command): Add debug-file option.
4912 (captured_main): Likewise.
4914 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4916 * debug.c (remote_debug): Add definition.
4917 * debug.h (remote_debug): Add declaration.
4918 * hostio.c (remote_debug): Remove declaration.
4919 * remote-utils.c (struct ui_file): Likewise.
4920 (remote_debug): Likewise.
4921 * remote-utils.h (remote_debug): Likewise,
4922 * server.c (remote_debug): Remove definition.
4924 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4926 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4927 when using a 64-bit gdbserver.
4929 2019-04-09 Tom Tromey <tromey@adacore.com>
4931 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4933 2019-04-08 Tom Tromey <tom@tromey.com>
4935 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4937 (linux_resume_one_lwp): Likewise.
4939 2019-04-08 Tom Tromey <tom@tromey.com>
4941 * gdbreplay.c: Update.
4942 * linux-low.c: Update.
4945 2019-04-08 Tom Tromey <tom@tromey.com>
4947 * server.c: Use C++ exception handling.
4948 * linux-low.c: Use C++ exception handling.
4949 * gdbreplay.c: Use C++ exception handling.
4951 2019-04-08 Tom Tromey <tom@tromey.com>
4953 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4954 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4955 (captured_main, main): Update.
4956 * gdbreplay.c (main): Update.
4958 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4960 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4961 value in argument pointer, return 1 if the entry is found and 0
4962 otherwise. Move comment.
4963 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4964 * linux-low.h (linux_get_auxv): Declare.
4965 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4967 2019-04-05 Tom Tromey <tromey@adacore.com>
4969 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4972 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4974 * linux-low.c (AT_HWCAP2): Add define if not already included.
4976 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4978 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4979 (aarch64_arch_setup): Call linux_get_hwcap.
4980 * linux-arm-low.c (arm_get_hwcap): Remove function.
4981 (arm_read_description): Call linux_get_hwcap.
4982 * linux-low.c (linux_get_auxv): New function.
4983 (linux_get_hwcap): Likewise.
4984 (linux_get_hwcap2): Likewise.
4985 * linux-low.h (linux_get_hwcap): New declaration.
4986 (linux_get_hwcap2): Likewise.
4987 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4988 (ppc_arch_setup): Call linux_get_hwcap.
4989 * linux-s390-low.c (s390_get_hwcap): Remove function.
4990 (s390_arch_setup): Call linux_get_hwcap.
4992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4993 Jiong Wang <jiong.wang@arm.com>
4995 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4996 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4998 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5001 Jiong Wang <jiong.wang@arm.com>
5003 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5004 (aarch64_get_hwcap): New function.
5005 (aarch64_arch_setup): Read APIA hwcap.
5007 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5008 Jiong Wang <jiong.wang@arm.com>
5010 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5011 (initialize_low_tracepoint): Likewise.
5012 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5013 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5014 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5015 (aarch64_linux_read_description): Likewise.
5016 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5018 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5020 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5021 i386_create_target_description for 'segments' parameter.
5022 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5023 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5024 * win32-i386-low.c (i386_arch_setup): Likewise.
5026 2019-03-12 Tom Tromey <tromey@adacore.com>
5028 * linux-low.c (iterate_over_lwps): Update.
5030 2019-03-06 Tom Tromey <tom@tromey.com>
5032 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5033 (captured_main): Use SCOPE_EXIT.
5035 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5037 * configure.srv: Use '$enable_unittest' instead of '$development'
5038 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5041 2019-02-27 Tom Tromey <tromey@adacore.com>
5043 * gdbreplay.c (logchar): Handle \r\n.
5045 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5047 * linux-low.c (linux_attach): Add process before lwp.
5048 * server.c (attach_inferior): Check if already attached.
5050 2019-02-07 Tom Tromey <tom@tromey.com>
5052 * x86-tdesc.h: Rename include guard.
5053 * x86-low.h: Add include guard.
5054 * wincecompat.h: Rename include guard.
5055 * win32-low.h: Add include guard.
5056 * utils.h: Rename include guard.
5057 * tracepoint.h: Rename include guard.
5058 * tdesc.h: Rename include guard.
5059 * target.h: Rename include guard.
5060 * server.h: Rename include guard.
5061 * remote-utils.h: Rename include guard.
5062 * regcache.h: Rename include guard.
5063 * nto-low.h: Rename include guard.
5064 * notif.h: Add include guard.
5065 * mem-break.h: Rename include guard.
5066 * lynx-low.h: Add include guard.
5067 * linux-x86-tdesc.h: Add include guard.
5068 * linux-s390-tdesc.h: Add include guard.
5069 * linux-ppc-tdesc-init.h: Add include guard.
5070 * linux-low.h: Add include guard.
5071 * linux-aarch64-tdesc.h: Add include guard.
5072 * linux-aarch32-low.h: Add include guard.
5073 * inferiors.h: Rename include guard.
5074 * i387-fp.h: Rename include guard.
5075 * hostio.h: Rename include guard.
5076 * gdbthread.h: Rename include guard.
5077 * gdb_proc_service.h: Rename include guard.
5078 * event-loop.h: Rename include guard.
5079 * dll.h: Rename include guard.
5080 * debug.h: Rename include guard.
5081 * ax.h: Rename include guard.
5083 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5086 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5087 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5089 2019-01-25 Tom Tromey <tom@tromey.com>
5091 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5093 2019-01-25 Tom Tromey <tom@tromey.com>
5095 * win32-low.c: Fix common/ includes.
5096 * win32-i386-low.c: Fix common/ includes.
5097 * tracepoint.c: Fix common/ includes.
5098 * thread-db.c: Fix common/ includes.
5099 * target.h: Fix common/ includes.
5100 * symbol.c: Fix common/ includes.
5101 * spu-low.c: Fix common/ includes.
5102 * server.h: Fix common/ includes.
5103 * server.c: Fix common/ includes.
5104 * remote-utils.c: Fix common/ includes.
5105 * regcache.h: Fix common/ includes.
5106 * regcache.c: Fix common/ includes.
5107 * nto-x86-low.c: Fix common/ includes.
5108 * notif.h: Fix common/ includes.
5109 * mem-break.h: Fix common/ includes.
5110 * lynx-low.c: Fix common/ includes.
5111 * lynx-i386-low.c: Fix common/ includes.
5112 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5113 * linux-x86-low.c: Fix common/ includes.
5114 * linux-low.c: Fix common/ includes.
5115 * inferiors.h: Fix common/ includes.
5116 * i387-fp.c: Fix common/ includes.
5117 * hostio.c: Fix common/ includes.
5118 * hostio-errno.c: Fix common/ includes.
5119 * gdbthread.h: Fix common/ includes.
5120 * gdbreplay.c: Fix common/ includes.
5121 * fork-child.c: Fix common/ includes.
5122 * event-loop.c: Fix common/ includes.
5124 (enum gdb_agent_op): Fix common/ includes.
5126 2019-01-21 Tom Tromey <tom@tromey.com>
5128 * tracepoint.c: Fix includes.
5129 * remote-utils.c: Fix includes.
5130 * linux-x86-low.c: Fix includes.
5132 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5134 * gdbreplay.c (gdbreplay_version): Update copyright year in
5136 * server.c (gdbserver_version): Likewise.
5138 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5140 * linux-low.c (add_lwp): Switch ordering.
5142 2018-11-29 Tom Tromey <tom@tromey.com>
5144 * win32-low.c (win32_join): Take pid, not process.
5145 * target.h (struct target_ops) <join>: Change argument type.
5146 (join_inferior): Change argument name.
5147 * spu-low.c (spu_join): Take pid, not process.
5148 * server.c (handle_detach): Preserve pid before destroying
5150 * lynx-low.c (lynx_join): Take pid, not process.
5151 * linux-low.c (linux_join): Take pid, not process.
5153 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5155 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5156 (aarch64_cannot_fetch_register): Likewise.
5157 (struct linux_target_ops): Update references.
5159 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5161 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5163 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5165 * configure.srv (ipa_ppc_linux_regobj): Add
5166 powerpc-isa207-htm-vsx32l-ipa.o and
5167 powerpc-isa207-htm-vsx64l-ipa.o.
5168 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5169 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5170 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5171 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5172 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5173 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5174 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5175 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5176 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5177 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5178 (init_registers_powerpc_isa207_htm_vsx32l)
5179 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5180 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5181 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5182 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5183 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5184 (ppc_store_tm_ctarregset): New functions.
5185 (ppc_regsets): Add entries for HTM regsets.
5186 (ppc_arch_setup): Set htm in features struct when needed. Set
5187 sizes for the HTM regsets.
5188 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5189 (initialize_low_arch): Call
5190 init_registers_powerpc_isa207_htm_vsx32l and
5191 init_registers_powerpc_isa207_htm_vsx64l.
5192 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5193 PPC_TDESC_ISA207_HTM_VSX.
5194 (initialize_low_tracepoint): Call
5195 init_registers_powerpc_isa207_htm_vsx32l and
5196 init_registers_powerpc_isa207_htm_vsx64l.
5198 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5200 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5201 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5202 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5203 (ppc_store_pmuregset): New functions.
5204 (ppc_regsets): Add entries for ebb and pmu regsets.
5205 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5206 pmu regsets are available. Set sizes for these regsets.
5208 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5210 * configure.srv (ipa_ppc_linux_regobj): Add
5211 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5212 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5213 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5214 rs6000/powerpc-isa207-vsx32l.xml, and
5215 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5216 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5217 <PPC_TDESC_ISA207_VSX>: New enum value.
5218 (init_registers_powerpc_isa207_vsx32l): Declare.
5219 (init_registers_powerpc_isa207_vsx64l): Declare.
5220 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5221 (ppc_store_tarregset): New function.
5222 (ppc_regsets): Add entry for the TAR regset.
5223 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5224 size for the TAR regsets.
5225 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5226 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5227 and init_registers_powerpc_isa207_vsx64l.
5228 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5229 (initialize_low_tracepoint): Call
5230 init_registers_powerpc_isa207_vsx32l and
5231 init_registers_powerpc_isa207_vsx64l.
5233 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5234 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5236 * configure.srv (ipa_ppc_linux_regobj): Add
5237 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5238 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5239 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5240 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5241 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5242 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5243 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5244 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5245 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5246 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5247 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5248 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5249 (ppc_hwcap): Add comment.
5250 (ppc_hwcap2): New global.
5251 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5252 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5253 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5254 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5255 when needed. Set sizes for the the DSCR and PPR regsets.
5256 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5257 (initialize_low_arch): Call
5258 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5259 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5260 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5261 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5262 (initialize_low_tracepoint): Call
5263 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5264 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5266 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5268 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5270 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5271 Simon Marchi <simark@simark.ca>
5273 * acinclude.m4: Include "../selftest.m4".
5274 * configure: Regenerate.
5275 * configure.ac: Use "GDB_AC_SELFTEST".
5276 * configure.srv: Use "$enable_unittests" instead of
5277 "$development" when checking whether unit tests have been
5279 * server.c (captured_main): Update message informing that
5280 selftests have been disabled.
5282 2018-10-04 Tom Tromey <tom@tromey.com>
5284 * configure: Rebuild.
5286 2018-10-04 Tom Tromey <tom@tromey.com>
5288 * server.c (handle_status): Rename inner "thread".
5289 (process_serial_event): Declare "res" in 'm' case.
5290 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5291 (iterate_over_lwps): Rename inner "thread".
5292 (linux_qxfer_libraries_svr4): Rename inner "len".
5293 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5295 2018-10-01 Gary Benson <gbenson@redhat.com>
5297 * gdb_proc_service.h: Moved common code to
5298 common/gdb_proc_service.h.
5300 2018-10-01 Gary Benson <gbenson@redhat.com>
5302 * gdb_proc_service.h: Synchronize comments and whitespace with
5303 GDB's version of this file.
5305 2018-09-25 Tom Tromey <tom@tromey.com>
5307 * configure: Rebuild.
5308 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5310 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5312 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5313 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5314 ($(IPA_LIB)): Sort IPA_OBJS.
5316 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5318 * Makefile.in: Remove references to $(ADD_DEPS).
5320 2018-09-16 Tom Tromey <tom@tromey.com>
5322 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5324 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5327 2018-09-05 Tom Tromey <tom@tromey.com>
5329 * configure: Rebuild.
5331 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5334 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5336 2018-08-27 Tom Tromey <tom@tromey.com>
5339 * configure: Rebuild.
5341 2018-08-27 Tom Tromey <tom@tromey.com>
5343 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5344 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5345 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5346 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5347 (s390x_emit_stack_adjust): Add casts to unsigned char.
5349 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5353 * server.h (struct client_state) <disable_randomization>:
5356 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5358 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5360 (mips_supply_ptrace_register): Likewise.
5362 2018-07-22 Tom Tromey <tom@tromey.com>
5364 * configure: Rebuild.
5366 2018-07-22 Tom Tromey <tom@tromey.com>
5368 * win32-low.c (win32_create_inferior): Remove unused variables.
5369 * gdbreplay.c (remote_open): Remove unused variable.
5370 * remote-utils.c (remote_prepare): Remove unused variable.
5371 * x86-tdesc.h (X86_TDESC_H): Define.
5372 (amd64_expedite_regs): Define conditionally.
5373 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5374 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5375 * remote-utils.c (readchar): Remove unused variable.
5377 2018-07-13 Pedro Alves <palves@redhat.com>
5379 * linux-low.c (linux_kill): Change parameter to process_info
5380 pointer instead of pid. Adjust.
5381 * lynx-low.c (lynx_kill): Likewise.
5382 * nto-low.c (nto_kill): Likewise.
5383 * spu-low.c (spu_kill): Likewise.
5384 * win32-low.c (win32_kill): Likewise.
5385 * server.c (handle_v_kill, kill_inferior_callback)
5386 (detach_or_kill_for_exit): Adjust.
5387 * target.c (kill_inferior): Change parameter to process_info
5388 pointer instead of pid. Adjust.
5389 * target.h (struct target_ops) <kill>: Change parameter to
5390 process_info pointer instead of pid. Adjust all implementations
5392 (kill_inferior): Likewise.
5394 2018-07-13 Pedro Alves <palves@redhat.com>
5396 * linux-low.c (linux_detach, linux_join): Change parameter to
5397 process_info pointer instead of pid. Adjust.
5398 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5399 * nto-low.c (nto_detach): Likewise.
5400 * spu-low.c (spu_detach, spu_join): Likewise.
5401 * win32-low.c (win32_detach, win32_join): Likewise.
5402 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5403 * target.h (struct target_ops) <detach, join>: Change parameter to
5404 process_info pointer instead of pid. Adjust all implementations
5406 (detach_inferior, join_inferior): Rename 'pid' parameter to
5409 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5410 Jan Kratochvil <jan.kratochvil@redhat.com>
5411 Paul Fertser <fercerpav@gmail.com>
5412 Tsutomu Seki <sekiriki@gmail.com>
5414 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5415 (OBS): Add 'common/netstuff.o'.
5416 (GDBREPLAY_OBS): Likewise.
5417 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5418 (remote_open): Implement support for IPv6
5420 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5422 (handle_accept_event): Accept connections from IPv6 sources.
5423 (remote_prepare): Handle IPv6-style hostnames; implement
5424 support for IPv6 connections.
5425 (remote_open): Implement support for printing connections from
5428 2018-07-11 Pedro Alves <palves@redhat.com>
5431 * mem-break.c (any_persistent_commands): Add process_info
5432 parameter and use it instead of relying on the current process.
5433 Change return type to bool.
5434 * mem-break.h (any_persistent_commands): Add process_info
5435 parameter and change return type to bool.
5436 * server.c (handle_detach): Remove require_running_or_return call.
5437 Look up the process_info for the process we're about to detach.
5438 If not found, return back error to GDB. Adjust
5439 any_persistent_commands call to pass down a process pointer.
5441 2018-07-11 Pedro Alves <palves@redhat.com>
5443 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5444 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5445 instead of collect_register_by_name.
5446 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5447 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5449 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5450 Pedro Alves <palves@redhat.com>
5452 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5454 2018-07-03 Tom Tromey <tom@tromey.com>
5456 * linux-low.c: Update.
5457 * lynx-low.c: Update.
5458 * mem-break.c: Update.
5459 * nto-low.c: Update.
5460 * remote-utils.c: Update.
5462 * spu-low.c: Update.
5464 * win32-low.c: Update.
5466 2018-07-03 Tom Tromey <tom@tromey.com>
5470 2018-07-03 Tom Tromey <tom@tromey.com>
5472 * linux-low.c: Update.
5474 2018-07-03 Tom Tromey <tom@tromey.com>
5478 2018-07-03 Tom Tromey <tom@tromey.com>
5480 * linux-low.c: Update.
5481 * linux-mips-low.c: Update.
5482 * lynx-low.c: Update.
5483 * nto-low.c: Update.
5484 * remote-utils.c: Update.
5486 * spu-low.c: Update.
5488 * thread-db.c: Update.
5490 2018-07-03 Tom Tromey <tom@tromey.com>
5492 * linux-low.c: Update.
5493 * linux-mips-low.c: Update.
5494 * lynx-low.c: Update.
5495 * mem-break.c: Update.
5496 * nto-low.c: Update.
5497 * remote-utils.c: Update.
5499 * spu-low.c: Update.
5501 * tracepoint.c: Update.
5503 2018-07-03 Tom Tromey <tom@tromey.com>
5505 * linux-low.c: Update.
5506 * linux-ppc-low.c: Update.
5507 * linux-x86-low.c: Update.
5508 * proc-service.c: Update.
5510 * spu-low.c: Update.
5511 * thread-db.c: Update.
5512 * win32-low.c: Update.
5514 2018-07-03 Tom Tromey <tom@tromey.com>
5516 * linux-low.c: Update.
5517 * lynx-low.c: Update.
5518 * nto-low.c: Update.
5519 * remote-utils.c: Update.
5520 * spu-low.c: Update.
5521 * thread-db.c: Update.
5522 * win32-low.c: Update.
5524 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5526 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5527 parameter in call to 'amd64_create_target_description'.
5529 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5531 * x86-tdesc.h: Remove executable permission flag.
5533 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5535 * configure.ac: Remove AC_PREREQ, add missing quoting.
5536 * configure: Re-generate.
5537 * config.in: Re-generate.
5538 * aclocal.m4: Re-generate.
5540 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5542 * tracepoint.h (current_traceframe): Remove declaration.
5544 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5546 * linux-aarch64-low.c (is_sve_tdesc): New function.
5547 (aarch64_sve_regs_copy_to_regcache): Likewise.
5548 (aarch64_sve_regs_copy_from_regcache): Likewise.
5549 (aarch64_regs_info): Add SVE checks.
5550 (initialize_low_arch): Initialize SVE.
5552 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5554 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5556 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5558 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5559 (initialize_low_tracepoint): Likewise
5560 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5561 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5563 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5565 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5567 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5569 * server.h (PBUFSIZ): Increase size
5571 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5573 * regcache.c (regcache::raw_compare): New function.
5574 * regcache.h (regcache::raw_compare): New declaration.
5576 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5578 * regcache.c (new_register_cache): Use new.
5579 (free_register_cache): Use delete.
5580 (register_data): Use const.
5581 (supply_register): Move body inside regcache.
5582 (regcache::raw_supply): New override function.
5583 (collect_register): Move body inside regcache.
5584 (regcache::raw_collect): New override function.
5585 (regcache::get_register_status): New override function.
5586 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5588 2018-06-09 Tom Tromey <tom@tromey.com>
5590 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5592 (event_queue): Use std::queue.
5593 (gdb_event_xfree): Remove.
5594 (initialize_event_loop, process_event, wait_for_event): Update.
5596 2018-06-08 Stan Cox <scox@redhat.com>
5598 * win32-low.c (win32_create_inferior): last_ptid and last_status
5599 moved to client_state.
5601 2018-06-08 Pedro Alves <palves@redhat.com>
5603 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5604 common/common-exceptions.o, common/common-utils.o,
5605 common/errors.o, common/print-utils.o and utils.o.
5606 * gdbreplay.c: Include "common-defs.h" instead of the two
5607 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5608 string.h or alloca.h.
5609 (perror_with_name): Delete.
5610 (remote_open): Use xstrdup instead of strdup.
5611 (main): Rename to ...
5612 (captured_main): ... this.
5615 2018-06-08 Tom Tromey <tom@tromey.com>
5617 * linux-low.c (linux_low_read_btrace): Update.
5619 2018-06-04 Stan Cox <scox@redhat.com>
5621 * server.h (struct client_state): New.
5622 * server.c (cont_thread, general_thread, multi_process)
5623 (report_fork_events, report_vfork_events, report_exec_events)
5624 (report_thread_events, swbreak_feature, hwbreak_feature)
5625 (vCont_supported, disable_randomization, pass_signals)
5626 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5627 Moved to client_state.
5628 * remote-utils.c (remote_debug, noack_mode)
5629 (transport_is_reliable): Moved to client_state.
5630 * tracepoint.c (current_traceframe): Moved to client_state.
5633 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5634 linux-low.c, remote-utils.h, target.c: Use client_state.
5636 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5638 * configure.srv: Add new c/h file.
5640 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5642 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5645 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5647 * gdb.arch/mips-fpregset-core.exp: New test.
5648 * gdb.arch/mips-fpregset-core.c: New test source.
5650 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5653 * hostio.c (require_int): Do not report overflow for integers
5654 between 0xfffffff and 0x7fffffff.
5656 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5658 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5659 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5660 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5662 (the_low_target): Wire them.
5664 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5666 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5667 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5668 mode. Call collect_register_by_name with vscr using
5669 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5670 (ppc_store_vrregset): Add and set vscr_offset variable as in
5671 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5674 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5676 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5677 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5678 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5680 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5682 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5683 (ppc_store_vsxregset): Likewise.
5684 (ppc_fill_vrregset): Likewise.
5685 (ppc_store_vrregset): Likewise.
5686 (ppc_fill_evrregset): Likewise.
5687 (ppc_store_evrregset): Likewise.
5688 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5689 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5692 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5694 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5695 wordsize of the inferior. Call ppc_linux_target_wordsize.
5697 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5699 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5700 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5701 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5702 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5703 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5704 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5705 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5706 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5707 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5708 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5709 (tdesc_powerpc_e500l): Remove.
5710 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5711 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5712 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5713 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5715 (ppc_arch_setup): Remove target description matching code. Fill a
5716 ppc_linux_features struct and call ppc_linux_match_description
5719 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5721 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5722 width of the requested register exceeds the width of the
5724 (mips_cannot_store_register): Likewise.
5726 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5728 * linux-mips-low.c (mips_fetch_register): New function. Update
5730 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5731 (the_low_target): Wire `mips_fetch_register'.
5733 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5735 * lynx-i386-low.c (LYNXOS_178): New macro.
5736 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5737 the layout on LynxOS-178.
5738 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5739 handle floating point registers that are not supported by
5742 2018-05-10 Tom Tromey <tom@tromey.com>
5744 * configure: Rebuild.
5746 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5749 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5750 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5751 Use it to set the expedite_regs field in the given tdesc.
5752 * x86-tdesc.h: New file.
5753 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5754 Adjust following the addition of the new expedite_regs parameter
5755 to init_target_desc.
5756 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5757 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5758 (i386_linux_read_description, amd64_linux_read_description):
5759 Adjust following the addition of the new expedite_regs parameter
5760 to init_target_desc.
5761 * lynx-i386-low.c: #include "x86-tdesc.h".
5762 (lynx_i386_arch_setup): Adjust following the addition of the new
5763 expedite_regs parameter to init_target_desc.
5764 * nto-x86-low.c: #include "x86-tdesc.h".
5765 (nto_x86_arch_setup): Adjust following the addition of the new
5766 expedite_regs parameter to init_target_desc.
5767 * win32-i386-low.c: #include "x86-tdesc.h".
5768 (i386_arch_setup): Adjust following the addition of the new
5769 expedite_regs parameter to init_target_desc.
5771 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5774 * win32-low.c (win32_create_inferior): Add call to my_wait
5775 setting last_status global.
5777 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5780 * win32-low.c (create_process): Only call gdb_tilde_expand if
5781 inferior_cwd is not NULL.
5783 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5785 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5786 registers to the cache if their values have changed.
5787 (i387_xsave_to_cache): Provide default values for x87 control
5788 registers when these features are available, but disabled.
5789 * regcache.c (supply_register_by_name_zeroed): New function.
5790 * regcache.h (supply_register_by_name_zeroed): Declare new
5793 2018-05-07 Tom Tromey <tom@tromey.com>
5795 * configure: Rebuild.
5797 2018-05-04 Tom Tromey <tom@tromey.com>
5799 * configure: Rebuild.
5801 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5802 Pedro Alves <palves@redhat.com>
5804 * linux-aarch64-low.c (aarch64_stopped_data_address):
5807 2018-04-27 Tom Tromey <tom@tromey.com>
5809 * configure: Rebuild.
5811 2018-04-23 Tom Tromey <tom@tromey.com>
5813 * configure: Rebuild.
5815 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5817 * Makefile.in (depcomp): Add "..".
5818 (all_deps_files): New and use it.
5820 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5822 * configure.srv (aarch64*-*-linux*): Don't include xml.
5823 (i[34567]86-*-cygwin*): Likewise.
5824 (i[34567]86-*-linux*): Likewise.
5825 (i[34567]86-*-lynxos*): Likewise.
5826 (i[34567]86-*-mingw32ce*): Likewise.
5827 (i[34567]86-*-mingw*): Likewise.
5828 (i[34567]86-*-nto*): Likewise.
5829 (tic6x-*-uclinux): Likewise.
5830 (x86_64-*-linux*): Likewise.
5831 (x86_64-*-mingw*): Likewise.
5832 (x86_64-*-cygwin*): Likewise.
5834 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5836 * tdesc.c: Remove xml parameter.
5838 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5840 * server.c (get_features_xml): Remove cast.
5841 * tdesc.c (void target_desc::accept): Fill in function.
5842 (tdesc_get_features_xml): Remove old xml creation.
5843 (print_xml_feature::visit_pre): Add xml vistor.
5844 * tdesc.h (struct target_desc): Make xmltarget mutable.
5845 (tdesc_get_features_xml): Remove declaration.
5847 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5849 * tdesc.c (tdesc_architecture_name): Add new function.
5850 (tdesc_osabi_name): Likewise.
5851 (tdesc_get_features_xml): Use new functions.
5853 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5855 * tdesc.c (tdesc_create_flags): Remove.
5856 (tdesc_add_flag): Likewise.
5857 (tdesc_named_type): Likewise.
5858 (tdesc_create_union): Likewise.
5859 (tdesc_create_struct): Likewise.
5860 (tdesc_create_vector): Likewise.
5861 (tdesc_add_bitfield): Likewise.
5862 (tdesc_add_field): Likewise.
5863 (tdesc_set_struct_size): Likewise.
5865 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5867 * tdesc.c (~target_desc): Remove implictly deleted items.
5868 (init_target_desc): Iterate all features.
5869 (tdesc_get_features_xml): Use vector.
5870 (tdesc_create_feature): Create feature.
5871 * tdesc.h (tdesc_feature) Remove
5872 (target_desc): Add features.
5874 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5876 * Makefile.in: Add common/tdesc.c
5877 * tdesc.c (init_target_desc): init all reg_defs from register
5879 (tdesc_create_reg): Create tdesc_reg.
5880 * tdesc.h (tdesc_feature): Add register vector.
5882 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5884 * tdesc.h (struct target_desc) <features>: Change type to
5885 std::vector<std::string>.
5886 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5888 (tdesc_get_features_xml): Likewise.
5889 (tdesc_create_feature): Likewise.
5891 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5893 * regcache.c (find_register_by_number): Return a ref.
5894 (find_regno): Use references.
5895 (register_size): Likewise.
5896 (register_data): Likewise.
5897 * tdesc.c (target_desc::~target_desc): Remove free calls.
5898 (target_desc::operator==): Use std::vector compare.
5899 (init_target_desc): Use reference.
5900 (tdesc_create_reg): Use reg constructors.
5901 * tdesc.h (struct target_desc): Replace pointer with object.
5903 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5905 * regcache.c (find_register_by_number): Make static.
5906 (find_regno): Use find_register_by_number
5907 * regcache.h (struct reg): Remove declaration.
5909 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5911 * tdesc.c (target_desc::~target_desc): Move to here.
5912 (target_desc::operator==): Likewise.
5913 * tdesc.h (target_desc::~target_desc): Move from here.
5914 (target_desc::operator==): Likewise.
5916 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5918 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5920 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5922 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5924 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5925 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5926 and init_registers_s390_gs_linux64.
5928 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5930 * linux-s390-low.c (s390_fill_gs): Remove function.
5931 (s390_fill_gsbc): Remove function.
5932 (s390_regsets): Set fill functions for the guarded storage regsets
5935 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5937 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5938 the word size. Add comment.
5939 (s390_get_wordsize): New function.
5940 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5941 pswm with it. Instead, use s390_get_wordsize to determine the
5942 word size first and derive the correct tdesc from that directly.
5944 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5946 * Makefile.in: Include silent-rules.mk.
5947 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5948 (COMPILE): Add ECHO_CXX.
5949 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5950 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5951 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5952 (version-generated.c): Add ECHO_GEN.
5953 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5954 (IPAGENT_COMPILE): Add ECHO_CXX.
5955 (%-generated.c): Add ECHO_REGDAT.
5957 2018-03-14 Tom Tromey <tom@tromey.com>
5960 * ax.c (ax_printf): Special case for NULL.
5962 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5964 * linux-low.c (linux_qxfer_libraries_svr4): Use
5965 xml_escape_text_append.
5967 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5969 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5971 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5973 * server.c (handle_general_set): Remove unnecessary xstrdup.
5975 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5977 * server.c (parse_debug_format_options): Adjust to
5978 delim_string_to_char_ptr_vec changes.
5979 * thread-db.c (thread_db_load_search): Adjust to
5980 dirnames_to_char_ptr_vec changes.
5982 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5984 * target.h (target_enable_btrace, target_disable_btrace)
5985 (target_read_btrace, target_read_btrace_conf): Turn macro into
5986 inline function. Throw error if target method is not defined.
5987 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5988 check for btrace target method. Be prepared to handle exceptions
5989 from btrace target methods.
5991 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5993 * server.c (captured_main): Change order of error message printed
5994 when the current working directory cannot be found.
5996 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5998 * server.c: Include "filenames.h" and "pathstuff.h".
5999 (program_name): Delete variable.
6000 (program_path): New anonymous class.
6001 (get_exec_wrapper): Use "program_path" instead of
6003 (handle_v_run): Likewise.
6004 (captured_main): Likewise.
6005 (process_serial_event): Likewise.
6007 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6009 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6010 (OBJS): Add "pathstuff.o".
6011 * server.c (current_directory): New global variable.
6012 (captured_main): Initialize "current_directory".
6014 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6016 * tdesc.c: Use common/tdesc.h.
6017 * tdesc.h: Likewise.
6019 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6020 Simon Marchi <simon.marchi@ericsson.com>
6022 * Makefile.in: Switch order of make rules.
6024 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6026 * Makefile.in: Add common directory in build.
6027 * configure.ac: Add common reference.
6028 * configure: Regenerate.
6030 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6032 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6033 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6034 * spu-low.c (spu_target_ops): Likewise.
6035 * win32-low.c (win32_target_ops): Likewise.
6036 * server.c (supported_btrace_packets): Report packets unconditionally.
6037 * target.h (target_ops) <supports_btrace>: Remove.
6038 (target_supports_btrace): Remove.
6040 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6042 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6043 (handle_btrace_disable): Change return type to void. Use exceptions
6045 (handle_btrace_general_set): Catch exception and copy message to
6048 2018-02-08 Tom Tromey <tom@tromey.com>
6050 * linux-low.c (install_software_single_step_breakpoints): Use
6051 make_scoped_restore.
6052 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6053 (do_restore_current_thread_cleanup): Remove.
6054 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6057 2018-02-08 Tom Tromey <tom@tromey.com>
6059 * mem-break.c (set_raw_breakpoint_at): Use
6060 gdb::unique_xmalloc_ptr.
6062 2018-01-30 Pedro Alves <palves@redhat.com>
6065 * target.c (target_terminal::terminal_state): Rename to ...
6066 (target_terminal::m_terminal_state): ... this.
6068 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6070 * linux-low.c (handle_extended_wait): Surround call to
6071 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6073 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6075 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6076 linux_ptrace_attach_fail_reason_string now returning an
6078 (linux_attach): Likewise.
6079 * thread-db.c (attach_thread): Likewise.
6081 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6084 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6085 checking for fs_base/gs_base fields in struct user_regs_struct.
6086 * configure: Regenerate.
6088 2018-01-16 Yao Qi <yao.qi@linaro.org>
6091 * linux-low.c (fetch_register): Call supply_register instead of
6094 2018-01-08 Yao Qi <yao.qi@linaro.org>
6095 Simon Marchi <simon.marchi@ericsson.com>
6097 * Makefile.in (OBS): Remove selftest.o.
6098 * configure.ac: Set srv_selftest_objs if $development is true.
6099 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6100 * configure: Re-generated.
6101 * server.c (captured_main): Wrap variable selftest_filter with
6104 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6106 * server.c (parse_debug_format_options): Return std::string.
6107 (handle_monitor_command, captured_main): Adjust.
6109 2018-01-05 Pedro Alves <palves@redhat.com>
6112 * server.c (captured_main): Pass quiet=false to
6113 save_original_signals_state.
6115 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6117 * gdbreplay.c (gdbreplay_version): Update copyright year in
6119 * server.c (gdbserver_version): Likewise.
6121 2017-12-08 Tom Tromey <tom@tromey.com>
6123 * ax.c (ax_printf): Update.
6125 2017-12-07 Yao Qi <yao.qi@linaro.org>
6127 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6128 aarch64_linux_read_description.
6129 * linux-amd64-ipa.c (idx2mask): New array.
6130 (get_ipa_tdesc): Move idx2mask out.
6131 (initialize_low_tracepoint): Initialize target descriptions.
6132 * linux-i386-ipa.c (idx2mask): New array.
6133 (get_ipa_tdesc): Move idx2mask out.
6134 (initialize_low_tracepoint): Initialize target descriptions.
6136 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6138 * tdesc.c (struct tdesc_type): Change return type.
6139 (tdesc_add_flag): Change parameter type.
6140 (tdesc_add_bitfield): Likewise.
6141 (tdesc_add_field): Likewise.
6142 (tdesc_set_struct_size): Likewise.
6144 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6146 * regcache.c (registers_to_string): Remove unused variable.
6148 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6150 * inferiors.c (for_each_inferior_with_data): Remove.
6151 * inferiors.h (for_each_inferior_with_data): Remove.
6152 * server.c (handle_qxfer_threads_worker): Change parameter type.
6153 (handle_qxfer_threads_proper): Use for_each_thread.
6155 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6157 * inferiors.c (for_each_inferior): Remove.
6158 (clear_inferiors): Use for_each_thread.
6159 * inferiors.h (for_each_inferior): Remove.
6160 * linux-low.c (linux_wait_for_event_filtered): Use
6162 (linux_stabilize_threads): Likewise.
6163 * regcache.c (regcache_release): Likewise.
6164 * server.c (gdb_wants_all_threads_stopped): Likewise.
6165 (clear_pending_status_callback): Remove.
6166 (handle_status): Use for_each_thread.
6167 (captured_main): Likewise.
6168 * win32-low.c (child_init_thread_list): Likewise.
6169 (win32_clear_inferiors): Likewise.
6170 (fake_breakpoint_event): Likewise.
6172 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6174 * inferiors.h (find_inferior): Remove.
6175 * inferiors.c (find_inferior): Remove.
6177 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6179 * linux-low.c (resume_status_pending_p): Update comment.
6180 (need_step_over_p): Update comment.
6182 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6184 * linux-low.c (proceed_one_lwp): Return void, change parameter
6186 (unsuspend_and_proceed_one_lwp): Likewise.
6187 (proceed_all_lwps): Use for_each_thread.
6188 (unstop_all_lwps): Likewise.
6190 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6192 * linux-low.c (linux_resume_one_thread): Return void, take
6194 (linux_resume): Use for_each_thread.
6196 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6198 * linux-low.c (send_sigstop_callback): Return void, change
6199 parameter type. Rename to...
6200 (send_sigstop): ... this.
6201 (suspend_and_send_sigstop_callback): Return void, change parameter
6203 (suspend_and_send_sigstop): ... this.
6204 (stop_all_lwps): Use for_each_thread.
6206 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6208 * linux-low.c (lwp_running): Return bool, remove unused
6210 (linux_stabilize_threads): Use find_thread.
6212 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6214 * linux-low.c (select_singlestep_lwp_callback): Remove.
6215 (count_events_callback): Remove.
6216 (select_event_lwp_callback): Remove.
6217 (select_event_lwp): Use find_thread/for_each_thread.
6219 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6221 * linux-low.c (not_stopped_callback): Return bool, take filter
6223 (linux_wait_for_event_filtered): Use find_thread.
6224 (linux_wait_1): Likewise.
6226 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6228 * linux-low.c (same_lwp): Remove.
6229 (find_lwp_pid): Use find_thread.
6231 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6233 * linux-low.c (delete_lwp_callback): Remove.
6234 (linux_mourn): Use for_each_thread.
6236 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6238 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6239 args parameter, don't check for pid.
6240 (linux_detach): Use for_each_thread.
6242 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6244 * linux-low.c (struct counter): Remove.
6245 (second_thread_of_pid_p): Remove.
6246 (last_thread_of_process_p): Use find_thread.
6248 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6250 * inferiors.c (find_inferior_in_random): Remove.
6251 * inferiors.h (find_inferior_in_random): Remove.
6252 * linux-low.c (status_pending_p_callback): Return bool, accept
6253 parameter ptid directly.
6254 (linux_wait_for_event_filtered): Use find_thread_in_random.
6255 (linux_wait_1): Likewise.
6257 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259 * inferiors.c (find_inferior_id): Remove.
6260 (find_thread_ptid): Move implemention from find_inferior_id to
6262 * inferiors.h (find_inferior_id): Remove.
6263 * server.c (handle_status): Use find_thread_ptid.
6264 (process_serial_event): Likewise.
6265 * thread-db.c (find_one_thread): Likewise.
6266 (thread_db_thread_handle): Likewise.
6267 * win32-low.c (thread_rec): Likewise.
6268 (child_delete_thread): Likewise.
6269 (win32_thread_alive): Likewise.
6270 (get_child_debug_event): Likewise.
6272 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6274 * linux-mips-low.c (update_watch_registers_callback): Return
6275 void, remove pid_p parameter, don't check for pid.
6276 (mips_insert_point, mips_remove_point): Use for_each_thread.
6278 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6280 * lynx.low (lynx_delete_thread_callback): Remove.
6281 (lynx_mourn): Use for_each_thread.
6283 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6285 * regcache.c (regcache_invalidate_one): Remove.
6286 (regcache_invalidate_pid): use for_each_thread.
6288 2017-11-26 Tom Tromey <tom@tromey.com>
6290 * linux-low.c (linux_create_inferior): Update.
6292 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6294 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6296 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6298 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6299 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6300 * linux-aarch64-tdesc-selftest.c: New file.
6301 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6303 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6305 * configure.srv: Add new file.
6306 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6307 * linux-aarch64-tdesc-selftest.c: New file.
6308 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6310 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6312 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6313 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6314 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6316 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6318 * configure.srv: Add new files.
6319 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6320 aarch64_linux_read_description.
6321 * linux-aarch64-low.c (aarch64_linux_read_description):
6322 Merge with aarch64_arch_setup.
6323 (aarch64_arch_setup): Call aarch64_linux_read_description.
6324 * linux-aarch64-tdesc.c: New file.
6325 * linux-aarch64-tdesc.h: New file.
6327 2017-11-24 Yao Qi <yao.qi@linaro.org>
6329 * configure.srv: Set $srv_regobj for tic6x-linux.
6330 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6331 (tic6x_read_description): Move some code to tic6x_arch_setup.
6332 (tic6x_tdesc_test): New function.
6333 (initialize_low_arch): Call selftests::register_test.
6335 2017-11-22 Yao Qi <yao.qi@linaro.org>
6337 * remote-utils.c (prepare_resume_reply): Use memcpy.
6339 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6341 * linux-low.c (kill_one_lwp_callback): Return void, take
6342 argument directly, don't filter on pid.
6343 (linux_kill): Use for_each_thread.
6345 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6347 * linux-low.c (need_step_over_p): Return bool, remove dummy
6349 (linux_resume, proceed_all_lwps): Use find_thread.
6351 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6353 * linux-low.c (resume_status_pending_p): Return bool, remove
6355 (linux_resume): Use find_thread.
6357 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6359 * linux-low.c (struct thread_resume_array): Remove.
6360 (linux_set_resume_request): Return void, take arguments
6362 (linux_resume): Use for_each_thread.
6364 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6366 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6367 return bool, remove data argument.
6368 (linux_stabilize_threads): Use find_thread.
6370 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6372 * linux-low.c (unsuspend_one_lwp): Remove.
6373 (unsuspend_all_lwps): Use for_each_thread, inline code from
6376 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6378 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6379 * linux-low.c (struct iterate_over_lwps_args): Remove.
6380 (iterate_over_lwps_filter): Remove.
6381 (iterate_over_lwps): Use find_thread.
6383 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6385 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6386 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6387 code from reset_lwp_ptrace_options_callback.
6389 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6391 * linux-arm-low.c (struct update_registers_data): Remove.
6392 (update_registers_callback): Return void, take arguments
6393 directly, don't check thread's pid.
6394 (arm_insert_point, arm_remove_point): Use for_each_thread.
6396 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6398 * win32-low.c (continue_one_thread): Return void, take argument
6400 (child_continue): Use for_each_thread.
6402 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6404 * win32-i386-low.c (update_debug_registers_callback): Rename
6406 (update_debug_registers): ... this, return void, remove pid_p arg.
6407 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6409 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6411 * inferiors.h (struct process_info): Add constructor, initialize
6413 <syscalls_to_catch>: Change type to std::vector<int>.
6414 * inferiors.c (add_process): Allocate process_info with new.
6415 (remove_process): Free process_info with delete.
6416 * linux-low.c (handle_extended_wait): Adjust.
6417 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6418 * server.c (handle_general_set): Adjust.
6420 2017-11-16 Pedro Alves <palves@redhat.com>
6422 * remote-utils.c (remote_close): Block SIGIO signals instead of
6423 uninstalling the SIGIO handler.
6425 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6427 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6429 2017-11-16 Yao Qi <yao.qi@linaro.org>
6431 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6432 (tic6x_store_gregset): Likewise.
6433 (tic6x_usrregs_info): Move it up.
6435 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6437 * Makefile.in: Update arch rules.
6438 * configure.srv: Explicitly mark arch/ files.
6440 2017-11-13 Andreas Schwab <schwab@suse.de>
6442 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6444 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6446 2017-11-06 Pedro Alves <palves@redhat.com>
6448 * config.in, configure: Regenerate.
6450 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6452 * target.c (struct thread_search): Remove.
6453 (thread_search_callback): Remove.
6454 (prepare_to_access_memory): Use for_each_thread instead of
6455 find_inferior. Inline code from thread_search_callback.
6457 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6459 * server.c (struct visit_actioned_threads_data): Remove.
6460 (visit_actioned_threads): Change prototype to take arguments
6462 (resume): Use find_thread instead of find_inferior.
6464 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6466 * server.c (queue_stop_reply_callback): Change prototype, return
6468 (find_status_pending_thread_callback): Remove.
6469 (handle_status): Replace find_inferior with find_thread and
6472 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6474 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6476 (aarch64_store_gregset): Likewise.
6477 (aarch64_fill_fpregset): Likewise.
6478 (aarch64_store_fpregset): Likewise.
6480 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6482 * gdbthread.h (find_thread, for_each_thread): New functions.
6483 * inferiors.c (thread_of_pid): Remove.
6484 (find_any_thread_of_pid): Use find_thread.
6485 * linux-low.c (num_lwps): Use for_each_thread.
6487 2017-10-17 Yao Qi <yao.qi@linaro.org>
6489 * Makefile.in: Remove one rule.
6490 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6492 2017-10-17 Yao Qi <yao.qi@linaro.org>
6494 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6495 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6497 2017-10-17 Yao Qi <yao.qi@linaro.org>
6499 * configure.srv: Rename arm.o with arch/arm.o.
6501 2017-10-17 Yao Qi <yao.qi@linaro.org>
6503 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6504 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6505 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6506 (arch-i386.o, arch-amd64.o): Remove rules.
6507 (arch/%.o): New rule.
6508 Update POSTCOMPILE and COMPILE.pre.
6509 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6510 * configure: Re-generated.
6511 * configure.srv: Replace arch-i386.o with arch/i386.o.
6512 Replace arch-amd64.o with arch/amd64.o.
6514 2017-10-16 Yao Qi <yao.qi@linaro.org>
6516 * configure: Regenerated.
6518 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6520 * inferiors.h: (struct inferior_list): Remove.
6521 (struct inferior_list_entry); Remove.
6522 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6523 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6524 get_first_inferior): Remove.
6525 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6526 find_inferior_id, find_inferior_in_random): Change signature.
6527 * inferiors.c (all_threads): Change type to
6528 std::list<thread_info *>.
6529 (get_thread): Remove macro.
6530 (find_inferior, find_inferior_id): Change signature, implement
6532 (find_inferior_in_random): Change signature, implement using
6533 find_thread_in_random.
6534 (for_each_inferior, for_each_inferior_with_data): Change
6535 signature, implement using for_each_thread.
6536 (add_inferior_to_list, remove_inferior): Remove.
6537 (add_thread, get_first_thread, thread_of_pid,
6538 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6539 (get_first_inferior, one_inferior_p, clear_inferior_list):
6541 (clear_inferiors, get_thread_process): Update.
6542 * gdbthread.h: Include <list>.
6543 (struct thread_info) <entry>: Remove field.
6545 (all_threads): Change type to std::list<thread_info *>.
6546 (get_first_inferior): Add doc.
6547 (find_thread, for_each_thread, find_thread_in_random): New
6549 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6550 * linux-arm-low.c (update_registers_callback): Update.
6551 * linux-low.c (second_thread_of_pid_p): Update.
6552 (kill_one_lwp_callback, linux_detach_lwp_callback,
6553 delete_lwp_callback, status_pending_p_callback, same_lwp,
6554 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6555 iterate_over_lwps, not_stopped_callback,
6556 resume_stopped_resumed_lwps, count_events_callback,
6557 select_singlestep_lwp_callback, select_event_lwp_callback,
6558 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6559 suspend_and_send_sigstop_callback, wait_for_sigstop,
6560 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6561 lwp_running, linux_set_resume_request, resume_status_pending_p,
6562 need_step_over_p, start_step_over, linux_resume_one_thread,
6563 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6564 reset_lwp_ptrace_options_callback): Update.
6565 * linux-mips-low.c (update_watch_registers_callback): Update.
6566 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6568 (free_register_cache_thread_one): Remove.
6569 (regcache_release): Update.
6570 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6571 handle_qxfer_threads_worker): Update.
6572 (handle_query): Update, use list iterator.
6573 (visit_actioned_threads, handle_pending_status,
6574 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6575 clear_pending_status_callback, set_pending_status_callback,
6576 find_status_pending_thread_callback, handle_status,
6577 process_serial_event): Update.
6578 * target.c (thread_search_callback): Update.
6579 * thread-db.c (thread_db_get_tls_address): Update.
6580 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6582 * win32-i386-low.c (update_debug_registers_callback): Update.
6583 * win32-low.c (delete_thread_info, child_delete_thread,
6584 continue_one_thread, suspend_one_thread,
6585 get_child_debug_event): Adjust.
6587 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6589 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6590 * inferiors.h: Include <list>.
6591 (struct process_info) <entry>: Remove field.
6593 (pid_of): Change macro to function.
6594 (ptid_of, lwpid_of): Remove macro.
6595 (all_processes): Change type to std::list<process_info *>.
6596 (ALL_PROCESSES): Remove macro.
6597 (for_each_process, find_process): New function.
6598 * inferiors.c (all_processes): Change type to
6599 std::list<process_info *>.
6600 (find_thread_process): Adjust.
6601 (add_process): Likewise.
6602 (remove_process): Likewise.
6603 (find_process_pid): Likewise.
6604 (get_first_process): Likewise.
6605 (started_inferior_callback): Remove.
6606 (have_started_inferiors_p): Adjust.
6607 (attached_inferior_callback): Remove.
6608 (have_attached_inferiors_p): Adjust.
6609 * linux-low.c (check_zombie_leaders): Likewise.
6610 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6611 (x86_linux_update_xmltarget): Adjust.
6612 * server.c (handle_query): Likewise.
6613 (gdb_reattached_process): Remove.
6614 (handle_status): Adjust.
6615 (kill_inferior_callback): Likewise.
6616 (detach_or_kill_inferior): Remove.
6617 (print_started_pid): Likewise.
6618 (print_attached_pid): Likewise.
6619 (detach_or_kill_for_exit): Update.
6620 (process_serial_event): Likewise.
6621 * linux-arm-low.c (arm_new_fork): Likewise.
6623 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6625 * dll.h: Include <list>.
6626 (struct dll_info): Add constructor.
6627 <entry>: Remove field.
6628 (all_dlls): Change type to std::list<dll_info>.
6629 * dll.c: Include <algorithm>.
6630 (get_dll): Remove macro.
6631 (all_dlls): Change type to std::list<dll_info *>.
6632 (free_one_dll): Remove.
6633 (match_dll): Likewise.
6634 (loaded_dll): Adjust.
6635 (unloaded_dll): Adjust to all_dlls type change, use
6636 std::find_if. Inline code from match_dll.
6637 (clear_dlls): Adjust to all_dlls type change.
6638 * server.c (emit_dll_description): Remove.
6639 (handle_qxfer_libraries): Adjust to all_dlls type change,
6640 integrate emit_dll_description's functionality.
6642 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6644 * linux-low.h (struct linux_target_ops) <delete_process>: New
6646 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6647 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6648 (struct linux_target_ops): Add delete_process callback.
6649 * linux-arm-low.c (arm_delete_process): New.
6650 (struct linux_target_ops): Add delete_process callback.
6651 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6652 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6653 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6654 * linux-mips-low.c (mips_linux_delete_process): New.
6655 (struct linux_target_ops): Add delete_process callback.
6656 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6657 * linux-s390-low.c (struct linux_target_ops): Likewise.
6658 * linux-sh-low.c (struct linux_target_ops): Likewise.
6659 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6660 * linux-tile-low.c (struct linux_target_ops): Likewise.
6661 * linux-x86-low.c (x86_linux_delete_process): New.
6662 (struct linux_target_ops): Add delete_process callback.
6663 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6665 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6667 * linux-aarch64-low.c (the_low_target): Add thread delete
6669 * linux-arm-low.c (arm_delete_thread): New function.
6670 (the_low_target): Add thread delete callback.
6671 * linux-bfin-low.c (the_low_target): Likewise.
6672 * linux-crisv32-low.c (the_low_target): Likewise.
6673 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6675 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6677 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6678 * linux-mips-low.c (mips_linux_delete_thread): New function.
6679 (the_low_target): Add thread delete callback.
6680 * linux-ppc-low.c (the_low_target): Likewise.
6681 * linux-s390-low.c (the_low_target): Likewise.
6682 * linux-sh-low.c (the_low_target): Likewise.
6683 * linux-tic6x-low.c (the_low_target): Likewise.
6684 * linux-tile-low.c (the_low_target): Likewise.
6685 * linux-x86-low.c (the_low_target): Likewise.
6686 * linux-xtensa-low.c (the_low_target): Likewise.
6688 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6690 * win32-low.c: Include "common-inferior.h".
6692 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6694 * inferiors.c (set_inferior_cwd): New function.
6695 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6696 (handle_query): Inform that QSetWorkingDir is supported.
6697 * win32-low.c (create_process): Pass the inferior's cwd to
6700 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6702 * inferiors.c (current_inferior_cwd): New global variable.
6703 (get_inferior_cwd): New function.
6704 * inferiors.h (struct process_info) <cwd>: New field.
6706 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6708 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6709 (OBS): Add gdb_tilde_expand.o.
6711 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6713 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6714 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6716 2017-09-29 Pedro Alves <palves@redhat.com>
6718 * ax.c (gdb_parse_agent_expr): Constify.
6719 * ax.h (gdb_parse_agent_expr): Constify.
6720 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6722 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6723 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6724 * remote-utils.h (read_ptid): Constify.
6725 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6726 (process_point_options, process_serial_event): Constify.
6727 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6728 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6729 (cmd_qtbuffer): Constify.
6731 2017-09-29 Pedro Alves <palves@redhat.com>
6733 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6736 2017-09-29 Pedro Alves <palves@redhat.com>
6738 * linux-low.c (handle_extended_wait): Pass parent thread instead
6739 of process to thread_db_notice_clone.
6740 * linux-low.h (thread_db_notice_clone): Replace parent process
6741 parameter with parent thread parameter.
6742 * thread-db.c (find_one_thread): Add comment.
6743 (thread_db_notice_clone): Replace parent process parameter with
6744 parent thread parameter. Temporarily switch to the parent thread.
6746 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6748 * gdbthread.h: Include "common-gdbthread.h".
6749 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6750 "if" when validating the ptid.
6751 * remote-utils.c: Include "gdbthread.h".
6752 (prepare_resume_reply): Use "switch_to_thread".
6753 * target.c (done_accessing_memory): Likewise.
6755 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6757 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6758 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6759 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6760 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6761 s390x-gs-linux64-ipa.o to ipa_obj.
6762 * linux-s390-low.c (HWCAP_S390_GS): New define.
6763 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6765 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6766 (s390_arch_setup): Check for guarded-storage support and choose
6768 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6769 init_registers_s390x_gs_linux64.
6770 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6772 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6773 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6775 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6777 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6779 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6781 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6782 (thread_db_thread_handle): Declare.
6783 * linux-low.c (linux_target_ops): Initialize thread_handle.
6784 * server.c (handle_qxfer_threads_worker): Add support for
6786 * target.h (struct target_ops): Add new function pointer,
6788 (target_thread_handle): Define.
6789 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6791 (thread_db_thread_handle): New function.
6793 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6795 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6796 * linux-low.h (thread_db_notice_clone): Declare.
6797 * thread-db.c (thread_db_notice_clone): New function.
6799 2017-09-21 Pedro Alves <palves@redhat.com>
6801 * server.c (gdb_read_memory, handle_status, process_serial_event)
6802 (handle_serial_event, handle_target_event): Adjust to
6803 set_desired_thread prototype change.
6804 * target.c (set_desired_thread): Remove 'use_general' parameter
6806 * target.h (set_desired_thread): Remove 'use_general' parameter.
6808 2017-09-20 Tom Tromey <tom@tromey.com>
6810 * target.c (target_terminal::terminal_state): Define.
6811 (target_terminal::init): Rename from target_terminal_init.
6812 (target_terminal::inferior): Rename from
6813 target_terminal_inferior.
6814 (target_terminal::ours): Rename from target_terminal_ours.
6815 (target_terminal::ours_for_output, target_terminal::info): New.
6817 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6819 * server.c (accumulate_file_name_length): Remove.
6820 (emit_dll_description): Adjust to std::string change.
6821 (handle_qxfer_libraries): Use std::string to hold document.
6823 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6825 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6826 return type of xml_escape_text.
6827 * server.c (emit_dll_description): Likewise.
6829 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6831 * server.c (captured_main): Accept argument for --selftest.
6832 Update run_tests call.
6833 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6834 when registering selftests.
6836 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6838 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6839 instead of "VEC" for "target_desc.reg_defs".
6840 (regcache_cpy): Likewise.
6841 (registers_to_string): Likewise.
6842 (registers_from_string): Likewise.
6843 (find_regno): Likewise.
6844 (supply_regblock): Likewise.
6845 (regcache_raw_read_unsigned): Likewise.
6846 * tdesc.c (init_target_desc): Likewise.
6847 (tdesc_create_reg): Likewise.
6848 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6849 (struct target_desc) <reg_defs>: Convert to "std::vector".
6850 (target_desc): Do not initialize "reg_defs".
6851 (~target_desc): Update code to use "std::vector" instead of "VEC"
6852 for "target_desc.reg_defs".
6853 (operator==): Likewise.
6855 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6857 * inferiors.h (thread_to_gdb_id): Remove.
6858 * inferiors.c (thread_to_gdb_id): Remove.
6859 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6860 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6861 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6863 * nto-low.c (nto_fetch_registers, nto_store_registers,
6864 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6866 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6868 * inferiors.h (gdb_id_to_thread_id): Remove.
6869 * inferiors.c (gdb_id_to_thread_id): Remove.
6870 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6871 removal. Move pid declaration closer to where it's used.
6873 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6875 * server.c (handle_detach): New function.
6876 (process_serial_event): Move code out, call handle_detach.
6878 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6880 * server.c (require_running): Rename to ...
6881 (require_running_or_return): ... this ...
6882 (require_running_or_break): ... and this.
6883 (handle_query, process_serial_event): Adjust.
6885 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6887 * linux-low.c (linux_set_resume_request): Remove unused
6890 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6892 * server.c (first_thread_of): Remove.
6893 (process_serial_event): Replace usage of first_thread_of with
6894 find_any_thread_of_pid.
6895 * tracepoint.c (same_process_p): Remove.
6896 (gdb_agent_about_to_close): Replace usage of same_process_p with
6897 find_any_thread_of_pid.
6898 * linux-x86-low.c (same_process_callback): Remove.
6899 (x86_arch_setup_process_callback): Replace usage of
6900 same_process_callback with find_any_thread_of_pid.
6901 * thread-db.c (any_thread_of): Remove.
6902 (switch_to_process): Replace usage of any_thread_of with
6903 find_any_thread_of_pid.
6904 * inferiors.c (thread_pid_matches_callback): Remove.
6905 (find_thread_process): Adjust to use find_any_thread_of_pid.
6907 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6909 * regcache.c (get_thread_regcache): Guard calls to "memset"
6912 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6914 * linux-low.c (handle_extended_wait): Use
6915 "allocate_target_description" instead of "XNEW".
6916 * linux-x86-low.c (initialize_low_arch): Likewise.
6918 2017-09-05 Yao Qi <yao.qi@linaro.org>
6920 * configure.srv (srv_i386_regobj): Remove.
6921 (srv_amd64_regobj): Remove.
6922 (srv_regobj): Set it to "" for x86 non-linux targets.
6923 * linux-x86-tdesc.c (i386_linux_read_description):
6924 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6925 (init_registers_i386): Remove the declaration.
6926 (tdesc_i386): Remove the declaration.
6927 (lynx_i386_arch_setup): Call i386_create_target_description.
6928 * nto-x86-low.c: Likewise.
6929 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6930 [!__x86_64__]: include arch/i386.h.
6931 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6933 2017-09-05 Yao Qi <yao.qi@linaro.org>
6935 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6936 i386/amd64-XXX-linux from it.
6938 2017-09-05 Yao Qi <yao.qi@linaro.org>
6940 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6942 (ipa_amd64_linux_regobj): Remove.
6943 (ipa_x32_linux_regobj): Remove.
6945 2017-09-05 Yao Qi <yao.qi@linaro.org>
6947 * Makefile.in (arch-amd64.o): New rule.
6948 * configure.srv: Append arch-amd64.o.
6949 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6950 (get_ipa_tdesc): Call amd64_linux_read_description.
6951 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6952 and init_registers_amd64_XXX.
6953 * linux-x86-low.c (x86_linux_read_description): Call
6954 amd64_linux_read_description.
6955 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6956 (initialize_low_arch): Don't call init_registers_x32_XXX and
6957 init_registers_amd64_XXX.
6958 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6959 and tdesc_amd64_XXX.
6960 [__x86_64__] (amd64_tdesc_test): New function.
6961 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6962 and init_registers_amd64_XXX.
6963 * linux-x86-tdesc.c: Include arch/amd64.h.
6964 (xcr0_to_tdesc_idx): New function.
6965 (i386_linux_read_description): New function.
6966 (amd64_get_ipa_tdesc_idx): New function.
6967 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6968 (amd64_get_ipa_tdesc): Declare.
6970 2017-09-05 Yao Qi <yao.qi@linaro.org>
6972 * configure.srv (srv_i386_linux_xmlfiles): Remove
6973 i386/i386-XXX-linux.xml from it.
6975 2017-09-05 Yao Qi <yao.qi@linaro.org>
6977 * configure.srv: Set srv_i386_linux_regobj empty if $development
6979 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6980 initialize_low_tdesc.
6981 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6982 with #if initialize_low_tdesc.
6983 * linux-x86-tdesc-selftest.c: New file.
6984 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6986 2017-09-05 Yao Qi <yao.qi@linaro.org>
6988 * Makefile.in (arch-i386.o): New rule.
6989 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6990 (x86_64-*-linux*): Likewise.
6991 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6992 include arch/i386.h.
6993 (i386_linux_read_description): Remove code and call
6994 i386_create_target_description.
6995 * tdesc.c (allocate_target_description): New function.
6996 * tdesc.h (set_tdesc_architecture): Remove declaration.
6997 (set_tdesc_osabi): Likewise.
6999 2017-09-05 Yao Qi <yao.qi@linaro.org>
7001 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7002 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7003 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7005 * server.c (get_features_xml): Call tdesc_get_features_xml.
7006 * tdesc.c (set_tdesc_architecture): New function.
7007 (set_tdesc_osabi): New function.
7008 (tdesc_get_features_xml): New function.
7009 (tdesc_create_feature): Add an argument.
7010 * tdesc.h (struct target_desc) <features>: New field.
7011 <arch, osabi>: New field.
7012 (~target_desc): xfree features, arch, and osabi.
7013 (target_desc::oerator==): Don't compare .xmltarget.
7014 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7015 (set_tdesc_osabi): Likewise.
7016 (tdesc_get_features_xml): Likewise.
7018 2017-09-05 Yao Qi <yao.qi@linaro.org>
7020 * linux-x86-tdesc.c: Include selftest.h.
7021 (i386_tdesc_test): New function.
7022 (initialize_low_tdesc): Call selftests::register_test.
7023 * tdesc.h: Include regdef.h.
7024 (target_desc): Override operator == and !=.
7026 2017-09-05 Yao Qi <yao.qi@linaro.org>
7028 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7029 (ipa_obj): Likewise.
7030 * linux-i386-ipa.c: Include common/x86-xstate.h
7031 (get_ipa_tdesc): Call i386_linux_read_description.
7032 (initialize_low_tracepoint): Don't call init_registers_XXX
7033 functions, call initialize_low_tdesc instead.
7034 * linux-x86-low.c (x86_linux_read_description): Call
7035 i386_linux_read_description.
7036 (initialize_low_arch): Don't call init_registers_i386_XXX
7037 functions, call initialize_low_tdesc.
7038 * linux-x86-tdesc.c: New file.
7039 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7040 (i386_get_ipa_tdesc_idx): Declare.
7041 (i386_get_ipa_tdesc): Declare.
7042 (initialize_low_tdesc): Declare.
7044 2017-09-05 Yao Qi <yao.qi@linaro.org>
7046 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7049 2017-09-05 Yao Qi <yao.qi@linaro.org>
7051 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7052 * regcache.c (get_thread_regcache): Use VEC_length.
7053 (init_register_cache): Likewise.
7054 (regcache_cpy): Likewise.
7055 (registers_to_string): Iterate reg_defs via VEC_iterate.
7056 (find_regno): Likewise.
7057 (find_register_by_number): Use VEC_index.
7058 (register_size): Call find_register_by_number.
7059 (register_data): Call find_register_by_number.
7060 (supply_regblock): Use VEC_length.
7061 (regcache_raw_read_unsigned): Likewise.
7062 * tdesc.c (init_target_desc): Iterate reg_defs via
7064 (default_description): Update initializer.
7065 (copy_target_description): Don't update field num_registers.
7066 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7067 <num_registers>: Remove.
7069 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7071 * Makefile.in (.SECONDARY): Define target.
7073 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7075 * linux-low.c (linux_wait_1): Adjust.
7076 * server.c (queue_stop_reply_callback): Adjust.
7078 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7080 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7081 QEnvironmentUnset and QEnvironmentReset packets.
7082 (handle_query): Inform remote that QEnvironmentHexEncoded,
7083 QEnvironmentUnset and QEnvironmentReset are supported.
7085 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7087 * inferiors.h (inferior_target_data): Rename to ...
7088 (thread_target_data): ... this.
7089 (inferior_regcache_data): Rename to ...
7090 (thread_regcache_data): ... this.
7091 (set_inferior_regcache_data): Rename to ...
7092 (set_thread_regcache_data): ... this.
7093 * inferiors.c (inferior_target_data): Rename to ...
7094 (thread_target_data): ... this.
7095 (inferior_regcache_data): Rename to ...
7096 (thread_regcache_data): ... this.
7097 (set_inferior_regcache_data): Rename to ...
7098 (set_thread_regcache_data): ... this.
7099 (free_one_thread): Update.
7100 * linux-low.h (get_thread_lwp): Update.
7101 * regcache.c (get_thread_regcache): Update.
7102 (regcache_invalidate_thread): Update.
7103 (free_register_cache_thread): Update.
7104 * win32-i386-low.c (update_debug_registers_callback): Update.
7105 (win32_get_current_dr): Update.
7106 * win32-low.c (thread_rec): Update.
7107 (delete_thread_info): Update.
7108 (continue_one_thread): Update.
7109 (suspend_one_thread): Update.
7111 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7113 * inferiors.c (set_inferior_target_data): Remove.
7114 * inferiors.h (set_inferior_target_data): Remove.
7116 2017-08-18 Yao Qi <yao.qi@linaro.org>
7118 * Makefile.in (OBS): Add selftest.o.
7119 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7120 * configure, config.in: Re-generated.
7121 * server.c: Include common/sefltest.h.
7122 (captured_main): Handle option --selftest.
7124 2017-08-09 Yao Qi <yao.qi@linaro.org>
7126 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7127 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7128 i386-avx-mpx.o and i386-mmx.o.
7129 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7130 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7131 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7132 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7133 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7134 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7135 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7136 i386/amd64-avx-mpx.xml.
7138 2017-08-09 Yao Qi <yao.qi@linaro.org>
7140 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7141 and x32-avx-avx512.o.
7142 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7143 i386/x32-avx-avx512.xml.
7145 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7147 * tracepoint.h (enum class fast_tpoint_collect_result): New
7149 (fast_tracepoint_collecting): Change return type to
7150 fast_tpoint_collect_result.
7151 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7152 * linux-low.h: Include tracepoint.h.
7153 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7154 fast_tpoint_collect_result.
7155 * linux-low.c (handle_tracepoints): Adjust.
7156 (linux_fast_tracepoint_collecting): Change return type to
7157 fast_tpoint_collect_result.
7158 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7159 linux_wait_1, stuck_in_jump_pad_callback,
7160 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7161 proceed_one_lwp): Adjust to type change.
7163 2017-07-10 Yao Qi <yao.qi@linaro.org>
7165 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7167 2017-06-29 Yao Qi <yao.qi@linaro.org>
7169 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7171 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7173 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7175 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7177 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7179 * linux-low.c (linux_create_inferior): Adjust code to access the
7180 environment information via 'gdb_environ' class.
7181 * lynx-low.c (lynx_create_inferior): Likewise.
7182 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7183 (get_environ): Return a pointer to 'our_environ'.
7184 (captured_main): Initialize 'our_environ'.
7185 * server.h (get_environ): Adjust prototype.
7186 * spu-low.c (spu_create_inferior): Adjust code to access the
7187 environment information via 'gdb_environ' class.
7189 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7191 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7192 usage of "register" keyword.
7194 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7196 * configure: Re-generate.
7198 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7200 * configure: Re-generate.
7202 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7204 * Makefile.in (COMPILE.pre): Add "-x c++".
7206 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7208 * fork-child.c: Conditionally include <signal.h>.
7210 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7212 * server.c (handle_general_set): Handle new packet
7213 "QStartupWithShell".
7214 (handle_query): Add "QStartupWithShell" to the list of supported
7216 (gdbserver_usage): Add help text explaining the
7217 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7219 (captured_main): Recognize and act upon the presence of the new
7222 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7223 Pedro Alves <palves@redhat.com>
7225 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7226 * configure: Regenerate.
7227 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7229 (i[34567]86-*-lynxos*): Likewise.
7230 (spu*-*-*): Likewise.
7231 * fork-child.c: New file.
7232 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7234 (linux_ptrace_fun): New function.
7235 (linux_create_inferior): Adjust function prototype to reflect
7236 change on "target.h". Adjust function code to use
7238 (linux_request_interrupt): Delete "signal_pid".
7239 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7240 (lynx_ptrace_fun): New function.
7241 (lynx_create_inferior): Adjust function prototype to reflect
7242 change on "target.h". Adjust function code to use
7244 * nto-low.c (nto_create_inferior): Adjust function prototype and
7245 code to reflect change on "target.h". Update comments.
7246 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7247 "common-terminal.h" and "environ.h".
7248 (terminal_fd): Moved to fork-child.c.
7249 (old_foreground_pgrp): Likewise.
7250 (restore_old_foreground_pgrp): Likewise.
7251 (last_status): Make it global.
7252 (last_ptid): Likewise.
7253 (our_environ): New variable.
7254 (startup_with_shell): Likewise.
7255 (program_name): Likewise.
7256 (program_argv): Rename to...
7257 (program_args): ...this.
7258 (wrapper_argv): New variable.
7259 (start_inferior): Delete function.
7260 (get_exec_wrapper): New function.
7261 (get_exec_file): Likewise.
7262 (get_environ): Likewise.
7263 (prefork_hook): Likewise.
7264 (post_fork_inferior): Likewise.
7265 (postfork_hook): Likewise.
7266 (postfork_child_hook): Likewise.
7267 (handle_v_run): Update code to deal with arguments coming from the
7268 remote host. Update calls from "start_inferior" to
7270 (captured_main): Likewise. Initialize environment variable. Call
7272 * server.h (post_fork_inferior): New prototype.
7273 (get_environ): Likewise.
7274 (last_status): Declare.
7275 (last_ptid): Likewise.
7276 (signal_pid): Likewise.
7277 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7278 (spu_ptrace_fun): New function.
7279 (spu_create_inferior): Adjust function prototype to reflect change
7280 on "target.h". Adjust function code to use "fork_inferior".
7281 * target.c (target_terminal_init): New function.
7282 (target_terminal_inferior): Likewise.
7283 (target_terminal_ours): Likewise.
7284 * target.h: Include <vector>.
7285 (struct target_ops) <create_inferior>: Update prototype.
7286 (create_inferior): Update macro.
7287 * utils.c (gdb_flush_out_err): New function.
7288 * win32-low.c (win32_create_inferior): Adjust function prototype
7289 and code to reflect change on "target.h".
7291 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7293 * inferiors.c (switch_to_thread): New function.
7295 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7297 * Makefile.in (SFILE): Add "common/job-control.c".
7298 (OBS): Add "job-control.o".
7300 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7302 * Makefile: Remove "@host_makefile_frag@".
7304 2017-05-05 Pedro Alves <palves@redhat.com>
7306 * configure: Regenerate.
7308 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7310 * configure: Regenerate.
7312 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7314 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7315 software_single_step change of return type to
7316 std::vector<CORE_ADDR>.
7317 * linux-low.c (install_software_single_step_breakpoints):
7319 * linux-low.h (install_software_single_step_breakpoints):
7322 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7324 * remote-utils.c: Include "gdb_termios.h" instead of
7326 * terminal.h: Delete file.
7328 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7330 * server.c: Include <vector>.
7331 <program_argv, wrapper_argv>: Convert to std::vector.
7332 (start_inferior): Rewrite function to use C++.
7333 (handle_v_run): Likewise. Update code that calculates the argv
7334 based on the vRun packet; use C++.
7335 (captured_main): Likewise.
7337 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7339 * server.c (handle_v_cont): Initialize thread_resume::thread
7342 2017-04-05 Pedro Alves <palves@redhat.com>
7344 * configure: Regenerate.
7346 2017-04-05 Pedro Alves <palves@redhat.com>
7348 * gdbreplay.c (sync_error): Constify.
7349 * linux-x86-low.c (push_opcode): Constify.
7351 2017-04-05 Pedro Alves <palves@redhat.com>
7353 * win32-low.c (get_child_debug_event)
7354 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7355 Report TARGET_WAITKIND_SPURIOUS instead.
7357 2017-04-05 Pedro Alves <palves@redhat.com>
7359 * remote-utils.c (remote_prepare, remote_open): Constify.
7360 * remote-utils.h (remote_prepare, remote_open): Constify.
7361 * server.c (captured_main): Constify 'port' handling.
7363 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7365 * Makefile.in (clean): Clear .deps.
7367 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7369 * .gitignore: Remove generated files, replace with wildcard.
7370 * (clean): Replace removal of generated files with wildcard.
7371 (version.c): Replace with...
7372 (version-generated.c): ...this.
7373 (xml-builtin.c): Replace with...
7374 (xml-builtin-generated.c): ...this.
7375 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7376 (%.c: *regformats*): Replace with...
7377 (%-generated.c: *regformats*): ...this.
7379 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7381 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7382 (xtensa_fill_gregset): Call collect_register_by_name for
7384 (xtensa_store_gregset): Call supply_register_by_name for
7387 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7389 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7390 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7391 (xtensa_store_gregset): Call supply_register for all registers in
7392 a0_regnum..a0_regnum + C0_NREGS range.
7394 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7396 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7397 (ax-ipa.o: ax.c): Remove.
7398 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7399 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7400 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7401 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7402 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7404 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7406 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7407 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7408 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7409 (errors-ipa.o: ../common/errors.c): Remove.
7410 (format-ipa.o: ../common/format.c): Remove.
7411 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7413 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7415 * Makefile.in (%-ipa.o: %.c): New rule.
7416 (tracepoint-ipa.o: tracepoint.c): Remove.
7417 (utils-ipa.o: utils.c): Remove.
7418 (remote-utils-ipa.o: remote-utils.c): Remove.
7419 (regcache-ipa.o: regcache.c): Remove.
7420 (i386-linux-ipa.o: i386-linux.c): Remove.
7421 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7422 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7423 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7424 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7425 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7426 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7427 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7428 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7429 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7430 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7431 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7432 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7433 (aarch64-ipa.o: aarch64.c): Remove.
7434 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7435 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7436 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7437 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7438 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7439 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7440 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7441 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7442 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7443 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7444 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7445 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7446 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7447 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7448 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7449 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7450 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7451 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7452 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7453 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7454 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7455 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7456 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7457 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7458 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7459 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7460 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7461 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7462 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7463 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7464 (tdesc-ipa.o: tdesc.c): Remove.
7465 (x32-linux-ipa.o: x32-linux.c): Remove.
7466 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7467 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7469 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7471 * Makefile.in (%.o: ../arch/%.c): New rule.
7472 (arm.o: ../arch/arm.c): Remove.
7473 (arm-linux.o: ../arch/arm-linux.c): Remove.
7474 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7475 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7477 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7479 * Makefile.in (%.o: ../nat/%.c): New rule.
7480 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7481 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7482 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7483 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7484 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7485 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7486 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7487 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7488 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7489 (linux-personality.o: ../nat/linux-personality.c): Remove.
7490 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7491 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7492 (x86-linux.o: ../nat/x86-linux.c): Remove.
7493 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7494 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7496 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7498 * Makefile.in (%.o: ../common/%.c): New rule.
7499 (signals.o: ../common/signals.c): Remove.
7500 (print-utils.o: ../common/print-utils.c): Remove.
7501 (rsp-low.o: ../common/rsp-low.c): Remove.
7502 (common-utils.o: ../common/common-utils.c): Remove.
7503 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7504 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7505 (vec.o: ../common/vec.c): Remove.
7506 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7507 (xml-utils.o: ../common/xml-utils.c): Remove.
7508 (ptid.o: ../common/ptid.c): Remove.
7509 (buffer.o: ../common/buffer.c): Remove.
7510 (format.o: ../common/format.c): Remove.
7511 (filestuff.o: ../common/filestuff.c): Remove.
7512 (agent.o: ../common/agent.c): Remove.
7513 (errors.o: ../common/errors.c): Remove.
7514 (environ.o: ../common/environ.c): Remove.
7515 (common-debug.o: ../common/common-debug.c): Remove.
7516 (cleanups.o: ../common/cleanups.c): Remove.
7517 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7518 (fileio.o: ../common/fileio.c): Remove.
7519 (common-regcache.o: ../common/common-regcache.c): Remove.
7520 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7521 (new-op.o: ../common/new-op.c): Remove.
7522 (btrace-common.o: ../common/btrace-common.c): Remove.
7524 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7526 * Makefile.in (%.o: ../target/%.c): New rule.
7527 (waitstatus.o: ../target/waitstatus.c): Remove.
7529 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7532 (%.c: ../regformats/%.dat,
7533 (%.c: ../regformats/arm/%.dat,
7534 (%.c: ../regformats/i386/%.dat,
7535 (%.c: ../regformats/rs6000/%.dat): New rules.
7536 (aarch64.c): Remove.
7537 (reg-arm.c): Remove.
7538 (arm-with-iwmmxt.c): Remove.
7539 (arm-with-vfpv2.c): Remove.
7540 (arm-with-vfpv3.c): Remove.
7541 (arm-with-neon.c): Remove.
7542 (reg-bfin.c): Remove.
7543 (reg-cris.c): Remove.
7544 (reg-crisv32.c): Remove.
7546 (i386-linux.c): Remove.
7547 (i386-avx.c): Remove.
7548 (i386-avx-linux.c): Remove.
7549 (i386-avx-avx512.c): Remove.
7550 (i386-avx-avx512-linux.c): Remove.
7551 (i386-mpx.c): Remove.
7552 (i386-mpx-linux.c): Remove.
7553 (i386-avx-mpx-avx512-pku.c): Remove.
7554 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7555 (i386-avx-mpx.c): Remove.
7556 (i386-avx-mpx-linux.c): Remove.
7557 (i386-mmx.c): Remove.
7558 (i386-mmx-linux.c): Remove.
7559 (reg-ia64.c): Remove.
7560 (reg-m32r.c): Remove.
7561 (reg-m68k.c): Remove.
7563 (mips-linux.c): Remove.
7564 (mips-dsp-linux.c): Remove.
7565 (mips64-linux.c): Remove.
7566 (mips64-dsp-linux.c): Remove.
7567 (nios2-linux.c): Remove.
7568 (powerpc-32.c): Remove.
7569 (powerpc-32l.c): Remove.
7570 (powerpc-altivec32l.c): Remove.
7571 (powerpc-cell32l.c): Remove.
7572 (powerpc-vsx32l.c): Remove.
7573 (powerpc-isa205-32l.c): Remove.
7574 (powerpc-isa205-altivec32l.c): Remove.
7575 (powerpc-isa205-vsx32l.c): Remove.
7576 (powerpc-e500l.c): Remove.
7577 (powerpc-64l.c): Remove.
7578 (powerpc-altivec64l.c): Remove.
7579 (powerpc-cell64l.c): Remove.
7580 (powerpc-vsx64l.c): Remove.
7581 (powerpc-isa205-64l.c): Remove.
7582 (powerpc-isa205-altivec64l.c): Remove.
7583 (powerpc-isa205-vsx64l.c): Remove.
7584 (s390-linux32.c): Remove.
7585 (s390-linux32v1.c): Remove.
7586 (s390-linux32v2.c): Remove.
7587 (s390-linux64.c): Remove.
7588 (s390-linux64v1.c): Remove.
7589 (s390-linux64v2.c): Remove.
7590 (s390-te-linux64.c): Remove.
7591 (s390-vx-linux64.c): Remove.
7592 (s390-tevx-linux64.c): Remove.
7593 (s390x-linux64.c): Remove.
7594 (s390x-linux64v1.c): Remove.
7595 (s390x-linux64v2.c): Remove.
7596 (s390x-te-linux64.c): Remove.
7597 (s390x-vx-linux64.c): Remove.
7598 (s390x-tevx-linux64.c): Remove.
7599 (tic6x-c64xp-linux.c): Remove.
7600 (tic6x-c64x-linux.c): Remove.
7601 (tic6x-c62x-linux.c): Remove.
7603 (reg-sparc64.c): Remove.
7604 (reg-spu.c): Remove.
7606 (amd64-linux.c): Remove.
7607 (amd64-avx.c): Remove.
7608 (amd64-avx-linux.c): Remove.
7609 (amd64-avx-avx512.c): Remove.
7610 (amd64-avx-avx512-linux.c): Remove.
7611 (amd64-mpx.c): Remove.
7612 (amd64-mpx-linux.c): Remove.
7613 (amd64-avx-mpx-avx512-pku.c): Remove.
7614 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7615 (amd64-avx-mpx.c): Remove.
7616 (amd64-avx-mpx-linux.c): Remove.
7618 (x32-linux.c): Remove.
7619 (x32-avx.c): Remove.
7620 (x32-avx-linux.c): Remove.
7621 (x32-avx-avx512.c): Remove.
7622 (x32-avx-avx512-linux.c): Remove.
7623 (reg-xtensa.c): Remove.
7624 (reg-tilegx.c): Remove.
7625 (reg-tilegx32.c): Remove.
7627 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7629 * Makefile.in (SFILES): Add "common/environ.c".
7630 (OBJS): Add "common/environ.h".
7632 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7634 * configure.ac: Check if the fs_base and gs_base members of
7635 `struct user_regs_struct' exist.
7636 * config.in: Regenerated.
7637 * configure: Likewise.
7639 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7641 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7643 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7644 (get_next_pcs_syscall_next_pc): Likewise.
7646 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7648 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7649 * nto-x86-low.c: Likewise.
7651 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7653 * Makefile.in: Include disable-implicit-rules.mk.
7655 2016-11-23 Pedro Alves <palves@redhat.com>
7657 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7658 (debug_vprintf): Use std::chrono::steady_clock instead of
7659 gettimeofday. Use '.' instead of ':'.
7660 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7661 (get_timestamp): Use std::chrono::steady_clock instead of
7664 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7666 * Makefile.in: Fix whitespace formatting.
7668 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7670 * Makefile.in (SFILES, OBS): Flatten list and order
7673 2016-11-23 Pedro Alves <palves@redhat.com>
7675 * event-loop.c (handle_file_event): Use warning.
7676 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7677 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7680 2016-11-23 Pedro Alves <palves@redhat.com>
7682 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7684 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7685 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7686 debug_printf and debug_flush for debug output.
7687 * server.c (handle_general_set): Likewise.
7688 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7691 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7693 * Makefile.in (.c.o): Replace rule with ...
7694 (%.o: %.c): ... this one.
7696 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7698 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7699 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7701 * configure.ac: Remove checks for the make program.
7702 * configure: Re-generate.
7704 2016-10-28 Pedro Alves <palves@redhat.com>
7706 * Makefile.in (CXX_DIALECT): Get from configure.
7707 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7708 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7709 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7710 * config.in: Regenerate.
7711 * configure: Regenerate.
7713 2016-10-27 Yao Qi <yao.qi@linaro.org>
7715 * linux-low.c (linux_supports_range_stepping): Return true if
7716 can_software_single_step return true.
7718 2016-10-27 Yao Qi <yao.qi@linaro.org>
7720 * inferiors.c (find_inferior_in_random): New function.
7721 * inferiors.h (find_inferior_in_random): Declare.
7722 * linux-low.c (linux_wait_for_event_filtered): Call
7723 find_inferior_in_random instead of find_inferior.
7725 2016-10-27 Yao Qi <yao.qi@linaro.org>
7727 * linux-low.c (linux_wait_1): If single-step breakpoints are
7728 inserted, remove them.
7730 2016-10-26 Pedro Alves <palves@redhat.com>
7732 * linux-low.c (handle_extended_wait): Link parent/child fork
7734 (linux_wait_1): Unlink them.
7735 (linux_set_resume_request): Ignore resume requests for
7736 already-resumed and unhandled fork child threads.
7737 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7738 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7740 (handle_v_requests) <vCont>: Don't call require_running.
7741 * server.h (in_queued_stop_replies): New declaration.
7743 2016-10-24 Yao Qi <yao.qi@linaro.org>
7746 * linux-aarch64-low.c (append_insns): Cast the return value to
7749 2016-10-10 Yao Qi <yao.qi@linaro.org>
7751 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7753 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7755 * target.c (target_supports_multi_process): New function, moved
7757 * target.h (target_supports_multi_process): ... here. Remove
7760 2016-10-05 Tom Tromey <tom@tromey.com>
7763 * tracepoint.c (handle_tracepoint_bkpts): Check
7764 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7766 2016-10-05 Yao Qi <yao.qi@linaro.org>
7768 * configure.srv: Update the path of arm-*.xml files.
7770 2016-10-05 Terry Guo <terry.guo@arm.com>
7771 Yao Qi <yao.qi@linaro.org>
7773 * Makefile.in: Adjust the path of rules.
7774 * configure.srv: Update the path of xml files.
7775 * regformats/arm-with-iwmmxt.dat: Regenerated.
7776 * regformats/arm-with-neon.dat: Likewise.
7777 * regformats/arm-with-vfpv2.dat: Likewise.
7778 * regformats/arm-with-vfpv3.dat Likewise.
7780 2016-09-30 Yao Qi <yao.qi@linaro.org>
7783 * target.c (target_stop_and_wait): Don't call
7784 target_continue_no_signal, use resume_stop instead.
7786 2016-09-26 Yao Qi <yao.qi@linaro.org>
7788 * linux-low.c (linux_wait_1): Call debug_exit.
7790 2016-09-23 Pedro Alves <palves@redhat.com>
7792 * Makefile.in (SFILES): Add common/new-op.c.
7793 (OBS): Add common/new-op.o.
7794 (new-op.o): New rule.
7796 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7798 * .gitinore: Ignore more files.
7800 2016-09-21 Yao Qi <yao.qi@linaro.org>
7802 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7805 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7807 * server.c (start_inferior): Call target_mourn_inferior instead of
7808 mourn_inferior; pass ptid_t argument to it.
7810 (handle_target_event): Likewise.
7811 * target.c (target_mourn_inferior): New function.
7812 * target.h (mourn_inferior): Delete macro.
7814 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7816 * linux-low.c (lwp_is_stepping): New function.
7818 2016-09-06 Carl Love <cel@us.ibm.com>
7820 * server.c (start_inferior): Fixed comment, requested comment change
7821 didn't get updated correctly. Removed reference to ptrace () call as
7822 it is only true on Linux systems.
7824 2016-09-06 Carl Love <cel@us.ibm.com>
7826 * server.c (start_inferior): Do not call
7827 function target_post_create_inferior () if the
7828 inferior process has already exited.
7830 2016-09-05 Pedro Alves <palves@redhat.com>
7832 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7833 (COMPILE.pre, CC_LD): Use CXX directly.
7834 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7835 * acinclude.m4: Don't include build-with-cxx.m4.
7836 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7837 * configure: Regenerate.
7839 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7842 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7843 call writing data to own_buf.
7845 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7847 * target.c (mywait): Call target_wait instead of
7849 (target_wait): New function.
7851 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7853 * server.c (start_inferior): New variable 'ptid'. Replace calls
7854 to the_target->resume by target_continue{,_no_signal}, depending
7856 * target.c (target_stop_and_wait): Call target_continue_no_signal
7857 instead of the_target->resume.
7858 (target_continue): New function.
7860 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7862 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7864 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7867 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7869 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7870 * linux-arm-low.c (ps_get_thread_area): Likewise.
7871 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7872 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7873 * linux-mips-low.c (ps_get_thread_area): Likewise.
7874 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7875 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7876 * linux-x86-low.c (ps_get_thread_area): Likewise.
7877 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7879 2016-08-19 Pedro Alves <palves@redhat.com>
7881 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7883 2016-08-19 Pedro Alves <palves@redhat.com>
7885 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7886 comment. Use memcpy instead of casting through unsigned long.
7888 2016-08-19 Pedro Alves <palves@redhat.com>
7890 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7891 allocating around 0x80000000.
7893 2016-08-19 Pedro Alves <palves@redhat.com>
7896 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7897 (x32-avx512-linux-ipa.o): New rules.
7898 * configure.ac (x86_64-*-linux*): New x32 check.
7899 * configure.srv (ipa_x32_linux_regobj): New.
7900 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7901 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7903 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7905 * configure: Regenerate.
7907 2016-08-09 Pedro Alves <palves@redhat.com>
7910 * Makefile.in (OBS): Add signals-state-save-restore.o.
7911 (signals-state-save-restore.o): New rule.
7912 * config.in: Regenerate.
7913 * configure: Regenerate.
7914 * linux-low.c: Include "signals-state-save-restore.h".
7915 (linux_create_inferior): Call
7916 restore_original_signals_state.
7917 * server.c: Include "dispositions-save-restore.h".
7918 (captured_main): Call save_original_signals_state.
7920 2016-08-05 Pedro Alves <palves@redhat.com>
7922 * configure: Regenerate.
7924 2016-08-04 Yao Qi <yao.qi@linaro.org>
7926 * linux-low.c (regsets_fetch_inferior_registers): Check
7927 errno is ESRCH or not.
7929 2016-08-02 Yao Qi <yao.qi@linaro.org>
7931 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7932 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7933 (thread_db_load_search): Update.
7934 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7935 td_ta_set_event and td_ta_event_getmsg.
7937 2016-07-26 Pedro Alves <palves@redhat.com>
7940 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7941 of unsigned long for 64-bit registers and use uint32_t instead of
7942 unsigned int for 32-bit registers.
7944 2016-07-26 Pedro Alves <palves@redhat.com>
7946 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7949 2016-07-21 Tom Tromey <tom@tromey.com>
7951 * configure: Rebuild.
7953 2016-07-21 Yao Qi <yao.qi@linaro.org>
7955 * mem-break.c (find_gdb_breakpoint): Cast bp to
7956 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7958 2016-07-21 Yao Qi <yao.qi@linaro.org>
7960 * server.c (handle_v_requests): Support s and S actions
7961 if target_supports_software_single_step return true.
7963 2016-07-21 Yao Qi <yao.qi@linaro.org>
7965 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7966 is resume_step, call maybe_hw_step.
7967 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7969 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7971 (proceed_one_lwp): If resume request is resume_step, install
7972 reinsert breakpoints and call maybe_hw_step.
7974 2016-07-21 Yao Qi <yao.qi@linaro.org>
7976 * linux-low.c (proceed_one_lwp): Declare.
7977 (linux_resume_one_thread): Remove local variable 'step'.
7978 Lift code enqueue signal. Call proceed_one_lwp instead of
7979 linux_resume_one_lwp.
7981 2016-07-21 Yao Qi <yao.qi@linaro.org>
7983 * linux-low.c (linux_resume_one_thread): Call
7984 enqueue_pending_signal.
7986 2016-07-21 Yao Qi <yao.qi@linaro.org>
7988 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7989 * inferiors.c (do_restore_current_thread_cleanup): New function.
7990 (make_cleanup_restore_current_thread): Likewise.
7991 * linux-low.c (install_software_single_step_breakpoints): Call
7992 make_cleanup_restore_current_thread. Switch current_thread to
7995 2016-07-21 Yao Qi <yao.qi@linaro.org>
7997 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7998 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7999 (clone_one_breakpoint): Likewise.
8000 (delete_reinsert_breakpoints): Change parameter to thread.
8002 (has_reinsert_breakpoints): Likewise.
8003 (uninsert_reinsert_breakpoints): Likewise.
8004 (reinsert_reinsert_breakpoints): Likewise.
8005 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8006 (delete_reinsert_breakpoints): Likewise.
8007 (reinsert_reinsert_breakpoints): Likewise.
8008 (uninsert_reinsert_breakpoints): Likewise.
8009 (has_reinsert_breakpoints): Likewise.
8011 2016-07-21 Yao Qi <yao.qi@linaro.org>
8013 * inferiors.c (get_thread_process): Make parameter const.
8014 * inferiors.h (get_thread_process): Update declaration.
8015 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8016 Add new parameters child_thread and parent_thread. Callers
8018 * mem-break.h (clone_all_breakpoints): Update declaration.
8020 2016-07-21 Yao Qi <yao.qi@linaro.org>
8022 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8023 <command_list, handler>: Remove.
8024 (struct gdb_breakpoint): New.
8025 (struct other_breakpoint): New.
8026 (struct reinsert_breakpoint): New.
8027 (is_gdb_breakpoint): New function.
8028 (any_persistent_commands): Update command_list if
8029 is_gdb_breakpoint returns true.
8030 (set_breakpoint): Create breakpoints according to their types.
8031 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8032 (set_gdb_breakpoint_1): Likewise.
8033 (set_gdb_breakpoint): Likewise.
8034 (clear_breakpoint_conditions): Change parameter type to
8035 'struct gdb_breakpoint *'.
8036 (clear_breakpoint_commands): Likewise.
8037 (clear_breakpoint_conditions_and_commands): Likewise.
8038 (add_condition_to_breakpoint): Likewise.
8039 (add_breakpoint_condition): Likewise.
8040 (add_commands_to_breakpoint): Likewise.
8041 (check_breakpoints): Check other_breakpoint.
8042 (clone_one_breakpoint): Clone breakpopint according to its type.
8043 * mem-break.h (struct gdb_breakpoint): Declare.
8044 (set_gdb_breakpoint): Update declaration.
8045 (clear_breakpoint_conditions_and_commands): Likewise.
8046 (add_breakpoint_condition): Likewise.
8047 (add_breakpoint_commands): Likewise.
8048 * server.c (process_point_options): Change parameter type to
8049 'struct gdb_breakpoint *'.
8051 2016-07-21 Yao Qi <yao.qi@linaro.org>
8053 * mem-break.c (set_breakpoint_at): Rename it to ...
8054 (set_breakpoint_type_at): ... it.
8055 (set_breakpoint_at): Call set_breakpoint_type_at.
8056 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8057 * mem-break.h (set_breakpoint_at): Update comments.
8059 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8061 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8063 (nios2_store_gregset): Likewise.
8065 2016-07-01 Pedro Alves <palves@redhat.com>
8066 Antoine Tremblay <antoine.tremblay@ericsson.com>
8068 * linux-low.c: Change interface to take the target lwp_info
8069 pointer directly and return void. Handle detaching from a zombie
8071 (linux_detach_lwp_callback): New function.
8072 (linux_detach): Detach from the leader thread after detaching from
8075 2016-06-28 Yao Qi <yao.qi@linaro.org>
8077 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8078 for variable new_offset.
8079 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8080 (aarch64_ftrace_insn_reloc_cb): Likewise.
8081 (aarch64_ftrace_insn_reloc_tb): Likewise.
8082 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8083 PRIx64 instead of PRIx32.
8085 2016-06-28 Yao Qi <yao.qi@linaro.org>
8087 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8088 (the_low_target): Install arm_get_syscall_trapinfo.
8090 2016-06-28 Yao Qi <yao.qi@linaro.org>
8092 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8094 (the_low_target): Install aarch64_get_syscall_trapinfo.
8096 2016-06-28 Yao Qi <yao.qi@linaro.org>
8098 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8100 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8101 Remove parameter sysno.
8102 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8105 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8107 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8108 (s390_emit_ne_goto): Likewise.
8109 (s390_emit_lt_goto): Likewise.
8110 (s390_emit_le_goto): Likewise.
8111 (s390_emit_gt_goto): Likewise.
8112 (s390_emit_ge_goto): Likewise.
8113 (s390x_emit_eq_goto): Likewise.
8114 (s390x_emit_ne_goto): Likewise.
8115 (s390x_emit_lt_goto): Likewise.
8116 (s390x_emit_le_goto): Likewise.
8117 (s390x_emit_gt_goto): Likewise.
8118 (s390x_emit_ge_goto): Likewise.
8119 (s390_emit_ops_impl): Mark variable static.
8120 (s390x_emit_ops): Likewise.
8122 2016-06-17 Yao Qi <yao.qi@linaro.org>
8124 * linux-low.c (handle_extended_wait): Call
8125 uninsert_reinsert_breakpoints for the parent process. Remove
8126 reinsert breakpoints from the child process. Reinsert them to
8127 the parent process when vfork is done.
8128 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8129 (reinsert_reinsert_breakpoints): New function.
8130 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8131 (reinsert_reinsert_breakpoints): Declare.
8133 2016-06-17 Yao Qi <yao.qi@linaro.org>
8135 * linux-low.c (handle_extended_wait): If the parent is doing
8136 step-over, remove the reinsert breakpoints from the forked child.
8138 2016-06-17 Yao Qi <yao.qi@linaro.org>
8140 * linux-low.c (unsuspend_all_lwps): Declare.
8141 (linux_low_filter_event): If thread exited, call finish_step_over.
8142 If step-over is finished, unsuspend other threads.
8144 2016-06-17 Yao Qi <yao.qi@linaro.org>
8146 * linux-low.c (linux_resume_one_lwp_throw): Assert
8147 has_reinsert_breakpoints returns false.
8148 * mem-break.c (delete_disabled_breakpoints): Assert
8149 bp type isn't reinsert_breakpoint.
8151 2016-06-17 Yao Qi <yao.qi@linaro.org>
8153 * linux-low.c (maybe_hw_step): New function.
8154 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8155 (finish_step_over): Switch current_thread to lwp temporarily,
8156 and assert has_reinsert_breakpoints returns true.
8157 (proceed_one_lwp): Call maybe_hw_step.
8158 * mem-break.c (has_reinsert_breakpoints): New function.
8159 * mem-break.h (has_reinsert_breakpoints): Declare.
8161 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8163 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8165 2016-05-17 Yao Qi <yao.qi@linaro.org>
8167 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8168 instead of find_inferior.
8170 2016-05-05 Yao Qi <yao.qi@linaro.org>
8172 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8173 Initialize res to zero.
8175 2016-05-05 Yao Qi <yao.qi@linaro.org>
8177 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8180 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8182 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8183 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8184 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8186 2016-04-28 Par Olsson <par.olsson@windriver.com>
8187 Simon Marchi <simon.marchi@ericsson.com>
8189 * tracepoint.c (write_inferior_int8): New function.
8190 (cmd_qtenable_disable): Write enable flag using
8191 write_inferior_int8.
8193 2016-04-25 Yao Qi <yao.qi@linaro.org>
8195 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8196 (need_step_over_p): Return zero if the LWP has pending signals
8197 can be delivered on software single step target.
8199 2016-04-25 Yao Qi <yao.qi@linaro.org>
8201 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8202 return instead of error.
8204 2016-04-22 Yao Qi <yao.qi@linaro.org>
8206 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8209 2016-04-22 Yao Qi <yao.qi@linaro.org>
8211 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8212 signal when stepping over breakpoint with software single
8215 2016-04-21 Pedro Alves <palves@redhat.com>
8217 * linux-s390-low.c (s390_collect_ptrace_register)
8218 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8220 (s390_check_regset): Use void * instead of gdb_byte *.
8222 2016-04-20 Pedro Alves <palves@redhat.com>
8224 * configure: Renegerate.
8226 2016-04-20 Yao Qi <yao.qi@linaro.org>
8228 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8229 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8231 (arm_store_gregset): Likewise.
8233 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8235 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8236 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8237 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8238 (amd64-avx-mpx-linux.c): New rules.
8239 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8240 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8241 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8242 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8243 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8244 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8245 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8246 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8247 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8248 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8249 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8250 * linux-x86-low.c (x86_linux_read_description): Add case for
8251 X86_XSTATE_AVX_MPX_MASK.
8252 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8253 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8254 init_registers_i386_avx_mpx_linux.
8255 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8256 (initialize_low_tracepoint): Call
8257 init_registers_i386_avx_mpx_linux.
8258 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8259 (initialize_low_tracepoint): Call
8260 init_registers_amd64_avx_mpx_linux.
8261 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8262 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8263 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8266 2016-04-18 Pedro Alves <palves@redhat.com>
8268 * configure: Regenerate.
8270 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8272 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8273 (aarch64_emit_sub): Likewise.
8275 2016-04-12 Pedro Alves <palves@redhat.com>
8277 * utils.c (prepare_to_throw_exception): Delete.
8279 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8281 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8283 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8285 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8287 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8289 * linux-aarch64-ipa.c: Add <elf.h> include.
8290 * linux-ppc-ipa.c: Add <elf.h> include.
8291 * linux-s390-ipa.c: Add <elf.h> include.
8293 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8295 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8296 (get_raw_reg_ptr): Likewise.
8297 (get_trace_state_variable_value_ptr): Likewise.
8298 (set_trace_state_variable_value_ptr): Likewise.
8299 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8302 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8303 Marcin Kościelnicki <koriakin@0x04.net>
8306 * linux-ppc-low.c (emit_insns): New function.
8307 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8308 (ppc_emit_prologue): New function.
8309 (ppc_emit_epilogue): New function.
8310 (ppc_emit_add): New function.
8311 (ppc_emit_sub): New function.
8312 (ppc_emit_mul): New function.
8313 (ppc_emit_lsh): New function.
8314 (ppc_emit_rsh_signed): New function.
8315 (ppc_emit_rsh_unsigned): New function.
8316 (ppc_emit_ext): New function.
8317 (ppc_emit_zero_ext): New function.
8318 (ppc_emit_log_not): New function.
8319 (ppc_emit_bit_and): New function.
8320 (ppc_emit_bit_or): New function.
8321 (ppc_emit_bit_xor): New function.
8322 (ppc_emit_bit_not): New function.
8323 (ppc_emit_equal): New function.
8324 (ppc_emit_less_signed): New function.
8325 (ppc_emit_less_unsigned): New function.
8326 (ppc_emit_ref): New function.
8327 (ppc_emit_const): New function.
8328 (ppc_emit_reg): New function.
8329 (ppc_emit_pop): New function.
8330 (ppc_emit_stack_flush): New function.
8331 (ppc_emit_swap): New function.
8332 (ppc_emit_stack_adjust): New function.
8333 (ppc_emit_call): New function.
8334 (ppc_emit_int_call_1): New function.
8335 (ppc_emit_void_call_2): New function.
8336 (ppc_emit_if_goto): New function.
8337 (ppc_emit_goto): New function.
8338 (ppc_emit_eq_goto): New function.
8339 (ppc_emit_ne_goto): New function.
8340 (ppc_emit_lt_goto): New function.
8341 (ppc_emit_le_goto): New function.
8342 (ppc_emit_gt_goto): New function.
8343 (ppc_emit_ge_goto): New function.
8344 (ppc_write_goto_address): New function.
8345 (ppc_emit_ops_impl): New static variable.
8346 (ppc64v1_emit_prologue): New function.
8347 (ppc64v2_emit_prologue): New function.
8348 (ppc64_emit_epilogue): New function.
8349 (ppc64_emit_add): New function.
8350 (ppc64_emit_sub): New function.
8351 (ppc64_emit_mul): New function.
8352 (ppc64_emit_lsh): New function.
8353 (ppc64_emit_rsh_signed): New function.
8354 (ppc64_emit_rsh_unsigned): New function.
8355 (ppc64_emit_ext): New function.
8356 (ppc64_emit_zero_ext): New function.
8357 (ppc64_emit_log_not): New function.
8358 (ppc64_emit_bit_and): New function.
8359 (ppc64_emit_bit_or): New function.
8360 (ppc64_emit_bit_xor): New function.
8361 (ppc64_emit_bit_not): New function.
8362 (ppc64_emit_equal): New function.
8363 (ppc64_emit_less_signed): New function.
8364 (ppc64_emit_less_unsigned): New function.
8365 (ppc64_emit_ref): New function.
8366 (ppc64_emit_const): New function.
8367 (ppc64v1_emit_reg): New function.
8368 (ppc64v2_emit_reg): New function.
8369 (ppc64_emit_pop): New function.
8370 (ppc64_emit_stack_flush): New function.
8371 (ppc64_emit_swap): New function.
8372 (ppc64v1_emit_call): New function.
8373 (ppc64v2_emit_call): New function.
8374 (ppc64v1_emit_int_call_1): New function.
8375 (ppc64v2_emit_int_call_1): New function.
8376 (ppc64v1_emit_void_call_2): New function.
8377 (ppc64v2_emit_void_call_2): New function.
8378 (ppc64_emit_if_goto): New function.
8379 (ppc64_emit_eq_goto): New function.
8380 (ppc64_emit_ne_goto): New function.
8381 (ppc64_emit_lt_goto): New function.
8382 (ppc64_emit_le_goto): New function.
8383 (ppc64_emit_gt_goto): New function.
8384 (ppc64_emit_ge_goto): New function.
8385 (ppc64v1_emit_ops_impl): New static variable.
8386 (ppc64v2_emit_ops_impl): New static variable.
8387 (ppc_emit_ops): New function.
8388 (linux_low_target): Wire in ppc_emit_ops.
8390 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8391 Marcin Kościelnicki <koriakin@0x04.net>
8394 * Makefile.in: Add powerpc-*-ipa.o
8395 * configure.srv: Add ipa_obj for powerpc*-linux.
8396 * linux-ppc-ipa.c: New file.
8397 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8399 (PPC_FIELD): New macro.
8400 (PPC_SEXT): New macro.
8401 (PPC_OP6): New macro.
8402 (PPC_BO): New macro.
8403 (PPC_LI): New macro.
8404 (PPC_BD): New macro.
8405 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8406 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8407 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8408 (ppc_get_thread_area): New function.
8409 (is_elfv2_inferior): New function.
8410 (gen_ds_form): New function.
8411 (GEN_STD): New macro.
8412 (GEN_STDU): New macro.
8413 (GEN_LD): New macro.
8414 (GEN_LDU): New macro.
8415 (gen_d_form): New function.
8416 (GEN_ADDI): New macro.
8417 (GEN_ADDIS): New macro.
8418 (GEN_LI): New macro.
8419 (GEN_LIS): New macro.
8420 (GEN_ORI): New macro.
8421 (GEN_ORIS): New macro.
8422 (GEN_LWZ): New macro.
8423 (GEN_STW): New macro.
8424 (GEN_STWU): New macro.
8425 (gen_xfx_form): New function.
8426 (GEN_MFSPR): New macro.
8427 (GEN_MTSPR): New macro.
8428 (GEN_MFCR): New macro.
8429 (GEN_MTCR): New macro.
8430 (GEN_SYNC): New macro.
8431 (GEN_LWSYNC): New macro.
8432 (gen_x_form): New function.
8433 (GEN_OR): New macro.
8434 (GEN_MR): New macro.
8435 (GEN_LWARX): New macro.
8436 (GEN_STWCX): New macro.
8437 (GEN_CMPW): New macro.
8438 (gen_md_form): New function.
8439 (GEN_RLDICL): New macro.
8440 (GEN_RLDICR): New macro.
8441 (gen_i_form): New function.
8443 (GEN_BL): New macro.
8444 (gen_b_form): New function.
8445 (GEN_BNE): New macro.
8446 (GEN_LOAD): New macro.
8447 (GEN_STORE): New macro.
8448 (gen_limm): New function.
8449 (gen_atomic_xchg): New function.
8450 (gen_call): New function.
8451 (ppc_relocate_instruction): New function.
8452 (ppc_install_fast_tracepoint_jump_pad): New function.
8453 (ppc_get_min_fast_tracepoint_insn_len): New function.
8454 (ppc_get_ipa_tdesc_idx): New function.
8455 (the_low_target): Wire in the new functions.
8456 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8458 * linux-ppc-tdesc.h: New file.
8460 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8462 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8463 (alloc_jump_pad_buffer): New function.
8464 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8465 (alloc_jump_pad_buffer): New function.
8466 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8467 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8468 (alloc_jump_pad_buffer): New function.
8469 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8470 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8471 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8472 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8474 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8476 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8477 * linux-amd64-ipa.c: Likewise.
8478 * linux-i386-ipa.c: Likewise.
8479 * linux-s390-ipa.c: Likewise.
8480 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8481 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8482 set_trace_state_variable_value_ptr.
8483 (struct ipa_sym_addresses): Likewise.
8484 (symbol_list): Likewise.
8485 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8486 accessing gdb_collect directly.
8487 (gdb_collect_ptr_type): New typedef.
8488 (get_raw_reg_ptr_type): New typedef.
8489 (get_trace_state_variable_value_ptr_type): New typedef.
8490 (set_trace_state_variable_value_ptr_type): New typedef.
8491 (gdb_collect_ptr): New global.
8492 (get_raw_reg_ptr): New global.
8493 (get_trace_state_variable_value_ptr): New global.
8494 (set_trace_state_variable_value_ptr): New global.
8495 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8496 accessing get_raw_reg directly.
8497 (get_get_tsv_func_addr): Likewise for
8498 get_trace_state_variable_value_ptr.
8499 (get_set_tsv_func_addr): Likewise for
8500 set_trace_state_variable_value_ptr.
8501 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8503 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8505 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8507 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8509 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8511 (relocate_instruction): Remove own_buf.
8512 * server.c (own_buf): Make global.
8513 (handle_v_requests): Make global.
8514 * server.h (own_buf): New declaration.
8515 (handle_v_requests): New prototype.
8517 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8520 * linux-s390-low.c (add_insns): New function.
8521 (s390_emit_prologue): New function.
8522 (s390_emit_epilogue): New function.
8523 (s390_emit_add): New function.
8524 (s390_emit_sub): New function.
8525 (s390_emit_mul): New function.
8526 (s390_emit_lsh): New function.
8527 (s390_emit_rsh_signed): New function.
8528 (s390_emit_rsh_unsigned): New function.
8529 (s390_emit_ext): New function.
8530 (s390_emit_log_not): New function.
8531 (s390_emit_bit_and): New function.
8532 (s390_emit_bit_or): New function.
8533 (s390_emit_bit_xor): New function.
8534 (s390_emit_bit_not): New function.
8535 (s390_emit_equal): New function.
8536 (s390_emit_less_signed): New function.
8537 (s390_emit_less_unsigned): New function.
8538 (s390_emit_ref): New function.
8539 (s390_emit_if_goto): New function.
8540 (s390_emit_goto): New function.
8541 (s390_write_goto_address): New function.
8542 (s390_emit_litpool): New function.
8543 (s390_emit_const): New function.
8544 (s390_emit_call): New function.
8545 (s390_emit_reg): New function.
8546 (s390_emit_pop): New function.
8547 (s390_emit_stack_flush): New function.
8548 (s390_emit_zero_ext): New function.
8549 (s390_emit_swap): New function.
8550 (s390_emit_stack_adjust): New function.
8551 (s390_emit_set_r2): New function.
8552 (s390_emit_int_call_1): New function.
8553 (s390_emit_void_call_2): New function.
8554 (s390_emit_eq_goto): New function.
8555 (s390_emit_ne_goto): New function.
8556 (s390_emit_lt_goto): New function.
8557 (s390_emit_le_goto): New function.
8558 (s390_emit_gt_goto): New function.
8559 (s390_emit_ge_goto): New function.
8560 (s390x_emit_prologue): New function.
8561 (s390x_emit_epilogue): New function.
8562 (s390x_emit_add): New function.
8563 (s390x_emit_sub): New function.
8564 (s390x_emit_mul): New function.
8565 (s390x_emit_lsh): New function.
8566 (s390x_emit_rsh_signed): New function.
8567 (s390x_emit_rsh_unsigned): New function.
8568 (s390x_emit_ext): New function.
8569 (s390x_emit_log_not): New function.
8570 (s390x_emit_bit_and): New function.
8571 (s390x_emit_bit_or): New function.
8572 (s390x_emit_bit_xor): New function.
8573 (s390x_emit_bit_not): New function.
8574 (s390x_emit_equal): New function.
8575 (s390x_emit_less_signed): New function.
8576 (s390x_emit_less_unsigned): New function.
8577 (s390x_emit_ref): New function.
8578 (s390x_emit_if_goto): New function.
8579 (s390x_emit_const): New function.
8580 (s390x_emit_call): New function.
8581 (s390x_emit_reg): New function.
8582 (s390x_emit_pop): New function.
8583 (s390x_emit_stack_flush): New function.
8584 (s390x_emit_zero_ext): New function.
8585 (s390x_emit_swap): New function.
8586 (s390x_emit_stack_adjust): New function.
8587 (s390x_emit_int_call_1): New function.
8588 (s390x_emit_void_call_2): New function.
8589 (s390x_emit_eq_goto): New function.
8590 (s390x_emit_ne_goto): New function.
8591 (s390x_emit_lt_goto): New function.
8592 (s390x_emit_le_goto): New function.
8593 (s390x_emit_gt_goto): New function.
8594 (s390x_emit_ge_goto): New function.
8595 (s390_emit_ops): New function.
8596 (struct linux_target_ops): Fill in emit_ops hook.
8598 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8601 * Makefile.in: Add s390 IPA files.
8602 * configure.srv: Build IPA for s390.
8603 * linux-s390-ipa.c: New file.
8604 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8605 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8606 (tdesc_s390_linux32): Likewise.
8607 (init_registers_s390_linux32v1): Likewise.
8608 (tdesc_s390_linux32v1): Likewise.
8609 (init_registers_s390_linux32v2): Likewise.
8610 (tdesc_s390_linux32v2): Likewise.
8611 (init_registers_s390_linux64): Likewise.
8612 (tdesc_s390_linux64): Likewise.
8613 (init_registers_s390_linux64v1): Likewise.
8614 (tdesc_s390_linux64v1): Likewise.
8615 (init_registers_s390_linux64v2): Likewise.
8616 (tdesc_s390_linux64v2): Likewise.
8617 (init_registers_s390_te_linux64): Likewise.
8618 (tdesc_s390_te_linux64): Likewise.
8619 (init_registers_s390_vx_linux64): Likewise.
8620 (tdesc_s390_vx_linux64): Likewise.
8621 (init_registers_s390_tevx_linux64): Likewise.
8622 (tdesc_s390_tevx_linux64): Likewise.
8623 (init_registers_s390x_linux64): Likewise.
8624 (tdesc_s390x_linux64): Likewise.
8625 (init_registers_s390x_linux64v1): Likewise.
8626 (tdesc_s390x_linux64v1): Likewise.
8627 (init_registers_s390x_linux64v2): Likewise.
8628 (tdesc_s390x_linux64v2): Likewise.
8629 (init_registers_s390x_te_linux64): Likewise.
8630 (tdesc_s390x_te_linux64): Likewise.
8631 (init_registers_s390x_vx_linux64): Likewise.
8632 (tdesc_s390x_vx_linux64): Likewise.
8633 (init_registers_s390x_tevx_linux64): Likewise.
8634 (tdesc_s390x_tevx_linux64): Likewise.
8635 (have_hwcap_s390_vx): New static variable.
8636 (s390_arch_setup): Fill have_hwcap_s390_vx.
8637 (s390_get_thread_area): New function.
8638 (s390_ft_entry_gpr_esa): New const.
8639 (s390_ft_entry_gpr_zarch): New const.
8640 (s390_ft_entry_misc): New const.
8641 (s390_ft_entry_fr): New const.
8642 (s390_ft_entry_vr): New const.
8643 (s390_ft_main_31): New const.
8644 (s390_ft_main_64): New const.
8645 (s390_ft_exit_fr): New const.
8646 (s390_ft_exit_vr): New const.
8647 (s390_ft_exit_misc): New const.
8648 (s390_ft_exit_gpr_esa): New const.
8649 (s390_ft_exit_gpr_zarch): New const.
8650 (append_insns): New function.
8651 (s390_relocate_instruction): New function.
8652 (s390_install_fast_tracepoint_jump_pad): New function.
8653 (s390_get_min_fast_tracepoint_insn_len): New function.
8654 (s390_get_ipa_tdesc_idx): New function.
8655 (struct linux_target_ops): Wire in the above functions.
8656 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8657 * linux-s390-tdesc.h: New file.
8659 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8661 * linux-s390-low.c (s390_supports_tracepoints): New function.
8662 (struct linux_target_ops): Fill supports_tracepoints hook.
8664 2016-03-18 Yao Qi <yao.qi@linaro.org>
8666 * linux-low.c (lwp_signal_can_be_delivered): New function.
8667 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8669 2016-03-18 Yao Qi <yao.qi@linaro.org>
8671 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8672 0 if signal is enqueued. Remove 'signal' from one debugging
8673 message. Move one debugging message to some lines below.
8674 Remove code setting 'signal' to 0.
8676 2016-03-18 Yao Qi <yao.qi@linaro.org>
8678 * linux-low.c (linux_low_filter_event): Remove redundant
8679 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8681 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8683 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8684 (struct linux_target_ops): Wire in the above.
8686 2016-03-03 Yao Qi <yao.qi@linaro.org>
8688 * linux-low.c: Update comments to start_step_over.
8690 2016-03-03 Yao Qi <yao.qi@linaro.org>
8693 * linux-low.c (handle_extended_wait): Set child suspended
8694 if event_lwp->bp_reinsert isn't zero.
8696 2016-03-02 Yao Qi <yao.qi@linaro.org>
8698 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8699 enqueue_pending_signal.
8701 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8703 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8706 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8708 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8709 (s390_regmap_3264) [!__s390x__]: New global.
8710 (s390_collect_ptrace_register): Skip map entries containing -1.
8711 (s390_supply_ptrace_register): Ditto.
8712 (s390_fill_gprs_high): New function.
8713 (s390_store_gprs_high): New function.
8714 (s390_regsets): Add NT_S390_HIGH_GPRS.
8715 (s390_get_hwcap): Enable on 31-bit.
8716 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8717 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8718 Detect NT_S390_HIGH_GPRS.
8719 (s390_usrregs_info_3264): Enable on 31-bit.
8720 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8721 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8723 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8726 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8727 * configure.srv: Ditto.
8728 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8729 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8730 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8731 (init_registers_amd64_linux): Remove prototype.
8732 (tdesc_amd64_linux): Remove declaration.
8733 (get_ipa_tdesc): New function.
8734 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8735 initialize remaining tdescs.
8736 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8737 (init_registers_i386_linux): Remove prototype.
8738 (tdesc_i386_linux): Remove declaration.
8739 (get_ipa_tdesc): New function.
8740 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8741 initialize remaining tdescs.
8742 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8743 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8744 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8745 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8746 (x86_get_ipa_tdesc_idx): New function.
8747 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8748 * linux-x86-tdesc.h: New file.
8749 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8750 (target_get_ipa_tdesc_idx): New macro.
8751 * tracepoint.c (ipa_tdesc_idx): New macro.
8752 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8753 (symbol_list): Add ipa_tdesc_idx.
8754 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8755 (ipa_tdesc): Remove.
8756 (ipa_tdesc_idx): New variable.
8757 (get_context_regcache): Use get_ipa_tdesc.
8758 (gdb_collect): Ditto.
8760 * tracepoint.h (get_ipa_tdesc): New prototype.
8761 (ipa_tdesc): Remove.
8763 2016-02-24 Pedro Alves <palves@redhat.com>
8765 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8766 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8767 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8768 Factor out common code between the USE_SIGTRAP_SIGINFO and
8769 !USE_SIGTRAP_SIGINFO blocks.
8770 (linux_low_filter_event): Call save_stop_reason instead of
8771 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8773 (linux_wait_1): Update comments.
8775 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8777 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8778 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8779 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8780 ppc_insert_point, ppc_remove_point.
8782 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8784 * linux-s390-low.c (s390_supports_z_point_type): New function.
8785 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8787 2016-02-16 Yao Qi <yao.qi@linaro.org>
8789 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8790 PC. Get pc from regcache_read_pc.
8792 2016-02-12 Yao Qi <yao.qi@linaro.org>
8794 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8795 or linux_get_pc_32bit.
8796 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8798 2016-02-12 Yao Qi <yao.qi@linaro.org>
8800 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8801 arm_linux_get_next_pcs_fixup.
8803 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8805 * tracepoint.c (x_tracepoint_action_download): Change
8806 write_inferior_data_ptr to write_inferior_data_pointer.
8807 (cmd_qtstart): Likewise.
8808 (write_inferior_data_ptr): Remove.
8809 (download_agent_expr): Change write_inferior_data_ptr to
8810 write_inferior_data_pointer.
8811 (download_tracepoint_1): Likewise.
8812 (download_tracepoint): Likewise.
8813 (download_trace_state_variables): Likewise.
8815 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8816 Marcin Kościelnicki <koriakin@0x04.net>
8818 * tracepoint.c (struct tracepoint_action_ops): Remove.
8819 (struct tracepoint_action): Remove ops.
8820 (m_tracepoint_action_download, r_tracepoint_action_download)
8821 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8822 size and offset accordingly.
8823 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8824 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8825 (tracepoint_action_send, tracepoint_action_download): New functions.
8826 Helpers for trace action handlers.
8827 (add_tracepoint_action): Remove setup actions ops.
8828 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8830 2016-02-10 Yao Qi <yao.qi@linaro.org>
8832 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8834 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8836 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8838 * configure: Regenerate.
8840 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8842 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8843 void * to gdb_byte *.
8844 * linux-low.c (siginfo_fixup): Likewise.
8845 (linux_xfer_siginfo): Likewise.
8846 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8848 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8850 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8852 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8854 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8856 * linux-x86-low.c [__x86_64__]: Include
8857 "nat/amd64-linux-siginfo.h".
8858 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8859 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8860 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8861 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8862 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8863 (cpt_si_fd, si_timerid, si_overrun): Move from
8864 nat/amd64-linux-siginfo.c.
8865 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8867 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8869 * server.c (skip_to_semicolon): Remove.
8870 (process_point_options): Use strchrnul instead of
8873 2016-01-26 Yao Qi <yao.qi@linaro.org>
8875 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8876 * linux-low.c (install_software_single_step_breakpoints): Don't
8877 call regcache_read_pc.
8878 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8881 2016-01-26 Yao Qi <yao.qi@linaro.org>
8883 * linux-low.c (install_software_single_step_breakpoints): Call
8884 regcache_read_pc instead of get_pc.
8886 2016-01-26 Yao Qi <yao.qi@linaro.org>
8888 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8889 (unblock_async_io): Rename to ...
8890 (block_unblock_async_io): ... it. New function.
8891 (enable_async_io): Don't install SIGIO handler. Unblock it
8893 (disable_async_io): Don't ignore SIGIO. Block it instead.
8894 (initialize_async_io): Install SIGIO handler. Don't call
8897 2016-01-26 Yao Qi <yao.qi@linaro.org>
8899 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8900 first character is '\003', call *the_target->request_interrupt.
8902 2016-01-25 Yao Qi <yao.qi@linaro.org>
8904 * remote-utils.c (new_thread_notify): Remove.
8905 (dead_thread_notify): Likewise.
8906 * remote-utils.h (new_thread_notify): Remove declaration.
8907 (dead_thread_notify): Likewise.
8909 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8911 * gdb.trace/pending.exp: Fix expected message on continue.
8913 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8915 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8916 it works properly on big-endian machines where sizeof (CORE_ADDR)
8919 2016-01-21 Pedro Alves <palves@redhat.com>
8921 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8922 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8923 * configure: Regenerate.
8925 2016-01-21 Yao Qi <yao.qi@linaro.org>
8927 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8928 is_thumb and set it according to CPSR saved on the stack.
8929 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8930 arm_sigreturn_next_pc.
8932 2016-01-18 Yao Qi <yao.qi@linaro.org>
8934 * linux-low.c (linux_set_pc_64bit): New function.
8935 (linux_get_pc_64bit): New function.
8936 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8938 * linux-sparc-low.c (debug_threads): Remove declaration.
8939 (sparc_get_pc): Remove.
8940 (the_low_target): Use linux_get_pc_64bit instead of
8942 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8943 (the_low_target): Use linux_get_pc_64bit and
8946 2016-01-18 Yao Qi <yao.qi@linaro.org>
8948 * linux-arm-low.c (debug_threads): Remove declaration.
8949 (arm_get_pc, arm_set_pc): Remove.
8950 (the_low_target): Use linux_get_pc_32bit and
8952 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8953 (the_low_target): Use linux_get_pc_32bit and
8955 * linux-cris-low.c (debug_threads): Remove declaration.
8956 (cris_get_pc, cris_set_pc,): Remove.
8957 (the_low_target): Use linux_get_pc_32bit and
8959 * linux-crisv32-low.c (debug_threads): Remove declaration.
8960 (cris_get_pc, cris_set_pc): Remove.
8961 (the_low_target): Use linux_get_pc_32bit and
8963 * linux-low.c: Include inttypes.h.
8964 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8965 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8966 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8967 (the_low_target): Use linux_get_pc_32bit and
8969 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8970 (the_low_target): Use linux_get_pc_32bit and
8972 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8973 (the_low_target): Use linux_get_pc_32bit and
8975 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_32bit and
8978 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8979 (the_low_target): Use linux_get_pc_32bit and
8982 2016-01-18 Gary Benson <gbenson@redhat.com>
8984 * configure.ac (AC_FUNC_FORK): New check.
8985 * config.in: Regenerate.
8986 * configure: Likewise.
8988 2016-01-14 Yao Qi <yao.qi@linaro.org>
8990 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8991 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8992 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8993 arm_get_next_pcs_ctor.
8995 2016-01-12 Josh Stone <jistone@redhat.com>
8996 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8998 * inferiors.h: Include "gdb_vecs.h".
8999 (struct process_info): Add syscalls_to_catch.
9000 * inferiors.c (remove_process): Free syscalls_to_catch.
9001 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9002 syscall_return stops.
9003 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9004 * server.c (handle_general_set): Handle QCatchSyscalls.
9005 (handle_query): Report support for QCatchSyscalls.
9006 * target.h (struct target_ops): Add supports_catch_syscall.
9007 (target_supports_catch_syscall): New macro.
9008 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9009 (struct lwp_info): Add syscall_state.
9010 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9011 Maintain syscall_state and syscalls_to_catch across exec.
9012 (get_syscall_trapinfo): New function, proxy to the_low_target.
9013 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9014 (linux_low_filter_event): Toggle syscall_state entry/return for
9015 syscall traps, and set it ignored for all others.
9016 (gdb_catching_syscalls_p): New function.
9017 (gdb_catch_this_syscall_p): New function.
9018 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9019 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9020 (linux_supports_catch_syscall): New function.
9021 (linux_target_ops): Install it.
9022 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9023 (the_low_target): Install it.
9025 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9027 * acinclude.m4: Include new ../warning.m4 file.
9028 * configure: Regenerated.
9029 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9031 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9033 * ax.c (is_goto_target): Mark static.
9034 * linux-low.c (register_addr): Likewise.
9035 (linux_fetch_registers, linux_store_registers): Likewise.
9036 * mem-break.c (any_persistent_commands): Fix old prototype.
9037 (add_commands_to_breakpoint): Mark static.
9038 * regcache.c (find_register_by_name): Delete unused func.
9039 * remote-utils.c (hex_or_minus_one): Mark static.
9040 * server.c (monitor_show_help): Mark static.
9041 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9042 handle_v_requests): Likewise.
9044 2016-01-12 Pedro Alves <palves@redhat.com>
9046 Remove use of the registered trademark symbol throughout.
9048 2016-01-08 Yao Qi <yao.qi@linaro.org>
9050 * remote-utils.c (getpkt): If c is '\003', call target hook
9053 2016-01-06 Yao Qi <yao.qi@linaro.org>
9055 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9056 linux-aarch32-low.c.
9057 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9058 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9059 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9060 (thumb2_breakpoint): Declare.
9061 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9062 linux-aarch32-low.h.
9063 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9064 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9065 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9067 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9069 * gdbreplay.c (gdbreplay_version): Change copyright year in
9071 * server.c (gdbserver_version): Likewise.
9073 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9075 * server.c (crc32_table): Delete.
9076 (crc32): Use libiberty's xcrc32 function.
9078 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9080 * lynx-low.c (lynx_delete_thread_callback): New function.
9081 (lynx_mourn): Properly delete our process and all of its
9082 threads. Remove call to clear_inferiors.
9084 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9086 * target.c (thread_search_callback): Add check that
9087 the thread_stopped target callback is not NULL before
9090 2015-12-21 Yao Qi <yao.qi@linaro.org>
9092 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9095 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9097 * server.c (handle_query): Call target_supports_software_single_step.
9099 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9101 * linux-low.c (single_step): New function.
9102 (linux_resume_one_lwp_throw): Call single_step.
9103 (start_step_over): Likewise.
9105 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9107 * Makefile.in (SFILES): Append arch/arm-linux.c,
9108 arch/arm-get-next-pcs.c.
9109 (arm-linux.o): New rule.
9110 (arm-get-next-pcs.o): New rule.
9111 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9113 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9114 to linux-aarch32-low.c.
9115 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9116 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9117 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9118 (thumb2_breakpoint_len): Likewise.
9119 (arm_is_thumb_mode): Make non-static.
9120 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9121 from linux-aarch32-low.c.
9122 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9123 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9124 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9125 (thumb2_breakpoint_len): Likewise.
9126 (arm_is_thumb_mode): New declaration.
9127 * linux-arm-low.c: Include arch/arm-linux.h
9128 aarch/arm-get-next-pcs.h, sys/syscall.h.
9129 (get_next_pcs_ops): New struct.
9130 (get_next_pcs_addr_bits_remove): New function.
9131 (get_next_pcs_is_thumb): New function.
9132 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9133 (arm_sigreturn_next_pc): Likewise.
9134 (get_next_pcs_syscall_next_pc): Likewise.
9135 (arm_gdbserver_get_next_pcs): Likewise.
9136 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9138 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9139 * server.h: Include gdb_vecs.h.
9141 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9143 * Makefile.in (SFILES): Append common/common-regcache.c.
9144 (OBS): Append common-regcache.o.
9145 (common-regcache.o): New rule.
9146 * regcache.c (init_register_cache): Initialize cache to
9148 (regcache_raw_read_unsigned): New function.
9149 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9150 register_status enum.
9152 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9154 * linux-aarch64-low.c (the_low_targets): Rename
9155 breakpoint_reinsert_addr to get_next_pcs.
9156 * linux-arm-low.c (the_low_targets): Likewise.
9157 * linux-bfin-low.c (the_low_targets): Likewise.
9158 * linux-cris-low.c (the_low_targets): Likewise.
9159 * linux-crisv32-low.c (the_low_targets): Likewise.
9160 * linux-low.c (can_software_single_step): Likewise.
9161 (install_software_single_step_breakpoints): New function.
9162 (start_step_over): Use install_software_single_step_breakpoints.
9163 * linux-low.h: New CORE_ADDR vector.
9164 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9166 * linux-mips-low.c (the_low_targets): Likewise.
9167 * linux-nios2-low.c (the_low_targets): Likewise.
9168 * linux-sparc-low.c (the_low_targets): Likewise.
9170 2015-12-17 Pedro Alves <palves@redhat.com>
9172 * linux-low.c (linux_kill_one_lwp): Remove references to
9174 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9176 (linux_init_signals): Delete.
9177 (initialize_low): Adjust.
9178 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9180 2015-12-16 Pedro Alves <palves@redhat.com>
9182 * configure.ac (compiler warning flags): When testing a
9183 -Wno-foo option, check whether -Wfoo works instead.
9184 * configure: Regenerate.
9186 2015-12-11 Don Breazeal <donb@codesourcery.com>
9188 * server.c (process_serial_event): Don't exit from gdbserver
9189 in remote mode if there are still active inferiors.
9191 2015-12-11 Yao Qi <yao.qi@linaro.org>
9193 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9194 arm_breakpoint_at if the process is 32-bit.
9196 2015-12-11 Yao Qi <yao.qi@linaro.org>
9198 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9201 2015-12-07 Yao Qi <yao.qi@linaro.org>
9203 * configure.srv: Append arm.o to srv_tgtobj for
9204 aarch64*-*-linux* target.
9205 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9206 from linux-arm-low.c.
9207 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9208 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9209 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9210 (thumb2_breakpoint_len): Likewise.
9211 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9212 (arm_breakpoint_kinds): Likewise.
9213 (arm_breakpoint_kind_from_pc): Likewise.
9214 (arm_sw_breakpoint_from_kind): Likewise.
9215 (arm_breakpoint_kind_from_current_state): Likewise.
9216 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9217 (arm_sw_breakpoint_from_kind): Declare.
9218 (arm_breakpoint_kind_from_current_state): Declare.
9219 (arm_breakpoint_at): Declare.
9220 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9221 arm_sw_breakpoint_from_kind if process is 32-bit.
9222 (aarch64_breakpoint_kind_from_pc): New function.
9223 (aarch64_breakpoint_kind_from_current_state): New function.
9224 (the_low_target): Initialize fields breakpoint_kind_from_pc
9225 and breakpoint_kind_from_current_state.
9226 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9227 linux-aarch32-low.c.
9228 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9229 (arm_breakpoint, arm_breakpoint_len): Likewise.
9230 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9231 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9232 (arm_is_thumb_mode): Likewise.
9233 (arm_breakpoint_at): Likewise.
9234 (arm_breakpoint_kind_from_pc): Likewise.
9235 (arm_sw_breakpoint_from_kind): Likewise.
9236 (arm_breakpoint_kind_from_current_state): Likewise.
9239 2015-08-04 Yao Qi <yao.qi@linaro.org>
9241 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9242 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9243 * server.c (extended_protocol): Remove "static".
9244 * server.h (extended_protocol): Declare it.
9246 2015-12-04 Josh Stone <jistone@redhat.com>
9248 * target.h (struct target_ops) <arch_setup>: Rename to ...
9249 (struct target_ops) <post_create_inferior>: ... this.
9250 (target_arch_setup): Rename to ...
9251 (target_post_create_inferior): ... this, calling post_create_inferior.
9252 * server.c (start_inferior): Update target_arch_setup calls to
9253 target_post_create_inferior.
9254 * linux-low.c (linux_low_ptrace_options): Forward declare.
9255 (linux_arch_setup): Update its comment for general use.
9256 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9257 (struct linux_target_ops): Use linux_post_create_inferior.
9258 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9259 to post_create_inferior.
9260 * nto-low.c (struct nto_target_ops): Likewise.
9261 * spu-low.c (struct spu_target_ops): Likewise.
9262 * win32-low.c (struct win32_target_ops): Likewise.
9264 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9266 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9268 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9270 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9271 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9272 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9273 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9274 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9275 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9276 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9277 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9278 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9279 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9280 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9281 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9283 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9285 * linux-low.c (linux_look_up_symbols): Don't call
9286 linux_supports_traceclone.
9287 * linux-low.h (thread_db_init): Remove use_events argument.
9288 * thread-db.c (thread_db_use_event): Remove global variable.
9289 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9290 (struct thread_db) <td_create_bp>: Remove field.
9291 (thread_db_create_event): Remove function.
9292 (thread_db_enable_reporting): Likewise.
9293 (find_one_thread): Don't check for thread_db_use_events.
9294 (attach_thread): Likewise.
9295 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9296 (try_thread_db_load_1): Don't check for thread_db_use_events.
9297 (thread_db_init): Remove use_events argument and thread events
9299 (remove_thread_event_breakpoints): Remove function.
9300 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9302 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9304 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9306 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9307 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9308 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9309 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9310 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9312 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9314 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9315 * linux-low.c (can_hardware_single_step): Use
9316 supports_hardware_single_step.
9317 (can_software_single_step): New function.
9318 (start_step_over): Call can_software_single_step.
9319 (linux_supports_hardware_single_step): New function.
9320 (struct target_ops) <supports_software_single_step>: Initialize.
9321 * linux-low.h (struct linux_target_ops)
9322 <supports_hardware_single_step>: Initialize.
9323 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9324 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9325 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9326 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9327 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9328 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9329 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9330 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9331 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9332 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9334 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9335 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9337 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9338 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9339 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9341 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9342 * target.h (struct target_ops): <supports_software_single_step>:
9344 (target_supports_software_single_step): New macro.
9346 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9348 * linux-low.c (linux_wait_1): Fix pc advance condition.
9349 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9350 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9352 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9354 * linux-arm-low.c (arm_is_thumb_mode): New function.
9355 (arm_breakpoint_at): Use arm_is_thumb_mode.
9356 (arm_breakpoint_kind_from_current_state): New function.
9357 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9359 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9360 (linux_breakpoint_kind_from_current_state): New function.
9361 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9362 * linux-low.h (struct linux_target_ops)
9363 <breakpoint_kind_from_current_state>: New field.
9364 * target.h (struct target_ops): Likewise.
9365 (target_breakpoint_kind_from_current_state): New macro.
9367 2015-11-30 Pedro Alves <palves@redhat.com>
9369 * linux-low.c (linux_resume): Wake up the event loop before
9372 2015-11-30 Pedro Alves <palves@redhat.com>
9374 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9376 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9378 * target.c (struct thread_search): New structure.
9379 (thread_search_callback): New function.
9380 (prev_general_thread): New global.
9381 (prepare_to_access_memory, done_accessing_memory): New functions.
9382 * target.h (prepare_to_access_memory, done_accessing_memory):
9383 Replace macros with function declarations.
9385 2015-11-30 Pedro Alves <palves@redhat.com>
9388 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9389 report TARGET_WAITKIND_NO_RESUMED.
9390 * remote-utils.c (prepare_resume_reply): Handle
9391 TARGET_WAITKIND_NO_RESUMED.
9392 * server.c (report_no_resumed): New global.
9393 (handle_query) <qSupported>: Handle "no-resumed+". Report
9394 "no-resumed+" support.
9395 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9396 return error if the client doesn't support no-resumed events.
9397 (push_stop_notification): New function.
9398 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9399 events if the client supports them.
9401 2015-11-30 Pedro Alves <palves@redhat.com>
9403 * linux-low.c (thread_still_has_status_pending_p): Don't check
9405 (lwp_resumed): New function.
9406 (status_pending_p_callback): Return early if the LWP is not
9407 supposed to be resumed.
9409 2015-11-30 Pedro Alves <palves@redhat.com>
9411 * linux-low.c (handle_extended_wait): Assert that the LWP's
9412 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9413 thread create events, leave the new child's status pending.
9414 (linux_low_filter_event): If GDB wants to hear about thread exit
9415 events, leave the LWP marked dead and don't delete it.
9416 (linux_wait_for_event_filtered): Don't check for thread exit.
9417 (filter_exit_event): New function.
9418 (linux_wait_1): Use it, when returning an exit event.
9419 (linux_resume_one_lwp_throw): Assert that the LWP's
9420 waitstatus is TARGET_WAITKIND_IGNORE.
9421 * remote-utils.c (prepare_resume_reply): Handle
9422 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9423 * server.c (report_thread_events): New global.
9424 (handle_general_set): Handle QThreadEvents.
9425 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9426 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9427 TARGET_WAITKIND_THREAD_EXITED.
9428 * server.h (report_thread_events): Declare.
9430 2015-11-30 Pedro Alves <palves@redhat.com>
9432 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9433 the thread's last_resume_kind was resume_stop.
9435 2015-11-30 Pedro Alves <palves@redhat.com>
9437 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9440 2015-11-30 Pedro Alves <palves@redhat.com>
9442 * server.c (handle_v_requests): Handle vCtrlC.
9444 2015-11-30 Pedro Alves <palves@redhat.com>
9446 * gdbthread.h (find_any_thread_of_pid): Declare.
9447 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9449 * server.c (handle_query): If current_thread is NULL, look for
9450 another thread of the selected process.
9452 2015-11-26 Daniel Colascione <dancol@dancol.org>
9453 Simon Marchi <simon.marchi@ericsson.com>
9455 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9456 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9458 * target.h (struct target_ops) <thread_name>: New field.
9459 (target_thread_name): New macro.
9461 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9463 * regcache.h (regcache_invalidate_pid): Add declaration.
9464 * regcache.c (regcache_invalidate_pid): New function, extracted
9465 from regcache_invalidate.
9466 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9467 Add trivial documentation comment.
9468 * lynx-low.c: Use regcache_invalidate_pid instead of
9469 regcache_invalidate.
9471 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9473 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9474 and Elf64_auxv_t if the target is Android.
9476 2015-11-22 Doug Evans <xdje42@gmail.com>
9478 * target.h: #include <sys/types.h>.
9480 2015-11-19 Pedro Alves <palves@redhat.com>
9482 * linux-low.c (linux_process_qsupported): Change prototype.
9484 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9486 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9487 and adjust to loop over all features.
9488 * server.c (handle_query) <qSupported>: Adjust to call
9489 target_process_qsupported once, passing it a vector of unprocessed
9491 * target.h (struct target_ops) <process_qsupported>: Change
9493 (target_process_qsupported): Adjust.
9495 2015-11-19 Pedro Alves <palves@redhat.com>
9497 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9499 * configure: Regenerate.
9501 2015-11-19 Pedro Alves <palves@redhat.com>
9503 * configure: Regenerate.
9505 2015-11-19 Yao Qi <yao.qi@linaro.org>
9507 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9510 2015-11-19 Yao Qi <yao.qi@linaro.org>
9512 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9513 (struct aarch64_operand): Move enum out.
9515 2015-11-19 Yao Qi <yao.qi@linaro.org>
9517 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9518 struct user_fpsimd_state *.
9519 (aarch64_store_fpregset): Likewise.
9521 2015-11-19 Yao Qi <yao.qi@linaro.org>
9523 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9524 struct user_pt_regs *.
9525 (aarch64_store_gregset): Likewise.
9527 2015-11-18 Pedro Alves <palves@redhat.com>
9529 * Makefile.in (all_object_files): Add $IPA_OBJS.
9531 2015-11-17 Pedro Alves <palves@redhat.com>
9533 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9534 GDB_SIGNAL_0 and gdb_signal_to_string.
9536 2015-11-17 Pedro Alves <palves@redhat.com>
9538 * win32-low.c (handle_output_debug_string): Remove parameter.
9539 (win32_kill): Remove our_status local and adjust call to
9540 handle_output_debug_string.
9541 (get_child_debug_event): Adjust call to
9542 handle_output_debug_string.
9544 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9546 * linux-mips-low.c (mips_fill_gregset): Add cast.
9547 (mips_store_gregset): Likewise.
9548 (mips_fill_fpregset): Likewise.
9549 (mips_store_fpregset): Likewise.
9551 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9553 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9556 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9558 * linux-mips-low.c (mips_linux_new_thread): Change type of
9559 watch_type to enum target_hw_bp_type.
9561 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9563 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9564 Change return type to arm_hwbp_type.
9566 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9568 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9569 (arm_store_gregset): Likewise.
9570 * linux-arm-low.c (arm_get_hwcap): Likewise.
9571 (arm_read_description): Likewise.
9573 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9575 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9577 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9579 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9580 (ppc_fill_vsxregset): Likewise.
9581 (ppc_store_vsxregset): Likewise.
9582 (ppc_fill_vrregset): Likewise.
9583 (ppc_store_vrregset): Likewise.
9584 (ppc_fill_evrregset): Likewise.
9585 (ppc_store_evrregset): Likewise.
9587 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9589 * linux-ppc-low.c (ppc_usrregs_info): Remove
9590 forward-declaration.
9591 (ppc_arch_setup): Move lower in file.
9593 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9595 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9596 (ps_pdwrite): Likewise.
9598 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9600 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9601 to after assert checks.
9603 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9605 * proc-service.c (ps_pdread): Add/adjust casts.
9606 (ps_pdwrite): Add/adjust casts.
9608 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9610 * server.c (handle_search_memory_1): Cast return value of
9613 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9615 * server.c (write_qxfer_response): Change type of data to
9618 2015-10-29 Pedro Alves <palves@redhat.com>
9620 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9622 2015-10-29 Pedro Alves <palves@redhat.com>
9624 * tracepoint.c (clear_installed_tracepoints): Add casts.
9626 2015-10-29 Pedro Alves <palves@redhat.com>
9628 * server.c (handle_v_cont, process_serial_event): Add enum
9629 gdb_signal casts to signal parsing code.
9631 2015-10-29 Pedro Alves <palves@redhat.com>
9633 * linux-low.h (NULL_REGSET): Define.
9634 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9635 * linux-arm-low.c (arm_regsets): Likewise.
9636 * linux-crisv32-low.c (cris_regsets): Likewise.
9637 * linux-m68k-low.c (m68k_regsets): Likewise.
9638 * linux-mips-low.c (mips_regsets): Likewise.
9639 * linux-nios2-low.c (nios2_regsets): Likewise.
9640 * linux-ppc-low.c (ppc_regsets): Likewise.
9641 * linux-s390-low.c (s390_regsets): Likewise.
9642 * linux-sh-low.c (sh_regsets): Likewise.
9643 * linux-sparc-low.c (sparc_regsets): Likewise.
9644 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9645 * linux-tile-low.c (tile_regsets): Likewise.
9646 * linux-x86-low.c (x86_regsets): Likewise.
9647 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9649 2015-10-29 Pedro Alves <palves@redhat.com>
9651 * linux-low.h (NULL_REGSET): Define.
9652 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9653 * linux-arm-low.c (arm_regsets): Likewise.
9654 * linux-crisv32-low.c (cris_regsets): Likewise.
9655 * linux-m68k-low.c (m68k_regsets): Likewise.
9656 * linux-mips-low.c (mips_regsets): Likewise.
9657 * linux-nios2-low.c (nios2_regsets): Likewise.
9658 * linux-ppc-low.c (ppc_regsets): Likewise.
9659 * linux-s390-low.c (s390_regsets): Likewise.
9660 * linux-sh-low.c (sh_regsets): Likewise.
9661 * linux-sparc-low.c (sparc_regsets): Likewise.
9662 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9663 * linux-tile-low.c (tile_regsets): Likewise.
9664 * linux-x86-low.c (x86_regsets): Likewise.
9665 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9667 2015-10-26 Doug Evans <dje@google.com>
9669 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9671 2015-10-26 Doug Evans <dje@google.com>
9673 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9675 2015-10-26 Doug Evans <dje@google.com>
9677 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9679 (attach_thread, find_new_threads_callback): Ditto.
9681 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9683 * mem-break.h (set_breakpoint_data): Remove.
9685 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9687 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9688 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9689 (initialize_low): Remove set_breakpoint_data call.
9690 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9691 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9692 (initialize_low): Remove set_breakpoint_data call.
9693 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9694 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9695 (initialize_low): Remove set_breakpoint_data call.
9697 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9700 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9701 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9702 * target.h (target_breakpoint_kind_from_pc): New macro.
9704 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9706 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9707 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9708 the default breakpoint kind.
9710 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9712 * linux-arm-low.c (arm_supports_z_point_type): Add software
9715 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9717 * linux-arm-low.c: Refactor breakpoint definitions.
9718 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9719 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9721 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9723 * Makefile.in: Add arm.c/o.
9724 * configure.srv: Likewise.
9725 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9726 (arm_breakpoint_kind_from_pc): New function.
9727 (arm_sw_breakpoint_from_kind): Return proper kind.
9728 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9730 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9734 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9735 (struct raw_breakpoint) <size>: Remove.
9736 (struct raw_breakpoint) <kind>: Add.
9737 (bp_size): New function.
9738 (bp_opcode): Likewise.
9739 (find_raw_breakpoint_at): Adjust for kind.
9740 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9741 (remove_memory_breakpoint): Adjust for kind call bp_size.
9742 (set_raw_breakpoint_at): Adjust for kind.
9743 (set_breakpoint): Likewise.
9744 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9745 (delete_raw_breakpoint): Adjust for kind.
9746 (delete_breakpoint): Likewise.
9747 (find_gdb_breakpoint): Likewise.
9748 (set_gdb_breakpoint_1): Likewise.
9749 (set_gdb_breakpoint): Likewise.
9750 (delete_gdb_breakpoint_1): Likewise.
9751 (delete_gdb_breakpoint): Likewise.
9752 (uninsert_raw_breakpoint): Likewise.
9753 (reinsert_raw_breakpoint): Likewise.
9754 (set_breakpoint_data): Remove.
9755 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9756 (check_mem_read): Adjust for kind call bp_size.
9757 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9758 (clone_one_breakpoint): Adjust for kind.
9759 * mem-break.h (set_gdb_breakpoint): Likewise.
9760 (delete_gdb_breakpoint): Likewise.
9761 * server.c (process_serial_event): Likewise.
9763 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9765 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9766 (struct linux_target_ops) <breakpoint>: Remove.
9767 (struct linux_target_ops) <breakpoint_len>: Remove.
9768 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9769 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9770 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9771 (arm_sw_breakpoint_from_kind): New function.
9772 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9773 (struct linux_target_ops) <breakpoint>: Remove.
9774 (struct linux_target_ops) <breakpoint_len>: Remove.
9775 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9776 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9777 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9778 (struct linux_target_ops) <breakpoint>: Remove.
9779 (struct linux_target_ops) <breakpoint_len>: Remove.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9781 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9782 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9788 and sw_breakpoint_from_kind to increment the pc.
9789 (linux_breakpoint_kind_from_pc): New function.
9790 (linux_sw_breakpoint_from_kind): New function.
9791 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 (initialize_low): Call breakpoint_kind_from_pc and
9793 sw_breakpoint_from_kind to replace breakpoint_data/len.
9794 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9797 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9798 (struct linux_target_ops) <breakpoint>: Remove.
9799 (struct linux_target_ops) <breakpoint_len>: Remove.
9800 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9801 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9803 (struct linux_target_ops) <breakpoint>: Remove.
9804 (struct linux_target_ops) <breakpoint_len>: Remove.
9805 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9807 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9823 (struct linux_target_ops) <breakpoint>: Remove.
9824 (struct linux_target_ops) <breakpoint_len>: Remove.
9825 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9826 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9827 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9828 (struct linux_target_ops) <breakpoint>: Remove.
9829 (struct linux_target_ops) <breakpoint_len>: Remove.
9830 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9831 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9832 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9833 (struct linux_target_ops) <breakpoint>: Remove.
9834 (struct linux_target_ops) <breakpoint_len>: Remove.
9835 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9836 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9837 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9838 (struct linux_target_ops) <breakpoint>: Remove.
9839 (struct linux_target_ops) <breakpoint_len>: Remove.
9840 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9841 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9842 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9843 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9844 (struct linux_target_ops) <breakpoint>: Remove.
9845 (struct linux_target_ops) <breakpoint_len>: Remove.
9846 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9847 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9848 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9849 (struct linux_target_ops) <breakpoint>: Remove.
9850 (struct linux_target_ops) <breakpoint_len>: Remove.
9851 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9852 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9854 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9856 * linux-cris-low.c (cris_get_pc): Remove void arg.
9858 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9860 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9863 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9865 * inferiors.c (thread_pid_matches_callback): New function.
9866 (find_thread_process): New function.
9867 (remove_thread): Reset current_thread.
9868 (remove_process): Assert threads have been removed first.
9870 2015-10-15 Yao Qi <yao.qi@linaro.org>
9872 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9874 (aarch64_remove_point): Likewise.
9875 * regcache.c (regcache_register_size): New function.
9877 2015-10-12 Yao Qi <yao.qi@linaro.org>
9879 * linux-aarch64-low.c: Update all callers as emit_load_store
9880 is renamed to aarch64_emit_load_store.
9882 2015-10-12 Yao Qi <yao.qi@linaro.org>
9884 * linux-aarch64-low.c: Update all callers of function renaming
9885 from emit_insn to aarch64_emit_insn.
9887 2015-10-12 Yao Qi <yao.qi@linaro.org>
9889 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9890 arch/aarch64-insn.h.
9891 (struct aarch64_memory_operand): Likewise.
9893 (emit_insn): Move to arch/aarch64-insn.c.
9894 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9895 (emit_load_store): Move to arch/aarch64-insn.c.
9896 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9897 (can_encode_int32): Remove.
9899 2015-10-12 Yao Qi <yao.qi@linaro.org>
9901 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9902 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9903 (aarch64_relocate_instruction): Likewise.
9904 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9905 (struct aarch64_insn_visitor): Likewise.
9907 2015-10-12 Yao Qi <yao.qi@linaro.org>
9909 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9910 (struct aarch64_insn_visitor): New.
9911 (struct aarch64_insn_relocation_data): New.
9912 (aarch64_ftrace_insn_reloc_b): New function.
9913 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9914 (aarch64_ftrace_insn_reloc_cb): Likewise.
9915 (aarch64_ftrace_insn_reloc_tb): Likewise.
9916 (aarch64_ftrace_insn_reloc_adr): Likewise.
9917 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9918 (aarch64_ftrace_insn_reloc_others): Likewise.
9920 (aarch64_relocate_instruction): Use visitor.
9922 2015-10-12 Yao Qi <yao.qi@linaro.org>
9924 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9925 int. Add argument buf.
9926 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9927 aarch64_relocate_instruction.
9929 2015-10-12 Yao Qi <yao.qi@linaro.org>
9931 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9932 argument insn. Remove local variable insn. Don't call
9934 (aarch64_install_fast_tracepoint_jump_pad): Call
9937 2015-09-30 Yao Qi <yao.qi@linaro.org>
9939 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9940 (emit_load_store_pair): Likewise.
9942 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9944 * dll.c (match_dll): Add cast(s).
9945 (unloaded_dll): Likewise.
9946 * linux-low.c (second_thread_of_pid_p): Likewise.
9947 (delete_lwp_callback): Likewise.
9948 (count_events_callback): Likewise.
9949 (select_event_lwp_callback): Likewise.
9950 (linux_set_resume_request): Likewise.
9951 * server.c (accumulate_file_name_length): Likewise.
9952 (emit_dll_description): Likewise.
9953 (handle_qxfer_threads_worker): Likewise.
9954 (visit_actioned_threads): Likewise.
9955 * thread-db.c (any_thread_of): Likewise.
9956 * tracepoint.c (same_process_p): Likewise.
9957 (match_blocktype): Likewise.
9958 (build_traceframe_info_xml): Likewise.
9960 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9962 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9964 (gdb_unparse_agent_expr): Likewise.
9965 * hostio.c (require_data): Likewise.
9966 (handle_pread): Likewise.
9967 * linux-low.c (disable_regset): Likewise.
9968 (fetch_register): Likewise.
9969 (store_register): Likewise.
9970 (get_dynamic): Likewise.
9971 (linux_qxfer_libraries_svr4): Likewise.
9972 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9973 (set_fast_tracepoint_jump): Likewise.
9974 (uninsert_fast_tracepoint_jumps_at): Likewise.
9975 (reinsert_fast_tracepoint_jumps_at): Likewise.
9976 (validate_inserted_breakpoint): Likewise.
9977 (clone_agent_expr): Likewise.
9978 * regcache.c (init_register_cache): Likewise.
9979 * remote-utils.c (putpkt_binary_1): Likewise.
9980 (decode_M_packet): Likewise.
9981 (decode_X_packet): Likewise.
9982 (look_up_one_symbol): Likewise.
9983 (relocate_instruction): Likewise.
9984 (monitor_output): Likewise.
9985 * server.c (handle_search_memory): Likewise.
9986 (handle_qxfer_exec_file): Likewise.
9987 (handle_qxfer_libraries): Likewise.
9988 (handle_qxfer): Likewise.
9989 (handle_query): Likewise.
9990 (handle_v_cont): Likewise.
9991 (handle_v_run): Likewise.
9992 (captured_main): Likewise.
9993 * target.c (write_inferior_memory): Likewise.
9994 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9995 * tracepoint.c (init_trace_buffer): Likewise.
9996 (add_tracepoint_action): Likewise.
9997 (add_traceframe): Likewise.
9998 (add_traceframe_block): Likewise.
9999 (cmd_qtdpsrc): Likewise.
10000 (cmd_qtdv): Likewise.
10001 (cmd_qtstatus): Likewise.
10002 (response_source): Likewise.
10003 (response_tsv): Likewise.
10004 (cmd_qtnotes): Likewise.
10005 (gdb_collect): Likewise.
10006 (initialize_tracepoint): Likewise.
10008 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10010 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10011 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10012 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10014 (enum aarch64_condition_codes): New enum.
10015 (w0): New static global.
10018 (struct aarch64_memory_operand) <type>: New
10019 MEMORY_OPERAND_POSTINDEX type.
10020 (postindex_memory_operand): New helper function.
10021 (emit_ret): New function.
10022 (emit_load_store_pair): New function, factored out of emit_stp
10023 with support for MEMORY_OPERAND_POSTINDEX.
10024 (emit_stp): Rewrite using emit_load_store_pair.
10025 (emit_ldp): New function.
10026 (emit_load_store): Likewise.
10027 (emit_ldr): Mention post-index instruction in comment.
10028 (emit_ldrh): New function.
10029 (emit_ldrb): New function.
10030 (emit_ldrsw): Mention post-index instruction in comment.
10031 (emit_str): Likewise.
10032 (emit_subs): New function.
10033 (emit_cmp): Likewise.
10034 (emit_and): Likewise.
10035 (emit_orr): Likewise.
10036 (emit_orn): Likewise.
10037 (emit_eor): Likewise.
10038 (emit_mvn): Likewise.
10039 (emit_lslv): Likewise.
10040 (emit_lsrv): Likewise.
10041 (emit_asrv): Likewise.
10042 (emit_mul): Likewise.
10043 (emit_sbfm): Likewise.
10044 (emit_sbfx): Likewise.
10045 (emit_ubfm): Likewise.
10046 (emit_ubfx): Likewise.
10047 (emit_csinc): Likewise.
10048 (emit_cset): Likewise.
10049 (emit_nop): Likewise.
10050 (emit_ops_insns): New helper function.
10051 (emit_pop): Likewise.
10052 (emit_push): Likewise.
10053 (aarch64_emit_prologue): New function.
10054 (aarch64_emit_epilogue): Likewise.
10055 (aarch64_emit_add): Likewise.
10056 (aarch64_emit_sub): Likewise.
10057 (aarch64_emit_mul): Likewise.
10058 (aarch64_emit_lsh): Likewise.
10059 (aarch64_emit_rsh_signed): Likewise.
10060 (aarch64_emit_rsh_unsigned): Likewise.
10061 (aarch64_emit_ext): Likewise.
10062 (aarch64_emit_log_not): Likewise.
10063 (aarch64_emit_bit_and): Likewise.
10064 (aarch64_emit_bit_or): Likewise.
10065 (aarch64_emit_bit_xor): Likewise.
10066 (aarch64_emit_bit_not): Likewise.
10067 (aarch64_emit_equal): Likewise.
10068 (aarch64_emit_less_signed): Likewise.
10069 (aarch64_emit_less_unsigned): Likewise.
10070 (aarch64_emit_ref): Likewise.
10071 (aarch64_emit_if_goto): Likewise.
10072 (aarch64_emit_goto): Likewise.
10073 (aarch64_write_goto_address): Likewise.
10074 (aarch64_emit_const): Likewise.
10075 (aarch64_emit_call): Likewise.
10076 (aarch64_emit_reg): Likewise.
10077 (aarch64_emit_pop): Likewise.
10078 (aarch64_emit_stack_flush): Likewise.
10079 (aarch64_emit_zero_ext): Likewise.
10080 (aarch64_emit_swap): Likewise.
10081 (aarch64_emit_stack_adjust): Likewise.
10082 (aarch64_emit_int_call_1): Likewise.
10083 (aarch64_emit_void_call_2): Likewise.
10084 (aarch64_emit_eq_goto): Likewise.
10085 (aarch64_emit_ne_goto): Likewise.
10086 (aarch64_emit_lt_goto): Likewise.
10087 (aarch64_emit_le_goto): Likewise.
10088 (aarch64_emit_gt_goto): Likewise.
10089 (aarch64_emit_ge_got): Likewise.
10090 (aarch64_emit_ops_impl): New static global variable.
10091 (aarch64_emit_ops): New target function, return
10092 &aarch64_emit_ops_impl.
10093 (struct linux_target_ops): Install it.
10095 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10097 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10098 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10100 * linux-aarch64-ipa.c: New file.
10101 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10103 (aarch64_get_thread_area): New target method.
10104 (extract_signed_bitfield): New helper function.
10105 (aarch64_decode_ldr_literal): New function.
10106 (enum aarch64_opcodes): New enum.
10107 (struct aarch64_register): New struct.
10108 (struct aarch64_operand): New struct.
10109 (x0): New static global.
10118 (aarch64_register): New helper function.
10119 (register_operand): Likewise.
10120 (immediate_operand): Likewise.
10121 (struct aarch64_memory_operand): New struct.
10122 (offset_memory_operand): New helper function.
10123 (preindex_memory_operand): Likewise.
10124 (enum aarch64_system_control_registers): New enum.
10125 (ENCODE): New macro.
10126 (emit_insn): New helper function.
10127 (emit_b): New function.
10128 (emit_bcond): Likewise.
10129 (emit_cb): Likewise.
10130 (emit_tb): Likewise.
10131 (emit_blr): Likewise.
10132 (emit_stp): Likewise.
10133 (emit_ldp_q_offset): Likewise.
10134 (emit_stp_q_offset): Likewise.
10135 (emit_load_store): Likewise.
10136 (emit_ldr): Likewise.
10137 (emit_ldrsw): Likewise.
10138 (emit_str): Likewise.
10139 (emit_ldaxr): Likewise.
10140 (emit_stxr): Likewise.
10141 (emit_stlr): Likewise.
10142 (emit_data_processing_reg): Likewise.
10143 (emit_data_processing): Likewise.
10144 (emit_add): Likewise.
10145 (emit_sub): Likewise.
10146 (emit_mov): Likewise.
10147 (emit_movk): Likewise.
10148 (emit_mov_addr): Likewise.
10149 (emit_mrs): Likewise.
10150 (emit_msr): Likewise.
10151 (emit_sevl): Likewise.
10152 (emit_wfe): Likewise.
10153 (append_insns): Likewise.
10154 (can_encode_int32_in): New helper function.
10155 (aarch64_relocate_instruction): New function.
10156 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10157 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10158 (struct linux_target_ops): Install aarch64_get_thread_area,
10159 aarch64_install_fast_tracepoint_jump_pad and
10160 aarch64_get_min_fast_tracepoint_insn_len.
10162 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10164 * Makefile.in (aarch64-insn.o): New rule.
10165 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10167 2015-09-21 Yao Qi <yao.qi@linaro.org>
10169 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10171 2015-09-21 Yao Qi <yao.qi@linaro.org>
10173 * tracepoint.c (max_jump_pad_size): Remove.
10175 2015-09-18 Yao Qi <yao.qi@linaro.org>
10177 * linux-aarch64-low.c: Don't include sys/uio.h.
10178 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10180 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10182 * tracepoint.c (eval_result_type): Change prototype.
10183 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10185 2015-09-15 Pedro Alves <palves@redhat.com>
10187 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10188 Check whether to report exec events instead of checking whether
10189 multiprocess is enabled.
10191 2015-09-15 Pedro Alves <palves@redhat.com>
10194 * remote-utils.c (prepare_resume_reply): Merge
10195 TARGET_WAITKIND_VFORK_DONE switch case with the
10196 TARGET_WAITKIND_FORKED case.
10198 2015-09-15 Yao Qi <yao.qi@linaro.org>
10200 * server.c (handle_query): Check string comparison using
10201 "else if" instead of "if".
10203 2015-09-15 Yao Qi <yao.qi@linaro.org>
10205 * server.c (vCont_supported): New global variable.
10206 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10207 matches. Append ";vContSupported+" to own_buf.
10208 (handle_v_requests): Append ";s;S" to own_buf if target supports
10209 hardware single step or vCont_supported is false.
10210 (capture_main): Set vCont_supported to zero.
10212 2015-09-15 Yao Qi <yao.qi@linaro.org>
10214 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10216 (linux_supports_hardware_single_step): ... New function.
10217 (linux_target_ops): Update.
10218 * lynx-low.c (lynx_target_ops): Set field
10219 supports_hardware_single_step to target_can_do_hardware_single_step.
10220 * nto-low.c (nto_target_ops): Likewise.
10221 * spu-low.c (spu_target_ops): Likewise.
10222 * win32-low.c (win32_target_ops): Likewise.
10223 * target.c (target_can_do_hardware_single_step): New function.
10224 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10225 Remove. <supports_hardware_single_step>: New field.
10226 (target_supports_conditional_breakpoints): Remove.
10227 (target_supports_hardware_single_step): New macro.
10228 (target_can_do_hardware_single_step): Declare.
10229 * server.c (handle_query): Use target_supports_hardware_single_step
10230 instead of target_supports_conditional_breakpoints.
10232 2015-09-15 Yao Qi <yao.qi@linaro.org>
10234 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10236 (struct linux_target_ops the_low_target): Install
10237 aarch64_linux_siginfo_fixup.
10239 2015-09-11 Don Breazeal <donb@codesourcery.com>
10240 Luis Machado <lgustavo@codesourcery.com>
10242 * linux-low.c (linux_mourn): Static declaration.
10243 (linux_arch_setup): Move in front of
10244 handle_extended_wait.
10245 (linux_arch_setup_thread): New function.
10246 (handle_extended_wait): Handle exec events. Call
10247 linux_arch_setup_thread. Make event_lwp argument a
10248 pointer-to-a-pointer.
10249 (check_zombie_leaders): Do not check stopped threads.
10250 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10251 (linux_low_filter_event): Add lwp and thread for exec'ing
10252 non-leader thread if leader thread has been deleted.
10253 Refactor code into linux_arch_setup_thread and call it.
10254 Pass child lwp pointer by reference to handle_extended_wait.
10255 (linux_wait_for_event_filtered): Update comment.
10256 (linux_wait_1): Prevent clobbering exec event status.
10257 (linux_supports_exec_events): New function.
10258 (linux_target_ops) <supports_exec_events>: Initialize new member.
10259 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10261 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10262 * server.c (report_exec_events): New global variable.
10263 (handle_query): Handle qSupported query for exec-events feature.
10264 (captured_main): Initialize report_exec_events.
10265 * server.h (report_exec_events): Declare new global variable.
10266 * target.h (struct target_ops) <supports_exec_events>: New
10268 (target_supports_exec_events): New macro.
10269 * win32-low.c (win32_target_ops) <supports_exec_events>:
10270 Initialize new member.
10272 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10274 * linux-low.c (linux_low_enable_btrace): Remove.
10275 (linux_target_ops): Replace linux_low_enable_btrace with
10276 linux_enable_btrace.
10278 2015-09-03 Yao Qi <yao.qi@linaro.org>
10280 * linux-aarch64-low.c (aarch64_insert_point): Call
10281 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10284 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10286 * linux-low.c (check_stopped_by_breakpoint): Use
10287 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10289 2015-08-27 Pedro Alves <palves@redhat.com>
10291 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10293 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10295 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10296 the XNEW-family equivalent.
10297 (compile_bytecodes): Likewise.
10298 * dll.c (loaded_dll): Likewise.
10299 * event-loop.c (append_callback_event): Likewise.
10300 (create_file_handler): Likewise.
10301 (create_file_event): Likewise.
10302 * hostio.c (handle_open): Likewise.
10303 * inferiors.c (add_thread): Likewise.
10304 (add_process): Likewise.
10305 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10306 * linux-arm-low.c (arm_new_process): Likewise.
10307 (arm_new_thread): Likewise.
10308 * linux-low.c (add_to_pid_list): Likewise.
10309 (linux_add_process): Likewise.
10310 (handle_extended_wait): Likewise.
10311 (add_lwp): Likewise.
10312 (enqueue_one_deferred_signal): Likewise.
10313 (enqueue_pending_signal): Likewise.
10314 (linux_resume_one_lwp_throw): Likewise.
10315 (linux_resume_one_thread): Likewise.
10316 (linux_read_memory): Likewise.
10317 (linux_write_memory): Likewise.
10318 * linux-mips-low.c (mips_linux_new_process): Likewise.
10319 (mips_linux_new_thread): Likewise.
10320 (mips_add_watchpoint): Likewise.
10321 * linux-x86-low.c (initialize_low_arch): Likewise.
10322 * lynx-low.c (lynx_add_process): Likewise.
10323 * mem-break.c (set_raw_breakpoint_at): Likewise.
10324 (set_breakpoint): Likewise.
10325 (add_condition_to_breakpoint): Likewise.
10326 (add_commands_to_breakpoint): Likewise.
10327 (clone_agent_expr): Likewise.
10328 (clone_one_breakpoint): Likewise.
10329 * regcache.c (new_register_cache): Likewise.
10330 * remote-utils.c (look_up_one_symbol): Likewise.
10331 * server.c (queue_stop_reply): Likewise.
10332 (start_inferior): Likewise.
10333 (queue_stop_reply_callback): Likewise.
10334 (handle_target_event): Likewise.
10335 * spu-low.c (fetch_ppc_memory): Likewise.
10336 (store_ppc_memory): Likewise.
10337 * target.c (set_target_ops): Likewise.
10338 * thread-db.c (thread_db_load_search): Likewise.
10339 (try_thread_db_load_1): Likewise.
10340 * tracepoint.c (add_tracepoint): Likewise.
10341 (add_tracepoint_action): Likewise.
10342 (create_trace_state_variable): Likewise.
10343 (cmd_qtdpsrc): Likewise.
10344 (cmd_qtro): Likewise.
10345 (add_while_stepping_state): Likewise.
10346 * win32-low.c (child_add_thread): Likewise.
10347 (get_image_name): Likewise.
10349 2015-08-25 Yao Qi <yao.qi@linaro.org>
10351 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10353 2015-08-25 Yao Qi <yao.qi@linaro.org>
10355 * Makefile.in (aarch64-linux.o): New rule.
10356 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10358 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10359 (aarch64_init_debug_reg_state): Make it extern.
10360 (aarch64_linux_prepare_to_resume): Remove.
10362 2015-08-25 Yao Qi <yao.qi@linaro.org>
10364 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10365 lwp_arch_private_info and ptid_of_lwp.
10367 2015-08-25 Yao Qi <yao.qi@linaro.org>
10369 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10370 Find proc_info by find_process_pid. All callers updated.
10372 2015-08-25 Yao Qi <yao.qi@linaro.org>
10374 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10376 (debug_reg_change_callback): Remove.
10377 (aarch64_notify_debug_reg_change): Remove.
10379 2015-08-25 Yao Qi <yao.qi@linaro.org>
10381 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10382 Call current_lwp_ptid.
10384 2015-08-25 Yao Qi <yao.qi@linaro.org>
10386 * linux-aarch64-low.c (debug_reg_change_callback): Use
10389 2015-08-25 Yao Qi <yao.qi@linaro.org>
10391 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10393 2015-08-25 Yao Qi <yao.qi@linaro.org>
10395 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10397 2015-08-25 Yao Qi <yao.qi@linaro.org>
10399 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10402 2015-08-25 Yao Qi <yao.qi@linaro.org>
10404 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10406 (debug_reg_change_callback): Remove argument entry and add argument
10407 lwp. Remove local variable thread. Don't print thread id in the
10408 debugging output. Don't check whether pid of thread equals to pid.
10409 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10410 iterate_over_lwps instead find_inferior.
10412 2015-08-24 Pedro Alves <palves@redhat.com>
10414 * inferiors.c (get_first_process): New function.
10415 * inferiors.h (get_first_process): New declaration.
10416 * remote-utils.c (read_ptid): Default to the first process in the
10417 list, instead of to the current thread's process.
10419 2015-08-24 Pedro Alves <palves@redhat.com>
10421 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10422 * event-loop.c: Likewise.
10423 * remote-utils.c: Likewise.
10424 * tracepoint.c: Likewise.
10426 2015-08-24 Pedro Alves <palves@redhat.com>
10428 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10431 2015-08-21 Pedro Alves <palves@redhat.com>
10433 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10434 instead of literal 1.
10436 2015-08-21 Pedro Alves <palves@redhat.com>
10438 * tdesc.c (default_description): Explicitly zero-initialize.
10440 2015-08-21 Pedro Alves <palves@redhat.com>
10443 * inferiors.c (remove_thread): Discard any pending stop reply for
10445 * server.c (remove_all_on_match_pid): Rename to ...
10446 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10448 (discard_queued_stop_replies): Change parameter to a ptid. Now
10450 (handle_v_kill, kill_inferior_callback, captured_main)
10451 (process_serial_event): Adjust.
10452 * server.h (discard_queued_stop_replies): Declare.
10454 2015-08-21 Pedro Alves <palves@redhat.com>
10456 * linux-low.c (wait_for_sigstop): Always switch to no thread
10457 selected if the previously current thread dies.
10458 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10459 process instead of the current thread's.
10460 * remote-utils.c (input_interrupt): Don't check if there's no
10462 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10463 current thread to the general thread fails, error out.
10464 (handle_qxfer_auxv, handle_qxfer_libraries)
10465 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10466 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10467 (handle_query): Check if there's a thread selected instead of
10468 checking whether there's any thread in the thread list.
10469 (handle_qxfer_threads, handle_qxfer_btrace)
10470 (handle_qxfer_btrace_conf): Don't error out early if there's no
10471 thread in the thread list.
10472 (handle_v_cont, myresume): Don't set the current thread to the
10474 (process_serial_event) <Hg handling>: Also set thread_id if the
10475 previous general thread is still alive.
10476 (process_serial_event) <g/G handling>: If setting the current
10477 thread to the general thread fails, error out.
10478 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10479 thread's lwp instead of the current thread's.
10480 * target.c (set_desired_thread): If the desired thread was not
10481 found, leave the current thread pointing to NULL. Return an int
10482 (boolean) indicating success.
10483 * target.h (set_desired_thread): Change return type to int.
10485 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10487 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10488 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10490 (ps_get_thread_area): New function.
10492 2015-08-19 Gary Benson <gbenson@redhat.com>
10494 * hostio.c (handle_pread): Do not attempt to read more data
10495 than hostio_reply_with_data can fit in a packet.
10497 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10499 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10501 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10503 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10505 2015-08-06 Pedro Alves <palves@redhat.com>
10507 * tracepoint.c (expr_eval_result): Now an int.
10509 2015-08-06 Pedro Alves <palves@redhat.com>
10511 * gdbthread.h (struct regcache): Forward declare.
10512 (struct thread_info) <regcache_data>: Now a struct regcache
10514 * inferiors.c (inferior_regcache_data)
10515 (set_inferior_regcache_data): Now work with struct regcache
10517 * inferiors.h (struct regcache): Forward declare.
10518 (inferior_regcache_data, set_inferior_regcache_data): Now work
10519 with struct regcache pointers.
10520 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10521 (free_register_cache_thread): Remove struct regcache pointer
10524 2015-08-06 Pedro Alves <palves@redhat.com>
10526 * server.c (captured_main): On error, print the exception message
10527 to stderr, and if run_once is set, throw a quit.
10529 2015-08-06 Pedro Alves <palves@redhat.com>
10531 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10532 the current thread.
10534 2015-08-06 Pedro Alves <palves@redhat.com>
10536 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10537 reading beyond the passed in buffer length.
10539 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10541 * tracepoint.c (symbol_list) <required>: Remove.
10543 2015-08-06 Pedro Alves <palves@redhat.com>
10545 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10546 count if stopping and suspending threads.
10547 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10548 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10549 (linux_detach): Complete an ongoing step-over.
10550 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10552 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10553 (linux_wait_1): If passing a signal to the inferior after
10554 finishing a step-over, unsuspend and re-resume all lwps. If we
10555 see a single-step event but the thread should be continuing, don't
10556 pass the trap to gdb.
10557 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10558 internal_error instead of gdb_assert.
10559 (enqueue_pending_signal): New function.
10560 (check_ptrace_stopped_lwp_gone): Add debug output.
10561 (start_step_over): Use internal_error instead of gdb_assert.
10562 (complete_ongoing_step_over): New function.
10563 (linux_resume_one_thread): Don't resume a suspended thread.
10564 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10567 2015-08-06 Pedro Alves <palves@redhat.com>
10569 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10570 (linux_thread_alive): Use lwp_is_marked_dead.
10571 (extended_event_reported): Delete.
10572 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10573 instead of extended_event_reported.
10574 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10576 (lwp_is_marked_dead): New function.
10577 (lwp_running): Use lwp_is_marked_dead.
10578 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10581 2015-08-06 Pedro Alves <palves@redhat.com>
10583 * linux-low.c (linux_wait_1): Move fork event output out of the
10584 !report_to_gdb check. Pass event_child->waitstatus to
10585 target_waitstatus_to_string instead of ourstatus.
10587 2015-08-04 Yao Qi <yao.qi@linaro.org>
10589 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10590 if current_thread is 32 bit.
10592 2015-08-04 Yao Qi <yao.qi@linaro.org>
10594 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10595 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10596 * server.c (extended_protocol): Remove "static".
10597 * server.h (extended_protocol): Declare it.
10599 2015-08-04 Yao Qi <yao.qi@linaro.org>
10601 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10602 both aarch64 and aarch32.
10603 (aarch64_set_pc): Likewise.
10605 2015-08-04 Yao Qi <yao.qi@linaro.org>
10607 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10608 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10609 arm-with-neon.xml to srv_xmlfiles.
10610 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10611 (is_64bit_tdesc): New function.
10612 (aarch64_linux_read_description): New function.
10613 (aarch64_arch_setup): Call aarch64_linux_read_description.
10614 (regs_info): Rename to regs_info_aarch64.
10615 (aarch64_regs_info): Return right regs_info.
10616 (initialize_low_arch): Call initialize_low_arch_aarch32.
10618 2015-08-04 Yao Qi <yao.qi@linaro.org>
10620 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10621 * linux-aarch32-low.c: New file.
10622 * linux-aarch32-low.h: New file.
10623 * linux-arm-low.c (arm_fill_gregset): Move it to
10624 linux-aarch32-low.c.
10625 (arm_store_gregset): Likewise.
10626 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10627 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10628 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10629 (regs_info): Rename to regs_info_arm.
10630 (arm_regs_info): Return regs_info_aarch32 if
10631 have_ptrace_getregset is 1 and target description is
10632 arm_with_neon or arm_with_vfpv3.
10633 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10634 Call initialize_low_arch_aarch32 instead.
10636 2015-08-04 Yao Qi <yao.qi@linaro.org>
10638 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10639 * linux-low.c: ... here.
10640 * linux-low.h (have_ptrace_getregset): Declare it.
10642 2015-08-04 Pedro Alves <palves@redhat.com>
10644 * thread-db.c (struct thread_db): Use new typedefs.
10645 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10647 (disable_thread_event_reporting): Cast result of dlsym to
10648 destination function pointer type.
10649 (thread_db_mourn): Use td_ta_delete_ftype.
10651 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10653 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10655 (CDX_BREAKPOINT): Define for R2.
10656 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10657 (the_low_target): Add comments.
10659 2015-07-30 Yao Qi <yao.qi@linaro.org>
10661 * linux-arm-low.c (arm_hwcap): Remove it.
10662 (arm_read_description): New local variable arm_hwcap. Don't
10663 set arm_hwcap to zero.
10665 2015-07-30 Yao Qi <yao.qi@linaro.org>
10667 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10668 Use regcache->tdesc instead.
10669 (arm_store_wmmxregset): Likewise.
10670 (arm_fill_vfpregset): Likewise.
10671 (arm_store_vfpregset): Likewise.
10673 2015-07-30 Yao Qi <yao.qi@linaro.org>
10675 * linux-arm-low.c: Include arch/arm.h.
10676 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10677 (arm_store_gregset): Likewise.
10679 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10681 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10682 ptrace's 4th parameter.
10684 2015-07-27 Yao Qi <yao.qi@linaro.org>
10686 * configure.srv (case aarch64*-*-linux*): Don't set
10689 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10691 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10693 * linux-arm-low.c: Likewise.
10694 * linux-cris-low.c: Likewise.
10695 * linux-crisv32-low.c: Likewise.
10696 * linux-low.c: Likewise.
10697 * linux-m68k-low.c: Likewise.
10698 * linux-mips-low.c: Likewise.
10699 * linux-nios2-low.c: Likewise.
10700 * linux-s390-low.c: Likewise.
10701 * linux-sparc-low.c: Likewise.
10702 * linux-tic6x-low.c: Likewise.
10703 * linux-tile-low.c: Likewise.
10704 * linux-x86-low.c: Likewise.
10706 2015-07-24 Pedro Alves <palves@redhat.com>
10708 * config.in: Regenerate.
10709 * configure: Regenerate.
10711 2015-07-24 Pedro Alves <palves@redhat.com>
10713 * acinclude.m4: Include ../ptrace.m4.
10714 * configure.ac: Call GDB_AC_PTRACE.
10715 * config.in, configure: Regenerate.
10717 2015-07-24 Yao Qi <yao.qi@linaro.org>
10719 * linux-low.c (linux_create_inferior): Remove setting to
10720 proc->priv->new_inferior.
10721 (linux_attach): Likewise.
10722 (linux_low_filter_event): Likewise.
10723 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10725 2015-07-24 Yao Qi <yao.qi@linaro.org>
10727 * linux-low.c (linux_arch_setup): New function.
10728 (linux_low_filter_event): If proc->tdesc is NULL and
10729 proc->attached is true, call the_low_target.arch_setup.
10730 Otherwise, keep status pending, and return.
10731 (linux_resume_one_lwp_throw): Don't call get_pc if
10732 thread->while_stepping isn't NULL. Don't call
10733 get_thread_regcache if proc->tdesc is NULL.
10734 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10735 (linux_target_ops): Install arch_setup.
10736 * server.c (start_inferior): Call the_target->arch_setup.
10737 * target.h (struct target_ops) <arch_setup>: New field.
10738 (target_arch_setup): New marco.
10739 * lynx-low.c (lynx_target_ops): Update.
10740 * nto-low.c (nto_target_ops): Update.
10741 * spu-low.c (spu_target_ops): Update.
10742 * win32-low.c (win32_target_ops): Update.
10744 2015-07-24 Yao Qi <yao.qi@linaro.org>
10746 * linux-low.c (linux_add_process): Don't set
10747 proc->priv->new_inferior.
10748 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10749 (linux_attach): Likewise.
10751 2015-07-24 Yao Qi <yao.qi@linaro.org>
10753 * server.c (start_inferior): Code refactor.
10755 2015-07-24 Yao Qi <yao.qi@linaro.org>
10757 * server.c (process_serial_event): Set general_thread.
10759 2015-07-21 Yao Qi <yao.qi@linaro.org>
10761 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10762 aarch64_linux_get_debug_reg_capacity.
10764 2015-07-17 Yao Qi <yao.qi@linaro.org>
10766 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10767 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10768 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10769 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10770 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10771 (AARCH64_HWP_ALIGNMENT): Likewise.
10772 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10773 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10774 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10775 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10776 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10777 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10778 (struct aarch64_debug_reg_state): Likewise.
10779 (struct arch_lwp_info): Likewise.
10780 (aarch64_align_watchpoint): Likewise.
10781 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10782 (aarch64_watchpoint_length): Likewise.
10783 (aarch64_point_encode_ctrl_reg): Likewise
10784 (aarch64_point_is_aligned): Likewise.
10785 (aarch64_align_watchpoint): Likewise.
10786 (aarch64_linux_set_debug_regs):
10787 (aarch64_dr_state_insert_one_point): Likewise.
10788 (aarch64_dr_state_remove_one_point): Likewise.
10789 (aarch64_handle_breakpoint): Likewise.
10790 (aarch64_handle_aligned_watchpoint): Likewise.
10791 (aarch64_handle_unaligned_watchpoint): Likewise.
10792 (aarch64_handle_watchpoint): Likewise.
10794 2015-07-17 Yao Qi <yao.qi@linaro.org>
10796 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10797 and don't aarch64_get_debug_reg_state. All callers update.
10798 (aarch64_handle_aligned_watchpoint): Likewise.
10799 (aarch64_handle_unaligned_watchpoint): Likewise.
10800 (aarch64_handle_watchpoint): Likewise.
10801 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10802 (aarch64_remove_point): Likewise.
10804 2015-07-17 Yao Qi <yao.qi@linaro.org>
10806 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10808 (aarch64_handle_unaligned_watchpoint): Likewise.
10810 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10812 Revert the previous 3 commits:
10813 Move gdb_regex* to common/
10814 Move linux_find_memory_regions_full & co.
10815 gdbserver build-id attribute generator
10817 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10818 Jan Kratochvil <jan.kratochvil@redhat.com>
10820 gdbserver build-id attribute generator.
10821 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10822 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10823 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10825 (get_dynamic): Use find_pdhr to traverse program headers.
10826 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10827 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10828 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10829 (get_hex_build_id): New.
10830 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10831 to reply XML document.
10833 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10834 Jan Kratochvil <jan.kratochvil@redhat.com>
10836 * target.c: Include target/target-utils.h and fcntl.h.
10837 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10838 (target_fileio_read_stralloc): New functions.
10840 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10842 * Makefile.in (OBS): Add gdb_regex.o.
10843 (gdb_regex.o): New.
10844 * config.in: Rebuilt.
10845 * configure: Rebuilt.
10847 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10848 Jan Kratochvil <jan.kratochvil@redhat.com>
10850 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10851 * Makefile.in (OBS): Add target-utils.o.
10852 (linux-maps.o, target-utils.o): New.
10853 * configure.srv (srv_linux_obj): Add linux-maps.o.
10855 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10857 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10858 function, return 1.
10859 (the_low_target): Install it.
10861 2015-07-14 Pedro Alves <palves@redhat.com>
10863 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10864 Instead, ignore ECHILD, and throw an error for other errnos.
10866 2015-07-10 Pedro Alves <palves@redhat.com>
10868 * event-loop.c (struct callback_event) <data>: Change type to
10869 gdb_client_data instance instead of gdb_client_data pointer.
10870 (append_callback_event): Adjust.
10872 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10874 * linux-aarch64-low.c: Add comments for each linux_target_ops
10875 method. Remove comments already covered in target_ops and
10876 linux_target_ops definitions.
10877 (the_low_target): Add comments for each unimplemented method.
10879 2015-07-09 Yao Qi <yao.qi@linaro.org>
10881 * linux-aarch64-low.c (aarch64_regmap): Remove.
10882 (aarch64_usrregs_info): Remove.
10883 (regs_info): Set field usrregs to NULL.
10885 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10887 * linux-low.c: Include "rsp-low.h"
10888 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10889 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10890 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10891 (handle_btrace_enable_pt): New.
10892 (handle_btrace_general_set): Support "pt".
10893 (handle_btrace_conf_general_set): Support "pt:size".
10895 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10897 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10900 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10902 * linux-aarch64-low.c: Remove comment about endianness.
10903 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10904 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10907 2015-06-24 Gary Benson <gbenson@redhat.com>
10909 * linux-i386-ipa.c (stdint.h): Do not include.
10910 * lynx-i386-low.c (stdint.h): Likewise.
10911 * lynx-ppc-low.c (stdint.h): Likewise.
10912 * mem-break.c (stdint.h): Likewise.
10913 * thread-db.c (stdint.h): Likewise.
10914 * tracepoint.c (stdint.h): Likewise.
10915 * win32-low.c (stdint.h): Likewise.
10917 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10919 * server.c (write_qxfer_response): Update call to
10920 remote_escape_output.
10922 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10923 Jan Kratochvil <jan.kratochvil@redhat.com>
10925 Merge multiple hex conversions.
10926 * gdbreplay.c (tohex): Rename to 'fromhex'.
10927 (logchar): Use fromhex.
10929 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10931 * server.c (handle_qxfer_libraries): Set `version' attribute for
10934 2015-06-10 Gary Benson <gbenson@redhat.com>
10936 * target.h (struct target_ops) <multifs_open>: New field.
10937 <multifs_unlink>: Likewise.
10938 <multifs_readlink>: Likewise.
10939 * linux-low.c (nat/linux-namespaces.h): New include.
10940 (linux_target_ops): Initialize the_target->multifs_open,
10941 the_target->multifs_unlink and the_target->multifs_readlink.
10942 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10943 * hostio.c (hostio_fs_pid): New static variable.
10944 (hostio_handle_new_gdb_connection): New function.
10945 (handle_setfs): Likewise.
10946 (handle_open): Use the_target->multifs_open as appropriate.
10947 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10948 (handle_readlink): Use the_target->multifs_readlink as
10950 (handle_vFile): Handle vFile:setfs packets.
10951 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10952 after target_handle_new_gdb_connection.
10954 2015-06-10 Gary Benson <gbenson@redhat.com>
10956 * configure.ac (AC_CHECK_FUNCS): Add setns.
10957 * config.in: Regenerate.
10958 * configure: Likewise.
10959 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10960 (linux-namespaces.o): New rule.
10961 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10963 2015-06-09 Gary Benson <gbenson@redhat.com>
10965 * hostio.c (handle_open): Process mode argument with
10966 fileio_to_host_mode.
10968 2015-06-01 Yao Qi <yao.qi@linaro.org>
10970 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10971 * linux-x86-low.c: Likewise.
10973 2015-05-28 Don Breazeal <donb@codesourcery.com>
10975 * linux-low.c (handle_extended_wait): Initialize
10976 thread_info.last_resume_kind for new fork children.
10978 2015-05-15 Pedro Alves <palves@redhat.com>
10980 * target.h (target_handle_new_gdb_connection): Rewrite using if
10981 wrapped in do/while.
10983 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10985 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10986 * configure, config.in: Regenerate.
10987 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10990 2015-05-12 Don Breazeal <donb@codesourcery.com>
10992 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10993 PTRACE_EVENT_VFORK_DONE.
10994 (linux_low_ptrace_options, extended_event_reported): Add vfork
10996 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10997 and "vforkdone" for RSP 'T' Stop Reply Packet.
10998 * server.h (report_vfork_events): Declare
11001 2015-05-12 Don Breazeal <donb@codesourcery.com>
11003 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11004 (the_low_target) <new_fork>: Initialize new member.
11005 * linux-arm-low.c (arm_new_fork): New function.
11006 (the_low_target) <new_fork>: Initialize new member.
11007 * linux-low.c (handle_extended_wait): Call new target function
11009 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11010 * linux-mips-low.c (mips_add_watchpoint): New function
11011 extracted from mips_insert_point.
11012 (the_low_target) <new_fork>: Initialize new member.
11013 (mips_linux_new_fork): New function.
11014 (mips_insert_point): Call mips_add_watchpoint.
11015 * linux-x86-low.c (x86_linux_new_fork): New function.
11016 (the_low_target) <new_fork>: Initialize new member.
11018 2015-05-12 Don Breazeal <donb@codesourcery.com>
11020 * linux-low.c (handle_extended_wait): Implement return value,
11021 rename argument 'event_child' to 'event_lwp', handle
11022 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11023 (linux_low_ptrace_options): New function.
11024 (linux_low_filter_event): Call linux_low_ptrace_options,
11025 use different argument fo linux_enable_event_reporting,
11026 use return value from handle_extended_wait.
11027 (extended_event_reported): New function.
11028 (linux_wait_1): Call extended_event_reported and set
11029 status to report fork events.
11030 (linux_write_memory): Add pid to debug message.
11031 (reset_lwp_ptrace_options_callback): New function.
11032 (linux_handle_new_gdb_connection): New function.
11033 (linux_target_ops): Initialize new structure member.
11034 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11035 * lynx-low.c: Initialize new structure member.
11036 * remote-utils.c (prepare_resume_reply): Implement stop reason
11037 "fork" for "T" stop message.
11038 * server.c (handle_query): Call handle_new_gdb_connection.
11039 * server.h (report_fork_events): Declare global flag.
11040 * target.h (struct target_ops) <handle_new_gdb_connection>:
11042 (target_handle_new_gdb_connection): New macro.
11043 * win32-low.c: Initialize new structure member.
11045 2015-05-12 Don Breazeal <donb@codesourcery.com>
11047 * mem-break.c (APPEND_TO_LIST): Define macro.
11048 (clone_agent_expr): New function.
11049 (clone_one_breakpoint): New function.
11050 (clone_all_breakpoints): New function.
11051 * mem-break.h: Declare new functions.
11053 2015-05-12 Don Breazeal <donb@codesourcery.com>
11055 * linux-low.c (linux_supports_fork_events): New function.
11056 (linux_supports_vfork_events): New function.
11057 (linux_target_ops): Initialize new structure members.
11058 (initialize_low): Call linux_check_ptrace_features.
11059 * lynx-low.c (lynx_target_ops): Initialize new structure
11061 * server.c (report_fork_events, report_vfork_events):
11063 (handle_query): Add new features to qSupported packet and
11065 (captured_main): Initialize new global variables.
11066 * target.h (struct target_ops) <supports_fork_events>:
11068 <supports_vfork_events>: New member.
11069 (target_supports_fork_events): New macro.
11070 (target_supports_vfork_events): New macro.
11071 * win32-low.c (win32_target_ops): Initialize new structure
11074 2015-05-12 Gary Benson <gbenson@redhat.com>
11076 * server.c (handle_qxfer_exec_file): Use current process
11079 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11081 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11082 Remove HAVE_PTRACE_GETREGS conditionals.
11083 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11084 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11086 2015-05-08 Yao Qi <yao.qi@linaro.org>
11088 * linux-low.c (linux_supports_conditional_breakpoints): New
11090 (linux_target_ops): Install new target method.
11091 * lynx-low.c (lynx_target_ops): Install NULL hook for
11092 supports_conditional_breakpoints.
11093 * nto-low.c (nto_target_ops): Likewise.
11094 * spu-low.c (spu_target_ops): Likewise.
11095 * win32-low.c (win32_target_ops): Likewise.
11096 * server.c (handle_query): Check
11097 target_supports_conditional_breakpoints.
11098 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11100 (target_supports_conditional_breakpoints): New macro.
11102 2015-05-06 Pedro Alves <palves@redhat.com>
11105 * server.c (start_inferior): If the process exits, mourn it.
11107 2015-04-21 Gary Benson <gbenson@redhat.com>
11109 * hostio.c (fileio_open_flags_to_host): Factored out to
11110 fileio_to_host_openflags in common/fileio.c. Single use
11113 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11115 * linux-xtensa-low.c (xtensa_fill_gregset)
11116 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11119 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11121 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11122 (regs_info): Replace usrregs pointer with NULL.
11124 2015-04-17 Gary Benson <gbenson@redhat.com>
11126 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11127 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11128 * server.c (handle_qxfer_exec_file): New function.
11129 (qxfer_packets): Add exec-file entry.
11130 (handle_query): Report qXfer:exec-file:read as supported packet.
11132 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11134 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11136 2015-04-09 Gary Benson <gbenson@redhat.com>
11138 * hostio-errno.c (errno_to_fileio_error): Remove function.
11139 Update caller to use remote_fileio_to_fio_error.
11141 2015-04-09 Yao Qi <yao.qi@linaro.org>
11143 * linux-low.c (linux_insert_point): Call
11144 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11145 (linux_remove_point): Call remove_memory_breakpoint if type is
11147 * linux-x86-low.c (x86_insert_point): Don't call
11148 insert_memory_breakpoint.
11149 (x86_remove_point): Don't call remove_memory_breakpoint.
11151 2015-04-01 Pedro Alves <palves@redhat.com>
11152 Cleber Rosa <crosa@redhat.com>
11154 * server.c (gdbserver_usage): Reorganize and extend the usage
11157 2015-03-24 Pedro Alves <palves@redhat.com>
11159 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11160 output. Also dump TRAP_TRACE.
11161 (linux_low_filter_event): In debug output, distinguish a
11162 resume_stop SIGSTOP from a delayed SIGSTOP.
11164 2015-03-24 Gary Benson <gbenson@redhat.com>
11166 * linux-x86-low.c (x86_linux_new_thread): Moved to
11168 (x86_linux_prepare_to_resume): Likewise.
11170 2015-03-24 Gary Benson <gbenson@redhat.com>
11172 * Makefile.in (x86-linux-dregs.o): New rule.
11173 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11174 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11175 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11176 (x86_linux_dr_get): Likewise.
11177 (x86_linux_dr_set): Likewise.
11178 (update_debug_registers_callback): Likewise.
11179 (x86_linux_dr_set_addr): Likewise.
11180 (x86_linux_dr_get_addr): Likewise.
11181 (x86_linux_dr_set_control): Likewise.
11182 (x86_linux_dr_get_control): Likewise.
11183 (x86_linux_dr_get_status): Likewise.
11184 (x86_linux_update_debug_registers): Likewise.
11186 2015-03-24 Gary Benson <gbenson@redhat.com>
11188 * linux-x86-low.c (x86_linux_update_debug_registers):
11189 New function, factored out from...
11190 (x86_linux_prepare_to_resume): ...this.
11192 2015-03-24 Gary Benson <gbenson@redhat.com>
11194 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11195 (x86_linux_dr_set): Likewise.
11196 (update_debug_registers_callback): Likewise.
11197 (x86_linux_dr_set_addr): Likewise.
11198 (x86_linux_dr_get_addr): Likewise.
11199 (x86_linux_dr_set_control): Likewise.
11200 (x86_linux_dr_get_control): Likewise.
11201 (x86_linux_dr_get_status): Likewise.
11202 (x86_linux_prepare_to_resume): Likewise.
11204 2015-03-24 Gary Benson <gbenson@redhat.com>
11206 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11207 Use perror_with_name. Pass string through gettext.
11208 (x86_linux_dr_set): Likewise.
11210 2015-03-24 Gary Benson <gbenson@redhat.com>
11212 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11213 (x86_linux_dr_set_addr): ...this.
11214 (x86_dr_low_get_addr): Rename to...
11215 (x86_linux_dr_get_addr): ...this.
11216 (x86_dr_low_set_control): Rename to...
11217 (x86_linux_dr_set_control): ...this.
11218 (x86_dr_low_get_control): Rename to...
11219 (x86_linux_dr_get_control): ...this.
11220 (x86_dr_low_get_status): Rename to...
11221 (x86_linux_dr_get_status): ...this.
11222 (x86_dr_low): Update with new function names.
11224 2015-03-24 Gary Benson <gbenson@redhat.com>
11226 * Makefile.in (x86-linux.o): New rule.
11227 * configure.srv: Add x86-linux.o to relevant targets.
11228 * linux-low.c (lwp_set_arch_private_info): New function.
11229 (lwp_arch_private_info): Likewise.
11230 * linux-x86-low.c: Include nat/x86-linux.h.
11231 (arch_lwp_info): Removed structure.
11232 (update_debug_registers_callback):
11233 Use lwp_set_debug_registers_changed.
11234 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11235 and lwp_set_debug_registers_changed.
11236 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11238 2015-03-24 Gary Benson <gbenson@redhat.com>
11240 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11241 * linux-arm-low.c (arm_new_thread): Likewise.
11242 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11243 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11244 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11245 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11247 2015-03-24 Gary Benson <gbenson@redhat.com>
11249 * linux-low.c (ptid_of_lwp): New function.
11250 (lwp_is_stopped): Likewise.
11251 (lwp_stop_reason): Likewise.
11252 * linux-x86-low.c (update_debug_registers_callback):
11253 Use lwp_is_stopped.
11254 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11257 2015-03-24 Gary Benson <gbenson@redhat.com>
11259 * linux-low.h (linux_stop_lwp): Remove declaration.
11261 2015-03-24 Gary Benson <gbenson@redhat.com>
11263 * linux-low.h: Include nat/linux-nat.h.
11264 * linux-low.c (iterate_over_lwps_args): New structure.
11265 (iterate_over_lwps_filter): New function.
11266 (iterate_over_lwps): Likewise.
11267 * linux-x86-low.c (update_debug_registers_callback):
11268 Update signature to what iterate_over_lwps expects.
11269 Remove PID check that iterate_over_lwps now performs.
11270 (x86_dr_low_set_addr): Use iterate_over_lwps.
11271 (x86_dr_low_set_control): Likewise.
11273 2015-03-24 Gary Benson <gbenson@redhat.com>
11275 * linux-x86-low.c (x86_debug_reg_state): New function.
11276 (x86_linux_prepare_to_resume): Use the above.
11278 2015-03-24 Gary Benson <gbenson@redhat.com>
11280 * linux-low.c (current_lwp_ptid): New function.
11281 * linux-x86-low.c: Include nat/linux-nat.h.
11282 (x86_dr_low_get_addr): Use current_lwp_ptid.
11283 (x86_dr_low_get_control): Likewise.
11284 (x86_dr_low_get_status): Likewise.
11286 2015-03-20 Pedro Alves <palves@redhat.com>
11288 * tracepoint.c (cmd_qtstatus): Make "str" const.
11290 2015-03-20 Pedro Alves <palves@redhat.com>
11292 * server.c (handle_general_set): Make "req_str" const.
11294 2015-03-19 Pedro Alves <palves@redhat.com>
11296 * linux-low.c (linux_resume_one_lwp): Rename to ...
11297 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11298 instead call perror_with_name.
11299 (check_ptrace_stopped_lwp_gone): New function.
11300 (linux_resume_one_lwp): Reimplement as wrapper around
11301 linux_resume_one_lwp_throw that swallows errors if the LWP is
11304 2015-03-19 Pedro Alves <palves@redhat.com>
11306 * linux-low.c (count_events_callback, select_event_lwp_callback):
11307 No longer check whether the thread has resume_stop as last resume
11310 2015-03-19 Pedro Alves <palves@redhat.com>
11312 * linux-low.c (count_events_callback, select_event_lwp_callback):
11313 Use the lwp's status_pending_p field, not the thread's.
11315 2015-03-19 Pedro Alves <palves@redhat.com>
11317 * linux-low.c (select_event_lwp_callback): Update comments to
11318 no longer mention SIGTRAP.
11320 2015-03-18 Gary Benson <gbenson@redhat.com>
11322 * server.c (handle_query): Do not report vFile:fstat as supported.
11324 2015-03-11 Gary Benson <gbenson@redhat.com>
11326 * hostio.c (sys/types.h): New include.
11327 (sys/stat.h): Likewise.
11328 (common-remote-fileio.h): Likewise.
11329 (handle_fstat): New function.
11330 (handle_vFile): Handle vFile:fstat packets.
11332 2015-03-11 Gary Benson <gbenson@redhat.com>
11334 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11335 struct stat.st_blocks and struct stat.st_blksize.
11336 * configure: Regenerate.
11337 * config.in: Likewise.
11338 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11339 (OBS): Add common-remote-fileio.o.
11340 (common-remote-fileio.o): New rule.
11342 2015-03-09 Pedro Alves <palves@redhat.com>
11344 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11345 'struct sockaddr' pointer in 'accept' call.
11347 2015-03-09 Pedro Alves <palves@redhat.com>
11350 2015-03-07 Pedro Alves <palves@redhat.com>
11351 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11352 or <winsock2.h> here. Instead include "gdb_socket.h".
11353 (remote_open): Use union gdb_sockaddr_u.
11354 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11355 or <winsock2.h> here. Instead include "gdb_socket.h".
11356 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11357 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11359 (init_named_socket, gdb_agent_helper_thread): Use union
11362 2015-03-07 Pedro Alves <palves@redhat.com>
11364 * configure.ac (build_warnings): Move
11365 -Wdeclaration-after-statement to the C-specific set.
11366 * configure: Regenerate.
11368 2015-03-07 Pedro Alves <palves@redhat.com>
11370 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11371 or <winsock2.h> here. Instead include "gdb_socket.h".
11372 (remote_open): Use union gdb_sockaddr_u.
11373 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11374 or <winsock2.h> here. Instead include "gdb_socket.h".
11375 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11376 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11378 (init_named_socket, gdb_agent_helper_thread): Use union
11381 2015-03-07 Pedro Alves <palves@redhat.com>
11383 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11386 2015-03-06 Yao Qi <yao.qi@linaro.org>
11388 * linux-aarch64-low.c (aarch64_insert_point): Use
11389 show_debug_regs as a boolean.
11390 (aarch64_remove_point): Likewise.
11392 2015-03-05 Pedro Alves <palves@redhat.com>
11394 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11395 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11396 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11397 * nto-low.c (nto_target_ops): Likewise.
11398 * spu-low.c (spu_target_ops): Likewise.
11399 * win32-low.c (win32_target_ops): Likewise.
11401 2015-03-04 Pedro Alves <palves@redhat.com>
11403 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11404 Decide whether a breakpoint triggered based on the SIGTRAP's
11406 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11407 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11408 (linux_low_filter_event): Check for breakpoints before checking
11410 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11412 (linux_stopped_by_sw_breakpoint)
11413 (linux_supports_stopped_by_sw_breakpoint)
11414 (linux_stopped_by_hw_breakpoint)
11415 (linux_supports_stopped_by_hw_breakpoint): New functions.
11416 (linux_target_ops): Install new target methods.
11418 2015-03-04 Pedro Alves <palves@redhat.com>
11420 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11421 * server.c (swbreak_feature, hwbreak_feature): New globals.
11422 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11423 (captured_main): Clear swbreak_feature and hwbreak_feature.
11424 * server.h (swbreak_feature, hwbreak_feature): Declare.
11425 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11426 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11427 supports_stopped_by_hw_breakpoint>: New fields.
11428 (target_supports_stopped_by_sw_breakpoint)
11429 (target_stopped_by_sw_breakpoint)
11430 (target_supports_stopped_by_hw_breakpoint)
11431 (target_stopped_by_hw_breakpoint): Declare.
11433 2015-03-04 Pedro Alves <palves@redhat.com>
11435 enum lwp_stop_reason -> enum target_stop_reason
11436 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11437 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11438 (linux_wait_1, stuck_in_jump_pad_callback)
11439 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11440 (linux_stopped_by_watchpoint):
11441 * linux-low.h (enum lwp_stop_reason): Delete.
11442 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11443 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11445 2015-03-04 Yao Qi <yao.qi@linaro.org>
11447 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11449 2015-03-03 Gary Benson <gbenson@redhat.com>
11451 * hostio.c (handle_vFile): Fix prefix lengths.
11453 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11455 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11458 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11460 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11461 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11462 (clean): Add "rm -f" for above C files.
11463 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11464 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11465 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11466 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11467 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11468 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11469 (init_registers_s390x_vx_linux64)
11470 (init_registers_s390x_tevx_linux64)
11471 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11472 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11474 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11475 (s390_store_vxrs_high): New functions.
11476 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11478 (s390_arch_setup): Add logic for selecting one of the new target
11479 descriptions. Activate the new vector regsets if applicable.
11480 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11481 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11482 and init_registers_s390x_tevx_linux64.
11484 2015-03-01 Pedro Alves <palves@redhat.com>
11486 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11489 2015-02-27 Pedro Alves <palves@redhat.com>
11491 * linux-x86-low.c (u_debugreg_offset): New function.
11492 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11494 2015-02-27 Pedro Alves <palves@redhat.com>
11496 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11497 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11498 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11499 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11500 (ps_lsetfpregs, ps_getpid)
11501 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11502 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11503 (ps_lsetxregs, ps_plog): Declare.
11505 2015-02-27 Pedro Alves <palves@redhat.com>
11507 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11508 IP_AGENT_EXPORT_FUNC.
11509 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11510 IP_AGENT_EXPORT_FUNC.
11511 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11512 (IP_AGENT_EXPORT): Delete.
11513 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11514 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11515 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11516 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11517 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11518 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11519 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11520 (traceframe_read_count, traceframe_write_count)
11521 (traceframes_created, trace_state_variables, get_raw_reg)
11522 (get_trace_state_variable_value, set_trace_state_variable_value)
11523 (ust_loaded, helper_thread_id, cmd_buf): Use
11524 IPA_SYM_EXPORTED_NAME.
11525 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11526 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11527 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11528 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11529 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11530 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11531 EXTERN_C_PUSH/EXTERN_C_POP.
11532 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11533 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11534 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11535 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11536 (traceframe_write_count, traceframe_read_count)
11537 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11538 (about_to_request_buffer_space, get_trace_state_variable_value)
11539 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11540 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11541 EXTERN_C_PUSH/EXTERN_C_POP.
11542 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11543 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11544 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11545 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
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): Use IP_AGENT_EXPORT_VAR.
11549 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11551 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11552 (IP_AGENT_EXPORT_VAR_DECL): Define.
11553 (tracing): Declare.
11554 (gdb_agent_get_raw_reg): Declare.
11556 2015-02-27 Tom Tromey <tromey@redhat.com>
11557 Pedro Alves <palves@redhat.com>
11559 Rename symbols whose names are reserved C++ keywords throughout.
11561 2015-02-27 Pedro Alves <palves@redhat.com>
11563 * Makefile.in (COMPILER): New, get it from autoconf.
11564 (CXX): Get from autoconf instead.
11565 (COMPILE.pre): Use COMPILER.
11566 (CC-LD): Rename to ...
11567 (CC_LD): ... this. Use COMPILER.
11568 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11569 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11570 * acinclude.m4: Include build-with-cxx.m4.
11571 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11572 Disable -Werror by default if building in C++ mode.
11573 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11574 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11575 the C++ compiler. Save/restore CXXFLAGS too.
11576 * configure: Regenerate.
11578 2015-02-27 Pedro Alves <palves@redhat.com>
11580 * acinclude.m4: Include libiberty.m4.
11581 * configure.ac: Call libiberty_INIT.
11582 * config.in, configure: Regenerate.
11584 2015-02-26 Pedro Alves <palves@redhat.com>
11586 * linux-low.c (linux_wait_1): When incrementing the PC past a
11587 program breakpoint always use the_low_target.breakpoint_len as
11588 increment, rather than the maximum between that and
11589 the_low_target.decr_pc_after_break.
11591 2015-02-23 Pedro Alves <palves@redhat.com>
11593 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11594 thread was doing a step-over; always adjust the PC if
11595 we stepped over a permanent breakpoint.
11596 (linux_wait_1): If we stepped over breakpoint that was on top of a
11597 permanent breakpoint, manually advance the PC past it.
11599 2015-02-23 Pedro Alves <palves@redhat.com>
11601 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11603 (x86_fill_gregset, x86_store_gregset): Use it when handling
11606 2015-02-20 Pedro Alves <palves@redhat.com>
11608 * thread-db.c: Include "nat/linux-procfs.h".
11609 (thread_db_init): Skip listing new threads if the kernel supports
11610 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11612 2015-02-20 Pedro Alves <palves@redhat.com>
11614 * linux-low.c (status_pending_p_callback): Use ptid_match.
11616 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11618 PR breakpoints/16812
11619 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11620 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11621 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11623 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11625 PR breakpoints/15956
11626 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11628 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11630 * linux-low.c (linux_low_btrace_conf): Print size.
11631 * server.c (handle_btrace_conf_general_set): New.
11632 (hanle_general_set): Call handle_btrace_conf_general_set.
11633 (handle_query): Report Qbtrace-conf:bts:size as supported.
11635 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11637 * linux-low.c (linux_low_enable_btrace): Update parameters.
11638 (linux_low_btrace_conf): New.
11639 (linux_target_ops)<to_btrace_conf>: Initialize.
11640 * server.c (current_btrace_conf): New.
11641 (handle_btrace_enable): Rename to ...
11642 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11643 to target_enable_btrace. Update comment. Update users.
11644 (handle_qxfer_btrace_conf): New.
11645 (qxfer_packets): Add btrace-conf entry.
11646 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11647 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11648 (target_ops)<read_btrace_conf>: New.
11649 (target_enable_btrace): Update parameters.
11650 (target_read_btrace_conf): New.
11652 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11654 * server.c (handle_btrace_general_set): Remove call to
11655 target_supports_btrace.
11656 (supported_btrace_packets): New.
11657 (handle_query): Call supported_btrace_packets.
11658 * target.h: include btrace-common.h.
11659 (btrace_target_info): Removed.
11660 (supports_btrace, target_supports_btrace): Update parameters.
11662 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11664 * Makefile.in (SFILES): Add common/btrace-common.c.
11665 (OBS): Add common/btrace-common.o.
11666 (btrace-common.o): Add build rules.
11667 * linux-low: Include btrace-common.h.
11668 (linux_low_read_btrace): Use struct btrace_data. Call
11669 btrace_data_init and btrace_data_fini.
11671 2015-02-06 Pedro Alves <palves@redhat.com>
11673 * thread-db.c (find_new_threads_callback): Add debug output.
11675 2015-02-04 Pedro Alves <palves@redhat.com>
11677 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11678 (resume_stopped_resumed_lwps): New function.
11679 (linux_wait_for_event_filtered): Use it.
11681 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11683 * Makefile.in (SFILES): Add linux-personality.c.
11684 (linux-personality.o): New rule.
11685 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11686 list of objects to be built.
11687 * linux-low.c: Include nat/linux-personality.h.
11688 (linux_create_inferior): Remove code to disable address space
11689 randomization (moved to ../nat/linux-personality.c). Create
11690 cleanup to disable address space randomization.
11692 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11694 * Makefile.in (posix-strerror.o): New rule.
11695 (mingw-strerror.o): Likewise.
11696 * configure: Regenerated.
11697 * configure.ac: Source file ../common/common.host. Initialize new
11698 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11700 2015-01-14 Yao Qi <yao@codesourcery.com>
11702 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11703 (ppc-linux.o): New rule.
11704 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11705 * configure.ac: AC_CHECK_FUNCS(getauxval).
11706 * config.in: Re-generated.
11707 * configure: Re-generated.
11708 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11709 ppc64_64bit_inferior_p
11711 2015-01-14 Yao Qi <yao@codesourcery.com>
11713 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11714 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11715 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11716 (PT_ORIG_R3, PT_TRAP): Likewise.
11717 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11718 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11719 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11721 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11723 * i387-fp.c (i387_cache_to_xsave): In look over
11724 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11725 zmmh_low_space field by use of zmmh_high_space.
11727 2015-01-09 Pedro Alves <palves@redhat.com>
11729 * linux-low.c (step_over_bkpt): Move higher up in the file.
11730 (handle_extended_wait): Don't store the stop_pc here.
11731 (get_stop_pc): Adjust comments and rename to ...
11732 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11733 stopped for a software breakpoint or hardware breakpoint.
11734 (thread_still_has_status_pending_p): New function.
11735 (status_pending_p_callback): Use
11736 thread_still_has_status_pending_p. If the event is no longer
11737 interesting, resume the LWP.
11738 (handle_tracepoints): Add assert.
11739 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11740 (wstatus_maybe_breakpoint): New function.
11741 (cancel_breakpoint): Delete function.
11742 (check_stopped_by_watchpoint): New function, factored out from
11743 linux_low_filter_event.
11744 (lp_status_maybe_breakpoint): Delete function.
11745 (linux_low_filter_event): Remove filter_ptid argument.
11746 Leave thread group exits pending here. Store the LWP's stop PC.
11747 Always leave events pending.
11748 (linux_wait_for_event_filtered): Pull all events out of the
11749 kernel, and leave them all pending.
11750 (count_events_callback, select_event_lwp_callback): Consider all
11752 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11753 (select_event_lwp): Only give preference to the stepping LWP in
11754 all-stop mode. Adjust comments.
11755 (ignore_event): New function.
11756 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11757 references to cancel_breakpoints. Adjust to renames. Also give
11758 equal priority to all LWPs that have had events in non-stop mode.
11759 If reporting a software breakpoint event, unadjust the LWP's PC.
11760 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11761 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11763 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11764 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11765 (linux_stopped_by_watchpoint): Adjust.
11766 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11767 * linux-low.h (enum lwp_stop_reason): New.
11768 (struct lwp_info) <stop_pc>: Adjust comment.
11769 <stopped_by_watchpoint>: Delete field.
11770 <stop_reason>: New field.
11771 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11772 * mem-break.c (software_breakpoint_inserted_here)
11773 (hardware_breakpoint_inserted_here): New function.
11774 * mem-break.h (software_breakpoint_inserted_here)
11775 (hardware_breakpoint_inserted_here): Declare.
11776 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11777 (cancel_breakpoints): Delete.
11778 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11779 (upload_fast_traceframes): Remove references to
11780 cancel_breakpoints.
11782 2015-01-09 Pedro Alves <palves@redhat.com>
11784 * thread-db.c (find_new_threads_callback): Ignore thread if the
11785 kernel thread ID is -1.
11787 2015-01-09 Pedro Alves <palves@redhat.com>
11789 * linux-low.c (linux_attach_fail_reason_string): Move to
11790 nat/linux-ptrace.c, and rename.
11791 (linux_attach_lwp): Update comment.
11792 (attach_proc_task_lwp_callback): New function.
11793 (linux_attach): Adjust to rename and use
11794 linux_proc_attach_tgid_threads.
11795 (linux_attach_fail_reason_string): Delete declaration.
11797 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11799 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11800 * server.c (gdbserver_version): Likewise.
11802 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11804 * remote-utils.c: Include ctype.h.
11805 (input_interrupt): Explicitly handle the case when the char
11806 received is the NUL byte. Improve the printing of non-ASCII
11809 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11811 * linux-low.c (linux_low_filter_event): Update call to
11812 linux_enable_event_reporting following the addition of
11813 a new parameter to that function.
11815 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11818 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11819 (AARCH64_FPCR_REGNO): Likewise.
11820 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11821 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11822 (aarch64_store_fpregset): Likewise.
11824 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11826 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11827 Remove FIXME comment about assumption about N.
11829 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11831 * configure.ac: If large-file support is disabled in GDBserver,
11832 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11833 * configure: Regenerate.
11835 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11837 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11838 warning upon ENODATA from ptrace.
11839 * linux-s390-low.c (s390_store_tdb): New.
11840 (s390_regsets): Add regset for NT_S390_TDB.
11842 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11844 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11845 without a fill_function.
11846 * linux-s390-low.c (s390_fill_last_break): Remove.
11847 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11848 (s390_arch_setup): Use regset's size instead of fill_function for
11849 loop end condition.
11851 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11853 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11854 the regset's store function when ptrace returned an error.
11855 * regcache.c (get_thread_regcache): Invalidate register cache
11856 before fetching inferior's registers.
11858 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11860 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11861 while-loop as for-loop.
11862 (regsets_store_inferior_registers): Likewise.
11864 2014-11-28 Yao Qi <yao@codesourcery.com>
11866 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11867 * config.in, configure: Re-generate.
11868 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11871 2014-11-21 Yao Qi <yao@codesourcery.com>
11873 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11874 (AC_CHECK_HEADERS): Remove malloc.h.
11875 * configure: Re-generated.
11876 * config.in: Re-generated.
11877 * server.h: Don't include alloca.h and malloc.h.
11878 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11879 Don't include malloc.h.
11881 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11883 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11884 corresponding ERRNO check in same block.
11886 2014-11-12 Pedro Alves <palves@redhat.com>
11888 * server.c (cont_thread): Update comment.
11889 (start_inferior, attach_inferior): No longer clear cont_thread.
11890 (handle_v_cont): No longer set cont_thread.
11891 (captured_main): Clear cont_thread each time a GDB connects.
11893 2014-11-12 Pedro Alves <palves@redhat.com>
11895 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11896 thread, and don't resume all threads if the Hc thread has exited.
11898 2014-11-12 Pedro Alves <palves@redhat.com>
11900 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11901 the process group instead of to a specific LWP.
11903 2014-10-15 Pedro Alves <palves@redhat.com>
11906 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11908 (arm_set_thread_context): Delete.
11909 (the_low_target): Adjust.
11910 * win32-i386-low.c (debug_registers_changed)
11911 (debug_registers_used): Delete.
11912 (update_debug_registers_callback): New function.
11913 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11914 needing to update their debug registers.
11915 (win32_get_current_dr): New function.
11916 (x86_dr_low_get_addr, x86_dr_low_get_control)
11917 (x86_dr_low_get_status): Fetch the debug register from the thread
11919 (i386_initial_stuff): Adjust.
11920 (i386_get_thread_context): Remove current_event parameter. Don't
11921 clear debug_registers_changed nor copy DR values to
11923 (i386_set_thread_context): Delete.
11924 (i386_prepare_to_resume): New function.
11925 (i386_thread_added): Mark the thread as needing to update irs
11927 (the_low_target): Remove i386_set_thread_context and install
11928 i386_prepare_to_resume.
11929 * win32-low.c (win32_get_thread_context): Adjust.
11930 (win32_set_thread_context): Use SetThreadContext
11932 (win32_prepare_to_resume): New function.
11933 (win32_require_context): New function, factored out from ...
11934 (thread_rec): ... this.
11935 (continue_one_thread): Call win32_prepare_to_resume on each thread
11936 we're about to continue.
11937 (win32_resume): Call win32_prepare_to_resume on the event thread.
11938 * win32-low.h (struct win32_thread_info)
11939 <debug_registers_changed>: New field.
11940 (struct win32_target_ops): Change prototype of set_thread_context,
11941 delete set_thread_context and add prepare_to_resume.
11942 (win32_require_context): New declaration.
11944 2014-10-08 Gary Benson <gbenson@redhat.com>
11946 * server.h: Do not include common-exceptions.h.
11948 2014-10-08 Gary Benson <gbenson@redhat.com>
11950 * server.h: Do not include cleanups.h.
11952 2014-09-30 James Hogan <james.hogan@imgtec.com>
11954 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11955 mips64-dsp-linux.c.
11957 2014-09-23 Yao Qi <yao@codesourcery.com>
11959 * linux-low.c (lp_status_maybe_breakpoint): New function.
11960 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11961 (count_events_callback): Likewise.
11962 (select_event_lwp_callback): Likewise.
11963 (cancel_breakpoints_callback): Likewise.
11965 2014-09-19 Don Breazeal <donb@codesourcery.com>
11967 * linux-low.c (handle_extended_wait): Call
11968 linux_ptrace_get_extended_event.
11969 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11970 linux_is_extended_waitstatus.
11972 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11974 * Makefile.in (CPPFLAGS): Define.
11975 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11976 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11978 2014-09-16 Gary Benson <gbenson@redhat.com>
11980 * inferiors.h (current_inferior): Renamed as...
11981 (current_thread): New variable. All uses updated.
11982 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11983 (maybe_move_out_of_jump_pad): Likewise.
11984 (cancel_breakpoint): Likewise.
11985 (linux_low_filter_event): Likewise.
11986 (wait_for_sigstop): Likewise.
11987 (linux_resume_one_lwp): Likewise.
11988 (need_step_over_p): Likewise.
11989 (start_step_over): Likewise.
11990 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11991 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11992 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11993 and save_inferior as saved_thread.
11994 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11996 (regcache_invalidate_thread): Likewise.
11997 * remote-utils.c (prepare_resume_reply): Likewise.
11998 * thread-db.c (thread_db_get_tls_address): Likewise.
11999 (disable_thread_event_reporting): Likewise.
12000 (remove_thread_event_breakpoints): Likewise.
12001 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12003 * target.h (set_desired_inferior): Renamed as...
12004 (set_desired_thread): New declaration. All uses updated.
12005 * server.c (myresume): Updated comment to reference thread instead
12007 (handle_serial_event): Likewise.
12008 (handle_target_event): Likewise.
12010 2014-09-12 Tom Tromey <tromey@redhat.com>
12011 Gary Benson <gbenson@redhat.com>
12013 * regcache.h: Include common-regcache.h.
12014 (regcache_read_pc): Don't declare.
12015 * regcache.c (get_thread_regcache_for_ptid): New function.
12017 2014-09-11 Tom Tromey <tromey@redhat.com>
12018 Gary Benson <gbenson@redhat.com>
12020 * symbol.c: New file.
12021 * Makefile.in (SFILES): Add symbol.c.
12022 (OBS): Add symbol.o.
12024 2014-09-11 Gary Benson <gbenson@redhat.com>
12026 * target.c (target_stop_ptid, target_continue_ptid): New
12029 2014-09-11 Tom Tromey <tromey@redhat.com>
12030 Gary Benson <gbenson@redhat.com>
12032 * target.h: Include target/target.h.
12033 * target.c (target_read_memory, target_read_uint32)
12034 (target_write_memory): New functions.
12036 2014-09-11 Gary Benson <gbenson@redhat.com>
12038 * server.h (debug_hw_points): Don't declare.
12039 * server.c (debug_hw_points): Don't define. Replace all uses
12040 with show_debug_regs.
12041 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12042 all uses with show_debug_regs.
12044 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12046 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12047 endianness into account.
12048 (ppc_supply_ptrace_register): Likewise.
12050 2014-09-03 James Hogan <james.hogan@imgtec.com>
12052 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12053 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12055 2014-09-03 Gary Benson <gbenson@redhat.com>
12057 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12058 ALL_DEBUG_ADDRESS_REGISTERS.
12060 2014-09-02 Gary Benson <gbenson@redhat.com>
12062 * i386-low.h: Renamed as...
12063 * x86-low.h: New file. All type, function and variable name
12064 prefixes changed from "i386_" to "x86_". All references updated.
12065 * i386-low.c: Renamed as...
12066 * x86-low.c: New file. All type, function and variable name
12067 prefixes changed from "i386_" to "x86_". All references updated.
12069 2014-09-02 Gary Benson <gbenson@redhat.com>
12071 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12072 (x86_linux_new_thread): Likewise.
12074 2014-08-29 Gary Benson <gbenson@redhat.com>
12076 * server.h (setjmp.h): Do not include.
12077 (toplevel): Do not declare.
12078 (common-exceptions.h): Include.
12079 (cleanups.h): Likewise.
12080 * server.c (toplevel): Do not define.
12081 (exit_code): New static global.
12082 (detach_or_kill_for_exit_cleanup): New function.
12083 (main): New function. Original main renamed to...
12084 (captured_main): New function.
12085 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12087 2014-08-29 Gary Benson <gbenson@redhat.com>
12089 * Makefile.in (SFILES): Add common/common-exceptions.c.
12090 (OBS): Add common-exceptions.o.
12091 (common-exceptions.o): New rule.
12092 * utils.c (prepare_to_throw_exception): New function.
12094 2014-08-29 Gary Benson <gbenson@redhat.com>
12096 * config.in: Regenerate.
12097 * configure: Likewise.
12099 2014-08-29 Gary Benson <gbenson@redhat.com>
12101 * Makefile.in (SFILES): Add common/cleanups.c.
12103 (cleanups.o): New rule.
12105 2014-08-29 Gary Benson <gbenson@redhat.com>
12107 * utils.c (internal_vwarning): New function.
12109 2014-08-28 Gary Benson <gbenson@redhat.com>
12111 * utils.h (fatal): Remove declaration.
12112 * utils.c (fatal): Remove function.
12114 2014-08-28 Gary Benson <gbenson@redhat.com>
12116 * tracepoint.c (gdb_agent_init): Replace fatal with
12118 (initialize_tracepoint): Likewise.
12120 2014-08-28 Gary Benson <gbenson@redhat.com>
12122 * remote-utils.c (remote_prepare): Replace fatal with error.
12124 2014-08-28 Gary Benson <gbenson@redhat.com>
12126 * linux-low.c (linux_async): Replace fatal with warning.
12127 Tidy up and return.
12128 (linux_start_non_stop): Return -1 if linux_async failed.
12130 2014-08-28 Gary Benson <gbenson@redhat.com>
12132 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12134 (i386_dr_low_get_addr): Remove vague comment.
12135 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12138 2014-08-28 Gary Benson <gbenson@redhat.com>
12140 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12141 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12143 (linux_resume_one_lwp): Likewise.
12144 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12146 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12147 with internal_error.
12148 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12149 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12150 (find_register_by_name): Replace fatal with internal_error.
12151 (find_regno): Likewise.
12152 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12153 * thread-db.c (thread_db_create_event): Likewise.
12154 (thread_db_load_search): Likewise.
12155 (try_thread_db_load_1): Likewise.
12156 * tracepoint.c (get_jump_space_head): Replace fatal with
12158 (claim_trampoline_space): Likewise.
12159 (have_fast_tracepoint_trampoline_buffer): Likewise.
12160 (cmd_qtstart): Likewise.
12161 (stop_tracing): Likewise.
12162 (fast_tracepoint_collecting): Likewise.
12163 (target_malloc): Likewise.
12164 (download_tracepoint): Likewise.
12165 (download_trace_state_variables): Replace check with gdb_assert.
12166 (upload_fast_traceframes): Replace fatal with internal_error.
12168 2014-08-19 Tom Tromey <tromey@redhat.com>
12169 Gary Benson <gbenson@redhat.com>
12171 * Makefile.in (SFILES): Add common/common-debug.c.
12172 (OBS): Add common-debug.o.
12173 (common-debug.o): New rule.
12174 * debug.h (debug_printf): Don't declare.
12175 * debug.c (debug_printf): Renamed and rewritten as...
12176 (debug_vprintf): New function.
12178 2014-08-19 Gary Benson <gbenson@redhat.com>
12180 * utils.h: Do not include print-utils.h.
12182 2014-08-19 Tom Tromey <tromey@redhat.com>
12183 Gary Benson <gbenson@redhat.com>
12185 * server.h: Add static assertion.
12186 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12188 2014-08-19 Tom Tromey <tromey@redhat.com>
12189 Gary Benson <gbenson@redhat.com>
12191 * Makefile.in (SFILES): Add common/errors.c.
12192 (OBS): Add errors.o.
12193 (IPA_OBS): Add errors-ipa.o.
12194 (errors.o): New rule.
12195 (errors-ipa.o): Likewise.
12196 * utils.h (perror_with_name, error, warning): Don't declare.
12197 * utils.c (warning): Renamed and rewritten as...
12198 (vwarning): New function.
12199 (error): Renamed and rewritten as...
12200 (verror): New function.
12201 (internal_error): Renamed and rewritten as...
12202 (internal_verror): New function.
12204 2014-08-07 Gary Benson <gbenson@redhat.com>
12206 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12207 * configure: Regenerate.
12208 * config.in: Likewise.
12209 * server.h: Do not include errno.h.
12210 * event-loop.c: Likewise.
12211 * hostio-errno.c: Likewise.
12212 * linux-low.c: Likewise.
12213 * remote-utils.c: Likewise.
12214 * spu-low.c: Likewise.
12215 * utils.c: Likewise.
12216 * gdbreplay.c: Unconditionally include errno.h.
12218 2014-08-07 Gary Benson <gbenson@redhat.com>
12220 * server.h: Do not include string.h.
12221 * event-loop.c: Likewise.
12222 * linux-low.c: Likewise.
12223 * regcache.c: Likewise.
12224 * remote-utils.c: Likewise.
12225 * spu-low.c: Likewise.
12226 * utils.c: Likewise.
12228 2014-08-07 Gary Benson <gbenson@redhat.com>
12230 * server.h: Do not include gdb_assert.h.
12232 2014-08-07 Gary Benson <gbenson@redhat.com>
12234 * server.h: Do not include common-utils.h.
12236 2014-08-07 Gary Benson <gbenson@redhat.com>
12238 * server.h: Do not include ptid.h.
12239 * notif.h: Likewise.
12241 2014-08-07 Gary Benson <gbenson@redhat.com>
12243 * server.h: Do not include gdb_locale.h.
12245 2014-08-07 Gary Benson <gbenson@redhat.com>
12247 * server.h: Do not include gdb/signals.h.
12248 * win32-low.c: Likewise.
12250 2014-08-07 Gary Benson <gbenson@redhat.com>
12252 * server.h: Do not include pathmax.h.
12254 2014-08-07 Gary Benson <gbenson@redhat.com>
12256 * server.h: Do not include libiberty.h.
12257 * linux-bfin-low.c: Likewise.
12259 2014-08-07 Gary Benson <gbenson@redhat.com>
12261 * server.h: Do not include ansidecl.h.
12263 2014-08-07 Gary Benson <gbenson@redhat.com>
12265 * linux-x86-low.c: Do not include stddef.h.
12266 * lynx-ppc-low.c: Likewise.
12267 * tracepoint.c: Likewise.
12269 2014-08-07 Gary Benson <gbenson@redhat.com>
12271 * server.h: Do not include stdarg.h.
12272 * nto-low.c: Likewise.
12274 2014-08-07 Gary Benson <gbenson@redhat.com>
12276 * server.h: Do not include stdlib.h.
12277 * inferiors.c: Likewise.
12278 * linux-low.c: Likewise.
12279 * regcache.c: Likewise.
12280 * spu-low.c: Likewise.
12281 * tracepoint.c: Likewise.
12282 * utils.c: Likewise.
12284 2014-08-07 Gary Benson <gbenson@redhat.com>
12286 * server.h: Do not include stdio.h.
12287 * linux-low.c: Likewise.
12288 * remote-utils.c: Likewise.
12289 * spu-low.c: Likewise.
12290 * utils.c: Likewise.
12291 * wincecompat.c: Likewise.
12293 2014-08-06 Gary Benson <gbenson@redhat.com>
12295 * regcache.c (init_register_cache): Move conditionals inside if.
12297 2014-08-06 Gary Benson <gbenson@redhat.com>
12299 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12301 2014-07-31 Gary Benson <gbenson@redhat.com>
12303 * ax.h: Do not include server.h.
12304 * gdbthread.h: Likewise.
12305 * lynx-low.h: Likewise.
12306 * notif.h: Likewise.
12308 2014-07-30 Gary Benson <gbenson@redhat.com>
12310 * server.h: Include common-defs.h.
12311 Do not include config.h or build-gnulib-gdbserver/config.h.
12313 2014-07-30 Gary Benson <gbenson@redhat.com>
12315 * hostio-errno.c: Move server.h to top of includes list.
12316 * inferiors.c: Likewise.
12317 * linux-x86-low.c: Likewise.
12318 * notif.c: Include server.h.
12320 2014-07-24 Tom Tromey <tromey@redhat.com>
12321 Gary Benson <gbenson@redhat.com>
12323 * server.h (CORE_ADDR): Now unsigned.
12325 2014-07-16 Pedro Alves <palves@redhat.com>
12327 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12329 2014-07-15 Pedro Alves <palves@redhat.com>
12331 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12334 2014-07-11 Pedro Alves <palves@redhat.com>
12336 * linux-low.c (kill_wait_lwp): New function, based on
12337 kill_one_lwp_callback, but use my_waitpid directly.
12338 (kill_one_lwp_callback, linux_kill): Use it.
12340 2014-06-23 Pedro Alves <palves@redhat.com>
12342 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12343 before setting DR0..DR3.
12345 2014-06-20 Gary Benson <gbenson@redhat.com>
12347 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12348 * configure: Regenerated.
12349 * config.in: Likewise.
12351 2014-06-20 Gary Benson <gbenson@redhat.com>
12353 * Makefile.in (SFILES): Update locations for files moved
12354 from common to nat.
12355 (object file files): Reordered.
12357 2014-06-20 Gary Benson <gbenson@redhat.com>
12359 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12360 (i386_dr_low_set_addr): Likewise.
12361 (i386_dr_low_get_addr): Likewise.
12362 (i386_dr_low_can_set_control): Likewise.
12363 (i386_dr_low_set_control): Likewise.
12364 (i386_dr_low_get_control): Likewise.
12365 (i386_dr_low_get_status): Likewise.
12366 (i386_get_debug_register_length): Likewise.
12367 * linux-x86-low.c (i386_dr_low_set_addr):
12368 Changed signature. Made static.
12369 (i386_dr_low_get_addr): Likewise.
12370 (i386_dr_low_set_control): Likewise.
12371 (i386_dr_low_get_control): Likewise.
12372 (i386_dr_low_get_status): Likewise.
12373 (i386_dr_low): New global variable.
12374 * win32-i386-low.c (i386_dr_low_set_addr):
12375 Changed signature. Made static.
12376 (i386_dr_low_get_addr): Likewise.
12377 (i386_dr_low_set_control): Likewise.
12378 (i386_dr_low_get_control): Likewise.
12379 (i386_dr_low_get_status): Likewise.
12380 (i386_dr_low): New global variable.
12382 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12384 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12385 * Makefile.in (AR, AR_FLAGS): Define.
12386 * configure: Regenerate.
12388 2014-06-19 Gary Benson <gbenson@redhat.com>
12390 * Makefile.in (i386-dregs.o): New rule.
12391 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12392 * i386-low.c (target.h): Remove include.
12393 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12394 (DR_CONTROL_SHIFT): Likewise.
12395 (DR_CONTROL_SIZE): Likewise.
12396 (DR_RW_EXECUTE): Likewise.
12397 (DR_RW_WRITE): Likewise.
12398 (DR_RW_READ): Likewise.
12399 (DR_RW_IORW): Likewise.
12400 (DR_LEN_1): Likewise.
12401 (DR_LEN_2): Likewise.
12402 (DR_LEN_4): Likewise.
12403 (DR_LEN_8): Likewise.
12404 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12405 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12406 (DR_ENABLE_SIZE): Likewise.
12407 (DR_LOCAL_SLOWDOWN): Likewise.
12408 (DR_GLOBAL_SLOWDOWN): Likewise.
12409 (DR_CONTROL_RESERVED): Likewise.
12410 (I386_DR_CONTROL_MASK): Likewise.
12411 (I386_DR_VACANT): Likewise.
12412 (I386_DR_LOCAL_ENABLE): Likewise.
12413 (I386_DR_GLOBAL_ENABLE): Likewise.
12414 (I386_DR_DISABLE): Likewise.
12415 (I386_DR_SET_RW_LEN): Likewise.
12416 (I386_DR_GET_RW_LEN): Likewise.
12417 (I386_DR_WATCH_HIT): Likewise.
12418 (i386_wp_op_t): Likewise.
12419 (i386_show_dr): Likewise.
12420 (i386_length_and_rw_bits): Likewise.
12421 (i386_insert_aligned_watchpoint): Likewise.
12422 (i386_remove_aligned_watchpoint): Likewise.
12423 (i386_handle_nonaligned_watchpoint): Likewise.
12424 i386_update_inferior_debug_regs(): Likewise.
12425 (i386_dr_insert_watchpoint): Likewise.
12426 (i386_dr_remove_watchpoint): Likewise.
12427 (i386_dr_region_ok_for_watchpoint): Likewise.
12428 (i386_dr_stopped_data_address): Likewise.
12429 (i386_dr_stopped_by_watchpoint): Likewise.
12431 2014-06-19 Gary Benson <gbenson@redhat.com>
12433 * i386-low.c (i386_dr_show): Renamed to
12434 i386_show_dr and made static. All uses updated.
12435 (i386_dr_length_and_rw_bits): Renamed to
12436 i386_length_and_rw_bits and made static.
12438 (i386_dr_insert_aligned_watchpoint): Renamed to
12439 i386_insert_aligned_watchpoint and made static.
12441 (i386_dr_remove_aligned_watchpoint): Renamed to
12442 i386_remove_aligned_watchpoint and made static.
12444 (i386_dr_update_inferior_debug_regs): Renamed to
12445 i386_update_inferior_debug_regs and made static.
12448 2014-06-18 Gary Benson <gbenson@redhat.com>
12450 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12451 (i386_dr_low_can_set_control): Likewise.
12452 (i386_get_debug_register_length): Likewise.
12453 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12454 (i386_dr_low_can_set_control): Likewise.
12455 (i386_get_debug_register_length): Likewise.
12457 2014-06-17 Gary Benson <gbenson@redhat.com>
12459 * i386-low.h (i386-dregs.h): New include.
12460 (DR_FIRSTADDR): Now in i386-dregs.h.
12461 (DR_LASTADDR): Likewise.
12462 (DR_NADDR): Likewise.
12463 (DR_STATUS): Likewise.
12464 (DR_CONTROL): Likewise.
12465 (i386_debug_reg_state): Likewise.
12466 (i386_dr_insert_watchpoint): Likewise.
12467 (i386_dr_remove_watchpoint): Likewise.
12468 (i386_dr_region_ok_for_watchpoint): Likewise.
12469 (i386_dr_stopped_data_address): Likewise.
12470 (i386_dr_stopped_by_watchpoint): Likewise.
12471 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12473 2014-06-18 Gary Benson <gbenson@redhat.com>
12475 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12476 i386_dr_insert_watchpoint.
12477 (i386_low_remove_watchpoint): Renamed to
12478 i386_dr_remove_watchpoint.
12479 (i386_low_region_ok_for_watchpoint): Renamed to
12480 i386_dr_region_ok_for_watchpoint.
12481 (i386_low_stopped_data_address): Renamed to
12482 i386_dr_stopped_data_address.
12483 (i386_low_stopped_by_watchpoint): Renamed to
12484 i386_dr_stopped_by_watchpoint.
12485 * i386-low.c (i386_show_dr): Renamed to
12486 i386_dr_show and made nonstatic. All uses updated.
12487 (i386_length_and_rw_bits): Renamed to
12488 i386_dr_length_and_rw_bits and made nonstatic.
12490 (i386_insert_aligned_watchpoint): Renamed to
12491 i386_dr_insert_aligned_watchpoint and made nonstatic.
12493 (i386_remove_aligned_watchpoint): Renamed to
12494 i386_dr_remove_aligned_watchpoint and made nonstatic.
12496 (i386_update_inferior_debug_regs): Renamed to
12497 i386_dr_update_inferior_debug_regs and made nonstatic.
12499 (i386_low_insert_watchpoint): Renamed to
12500 i386_dr_insert_watchpoint. All uses updated.
12501 (i386_low_remove_watchpoint): Renamed to
12502 i386_dr_remove_watchpoint. All uses updated.
12503 (i386_low_region_ok_for_watchpoint): Renamed to
12504 i386_dr_region_ok_for_watchpoint. All uses updated.
12505 (i386_low_stopped_data_address): Renamed to
12506 i386_dr_stopped_data_address. All uses updated.
12507 (i386_low_stopped_by_watchpoint): Renamed to
12508 i386_dr_stopped_by_watchpoint. All uses updated.
12510 2014-06-18 Gary Benson <gbenson@redhat.com>
12512 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12513 (i386_dr_low_can_set_control): Likewise.
12514 (i386_insert_aligned_watchpoint): New check.
12516 2014-06-18 Gary Benson <gbenson@redhat.com>
12518 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12521 2014-06-18 Gary Benson <gbenson@redhat.com>
12523 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12524 instead of fatal and error.
12525 (i386_handle_nonaligned_watchpoint): Likewise.
12527 2014-06-18 Gary Benson <gbenson@redhat.com>
12529 * i386-low.c (i386_get_debug_register_length): New macro.
12530 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12531 (i386_show_dr): Use debug_printf instead of fprintf. Use
12532 phex to format values.
12534 2014-06-18 Gary Benson <gbenson@redhat.com>
12536 * i386-low.h: Comment changes.
12537 * i386-low.c: Likewise.
12539 2014-06-18 Gary Benson <gbenson@redhat.com>
12541 * i386-low.c: Whitespace changes.
12543 2014-06-12 Tom Tromey <tromey@redhat.com>
12545 * utils.c (freeargv): Remove.
12547 2014-06-12 Tom Tromey <tromey@redhat.com>
12549 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12550 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12551 (parse_debug_format_options): Likewise.
12552 (gdbserver_usage): Likewise.
12553 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12554 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12555 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12557 ($(LIBGNU)): Depend on libiberty.
12558 (all-lib): Recurse into all subdirs.
12559 (install-only): Invoke "install" target in subdirs.
12560 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12562 * configure: Rebuild.
12563 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12564 for vasprintf, vsnprintf, or gettimeofday.
12565 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12568 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12570 * development.sh: Delete.
12571 * Makefile.in (config.status): Adjust dependency on development.sh.
12572 * configure.ac: Adjust development.sh source call.
12573 * configure: Regenerate.
12575 2014-06-02 Pedro Alves <palves@redhat.com>
12577 * ax.c (gdb_free_agent_expr): New function.
12578 * ax.h (gdb_free_agent_expr): New declaration.
12579 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12581 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12583 (clear_breakpoint_conditions_and_commands): New function.
12584 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12585 (clear_breakpoint_conditions_and_commands): New declaration.
12587 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12589 * linux-aarch64-low.c (asm/ptrace.h): Include.
12591 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12593 Fix TLS access for -static -pthread.
12594 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12595 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12596 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12598 2014-05-20 Pedro Alves <palves@redhat.com>
12600 * linux-aarch64-low.c (aarch64_insert_point)
12601 (aarch64_remove_point): No longer check whether the type is
12602 supported here. Adjust to new interface.
12603 (the_low_target): Install aarch64_supports_z_point_type as
12604 supports_z_point_type method.
12605 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12606 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12607 instead of a Z packet char. Adjust.
12608 (arm_supports_z_point_type): New function.
12609 (arm_insert_point, arm_remove_point): Adjust to new interface.
12610 (the_low_target): Install arm_supports_z_point_type.
12611 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12612 (cris_insert_point, cris_remove_point): Adjust to new interface.
12613 Don't check whether the type is supported here.
12614 (the_low_target): Install cris_supports_z_point_type.
12615 * linux-low.c (linux_supports_z_point_type): New function.
12616 (linux_insert_point, linux_remove_point): Adjust to new interface.
12617 * linux-low.h (struct linux_target_ops) <insert_point,
12618 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12619 raw_breakpoint pointer parameter.
12620 <supports_z_point_type>: New method.
12621 * linux-mips-low.c (mips_supports_z_point_type): New function.
12622 (mips_insert_point, mips_remove_point): Adjust to new interface.
12623 Use mips_supports_z_point_type.
12624 (the_low_target): Install mips_supports_z_point_type.
12625 * linux-ppc-low.c (the_low_target): Install NULL as
12626 supports_z_point_type method.
12627 * linux-s390-low.c (the_low_target): Install NULL as
12628 supports_z_point_type method.
12629 * linux-sparc-low.c (the_low_target): Install NULL as
12630 supports_z_point_type method.
12631 * linux-x86-low.c (x86_supports_z_point_type): New function.
12632 (x86_insert_point): Adjust to new insert_point interface. Use
12633 insert_memory_breakpoint. Adjust to new
12634 i386_low_insert_watchpoint interface.
12635 (x86_remove_point): Adjust to remove_point interface. Use
12636 remove_memory_breakpoint. Adjust to new
12637 i386_low_remove_watchpoint interface.
12638 (the_low_target): Install x86_supports_z_point_type.
12639 * lynx-low.c (lynx_target_ops): Install NULL as
12640 supports_z_point_type callback.
12641 * nto-low.c (nto_supports_z_point_type): New.
12642 (nto_insert_point, nto_remove_point): Adjust to new interface.
12643 (nto_target_ops): Install nto_supports_z_point_type.
12644 * mem-break.c: Adjust intro comment.
12645 (struct raw_breakpoint) <raw_type, size>: New fields.
12646 <inserted>: Update comment.
12647 <shlib_disabled>: Delete field.
12648 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12649 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12650 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12651 (raw_bkpt_type_to_target_hw_bp_type): New function.
12652 (find_enabled_raw_code_breakpoint_at): New function.
12653 (find_raw_breakpoint_at): New type and size parameters. Use them.
12654 (insert_memory_breakpoint): New function, based off
12655 set_raw_breakpoint_at.
12656 (remove_memory_breakpoint): New function.
12657 (set_raw_breakpoint_at): Reimplement.
12658 (set_breakpoint): New, based on set_breakpoint_at.
12659 (set_breakpoint_at): Reimplement.
12660 (delete_raw_breakpoint): Go through the_target->remove_point
12661 instead of assuming memory breakpoints.
12662 (find_gdb_breakpoint_at): Delete.
12663 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12664 (find_gdb_breakpoint): New function.
12665 (set_gdb_breakpoint_at): Delete.
12666 (z_type_supported): New function.
12667 (set_gdb_breakpoint_1): New function, loosely based off
12668 set_gdb_breakpoint_at.
12669 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12670 (delete_gdb_breakpoint_at): Delete.
12671 (delete_gdb_breakpoint_1): New function, loosely based off
12672 delete_gdb_breakpoint_at.
12673 (delete_gdb_breakpoint): New function.
12674 (clear_gdb_breakpoint_conditions): Rename to ...
12675 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12677 (add_condition_to_breakpoint): Make static.
12678 (add_breakpoint_condition): Take a struct breakpoint pointer
12679 instead of an address. Adjust.
12680 (gdb_condition_true_at_breakpoint): Rename to ...
12681 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12683 (gdb_condition_true_at_breakpoint): Reimplement.
12684 (add_breakpoint_commands): Take a struct breakpoint pointer
12685 instead of an address. Adjust.
12686 (gdb_no_commands_at_breakpoint): Rename to ...
12687 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12688 parameter. Return true if no breakpoint was found. Change debug
12690 (gdb_no_commands_at_breakpoint): Reimplement.
12691 (run_breakpoint_commands): Rename to ...
12692 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12693 and change return type to boolean.
12694 (run_breakpoint_commands): New function.
12695 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12696 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12697 breakpoint. Go through the_target->remove_point instead of
12698 assuming memory breakpoint.
12699 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12700 software and hardware breakpoints.
12701 (reinsert_raw_breakpoint): Go through the_target->insert_point
12702 instead of assuming memory breakpoint.
12703 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12704 software and hardware breakpoints.
12705 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12706 Check both software and hardware breakpoints.
12707 (validate_inserted_breakpoint): Assert the breakpoint is a
12708 software breakpoint. Set the inserted flag to -1 instead of
12709 setting shlib_disabled.
12710 (delete_disabled_breakpoints): Adjust.
12711 (validate_breakpoints): Only validate software breakpoints.
12712 Adjust to inserted flag change.
12713 (check_mem_read, check_mem_write): Skip breakpoint types other
12714 than software breakpoints. Adjust to inserted flag change.
12715 * mem-break.h (enum raw_bkpt_type): New enum.
12716 (raw_breakpoint, struct process_info): Forward declare.
12717 (Z_packet_to_target_hw_bp_type): Delete declaration.
12718 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12719 (set_gdb_breakpoint, delete_gdb_breakpoint)
12720 (clear_breakpoint_conditions): New declarations.
12721 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12722 (breakpoint_inserted_here): Update comment.
12723 (add_breakpoint_condition, add_breakpoint_commands): Replace
12724 address parameter with a breakpoint pointer parameter.
12725 (gdb_breakpoint_here): Update comment.
12726 (delete_gdb_breakpoint_at): Delete.
12727 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12728 * server.c (process_point_options): Take a struct breakpoint
12729 pointer instead of an address. Adjust.
12730 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12731 delete_gdb_breakpoint.
12732 * spu-low.c (spu_target_ops): Install NULL as
12733 supports_z_point_type method.
12734 * target.h: Include mem-break.h.
12735 (struct target_ops) <prepare_to_access_memory>: Update comment.
12736 <supports_z_point_type>: New field.
12737 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12738 instead of a char. Also take a raw breakpoint pointer.
12739 * win32-arm-low.c (the_low_target): Install NULL as
12740 supports_z_point_type.
12741 * win32-i386-low.c (i386_supports_z_point_type): New function.
12742 (i386_insert_point, i386_remove_point): Adjust to new interface.
12743 (the_low_target): Install i386_supports_z_point_type.
12744 * win32-low.c (win32_supports_z_point_type): New function.
12745 (win32_insert_point, win32_remove_point): Adjust to new interface.
12746 (win32_target_ops): Install win32_supports_z_point_type.
12747 * win32-low.h (struct win32_target_ops):
12748 <supports_z_point_type>: New method.
12749 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12750 instead of a char. Also take a raw breakpoint pointer.
12752 2014-05-20 Pedro Alves <palves@redhat.com>
12754 * mem-break.h: Include break-common.h.
12755 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12756 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12757 (Z_packet_to_target_hw_bp_type): New declaration.
12758 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12759 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12760 (Z_PACKET_ACCESS_WP): Delete macros.
12761 (Z_packet_to_hw_type): Delete function.
12762 * i386-low.h: Don't include break-common.h here.
12763 (Z_packet_to_hw_type): Delete declaration.
12764 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12765 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12766 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12767 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12768 * linux-aarch64-low.c: Don't include break-common.h here.
12769 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12770 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12771 (Z_packet_to_target_hw_bp_type): Delete function.
12772 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12774 (mips_insert_point, mips_remove_point): Use
12775 Z_packet_to_target_hw_bp_type.
12777 2014-05-20 Pedro Alves <palves@redhat.com>
12779 * linux-aarch64-low.c: Include break-common.h.
12780 (enum target_point_type): Delete.
12781 (Z_packet_to_point_type): Rename to ...
12782 (Z_packet_to_target_hw_bp_type): ... this, and return a
12783 target_hw_bp_type instead.
12784 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12785 instead of an enum target_point_type.
12786 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12788 (aarch64_dr_state_insert_one_point)
12789 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12790 (aarch64_handle_aligned_watchpoint)
12791 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12792 Take an enum target_hw_bp_type instead of an enum
12794 (aarch64_supports_z_point_type): New function.
12795 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12796 use Z_packet_to_target_hw_bp_type.
12798 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12800 * configure.ac: Only use -Werror by default when DEVELOPMENT
12802 * configure: Regenerate.
12804 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12806 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12807 * linux-x86-low.c (X86_64_USER_REGS): New.
12808 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12810 2014-04-28 Yao Qi <yao@codesourcery.com>
12812 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12815 2014-04-25 Pedro Alves <palves@redhat.com>
12818 * linux-low.c (linux_attach_fail_reason_string): New function.
12819 (linux_attach_lwp): Delete.
12820 (linux_attach_lwp_1): Rename to ...
12821 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12822 argument. Remove "initial" parameter. Return int instead of
12823 void. Don't error or warn here.
12824 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12825 failure to attach to the tgid. Call warning when failing to
12827 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12828 argument. Remove "initial" parameter. Return int instead of
12829 void. Don't error or warn here.
12830 (linux_attach_fail_reason_string): New declaration.
12831 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12832 interface change. Use linux_attach_fail_reason_string.
12834 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12835 Walfred Tedeschi <walfred.tedeschi@intel.com>
12837 * Makefile.in: Added rules to handle new files
12838 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12839 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12840 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12841 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12842 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12843 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12844 x32-avx512-linux.o.
12845 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12846 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12847 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12848 i386/x32-avx512.xml.
12849 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12850 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12851 i386/x32-avx512-linux.xml.
12852 * i387-fp.c (num_avx512_k_registers): New constant for number
12854 (num_avx512_zmmh_low_registers): New constant for number of
12855 lower ZMM registers (0-15).
12856 (num_avx512_zmmh_high_registers): New constant for number of
12857 higher ZMM registers (16-31).
12858 (num_avx512_ymmh_registers): New contant for number of higher
12859 YMM registers (ymm16-31 added by avx521 on x86_64).
12860 (num_avx512_xmm_registers): New constant for number of higher
12861 XMM registers (xmm16-31 added by AVX512 on x86_64).
12862 (struct i387_xsave): Add space for AVX512 registers.
12863 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12864 Add code to handle AVX512 registers.
12865 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12866 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12867 prototypei from generated file.
12868 (tdesc_amd64_avx512_linux): Likewise.
12869 (init_registers_x32_avx512_linux): Likewise.
12870 (tdesc_x32_avx512_linux): Likewise.
12871 (init_registers_i386_avx512_linux): Likewise.
12872 (tdesc_i386_avx512_linux): Likewise.
12873 (x86_64_regmap): Add AVX512 registers.
12874 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12876 (initialize_low_arch): Add code to initialize AVX512 registers.
12878 2014-04-23 Pedro Alves <palves@redhat.com>
12880 * mem-break.c (find_gdb_breakpoint_at): Make static.
12881 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12883 2014-04-23 Pedro Alves <palves@redhat.com>
12885 * i386-low.c: Don't include break-common.h here.
12886 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12887 prototype to take target_hw_bp_type as argument instead of a Z
12889 * i386-low.h: Include break-common.h here.
12890 (Z_packet_to_hw_type): Declare.
12891 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12893 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12894 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12895 (x86_remove_point): Convert the packet number to a
12896 target_hw_bp_type before calling i386_low_remove_watchpoint.
12897 * win32-i386-low.c (i386_insert_point): Convert the packet number
12898 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12899 (i386_remove_point): Convert the packet number to a
12900 target_hw_bp_type before calling i386_low_remove_watchpoint.
12902 2014-04-23 Pedro Alves <palves@redhat.com>
12904 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12906 2014-04-10 Pedro Alves <palves@redhat.com>
12908 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12909 Check if the condition or command is NULL before checking if the
12910 breakpoint is known. On success, return true.
12911 * mem-break.h (add_breakpoint_condition): Document return.
12912 (add_breakpoint_commands): Add describing comment.
12913 * server.c (skip_to_semicolon): New function.
12914 (process_point_options): Use it.
12916 2014-04-09 Pedro Alves <palves@redhat.com>
12918 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12921 2014-02-27 Pedro Alves <palves@redhat.com>
12924 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12926 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12928 (last_thread_of_process_p): Take a PID argument instead of a
12930 (linux_wait_for_lwp): Delete.
12931 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12933 (linux_low_filter_event): New function, party factored out from
12934 linux_wait_for_event.
12935 (linux_wait_for_event): Rename to ...
12936 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12937 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12938 sigsuspend. Check for zombie leaders.
12939 (linux_wait_for_event): Reimplement as wrapper around
12940 linux_wait_for_event_filtered.
12941 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12942 a normal or signal exit is seen, it's the whole process exiting.
12943 (wait_for_sigstop): No longer a for_each_inferior callback.
12944 Rewrite on top of linux_wait_for_event_filtered.
12945 (stop_all_lwps): Call wait_for_sigstop directly.
12946 * server.c (resume, handle_target_event): Handle
12947 TARGET_WAITKIND_NO_RESUMED.
12949 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12951 * win32-low.c (psapi_get_dll_name,
12952 * win32_CreateToolhelp32Snapshot): Delete.
12953 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12954 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12956 (handle_load_dll): Add function description.
12957 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12959 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12961 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12963 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12964 base address when calling win32_add_one_solib.
12965 (handle_load_dll): Delete local variable load_addr.
12966 Remove 0x1000 offset applied to DLL base address when calling
12967 win32_add_one_solib.
12968 (handle_unload_dll): Add comment.
12970 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12972 * win32-low.c (win32_add_all_dlls): Renames
12973 win32_ensure_ntdll_loaded. Rewrite function documentation.
12974 Adjust implementation to always load all DLLs.
12975 Add 0x1000 offset to DLL base address when calling
12976 win32_add_one_solib.
12977 (child_initialization_done): New static global.
12978 (do_initial_child_stuff): Set child_initialization_done to
12979 zero during child initialization, and 1 after. Replace call
12980 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12982 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12983 (handle_unload_dll): Add function documentation.
12984 (get_child_debug_event): Ignore load and unload DLL events
12985 during child initialization.
12987 2014-02-20 Doug Evans <dje@google.com>
12989 Remove global all_lwps.
12990 * inferiors.h (ptid_of): Move here from linux-low.h.
12991 (pid_of, lwpid_of): Ditto.
12992 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12993 parameter is a struct thread_info * now.
12994 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12995 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12996 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12998 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12999 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13000 * linux-arm-low.c (update_registers_callback): Update, "entry"
13001 parameter is a struct thread_info * now.
13002 Fetch lwpid from current_inferior directly.
13003 (arm_insert_point): Pass &all_threads to find_inferior instead of
13005 (arm_remove_point): Ditto.
13006 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13007 (arm_prepare_to_resume): Fetch pid from thread.
13008 (arm_read_description): Fetch lwpid from current_inferior directly.
13009 * linux-low.c (all_lwps): Delete.
13010 (delete_lwp): Delete call to remove_inferior.
13011 (handle_extended_wait): Fetch lwpid from thread.
13012 (add_lwp): Don't set lwp->entry.id. Remove call to
13013 add_inferior_to_list.
13014 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13015 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13016 (kill_one_lwp_callback): Ditto.
13017 (linux_kill): Don't dereference NULL pointer.
13018 Fetch ptid,lwpid from thread.
13019 (get_detach_signal): Fetch ptid from thread.
13020 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13021 Simplify call to regcache_invalidate_thread.
13022 (delete_lwp_callback): Update, "entry" parameter is a
13023 struct thread_info * now. Fetch pid from thread.
13024 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13025 (status_pending_p_callback): Update, "entry" parameter is a
13026 struct thread_info * now. Fetch ptid from thread.
13027 (find_lwp_pid): Update, "entry" parameter is a
13028 struct thread_info * now.
13029 (linux_wait_for_lwp): Fetch pid from thread.
13030 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13031 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13032 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13033 (dequeue_one_deferred_signal): Ditto.
13034 (cancel_breakpoint): Fetch ptid from current_inferior.
13035 (linux_wait_for_event): Pass &all_threads to find_inferior,
13036 not &all_lwps. Fetch ptid, lwpid from thread.
13037 (count_events_callback): Update, "entry" parameter is a
13038 struct thread_info * now.
13039 (select_singlestep_lwp_callback): Ditto.
13040 (select_event_lwp_callback): Ditto.
13041 (cancel_breakpoints_callback): Ditto.
13042 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13044 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13045 (unsuspend_one_lwp): Update, "entry" parameter is a
13046 struct thread_info * now.
13047 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13049 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13050 Fetch lwpid from thread, not lwp.
13051 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13052 Pass &all_threads to find_inferior, not &all_lwps.
13053 (send_sigstop): Fetch lwpid from thread, not lwp.
13054 (send_sigstop_callback): Update, "entry" parameter is a
13055 struct thread_info * now.
13056 (suspend_and_send_sigstop_callback): Ditto.
13057 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13058 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13059 struct thread_info * now.
13060 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13062 (lwp_running): Update, "entry" parameter is a
13063 struct thread_info * now.
13064 (stop_all_lwps): Fetch ptid from thread.
13065 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13066 (linux_resume_one_lwp): Fetch lwpid from thread.
13067 (linux_set_resume_request): Update, "entry" parameter is a
13068 struct thread_info * now. Fetch pid, lwpid from thread.
13069 (resume_status_pending_p): Update, "entry" parameter is a
13070 struct thread_info * now.
13071 (need_step_over_p): Ditto. Fetch lwpid from thread.
13072 (start_step_over): Fetch lwpid from thread.
13073 (linux_resume_one_thread): Update, "entry" parameter is a
13074 struct thread_info * now. Fetch lwpid from thread.
13075 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13076 (proceed_one_lwp): Update, "entry" parameter is a
13077 struct thread_info * now. Fetch lwpid from thread.
13078 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13079 struct thread_info * now.
13080 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13081 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13082 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13084 (regsets_store_inferior_registers): Ditto.
13085 (fetch_register, store_register): Ditto.
13086 (linux_read_memory, linux_write_memory): Ditto.
13087 (linux_request_interrupt): Ditto.
13088 (linux_read_auxv): Ditto.
13089 (linux_xfer_siginfo): Ditto.
13090 (linux_qxfer_spu): Ditto.
13091 (linux_qxfer_libraries_svr4): Ditto.
13092 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13093 moved to inferiors.h.
13095 (get_thread_lwp): Update.
13096 (struct lwp_info): Delete member "entry". Simplify comment for
13098 (all_lwps): Delete.
13099 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13100 current_inferior directly.
13101 (update_watch_registers_callback): Update, "entry" parameter is a
13102 struct thread_info * now. Fetch pid from thread.
13103 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13104 (mips_insert_point): Fetch lwpid from current_inferior.
13105 Pass &all_threads to find_inferior, not &all_lwps.
13106 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13107 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13109 (mips_stopped_data_address): Ditto.
13110 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13112 * linux-tile-low.c (tile_arch_setup): Ditto.
13113 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13114 (update_debug_registers_callback): Update, "entry" parameter is a
13115 struct thread_info * now. Fetch pid from thread.
13116 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13117 Pass &all_threads to find_inferior, not &all_lwps.
13118 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13119 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13120 Pass &all_threads to find_inferior, not &all_lwps.
13121 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13122 (i386_dr_low_get_status): Ditto.
13123 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13124 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13125 (x86_linux_read_description): Ditto.
13126 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13128 2014-02-20 Doug Evans <dje@google.com>
13130 * inferiors.c (get_first_inferior): Fix buglet.
13132 2014-02-19 Doug Evans <dje@google.com>
13134 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13135 * inferiors.c (add_thread): Change result type to struct thread_info *.
13136 All callers updated.
13137 (add_lwp): Call add_thread here instead of in callers.
13138 All callers updated.
13139 * linux-low.h (get_lwp_thread): Rewrite.
13140 (struct lwp_info): New member "thread".
13142 2014-02-19 Doug Evans <dje@google.com>
13144 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13145 All callers updated.
13147 2014-02-19 Doug Evans <dje@google.com>
13149 * inferiors.c (add_thread): Fix whitespace.
13151 2014-02-19 Doug Evans <dje@google.com>
13153 * dll.c (clear_dlls): Replace accessing list implemention details
13155 * gdbthread.h (get_first_thread): Declare.
13156 * inferiors.c (for_each_inferior_with_data): New function.
13157 (get_first_thread): New function.
13158 (find_thread_ptid): Simplify.
13159 (get_first_inferior): New function.
13160 (clear_list): Delete.
13161 (one_inferior_p): New function.
13162 (clear_inferior_list): New function.
13163 (clear_inferiors): Update.
13164 * inferiors.h (for_each_inferior_with_data): Declare.
13165 (clear_inferior_list): Declare.
13166 (one_inferior_p): Declare.
13167 (get_first_inferior): Declare.
13168 * linux-low.c (linux_wait_for_event): Replace accessing list
13169 implemention details with API function.
13170 * server.c (target_running): Ditto.
13171 (accumulate_file_name_length): New function.
13172 (emit_dll_description): New function.
13173 (handle_qxfer_libraries): Replace accessing list implemention
13174 details with API function.
13175 (handle_qxfer_threads_worker): New function.
13176 (handle_qxfer_threads_proper): Replace accessing list implemention
13177 details with API function.
13178 (handle_query): Ditto.
13179 (visit_actioned_threads_callback_ftype): New typedef.
13180 (visit_actioned_threads_data): New struct.
13181 (visit_actioned_threads): Rewrite to be find_inferior callback.
13182 (resume): Call find_inferior.
13183 (handle_status): Replace accessing list implemention
13184 details with API function.
13185 (process_serial_event): Replace accessing list implemention details
13187 * target.c (set_desired_inferior): Replace accessing list implemention
13188 details with API function.
13189 * tracepoint.c (same_process_p): New function.
13190 (gdb_agent_about_to_close): Replace accessing list implemention
13191 details with API function.
13192 * win32-low.c (child_delete_thread): Replace accessing list
13193 implemention details with API function.
13194 (match_dll_by_basename): New function.
13195 (dll_is_loaded_by_basename): New function.
13196 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13197 details call to dll_is_loaded_by_basename.
13199 2014-02-19 Doug Evans <dje@google.com>
13201 * dll.h (struct dll_info): Add comment.
13202 * gdbthread.h (struct thread_info): Add comment.
13203 (current_ptid): Simplify.
13204 * inferiors.c (add_process): Update.
13205 (remove_process): Update.
13206 * inferiors.h (struct process_info): Rename member "head" to "entry".
13207 * linux-low.c (delete_lwp): Update.
13209 (last_thread_of_process_p): Update.
13210 (kill_one_lwp_callback, linux_kill): Update.
13211 (status_pending_p_callback): Update.
13212 (wait_for_sigstop): Update. Simplify read of ptid.
13213 (start_step_over): Update.
13214 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13215 (get_lwp_thread): Update.
13216 (struct lwp_info): Rename member "head" to "entry".
13217 * regcache.h (inferior_list_entry): Delete.
13218 * server.c (kill_inferior_callback): Update.
13219 (detach_or_kill_inferior_callback): Update.
13220 (print_started_pid): Update.
13221 (print_attached_pid): Update.
13222 (process_serial_event): Simplify read of ptid.
13223 * thread-db.c (thread_db_create_event): Update.
13224 (thread_db_get_tls_address): Update.
13225 * win32-low.c (current_inferior_ptid): Simplify.
13227 2014-02-19 Tom Tromey <tromey@redhat.com>
13229 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13231 (target_supports_btrace): Update.
13233 2014-02-14 Yao Qi <yao@codesourcery.com>
13235 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13236 (rsp-low-ipa.o): New target.
13238 2014-02-12 Tom Tromey <tromey@redhat.com>
13240 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13241 convert_ascii_to_int.
13242 * regcache.c (registers_to_string): Likewise.
13243 * remote-utils.c (decode_M_packet): Likewise.
13244 * server.c (process_serial_event): Likewise.
13246 2014-02-12 Tom Tromey <tromey@redhat.com>
13248 * server.c (handle_query, handle_v_run): Use hex2bin, not
13250 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13252 2014-02-12 Tom Tromey <tromey@redhat.com>
13254 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13255 convert_int_to_ascii.
13256 * regcache.c (registers_to_string, collect_register_as_string):
13258 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13260 * server.c (process_serial_event): Likewise.
13261 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13262 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13264 2014-02-12 Tom Tromey <tromey@redhat.com>
13266 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13267 bin2hex, not hexify.
13268 * tracepoint.c (cmd_qtstatus): Likewise.
13270 2014-02-12 Tom Tromey <tromey@redhat.com>
13272 * remote-utils.c (monitor_output): Pass explicit length to
13275 2014-02-12 Tom Tromey <tromey@redhat.com>
13277 * tracepoint.c: Include rsp-low.h.
13278 * server.c: Include rsp-low.h.
13279 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13280 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13282 * remote-utils.c: Include rsp-low.h.
13283 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13284 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13285 (convert_int_to_ascii, convert_ascii_to_int): Move to
13287 * regcache.c: Include rsp-low.h.
13288 * ax.c: Include rsp-low.h.
13289 * Makefile.in (SFILES): Add common/rsp-low.c.
13290 (OBS): Add rsp-low.o.
13291 (rsp-low.o): New target.
13293 2014-02-12 Tom Tromey <tromey@redhat.com>
13295 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13296 Include print-utils.h.
13297 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13298 (plongest, thirty_two, phex_nz): Remove.
13299 * Makefile.in (SFILES): Add common/print-utils.c.
13300 (OBS): Add print-utils.o.
13301 (print-utils-ipa.o): New target.
13302 (print-utils.o): New target.
13303 (IPA_OBJS): Add print-utils-ipa.o.
13305 2014-02-06 Tom Tromey <tromey@redhat.com>
13307 * Makefile.in (SFILES): Fix indentation.
13309 2014-02-05 Doug Evans <dje@google.com>
13311 * linux-low.c (linux_wait_for_event): Improve comment.
13312 (linux_wait_1): Keep current_inferior in sync with event_child.
13314 2014-01-22 Doug Evans <dje@google.com>
13316 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13318 2014-01-22 Doug Evans <dje@google.com>
13320 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13321 * configure: Regenerate.
13322 * config.in: Regenerate.
13323 * Makefile.in (SFILES): Add debug.c.
13324 (OBS): Add debug.o.
13325 * debug.c: New file.
13326 * debug.h: New file.
13327 * linux-aarch64-low.c (*): Update all debugging printfs to use
13328 debug_printf instead of fprintf.
13329 * linux-arm-low.c (*): Ditto.
13330 * linux-cris-low.c (*): Ditto.
13331 * linux-crisv32-low.c (*): Ditto.
13332 * linux-m32r-low.c (*): Ditto.
13333 * linux-sparc-low.c (*): Ditto.
13334 * linux-x86.c (*): Ditto.
13335 * linux-low.c (*): Ditto.
13336 (linux_wait_1): Add calls to debug_enter, debug_exit.
13337 (linux_wait): Remove redundant debugging printf.
13338 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13339 (linux_resume, unstop_all_lwps): Ditto.
13340 * mem-break.c (*): Update all debugging printfs to use
13341 debug_printf instead of fprintf.
13342 * remote-utils.c (*): Ditto.
13343 * thread-db.c (*): Ditto.
13344 * server.c #include <ctype.h>, "gdb_vecs.h".
13345 (debug_threads): Moved to debug.c.
13346 (*): Update all debugging printfs to use debug_printf instead of
13348 (start_inferior): Replace call to fflush with call to debug_flush.
13349 (monitor_show_help): Mention set debug-format.
13350 (parse_debug_format_options): New function.
13351 (handle_monitor_command): Handle "monitor set debug-format".
13352 (gdbserver_usage): Mention --debug-format.
13353 (main): Parse --debug-format.
13354 * server.h (debug_threads): Declaration moved to debug.h.
13355 #include "debug.h".
13356 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13357 trace_debug_1 that uses debug_printf.
13358 (tracepoint_look_up_symbols): Update all debugging printfs to use
13359 debug_printf instead of fprintf.
13361 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13363 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13366 2014-01-17 Pedro Alves <palves@redhat.com>
13369 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13370 defined after including gdb_proc_service.h.
13372 2014-01-16 Doug Evans <dje@google.com>
13374 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13375 (match_dll): Use it.
13377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13379 * target.h (target_ops) <read_btrace>: Change parameters and
13380 return type to allow error reporting.
13381 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13382 trace reading errors on.
13383 * linux-low.c (linux_low_read_btrace): Pass trace reading
13385 (linux_low_disable_btrace): New.
13387 2014-01-15 Doug Evans <dje@google.com>
13389 * inferiors.c (thread_id_to_gdb_id): Delete.
13390 * inferiors.h (thread_id_to_gdb_id): Delete.
13392 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13394 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13395 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13398 2014-01-08 Pedro Alves <palves@redhat.com>
13400 * server.c (handle_status): Don't discard previous queued stop
13401 replies or thread's pending status here.
13402 (main) <disconnection>: Do it here instead.
13404 2014-01-08 Pedro Alves <palves@redhat.com>
13406 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13407 * server.c (visit_actioned_threads, handle_pending_status): New
13409 (handle_v_cont): Factor out parts to ...
13410 (resume): ... this new function. If in all-stop, and a thread
13411 being resumed has a pending status, report it without actually
13413 (myresume): Adjust to use the new 'resume' function.
13414 (clear_pending_status_callback, set_pending_status_callback)
13415 (find_status_pending_thread_callback): New functions.
13416 (handle_status): Handle the case of multiple threads having
13417 interesting statuses to report. Report threads' real last signal
13418 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13419 with an interesting thread to report the status for, instead of
13420 always reporting the status of the first thread.
13422 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13424 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13425 * gdbreplay.c (gdbreplay_version): Likewise.
13427 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13429 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13430 iov.iov_len with the real length in use.
13432 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13434 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13435 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13436 for all targets that use win32-low.c.
13437 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13438 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13440 2013-12-13 Pedro Alves <palves@redhat.com>
13442 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13443 if equal to TARGET_WAITKIND_LOADED.
13444 * win32-low.c (cached_status): New static global.
13445 (win32_wait): Add declaration.
13446 (do_initial_child_stuff): Flush all initial pending debug events
13447 up to the initial breakpoint.
13448 (win32_wait): If CACHED_STATUS was set, return that instead
13449 of doing a real wait. Remove the code resuming the execution
13450 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13451 during the initial phase. Also remove the code changing
13452 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13453 TARGET_WAITKIND_STOPPED.
13455 2013-12-11 Yao Qi <yao@codesourcery.com>
13457 * notif.c (handle_notif_ack): Return 0 if no notification
13460 2013-11-20 Doug Evans <dje@google.com>
13462 * linux-low.c (linux_set_resume_request): Fix comment.
13464 2013-11-20 Doug Evans <dje@google.com>
13466 * linux-low.c (resume_status_pending_p): Tweak comment.
13468 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13470 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13471 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13472 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13473 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13474 (srv_amd64_regobj): Add amd64-mpx.o.
13475 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13476 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13477 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13478 * i387-fp.c (num_pl_bnd_register) Added constant.
13479 (num_pl_bnd_cfg_registers) Added constant.
13480 (struct i387_xsave) Added reserved area and MPX fields.
13481 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13482 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13484 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13485 (init_registers_amd64_mpx_linux): Declare new function.
13486 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13487 (x86_64_regmap): Add MPX registers.
13488 (x86_linux_read_description): Add MPX case.
13489 (initialize_low_arch): Initialize MPX targets.
13491 2013-11-18 Tom Tromey <tromey@redhat.com>
13493 * configure: Rebuild.
13494 * configure.ac: Don't check for stdlib.h.
13495 * gdbreplay.c: Unconditionally include stdlib.h.
13497 2013-11-18 Tom Tromey <tromey@redhat.com>
13499 * config.in: Rebuild.
13500 * configure: Rebuild.
13501 * configure.ac: Don't use AC_HEADER_DIRENT.
13503 2013-11-18 Tom Tromey <tromey@redhat.com>
13505 * server.h: Don't check HAVE_STRING_H.
13506 * gdbreplay.c: Don't check HAVE_STRING_H.
13507 * configure: Rebuild.
13509 2013-11-18 Tom Tromey <tromey@redhat.com>
13511 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13514 2013-11-08 Tom Tromey <tromey@redhat.com>
13516 * configure, config.in: Rebuild.
13517 * configure.ac: Remove unused configury.
13519 2013-11-08 Tom Tromey <tromey@redhat.com>
13521 * acinclude.m4: Include common.m4, codeset.m4.
13522 * configure, config.in: Rebuild.
13523 * configure.ac: Use GDB_AC_COMMON.
13525 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13527 * linux-s390-low.c (HWCAP_S390_TE): New define.
13528 (s390_arch_setup): Consider the TE field in the HWCAP for
13529 determining 'have_regset_tdb'.
13531 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13534 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13537 2013-10-02 Pedro Alves <palves@redhat.com>
13539 * server.c (process_serial_event): Don't output "GDBserver
13540 exiting" if GDB is connected through stdio.
13541 * target.c (mywait): Likewise, be silent if GDB is connected
13544 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13546 * lynx-low.c (lynx_add_threads_after_attach): New function.
13547 (lynx_attach): Remove call to add_thread. Add call to
13548 lynx_add_threads_after_attach instead.
13550 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13552 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13553 * config.in, configure: Regenerated.
13555 2013-09-18 Yao Qi <yao@codesourcery.com>
13558 * server.c (start_inferior): Clear 'resume_info'.
13560 2013-09-16 Jiong Wang <jiwang@tilera.com>
13562 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13565 2013-09-16 Jiong Wang <jiwang@tilera.com>
13567 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13568 linux-tile-low.o to srv_tgtobj.
13570 2013-09-16 Will Newton <will.newton@linaro.org>
13572 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13575 2013-09-06 Pedro Alves <palves@redhat.com>
13577 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13578 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13579 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13580 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13581 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13582 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13584 2013-09-06 Pedro Alves <palves@redhat.com>
13586 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13587 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13589 2013-09-06 Pedro Alves <palves@redhat.com>
13591 * linux-amd64-ipa.c: Include tracepoint.h.
13592 * linux-i386-ipa.c: Include tracepoint.h.
13594 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13596 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13597 (ps_get_thread_area): New function.
13599 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13601 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13602 (initialize_low_arch): Call init_registers_crisv32 rather than
13603 init_register_crisv32.
13605 2013-09-05 Pedro Alves <palves@redhat.com>
13607 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13609 * hostio.h: ... this new file.
13610 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13611 win32-low.c: Include hostio.h.
13613 2013-09-05 Pedro Alves <palves@redhat.com>
13615 * server.h (gdb_client_data, handler_func, callback_handler_func)
13616 (delete_file_handler, add_file_handler, append_callback_event)
13617 (delete_callback_event, start_event_loop, initialize_event_loop):
13618 Move to event-loop.h and include it.
13619 * event-loop.h: New file.
13621 2013-09-05 Pedro Alves <palves@redhat.com>
13623 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13624 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13625 (loaded_dll, unloaded_dll): Move to ...
13626 * dll.h: ... this new file.
13627 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13629 2013-09-05 Pedro Alves <palves@redhat.com>
13631 * server.h (current_process, get_thread_process, all_processes)
13632 (add_inferior_to_list, for_each_inferior, current_inferior)
13633 (remove_inferior, add_process, remove_process, find_process_pid)
13634 (have_started_inferiors_p, have_attached_inferiors_p)
13635 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13636 (clear_inferiors, find_inferior, find_inferior_id)
13637 (inferior_target_data, set_inferior_target_data)
13638 (inferior_regcache_data, set_inferior_regcache_data): Move to
13639 inferiors.h, and include it.
13640 * inferiors.h: New file.
13642 2013-09-05 Pedro Alves <palves@redhat.com>
13644 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13648 2013-09-05 Pedro Alves <palves@redhat.com>
13650 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13652 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13653 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13654 (handle_tracepoint_general_set, handle_tracepoint_query)
13655 (tracepoint_finished_step, tracepoint_was_hit)
13656 (release_while_stepping_state_list, current_traceframe)
13657 (in_readonly_region, traceframe_read_mem)
13658 (fetch_traceframe_registers, traceframe_read_sdata)
13659 (traceframe_read_info, struct fast_tpoint_collect_status)
13660 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13661 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13662 (supply_fast_tracepoint_registers)
13663 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13664 (ipa_tdesc, claim_trampoline_space)
13665 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13666 (agent_mem_read, agent_get_trace_state_variable_value)
13667 (agent_set_trace_state_variable_value, agent_tsv_read)
13668 (agent_mem_read_string, get_raw_reg_func_addr)
13669 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13670 * tracepoint.h: ... this new file.
13672 2013-09-05 Pedro Alves <palves@redhat.com>
13674 * server.h (perror_with_name, error, fatal, warning, paddress)
13675 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13677 * utils.h: New file.
13679 2013-09-05 Pedro Alves <palves@redhat.com>
13681 * server.h (remote_debug, noack_mode, transport_is_reliable)
13682 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13683 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13684 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13685 (write_enn, initialize_async_io, enable_async_io)
13686 (disable_async_io, check_remote_input_interrupt_request)
13687 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13688 (dead_thread_notify, prepare_resume_reply)
13689 (decode_address_to_semicolon, decode_address, decode_m_packet)
13690 (decode_M_packet, decode_X_packet, decode_xfer_write)
13691 (decode_search_memory_packet, unhexify, hexify)
13692 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13693 (look_up_one_symbol, relocate_instruction)
13694 (monitor_output): Move to remote-utils.h, and include it.
13695 * remote-utils.h: New file.
13697 2013-09-05 Pedro Alves <palves@redhat.com>
13699 * server.h (_): Delete.
13701 2013-09-02 Pedro Alves <palves@redhat.com>
13703 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13704 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13706 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13708 2013-09-02 Pierre Muller <muller@sourceware.org>
13710 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13711 or WriteProcessMemory complete successfully and handle
13712 ERROR_PARTIAL_COPY error.
13714 2013-09-02 Pedro Alves <palves@redhat.com>
13716 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13717 error instead of EIO.
13719 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13722 * linux-low.c: Include filestuff.h.
13723 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13724 * lynx-low.c: Include filestuff.h.
13725 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13726 * server.c: Include filestuff.h.
13727 (main): Call notice_open_fds.
13728 * spu-low.c: Include filestuff.h.
13729 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13731 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13733 * Makefile.in: Explain why ../target and ../nat are not
13734 listed as include file search paths.
13735 (linux-waitpid.o): New object file rule.
13736 * configure.srv (srv_native_linux_obj): New variable.
13737 Replace all occurrences of linux native object files with
13738 $srv_native_linux_obj.
13739 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13740 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13741 (linux_enable_event_reporting): Remove declaration.
13742 (my_waitpid): Moved to common/linux-waitpid.c.
13743 (linux_wait_for_event): Pass ptid when calling
13744 linux_enable_event_reporting.
13745 (linux_supports_tracefork_flag): Remove.
13746 (linux_enable_event_reporting): Likewise.
13747 (linux_tracefork_grandchild): Remove.
13748 (STACK_SIZE): Moved to common/linux-ptrace.c.
13749 (linux_tracefork_child): Remove.
13750 (linux_test_for_tracefork): Remove.
13751 (linux_look_up_symbols): Call linux_supports_traceclone.
13752 (initialize_low): Remove call to linux_test_for_tracefork.
13753 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13754 common/linux-ptrace.h.
13755 (PTRACE_TYPE_ARG4): Likewise.
13756 Include linux-ptrace.h.
13758 2013-08-21 Pedro Alves <palves@redhat.com>
13760 * config.in: Renegerate.
13762 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13764 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13765 (SFILES): Remove $(srcdir)/common/target-common.c and
13766 add $(srcdir)/target/waitstatus.c.
13767 (OBS): Remove target-common.o and add waitstatus.o.
13768 (server_h): Remove $(srcdir)/../common/target-common.h and
13769 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13770 and $(srcdir)/../target/waitstatus.h.
13771 (target-common.o): Remove.
13772 (waitstatus.o): New target object file.
13773 * target.h: Do not include target-common.h and
13774 include target/resume.h, target/wait.h and
13775 target/waitstatus.h.
13777 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13779 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13780 to PTRACE_TYPE_ARG3.
13781 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13782 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13784 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13785 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13787 2013-07-27 Jie Zhang <jie@codesourcery.com>
13788 Daniel Jacobowitz <dan@codesourcery.com>
13789 Yao Qi <yao@codesourcery.com>
13791 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13792 (mips-linux-watch.o): New rule.
13793 (mips_linux_watch_h): New variable.
13794 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13796 * linux-mips-low.c: Include mips-linux-watch.h.
13797 (struct arch_process_info, struct arch_lwp_info): New.
13798 (update_watch_registers_callback): New function.
13799 (mips_linux_new_process, mips_linux_new_thread) New functions.
13800 (mips_linux_prepare_to_resume, mips_insert_point): New
13802 (mips_remove_point, mips_stopped_by_watchpoint): New
13804 (rsp_bp_type_to_target_hw_bp_type): New function.
13805 (mips_stopped_data_address): New function.
13806 (the_low_target): Add watchpoint support functions.
13808 2013-07-27 Yao Qi <yao@codesourcery.com>
13810 * i386-low.c: Include break-common.h.
13811 (enum target_hw_bp_type): Remove.
13813 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13815 * Makefile.in (SFILES): /common/target-common.c.
13816 (OBS): Add target-common.o.
13817 (server_h): Add $(srcdir)/../common/target-common.h.
13818 (target-common.o): New target.
13819 * server.c (queue_stop_reply_callback): Free
13820 status string after use.
13821 * target.c (target_waitstatus_to_string): Remove.
13822 * target.h: Include target-common.h.
13823 (resume_kind): Likewise.
13824 (target_waitkind): Likewise.
13825 (target_waitstatus): Likewise.
13826 (TARGET_WNOHANG): Likewise.
13828 2013-07-04 Yao Qi <yao@codesourcery.com>
13830 * Makefile.in (host_alias): Use @host_noncanonical@.
13831 (target_alias): Use @target_noncanonical@.
13832 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13833 ACX_NONCANONICAL_HOST.
13834 * configure: Regenerated.
13837 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13839 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13840 * configure: Rebuild.
13841 * Makefile.in (version_host, version_target): Get from configure.
13842 (version.c): Use $(version_host) and $(version_target).
13844 2013-07-03 Pedro Alves <palves@redhat.com>
13846 * Makefile.in (config.status): Depend on development.sh.
13847 * acinclude.m4: Include libmcheck.m4.
13848 * configure: Regenerate.
13850 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13852 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13853 attribute inside the parentheses.
13854 (winapi_DebugSetProcessKillOnExit): Ditto.
13855 (winapi_DebugBreakProcess): Ditto.
13856 (winapi_GenerateConsoleCtrlEvent): Ditto.
13858 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13860 * notif.h (notif_event): Add a dummy member to avoid compiler
13863 2013-07-01 Pedro Alves <palves@redhat.com>
13865 * hostio.c (HOSTIO_PATH_MAX): Define.
13866 (require_filename, handle_open, handle_unlink, handle_readlink):
13869 2013-07-01 Pedro Alves <palves@redhat.com>
13871 * server.h: Include "pathmax.h".
13872 * linux-low.c: Don't include sys/param.h.
13873 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13875 * win32-low.c: Don't include sys/param.h.
13876 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13878 2013-07-01 Pedro Alves <palves@redhat.com>
13880 * event-loop.c: Don't check HAVE_UNISTD_H before including
13882 * gdbreplay.c: Likewise.
13883 * remote-utils.c: Likewise.
13884 * server.c: Likewise.
13885 * configure.ac: Don't check for unistd.h.
13886 * configure: Regenerate.
13888 2013-06-28 Tom Tromey <tromey@redhat.com>
13890 * Makefile.in (version.c): Use version.in, not
13893 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13895 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13896 * configure: Rebuild.
13897 * Makefile.in (version_host, version_target): Get from configure.
13898 (version.c): Use $(version_host) and $(version_target).
13900 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13902 Fix trace-status to output user name without trailing colon.
13903 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13905 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13907 Fix trace-status to output proper start-time and stop-time.
13908 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13909 output start time and stop time in hex as gdb expects.
13911 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13913 * tracepoint.c (build_traceframe_info_xml): Output trace state
13914 variables present in the trace buffer.
13916 2013-06-24 Tom Tromey <tromey@redhat.com>
13918 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13920 (version.o): Remove.
13921 * gdbreplay.c: Include version.h.
13922 (version, host_name): Don't declare.
13923 * server.h: Include version.h.
13924 (version, host_name): Don't declare.
13926 2013-06-12 Pedro Alves <palves@redhat.com>
13928 * linux-x86-low.c (linux_is_elf64): Delete global.
13929 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13930 with local linux_pid_exe_is_elf_64_file use.
13932 2013-06-11 Pedro Alves <palves@redhat.com>
13934 * linux-low.c (regset_disabled, disable_regset): New functions.
13935 (regsets_fetch_inferior_registers)
13936 (regsets_store_inferior_registers): Use them.
13937 (initialize_regsets_info); Don't allocate the disabled_regsets
13939 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13942 2013-06-11 Pedro Alves <palves@redhat.com>
13944 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13947 2013-06-11 Pedro Alves <palves@redhat.com>
13949 * linux-x86-low.c (initialize_low_arch): Call
13950 init_registers_x32_avx_linux.
13952 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13954 Fix compatibility with Android Bionic.
13955 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13958 2013-06-07 Pedro Alves <palves@redhat.com>
13961 * Makefile.in (OBS): Add tdesc.o.
13962 (IPA_OBJS): Add tdesc-ipa.o.
13963 (tdesc-ipa.o): New rule.
13964 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13966 * linux-low.c (new_inferior): Delete.
13967 (disabled_regsets, num_regsets): Delete.
13968 (linux_add_process): Adjust to set the new per-process
13970 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13971 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13972 was a stop. When calling arch_setup, switch the current inferior
13973 to the thread that got an event.
13974 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13975 (regsets_fetch_inferior_registers)
13976 (regsets_store_inferior_registers): New regsets_info parameter.
13978 (linux_register_in_regsets): New regs_info parameter. Adjust to
13980 (register_addr, fetch_register, store_register): New usrregs_info
13981 parameter. Adjust to use it.
13982 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13983 parameter regs_info. Adjust to use it.
13984 (linux_fetch_registers): Get the current inferior's regs_info, and
13986 (linux_store_registers): Ditto.
13987 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13988 (initialize_low): Don't initialize the target_regsets here. Call
13989 initialize_low_arch.
13990 * linux-low.h (target_regsets): Delete declaration.
13991 (struct regsets_info): New.
13992 (struct usrregs_info): New.
13993 (struct regs_info): New.
13994 (struct process_info_private) <new_inferior>: New field.
13995 (struct linux_target_ops): Delete the num_regs, regmap, and
13996 regset_bitmap fields. New field regs_info.
13997 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13998 * i387-fp.c (num_xmm_registers): Delete.
13999 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14000 calls to new interface.
14001 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14002 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14003 Infer the number of xmm registers from the regcache's target
14005 * i387-fp.h (num_xmm_registers): Delete.
14006 * inferiors.c (add_thread): Don't install the thread's regcache
14008 * proc-service.c (gregset_info): Fetch the current inferior's
14009 regs_info. Adjust to use it.
14010 * regcache.c: Include tdesc.h.
14011 (register_bytes, reg_defs, num_registers)
14012 (gdbserver_expedite_regs): Delete.
14013 (get_thread_regcache): If the thread doesn't have a regcache yet,
14014 create one, instead of aborting gdbserver.
14015 (regcache_invalidate_one): Rename to ...
14016 (regcache_invalidate_thread): ... this.
14017 (regcache_invalidate_one): New.
14018 (regcache_invalidate): Only invalidate registers of the current
14020 (init_register_cache): Add target_desc parameter, and use it.
14021 (new_register_cache): Ditto. Assert the target description has a
14022 non zero registers_size.
14023 (regcache_cpy): Add assertions. Adjust.
14024 (realloc_register_cache, set_register_cache): Delete.
14025 (registers_to_string, registers_from_string): Adjust.
14026 (find_register_by_name, find_regno, find_register_by_number)
14027 (register_cache_size): Add target_desc parameter, and use it.
14028 (free_register_cache_thread, free_register_cache_thread_one)
14029 (regcache_release, register_cache_size): New.
14030 (register_size): Add target_desc parameter, and use it.
14031 (register_data, supply_register, supply_register_zeroed)
14032 (supply_regblock, supply_register_by_name, collect_register)
14033 (collect_register_as_string, collect_register_by_name): Adjust.
14034 * regcache.h (struct target_desc): Forward declare.
14035 (struct regcache) <tdesc>: New field.
14036 (init_register_cache, new_register_cache): Add target_desc
14038 (regcache_invalidate_thread): Declare.
14039 (regcache_invalidate_one): Delete declaration.
14040 (regcache_release): Declare.
14041 (find_register_by_number, register_cache_size, register_size)
14042 (find_regno): Add target_desc parameter.
14043 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14045 * remote-utils.c: Include tdesc.h.
14046 (outreg, prepare_resume_reply): Adjust.
14047 * server.c: Include tdesc.h.
14048 (gdbserver_xmltarget): Delete declaration.
14049 (get_features_xml, process_serial_event): Adjust.
14050 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14052 (struct process_info) <tdesc>: New field.
14053 (ipa_tdesc): Declare.
14054 * tdesc.c: New file.
14055 * tdesc.h: New file.
14056 * tracepoint.c: Include tdesc.h.
14057 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14058 (get_context_regcache): Adjust to pass ipa_tdesc down.
14059 (do_action_at_tracepoint): Adjust to get the register cache size
14060 from the context regcache's description.
14061 (traceframe_walk_blocks): Adjust to get the register cache size
14062 from the current trace frame's description.
14063 (traceframe_get_pc): Adjust to get current trace frame's
14064 description and pass it down.
14065 (gdb_collect): Adjust to get the register cache size from the
14067 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14068 (gdbserver_xmltarget): Delete.
14069 (initialize_low_tracepoint): Set the ipa's target description.
14070 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14071 (initialize_low_tracepoint): Set the ipa's target description.
14072 * linux-x86-low.c: Include tdesc.h.
14073 [__x86_64__] (is_64bit_tdesc): New.
14074 (ps_get_thread_area, x86_get_thread_area): Use it.
14075 (i386_cannot_store_register): Rename to ...
14076 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14077 (i386_cannot_fetch_register): Rename to ...
14078 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14079 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14081 (target_regsets): Rename to ...
14082 (x86_regsets): ... this.
14083 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14085 (x86_siginfo_fixup): Use is_64bit_tdesc.
14086 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14087 (tdesc_x32_avx_linux, tdesc_x32_linux)
14088 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14090 (x86_linux_update_xmltarget): Delete.
14091 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14092 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14093 (AMD64_LINUX_USER64_CS): New.
14094 (x86_linux_read_description): New, based on
14095 x86_linux_update_xmltarget.
14096 (same_process_callback): New.
14097 (x86_arch_setup_process_callback): New.
14098 (x86_linux_update_xmltarget): New.
14099 (x86_regsets_info): New.
14100 (amd64_linux_regs_info): New.
14101 (i386_linux_usrregs_info): New.
14102 (i386_linux_regs_info): New.
14103 (x86_linux_regs_info): New.
14104 (x86_arch_setup): Reimplement.
14105 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14106 (x86_emit_ops): Ditto.
14107 (the_low_target): Adjust. Install x86_linux_regs_info,
14108 x86_cannot_fetch_register, and x86_cannot_store_register.
14109 (initialize_low_arch): New.
14110 * linux-ia64-low.c (tdesc_ia64): Declare.
14111 (ia64_fetch_register): Adjust.
14112 (ia64_usrregs_info, regs_info): New globals.
14113 (ia64_regs_info): New function.
14114 (the_low_target): Adjust.
14115 (initialize_low_arch): New function.
14116 * linux-sparc-low.c (tdesc_sparc64): Declare.
14117 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14119 (sparc_arch_setup): New function.
14120 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14121 (the_low_target): Adjust.
14122 (initialize_low_arch): New function.
14123 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14124 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14125 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14126 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14127 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14128 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14129 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14130 (tdesc_powerpc_isa205_vsx64l): Declare.
14131 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14132 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14133 (ppc_set_pc, ppc_get_hwcap): Adjust.
14134 (ppc_usrregs_info): Forward declare.
14135 (!__powerpc64__) ppc_regmap_adjusted: New global.
14136 (ppc_arch_setup): Adjust to the current process'es target
14138 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14139 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14140 (ppc_store_evrregset): Adjust.
14141 (target_regsets): Rename to ...
14142 (ppc_regsets): ... this, and make static.
14143 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14144 (ppc_regs_info): New function.
14145 (the_low_target): Adjust.
14146 (initialize_low_arch): New function.
14147 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14148 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14149 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14150 (tdesc_s390x_linux64v2): Declare.
14151 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14152 (s390_fill_gregset, s390_store_last_break): Adjust.
14153 (target_regsets): Rename to ...
14154 (s390_regsets): ... this, and make static.
14155 (s390_get_pc, s390_set_pc): Adjust.
14156 (s390_get_hwcap): New target_desc parameter, and use it.
14157 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14158 (s390_arch_setup): Adjust to set the current process'es target
14159 description. Don't adjust the regmap.
14160 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14161 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14162 (regs_info_3264): New globals.
14163 (s390_regs_info): New function.
14164 (the_low_target): Adjust.
14165 (initialize_low_arch): New function.
14166 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14167 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14168 [__mips64] (init_registers_mips_linux)
14169 (init_registers_mips_dsp_linux): Delete defines.
14170 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14171 (have_dsp): New global.
14172 (mips_read_description): New, based on mips_arch_setup.
14173 (mips_arch_setup): Reimplement.
14174 (get_usrregs_info): New function.
14175 (mips_cannot_fetch_register, mips_cannot_store_register)
14176 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14177 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14178 (target_regsets): Rename to ...
14179 (mips_regsets): ... this, and make static.
14180 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14181 (dsp_regs_info, regs_info): New globals.
14182 (mips_regs_info): New function.
14183 (the_low_target): Adjust.
14184 (initialize_low_arch): New function.
14185 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14186 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14188 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14189 (arm_read_description): New, with bits factored from
14191 (arm_arch_setup): Reimplement.
14192 (target_regsets): Rename to ...
14193 (arm_regsets): ... this, and make static.
14194 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14195 (arm_regs_info): New function.
14196 (the_low_target): Adjust.
14197 (initialize_low_arch): New function.
14198 * linux-m68k-low.c (tdesc_m68k): Declare.
14199 (target_regsets): Rename to ...
14200 (m68k_regsets): ... this, and make static.
14201 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14202 (m68k_regs_info): New function.
14203 (m68k_arch_setup): New function.
14204 (the_low_target): Adjust.
14205 (initialize_low_arch): New function.
14206 * linux-sh-low.c (tdesc_sharch): Declare.
14207 (target_regsets): Rename to ...
14208 (sh_regsets): ... this, and make static.
14209 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14210 (sh_regs_info, sh_arch_setup): New functions.
14211 (the_low_target): Adjust.
14212 (initialize_low_arch): New function.
14213 * linux-bfin-low.c (tdesc_bfin): Declare.
14214 (bfin_arch_setup): New function.
14215 (bfin_usrregs_info, regs_info): New globals.
14216 (bfin_regs_info): New function.
14217 (the_low_target): Adjust.
14218 (initialize_low_arch): New function.
14219 * linux-cris-low.c (tdesc_cris): Declare.
14220 (cris_arch_setup): New function.
14221 (cris_usrregs_info, regs_info): New globals.
14222 (cris_regs_info): New function.
14223 (the_low_target): Adjust.
14224 (initialize_low_arch): New function.
14225 * linux-cris-low.c (tdesc_crisv32): Declare.
14226 (cris_arch_setup): New function.
14227 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14228 (cris_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-m32r-low.c (tdesc_m32r): Declare.
14232 (m32r_arch_setup): New function.
14233 (m32r_usrregs_info, regs_info): New globals.
14234 (m32r_regs_info): Adjust.
14235 (initialize_low_arch): New function.
14236 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14237 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14238 (tic6x_usrregs_info): Forward declare.
14239 (tic6x_read_description): New function, based on ...
14240 (tic6x_arch_setup): ... this. Reimplement.
14241 (target_regsets): Rename to ...
14242 (tic6x_regsets): ... this, and make static.
14243 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14244 (tic6x_regs_info): New function.
14245 (the_low_target): Adjust.
14246 (initialize_low_arch): New function.
14247 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14248 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14249 (target_regsets): Rename to ...
14250 (xtensa_regsets): ... this, and make static.
14251 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14253 (xtensa_arch_setup, xtensa_regs_info): New functions.
14254 (the_low_target): Adjust.
14255 (initialize_low_arch): New function.
14256 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14257 (nios2_arch_setup): Set the current process'es tdesc.
14258 (target_regsets): Rename to ...
14259 (nios2_regsets): ... this.
14260 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14261 (nios2_regs_info): New function.
14262 (the_low_target): Adjust.
14263 (initialize_low_arch): New function.
14264 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14265 (aarch64_arch_setup): Set the current process'es tdesc.
14266 (target_regsets): Rename to ...
14267 (aarch64_regsets): ... this.
14268 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14269 (aarch64_regs_info): New function.
14270 (the_low_target): Adjust.
14271 (initialize_low_arch): New function.
14272 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14274 (target_regsets): Rename to ...
14275 (tile_regsets): ... this.
14276 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14277 (tile_regs_info): New function.
14278 (tile_arch_setup): Set the current process'es tdesc.
14279 (the_low_target): Adjust.
14280 (initialize_low_arch): New function.
14281 * spu-low.c (tdesc_spu): Declare.
14282 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14283 * win32-arm-low.c (tdesc_arm): Declare.
14284 (arm_arch_setup): New function.
14285 (the_low_target): Install arm_arch_setup instead of
14286 init_registers_arm.
14287 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14288 (init_windows_x86): Rename to ...
14289 (i386_arch_setup): ... this. Set `win32_tdesc'.
14290 (the_low_target): Adjust.
14291 * win32-low.c (win32_tdesc): New global.
14292 (child_add_thread): Don't create the thread cache here.
14293 (do_initial_child_stuff): Set the new process'es tdesc.
14294 * win32-low.h (struct target_desc): Forward declare.
14295 (win32_tdesc): Declare.
14296 * lynx-i386-low.c (tdesc_i386): Declare global.
14297 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14298 * lynx-low.c (lynx_tdesc): New global.
14299 (lynx_add_process): Set the new process'es tdesc.
14300 * lynx-low.h (struct target_desc): Forward declare.
14301 (lynx_tdesc): Declare global.
14302 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14303 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14304 * nto-low.c (nto_tdesc): New global.
14305 (do_attach): Set the new process'es tdesc.
14306 * nto-low.h (struct target_desc): Forward declare.
14307 (nto_tdesc): Declare.
14308 * nto-x86-low.c (tdesc_i386): Declare.
14309 (nto_x86_arch_setup): Set `nto_tdesc'.
14311 2013-06-04 Gary Benson <gbenson@redhat.com>
14313 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14314 to qSupported response when appropriate.
14315 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14316 with nonzero-length annex.
14317 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14318 arguments supplied in annex.
14320 2013-05-31 Doug Evans <dje@google.com>
14323 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14324 64 bits in 64-cross-32 environment.
14326 2013-05-28 Pedro Alves <palves@redhat.com>
14328 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14329 (aarch64-without-fpu.c): Delete rule.
14330 * configure.srv (aarch64*-*-linux*): Remove references to
14331 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14332 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14335 2013-05-24 Pedro Alves <palves@redhat.com>
14337 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14338 instead of strchr/decode_address. Error if the range isn't split
14339 with a ','. Don't assume there's be a ':' in the action.
14341 2013-05-23 Yao Qi <yao@codesourcery.com>
14342 Pedro Alves <palves@redhat.com>
14344 * linux-low.c (lwp_in_step_range): New function.
14345 (linux_wait_1): If the thread was range stepping and stopped
14346 outside the stepping range, report the stop to GDB. Otherwise,
14347 continue stepping. Add range stepping debug output.
14348 (linux_set_resume_request): Copy the step range from the resume
14349 request to the lwp.
14350 (linux_supports_range_stepping): New.
14351 (linux_target_ops) <supports_range_stepping>: Set to
14352 linux_supports_range_stepping.
14353 * linux-low.h (struct linux_target_ops)
14354 <supports_range_stepping>: New field.
14355 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14356 * linux-x86-low.c (x86_supports_range_stepping): New.
14357 (the_low_target) <supports_range_stepping>: Set to
14358 x86_supports_range_stepping.
14359 * server.c (handle_v_cont): Handle 'r' action.
14360 (handle_v_requests): Append ";r" if the target supports range
14362 * target.h (struct thread_resume) <step_range_start,
14363 step_range_end>: New fields.
14364 (struct target_ops) <supports_range_stepping>:
14366 (target_supports_range_stepping): New macro.
14368 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14370 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14371 confusion in comment.
14373 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14375 * lynx-low.c (struct process_info_private): New type.
14376 (lynx_add_process): New function.
14377 (lynx_create_inferior, lynx_attach): Replace calls to
14378 add_process by calls to lynx_add_process.
14379 (lynx_resume): If PTID is null, then try using
14380 current_process()->private->last_wait_event_ptid.
14382 (lynx_clear_inferiors): Delete. The contents of that function
14383 has been inlined in lynx_mourn;
14384 (lynx_wait_1): Save the ptid in the process's private data.
14385 (lynx_mourn): Free the process' private data. Replace call
14386 to lynx_clear_inferiors by call to clear_inferiors.
14388 2013-05-17 Yao Qi <yao@codesourcery.com>
14390 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14393 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14395 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14396 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14397 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14398 PT_TEXT_END_ADDR guards. Update comments.
14399 (linux_target_op) <read_offsets>: Conditionally define to
14400 linux_read_offsets if the target is UCLIBC and if it defines
14401 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14403 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14404 Andrew Jenner <andrew@codesourcery.com>
14406 * Makefile.in (SFILES): Add linux-nios2-low.c.
14407 (clean): Add action to delete nios2-linux.c.
14408 (nios2-linux.c): New rule.
14409 * configure.srv: Add nios2*-*-linux*.
14410 * linux-nios2-low.c: New.
14412 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14414 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14416 2013-04-25 Hui Zhu <hui@codesourcery.com>
14419 * ax.c (ax_printf): Add fflush.
14421 2013-04-22 Tom Tromey <tromey@redhat.com>
14423 * Makefile.in (SFILES): Add filestuff.c.
14424 (OBS): Add filestuff.o.
14425 (filestuff.o): New target.
14426 * config.in, configure: Rebuild.
14427 * configure.ac: Check for fdwalk, pipe2.
14429 2013-04-17 Pedro Alves <palves@redhat.com>
14431 * configure.ac (USE_THREAD_DB): Delete variable.
14432 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14433 Don't AC_SUBST USE_THREAD_DB.
14434 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14435 * config.in, configure: Regenerate.
14437 2013-04-16 Pedro Alves <palves@redhat.com>
14439 * linux-low.h (struct lwp_info) <thread_known>: Move under
14440 the USE_THREAD_DB #ifdef.
14442 2013-04-16 Pedro Alves <palves@redhat.com>
14444 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14445 (linux-low.o): Delete rule.
14446 * linux-low.h: Always include "gdb_thread_db.h" instead of
14447 conditionally including thread_db.h.
14448 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14451 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14453 * Makefile.in (install-only): Fix make install regression.
14455 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14457 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14458 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14460 * gdbserver.1: Remove.
14462 2013-03-22 Pedro Alves <palves@redhat.com>
14464 * linux-low.c (handle_extended_wait): Don't call
14465 linux_enable_event_reporting.
14467 2013-03-15 Tony Theodore <tonyt@logyst.com>
14470 * Makefile.in (SHELL): Use @SHELL@.
14472 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14474 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14477 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14479 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14480 Remove extraneous NULL element.
14482 2013-03-13 Yao Qi <yao@codesourcery.com>
14484 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14485 'V' block in trace frame.
14487 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14489 * target.h (struct target_ops): Add btrace ops.
14490 (target_supports_btrace): New macro.
14491 (target_enable_btrace): New macro.
14492 (target_disable_btrace): New macro.
14493 (target_read_btrace): New macro.
14494 * gdbthread.h (struct thread_info): Add btrace field.
14495 * server.c: Include btrace-common.h.
14496 (handle_btrace_general_set): New function.
14497 (handle_btrace_enable): New function.
14498 (handle_btrace_disable): New function.
14499 (handle_general_set): Call handle_btrace_general_set.
14500 (handle_qxfer_btrace): New function.
14501 (struct qxfer qxfer_packets[]): Add btrace entry.
14502 * inferiors.c (remove_thread): Disable btrace.
14503 * linux-low: Include linux-btrace.h.
14504 (linux_low_enable_btrace): New function.
14505 (linux_low_read_btrace): New function.
14506 (linux_target_ops): Add btrace ops.
14507 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14508 Add srv_linux_btrace=yes.
14509 (x86_64-*-linux*): Add linux-btrace.o.
14510 Add srv_linux_btrace=yes.
14511 * configure.ac: Define HAVE_LINUX_BTRACE.
14512 * config.in: Regenerated.
14513 * configure: Regenerated.
14515 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14517 * server.c (handle_qxfer): Preserve error message if -3 is
14519 (qxfer): Document the -3 return value.
14521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14523 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14524 (linux_btrace_h): New variable.
14525 (linux-btrace.o): New rule.
14527 2013-03-08 Stan Shebs <stan@codesourcery.com>
14528 Hafiz Abid Qadeer <abidh@codesourcery.com>
14530 * tracepoint.c (trace_buffer_size): New global.
14531 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14532 (init_trace_buffer): Change to one-argument function. Allocate
14533 trace buffer memory.
14534 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14535 handle QTBuffer:size packet.
14536 (cmd_bigqtbuffer_size): New function.
14537 (initialize_tracepoint): Call init_trace_buffer with
14538 DEFAULT_TRACE_BUFFER_SIZE.
14539 * server.c (handle_query): Add QTBuffer:size in the
14542 2013-03-07 Yao Qi <yao@codesourcery.com>
14544 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14545 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14547 (cmd_qtsp): Adjust condition. Do post increment.
14548 Set cur_action and cur_step_action back to 0.
14550 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14553 * linux-low.c (linux_write_memory): Return early success if LEN is
14556 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14558 * configure.srv: Add x86_64-*-cygwin* as target.
14560 2013-02-28 Tom Tromey <tromey@redhat.com>
14562 * configure.ac: Invoke AC_SYS_LARGEFILE.
14563 * configure, config.in: Rebuild.
14565 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14567 * win32-low.c: Throughout, fix format strings and casts of
14568 printf-like functions to avoid type related warnings on all
14570 (get_child_debug_event): Print dwDebugEventCode as hex since
14571 that's how it's usually documented.
14573 2013-02-28 Yao Qi <yao@codesourcery.com>
14575 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14578 2013-02-27 Jiong Wang <jiwang@tilera.com>
14580 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14581 (reg-tilegx32.c): New rule.
14582 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14583 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14584 different register info initializer according to elf class.
14585 (init_registers_tilgx32): New function. The tilegx32 register info
14587 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14588 (tile_store_gregset): Likewise.
14590 2013-02-27 Yao Qi <yao@codesourcery.com>
14592 * server.c (process_point_options): Print debug message when
14593 debug_threads is true.
14595 2013-02-26 Yao Qi <yao@codesourcery.com>
14597 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14599 2013-02-19 Pedro Alves <palves@redhat.com>
14600 Kai Tietz <ktietz@redhat.com>
14604 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14605 instead of strtoul to extract address from packet.
14606 (process_serial_event) <'z'>: Likewise.
14608 2013-02-18 Yao Qi <yao@codesourcery.com>
14610 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14612 2013-02-14 Pedro Alves <palves@redhat.com>
14616 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14617 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14619 2013-02-14 Pedro Alves <palves@redhat.com>
14621 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14623 2013-02-14 Pedro Alves <palves@redhat.com>
14625 * tracepoint.c (save_string): Delete.
14626 (add_tracepoint_action): Use savestring instead of save_string.
14628 2013-02-12 Pedro Alves <palves@redhat.com>
14630 * linux-xtensa-low.c: Ditto.
14631 * xtensa-xtregs.c: Ditto.
14633 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14635 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14638 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14640 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14641 aarch64_num_wp_regs and aarch64_num_bp_regs to
14642 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14644 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14646 * linux-aarch64-low.c (ps_get_thread_area): Replace
14647 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14649 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14650 Marcus Shawcroft <marcus.shawcroft@arm.com>
14651 Nigel Stephens <nigel.stephens@arm.com>
14652 Yufeng Zhang <yufeng.zhang@arm.com>
14654 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14655 (aarch64.c, aarch64-without-fpu.c): New targets.
14656 * configure.srv (aarch64*-*-linux*): New.
14657 * linux-aarch64-low.c: New file.
14659 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14661 * linux-low.c (handle_extended_wait, linux_create_inferior)
14662 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14663 (dequeue_one_deferred_signal, linux_resume_one_thread)
14664 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14665 (linux_tracefork_grandchild, linux_test_for_tracefork)
14666 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14667 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14668 where the argument is 0.
14670 2013-01-25 Yao Qi <yao@codesourcery.com>
14672 * event-loop.c: Include "queue.h".
14673 (gdb_event_p): New typedef.
14674 (struct gdb_event) <next_event>: Remove.
14675 (event_queue): Change to QUEUE(gdb_event_p).
14676 (async_queue_event): Remove.
14677 (gdb_event_xfree): New.
14678 (initialize_event_loop): New.
14679 (process_event): Use API from QUEUE.
14680 (wait_for_event): Likewise.
14681 * server.c (main): Call initialize_event_loop.
14682 * server.h (initialize_event_loop): Declare.
14684 2013-01-18 Yao Qi <yao@codesourcery.com>
14686 * ax.h (struct eval_agent_expr_context): New.
14687 (gdb_eval_agent_expr): Update declaration.
14688 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14689 TFRAME. Add new argument CTX.
14690 * server.h (struct eval_agent_expr_context): Declare.
14691 (agent_mem_read, agent_tsv_read): Update declaration.
14692 (agent_mem_read_string): Likewise.
14693 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14694 (add_traceframe_block): Add new argument TPOINT.
14695 Increase TPOINT->traceframe_usage.
14696 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14697 eval_tracepoint_agent_expr.
14698 (condition_true_at_tracepoint): Likewise.
14699 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14700 (agent_mem_read_string, agent_tsv_read): Likewise.
14702 2013-01-16 Yao Qi <yao@codesourcery.com>
14704 * linux-low.c (linux_resume_one_lwp): Don't check
14705 'lwp->bp_reinsert != 0'.
14707 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14708 Pedro Alves <palves@redhat.com>
14710 * lynx-low.c (ptrace_request_to_str): Define a temporary
14711 macro and use it to simplify this function's implementation.
14713 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14715 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14718 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14720 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14722 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14724 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14726 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14728 * lynx-low.c (lynx_resume): Use the resume_info parameter
14729 to determine the ptid for the lynx_ptrace call, unless
14730 it is equal to minus_one_ptid, in which case we use the
14731 ptid of the current_inferior.
14732 (lynx_wait_1): After having received a thread create/exit
14733 event, resume the inferior's execution using the signaling
14734 thread's ptid, rather than the old ptid.
14736 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14738 * lynx-low.c (lynx_resume): Delete variable ret.
14740 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14742 * gdbreplay.c (gdbreplay_version): Update copyright year.
14743 * server.c (gdbserver_version): Likewise.
14745 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14747 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14750 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14752 * lynx-low.c (ptrace_request_to_str): Add handling for
14753 PTRACE_GETTRACESIG.
14755 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14757 * lynx-low.c (lynx_attach): Delete variable new_process.
14759 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14761 * lynx-low.c (lynx_create_inferior): Delete variable
14764 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14766 * lynx-low.c (ptrace_request_to_str): Do not handle
14767 PTRACE_GETTHREADLIST if this macro does not exist.
14769 2012-12-15 Yao Qi <yao@codesourcery.com>
14771 * Makefile.in (OBS): Add notif.o.
14772 * notif.c, notif.h: New.
14773 * server.c: Include "notif.h".
14774 (struct vstop_notif) <next>: Remove.
14776 (queue_stop_reply): Update.
14777 (push_event, send_next_stop_reply): Remove.
14778 (discard_queued_stop_replies): Update.
14779 (notif_stop): New variable.
14780 (handle_v_stopped): Remove.
14781 (handle_v_requests): Don't call handle_v_stopped. Call
14782 handle_ack_notif instead.
14783 (queue_stop_reply_callback): Call notif_event_enque instead
14784 of queue_stop_reply.
14785 (handle_status): Don't call send_next_stop_reply, call
14786 notif_write_event instead.
14787 (kill_inferior_callback): Likewise.
14788 (detach_or_kill_inferior_callback): Likewise.
14789 (main): Call initialize_notif.
14790 (process_serial_event): Call QUEUE_is_empty.
14791 (handle_target_event): Call notif_push instead of push event.
14792 * server.h (push_event): Remove declaration.
14794 2012-12-10 Tom Tromey <tromey@redhat.com>
14796 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14797 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14800 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14801 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14802 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14803 (amd64-linux-ipa.o, ax.o): Rewrite.
14804 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14805 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14806 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14807 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14808 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14809 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14810 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14811 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14812 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14813 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14814 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14815 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14816 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14817 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14818 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14819 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14820 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14821 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14822 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14823 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14824 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14825 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14826 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14827 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14828 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14829 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14830 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14831 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14832 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14833 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14834 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14835 (reg-tilegx.o): Remove.
14836 (all_object_files): New macro.
14837 Include .deps files.
14838 * aclocal.m4, configure: Rebuild.
14839 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14840 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14841 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14843 2012-12-05 Tom Tromey <tromey@redhat.com>
14846 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14848 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14850 * configure.ac: Check for linux/perf_event.h.
14851 * config.in: Regenerated.
14852 * configure: Regenerated.
14854 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14856 * hostio.c (handle_readlink): Decrease buffer size
14857 parameter passed to readlink by one byte.
14859 2012-11-26 Yao Qi <yao@codesourcery.com>
14861 * configure.ac (build_warnings): Append '-Wempty-body'.
14862 * configure: Regenerated.
14863 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14866 2012-11-15 Pierre Muller <muller@sourceware.org>
14868 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14869 * config.in: Regenerate.
14870 * configure: Regenerate.
14871 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14872 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14873 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14874 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14876 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14877 instead of <sys/wait.h> header.
14878 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14880 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14882 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14883 (various make rules): Remove -DGDBSERVER
14885 2012-11-09 Yao Qi <yao@codesourcery.com>
14887 * spu-low.c (current_ptid): Move it to ..
14888 * gdbthread.h: ... here. New.
14889 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14890 * server.c (myresume, process_serial_event): Likewise.
14891 * thread-db.c (thread_db_find_new_threads): Likewise.
14892 * tracepoint.c (run_inferior_command): Likewise.
14894 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14896 * server.c (handle_search_memory_1): Include access length in
14899 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14901 * linux-crisv32-low.c: Fix compile errors.
14903 2012-09-04 Yao Qi <yao@codesourcery.com>
14905 * tracepoint.c (cmd_qtsv): Adjust debug message.
14906 Don't check CUR_TPOINT.
14908 2012-08-28 Yao Qi <yao@codesourcery.com>
14910 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14911 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14912 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14913 Remove declarations of xmalloc, xreallloc, xstrdup and
14915 * Makefile.in (libiberty_h): New.
14916 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14917 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14919 2012-08-23 Yao Qi <yao@codesourcery.com>
14921 * server.h: Remove declaration of 'xsnprintf'.
14923 2012-08-22 Keith Seitz <keiths@redhat.com>
14925 * server.h: Include build-gnulib-gbserver/config.h.
14926 * gdbreplay.c: Likewise.
14928 2012-08-08 Doug Evans <dje@google.com>
14930 * Makefile.in (SFILES): Add gdb_vecs.c.
14931 (OBS): Add gdb_vecs.o.
14932 (gdb_vecs_h, host_defs_h): New variables.
14933 (thread-db.o): Add $(gdb_vecs_h) dependency.
14934 (gdb_vecs.o): New rule.
14935 * thread-db.c: #include "gdb_vecs.h".
14936 (thread_db_load_search): Use a vector to iterate over path elements.
14937 Handle text appearing after "$pdir".
14939 * configure.ac: Add check for strstr.
14940 * config.in: Regenerate.
14941 * configure: Regenerate.
14943 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14945 * hostio.c (handle_pread): If pread fails, fall back to attempting
14947 (handle_pwrite): Likewise for pwrite.
14949 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14951 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14952 between unsupported TYPE and unimplementable ADDR/LEN combination.
14953 (arm_insert_point): Act on new return value.
14955 2012-07-31 Pedro Alves <palves@redhat.com>
14957 * server.c (process_point_options): Only skip tokens if we find
14958 one that is unrecognized. Don't treat 'X' specially while
14959 skipping unrecognized tokens.
14961 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14963 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14964 to 4-byte-align HW breakpoint addresses for Thumb.
14966 2012-07-27 Yao Qi <yao@codesourcery.com>
14970 * server.h: Declare gdb_agent_about_to_close.
14971 * target.c (kill_inferior): Include "agent.h".
14972 New. Send command 'kill'.
14973 * target.h (kill_inferior): Removed macro.
14974 * tracepoint.c (gdb_agent_about_to_close): New.
14975 (gdb_agent_helper_thread): Handle command 'close'.
14976 Wait endlessly until the inferior stops.
14977 Install gdb_agent_remove_socket to atexit hook.
14978 (agent_socket_name): New static variable.
14979 (gdb_agent_socket_init): Replace local variable 'name' with
14980 'agent_socket_name'.
14981 (gdb_agent_remove_socket): New.
14983 2012-07-27 Yao Qi <yao@codesourcery.com>
14985 * server.c (process_point_options): Stop at 'X' when parsing.
14987 2012-07-19 Michael Eager <eager@eagercon.com>
14989 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14991 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14992 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14993 hardware breakpoint.
14995 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14997 * gdbserver/linux-low.c (initialize_low): Call
14998 linux_ptrace_init_warnings.
15000 2012-07-02 Doug Evans <dje@google.com>
15002 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15005 2012-07-02 Stan Shebs <stan@codesourcery.com>
15007 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15008 (ax.o): Add it to build rule.
15010 (OBS): Add format.o.
15011 (IPA_OBS): Add format.o.
15012 * server.c (handle_query): Claim support for breakpoint commands.
15013 (process_point_options): Add command case.
15014 (process_serial_event): Leave running if there are printfs in
15016 * mem-break.h (any_persistent_commands): Declare.
15017 (add_breakpoint_commands): Declare.
15018 (gdb_no_commands_at_breakpoint): Declare.
15019 (run_breakpoint_commands): Declare.
15020 * mem-break.c (struct point_command_list): New struct.
15021 (struct breakpoint): New field command_list.
15022 (any_persistent_commands): New function.
15023 (add_commands_to_breakpoint): New function.
15024 (add_breakpoint_commands): New function.
15025 (gdb_no_commands_at_breakpoint): New function.
15026 (run_breakpoint_commands): New function.
15027 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15029 * ax.c: Include format.h.
15030 (ax_printf): New function.
15031 (gdb_eval_agent_expr): Add printf opcode.
15033 2012-06-13 Yao Qi <yao@codesourcery.com>
15035 * server.c (start_inferior): Remove duplicated writes to fields
15036 'last_resume_kind' and 'last_status' of 'current_inferior'.
15038 2012-06-12 Yao Qi <yao@codesourcery.com>
15039 Pedro Alves <palves@redhat.com>
15041 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15043 * server.c (handle_v_cont): Extend comment.
15045 2012-06-11 Yao Qi <yao@codesourcery.com>
15047 * linux-low.c (linux_attach): Add 'static'.
15049 2012-06-06 Yao Qi <yao@codesourcery.com>
15051 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15053 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15055 Fix gcc -flto compilation warning.
15056 * server.c (main): Make variable multi_mode and attach volatile.
15058 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15060 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15061 if the platform doesn't know about it.
15063 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15065 * Makefile.in (SFILES): Add linux-tile-low.c.
15066 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15067 * configure.srv: Handle tilegx-*-linux*.
15068 * linux-tile-low.c: New file.
15070 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15072 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15074 2012-05-24 Pedro Alves <palves@redhat.com>
15078 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15080 2012-05-24 Pedro Alves <palves@redhat.com>
15084 Replace target_signal with gdb_signal throughout.
15086 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15088 * linux-low.c (linux_store_registers): Avoid the copying sequence
15089 when no data has been retrieved by ptrace.
15091 2012-05-22 Will Deacon <will.deacon@arm.com>
15093 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15094 Include asm/ptrace.h.
15095 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15098 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15100 * linux-low.c (linux_store_registers): Don't re-retrieve data
15101 with ptrace that has already been obtained from /proc. Always
15102 copy any data retrieved with ptrace to the buffer supplied.
15104 2012-05-11 Yao Qi <yao@codesourcery.com>
15105 Pedro Alves <palves@redhat.com>
15107 * linux-low.c (enum stopping_threads_kind): New.
15108 (stopping_threads): Change type to `enum stopping_threads_kind'.
15109 (handle_extended_wait): If stopping and suspending threads, leave
15110 the new_lwp suspended too.
15111 (linux_wait_for_event): Adjust.
15112 (stop_all_lwps): Set `stopping_threads' to
15113 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15114 whether we're suspending threads or just stopping them. Assert no
15117 2012-04-29 Yao Qi <yao@codesourcery.com>
15119 * server.h: Move some code to ...
15120 * gdbthread.h: ... here. New.
15121 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15122 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15123 (nto-low.o, win32-low.o): Likewise.
15124 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15125 * regcache.c, remote-utils.c, server.c: Likewise.
15126 * target.c, tracepoint.c, win32-low.c: Likewise.
15128 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15130 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15131 (PTRACE_ARG4_TYPE): Likewise.
15132 (PTRACE_XFER_TYPE): Likewise.
15133 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15134 ptrace to PTRACE_ARG3_TYPE.
15135 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15136 (PTRACE_ARG4_TYPE): Likewise.
15137 (PTRACE_XFER_TYPE): Likewise.
15138 (linux_detach_one_lwp): Cast fourth argument of
15139 ptrace to long then PTRACE_ARG4_TYPE.
15140 (regsets_fetch_inferior_registers): Cast third argument of
15141 ptrace to long then PTRACE_ARG3_TYPE.
15142 (regsets_store_inferior_registers): Likewise.
15144 2012-04-20 Pedro Alves <palves@redhat.com>
15146 * configure: Regenerate.
15148 2012-04-19 Pedro Alves <palves@redhat.com>
15150 * Makefile.in (GNULIB_BUILDDIR): New.
15151 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15152 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15153 (all, install-only, uninstall, clean-info, all-lib, clean): No
15154 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15155 (maintainer-clean realclean distclean): Use subdir_do.
15157 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15158 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15159 * acinclude.m4: Include acx_configure_dir.m4.
15160 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15161 calls. Call AC_PROG_RANLIB. Configure gnulib using
15164 (GNULIB_STDINT_H): Adjust.
15165 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15166 * gdbreplay.c: Include build-gnulib/config.h.
15167 * server.h: Likewise.
15168 * aclocal.m4: Regenerate.
15169 * config.in: Regenerate.
15170 * configure: Regenerate.
15172 2012-04-19 Pedro Alves <palves@redhat.com>
15174 * Makefile.in (LIBGNU, INCGNU): Adjust.
15175 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15176 (all, install-only, uninstall, clean-info, all-lib, clean)
15177 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15178 * configure.ac: Adjust AC_OUTPUT output.
15179 * aclocal.m4: Regenerate.
15180 * configure: Regenerate.
15182 2012-04-19 Pedro Alves <palves@redhat.com>
15184 * Makefile.in (generated_files): New.
15185 (server_h): Remove the explicit dependency on config.h, and depend
15186 on $generated_files.
15188 2012-04-19 Pedro Alves <palves@redhat.com>
15190 * Makefile.in (INCGNU): Add -Ignulib.
15192 2012-04-19 Pedro Alves <palves@redhat.com>
15194 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15195 (INCGNU): ... this, and spell out -I here.
15196 (GNULIB_LIB): Rename to ...
15197 (LIBGNU): ... this.
15198 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15200 2012-04-19 Pedro Alves <palves@redhat.com>
15202 * config.in: Regenerate.
15204 2012-04-19 Pedro Alves <palves@redhat.com>
15206 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15207 * server.h (memmem): Remove declaration.
15208 * config.in: Regenerate.
15209 * configure: Regenerate.
15211 2012-04-19 Yao Qi <yao@codesourcery.com>
15213 * Makefile.in (SFILES): Add common/vec.c.
15217 2012-04-19 Yao Qi <yao@codesourcery.com>
15219 * remote-utils.c (prepare_resume_reply): Replace with macro
15220 target_core_of_thread.
15221 * server.c (handle_qxfer_threads_proper): Likewise.
15222 * target.h (traget_core_of_thread): New macro.
15224 2012-04-18 Pedro Alves <palves@redhat.com>
15226 * aclocal.m4: Regenerate.
15227 * configure: Regenerate.
15229 2012-04-16 Yao Qi <yao@codesourcery.com>
15231 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15232 duplicated on address.
15234 2012-04-16 Yao Qi <yao@codesourcery.com>
15236 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15237 (struct tracepoint_action_ops) <send>: New field.
15238 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15239 (agent_expr_send, x_tracepoint_action_send): New.
15240 (l_tracepoint_action_send): New.
15241 (cmd_qtdp): Download and install tracepoint
15242 according to `use_agent'.
15243 (run_inferior_command): Add one more parameter `len'.
15245 (tracepoint_send_agent): New.
15246 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15248 2012-04-16 Yao Qi <yao@codesourcery.com>
15250 * tracepoint.c (download_tracepoints): Moved to ...
15251 (cmd_qtstart): ... here.
15253 2012-04-14 Yao Qi <yao@codesourcery.com>
15255 * tracepoint.c: Include inttypes.h.
15256 (struct collect_memory_action): Use sized types.
15257 (struct tracepoint): Likewise.
15258 (cmd_qtdp, stop_tracing): Update print specifiers.
15259 (cmd_qtp, response_tracepoint): Likewise.
15260 (collect_data_at_tracepoint): Likewise.
15261 (collect_data_at_step): Likewise.
15263 2012-04-14 Yao Qi <yao@codesourcery.com>
15265 Import gnulib module inttypes.
15266 * aclocal.m4, config.in, configure: Regenerated.
15268 2012-04-14 Yao Qi <yao@codesourcery.com>
15270 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15271 Makefile and config.status at last.
15273 2012-04-13 Yao Qi <yao@codesourcery.com>
15275 * tracepoint.c: Include stdint.h unconditionally.
15277 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15279 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15280 on BFD_HAVE_SYS_PROCFS_TYPE.
15281 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15282 * configure: Regenerate.
15283 * config.in: Likewise.
15285 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15287 * Makefile.in (clean): Also remove x32.c x32-linux.c
15288 x32-avx.c x32-avx-linux.c.
15289 (x32.o): New target.
15291 (x32-linux.o): Likewise.
15292 (x32-linux.c): Likewise.
15293 (x32-avx.o): Likewise.
15294 (x32-avx.c): Likewise.
15295 (x32-avx-linux.o): Likewise.
15296 (x32-avx-linux.c): Likewise.
15298 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15299 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15300 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15301 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15302 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15303 i386/x32-avx-linux.xml.
15305 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15306 (init_registers_x32_avx_linux): Likwise.
15307 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15308 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15310 2012-04-13 Pedro Alves <palves@redhat.com>
15312 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15313 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15314 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15315 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15318 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15320 * linux-x86-low.c (compat_x32_clock_t): New.
15321 (compat_x32_siginfo_t): Likewise.
15322 (compat_x32_siginfo_from_siginfo): Likewise.
15323 (siginfo_from_compat_x32_siginfo): Likewise.
15324 (linux_is_elf64): Likewise.
15325 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15326 and siginfo_from_compat_x32_siginfo for x32.
15327 (x86_arch_setup): Set linux_is_elf64.
15329 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15332 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15334 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15335 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15336 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15337 compatible with process.
15339 2012-04-12 Yao Qi <yao@codesourcery.com>
15341 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15342 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15343 (install-only, install-info, clean): Handle sub dir gnulib.
15344 (all-lib, am--refresh): New targets.
15345 (memmem.o): Remove target.
15346 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15347 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15348 (AC_REPLACE_FUNCS): Remove memmem.
15349 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15350 (AC_OUTPUT): Generate Makefile in gnulib/.
15351 * aclocal.m4, config.in, configure: Regenerated.
15353 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15355 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15357 2012-04-05 Pedro Alves <palves@redhat.com>
15359 -Werror=strict-aliasing
15361 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15364 2012-04-04 Pedro Alves <palves@redhat.com>
15366 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15367 (sparc_store_gregset_from_stack, sparc_store_gregset)
15368 (sparc_breakpoint_at): Fix formatting.
15370 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15372 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15374 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15375 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15376 * config.in: Regenerate.
15377 * configure: Likewise.
15379 2012-03-29 Pedro Alves <palves@redhat.com>
15381 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15382 Correct ptrace arguments.
15384 2012-03-28 Pedro Alves <palves@redhat.com>
15386 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15387 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15388 (IA64_FR1_REGNUM): New defines.
15389 (ia64_fetch_register): New.
15390 (the_low_target): Install it.
15391 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15393 * linux-low.c (linux_fetch_registers): Try the
15394 the_low_target.fetch_register hook first.
15396 * linux-arm-low.c (the_low_target): Adjust.
15397 * linux-bfin-low.c (the_low_target): Adjust.
15398 * linux-cris-low.c (the_low_target): Adjust.
15399 * linux-crisv32-low.c (the_low_target): Adjust.
15400 * linux-m32r-low.c (the_low_target): Adjust.
15401 * linux-m68k-low.c (the_low_target): Adjust.
15402 * linux-mips-low.c (the_low_target): Adjust.
15403 * linux-ppc-low.c (the_low_target): Adjust.
15404 * linux-s390-low.c (the_low_target): Adjust.
15405 * linux-sh-low.c (the_low_target): Adjust.
15406 * linux-sparc-low.c (the_low_target): Adjust.
15407 * linux-tic6x-low.c (the_low_target): Adjust.
15408 * linux-x86-low.c (the_low_target): Adjust.
15409 * linux-xtensa-low.c (the_low_target): Adjust.
15411 2012-03-26 Pedro Alves <palves@redhat.com>
15413 * server.c (handle_qxfer_libraries): Don't bail early if
15414 the_target->qxfer_libraries_svr4 is not NULL.
15416 2012-03-26 Pedro Alves <palves@redhat.com>
15418 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15420 2012-03-23 Pedro Alves <palves@redhat.com>
15422 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15423 "library-list-svr4" element's start tag when the the DSO list is
15426 2012-03-23 Pedro Alves <palves@redhat.com>
15428 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15429 a variable whose type size is the same as the inferior's pointer
15432 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15434 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15436 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15437 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15438 * linux-low.h: Include <signal.h>.
15439 (struct siginfo): Remove forward declaration.
15440 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15443 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15445 * .gitignore: Ignore more files.
15447 2012-03-19 Pedro Alves <palves@redhat.com>
15448 Jan Kratochvil <jan.kratochvil@redhat.com>
15450 * server.c (cont_thread, general_thread): Add describing comments.
15451 (start_inferior): Clear `cont_thread'.
15452 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15455 2012-03-15 Yao Qi <yao@codesourcery.com>
15457 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15459 (cmd_qtdp): ... here.
15461 2012-03-15 Yao Qi <yao@codesourcery.com>
15463 * tracepoint.c (struct tracepoint_action_ops): New.
15464 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15465 (m_tracepoint_action_download): New.
15466 (r_tracepoint_action_download): New.
15467 (x_tracepoint_action_download): New.
15468 (l_tracepoint_action_download): New.
15469 (add_tracepoint_action): Install `action->ops' according type.
15470 (download_tracepoint_1): Move code `download' function pointer
15471 of various tracepoint_action_ops.
15473 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15475 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15476 linux_ptrace_attach_warnings.
15478 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15480 * Makefile.in (linux-ptrace.o): New.
15481 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15482 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15483 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15484 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15485 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15487 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15489 2012-03-08 Yao Qi <yao@codesourcery.com>
15490 Pedro Alves <palves@redhat.com>
15492 Fix PR server/13392.
15493 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15494 offset of JMP insn.
15495 * tracepoint.c (remove_tracepoint): New.
15496 (cmd_qtdp): Call remove_tracepoint when failed to install.
15498 2012-03-07 Pedro Alves <palves@redhat.com>
15500 * linux-low.c (get_detach_signal): New.
15501 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15502 Pass on pending signals to PTRACE_DETACH. Check the result of the
15504 * server.c (program_signals, program_signals_p): New.
15505 (handle_general_set): Handle QProgramSignals.
15506 * server.h (program_signals, program_signals_p): Declare.
15508 2012-03-05 Pedro Alves <palves@redhat.com>
15509 Jan Kratochvil <jan.kratochvil@redhat.com>
15511 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15514 2012-03-03 Yao Qi <yao@codesourcery.com>
15516 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15517 agent_look_up_symbols.
15519 2012-03-03 Yao Qi <yao@codesourcery.com>
15521 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15522 (linux-x86-low.o): Likewise.
15523 * server.h: Remove in_process_agent_loaded.
15524 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15528 2012-03-03 Yao Qi <yao@codesourcery.com>
15530 * tracepoint.c (gdb_agent_capability): New global.
15531 (in_process_agent_loaded_ust): Renamed to
15532 `in_process_agent_supports_ust'.
15534 (in_process_agent_supports_ust): Call agent_capability_check.
15535 (clear_installed_tracepoints): Assert that agent supports
15538 2012-03-03 Yao Qi <yao@codesourcery.com>
15540 * linux-low.c (linux_supports_agent): New.
15541 (linux_target_ops): Initialize field `supports_agent' with
15542 linux_supports_agent.
15543 * target.h (struct target_ops) <supports_agent>: New.
15544 (target_supports_agent): New macro.
15545 * server.c (handle_general_set): Handle packet 'QAgent'.
15546 (handle_query): Send `QAgent+'.
15547 * Makefile.in (server.o): Depends on agent.h.
15549 2012-03-03 Yao Qi <yao@codesourcery.com>
15551 * Makefile.in (OBS): Add agent.o.
15552 Add new rule for agent.o.
15553 Track dependence of tracepoint.c on agent.h.
15554 * tracepoint.c (run_inferior_command_1):
15555 (run_inferior_command): Call agent_run_command.
15556 (gdb_ust_connect_sync_socket): Deleted. Move it to
15558 (resume_thread, stop_thread): Likewise.
15559 (gdb_ust_socket_init): Renamed to ...
15560 (gdb_agent_socket_init): ... New.
15561 (gdb_ust_thread): Renamed to ...
15562 (gdb_agent_helper_thread): ... New.
15563 (gdb_ust_init): Move some code to ...
15564 (gdb_agent_init): ... here. New.
15565 [HAVE_UST]: Call gdb_ust_init.
15566 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15567 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15568 * config.in, configure: Regenerated.
15570 2012-03-02 Pedro Alves <palves@redhat.com>
15572 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15573 * linux-low.c (struct simple_pid_list): New.
15574 (stopped_pids): New a struct simple_pid_list pointer.
15575 (add_to_pid_list, pull_pid_from_list): New.
15576 (handle_extended_wait): Don't assume the first signal new children
15577 report is SIGSTOP. Adjust call to pull_pid_from_list.
15578 (linux_wait_for_lwp): Adjust.
15580 2012-03-02 Yao Qi <yao@codesourcery.com>
15582 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15585 2012-03-02 Yao Qi <yao@codesourcery.com>
15587 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15588 `stop_pc' and `tpoint'. Update caller.
15590 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15592 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15593 * linux-low.c (use_linux_regsets): New macro.
15594 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15595 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15596 (linux_register_in_regsets): New function.
15597 (usr_fetch_inferior_registers): Skip registers covered by
15599 (usr_store_inferior_registers): Likewise.
15600 (usr_fetch_inferior_registers): New macro.
15601 (usr_store_inferior_registers): Likewise.
15602 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15603 (linux_store_registers): Likewise.
15604 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15606 (init_registers_mips64_dsp_linux): Likewise.
15607 (init_registers_mips_linux): New macro.
15608 (init_registers_mips_dsp_linux): Likewise.
15609 (mips_dsp_num_regs): Likewise.
15610 (DSP_BASE, DSP_CONTROL): New fallback macros.
15611 (mips_base_regs): New macro.
15612 (mips_regmap): Use it. Fix the size.
15613 (mips_dsp_regmap): New variable.
15614 (mips_dsp_regset_bitmap): Likewise.
15615 (mips_arch_setup): New function.
15616 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15618 (mips_cannot_store_register): Likewise.
15619 (the_low_target): Update .arch_setup, .num_regs and .regmap
15620 initializers. Add .regset_bitmap initializer.
15621 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15623 * linux-bfin-low.c (the_low_target): Likewise.
15624 * linux-cris-low.c (the_low_target): Likewise.
15625 * linux-crisv32-low.c (the_low_target): Likewise.
15626 * linux-ia64-low.c (the_low_target): Likewise.
15627 * linux-m32r-low.c (the_low_target): Likewise.
15628 * linux-m68k-low.c (the_low_target): Likewise.
15629 * linux-ppc-low.c (the_low_target): Likewise.
15630 * linux-s390-low.c (the_low_target): Likewise.
15631 * linux-sh-low.c (the_low_target): Likewise.
15632 * linux-sparc-low.c (the_low_target): Likewise.
15633 * linux-tic6x-low.c (the_low_target): Likewise.
15634 * linux-x86-low.c (the_low_target): Likewise.
15635 * linux-xtensa-low.c (the_low_target): Likewise.
15636 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15637 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15638 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15640 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15641 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15643 2012-02-29 Yao Qi <yao@codesourcery.com>
15644 Pedro Alves <palves@redhat.com>
15646 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15647 `step_over_finished' is true.
15649 2012-02-27 Pedro Alves <palves@redhat.com>
15651 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15652 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15654 2012-02-27 Pedro Alves <palves@redhat.com>
15657 * linux-low.c (pid_is_stopped): New.
15658 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15660 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15662 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15665 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15667 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15669 2012-02-24 Luis Machado <lgustavo@codesourcery>
15671 * server.c (handle_query): Advertise support for target-side
15672 breakpoint condition evaluation.
15673 (process_point_options): New function.
15674 (process_serial_event): When inserting a breakpoint, check for
15675 a target-side condition that should be evaluated.
15677 * mem-break.c: Include regcache.h and ax.h.
15678 (point_cond_list_t): New data structure.
15679 (breakpoint) <cond_list>: New field.
15680 (find_gdb_breakpoint_at): Make non-static.
15681 (delete_gdb_breakpoint_at): Clear any target-side
15683 (clear_gdb_breakpoint_conditions): New function.
15684 (add_condition_to_breakpoint): Likewise.
15685 (add_breakpoint_condition): Likewise.
15686 (gdb_condition_true_at_breakpoint): Likewise.
15687 (gdb_breakpoint_here): Return result directly instead
15688 of going through a local variable.
15690 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15691 (clear_gdb_breakpoint_conditions): Likewise.
15692 (add_breakpoint_condition): Likewise.
15693 (gdb_condition_true_at_breakpoint): Likewise.
15695 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15696 (need_step_over_p): Take target-side breakpoint condition into
15699 2012-02-24 Luis Machado <lgustavo@codesourcery>
15701 * server.h: Include tracepoint.h.
15702 (agent_mem_read, agent_get_trace_state_variable_value,
15703 agent_set_trace_state_variable_value,
15704 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15705 get_set_tsv_func_addr): New prototypes.
15707 * ax.h: New include file.
15708 * ax.c: New source file.
15710 * tracepoint.c: Include ax.h.
15711 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15712 agent_expr, eval_result_type): Move to ax.h.
15713 (parse_agent_expr): Rename to ...
15714 (gdb_parse_agent_expr): ... this, make it non-static and move
15716 (unparse_agent_expr) Rename to ...
15717 (gdb_unparse_agent_expr): ... this, make it non-static and move
15719 (eval_agent_expr): Rename to ...
15720 (eval_tracepoint_agent_expr): ... this.
15721 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15722 forward declarations.
15723 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15724 (agent_get_trace_state_variable_value): New function.
15725 (agent_set_trace_state_variable_value): New function.
15726 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15727 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15728 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15729 (condition_true_at_tracepoint): Likewise.
15730 (parse_agent_expr): Rename to ...
15731 (gdb_parse_agent_expr): ... this and move to ax.c.
15732 (unparse_agent_expr): Rename to ...
15733 (gdb_unparse_agent_expr): ... this and move to ax.c.
15734 (gdb_agent_op_name): Move to ax.c.
15735 (eval_agent_expr): Rename to ...
15736 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15738 (eval_tracepoint_agent_expr): New function.
15739 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15741 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15743 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15744 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15745 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15746 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15747 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15748 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15749 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15750 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15751 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15752 (compile_bytecodes): Remove forward declaration.
15753 (is_goto_target): Move to ax.c.
15754 (compile_bytecodes): Move to ax.c and call
15755 agent_get_trace_state_variable_value (...) and
15756 agent_set_trace_state_variable_value (...).
15758 * Makefile.in: Update ax.c and IPA dependencies.
15760 2012-02-24 Pedro Alves <palves@redhat.com>
15762 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15763 (cmd_bigqtbuffer_circular): ... this. Only handle
15764 'QTBuffer:circular:'.
15765 (handle_tracepoint_general_set): Adjust.
15767 2012-02-16 Yao Qi <yao@codesourcery.com>
15769 * inferiors.c: Move code to ...
15770 * dll.c: .... here. New.
15771 * server.h: Declare clear_dlls.
15772 * Makefile.in (SFILES): Add dll.c.
15776 2012-02-11 Yao Qi <yao@codesourcery.com>
15778 * server.c: (handle_monitor_command): Add a new parameter
15780 (handle_query): Update caller.
15782 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15784 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15785 * configure, config.in: Regenerate.
15786 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15789 2012-02-02 Pedro Alves <palves@redhat.com>
15791 Try SIGKILL first, then PTRACE_KILL.
15792 * linux-low.c (linux_kill_one_lwp): New.
15793 (linux_kill_one_lwp): Rename to ...
15794 (kill_one_lwp_callback): ... this. Use the new
15795 linux_kill_one_lwp.
15797 2012-02-02 Pedro Alves <palves@redhat.com>
15799 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15802 2012-01-27 Pedro Alves <palves@redhat.com>
15804 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15805 (elf_64_file_p): Make static.
15806 (linux_pid_exe_is_elf_64_file): New.
15807 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15808 Delete declarations.
15809 (linux_pid_exe_is_elf_64_file): Declare.
15810 * linux-x86-low.c (x86_arch_setup): Use
15811 linux_pid_exe_is_elf_64_file.
15813 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15815 * linux-low.c (linux_wait_for_event_1): Rename to ...
15816 (linux_wait_for_event): ... here and merge it with former
15817 linux_wait_for_event - new variable wait_ptid, use it.
15818 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15820 2012-01-23 Pedro Alves <palves@redhat.com>
15822 * server.c (main): Avoid yet another case of infinite loop while
15823 detaching/killing after a longjmp.
15825 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15828 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15830 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15832 * hostio.c (handle_readlink): New function.
15833 (handle_vFile): Call it to handle "vFile:readlink" packets.
15835 2012-01-20 Pedro Alves <palves@redhat.com>
15836 Ulrich Weigand <ulrich.weigand@linaro.org>
15838 * server.c (handle_v_requests): Only support vAttach and vRun to
15839 start multiple processes when in extended protocol mode.
15841 2012-01-17 Pedro Alves <palves@redhat.com>
15843 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15844 memalign plus mprotect to allocate the scratch buffer.
15846 2012-01-13 Pedro Alves <palves@redhat.com>
15848 * server.c (attach_inferior): Clear `cont_thread'.
15850 2012-01-13 Pedro Alves <palves@redhat.com>
15852 * server.c (main): Avoid infinite loop while detaching/killing
15855 2012-01-09 Doug Evans <dje@google.com>
15857 * server.c (start_inferior): Set last_ptid in --wrapper case.
15859 2012-01-06 Yao Qi <yao@codesourcery.com>
15861 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15863 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15865 2012-01-04 Yao Qi <yao@codesourcery.com>
15867 * tracepoint.c (cmd_qtdp): Print debug message
15868 for static tracepoint.
15870 2012-01-04 Yao Qi <yao@codesourcery.com>
15872 * tracepoint.c (trace_vdebug): Differentiate debug message
15873 between gdbserver and IPA.
15875 2012-01-03 Yao Qi <yao@codesourcery.com>
15877 * tracepoint.c (tracepoint_was_hit): Don't collect for
15880 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15882 * terminal.h: Reformat copyright header.
15884 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15886 * server.c (gdbserver_version): Update copyright year.
15887 * gdbreplay.c (gdbreplay_version): Likewise.
15889 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15891 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15894 2011-12-18 Hui Zhu <teawater@gmail.com>
15895 * linux-low.c (linux_create_inferior): Save return value to ret.
15897 2011-12-18 Hui Zhu <teawater@gmail.com>
15899 * linux-low.c (linux_create_inferior): Save return value to ret.
15901 2011-12-16 Doug Evans <dje@google.com>
15903 * linux-low.c (linux_create_inferior): If stdio connection,
15904 redirect stdin from /dev/null, stdout to stderr.
15905 * remote-utils.c (remote_is_stdio): New static global.
15906 (remote_connection_is_stdio): New function.
15907 (remote_prepare): Handle stdio connection.
15908 (remote_open): Ditto.
15909 (remote_close): Don't close stdin for stdio connections.
15910 (read_prim,write_prim): New functions. Replace all calls to
15911 read/write to these.
15912 * server.c (main): Watch for "-" argument. Move call to
15913 remote_prepare before start_inferior.
15914 * server.h (STDIO_CONNECTION_NAME): New macro.
15915 (remote_connection_is_stdio): Declare.
15917 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15918 in debugging output.
15920 2011-12-15 Yao Qi <yao@codesourcery.com>
15922 * tracepoint.c: Include sys/syscall.h.
15923 (gdb_ust_thread): Remove preprocessor conditional.
15925 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15927 * linux-low.c (linux_detach_one_lwp): Call
15928 the_low_target.prepare_to_resume before detaching.
15930 2011-12-14 Yao Qi <yao@codesourcery.com>
15932 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15935 2011-12-14 Yao Qi <yao@codesourcery.com>
15937 * i386-low.c (i386_low_stopped_data_address): Initialize local
15938 variable `control'.
15940 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15944 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15945 DR_CONTROL unless necessary. Extend comments.
15946 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15947 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15949 2011-12-13 Yao Qi <yao@codesourcery.com>
15951 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15953 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15955 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15957 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15958 Print new debug message for such case.
15960 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15962 Fix overlapping memcpy.
15963 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15964 the read_inferior_memory transfer.
15965 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15966 write_inferior_memory transfer.
15967 (set_fast_tracepoint_jump): New variable buf. Use it for the
15968 read_inferior_memory and write_inferior_memory transfers.
15969 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15970 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15971 Use it for the write_inferior_memory transfer.
15972 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15975 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15977 * linux-low.c (fetch_register, store_register): Make code
15978 consistent, fix formatting.
15980 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15982 * linux-low.c (usr_store_inferior_registers): Factor out code
15983 to handle individual registers into...
15984 (store_register): ... this new function.
15986 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15988 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15989 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15990 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15991 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15992 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15993 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15994 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15995 (srv_xmlfiles): Add new XML files.
15997 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15999 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16000 (init_registers_s390_linux32v1): Add prototype.
16001 (init_registers_s390_linux32v2): Likewise.
16002 (init_registers_s390_linux64v1): Likewise.
16003 (init_registers_s390_linux64v2): Likewise.
16004 (init_registers_s390x_linux64v1): Likewise.
16005 (init_registers_s390x_linux64v2): Likewise.
16006 (s390_num_regs): Increment to 52.
16007 (s390_regmap): Add orig_r2 register.
16008 (s390_num_regs_3264): Increment to 68.
16009 (s390_regmap_3264): Add orig_r2 register.
16010 (s390_collect_ptrace_register): Handle orig_r2 register.
16011 (s390_supply_ptrace_register): Likewise.
16012 (s390_fill_last_break): New function.
16013 (s390_store_last_break): Likewise.
16014 (s390_fill_system_call): New function.
16015 (s390_store_system_call): Likewise.
16016 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16018 (s390_check_regset): New function.
16019 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16020 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16021 Update target_regsets for available register sets.
16023 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16024 Jan Kratochvil <jan.kratochvil@redhat.com>
16026 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16027 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16029 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16030 * linux-low.h (struct process_info_private): New member r_debug.
16031 * server.c (handle_qxfer_libraries): Call
16032 the_target->qxfer_libraries_svr4.
16033 (handle_qxfer_libraries_svr4): New function.
16034 (qxfer_packets): New entry "libraries-svr4".
16035 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16036 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16037 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16038 PACKET_qXfer_libraries_svr4.
16040 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16042 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16043 PSW address/mask between 8-byte and 16-byte formats.
16044 (s390_supply_ptrace_register): Likewise.
16045 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16046 basic addressing mode bit.
16048 2011-11-24 Stan Shebs <stan@codesourcery.com>
16050 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16052 2011-11-17 Stan Shebs <stan@codesourcery.com>
16054 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16055 (tracing_start_time): New global.
16056 (tracing_stop_time): New global.
16057 (tracing_user_name): New global.
16058 (tracing_notes): New global.
16059 (tracing_stop_note): New global.
16060 (cmd_qtstart): Set traceframe_usage, start_time.
16061 (stop_tracing): Set stop_time.
16062 (cmd_qtstatus): Report additional status.
16063 (cmd_qtp): New function.
16064 (handle_tracepoint_query): Call it.
16065 (cmd_qtnotes): New function.
16066 (handle_tracepoint_general_set): Call it.
16067 (get_timestamp): Rename from tsv_get_timestamp.
16069 2011-11-14 Stan Shebs <stan@codesourcery.com>
16070 Kwok Cheung Yeung <kcy@codesourcery.com>
16072 * linux-x86-low.c (small_jump_insn): New.
16073 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16074 trampoline and error message, build a trampoline and issue a small
16075 jump instruction to it.
16076 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16077 trampoline and error message.
16078 (x86_get_min_fast_tracepoint_insn_len): New.
16079 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16080 * linux-low.h (struct linux_target_ops): Add arguments to
16081 install_fast_tracepoint_jump_pad operation, add new operation.
16082 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16084 (linux_get_min_fast_tracepoint_insn_len): New function.
16085 (linux_target_op): Add new operation.
16086 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16087 (gdb_trampoline_buffer_end): Ditto.
16088 (gdb_trampoline_buffer_error): Ditto.
16089 (struct ipa_sym_addresses): Add fields for new IPA variables.
16090 (symbol_list): Add entries for new IPA variables.
16091 (struct tracepoint): Add fields to hold the address range of the
16092 trampoline used by the tracepoint.
16093 (trampoline_buffer_head): New static variable.
16094 (trampoline_buffer_tail): Ditto.
16095 (claim_trampoline_space): New function.
16096 (have_fast_tracepoint_trampoline_buffer): New function.
16097 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16099 (install_fast_tracepoint): Ditto, also add error buffer argument.
16100 (cmd_qtminftpilen): New function.
16101 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16102 (fast_tracepoint_from_trampoline_address): New function.
16103 (fast_tracepoint_collecting): Handle trampoline as part of jump
16105 (set_trampoline_buffer_space): New function.
16106 (initialize_tracepoint): Initialize new IPA variables.
16107 * target.h (struct target_ops): Add arguments to
16108 install_fast_tracepoint_jump_pad operation, add new
16109 get_min_fast_tracepoint_insn_len operation.
16110 (target_get_min_fast_tracepoint_insn_len): New.
16111 (install_fast_tracepoint_jump_pad): Add arguments.
16112 * server.h (IPA_BUFSIZ): Define.
16113 * linux-i386-ipa.c: Include extra header files.
16114 (initialize_fast_tracepoint_trampoline_buffer): New function.
16115 (initialize_low_tracepoint): Call it.
16116 * server.h (set_trampoline_buffer_space): Declare.
16117 (claim_trampoline_space): Ditto.
16118 (have_fast_tracepoint_trampoline_buffer): Ditto.
16120 2011-11-14 Yao Qi <yao@codesourcery.com>
16122 * server.c (handle_query): Handle InstallInTrace for qSupported.
16123 * tracepoint.c (add_tracepoint): Sort list.
16124 (install_tracepoint, download_tracepoint): New.
16125 (cmd_qtdp): Call them to install and download tracepoints.
16126 (sort_tracepoints): Removed.
16127 (cmd_qtstart): Update.
16129 2011-11-14 Yao Qi <yao@codesourcery.com>
16131 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16132 * mem-break.h: Declare.
16133 * tracepoint.c (cmd_qtstart): Move some code to ...
16134 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16136 (download_tracepoints): Move some code to ...
16137 (download_tracepoint_1): ... here. New.
16139 2011-11-08 Yao Qi <yao@codesourcery.com>
16141 * remote-utils.c (relocate_instruction): A comment fix.
16143 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16145 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16146 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16147 dr_status_mirror and dr_control_mirror from debug_reg_state.
16148 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16149 (i386_initial_stuff): Remove use of deleted globals.
16150 (i386_get_thread_context, i386_set_thread_context,
16151 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16152 from debug_reg_state.
16154 2011-11-05 Yao Qi <yao@codesourcery.com>
16156 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16157 address as TPOINT's.
16159 2011-11-02 Stan Shebs <stan@codesourcery.com>
16161 * tracepoint.c (agent_mem_read_string): New function.
16162 (eval_agent_expr): Call it for tracenz.
16163 * server.c (handle_query): Report support for tracenz.
16165 2011-11-02 Yao Qi <yao@codesourcery.com>
16167 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16169 2011-11-02 Yao Qi <yao@codesourcery.com>
16171 * target.h: Fix a typo in comment.
16173 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16175 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16176 clobber the breakpoints' shadows with fast tracepoint jumps.
16177 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16178 * target.c (write_inferior_memory): Also pass MYADDR down to
16181 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16183 * configure.ac: Check support for personality routine.
16184 * configure: Regenerate.
16185 * config.in: Likewise.
16186 * linux-low.c: Include <sys/personality.h>.
16187 Define ADDR_NO_RANDOMIZE if necessary.
16188 (linux_create_inferior): Disable address space randomization when
16189 forking inferior, if requested.
16190 (linux_supports_disable_randomization): New function.
16191 (linux_target_ops): Install it.
16192 * server.h (disable_randomization): Declare.
16193 * server.c (disable_randomization): New global variable.
16194 (handle_general_set): Handle QDisableRandomization.
16195 (handle_query): Likewise for qSupported.
16196 (main): Support --disable-randomization and --no-disable-randomization
16197 command line arguments.
16198 * target.h (struct target_ops): Add supports_disable_randomization.
16199 (target_supports_disable_randomization): New macro.
16201 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16203 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16205 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16206 [!PT_GETDSBT] (target_loadmap): New definition.
16207 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16208 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16209 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16210 and PT_GETDSBT to LINUX_LOADMAP.
16211 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16212 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16214 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16216 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16217 (arm_linux_hwbp_cap): New static variable.
16218 (arm_linux_get_hwbp_cap): Replace by ...
16219 (arm_linux_init_hwbp_cap): ... this new function.
16220 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16221 (arm_linux_get_hw_watchpoint_count): Likewise.
16222 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16223 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16224 (arm_prepare_to_resume): Use perror_with_name instead of error.
16226 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16228 * linux-arm-low.c: Include <signal.h>.
16229 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16230 (struct arm_linux_hwbp_cap): New data type.
16231 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16232 (struct arm_linux_hw_breakpoint): New data type.
16233 (MAX_BPTS, MAX_WPTS): Define.
16234 (struct arch_process_info, struct arch_lwp_info): New data types.
16235 (arm_linux_get_hwbp_cap): New function.
16236 (arm_linux_get_hw_breakpoint_count): Likewise.
16237 (arm_linux_get_hw_watchpoint_count): Likewise.
16238 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16239 (arm_hwbp_control_initialize): Likewise.
16240 (arm_hwbp_control_is_enabled): Likewise.
16241 (arm_hwbp_control_is_initialized): Likewise.
16242 (arm_hwbp_control_disable): Likewise.
16243 (arm_linux_hw_breakpoint_equal): Likewise.
16244 (arm_linux_hw_point_initialize): Likewise.
16245 (struct update_registers_data): New data structure.
16246 (update_registers_callback: New function.
16247 (arm_insert_point): Likewise.
16248 (arm_remove_point): Likewise.
16249 (arm_stopped_by_watchpoint): Likewise.
16250 (arm_stopped_data_address): Likewise.
16251 (arm_new_process): Likewise.
16252 (arm_new_thread): Likewise.
16253 (arm_prepare_to_resume): Likewise.
16254 (the_low_target): Register arm_insert_point, arm_remove_point,
16255 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16256 arm_new_thread, and arm_prepare_to_resume.
16258 2011-09-15 Stan Shebs <stan@codesourcery.com>
16260 * server.h (struct emit_ops): Add compare-goto fields.
16261 * tracepoint.c (gdb_agent_op_sizes): New table.
16262 (emit_eq_goto): New function.
16263 (emit_ne_goto): New function.
16264 (emit_lt_goto): New function.
16265 (emit_le_goto): New function.
16266 (emit_gt_goto): New function.
16267 (emit_ge_goto): New function.
16268 (is_goto_target): New function.
16269 (compile_bytecodes): Recognize special cases of compare-goto
16270 combinations and call specialized emitters for them.
16271 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16272 (amd64_emit_ne_goto): New function.
16273 (amd64_emit_lt_goto): New function.
16274 (amd64_emit_le_goto): New function.
16275 (amd64_emit_gt_goto): New function.
16276 (amd64_emit_ge_goto): New function.
16277 (amd64_emit_ops): Add the new functions.
16278 (i386_emit_eq_goto): New function.
16279 (i386_emit_ne_goto): New function.
16280 (i386_emit_lt_goto): New function.
16281 (i386_emit_le_goto): New function.
16282 (i386_emit_gt_goto): New function.
16283 (i386_emit_ge_goto): New function.
16284 (i386_emit_ops): Add the new functions.
16286 2011-09-08 Stan Shebs <stan@codesourcery.com>
16288 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16289 (i386_emit_epilogue): Restore %ebx.
16291 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16293 * server.c (step_thread): Remove definition.
16294 (process_serial_event): Don't handle Hs.
16295 * server.h (step_thread): Remove declaration.
16296 * target.c (set_desired_inferior): Remove use of step_thread.
16298 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16300 * linux-low.c: Include linux-procfs.h.
16301 (linux_attach_lwp_1): Update comments.
16302 (linux_attach): Scan for existing threads when attaching to a
16303 process that is the tgid.
16304 * Makefile.in: Update dependencies.
16306 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16308 * configure.srv: Add linux-procfs.o dependencies.
16310 2011-08-14 Yao Qi <yao@codesourcery.com>
16312 * target.h (struct target_ops): Fix indent.
16313 * win32-low.c (win32_target_ops): Fix comment.
16315 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16316 Yao Qi <yao@codesourcery.com>
16318 * Makefile.in (clean): Remove tic6x-*.c files.
16319 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16320 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16321 (tic6x-c64xp-linux.c): Likewise.
16322 * configure.srv: Add support for tic6x-*-uclinux.
16323 * linux-tic6x-low.c: New.
16324 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16326 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16327 Yao Qi <yao@codesourcery.com>
16329 * target.h (struct target_ops): Add read_loadmap.
16330 * linux-low.c (struct target_loadseg): New type.
16331 (struct target_loadmap): New type.
16332 (linux_read_loadmap): New function.
16333 (linux_target_ops): Add linux_read_loadmap.
16334 * server.c (handle_query): Support qXfer:fdpic:read packet.
16335 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16338 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16340 * win32-low.c: Include <stdint.h>.
16342 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16344 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16345 to the inferior here.
16346 (i386_remove_aligned_watchpoint): Ditto.
16347 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16348 fit part of the watchpoint in the debug registers.
16349 (i386_update_inferior_debug_regs): New.
16350 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16351 registers, and only update the inferior on success.
16352 (i386_low_remove_watchpoint): Ditto.
16354 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16356 * linux-low.c (compare_ints, unique, list_threads, show_process,
16357 linux_core_of_thread): Delete.
16358 (linux_target_ops): Change linux_core_of_thread to
16359 linux_common_core_of_thread.
16360 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16361 * utils.c (malloc_failure): Change type of argument.
16362 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16363 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16364 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16365 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16366 (IPA_OBJS): Add common-utils-ipa.o.
16367 (ptid_h, linux_osdata_h): New macros.
16368 (server_h): Add common/common-utils.h, common/xml-utils.h,
16369 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16371 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16372 ptid.o, buffer.o): New rules.
16373 (linux-low.o): Add common/linux-osdata.h as a dependency.
16374 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16375 * configure.ac: Add AC_HEADER_DIRENT check.
16376 * config.in: Regenerate.
16377 * configure: Regenerate.
16378 * remote-utils.c (xml_escape_text): Delete.
16379 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16380 buffer_xml_printf): Move to common/buffer.c.
16381 * server.c (main): Remove call to initialize_inferiors.
16382 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16383 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16384 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16385 internal_error, gdb_assert, gdb_assert_fail): Delete.
16386 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16387 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16389 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16390 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16391 initialize_inferiors): Delete.
16393 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16395 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16398 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16400 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16402 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16404 2011-05-26 Yao Qi <yao@codesourcery.com>
16406 * Makefile.in (thread-db.o): Track dependence to
16407 common/gdb_thread_db.h.
16408 * thread-db.c: include gdb_thread_db.h from right place.
16410 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16412 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16413 __FILE__ and __LINE__ to internal_error.
16415 2011-05-13 Doug Evans <dje@google.com>
16417 * thread-db.c (try_thread_db_load_from_sdir): New function.
16418 (try_thread_db_load_from_dir): New function.
16419 (thread_db_load_search): Handle $sdir, ignore $pdir.
16420 Remove trying of system directories if search of
16421 libthread-db-search-path fails, that is now done via $sdir.
16423 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16425 * server.c (handle_query): Add EnableDisableTracepoints to the list
16426 of supported features.
16427 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16429 (cmd_qtenable_disable): New.
16430 (cmd_qtstart): Install tracepoints even if disabled.
16431 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16432 receiving a QTEnable or QTDisable packet.
16433 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16434 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16436 (gdb_probe): Skip data collection if static tracepoint is disabled.
16438 2011-05-10 Doug Evans <dje@google.com>
16440 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16442 2011-05-04 Doug Evans <dje@google.com>
16444 * linux-low.c (linux_join): Skip process lookup.
16445 * spu-low.c (spu_join): Ditto.
16446 * server.c (join_inferiors_callback): Delete.
16447 (process_serial_event): For 'D' packet (detach) call join_inferior
16450 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16452 * README: Don't mention xscale*-*-linux*.
16453 * configure.srv (xscale*-*-linux*): Don't handle target.
16455 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16457 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16459 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16460 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16461 (i386_emit_void_call_2): Likewise.
16463 2011-04-26 Yao Qi <yao@codesourcery.com>
16465 * linux-low.c: Move common macros to linux-ptrace.h.
16466 Include linux-ptrace.h.
16467 * Makefile.in (linux_ptrace_h): New.
16468 (linux-low.o): Depends on linux-ptrace.h.
16470 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16472 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16473 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16474 (remote_prepare): New function with most of the TCP code from ...
16475 (remote_open): ... here. Detect PORT here unconditionally. Move also
16476 setting transport_is_reliable.
16477 * server.c (run_once): New variable.
16478 (gdbserver_usage): Document it.
16479 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16480 the first run if RUN_ONCE.
16481 * server.h (run_once, remote_prepare): New declarations.
16483 2011-04-19 Tom Tromey <tromey@redhat.com>
16485 * win32-low.c (handle_load_dll): Remove duplicate "the".
16487 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16489 Remove support for old Cygwin 1.5 versions.
16490 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16491 function to avoid warning.
16492 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16495 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16497 * gdbserver/server.h (Macro _): Define it if not available.
16499 2011-03-14 Michael Snyder <msnyder@vmware.com>
16501 * hostio.c (handle_close): Remove unnecessary null test.
16503 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16505 * Makefile.in (maintainer-clean realclean distclean): Remove
16506 "make ... subdir_do" command.
16508 2011-03-10 Michael Snyder <msnyder@vmware.com>
16510 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16512 * server.c (handle_v_run): Free alloced buffer on early return.
16514 2011-03-09 Yao Qi <yao@codesourcery.com>
16517 2011-03-04 Yao Qi <yao@codesourcery.com>
16519 * Makefile.in: Remove GNU make feature --directory.
16521 2011-03-05 Yao Qi <yao@codesourcery.com>
16523 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16524 (subdir_do): New make target. Copied from gdb/Makefile.
16525 (maintainer-clean, realclean, distclean, clean): Call corresponding
16526 make targets in common/Makefile.
16528 2011-02-11 Yao Qi <yao@codesourcery.com>
16530 * configure.ac: Call AC_PROG_RANLIB.
16531 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16532 * configure: Regenerate.
16534 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16536 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16538 2011-03-06 Yao Qi <yao@codesourcery.com>
16540 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16542 2011-03-05 Yao Qi <yao@codesourcery.com>
16544 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16545 (subdir_do): New make target. Copied from gdb/Makefile.
16546 (maintainer-clean, realclean, distclean, clean): Call corresponding
16547 make targets in common/Makefile.
16549 2011-03-04 Yao Qi <yao@codesourcery.com>
16551 * Makefile.in: Remove GNU make feature --directory.
16553 2011-03-04 Michael Snyder <msnyder@vmware.com>
16555 * server.c (queue_stop_reply): Call xmalloc not malloc.
16557 2011-03-02 Michael Snyder <msnyder@vmware.com>
16559 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16561 2011-02-28 Michael Snyder <msnyder@vmware.com>
16563 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16564 (cmd_qtframe): Ditto.
16565 (cmd_qtbuffer): Ditto.
16566 (cmd_bigqtbuffer): Ditto.
16568 * utils.c (decimal2str): Initialize 'width' to nine, then
16569 don't mess with it.
16571 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16573 * hostio.c (require_data): Free *data, not data.
16575 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16577 * hostio.c (require_data): Use free, not xfree.
16579 2011-02-27 Michael Snyder <msnyder@vmware.com>
16581 * server.c (handle_query): Discard unused value.
16583 * hostio.c (require_data): Free malloc memory before returning
16586 2011-02-26 Michael Snyder <msnyder@vmware.com>
16588 * linux-low.c (list_threads): Call closedir for dirent.
16590 2011-02-27 Michael Snyder <msnyder@vmware.com>
16592 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16593 a case statement falls through.
16595 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16597 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16600 2011-02-26 Michael Snyder <msnyder@vmware.com>
16602 * utils.c (decimal2str): Eliminate dead code and dead param.
16603 (pulongest): Drop dead param from call to decimal2str.
16606 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16608 Revert the following patch (not approved yet):
16609 2011-02-21 Hui Zhu <teawater@gmail.com>
16610 * tracepoint.c (tp_printf): New function.
16611 (eval_agent_expr): Handle gdb_agent_op_printf.
16613 2011-02-21 Hui Zhu <teawater@gmail.com>
16615 * tracepoint.c (tp_printf): New function.
16616 (eval_agent_expr): Handle gdb_agent_op_printf.
16618 2011-02-18 Tom Tromey <tromey@redhat.com>
16620 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16621 (tracepoint.o): Likewise.
16622 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16623 (gdb_agent_op_names): Likewise.
16625 2011-02-18 Tom Tromey <tromey@redhat.com>
16627 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16628 gdb_agent_op_rot>: New constants.
16629 (gdb_agent_op_names): Add pick and roll.
16630 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16633 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16635 * aclocal.m4: Regenerated with aclocal-1.11.1.
16637 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16639 * server.c (handle_qxfer_traceframe_info): New.
16640 (qxfer_packets): Register "traceframe-info".
16641 (handle_query): Report support for qXfer:traceframe-info:read+.
16642 * tracepoint.c (match_blocktype): New.
16643 (traceframe_find_block_type): Rename to ...
16644 (traceframe_walk_blocks): ... this. Add callback filter argument,
16646 (traceframe_find_block_type): New, reimplemented on top of
16647 traceframe_walk_blocks.
16648 (build_traceframe_info_xml): New.
16649 (traceframe_read_info): New.
16650 * server.h (traceframe_read_info): Declare.
16652 2011-02-11 Yao Qi <yao@codesourcery.com>
16654 * configure.ac: Call AC_PROG_RANLIB.
16655 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16656 * configure: Regenerate.
16658 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16660 * server.c (gdb_read_memory): Change return semantics to allow
16662 (handle_search_memory_1): Adjust.
16663 (process_serial_event) <'m' packet>: Handle partial transfers.
16664 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16666 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16668 * regcache.c (init_register_cache): Initialize
16669 regcache->register_status.
16670 (free_register_cache): Release regcache->register_status.
16671 (regcache_cpy): Copy register_status.
16672 (registers_to_string): Print 'x's for unavailable registers.
16673 (supply_register): Mark the register's status valid or
16674 unavailable, depending on whether a buffer was passed in or not.
16675 (supply_register_zeroed): New.
16676 (supply_regblock): Mark the registers' status valid or
16677 unavailable, depending on whether a buffer was passed in or not.
16678 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16679 (struct regcache): New `register_status' field.
16680 (supply_register_zeroed): Declare.
16681 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16682 supply_register_zeroed, rather than passing a NULL buffer to
16684 * tracepoint.c (fetch_traceframe_registers): Update comment.
16686 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16688 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16691 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16693 * server.h (decode_xfer_write): Change prototype.
16694 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16695 and don't extract the annex here.
16696 * server.c (decode_xfer_read): Remove `annex' parameter,
16697 and don't extract the annex here.
16698 (decode_xfer): New.
16699 (struct qxfer): New.
16700 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16701 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16702 (handle_qxfer_statictrace): New functions, abstracted out from
16703 handle_query, and made to use the struct qxfer interface.
16704 (handle_threads_qxfer_proper): Rename to ...
16705 (handle_qxfer_threads_proper): ... this.
16706 (handle_threads_qxfer): Rename to ...
16707 (handle_qxfer_threads): ... this. Adjust.
16708 (qxfer_packets): New array.
16709 (handle_qxfer): New function.
16710 (handle_query): Use handle_qxfer.
16712 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16714 * gdbreplay.c: Shorten lines of >= 80 columns.
16715 * linux-low.c: Ditto.
16716 * linux-ppc-low.c: Ditto.
16717 * linux-s390-low.c: Ditto.
16718 * linux-sparc-low.c: Ditto.
16719 * linux-x86-low.c: Ditto.
16720 * linux-xtensa-low.c: Ditto.
16721 * mem-break.c: Ditto.
16722 * nto-low.c: Ditto.
16723 * regcache.h: Ditto.
16724 * remote-utils.c: Ditto.
16727 * thread-db.c: Ditto.
16728 * tracepoint.c: Ditto.
16730 * win32-low.h: Ditto.
16732 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16734 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16737 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16739 * server.c (gdbserver_version): Update copyright year in version
16741 * gdbreplay.c (gdbreplay_version): Ditto.
16743 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16745 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16746 * linux-bfin-low.c: New file.
16747 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16748 PT_DATA_ADDR for BFIN targets.
16749 * Makefile.in (SFILES): Add linux-bfin-low.c.
16750 (clean): Remove reg-bfin.c.
16751 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16752 * README: Mention supported Blackfin targets.
16754 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16756 * .gitignore: New file.
16758 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16760 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16762 2010-10-22 Jie Zhang <jie@codesourcery.com>
16764 * Makefile.in: Add FLAGS_TO_PASS variable.
16765 (install): Remove dependency of install-only and recursively
16766 invoke make for install-only.
16768 2010-10-04 Doug Evans <dje@google.com>
16770 * Makefile.in (uninstall): Use $(DESTDIR).
16772 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16776 * linux-x86-low.c (compat_siginfo_from_siginfo)
16777 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16778 si_code is < 0. Check for si_code == SI_TIMER before checking for
16781 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16783 * lynx-i386-low.c: New file.
16784 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16786 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16788 * lynx-low.c (ptrace_request_to_str): Remove handling for
16789 request values that have been removed in LynxOS 5.x.
16791 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16793 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16796 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16798 * configure.ac: Add --enable-inprocess-agent option.
16799 * configure: Rebuilt.
16801 2010-09-06 Yao Qi <yao@codesourcery.com>
16803 * linux-low.c (linux_kill): Remove unused variable.
16804 (linux_stabilize_threads): Likewise.
16805 * server.c (start_inferior): Likewise.
16806 (queue_stop_reply_callback): Likewise.
16807 * tracepoint.c (do_action_at_tracepoint): Likewise.
16809 2010-09-06 Yao Qi <yao@codesourcery.com>
16811 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16814 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16816 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16818 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16820 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16823 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16825 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16826 gdbserver/lynx-ppc-low.c: New files.
16827 * Makefile.in (lynx_low_h): New variable.
16828 (lynx-low.o, lynx-ppc-low.o): New rules.
16829 * configure.ac: On LynxOS, link with -lnetinet.
16830 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16831 * configure: regenerate.
16833 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16835 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16836 * configure.ac: Add check for vasprintf and vsnprintf.
16837 * configure, config.in: Regenerate.
16838 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16840 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16842 * gdbreplay.c: Move include of alloca.h up, next to include of
16844 * server.h: Add include of malloc.h.
16845 * mem-break.c: Remove include of malloc.h.
16846 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16848 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16850 * Makefile.in (memmem.o): Build with -Wno-error.
16852 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16854 * utils.c (xsnprintf): Make non-static.
16855 * server.h: Add xsnprintf declaration.
16856 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16857 replace calls to snprintf by calls to xsnprintf throughout.
16859 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16861 * configure.ac: Add configure check for alloca.
16862 * configure, config.in: Regenerate.
16863 * server.h: Include alloca.h if it exists.
16864 * gdbreplay.c: Include alloca.h if it exists.
16866 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16868 * linux-low.c (__SIGRTMIN): Define if not already defined.
16869 (linux_create_inferior): Check for __ANDROID__ rather than
16871 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16872 are already deferred.
16873 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16874 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16875 stopped and already has a pending signal to report.
16876 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16877 a pending signal to report or is moving out of a jump pad.
16878 (linux_init_signals): Check for __ANDROID__ rather than
16881 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16883 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16884 debug_threads check. Avoid a linear search when not doing debug
16887 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16889 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16890 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16891 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16892 (process_event): Change local fd's type to gdb_fildes_t.
16893 (create_file_handler): Adjust prototype.
16894 (delete_file_handler): Adjust prototype.
16895 (handle_file_event): Adjust prototype. Use pfildes.
16896 (create_file_event): Adjsut prototype.
16897 * remote-utils.c (remote_desc, listen_desc): Change type to
16899 * server.h: New gdb_fildes_t typedef.
16900 [USE_WIN32API]: Include winsock2.h.
16901 (delete_file_handler, add_file_handler): Adjust prototypes.
16902 (pfildes): Declare.
16903 * utils.c (pfildes): New.
16905 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16907 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16908 * configure: Regenerate.
16910 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16912 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16913 (linux_done_accessing_memory): ... this.
16914 (linux_target_ops): Adjust.
16915 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16916 * nto-low.c (nto_target_ops): Adjust comment.
16917 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16918 * spu-low.c (spu_target_ops): Adjust comment.
16919 * target.h (target_ops): Rename unprepare_to_access_memory field
16920 to done_accessing_memory.
16921 (unprepare_to_access_memory): Rename to ...
16922 (done_accessing_memory): ... this.
16924 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16926 * linux-low.c (linux_prepare_to_access_memory): New.
16927 (linux_unprepare_to_access_memory): New.
16928 (linux_target_ops): Install them.
16929 * server.c (read_memory): Rename to ...
16930 (gdb_read_memory): ... this. Use
16931 prepare_to_access_memory/prepare_to_access_memory.
16932 (write_memory): Rename to ...
16933 (gdb_write_memory): ... this. Use
16934 prepare_to_access_memory/prepare_to_access_memory.
16935 (handle_search_memory_1): Adjust.
16936 (process_serial_event): Adjust.
16937 * target.h (struct target_ops): New fields
16938 prepare_to_access_memory and unprepare_to_access_memory.
16939 (prepare_to_access_memory, unprepare_to_access_memory): New.
16940 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16941 prepare_to_access_memory/prepare_to_access_memory.
16942 * nto-low.c (nto_target_ops): Adjust.
16943 * spu-low.c (spu_target_ops): Adjust.
16944 * win32-low.c (win32_target_ops): Adjust.
16946 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16948 * Makefile.in (WARN_CFLAGS): Get it from configure.
16949 (WERROR_CFLAGS): New.
16950 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16951 * configure.ac: Introduce --enable-werror, which adds -Werror to
16952 the compiler command line. Enabled by default. Disable with
16953 --disable-werror. Add -Wdeclaration-after-statement
16954 Wpointer-arith and -Wformat-nonliteral to warning flags.
16955 * configure: Regenerate.
16957 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16959 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16961 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16963 * gdbreplay.c (remote_error): New.
16965 (expect): Use gdbchar. Check for error reading from GDB.
16966 Clarify sync error output.
16967 (play): Check for errors writing to GDB.
16968 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16969 * remote-utils.c (getpkt): Check for errors writing to the remote
16972 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16974 * linux-low.c (linux_wait_1): Move non-debugging code out of
16975 `debug_threads' control.
16977 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16979 * linux-low.c (linux_wait_1): Don't set last_status here.
16980 * server.c (push_event, queue_stop_reply_callback): Assert we're
16981 not pushing a TARGET_WAITKIND_IGNORE event.
16982 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16983 (myresume, handle_target_event): Set the thread's last_resume_kind
16984 and last_status from the target returned status.
16986 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16990 * linux-x86-low.c (update_debug_registers_callback): New.
16991 (i386_dr_low_set_addr): Use it.
16992 (i386_dr_low_get_addr): New.
16993 (i386_dr_low_set_control): Use update_debug_registers_callback.
16994 (i386_dr_low_get_control): New.
16995 (i386_dr_low_get_status): Adjust.
16996 * linux-low.c (linux_stop_lwp): New.
16997 * linux-low.h (linux_stop_lwp): Declare.
16999 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17000 argument instead of a i386_debug_reg_state.
17001 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17002 a i386_debug_reg_state.
17003 (i386_insert_aligned_watchpoint): Adjust.
17004 (i386_remove_aligned_watchpoint): Adjust.
17005 (i386_low_stopped_data_address): Read the debug registers from the
17006 inferior instead of from the mirrors.
17007 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17008 (i386_dr_low_get_addr): Declare.
17009 (i386_dr_low_get_control): Declare.
17010 (i386_dr_low_get_status): Change prototype.
17012 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17013 (i386_dr_low_get_addr): New.
17014 (i386_dr_low_get_control): New.
17015 (i386_dr_low_get_status): Adjust prototype. Return
17017 (i386_initial_stuff): Clear dr_status_mirror and
17019 (i386_get_thread_context): Adjust.
17020 (i386_set_thread_context): Adjust.
17021 (i386_thread_added): Adjust.
17023 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17025 * linux-low.h (linux_thread_area): Delete declaration.
17027 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17029 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17030 after its termination.
17032 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17034 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17035 (gdb_wants_all_stopped): Delete.
17036 (linux_wait_1): Don't call them.
17037 * server.c (handle_v_cont): Tag all threads as want-stopped.
17038 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17039 stopped as "client-wants-stopped".
17041 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17043 * Makefile.in (signals_h): New.
17044 (server_h): Depend on it.
17045 (server.o): Don't depend on $(signals_def).
17046 (signals.o): Depend on $(signals_def).
17048 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17050 * Makefile.in (signals_def): New.
17051 (server_h): Append include/gdb/signals.h and signals_def.
17052 (server.o): Append signals_def.
17054 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17056 * server.c (handle_target_event): Use target_signal_to_host for
17057 resume_info.sig initialization.
17058 * target.h (struct thread_resume) <sig>: New comment.
17060 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17062 * server.c (handle_query): strcpy() the returned string from paddress()
17063 instead of sprintf().
17064 * utils.c (paddress): Return phex_nz().
17066 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17068 * server.c (handle_v_cont): Call mourn_inferior if process
17070 (myresume): Likewise.
17072 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17074 Static tracepoints, and integration with UST.
17076 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17077 * mem-break.c (uninsert_all_breakpoints)
17078 (reinsert_all_breakpoints): New.
17079 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17080 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17081 (gdb_agent_ust_loaded, helper_thread_id)
17082 (gdb_agent_helper_thread_id): New macros.
17083 (struct ipa_sym_addresses): Add addr_ust_loaded,
17084 addr_helper_thread_id, addr_cmd_buf.
17085 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17086 (in_process_agent_loaded_ust): New.
17087 (write_e_ust_not_loaded): New.
17088 (maybe_write_ipa_ust_not_loaded): New.
17089 (struct collect_static_trace_data_action): New.
17090 (enum tracepoint_type) <static_tracepoint>: New.
17091 (struct tracepoint) <handle>: Mention static tracepoints.
17092 (struct static_tracepoint_ctx): New.
17093 (CMD_BUF_SIZE): New.
17094 (add_tracepoint_action): Handle static tracepoint actions.
17095 (unprobe_marker_at): New.
17096 (clear_installed_tracepoints): Handle static tracepoints.
17097 (cmd_qtdp): Handle static tracepoints.
17098 (probe_marker_at): New.
17099 (cmd_qtstart): Handle static tracepoints.
17100 (response_tracepoint): Handle static tracepoints.
17101 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17102 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17103 (get_context_regcache): Handle static tracepoints.
17104 (do_action_at_tracepoint): Handle static tracepoint actions.
17105 (traceframe_find_block_type): Handle static trace data blocks.
17106 (traceframe_read_sdata): New.
17107 (download_tracepoints): Download static tracepoint actions.
17108 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17109 (GDB_PROBE_NAME): New.
17111 (GET_UST_SYM): New.
17114 (ust_marker_to_static_tracepoint): New.
17116 (collect_ust_data_at_tracepoint): New.
17117 (gdb_ust_probe): New.
17118 (UNIX_PATH_MAX, SOCK_DIR): New.
17119 (gdb_ust_connect_sync_socket): New.
17120 (resume_thread, stop_thread): New.
17121 (run_inferior_command): New.
17122 (init_named_socket): New.
17123 (gdb_ust_socket_init): New.
17124 (cstr_to_hexstr): New.
17126 (first_marker, next_marker): New.
17127 (response_ust_marker): New.
17128 (cmd_qtfstm, cmd_qtsstm): New.
17129 (unprobe_marker_at, probe_marker_at): New.
17130 (cmd_qtstmat, gdb_ust_thread): New.
17131 (gdb_ust_init): New.
17132 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17133 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17134 (ST_REGENTRY): New.
17135 (x86_64_st_collect_regmap): New.
17136 (X86_64_NUM_ST_COLLECT_GREGS): New.
17137 (AMD64_RIP_REGNUM): New.
17138 (supply_static_tracepoint_registers): New.
17139 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17140 (ST_REGENTRY): New.
17141 (i386_st_collect_regmap): New.
17142 (i386_NUM_ST_COLLECT_GREGS): New.
17143 (supply_static_tracepoint_registers): New.
17144 * server.c (handle_query): Handle qXfer:statictrace:read.
17145 <qSupported>: Report support for StaticTracepoints, and
17146 qXfer:statictrace:read features.
17147 * server.h (traceframe_read_sdata)
17148 (supply_static_tracepoint_registers): Declare.
17149 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17150 (unpack_varlen_hex): Include in IPA build.
17151 * Makefile.in (ustlibs, ustinc): New.
17152 (IPA_OBJS): Add remote-utils-ipa.o.
17153 ($(IPA_LIB)): Link -ldl and -lpthread.
17155 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17156 * config.in, configure: Regenerate.
17158 2010-06-20 Ian Lance Taylor <iant@google.com>
17159 Pedro Alves <pedro@codesourcery.com>
17161 * linux-x86-low.c (always_true): Delete.
17162 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17163 trying to fool the compiler with always_true.
17165 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17167 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17168 conditions in gdbserver.
17170 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17172 * spu-low.c (spu_read_memory): Wrap around local store limit.
17173 (spu_write_memory): Likewise.
17175 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17177 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17178 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17180 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17182 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17183 uses with LONGEST uses.
17185 2010-06-14 Stan Shebs <stan@codesourcery.com>
17186 Pedro Alves <pedro@codesourcery.com>
17190 * linux-x86-low.c: Include limits.h.
17192 (always_true): New.
17195 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17196 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17197 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17198 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17199 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17200 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17201 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17202 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17203 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17204 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17205 (amd64_emit_void_call_2): New.
17206 (amd64_emit_ops): New.
17207 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17208 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17209 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17210 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17211 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17212 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17213 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17214 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17215 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17216 (i386_emit_stack_adjust, i386_emit_int_call_1)
17217 (i386_emit_void_call_2): New.
17218 (i386_emit_ops): New.
17219 (x86_emit_ops): New.
17220 (the_low_target): Install x86_emit_ops.
17221 * server.h (struct emit_ops): New.
17222 (get_raw_reg_func_addr): Declare.
17223 (current_insn_ptr, emit_error): Declare.
17224 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17225 (set_trace_state_variable_value): New defines.
17226 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17227 addr_get_trace_state_variable_value and
17228 addr_set_trace_state_variable_value.
17229 (symbol_list): New fields for get_raw_reg,
17230 get_trace_state_variable_value and set_trace_state_variable_value.
17231 (condfn): New typedef.
17232 (struct tracepoint): New field `compiled_cond'.
17233 (do_action_at_tracepoint): Clear compiled_cond.
17234 (get_trace_state_variable_value, set_trace_state_variable_value):
17236 (condition_true_at_tracepoint): If there's a compiled condition,
17238 (current_insn_ptr, emit_error): New globals.
17239 (struct bytecode_address): New.
17240 (get_raw_reg_func_addr): New.
17241 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17242 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17243 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17244 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17245 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17246 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17247 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17248 (compile_tracepoint_condition, compile_bytecodes): New.
17249 * target.h (emit_ops): Forward declare.
17250 (struct target_ops): New field emit_ops.
17251 (target_emit_ops): New.
17252 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17253 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17254 * linux-low.c (linux_emit_ops): New.
17255 (linux_target_ops): Install it.
17256 * linux-low.h (struct linux_target_ops): New field emit_ops.
17258 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17260 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17261 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17263 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17264 Stan Shebs <stan@codesourcery.com>
17266 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17267 (all): Depend on $(extra_libraries).
17268 (install-only): Install the IPA.
17269 (IPA_OBJS, IPA_LIB): New.
17270 (clean): Remove the IPA lib.
17271 (IPAGENT_CFLAGS): New.
17272 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17273 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17274 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17275 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17276 * configure.ac: Check for atomic builtins support in the compiler.
17277 (IPA_DEPFILES, extra_libraries): Define.
17278 * configure.srv (ipa_obj): Add description.
17279 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17280 (i[34567]86-*-linux*): Set ipa_obj.
17281 (x86_64-*-linux*): Set ipa_obj.
17282 * linux-low.c (stabilizing_threads): New.
17283 (supports_fast_tracepoints): New.
17284 (linux_detach): Stabilize threads before detaching.
17285 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17286 the lwp is either not stabilizing, or is moving out of a jump pad.
17287 (linux_fast_tracepoint_collecting): New.
17288 (maybe_move_out_of_jump_pad): New.
17289 (enqueue_one_deferred_signal): New.
17290 (dequeue_one_deferred_signal): New.
17291 (linux_wait_for_event_1): If moving out of a jump pad, defer
17292 pending signals to later.
17293 (linux_stabilize_threads): New.
17294 (linux_wait_1): Check if threads need moving out of jump pads, and
17296 (stuck_in_jump_pad_callback): New.
17297 (move_out_of_jump_pad_callback): New.
17298 (lwp_running): New.
17299 (linux_resume_one_lwp): Handle moving out of jump pads.
17300 (linux_set_resume_request): Dequeue deferred signals.
17301 (need_step_over_p): Also step over fast tracepoint jumps.
17302 (start_step_over): Also uninsert fast tracepoint jumps.
17303 (finish_step_over): Also reinsert fast tracepoint jumps.
17304 (linux_install_fast_tracepoint_jump): New.
17305 (linux_target_ops): Install linux_stabilize_threads and
17306 linux_install_fast_tracepoint_jump_pad.
17307 * linux-low.h (linux_target_ops) <get_thread_area,
17308 install_fast_tracepoint_jump_pad>: New fields.
17309 (struct lwp_info) <collecting_fast_tracepoint,
17310 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17311 (linux_get_thread_area): Declare.
17312 * linux-x86-low.c (jump_insn): New.
17313 (x86_get_thread_area): New.
17314 (append_insns): New.
17315 (push_opcode): New.
17316 (amd64_install_fast_tracepoint_jump_pad): New.
17317 (i386_install_fast_tracepoint_jump_pad): New.
17318 (x86_install_fast_tracepoint_jump_pad): New.
17319 (the_low_target): Install x86_get_thread_area and
17320 x86_install_fast_tracepoint_jump_pad.
17321 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17322 (struct fast_tracepoint_jump): New.
17323 (fast_tracepoint_jump_insn): New.
17324 (fast_tracepoint_jump_shadow): New.
17325 (find_fast_tracepoint_jump_at): New.
17326 (fast_tracepoint_jump_here): New.
17327 (delete_fast_tracepoint_jump): New.
17328 (set_fast_tracepoint_jump): New.
17329 (uninsert_fast_tracepoint_jumps_at): New.
17330 (reinsert_fast_tracepoint_jumps_at): New.
17331 (set_breakpoint_at): Use write_inferior_memory.
17332 (uninsert_raw_breakpoint): Use write_inferior_memory.
17333 (check_mem_read): Mask out fast tracepoint jumps.
17334 (check_mem_write): Mask out fast tracepoint jumps.
17335 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17336 (set_fast_tracepoint_jump): Declare.
17337 (delete_fast_tracepoint_jump)
17338 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17339 (reinsert_fast_tracepoint_jumps_at): Declare.
17340 * regcache.c: Don't compile many functions when building the
17341 in-process agent library.
17342 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17343 the register buffer in the heap.
17344 (free_register_cache): If the register buffer isn't owned by the
17345 regcache, don't free it.
17346 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17347 pre-existing register caches.
17348 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17350 (convert_ascii_to_int): : Constify `from' parameter type.
17351 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17352 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17353 the needed buffer in-place.
17354 (relocate_instruction): New.
17355 * server.c (handle_query) <qSymbols>: If the target supports
17356 tracepoints, give it a chance of looking up symbols. Report
17357 support for fast tracepoints.
17358 (handle_status): Stabilize threads.
17359 (process_serial_event): Adjust.
17360 * server.h (struct fast_tracepoint_jump): Forward declare.
17361 (struct process_info) <fast_tracepoint_jumps>: New field.
17362 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17363 (decode_X_packet, decode_M_packet): Adjust.
17364 (relocate_instruction): Declare.
17365 (in_process_agent_loaded): Declare.
17366 (tracepoint_look_up_symbols): Declare.
17367 (struct fast_tpoint_collect_status): Declare.
17368 (fast_tracepoint_collecting): Declare.
17369 (force_unlock_trace_buffer): Declare.
17370 (handle_tracepoint_bkpts): Declare.
17371 (initialize_low_tracepoint)
17372 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17373 * target.h (struct target_ops) <stabilize_threads,
17374 install_fast_tracepoint_jump_pad>: New fields.
17375 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17376 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17377 [HAVE_STDINT_H]: Include stdint.h.
17378 (trace_debug_1): Rename to ...
17379 (trace_vdebug): ... this.
17380 (trace_debug): Rename to ...
17381 (trace_debug_1): ... this. Add `level' parameter.
17382 (trace_debug): New.
17383 (ATTR_USED, ATTR_NOINLINE): New.
17384 (IP_AGENT_EXPORT): New.
17385 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17386 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17387 (about_to_request_buffer_space, trace_buffer_is_full)
17388 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17389 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17390 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17391 (traceframe_write_count, traceframes_created)
17392 (trace_state_variables)
17393 New renaming defines.
17394 (struct ipa_sym_addresses): New.
17395 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17396 (symbol_list): New.
17397 (ipa_sym_addrs): New.
17398 (all_tracepoint_symbols_looked_up): New.
17399 (in_process_agent_loaded): New.
17400 (write_e_ipa_not_loaded): New.
17401 (maybe_write_ipa_not_loaded): New.
17402 (tracepoint_look_up_symbols): New.
17403 (debug_threads) [IN_PROCESS_AGENT]: New.
17404 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17405 (UNKNOWN_SIDE_EFFECTS): New.
17406 (stop_tracing): New.
17407 (flush_trace_buffer): New.
17408 (stop_tracing_bkpt): New.
17409 (flush_trace_buffer_bkpt): New.
17410 (read_inferior_integer): New.
17411 (read_inferior_uinteger): New.
17412 (read_inferior_data_pointer): New.
17413 (write_inferior_data_pointer): New.
17414 (write_inferior_integer): New.
17415 (write_inferior_uinteger): New.
17416 (struct collect_static_trace_data_action): Delete.
17417 (enum tracepoint_type): New.
17418 (struct tracepoint) <type>: New field `type'.
17419 <actions_str, step_actions, step_actions_str>: Only include in
17421 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17422 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17423 (tracepoints): Use IP_AGENT_EXPORT.
17424 (last_tracepoint): Don't include in the IPA.
17425 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17426 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17427 (alloced_trace_state_variables): New.
17428 (trace_state_variables): Use IP_AGENT_EXPORT.
17429 (traceframe_t): Delete unused variable.
17430 (circular_trace_buffer): Don't include in the IPA.
17431 (trace_buffer_start): Delete.
17432 (struct trace_buffer_control): New.
17433 (trace_buffer_free): Delete.
17434 (struct ipa_trace_buffer_control): New.
17435 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17436 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17438 (trace_buffer_ctrl): New.
17439 (TRACE_BUFFER_CTRL_CURR): New.
17440 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17441 Reimplement as macros.
17442 (trace_buffer_wrap): Delete.
17443 (traceframe_write_count, traceframe_read_count)
17444 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17445 (struct tracepoint_hit_ctx) <type>: New field.
17446 (struct fast_tracepoint_ctx): New.
17447 (memory_barrier): New.
17449 (record_tracepoint_error): Update atomically in the IPA.
17450 (clear_inferior_trace_buffer): New.
17451 (about_to_request_buffer_space): New.
17452 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17453 updating the same buffer.
17454 (add_tracepoint): Default the tracepoint's type to trap
17455 tracepoint, and orig_size to -1.
17456 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17457 internal variables.
17458 (create_trace_state_variable): New parameter `gdb'. Handle it.
17459 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17460 (cmd_qtdp): Handle fast tracepoints.
17461 (cmd_qtdv): Adjust.
17462 (max_jump_pad_size): New.
17463 (gdb_jump_pad_head): New.
17464 (get_jump_space_head): New.
17465 (claim_jump_space): New.
17466 (sort_tracepoints): New.
17467 (MAX_JUMP_SIZE): New.
17468 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17470 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17471 support. Upload fast traceframes, and delete internal IPA
17473 (stop_tracing_handler): New.
17474 (flush_trace_buffer_handler): New.
17475 (cmd_qtstop): Upload fast tracepoints.
17476 (response_tracepoint): Handle fast tracepoints.
17477 (tracepoint_finished_step): Upload fast traceframes. Set the
17478 tracepoint hit context's tracepoint type.
17479 (handle_tracepoint_bkpts): New.
17480 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17481 type. Add comment about fast tracepoints.
17482 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17483 non-existing action_str field.
17484 (get_context_regcache): Handle fast tracepoints.
17485 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17487 (fast_tracepoint_from_jump_pad_address): New.
17488 (fast_tracepoint_from_ipa_tpoint_address): New.
17489 (collecting_t): New.
17490 (force_unlock_trace_buffer): New.
17491 (fast_tracepoint_collecting): New.
17493 (gdb_collect): New.
17494 (write_inferior_data_ptr): New.
17495 (target_tp_heap): New.
17496 (target_malloc): New.
17497 (download_agent_expr): New.
17499 (download_tracepoints): New.
17500 (download_trace_state_variables): New.
17501 (upload_fast_traceframes): New.
17502 (IPA_FIRST_TRACEFRAME): New.
17503 (IPA_NEXT_TRACEFRAME_1): New.
17504 (IPA_NEXT_TRACEFRAME): New.
17505 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17506 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17507 (gdb_jump_pad_buffer_end): New.
17508 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17509 (initialize_tracepoint): Adjust.
17510 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17511 buffer. Initialize the low module.
17512 * utils.c (PREFIX, TOOLNAME): New.
17513 (malloc_failure): Use PREFIX.
17514 (error): In the IPA, an error causes an exit.
17515 (fatal, warning): Use PREFIX.
17516 (internal_error): Use TOOLNAME.
17517 (NUMCELLS): Increase to 10.
17518 * configure, config.in: Regenerate.
17520 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17522 * server.c (handle_query) <qSupported>: Do two passes over the
17523 qSupported string to avoid nesting strtok.
17525 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17527 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17529 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17530 -Wl,--dynamic-list.
17531 * configure: Regenerate.
17532 * proc-service.list: New.
17534 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17536 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17539 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17541 * gdbreplay.c (remote_open): Check error return from socket() call by
17542 its equality to -1 not by it being negative.
17543 * remote-utils.c (remote_open): Likewise.
17545 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17547 * config.h: Regenerate.
17549 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17551 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17552 doesn't provide PTRACE_GET_THREAD_AREA.
17554 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17556 * linux-m68k-low.c: Include <asm/ptrace.h>
17557 (ps_get_thread_area): Implement.
17559 2010-05-03 Doug Evans <dje@google.com>
17561 * event-loop.c (struct callback_event): New struct.
17562 (callback_list): New global.
17563 (append_callback_event, delete_callback_event): New functions.
17564 (process_callback): New function.
17565 (start_event_loop): Call it.
17566 * remote-utils.c (NOT_SCHEDULED): Define.
17567 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17568 moved out of readchar.
17569 (readchar): Rewrite. Call reschedule before returning.
17570 (reset_readchar): New function.
17571 (remote_close): Call it.
17572 (process_remaining, reschedule): New functions.
17573 * server.h (callback_handler_func): New typedef.
17574 (append_callback_event, delete_callback_event): Declare.
17576 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17578 * proc-service.c (ps_pglobal_lookup): Use
17579 thread_db_look_up_one_symbol.
17580 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17581 parameter. Use it instead of all_symbols_looked_up.
17582 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17584 (all_symbols_looked_up): Don't declare.
17585 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17586 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17588 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17589 Set all_symbols_looked_up here.
17590 (thread_db_look_up_one_symbol): New.
17591 (thread_db_get_tls_address): Adjust.
17592 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17593 thread_db object on the heap, and tentatively set it in the
17595 (thread_db_init): Don't set all_symbols_looked_up here.
17596 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17598 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17600 * linux-low.c (linux_kill, linux_detach): Adjust.
17601 (status_pending_p_callback): Remove redundant statement. Check
17602 for !TARGET_WAITIKIND_IGNORE, instead of
17603 TARGET_WAITKIND_STOPPED.
17604 (handle_tracepoints): Make sure LWP is locked. Adjust.
17605 (linux_wait_for_event_1): Adjust.
17606 (linux_cancel_breakpoints): New.
17607 (unsuspend_one_lwp): New.
17608 (unsuspend_all_lwps): New.
17609 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17610 (send_sigstop_callback): Change return type to int, add new
17611 `except' parameter and handle it.
17612 (suspend_and_send_sigstop_callback): New.
17613 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17614 pass them down. If SUSPEND, also increment the lwp's suspend
17616 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17617 (need_step_over_p): Don't consider suspended LWPs.
17618 (start_step_over): Adjust.
17619 (proceed_one_lwp): Change return type to int, add new `except'
17620 parameter and handle it.
17621 (unsuspend_and_proceed_one_lwp): New.
17622 (proceed_all_lwps): Use find_inferior instead of
17624 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17625 also decrement the suspend count of LWPs. Pass `except' down,
17626 instead of hacking its suspend count.
17627 (linux_pause_all): Add `freeze' parameter. Adjust.
17628 (linux_unpause_all): New.
17629 (linux_target_ops): Install linux_unpause_all.
17630 * server.c (handle_status): Adjust.
17631 * target.h (struct target_ops): New fields `unpause_all' and
17632 `cancel_breakpoints'. Add new parameter to `pause_all'.
17633 (pause_all): Add new `freeze' parameter.
17634 (unpause_all): New.
17635 (cancel_breakpoints): New.
17636 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17637 cancel breakpoints.
17638 (cmd_qtstart): Pause threads.
17639 (stop_tracing): Pause threads, and cancel breakpoints.
17640 * win32-low.c (win32_target_ops): Adjust.
17642 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17644 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17645 the inferior right away from here...
17646 (linux_wait_1): ... to here, and adjust to check the thread's
17647 last_resume_kind instead of the lwp's step or stop_expected flags.
17649 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17651 * README: Use consistent `GDB' and `GDBserver' spellings.
17653 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17655 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17656 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17657 (linux_detach_one_lwp): Assume the lwp is stopped.
17658 (any_thread_of): Delete.
17659 (linux_detach): Stop all lwps here. Don't blindly delete all
17661 (delete_lwp_callback): New.
17662 (linux_mourn): Delete all lwps of the process that is gone.
17663 (linux_wait_1): Don't delete the last lwp of the process here.
17664 * mem-break.h (mark_breakpoints_out): Declare.
17665 * mem-break.c (mark_breakpoints_out): New.
17666 (free_all_breakpoints): Use it.
17667 * server.c (handle_target_event): If the process is gone, mark
17669 * thread-db.c (struct thread_db) <create_bp>: New field.
17670 (thread_db_enable_reporting): Fix prototype. Store a thread event
17671 breakpoint reference in the thread_db struct.
17672 (thread_db_load_search): Clear the thread_db object.
17673 (try_thread_db_load_1): Ditto.
17674 (switch_to_process): New.
17675 (disable_thread_event_reporting): Use it.
17676 (remove_thread_event_breakpoints): New.
17677 (thread_db_detach, thread_db_mourn): Use it.
17679 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17681 * linux-low.c (linux_enable_event_reporting): New.
17682 (linux_wait_for_event_1, handle_extended_wait): Use it.
17684 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17686 * linux-low.c (linux_kill_one_lwp, linux_kill)
17687 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17688 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17689 SIGSTOP even if the LWP is stopped.
17690 (send_sigstop_callback): New.
17691 (stop_all_lwps): Use send_sigstop_callback instead.
17692 (linux_resume_one_thread): Adjust.
17693 (proceed_one_lwp): Still proceed an LWP that the client has
17694 requested to stop, if we haven't reported it as stopped yet. Make
17695 sure that LWPs the client want stopped, have a pending SIGSTOP.
17697 2010-04-26 Doug Evans <dje@google.com>
17699 * server.c (handle_general_set): Make static.
17701 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17702 Print received char after testing for error/eof instead of before.
17703 (input_interrupt): Tweak comment.
17705 2010-04-23 Doug Evans <dje@google.com>
17707 * server.c (start_inferior): Print inferior argv if --debug.
17709 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17711 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17712 * nto-x86-low.c: Include server.h
17714 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17716 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17717 be consistent with other sources of this directory.
17718 (init_registers_amd64): Correct name of source file of this function
17721 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17723 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17724 64-bit executables.
17726 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17728 * win32-i386-low.c: Add 64-bit support.
17729 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17730 (init_registers_amd64): Declare.
17731 (mappings): Add 64-bit version of array.
17732 (init_windows_x86): New function.
17733 (the_low_target): Change init_arch field to init_windows_x86.
17735 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17737 * win32-low.c: Adapt to support also 64-bit architecture.
17738 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17739 (get_image_name): Use SIZE_T type for local variable `done'.
17740 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17741 (toolhelp_get_dll_name): Idem.
17742 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17743 Use uintptr_t typecast to avoid warning.
17744 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17745 (handle_exception): Use phex_nz to avoid warning.
17746 (win32_wait): Remove unused local variable `process'.
17748 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17750 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17753 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17755 * configure.ac: Use `ws2_32' library for srv_mingw.
17756 * configure: Regenerate.
17757 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17758 * remote-utils.c: Likewise.
17760 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17762 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17763 if __x86_64__ is defined.
17765 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17767 * configure: Regenerate.
17769 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17771 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17772 * target.h (target_ops): New get_tib_address field.
17773 * win32-low.h (win32_thread_info): Add thread_local_base field.
17774 * win32-low.c (child_add_thread): Add tlb argument.
17775 Set thread_local_base field to TLB.
17776 (get_child_debug_event): Adapt to child_add_thread change.
17777 (win32_get_tib_address): New function.
17778 (win32_target_ops): Set get_tib_address field to
17779 win32_get_tib_address.
17780 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17782 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17784 * linux-low.c (linux_mourn): Also remove the process.
17785 * server.c (handle_target_event): Don't remove the process here.
17786 * nto-low.c (nto_mourn): New.
17787 (nto_target_ops): Install it.
17788 * spu-low.c (spu_mourn): New.
17789 (spu_target_ops): Install it.
17790 * win32-low.c (win32_mourn): New.
17791 (win32_target_ops): Install it.
17793 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17795 * server.h (buffer_xml_printf): Remove redundant `;'.
17797 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17799 * regcache.c (set_register_cache): Invalidate regcaches before
17800 changing the register cache layout.
17801 (regcache_invalidate_one): Allow a NULL regcache.
17802 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17803 regcaches before changing the register cache layout or the target
17806 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17808 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17809 variable warning on Linux/x86-64.
17811 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17813 GDBserver disconnected tracing support.
17815 * linux-low.c (linux_remove_process): Delete.
17816 (add_lwp): Don't set last_resume_kind here.
17817 (linux_kill): Use `mourn'.
17818 (linux_detach): Use `thread_db_detach', and `mourn'.
17819 (linux_mourn): New.
17820 (linux_attach_lwp_1): Adjust comment.
17821 (linux_attach): last_resume_kind moved the thread_info; adjust.
17822 (status_pending_p_callback): Adjust.
17823 (linux_wait_for_event_1): Adjust.
17824 (count_events_callback, select_singlestep_lwp_callback)
17825 (select_event_lwp_callback, cancel_breakpoints_callback)
17826 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17827 (proceed_one_lwp): Adjust.
17828 (linux_async): Add debug output.
17829 (linux_thread_stopped): New.
17830 (linux_pause_all): New.
17831 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17833 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17834 (thread_db_free): Delete declaration.
17835 (thread_db_detach, thread_db_mourn): Declare.
17836 * thread-db.c (thread_db_init): Use thread_db_mourn.
17837 (thread_db_free): Delete, split in two.
17838 (disable_thread_event_reporting): New.
17839 (thread_db_detach): New.
17840 (thread_db_mourn): New.
17842 * server.h (struct thread_info) <last_resume_kind>: New field.
17843 <attached>: Add comment.
17844 <gdb_detached>: New field.
17845 (handler_func): Change return type to int.
17846 (handle_serial_event, handle_target_event): Ditto.
17847 (gdb_connected): Declare.
17849 (disconnected_tracing): Declare.
17850 (stop_tracing): Declare.
17852 * server.c (handle_query) <qSupported>: Report support for
17853 disconnected tracing.
17854 (queue_stop_reply_callback): Account for running threads.
17855 (gdb_wants_thread_stopped): New.
17856 (gdb_wants_all_threads_stopped): New.
17857 (gdb_reattached_process): New.
17858 (handle_status): Clear the `gdb_detached' flag of all processes.
17859 In all-stop, stop all threads.
17860 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17861 (process_serial_event): If the remote connection breaks, or if an
17862 exit was forced with "monitor exit", force an event loop exit.
17863 Handle disconnected tracing on detach.
17864 (handle_serial_event): Adjust.
17865 (handle_target_event): If GDB isn't connected, forward events back
17866 to the inferior, unless the last process exited, in which case,
17867 exit gdbserver. Adjust interface.
17869 * remote-utils.c (remote_open): Don't block in accept. Instead
17870 register an event loop source on the listen socket file
17871 descriptor. Refactor bits into ...
17872 (listen_desc): ... this new global.
17873 (gdb_connected): ... this new function.
17874 (enable_async_notification): ... this new function.
17875 (handle_accept_event): ... this new function.
17876 (remote_close): Clear remote_desc.
17878 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17880 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17882 (mourn_inferior): Define.
17883 (target_process_qsupported): Avoid the dangling else problem.
17884 (thread_stopped): Define.
17885 (pause_all): Define.
17886 (target_waitstatus_to_string): Declare.
17887 * target.c (target_waitstatus_to_string): New.
17889 * tracepoint.c (tracing): Make extern.
17890 (disconnected_tracing): New.
17891 (stop_tracing): Make extern. Handle tracing stops due to GDB
17893 (cmd_qtdisconnected): New.
17894 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17895 (handle_tracepoint_general_set): Handle QTDisconnected.
17897 * event-loop.c (event_handler_func): Change return type to int.
17898 (process_event): Bail out if the event handler wants the event
17900 (handle_file_event): Ditto.
17901 (start_event_loop): Bail out if the event handler wants the event
17904 * nto-low.c (nto_target_ops): Adjust.
17905 * spu-low.c (spu_wait): Don't remove the process here.
17906 (spu_target_ops): Adjust.
17907 * win32-low.c (win32_wait): Don't remove the process here.
17908 (win32_target_ops): Adjust.
17910 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17912 * regcache.c (realloc_register_cache): Invalidate inferior's
17913 regcache before recreating it.
17915 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17917 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17919 2010-04-09 Stan Shebs <stan@codesourcery.com>
17920 Pedro Alves <pedro@codesourcery.com>
17922 * server.h (LONGEST): New.
17923 (struct thread_info) <while_stepping>: New field.
17924 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17926 (initialize_tracepoint, handle_tracepoint_general_set)
17927 (handle_tracepoint_query, tracepoint_finished_step)
17928 (tracepoint_was_hit, release_while_stepping_state_list):
17929 (current_traceframe): Declare.
17930 * server.c (handle_general_set): Handle tracepoint packets.
17931 (read_memory): New.
17932 (write_memory): New.
17933 (handle_search_memory_1): Use read_memory.
17934 (handle_query): Report support for conditional tracepoints, trace
17935 state variables, and tracepoint sources. Handle tracepoint
17937 (main): Initialize the tracepoints module.
17938 (process_serial_event): Handle traceframe reads/writes.
17940 * linux-low.c (handle_tracepoints): New.
17941 (linux_wait_1): Call it.
17942 (linux_resume_one_lwp): Handle while-stepping.
17943 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17944 (linux_target_ops): Install them.
17945 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17947 * linux-x86-low.c (x86_supports_tracepoints): New.
17948 (the_low_target). Install it.
17950 * mem-break.h (delete_breakpoint): Declare.
17951 * mem-break.c (delete_breakpoint): Make external.
17953 * target.h (struct target_ops): Add `supports_tracepoints',
17954 `read_pc', and `write_pc' fields.
17955 (target_supports_tracepoints): Define.
17956 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17959 * regcache.h (struct regcache) <registers_owned>: New field.
17960 (init_register_cache, regcache_cpy): Declare.
17961 (regcache_read_pc, regcache_write_pc): Declare.
17962 (register_cache_size): Declare.
17963 (supply_regblock): Declare.
17964 * regcache.c (init_register_cache): New.
17965 (new_register_cache): Use it.
17966 (regcache_cpy): New.
17967 (register_cache_size): New.
17968 (supply_regblock): New.
17969 (regcache_read_pc, regcache_write_pc): New.
17971 * tracepoint.c: New.
17973 * Makefile.in (OBS): Add tracepoint.o.
17974 (tracepoint.o): New rule.
17976 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17978 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17980 (i386-mmx.c): Likewise.
17981 (i386-mmx-linux.o): Likewise.
17982 (i386-mmx-linux.c): Likewise.
17984 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17985 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17986 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17987 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17989 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17990 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17991 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17993 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17995 * Makefile.in (clean): Updated.
17997 (i386-avx.c): Likewise.
17998 (i386-avx-linux.o): Likewise.
17999 (i386-avx-linux.c): Likewise.
18000 (amd64-avx.o): Likewise.
18001 (amd64-avx.c): Likewise.
18002 (amd64-avx-linux.o): Likewise.
18003 (amd64-avx-linux.c): Likewise.
18005 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18006 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18007 (srv_amd64_regobj): Add amd64-avx.o.
18008 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18009 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18010 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18011 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18012 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18013 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18014 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18016 * i387-fp.c: Include "i386-xstate.h".
18018 (i387_cache_to_xsave): Likewise.
18019 (i387_xsave_to_cache): Likewise.
18020 (x86_xcr0): Likewise.
18022 * i387-fp.h (i387_cache_to_xsave): Likewise.
18023 (i387_xsave_to_cache): Likewise.
18024 (x86_xcr0): Likewise.
18026 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18027 * linux-crisv32-low.c (target_regsets): Likewise.
18028 * linux-m68k-low.c (target_regsets): Likewise.
18029 * linux-mips-low.c (target_regsets): Likewise.
18030 * linux-ppc-low.c (target_regsets): Likewise.
18031 * linux-s390-low.c (target_regsets): Likewise.
18032 * linux-sh-low.c (target_regsets): Likewise.
18033 * linux-sparc-low.c (target_regsets): Likewise.
18034 * linux-xtensa-low.c (target_regsets): Likewise.
18036 * linux-low.c: Include <sys/uio.h>.
18037 (regsets_fetch_inferior_registers): Support nt_type.
18038 (regsets_store_inferior_registers): Likewise.
18039 (linux_process_qsupported): New.
18040 (linux_target_ops): Add linux_process_qsupported.
18042 * linux-low.h (regset_info): Add nt_type.
18043 (linux_target_ops): Add process_qsupported.
18045 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18047 (init_registers_i386_avx_linux): New.
18048 (init_registers_amd64_avx_linux): Likewise.
18049 (xmltarget_i386_linux_no_xml): Likewise.
18050 (xmltarget_amd64_linux_no_xml): Likewise.
18051 (PTRACE_GETREGSET): Likewise.
18052 (PTRACE_SETREGSET): Likewise.
18053 (x86_fill_xstateregset): Likewise.
18054 (x86_store_xstateregset): Likewise.
18055 (use_xml): Likewise.
18056 (x86_linux_update_xmltarget): Likewise.
18057 (x86_linux_process_qsupported): Likewise.
18058 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18059 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18060 init_registers_i386_linux here. Call
18061 x86_linux_update_xmltarget.
18062 (the_low_target): Add x86_linux_process_qsupported.
18064 * server.c (handle_query): Call target_process_qsupported.
18066 * target.h (target_ops): Add process_qsupported.
18067 (target_process_qsupported): New.
18069 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18071 * inferiors.c (add_thread): Set last_status kind to
18072 TARGET_WAITKIND_IGNORE.
18073 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18074 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18075 (linux_wait_1): Move `thread' local definition to block that uses
18076 it. Don't NULL initialize `event_child'.
18077 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18078 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18079 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18081 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18083 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18084 an extended waitstatus, or by a watchpoint.
18085 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18086 thread was stepping or has been stopped by a watchpoint.
18088 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18090 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18091 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18092 of another, then delete the previous, and validate all
18094 (validate_inserted_breakpoint): New.
18095 (delete_disabled_breakpoints): New.
18096 (validate_breakpoints): New.
18097 (check_mem_read): Validate breakpoints before trusting their
18098 shadow. Delete disabled breakpoints.
18099 (check_mem_write): Validate breakpoints before trusting they
18100 should be inserted. Delete disabled breakpoints.
18101 * mem-break.h (validate_breakpoints):
18102 * server.c (handle_query): Validate breakpoints when we see a
18105 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18107 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18108 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18109 if we could tell there's a GDB breakpoint at stop_pc.
18110 (need_step_over_p): Don't do a step over if we find a GDB
18111 breakpoint at the resume PC.
18113 * mem-break.c (struct raw_breakpoint): New.
18114 (enum bkpt_type): New type `gdb_breakpoint'.
18115 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18116 fields. New field `raw'.
18117 (find_raw_breakpoint_at): New.
18118 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18119 breakpoint instead.
18120 (set_breakpoint_at): Adjust.
18121 (delete_raw_breakpoint): New.
18122 (release_breakpoint): New.
18123 (delete_breakpoint): Rename to...
18124 (delete_breakpoint_1): ... this. Add proc parameter. Use
18125 release_breakpoint. Return ENOENT.
18126 (delete_breakpoint): Reimplement.
18127 (find_breakpoint_at): Delete.
18128 (find_gdb_breakpoint_at): New.
18129 (delete_breakpoint_at): Delete.
18130 (set_gdb_breakpoint_at): New.
18131 (delete_gdb_breakpoint_at): New.
18132 (gdb_breakpoint_here): New.
18133 (set_reinsert_breakpoint): Use release_breakpoint.
18134 (uninsert_breakpoint): Rename to ...
18135 (uninsert_raw_breakpoint): ... this.
18136 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18137 (reinsert_raw_breakpoint): Change parameter type to
18139 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18141 (check_breakpoints): Adjust. Use release_breakpoint.
18142 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18143 (breakpoint_inserted_here): Ditto.
18144 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18145 Don't trust the breakpoint's shadow if it is not inserted.
18146 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18147 (delete_all_breakpoints): Adjust.
18148 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18149 use delete_breakpoint_1.
18151 * mem-break.h (breakpoints_supported): Delete declaration.
18152 (set_gdb_breakpoint_at): Declare.
18153 (gdb_breakpoint_here): Declare.
18154 (delete_breakpoint_at): Delete.
18155 (delete_gdb_breakpoint_at): Declare.
18157 * server.h (struct raw_breakpoint): Forward declare.
18158 (struct process_info): New field `raw_breakpoints'.
18160 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18163 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18165 * linux-low.c (status_pending_p_callback): Fix comment.
18166 (linux_wait_for_event_1): Move most of the internal breakpoint
18167 handling from here...
18168 (linux_wait_1): ... to here.
18169 (count_events_callback): New.
18170 (select_singlestep_lwp_callback): New.
18171 (select_event_lwp_callback): New.
18172 (cancel_breakpoints_callback): New.
18173 (select_event_lwp): New.
18174 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18175 priority to all LWPs that have had events that should be reported
18176 to the client. Cancel breakpoints when about to reporting the
18177 event to the client, not while stopping lwps. No longer cancel
18178 finished single-steps here.
18179 (cancel_finished_single_step): Delete.
18180 (cancel_finished_single_steps): Delete.
18182 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18184 * mem-break.c (enum bkpt_type): New.
18185 (struct breakpoint): New field `type'.
18186 (set_breakpoint_at): Change return type to struct breakpoint
18187 pointer. Set type to `other_breakpoint' by default.
18188 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18189 in the breakpoint list.
18190 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18191 (reinsert_breakpoint): Rename to ...
18192 (reinsert_raw_breakpoint): ... this.
18193 (reinsert_breakpoints_at): Adjust.
18194 * mem-break.h (struct breakpoint): Declare.
18195 (set_breakpoint_at): Change return type to struct breakpoint
18198 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18200 * server.c (handle_query): Assign, not compare.
18202 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18204 Teach linux gdbserver to step-over-breakpoints.
18206 * linux-low.c (can_hardware_single_step): New.
18207 (supports_breakpoints): New.
18208 (handle_extended_wait): If stopping threads, read the stop pc of
18209 the new cloned LWP.
18211 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18212 low target doesn't support retrieving the PC.
18213 (add_lwp): Set last_resume_kind to resume_continue.
18214 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18215 (linux_attach): Don't clear stop_expected. Set the lwp's
18216 last_resume_kind to resume_stop.
18217 (linux_detach_one_lwp): Don't check for removed breakpoints.
18218 (check_removed_breakpoint): Delete.
18219 (status_pending_p): Rename to ...
18220 (status_pending_p_callback): ... this. Don't check for removed
18221 breakpoints. Don't consider threads that are stopped from GDB's
18223 (linux_wait_for_lwp): Always read the stop_pc here.
18224 (cancel_breakpoint): New.
18225 (step_over_bkpt): New global.
18226 (linux_wait_for_event_1): Implement stepping over breakpoints.
18227 (gdb_wants_lwp_stopped): New.
18228 (gdb_wants_all_stopped): New.
18229 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18230 single-step traps here. Store the thread's last reported target
18232 (send_sigstop): Don't clear stop_expected. Always set it,
18234 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18235 (cancel_finished_single_step): New.
18236 (cancel_finished_single_steps): New.
18237 (wait_for_sigstop): Don't cancel finished single-step traps here.
18238 (linux_resume_one_lwp): Don't check for removed breakpoints.
18239 Don't set `step' on non-hardware step archs.
18240 (linux_set_resume_request): Ignore resume_stop requests if already
18241 stopping or stopped. Set the lwp's last_resume_kind.
18242 (resume_status_pending_p): Don't check for removed breakpoints.
18243 (need_step_over_p): New.
18244 (start_step_over): New.
18245 (finish_step_over): New.
18246 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18247 requests. Clear the thread's last reported target waitstatus.
18248 Don't use the `suspended' flag. Don't consider pending breakpoints.
18249 (linux_resume): Start a step-over if necessary.
18250 (proceed_one_lwp): New.
18251 (proceed_all_lwps): New.
18252 (unstop_all_lwps): New.
18253 * linux-low.h (struct lwp_info): Rewrite comment for the
18254 `suspended' flag. Add the `stop_pc' field. Delete the
18255 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18256 Add `'last_resume_kind' and `need_step_over' fields.
18257 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18258 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18259 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18260 (set_raw_breakpoint_at): New.
18261 (set_breakpoint_at): Rewrite to use it.
18262 (reinsert_breakpoint_handler): Delete.
18263 (set_reinsert_breakpoint): New.
18264 (reinsert_breakpoint_by_bp): Delete.
18265 (delete_reinsert_breakpoints): New.
18266 (uninsert_breakpoint): Rewrite.
18267 (uninsert_breakpoints_at): New.
18268 (reinsert_breakpoint): Rewrite.
18269 (reinsert_breakpoints_at): New.
18270 (check_breakpoints): Rewrite.
18271 (breakpoint_here): New.
18272 (breakpoint_inserted_here): New.
18273 (check_mem_read): Adjust.
18274 * mem-break.h (breakpoints_supported, breakpoint_here)
18275 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18276 (reinsert_breakpoint_by_bp): Delete declaration.
18277 (delete_reinsert_breakpoints): Declare.
18278 (reinsert_breakpoint): Delete declaration.
18279 (reinsert_breakpoints_at): Declare.
18280 (uninsert_breakpoint): Delete declaration.
18281 (uninsert_breakpoints_at): Declare.
18282 (check_breakpoints): Adjust prototype.
18283 * server.h: Adjust include order.
18284 (struct thread_info): Declare here. Add a `last_status' field.
18286 2010-03-23 Michael Snyder <msnyder@vmware.com>
18288 * server.c (crc32): New function.
18289 (handle_query): Add handling for 'qCRC:' request.
18291 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18293 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18294 lwp had been stopped by a watchpoint.
18296 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18298 * server.h (internal_error): Declare.
18299 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18300 * utils.c (internal_error): New function.
18302 2010-03-15 Andreas Schwab <schwab@redhat.com>
18304 * configure.srv: Fix typo setting srv_regobj.
18306 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18308 * linux-low.c (fetch_register): Avoid passing a non string literal
18310 (usr_store_inferior_registers): Ditto.
18312 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18314 * linux-low.c (linux_write_memory): Bail out early if peeking
18317 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18319 * linux-low.h (struct lwp_info): New fields
18320 `stopped_by_watchpoint' and `stopped_data_address'.
18321 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18322 here, and cache them in the lwp object.
18323 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18325 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18327 (linux_stopped_by_watchpoint): Rewrite.
18328 (linux_stopped_data_address): Rewrite.
18330 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18332 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18333 switching the current inferior, not before.
18335 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18337 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18338 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18339 i386-linux.c and amd64-linux.c.
18340 (reg-i386.o): Removed.
18341 (reg-i386.c): Likewise.
18342 (reg-i386-linux.o): Likewise.
18343 (reg-i386-linux.c): Likewise.
18344 (reg-x86-64.o): Likewise.
18345 (reg-x86-64.c): Likewise.
18346 (reg-x86-64-linux.o): Likewise.
18347 (reg-x86-64-linux.c): Likewise.
18349 (i386.c): Likewise.
18350 (i386-linux.o): Likewise.
18351 (i386-linux.c): Likewise.
18352 (amd64.o): Likewise.
18353 (amd64.c): Likewise.
18354 (amd64-linux.o): Likewise.
18355 (amd64-linux.c): Likewise.
18357 * configure.srv (srv_i386_regobj): New.
18358 (srv_i386_linux_regobj): Likewise.
18359 (srv_amd64_regobj): Likewise.
18360 (srv_amd64_linux_regobj): Likewise.
18361 (srv_i386_32bit_xmlfiles): Likewise.
18362 (srv_i386_64bit_xmlfiles): Likewise.
18363 (srv_i386_xmlfiles): Likewise.
18364 (srv_amd64_xmlfiles): Likewise.
18365 (srv_i386_linux_xmlfiles): Likewise.
18366 (srv_amd64_linux_xmlfiles): Likewise.
18367 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18368 srv_xmlfiles to $srv_i386_xmlfiles.
18369 (i[34567]86-*-mingw32ce*): Likewise.
18370 (i[34567]86-*-mingw*): Likewise.
18371 (i[34567]86-*-nto*): Likewise.
18372 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18373 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18374 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18375 (x86_64-*-linux*): Likewise.
18377 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18378 (init_registers_amd64_linux): New.
18379 (x86_arch_setup): Replace init_registers_x86_64_linux with
18380 init_registers_amd64_linux.
18382 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18384 * configure.ac: Check for libdl. If it is not available link against
18385 static libthread_db.
18386 * configure: Regenerate.
18388 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18392 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18393 handing a read watchpoint.
18394 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18396 2010-02-12 Doug Evans <dje@google.com>
18398 * linux-low.c (linux_supports_tracefork_flag): Document.
18399 (linux_look_up_symbols): Add comment.
18401 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18403 * regcache.c (supply_register): Clear regcache if buf is NULL.
18405 2010-02-02 Nicolas Roche <roche@sourceware.org>
18406 Joel Brobecker <brobecker@adacore.com>
18408 * inferiors.c (find_inferior): Add function documentation.
18409 (unloaded_dll): Handle the case where the unloaded dll has not
18410 been previously registered in the dll list.
18412 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18414 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18415 (thumb2_breakpoint): New.
18416 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18418 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18420 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18421 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18424 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18426 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18428 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18430 * linux-s390-low.c (s390_collect_ptrace_register)
18431 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18433 2010-01-21 Doug Evans <dje@google.com>
18435 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18436 (PTRACE_ARG4_TYPE): New macro.
18437 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18438 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18439 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18440 (usr_store_inferior_registers): Ditto.
18441 (linux_read_memory, linux_write_memory): Ditto.
18442 (linux_test_for_tracefork): Ditto.
18444 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18445 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18447 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18449 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18452 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18454 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18455 prototype to take a regcache. Adjust.
18457 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18459 * regcache.h (struct thread_info): Forward declare.
18460 (struct regcache): New.
18461 (new_register_cache): Adjust prototype.
18462 (get_thread_regcache): Declare.
18463 (free_register_cache): Adjust prototype.
18464 (registers_to_string, registers_from_string): Ditto.
18465 (supply_register, supply_register_by_name, collect_register)
18466 (collect_register_as_string, collect_register_by_name): Ditto.
18467 * regcache.c (struct inferior_regcache_data): Delete.
18468 (get_regcache): Rename to ...
18469 (get_thread_regcache): ... this. Adjust. Switch inferior before
18470 fetching registers.
18471 (regcache_invalidate_one): Adjust.
18472 (regcache_invalidate): Fix prototype.
18473 (new_register_cache): Return the new register cache.
18474 (free_register_cache): Change prototype.
18475 (realloc_register_cache): Adjust.
18476 (registers_to_string): Change prototype to take a regcache. Adjust.
18477 (registers_from_string): Ditto.
18478 (register_data): Ditto.
18479 (supply_register): Ditto.
18480 (supply_register_by_name): Ditto.
18481 (collect_register): Ditto.
18482 (collect_register_as_string): Ditto.
18483 (collect_register_by_name): Ditto.
18484 * server.c (process_serial_event): Adjust.
18485 * linux-low.h (regset_fill_func, regset_store_func): Change
18487 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18489 * linux-low.c (get_stop_pc): Adjust.
18490 (check_removed_breakpoint): Adjust.
18491 (linux_wait_for_event): Adjust.
18492 (linux_resume_one_lwp): Adjust.
18493 (fetch_register): Add regcache parameter. Adjust.
18494 (usr_store_inferior_registers): Ditto.
18495 (regsets_fetch_inferior_registers): Ditto.
18496 (regsets_store_inferior_registers): Ditto.
18497 (linux_fetch_registers, linux_store_registers): Ditto.
18498 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18500 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18502 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18503 prototype to take a regcache.
18504 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18505 * remote-utils.c (convert_ascii_to_int, outreg)
18506 (prepare_resume_reply): Change prototype to take a regcache.
18508 * target.h (struct target_ops) <fetch_registers, store_registers>:
18509 Change prototype to take a regcache.
18510 (fetch_inferior_registers, store_inferior_registers): Change
18511 prototype to take a regcache. Adjust.
18512 * proc-service.c (ps_lgetregs): Adjust.
18513 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18514 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18515 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18516 take a regcache. Adjust.
18517 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18518 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18519 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18520 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18521 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18522 (cris_cannot_fetch_register):
18523 (cris_breakpoint_at): Change prototype to take a regcache.
18525 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18526 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18527 to take a regcache. Adjust.
18528 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18530 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18531 take a regcache. Adjust.
18532 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18533 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18534 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18535 * linux-mips-low.c (mips_get_pc):
18536 (mips_set_pc): Change prototype to take a regcache. Adjust.
18537 (mips_reinsert_addr): Adjust.
18538 (mips_collect_register): Change prototype to take a regcache.
18540 (mips_supply_register):
18541 (mips_collect_register_32bit, mips_supply_register_32bit)
18542 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18543 (mips_store_fpregset): Ditto.
18544 * linux-ppc-low.c (ppc_supply_ptrace_register)
18545 (ppc_supply_ptrace_register): Ditto.
18546 (parse_spufs_run): Adjust.
18547 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18548 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18549 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18550 take a regcache. Adjust.
18551 * linux-s390-low.c (s390_collect_ptrace_register)
18552 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18553 (s390_set_pc): Change prototype to take a regcache. Adjust.
18554 (s390_arch_setup): Adjust.
18555 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18556 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18557 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18558 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18559 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18561 (sparc_breakpoint_at): Adjust.
18562 * linux-xtensa-low.c (xtensa_fill_gregset):
18563 (xtensa_store_gregset):
18564 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18565 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18566 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18567 prototype to take a regcache. Adjust.
18568 * win32-arm-low.c (arm_fetch_inferior_register)
18569 (arm_store_inferior_register): Change prototype to take a
18571 * win32-i386-low.c (i386_fetch_inferior_register)
18572 (i386_store_inferior_register): Change prototype to take a
18574 * win32-low.c (child_fetch_inferior_registers)
18575 (child_store_inferior_registers): Change prototype to take a
18577 (win32_wait): Adjust.
18578 (win32_fetch_inferior_registers): Change prototype to take a
18580 (win32_store_inferior_registers): Adjust.
18581 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18582 store_inferior_register>: Change prototype to take a regcache.
18584 2010-01-20 Doug Evans <dje@google.com>
18586 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18588 (linux_wait_for_event1, linux_init_signals): Ditto.
18589 (W_STOPCODE): Provide definition if missing.
18591 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18593 * linux-low.c (linux_core_of_thread): New.
18594 (compare_ints, show_process, list_threads): New.
18595 (linux_qxfer_osdata): Report threads and cores.
18596 (linux_target_op): Register linux_core_of_thread.
18597 * remote-utils.c (prepare_resume_reply): Report the core.
18598 (buffer_xml_printf): Support %d specifier.
18599 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18601 (handle_query): Handle qXfer:threads. Announce availability
18603 * target.h (struct target_ops): New field core_of_thread.
18605 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18607 * Makefile.in (clean): Remove new generated files.
18608 (reg-s390.o, reg-s390.c): Remove rules.
18609 (reg-s390x.o, reg-s390x.c): Likewise.
18610 (s390-linux32.o, s390-linux32.c): Add rules.
18611 (s390-linux64.o, s390-linux64.c): Likewise.
18612 (s390x-linux64.o, s390x-linux64.c): Likewise.
18613 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18614 * linux-s390-low.c: Include <elf.h>.
18615 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18616 (init_registers_s390): Remove prototype.
18617 (init_registers_s390x): Likewise.
18618 (init_registers_s390_linux32): Add prototype.
18619 (init_registers_s390_linux64): Likewise.
18620 (init_registers_s390x_linux64): Likewise.
18621 (s390_num_regs_3264): New define.
18622 (s390_regmap_3264): New global variable.
18623 (s390_cannot_fetch_register): Remove obsolete check.
18624 (s390_cannot_store_register): Likewise.
18625 (s390_collect_ptrace_register): Handle upper/lower register halves.
18626 (s390_supply_ptrace_register): Likewise.
18627 (s390_fill_gregset): Update to register number changes.
18628 (s390_get_hwcap): New routine.
18629 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18630 Install appropriate regmap and register set.
18632 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18634 * server.c (gdbserver_version): Update copyright year to 2010.
18635 * gdbreplay.c (gdbreplay_version): Likewise.
18637 2009-12-28 Doug Evans <dje@google.com>
18639 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18640 elf/external.h. Include <elf.h> instead but only if necessary.
18642 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18644 * linux-low.c (linux_remove_process): Remove `detaching'
18645 parameter. Don't release/detach from thread_db here.
18646 (linux_kill): Release/detach from thread_db here, ...
18647 (linux_detach): ... and here, before actually detaching.
18648 (linux_wait_1): ... and here, when a process exits.
18649 * thread-db.c (any_thread_of): New.
18650 (thread_db_free): Switch the current inferior to a thread of the
18653 2009-12-21 Doug Evans <dje@google.com>
18655 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18657 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18658 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18659 warning ifndef __NR_tkill. Move setting of errno there too.
18660 Delete unnecessary resetting of errno after syscall.
18661 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18663 * configure.ac: Check for dladdr.
18664 * config.in: Regenerate.
18665 * configure: Regenerate.
18666 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18667 (try_thread_db_load): Update.
18669 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18671 2009-12-18 Doug Evans <dje@google.com>
18673 * event-loop.c: Include unistd.h if it exists.
18675 * linux-low.c (my_waitpid): Move definition away from being in
18676 between linux_tracefork_child/linux_test_for_tracefork.
18678 * gdb_proc_service.h (psaddr_t): Fix type.
18679 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18680 signature to match glibc.
18682 2009-12-16 Doug Evans <dje@google.com>
18684 * linux-low.c (linux_read_memory): Fix argument to read.
18686 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18688 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18689 events, don't leave current_inferior pointing at null.
18691 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18693 * win32-low.c (LOG): Delete.
18694 (OUTMSG): Output to stderr.
18695 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18696 on compile time LOG macro.
18697 (win32_wait): Fix debug output.
18699 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18701 * win32-low.c (win32_add_one_solib): If the dll name is
18702 "ntdll.dll", prepend the system directory to the dll path.
18704 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18706 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18708 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18709 Vladimir Prus <vladimir@codesourcery.com>
18711 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18712 * configure.ac: Check for __mcoldfire__ and set
18713 gdb_cv_m68k_is_coldfire.
18714 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18715 reg-cf.o and reg-m68k.o.
18716 * configure: Regenerated.
18718 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18720 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18721 Pass it to thread_db_free.
18722 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18723 proper `detaching' argument to linux_remove_process.
18724 * linux-low.h (thread_db_free): Add `detaching' parameter.
18725 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18727 (thread_db_free): Add `detaching' parameter. Only
18728 call td_ta_clear_event if detaching from process.
18730 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18732 * thread-db.c (thread_db_free): Fix typo.
18734 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18737 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18739 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18741 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18742 with an i686 compiler.
18743 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18745 * configure: Rebuilt.
18747 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18751 * server.c (handle_search_memory_1): Correct read_addr initialization
18752 in loop for searching subsequent chunks.
18754 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18756 * configure.ac: New --with-libthread-db option.
18757 * thread-db.c: Allow direct dependence on libthread_db.
18758 (thread_db_free): Adjust.
18759 * config.in: Regenerate.
18760 * configure: Likewise.
18762 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18765 * thread-db.c (attach_thread): New function.
18766 (maybe_attach_thread): Return success/failure.
18767 (find_new_threads_callback): Adjust.
18768 (thread_db_find_new_threads): Loop until no new threads.
18770 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18772 * proc-service.c (ps_lgetregs): Formatting.
18774 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18776 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18777 * configure.ac: Adjust.
18778 * linux-low.h (struct process_info_private): Move members to struct
18780 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18781 * linux-low.c (linux_remove_process): Adjust.
18782 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18783 * server.c (handle_query): Move code ...
18784 (handle_monitor_command): ... here. New function.
18785 * target.h (struct target_ops): New member.
18786 * thread-db.c (struct thread_db): New.
18787 (libthread_db_search_path): New variable.
18788 (thread_db_create_event, thread_db_enable_reporting)
18789 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18790 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18791 (try_thread_db_load_1, dladdr_to_soname): New functions.
18792 (try_thread_db_load, thread_db_load_search): New functions.
18793 (thread_db_init): Search for libthread_db.
18794 (thread_db_free): New function.
18795 (thread_db_handle_monitor_command): Likewise.
18796 * config.in: Regenerate.
18797 * configure: Regenerate.
18799 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18801 * spu-low.c (spu_kill): Wait for inferior to terminate.
18802 Call clear_inferiors.
18803 (spu_detach): Call clear_inferiors.
18805 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18807 * aclocal.m4: Regenerate.
18808 * config.in: Likewise.
18809 * configure: Likewise.
18811 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18813 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18814 (parse_spufs_run): New function.
18815 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18816 (ppc_breakpoint_at): Handle SPU breakpoints.
18818 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18820 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18821 (SPUFS_MAGIC): Define.
18822 (spu_enumerate_spu_ids): New function.
18823 (linux_qxfer_spu): New function.
18824 (linux_target_ops): Install linux_qxfer_spu.
18826 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18828 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18829 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18830 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18831 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18832 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18833 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18834 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18835 (init_registers_powerpc_cell32l): Add prototype.
18836 (init_registers_powerpc_cell64l): Likewise.
18837 (ppc_arch_setup): Detect Cell/B.E. architecture.
18839 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18841 * Makefile.in (datarootdir): New variable.
18843 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18845 * linux-low.c (linux_write_memory): Update debugging output.
18846 * Makefile.in (clean): Add new descriptions.
18847 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18848 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18849 * configure.srv: Add new files for arm*-*-linux*.
18850 * linux-arm-low.c: Add new declarations.
18851 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18852 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18853 (HWCAP_VFPv3D16): New.
18854 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18855 instead of __IWMMXT__.
18856 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18857 (arm_arch_setup): New.
18858 (target_regsets): Remove #ifdef. Add VFP regset.
18859 (the_low_target): Use arm_arch_setup.
18861 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18863 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18864 the main thread again.
18866 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18868 Adding Neutrino gdbserver.
18869 * configure: Regenerated.
18870 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18871 * configure.srv (i[34567]86-*-nto*): New target.
18872 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18873 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18874 (nto_comctrl) [__QNX__]: New function.
18875 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18877 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18879 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18882 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18883 Pedro Alves <pedro@codesourcery.com>
18885 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18886 don't support CONTEXT_EXTENDED_REGISTERS.
18887 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18888 (the_low_target): Install them.
18889 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18890 failing with ERROR_PIPE_NOT_CONNECTED.
18892 2009-06-30 Doug Evans <dje@google.com>
18893 Pierre Muller <muller@ics.u-strasbg.fr>
18895 Add h/w watchpoint support to x86-linux, win32-i386.
18896 * Makefile.in (SFILES): Add i386-low.c
18897 (i386_low_h): Define.
18898 (i386-low.o): Add dependencies.
18899 (linux-x86-low.o): Add i386-low.h dependency.
18900 (win32-i386-low.o): Ditto.
18901 * i386-low.c: New file.
18902 * i386-low.h: New file.
18903 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18904 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18905 * linux-low.c (linux_add_process): Initialize arch_private.
18906 (linux_remove_process): Free arch_private.
18907 (add_lwp): Initialize arch_private.
18908 (delete_lwp): Free arch_private.
18909 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18911 * linux-low.h (process_info_private): New member arch_private.
18912 (lwp_info): New member arch_private.
18913 (linux_target_ops): New members new_process, new_thread,
18915 (ptid_of): New macro.
18916 * linux-x86-low.c: Include stddef.h, i386-low.h.
18917 (arch_process_info): New struct.
18918 (arch_lwp_info): New struct.
18919 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18920 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18921 (i386_dr_low_get_status): New function.
18922 (x86_insert_point, x86_remove_point): New functions.
18923 (x86_stopped_by_watchpoint): New function.
18924 (x86_stopped_data_address): New function.
18925 (x86_linux_new_process, x86_linux_new_thread): New functions.
18926 (x86_linux_prepare_to_resume): New function.
18927 (the_low_target): Add entries for insert_point, remove_point,
18928 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18930 * server.c (debug_hw_points): New global.
18931 (monitor_show_help): Document set debug-hw-points.
18932 (handle_query): Process "set debug-hw-points".
18933 * server.h (debug_hw_points): Declare.
18934 (paddress): Declare.
18935 * utils.c (NUMCELLS, CELLSIZE): New macros.
18936 (get_sell, xsnprintf, paddress): New functions.
18937 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18938 remove_point, stopped_by_watchpoint, stopped_data_address.
18939 * win32-i386-low.c: Include i386-low.h.
18940 (debug_reg_state): Replaces dr.
18941 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18942 (i386_dr_low_get_status): New function.
18943 (i386_insert_point, i386_remove_point): New functions.
18944 (i386_stopped_by_watchpoint): New function.
18945 (i386_stopped_data_address): New function.
18946 (i386_initial_stuff): Update.
18947 (get_thread_context,set_thread_context,i386_thread_added): Update.
18948 (the_low_target): Add entries for insert_point,
18949 remove_point, stopped_by_watchpoint, stopped_data_address.
18950 * win32-low.c (win32_insert_watchpoint): New function.
18951 (win32_remove_watchpoint): New function.
18952 (win32_stopped_by_watchpoint): New function.
18953 (win32_stopped_data_address): New function.
18954 (win32_target_ops): Add entries for insert_watchpoint,
18955 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18956 * win32-low.h (win32_target_ops): New members insert_point,
18957 remove_point, stopped_by_watchpoint, stopped_data_address.
18959 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18961 * server.c (process_serial_event): Re-return unsupported, not
18962 error, if the type isn't recognized. Re-allow supporting only
18963 insert or remove packets. Also call require_running for
18964 breakpoints. Add missing break statement to default case. Tidy.
18965 * target.h (struct target_ops): Rename insert_watchpoint to
18966 insert_point, and remove_watchpoint to remove_point.
18968 * linux-low.h (struct linux_target_ops): Likewise.
18969 * linux-low.c (linux_insert_watchpoint): Rename to ...
18970 (linux_insert_point): ... this. Adjust.
18971 (linux_remove_watchpoint): Rename to ...
18972 (linux_remove_point): ... this. Adjust.
18973 (linux_target_ops): Adjust.
18974 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18975 (cris_insert_point): ... this.
18976 (cris_remove_watchpoint): Rename to ...
18977 (cris_remove_point): ... this.
18978 (the_low_target): Adjust.
18980 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18982 * server.c (handle_v_kill): Pass signal_pid to
18983 kill_inferior if multi_process is zero.
18985 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18987 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18988 * target.h (target_ops): Comment for *_watchpoint to make it clear
18989 the functions can get types '0' and '1'.
18991 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18993 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18994 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18995 * regcache.c (get_regcache): Likewise.
18996 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18997 * win32-low.c (child_fetch_inferior_registers): Remove check for
19000 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19001 Pedro Alves <pedro@codesourcery.com>
19003 * target.h (struct target_ops) <supports_multi_process>: New
19005 (target_supports_multi_process): New.
19006 * server.c (handle_query): Even if GDB reports support, only
19007 enable multi-process if the target also supports it. Report
19008 multi-process support only if the target backend supports it.
19009 * linux-low.c (linux_supports_multi_process): New function.
19010 (linux_target_ops): Install it as target_supports_multi_process
19013 2009-05-24 Doug Evans <dje@google.com>
19015 Global renaming of find_thread_pid to find_thread_ptid.
19016 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19017 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19018 All callers updated.
19020 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19021 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19024 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19025 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19026 (linux_resume_one_lwp): Ditto.
19028 2009-05-23 Doug Evans <dje@google.com>
19030 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19031 from struct inferior_list_entry * to struct lwp_info *.
19032 All callers updated.
19034 2009-05-13 Doug Evans <dje@google.com>
19036 * linux-x86-low.c: Don't include assert.h.
19037 (x86_siginfo_fixup): Use fatal, not assert.
19038 (x86_arch_setup): Fix comment.
19040 2009-05-12 Doug Evans <dje@google.com>
19042 Biarch support for i386/amd64 gdbserver.
19043 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19044 Add linux-x86-low.c.
19045 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19046 (linux-x86-low.o): Add.
19047 * linux-x86-64-low.c: Delete.
19048 * linux-i386-low.c: Delete.
19049 * linux-x86-low.c: New file.
19050 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19052 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19054 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19055 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19056 (linux_child_pid_to_exec_file): New function.
19057 (elf_64_header_p, elf_64_file_p): New functions.
19058 (siginfo_fixup): New function.
19059 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19060 give target a chance to convert layout.
19061 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19062 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19064 2009-05-07 Doug Evans <dje@google.com>
19066 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19067 (regsets_store_inferior_registers): Ditto.
19069 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19073 * linux-low.c (must_set_ptrace_flags): Delete.
19074 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19076 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19077 `lwp->must_set_ptrace_flags' instead.
19078 (linux_wait_for_event_1): Set ptrace options here.
19079 (linux_wait_1): ... not here.
19081 2009-04-30 Doug Evans <dje@google.com>
19083 * inferiors.c (started_inferior_callback): New function.
19084 (attached_inferior_callback): New function.
19085 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19086 * server.c (print_started_pid, print_attached_pid): New functions.
19087 (detach_or_kill_for_exit): New function.
19088 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19089 * server.h (have_started_inferiors_p): Declare.
19090 (have_attached_inferiors_p): Declare.
19092 * inferiors.c (remove_process): Fix memory leak, free process.
19093 * linux-low.c (linux_remove_process): New function.
19094 (linux_kill): Call it instead of remove_process.
19095 (linux_detach, linux_wait_1): Ditto.
19097 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19099 * configure.srv: Add x86 Windows CE target.
19101 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19103 * inferiors.c (get_thread_process): Make global.
19104 * server.h (get_thread_process): Add prototype.
19105 * thread-db.c (find_one_thread): Use get_thread_process
19106 instead of current_process.
19107 (thread_db_get_tls_address): Do not crash if called when
19108 thread layer is not yet initialized.
19110 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19112 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19113 * spu-low.c (current_tid): Rename to ...
19114 (current_ptid): ... this.
19115 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19116 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19117 ptid_get_lwp (current_ptid) instead of current_tid.
19118 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19119 instead of current_tid. Use find_process_pid to verify pid
19120 argument is valid. Pass proper argument to remove_process.
19121 (spu_thread_alive): Compare current_ptid instead of current_tid.
19122 (spu_resume): Likewise.
19124 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19126 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19129 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19131 Implement the multiprocess extensions, and add linux multiprocess
19134 * server.h (ULONGEST): Declare.
19135 (struct ptid, ptid_t): New.
19136 (minus_one_ptid, null_ptid): Declare.
19137 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19138 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19139 (struct inferior_list_entry): Change `id' type from unsigned from
19141 (struct sym_cache, struct breakpoint, struct
19142 process_info_private): Forward declare.
19143 (struct process_info): Declare.
19144 (current_process): Declare.
19145 (all_processes): Declare.
19146 (initialize_inferiors): Declare.
19147 (add_thread): Adjust to use ptid_t.
19148 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19149 (add_process, remove_process, find_thread_pid): Declare.
19150 (find_inferior_id): Adjust to use ptid_t.
19151 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19152 (multi_process): Declare.
19153 (push_event): Adjust to use ptid_t.
19154 (read_ptid, write_ptid): Declare.
19155 (prepare_resume_reply): Adjust to use ptid_t.
19156 (clear_symbol_cache): Declare.
19157 * inferiors.c (all_processes): New.
19158 (null_ptid, minus_one_ptid): New.
19159 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19160 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19161 (add_thread): Change unsigned long to ptid. Remove gdb_id
19163 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19164 (gdb_id_to_thread): Rename to ...
19165 (find_thread_pid): ... this. Change unsigned long to ptid.
19166 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19167 (loaded_dll, pull_pid_from_list): Adjust.
19168 (add_process, remove_process, find_process_pid)
19169 (get_thread_process, current_process, initialize_inferiors): New.
19170 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19171 (struct target_waitstatus) <related_pid>: Ditto.
19172 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19173 return type to int.
19174 (struct target_ops) <join>: Add `pid' argument.
19175 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19176 (struct target_ops) <wait>: Add `ptid' field. Change return type
19178 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19179 (mywait): Add `ptid' argument. Change return type to ptid_t.
19180 (target_pid_to_str): Declare.
19181 * target.c (set_desired_inferior): Adjust to use ptids.
19182 (mywait): Add new `ptid' argument. Adjust.
19183 (target_pid_to_str): New.
19184 * mem-break.h (free_all_breakpoints): Declare.
19185 * mem-break.c (breakpoints): Delelete.
19186 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19187 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19188 to use per-process breakpoint list.
19189 (free_all_breakpoints): New.
19190 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19191 (symbol_cache, all_symbols_looked_up): Delete.
19193 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19195 (prepare_resume_reply): Change ptid argument's type from unsigned
19196 long to ptid_t. Adjust. Implement W;process and X;process.
19197 (free_sym_cache, clear_symbol_cache): New.
19198 (look_up_one_symbol): Adjust to per-process symbol cache. *
19199 * server.c (cont_thread, general_thread, step_thread): Change type
19201 (attached): Delete.
19202 (multi_process): New.
19203 (last_ptid): Change type to ptid_t.
19204 (struct vstop_notif) <ptid>: Change type to ptid_t.
19205 (queue_stop_reply, push_event): Change `ptid' argument's type to
19207 (discard_queued_stop_replies): Add `pid' argument.
19208 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19209 changes. Don't reference the `attached' global.
19210 (attach_inferior): Adjust to mywait interface changes.
19211 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19212 features. Handle and report "multiprocess+". Handle
19214 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19216 (handle_v_kill): New.
19217 (handle_v_stopped): Adjust to use target_pid_to_str.
19218 (handle_v_requests): Allow multiple attaches and runs when
19219 multiprocess extensions are in effect. Handle "vKill".
19220 (myresume): Adjust to use ptids.
19221 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19222 (handle_status): Adjust to discard_queued_stop_replies interface
19224 (first_thread_of, kill_inferior_callback)
19225 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19226 (main): Call initialize_inferiors. Adjust to use ptids, killing
19227 and detaching from all inferiors. Handle multiprocess packet
19229 * linux-low.h: Include gdb_proc_service.h.
19230 (struct process_info_private): New.
19231 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19232 <lwpid_of>: Use ptid_get_lwp.
19233 (get_lwp_thread): Adjust.
19234 (struct lwp_info): Add `dead' member.
19235 (find_lwp_pid): Declare.
19236 * linux-low.c (thread_db_active): Delete.
19237 (new_inferior): Adjust comment.
19238 (inferior_pid): Delete.
19239 (linux_add_process): New.
19240 (handle_extended_wait): Adjust.
19241 (add_lwp): Change unsigned long to ptid.
19242 (linux_create_inferior): Add process to processes table. Adjust
19243 to use ptids. Don't set new_inferior here.
19244 (linux_attach_lwp): Rename to ...
19245 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19246 it. Adjust to use ptids.
19247 (linux_attach_lwp): New.
19248 (linux_attach): Add process to processes table. Don't set
19250 (struct counter): New.
19251 (second_thread_of_pid_p, last_thread_of_process_p): New.
19252 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19253 multiple processes.
19254 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19255 processes. Remove process from process table.
19256 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19257 to multiple processes.
19258 (any_thread_of): New.
19259 (linux_detach): Add `pid' argument, and handle it. Remove process
19260 from processes table.
19261 (linux_join): Add `pid' argument. Handle it.
19262 (linux_thread_alive): Change unsighed long argument to ptid_t.
19263 Consider dead lwps as not being alive.
19264 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19265 threads we're not interested in.
19266 (same_lwp, find_lwp_pid): New.
19267 (linux_wait_for_lwp): Change `pid' argument's type from int to
19269 (linux_wait_for_event): Rename to ...
19270 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19271 from int to ptid_t. Adjust.
19272 (linux_wait_for_event): New.
19273 (linux_wait_1): Add `ptid' argument. Change return type to
19274 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19275 that exit from the process table.
19276 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19278 (mark_lwp_dead): New.
19279 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19280 stopping all threads, mark its main lwp as dead.
19281 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19283 (fetch_register, usr_store_inferior_registers)
19284 (regsets_fetch_inferior_registers)
19285 (regsets_store_inferior_registers, linux_read_memory)
19286 (linux_write_memory): Inline `inferior_pid'.
19287 (linux_look_up_symbols): Adjust to use per-process
19288 `thread_db_active'.
19289 (linux_request_interrupt): Adjust to use ptids.
19290 (linux_read_auxv): Inline `inferior_pid'.
19291 (initialize_low): Don't reference thread_db_active.
19292 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19293 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19294 (ps_getpid): Return the pid of the current inferior.
19295 * thread-db.c (proc_handle, thread_agent): Delete.
19296 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19298 (find_one_thread): Change argument type to ptid_t. Adjust to
19300 (maybe_attach_thread): Adjust to per-process data and ptids.
19301 (thread_db_find_new_threads): Ditto.
19302 (thread_db_init): Ditto.
19303 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19304 processes table. Adjust to use ptids.
19305 (spu_kill, spu_detach): Adjust interface. Remove process from
19307 (spu_join, spu_thread_alive): Adjust interface.
19308 (spu_wait): Adjust interface. Remove process from processes
19309 table. Adjust to use ptids.
19310 * win32-low.c (current_inferior_tid): Delete.
19311 (current_inferior_ptid): New.
19312 (debug_event_ptid): New.
19313 (thread_rec): Take a ptid. Adjust.
19314 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19315 (child_delete_thread): Ditto.
19316 (do_initial_child_stuff): Add `attached' argument. Add process to
19318 (child_fetch_inferior_registers, child_store_inferior_registers):
19320 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19321 (win32_attach): Pass 1 to do_initial_child_stuff.
19322 (win32_kill): Adjust interface. Remove process from processes
19324 (win32_detach): Ditto.
19325 (win32_join): Adjust interface.
19326 (win32_thread_alive): Take a ptid.
19327 (win32_resume): Adjust to use ptids.
19328 (get_child_debug_event): Ditto.
19329 (win32_wait): Adjust interface. Remove exiting process from
19332 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19334 Non-stop mode support.
19336 * server.h (non_stop): Declare.
19337 (gdb_client_data, handler_func): Declare.
19338 (delete_file_handler, add_file_handler, start_event_loop):
19340 (handle_serial_event, handle_target_event, push_event)
19341 (putpkt_notif): Declare.
19342 * target.h (enum resume_kind): New.
19343 (struct thread_resume): Replace `step' field by `kind' field.
19344 (TARGET_WNOHANG): Define.
19345 (struct target_ops) <wait>: Add `options' argument.
19346 <supports_non_stop, async, start_non_stop>: New fields.
19347 (target_supports_non_stop, target_async): New.
19348 (start_non_stop): Declare.
19349 (mywait): Add `options' argument.
19350 * target.c (mywait): Add `options' argument. Print child exit
19351 notifications here.
19352 (start_non_stop): New.
19353 * server.c (non_stop, own_buf, mem_buf): New globals.
19354 (struct vstop_notif): New.
19355 (notif_queue): New global.
19356 (queue_stop_reply, push_event, discard_queued_stop_replies)
19357 (send_next_stop_reply): New.
19358 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19360 (attach_inferior): In non-stop mode, don't wait for the target
19362 (handle_general_set): Handle QNonStop.
19363 (handle_query): When handling qC, return the current general
19364 thread, instead of the first thread of the list.
19365 (handle_query): If the backend supports non-stop mode, include
19366 QNonStop+ in the qSupported query response.
19367 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19369 (handle_v_attach, handle_v_run): Handle non-stop mode.
19370 (handle_v_stopped): New.
19371 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19372 (myresume): Adjust to use resume_kind. Handle non-stop.
19373 (queue_stop_reply_callback): New.
19374 (handle_status): Handle non-stop mode.
19375 (main): Clear non_stop flag on reconnection. Use the event-loop.
19376 Refactor serial protocol handling from here ...
19377 (process_serial_event): ... to this new function. When GDB
19378 selects any thread, select one here. In non-stop mode, wait until
19379 GDB acks all pending events before exiting.
19380 (handle_serial_event, handle_target_event): New.
19381 * remote-utils.c (remote_open): Install remote_desc in the event
19383 (remote_close): Remove remote_desc from the event loop.
19384 (putpkt_binary): Rename to...
19385 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19386 (putpkt_binary): New as wrapper around putpkt_binary_1.
19387 (putpkt_notif): New.
19388 (prepare_resume_reply): In non-stop mode, don't change the
19390 * event-loop.c: New.
19391 * Makefile.in (OBJ): Add event-loop.o.
19392 (event-loop.o): New rule.
19394 * linux-low.h (pid_of): Moved here.
19396 (get_lwp_thread): Use lwpid_of.
19397 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19398 * linux-low.c (pid_of): Delete.
19399 (inferior_pid): Use lwpid_of.
19400 (linux_event_pipe): New.
19401 (target_is_async_p): New.
19403 (handle_extended_wait): Use lwpid_of.
19404 (add_lwp): Don't set lwpid field.
19405 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19406 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19407 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19408 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19409 first. Adjust to linux_wait_for_event interface changes. Use
19411 (linux_detach): Don't delete the main lwp here.
19412 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19413 (status_pending_p): Don't consider explicitly suspended lwps.
19414 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19415 pointer. Add OPTIONS argument. Change return type to int. Use
19416 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19417 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19418 pointer. Add status pointer argument. Return a pid instead of a
19419 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19420 changes. In non-stop mode, don't switch to a random thread.
19421 (linux_wait): Rename to...
19422 (linux_wait_1): ... this. Add target_options argument, and handle
19423 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19424 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19425 clean exit and signal exit code. Don't stop all threads in
19426 non-stop mode. In all-stop mode, only stop all threads when
19427 reporting a stop to GDB. Handle explicit thread stop requests.
19428 (async_file_flush, async_file_mark): New.
19430 (send_sigstop): Use lwpid_of.
19431 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19432 interface changes. In non-stop mode, don't switch to a random
19434 (linux_resume_one_lwp): Use lwpid_of.
19435 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19436 (linux_resume_one_thread): ... this. Handle resume_stop. In
19437 non-stop mode, don't look for pending flag in all threads.
19438 (resume_status_pending_p): Don't consider explicitly suspended
19440 (my_waitpid): Reimplement. Emulate __WALL.
19441 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19443 (sigchld_handler, linux_supports_non_stop, linux_async)
19444 (linux_start_non_stop): New.
19445 (linux_target_ops): Register linux_supports_non_stop, linux_async
19446 and linux_start_non_stop.
19447 (initialize_low): Install SIGCHLD handler.
19448 * thread-db.c (thread_db_create_event, find_one_thread)
19449 (thread_db_get_tls_address): Use lwpid_of.
19450 * win32-low.c (win32_detach): Adjust to use resume_kind.
19451 (win32_wait): Add `options' argument.
19452 * spu-low.c (spu_resume): Adjust to use resume_kind.
19453 (spu_wait): Add `options' argument.
19455 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19457 Decouple target code from remote protocol.
19459 * target.h (enum target_waitkind): New.
19460 (struct target_waitstatus): New.
19461 (struct target_ops) <wait>: Return an unsigned long. Take a
19462 target_waitstatus pointer instead of a char pointer.
19463 (mywait): Likewise.
19464 * target.c (mywait): Change prototype to return an unsigned long.
19465 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19466 * server.h (thread_from_wait, old_thread_from_wait): Delete
19468 (prepare_resume_reply): Change prototype to take a
19470 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19471 (last_status, last_ptid): New.
19472 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19473 pid instead of a signal.
19474 (attach_inferior): Remove "status" and "signal" parameters.
19476 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19478 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19479 (handle_v_requests, myresume): Remove "status" and "signal"
19480 parameters. Adjust.
19481 (handle_status): New.
19482 (main): Delete local `status'. Adjust.
19483 * remote-utils.c: Include target.h.
19484 (prepare_resume_reply): Change prototype to take a
19485 target_waitstatus. Adjust.
19487 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19489 * spu-low.c (spu_wait): Adjust.
19490 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19492 (win32_wait): Adjust.
19494 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19496 * target.h (struct thread_resume): Delete leave_stopped member.
19497 (struct target_ops): Add a `n' argument to the `resume' callback.
19498 * server.c (start_inferior): Adjust.
19499 (handle_v_cont, myresume): Adjust.
19500 * linux-low.c (check_removed_breakpoint): Adjust to resume
19501 interface change, and to removed leave_stopped field.
19502 (resume_ptr): Delete.
19503 (struct thread_resume_array): New.
19504 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19505 resume interface change.
19506 (linux_continue_one_thread, linux_queue_one_thread)
19507 (resume_status_pending_p): Check if the resume field is NULL
19508 instead of checking the leave_stopped member.
19509 (linux_resume): Adjust to the target resume interface change.
19510 * spu-low.c (spu_resume): Adjust to the target resume interface
19512 * win32-low.c (win32_detach, win32_resume): Ditto.
19514 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19516 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19518 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19520 (linux_continue_one_thread): Only preserve the stepping flag if
19521 there's a pending breakpoint.
19523 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19525 * server.c (main): After the inferior having exited, call
19526 remote_close before exiting gdbserver.
19528 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19530 Fix size of FPSCR in Power 7 processors.
19531 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19532 (PPC_FEATURE_HAS_DFP): New #define.
19533 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19536 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19538 * server.c (handle_query) Whitespace and formatting.
19540 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19542 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19543 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19544 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19545 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19546 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19547 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19548 Makefile.in, configure.ac: Fix whitespace throughout.
19549 * configure: Regenerate.
19551 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19553 * inferiors.c (find_inferior): Make it safe for the callback
19554 function to delete the currently iterated inferior.
19556 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19558 * Makefile.in (linuw_low_h): Move higher.
19559 (thread-db.o): Depend on $(linux_low_h).
19561 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19563 Rename "process" to "lwp" throughout.
19565 * linux-low.c (all_processes): Rename to...
19566 (all_lwps): ... this.
19567 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19568 (add_process): Rename to ...
19569 (add_lwp): ... this. Adjust.
19570 (linux_create_inferior): Adjust.
19571 (linux_attach_lwp): Adjust.
19572 (linux_attach): Adjust.
19573 (linux_kill_one_process): Rename to ...
19574 (linux_kill_one_lwp): ... this. Adjust.
19575 (linux_kill): Adjust.
19576 (linux_detach_one_process): Rename to ...
19577 (linux_detach_one_lwp): ... this. Adjust.
19578 (linux_detach): Adjust.
19579 (check_removed_breakpoint): Adjust.
19580 (status_pending_p): Adjust.
19581 (linux_wait_for_process): Rename to ...
19582 (linux_wait_for_lwp): ... this. Adjust.
19583 (linux_wait_for_event): Adjust.
19584 (send_sigstop): Adjust.
19585 (wait_for_sigstop): Adjust.
19586 (stop_all_processes): Rename to ...
19587 (stop_all_lwps): ... this.
19588 (linux_resume_one_process): Rename to ...
19589 (linux_resume_one_lwp): ... this. Adjust.
19590 (linux_set_resume_request, linux_continue_one_thread)
19591 (linux_queue_one_thread, resume_status_pending_p)
19592 (usr_store_inferior_registers, regsets_store_inferior_registers)
19593 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19595 * linux-low.h (get_process): Rename to ...
19596 (get_lwp): ... this. Adjust.
19597 (get_thread_process): Rename to ...
19598 (get_thread_lwp): ... this. Adjust.
19599 (get_process_thread): Rename to ...
19600 (get_lwp_thread): ... this. Adjust.
19601 (struct process_info): Rename to ...
19602 (struct lwp_info): ... this.
19603 (all_processes): Rename to ...
19604 (all_lwps): ... this.
19605 * proc-service.c (ps_lgetregs): Adjust.
19606 * thread-db.c (thread_db_create_event, find_one_thread)
19607 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19609 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19611 * server.c (handle_query): Handle "qAttached".
19613 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19615 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19616 GPLv3, update license URL.
19618 2009-03-01 Doug Evans <dje@google.com>
19620 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19621 (server_h): Add gdb_signals.h.
19622 (signals.o): Update.
19623 * server.h (target_signal_from_host,target_signal_to_host_p)
19624 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19626 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19628 * remote-utils.c (getpkt): Also generate remote-debug
19629 information if noack_mode is set.
19631 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19633 * server.c (handle_query): Report qXfer:siginfo:read and
19634 qXfer:siginfo:write as supported and handle them.
19635 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19636 * linux-low.c (linux_xfer_siginfo): New.
19637 (linux_target_ops): Set it.
19639 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19641 * server.c (gdbserver_usage): Mention --remote-debug.
19642 (main): Accept '--remote-debug' switch.
19644 2009-01-18 Doug Evans <dje@google.com>
19646 * regcache.c (new_register_cache): No need to check result of xcalloc.
19647 * server.c (handle_search_memory): Back out calls to xmalloc,
19648 result is checked and error is returned to user upon failure.
19649 (handle_query): Ditto. Add more checks for result of malloc.
19650 (handle_v_cont): Check result of malloc, report error back to
19652 (handle_v_run): Ditto. Call freeargv.
19653 * server.h (freeargv): Declare.
19654 * utils.c (freeargv): New fn.
19656 2009-01-15 Doug Evans <dje@google.com>
19658 * gdbreplay.c (perror_with_name): Make arg const char *.
19659 * server.h (target_signal_to_name): Make return type const char *.
19660 * thread-db.c (thread_db_err_str): Make return type const char *.
19661 * utils.c (perror_with_name): Make arg const char *.
19663 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19665 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19666 when handling a EXIT_PROCESS_DEBUG_EVENT.
19668 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19670 * gdbreplay.c (gdbreplay_version): Update copyright year.
19671 * server.c (gdbserver_version): Likewise.
19673 2009-01-05 Doug Evans <dje@google.com>
19675 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19676 (handle_extended_wait): Improve comment.
19678 2008-12-13 Doug Evans <dje@google.com>
19680 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19681 * server.h (ATTR_MALLOC): New macro.
19682 (xmalloc,xcalloc,xstrdup): Declare.
19683 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19684 * inferiors.c: Ditto.
19685 * linux-low.c: Ditto.
19686 * mem-break.c: Ditto.
19687 * regcache.c: Ditto.
19688 * remote-utils.c: Ditto.
19691 * win32-low.c: Ditto.
19693 2008-12-12 Doug Evans <dje@google.com>
19695 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19696 in debugging printf.
19698 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19700 2008-12-09 Doug Evans <dje@google.com>
19702 * linux-low.h (struct process_info): Delete member tid, unused.
19703 * thread-db.c (find_one_thread): Update.
19704 (maybe_attach_thread): Update.
19706 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19708 * target.h (struct target_ops): Add qxfer_osdata member.
19709 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19711 (linux_qxfer_osdata): New functions.
19712 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19714 * server.c (handle_query): Handle "qXfer:osdata:read:".
19715 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19716 (buffer_xml_printf): New functions.
19717 * server.h (struct buffer): New.
19718 (buffer_grow_str, buffer_grow_str0): New macros.
19719 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19720 (buffer_xml_printf): Declare.
19722 2008-11-24 Doug Evans <dje@google.com>
19724 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19726 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19728 * server.c (handle_v_run): Always use the supplied argument list.
19730 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19732 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19733 (xtensa_regmap_table): Add entry for scompare1.
19735 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19737 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19738 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19739 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19740 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19741 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19742 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19743 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19744 XML target descriptions.
19745 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19746 when inferior is running on an ISA 2.05 or later processor. Add
19747 special case to return offset for full 64-bit slot of FPSCR when
19750 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19752 * Makefile.in (SFILES, clean): Added sparc64 files.
19753 (reg-sparc64.o, reg-sparc64.c): New.
19754 * configure.srv (sparc*-*-linux*): New configuration.
19755 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19756 syscall arguments for SPARC.
19757 (regsets_store_inferior_registers): Likewise.
19758 * linux-sparc-low.c: New file.
19760 2008-10-21 Doug Evans <dje@google.com>
19762 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19763 (READLINE_DIR,READLINE_DEP): Delete.
19764 (INTERNAL_CFLAGS): Update.
19765 (LINTFLAGS): Update.
19767 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19769 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19770 whole argv from the last run, not just argv[0].
19772 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19774 * regcache.c (new_register_cache): Return NULL if the register
19775 cache size isn't known yet.
19776 (free_register_cache): Avoid dereferencing a NULL regcache.
19778 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19780 * configure.srv: Merge MIPS and MIPS64.
19782 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19784 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19786 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19788 * Makefile.in: Add required vsx dependencies.
19790 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19791 Declare init_registers_powerpc_vsx32l.
19792 Declare init_registers_powerpc_vsx64l.
19793 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19794 (ppc_arch_setup): Check for VSX in hwcap.
19795 (ppc_fill_vsxregset): New function.
19796 (ppc_store_vsxregset): New function.
19797 Add new VSX entry in regset_info target_regsets.
19799 * configure.srv: Add new VSX dependencies.
19801 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19803 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19804 (remote_open): Set or clear transport_is_reliable.
19805 (putpkt_binary): Don't expect acks in noack mode.
19806 (getpkt): Don't send ack/nac in noack mode.
19807 * server.c (handle_general_set): Handle QStartNoAckMode.
19808 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19810 (main): Reset noack_mode on every connection.
19811 * server.h (noack_mode): Declare.
19813 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19815 * Makefile.in (GDBREPLAY_OBS): New variable.
19816 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19818 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19819 Daniel Jacobowitz <dan@codesourcery.com>
19821 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19822 (usr_store_inferior_registers): Likewise.
19823 (regsets_store_inferior_registers): Likewise.
19825 2008-07-31 Rolf Jansen <rj@surtec.com>
19826 Pedro Alves <pedro@codesourcery.com>
19828 * configure.ac: Check for memmem declaration.
19829 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19830 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19831 (disable_packet_qfThreadInfo): Unconditionally compile.
19832 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19833 * configure, config.in: Regenerate.
19835 2008-07-28 Doug Kwan <dougkwan@google.com>
19837 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19838 (linux_write_memory): Remove declaration of errno.
19840 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19842 * linux-low.c (handle_extended_wait): Do not use "status"
19843 variable uninitialized.
19845 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19847 * server.c (handle_v_attach): Inhibit reporting dll changes.
19849 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19851 * remote-utils.c (prepare_resume_reply): If requested, don't
19852 output "thread:TID" in the T stop reply.
19854 * server.c (disable_packet_vCont, disable_packet_Tthread)
19855 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19856 (handle_query): If requested, disable support for qC, qfThreadInfo
19858 (handle_v_requests): If requested, disable support for vCont.
19859 (gdbserver_show_disableable): New.
19860 (main): Handle --disable-packet and --disable-packet=LIST.
19862 * server.h (disable_packet_vCont, disable_packet_Tthread)
19863 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19865 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19867 * server.c (gdbserver_usage): Mention --version.
19869 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19871 * Makefile.in (gdbreplay.o): New rule.
19873 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19875 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19876 message, not gdbserver.
19878 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19879 Nathan Sidwell <nathan@codesourcery.com>
19880 Joseph Myers <joseph@codesourcery.com>
19882 * acinclude.m4: Include ../../config/acx.m4.
19883 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19884 * configure, config.in: Regenerate.
19885 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19886 * server.c (gdbserver_version): Print PKGVERSION.
19887 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19888 (main): Adjust gdbserver_usage calls.
19889 * gdbreplay.c (version, host_name): Add declarations.
19890 (gdbreplay_version, gdbreplay_usage): New.
19891 (main): Accept --version and --help options.
19893 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19895 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19896 (arm_breakpoint_at): Handle Thumb.
19897 (the_low_target): Add comment.
19899 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19901 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19903 2008-05-09 Doug Evans <dje@google.com>
19905 * server.h (decode_search_memory_packet): Declare.
19906 * remote-utils.c (decode_search_memory_packet): New fn.
19907 * server.c (handle_search_memory_1): New fn.
19908 (handle_search_memory): New fn.
19909 (handle_query): Process qSearch:memory packets.
19911 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19913 * regcache.c (registers_length): Remove.
19914 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19915 full register packet.
19916 * regcache.h (registers_length): Remove prototype.
19917 * server.h (PBUFSIZ): Define to 16384.
19919 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19921 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19922 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19923 powerpc-64l.o, and powerpc-altivec64l.o.
19924 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19925 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19926 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19927 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19928 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19931 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19932 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19933 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19934 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19935 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19936 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19937 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19938 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19939 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19940 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19943 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19944 (init_registers_powerpc_32l): ... this new prototype.
19945 (init_registers_powerpc_32): Remove, replace by ...
19946 (init_registers_powerpc_altivec32l): ... this new prototype.
19947 (init_registers_powerpc_e500): Remove, replace by ...
19948 (init_registers_powerpc_e500l): ... this new prototype.
19949 (init_registers_ppc64): Remove, replace by ...
19950 (init_registers_powerpc_64l): ... this new prototype.
19951 (init_registers_powerpc_64): Remove, replace by ...
19952 (init_registers_powerpc_altivec64l): ... this new prototype.
19953 (ppc_num_regs): Set to 73.
19954 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19955 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19956 (ppc_cannot_store_register): Handle orig_r3 and trap.
19957 (ppc_arch_setup): Update init_registers_... calls.
19958 (ppc_fill_gregset): Handle orig_r3 and trap.
19960 * inferiors.c (clear_inferiors): Reset current_inferior.
19962 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19964 * acinclude.m4: Add override.m4.
19965 * configure: Regenerate.
19967 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19969 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19970 initial call to init_register_ppc64.
19972 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19974 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19975 single powerpc*-*-linux* case.
19976 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19978 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19980 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19981 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19983 * linux-ppc-low.c: Include <elf.h>.
19984 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19985 (ppc_hwcap): New global variable.
19986 (ppc_regmap): Remove __SPE__ #ifdef sections.
19987 (ppc_regmap_e500): New global variable.
19988 (ppc_cannot_store_register): Update __SPE__ special case.
19989 (ppc_get_hwcap): New function.
19990 (ppc_arch_setup): Use it to determine whether inferior supports
19991 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19992 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19993 Do not access registers if target does not support AltiVec.
19994 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19995 Do not access registers if target does not support SPE.
19996 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19998 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20000 * linux-low.c (disabled_regsets, num_regsets): New.
20001 (use_regsets_p): Delete.
20002 (linux_wait_for_process): Clear disabled_regsets.
20003 (regsets_fetch_inferior_registers): Check and set it.
20004 (regsets_store_inferior_registers): Likewise.
20005 (linux_fetch_registers, linux_store_registers): Do not use
20007 (initialize_low): Allocate disabled_regsets.
20009 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20011 * Makefile.in (LIBOBJS): New.
20012 (OBS): Use LIBOBJS.
20013 (memmem.o): New rule.
20014 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20015 * configure: Regenerated.
20017 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20019 * server.c (handle_query): Never return "unsupported" for
20020 qXfer:features:read queries.
20022 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20024 * server.c (get_features_xml): Fix inverted condition.
20025 (handle_query): Always support qXfer:feature:read.
20027 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20029 * server.c (wrapper_argv): New.
20030 (start_inferior): Handle wrapper_argv. If set, expect an extra
20032 (gdbserver_usage): Document --wrapper.
20033 (main): Parse --wrapper.
20035 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20037 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20038 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20039 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20040 (ppc_set_pc): Likewise.
20041 (ppc_arch_setup): New function.
20042 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20043 of collect_register.
20044 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20046 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20048 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20049 instead of linux-ppc64-low.o.
20050 * linux-ppc64-low.c: Remove file.
20051 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20052 (linux-ppc64-low.o): Remove rule.
20054 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20055 (init_registers_powerpc_64): Likewise.
20056 (ppc_regmap): Conditionally define depending on __powerpc64__.
20057 (ppc_cannot_store_register): Do not special-case "fpscr" when
20058 compiled on __powerpc64__.
20059 (ppc_collect_ptrace_register): New function.
20060 (ppc_supply_ptrace_register): New function.
20061 (ppc_breakpoint): Change type to "unsigned int".
20062 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20063 (the_low_target): Conditionally provide initializers for the
20064 arch_setup member depending on __powerpc64__. Install
20065 collect_ptrace_register and supply_ptrace_register members.
20067 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20069 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20070 * server.c (gdbserver_xmltarget): Define.
20071 (get_features_xml): Use it to replace "target.xml" and arch_string.
20073 * configure.srv: Remove srv_xmltarget. Add XML files that were
20074 mentioned there to srv_xmlfiles instead. Remove conditional tests
20075 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20076 srv_xmlfiles and srv_regobj to include all possible choices.
20077 * configure.ac (srv_xmltarget): Remove.
20078 (srv_xmlfiles): Do not add "target.xml".
20079 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20080 checks for supplementary target information.
20081 * configure: Regenerate.
20082 * Makefile.in (XML_TARGET): Remove.
20083 (target.xml): Remove rule.
20084 (clean): Do not clean up target.xml.
20085 (.PRECIOUS): Do not mention target.xml.
20087 * target.h (struct target_ops): Remove arch_string member.
20088 * linux-low.c (linux_arch_string): Remove.
20089 (linux_target_ops): Remove arch_string initializer.
20090 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20091 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20092 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20093 * spu-low.c (spu_arch_string): Remove.
20094 (spu_target_ops): Remove arch_string initializer.
20095 * win32-low.c (win32_arch_string): Remove.
20096 (win32_target_ops): Remove arch_string initializer.
20097 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20098 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20099 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20101 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20103 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20104 by collect_ptrace_register and supply_ptrace_register hooks.
20105 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20106 instead of checking for the_low_target.left_pad_xfer.
20107 (usr_store_inferior_registers): Use collect_ptrace_register callback
20108 instead of checking for the_low_target.left_pad_xfer.
20110 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20111 (s390_supply_ptrace_register): Likewise.
20112 (s390_fill_gregset): Call s390_collect_ptrace_register.
20113 (the_low_target): Update.
20115 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20116 (ppc_supply_ptrace_register): Likewise.
20117 (the_low_target): Update.
20119 * linux-i386-low.c (the_low_target): Update.
20120 * linux-x86-64-low.c (the_low_target): Update.
20122 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20124 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20125 reg-s390.o and reg-s390x.o.
20127 * linux-low.c (new_inferior): New global variable.
20128 (linux_create_inferior, linux_attach): Set it.
20129 (linux_wait_for_process): Call the_low_target.arch_setup after the
20130 target has stopped for the first time.
20131 (initialize_low): Do not call the_low_target.arch_setup.
20133 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20134 (s390_set_pc): Likewise.
20135 (s390_arch_setup): New function.
20136 (the_low_target): Use s390_arch_setup as arch_setup routine.
20138 * regcache.c (realloc_register_cache): New function.
20139 (set_register_cache): Call it for each existing regcache.
20141 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20143 * server.h (init_registers): Remove prototype.
20145 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20146 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20147 instead of init_registers ().
20148 * linux-arm-low.c (init_registers_arm): Add prototype.
20149 (init_registers_arm_with_iwmmxt): Likewise.
20150 (the_low_target): Add initializer for arch_setup field.
20151 * linux-cris-low.c (init_registers_cris): Add prototype.
20152 (the_low_target): Add initializer for arch_setup field.
20153 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20154 (the_low_target): Add initializer for arch_setup field.
20155 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20156 (the_low_target): Add initializer for arch_setup field.
20157 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20158 (the_low_target): Add initializer for arch_setup field.
20159 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20160 (the_low_target): Add initializer for arch_setup field.
20161 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20162 (the_low_target): Add initializer for arch_setup field.
20163 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20164 (init_registers_mips64_linux): Likewise.
20165 (the_low_target): Add initializer for arch_setup field.
20166 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20167 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20168 (the_low_target): Add initializer for arch_setup field.
20169 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20170 (init_registers_powerpc_64): Likewise.
20171 (the_low_target): Add initializer for arch_setup field.
20172 * linux-s390-low.c (init_registers_s390): Add prototype.
20173 (init_registers_s390x): Likewise.
20174 (the_low_target): Add initializer for arch_setup field.
20175 * linux-sh-low.c (init_registers_sh): Add prototype.
20176 (the_low_target): Add initializer for arch_setup field.
20177 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20178 (the_low_target): Add initializer for arch_setup field.
20179 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20180 (the_low_target): Add initializer for arch_setup field.
20182 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20183 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20184 instead of init_registers ().
20185 * win32-arm-low.c (init_registers_arm): Add prototype.
20186 (the_low_target): Add initializer for arch_setup field.
20187 * win32-i386-low.c (init_registers_i386): Add prototype.
20188 (the_low_target): Add initializer for arch_setup field.
20190 * spu-low.c (init_registers_spu): Add prototype.
20191 (initialize_low): Call initialie_registers_spu () instead of
20192 initialize_registers ().
20194 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20196 * server.c (handle_v_requests): When handling the vRun and vAttach
20197 packets, if already debugging a process, don't kill it. Return an
20200 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20202 * server.c (handle_query): Correct length check.
20204 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20206 * win32-low.c (do_initial_child_stuff): Add process handle
20207 parameter. Set current_process_handle and current_process_id from the
20208 parameters. Clear globals.
20209 (win32_create_inferior): Don't set current_process_handle and
20210 current_process_id here. Instead pass them on the call to
20211 do_initial_child_stuff.
20212 (win32_attach): Likewise.
20213 (win32_clear_inferiors): New.
20214 (win32_kill): Don't close the current process handle or the
20215 current thread handle here. Instead call win32_clear_inferiors.
20216 (win32_detach): Don't open a new handle to the process. Call
20217 win32_clear_inferiors.
20218 (win32_join): Don't rely on current_process_handle; open a new
20219 handle using the process id.
20220 (win32_wait): Call win32_clear_inferiors when the inferior process
20223 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20225 * server.c (monitor_show_help): Add "exit".
20227 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20229 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20230 (clean): Add reg-xtensa.c.
20231 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20232 * configure.srv (xtensa*-*-linux*) New target.
20233 * linux-xtensa-low.c: New.
20234 * xtensa-xtregs.c: New.
20236 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20238 * hostio.c: Don't include errno.h.
20239 (errno_to_fileio_errno): Move to hostio-errno.
20240 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20241 error number outputting to the target->hostio_last_error callback.
20242 (hostio_packet_error): Use FILEIO_EINVAL directly.
20243 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20244 calls to hostio_error.
20245 * hostio-errno.c: New.
20246 * server.h (hostio_last_error_from_errno): Declare.
20247 * target.h (target_ops): Add hostio_last_error member.
20248 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20249 as hostio_last_error handler.
20250 * spu-low.c (spu_target_ops): Likewise.
20251 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20252 (wince_hostio_last_error): New functions.
20253 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20254 as hostio_last_error handler.
20255 (win32_target_ops) [!_WIN32_WCE]: Register
20256 hostio_last_error_from_errno as hostio_last_error handler.
20257 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20258 (hostio-errno.o): New rule.
20259 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20260 * configure.srv (srv_hostio_err_objs): New variable. Default to
20262 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20263 * configure: Regenerate.
20265 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20267 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20268 (linux_kill, linux_detach): Clean up the process list.
20269 * remote-utils.c (remote_open): Improve port number parsing.
20270 (putpkt_binary, input_interrupt): Only send interrupts if the target
20272 * server.c (extended_protocol): Make static.
20273 (attached): Define earlier.
20274 (exit_requested, response_needed, program_argv): New variables.
20275 (target_running): New.
20276 (start_inferior): Clear attached here.
20277 (attach_inferior): Set attached here.
20278 (require_running): Define.
20279 (handle_query): Use require_running and target_running. Implement
20281 (handle_v_attach, handle_v_run): New.
20282 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20283 (gdbserver_usage): Update.
20284 (main): Redo argument parsing. Handle --debug and --multi. Handle
20285 --attach along with other options or after the port. Save
20286 program_argv. Support no initial program. Resynchronize
20287 communication with GDB after an error. Handle "monitor exit".
20288 Use require_running and target_running. Always allow the extended
20289 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20290 restart in extended mode.
20291 * README: Refer to the GDB manual. Update --attach usage.
20293 2007-12-20 Andreas Schwab <schwab@suse.de>
20295 * linux-low.c (STACK_SIZE): Define.
20296 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20297 (linux_test_for_tracefork): Likewise.
20299 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20301 * linux-low.c (linux_wait_for_event): Update messages. Do not
20302 reinsert auto-delete breakpoints.
20303 * mem-break.c (struct breakpoint): Change return type of handler to
20305 (set_breakpoint_at): Update handler type.
20306 (reinsert_breakpoint_handler): Return 1 instead of calling
20308 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20310 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20311 * mem-break.h (set_breakpoint_at): Update handler type.
20312 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20313 * win32-low.c (auto_delete_breakpoint): New.
20314 (get_child_debug_event): Use it.
20316 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20318 * configure.ac: Check for pread and pwrite.
20319 * hostio.c (handle_pread): Fall back to lseek and read.
20320 (handle_pwrite): Fall back to lseek and write.
20321 * config.in, configure: Regenerated.
20323 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20325 * server.c (myresume): Add own_buf argument.
20326 (main): Update calls.
20328 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20330 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20331 * remote-utils.c (remote_open): Do not call disable_async_io.
20332 (block_async_io): Delete.
20333 (unblock_async_io): Make static.
20334 (initialize_async_io): New.
20335 * server.c (handle_v_cont): Handle async I/O here.
20336 (myresume): Likewise. Move other common resume tasks here...
20337 (main): ... from here. Call initialize_async_io. Disable async
20338 I/O before the main loop.
20339 * server.h (initialize_async_io): Declare.
20340 (block_async_io, unblock_async_io): Delete prototypes.
20341 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20343 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20345 * remote-utils.c (readchar): Allow binary data in received messages.
20347 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20349 * win32-low.c (attaching): New global.
20350 (win32_create_inferior): Clear the `attaching' global.
20351 (win32_attach): Set the `attaching' global.
20352 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20353 attaching. Only set a breakpoint at the entry point if not
20356 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20358 * server.c (main): Don't report dll events on the initial
20359 connection on attaches.
20361 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20363 * server.c (main): Relax numerical bases supported for the pid of
20364 the --attach command line argument.
20366 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20368 * win32-low.c (win32_attach): Call OpenProcess before
20369 DebugActiveProcess, not after. Add last error output to error
20372 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20374 * win32-low.c (win32_get_thread_context)
20375 (win32_set_thread_context): New functions.
20376 (thread_rec): Use win32_get_thread_context.
20377 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20378 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20381 2007-12-03 Leo Zayas
20382 Pedro Alves <pedro_alves@portugalmail.pt>
20384 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20386 (child_add_thread): Minor cleanup.
20387 (child_continue): Resume artificially suspended threads before
20388 calling ContinueDebugEvent.
20389 (suspend_one_thread): New.
20390 (fake_breakpoint_event): New.
20391 (get_child_debug_event): Change return type to int. Check here if
20392 gdb sent an interrupt request. If a soft interrupt was requested,
20393 fake a breakpoint event. Return 0 if there is no event to handle,
20395 (win32_wait): Don't check here if gdb sent an interrupt request.
20396 Ensure there is a valid event to handle.
20397 (win32_request_interrupt): Add soft interruption method as last
20400 2007-12-03 Leo Zayas
20401 Pedro Alves <pedro_alves@portugalmail.pt>
20403 * win32-low.h (win32_thread_info): Add descriptions to the
20404 structure members. Replace `suspend_count' counter by a
20406 * win32-low.c (thread_rec): Update condition of when to get the
20407 context from the inferior. Rely on ContextFlags being set if it
20408 has already been retrieved. Only suspend the inferior thread if
20409 we haven't already. Warn if that fails.
20410 (continue_one_thread): s/suspend_count/suspended/. Only call
20411 ResumeThread once. Warn if that fails.
20413 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20415 * win32-low.c (win32_wait): Don't read from the inferior when it
20416 has already exited.
20418 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20420 * Makefile.in (win32_low_h): New variable.
20421 (win32-low.o): Add dependency on $(win32_low_h).
20422 (win32-arm-low.o, win32-i386-low.o): New rules.
20424 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20426 * hostio.c: Correct copyright year.
20428 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20430 * Makefile.in (OBS): Add hostio.o.
20431 (hostio.o): New rule.
20432 * server.h (handle_vFile): Declare.
20433 * hostio.c: New file.
20434 * server.c (handle_v_requests): Take packet_len and new_packet_len
20435 for binary packets. Call handle_vFile.
20436 (main): Update call to handle_v_requests.
20438 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20440 * linux-low.c: Include <sched.h>.
20442 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20444 * linux-low.c (linux_tracefork_grandchild): New.
20445 (linux_tracefork_child): Use clone.
20446 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20448 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20450 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20452 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20454 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20456 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20458 * inferiors.c (change_inferior_id): Delete.
20459 (add_pid_to_list, pull_pid_from_list): New.
20460 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20461 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20462 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20463 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20464 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20465 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20466 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20467 (using_threads): Always set to 1.
20468 (handle_extended_wait): New.
20469 (add_process): Do not set TID.
20470 (linux_create_inferior): Set must_set_ptrace_flags.
20471 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20472 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20473 (linux_thread_alive): Rename TID argument to LWPID.
20474 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20475 (linux_wait_for_event): Do not use TID or check using_threads. Update
20476 call to dead_thread_notify. Call handle_extended_wait.
20477 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20478 (send_sigstop): Delete sigstop_sent.
20479 (wait_for_sigstop): Avoid TID.
20480 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20481 (linux_test_for_tracefork): New.
20482 (linux_lookup_signals): Use thread_db_active and
20483 linux_supports_tracefork_flag.
20484 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20485 * linux-low.h (get_process_thread): Avoid TID.
20486 (struct process_ifo): Move thread_known and tid to the end. Remove
20488 (linux_attach_lwp, thread_db_init): Update prototypes.
20489 * server.h (change_inferior_id): Delete prototype.
20490 (add_pid_to_list, pull_pid_from_list): New prototypes.
20491 * thread-db.c (thread_db_use_events): New.
20492 (find_first_thread): Rename to...
20493 (find_one_thread): ...this. Update callers and messages. Do not
20494 call fatal. Check thread_db_use_events. Do not call
20495 change_inferior_id or new_thread_notify.
20496 (maybe_attach_thread): Update. Do not call new_thread_notify.
20497 (thread_db_init): Set thread_db_use_events. Check use_events.
20498 * utils.c (fatal, warning): Correct message prefix.
20500 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20502 * Makefile.in (clean): Remove new files.
20503 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20504 (powerpc-64.o, powerpc-64.c): New rules.
20505 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20506 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20508 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20510 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20511 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20512 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20513 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20514 (target_regsets): Add AltiVec and SPE register sets.
20515 * configure.ac: Check for AltiVec and SPE.
20516 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20517 (ppc_fill_vrregset, ppc_store_vrregset): New.
20518 (target_regsets): Add AltiVec register set.
20519 * configure: Regenerated.
20521 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20523 * linux-low.c (O_LARGEFILE): Define.
20524 (linux_read_memory): Use /proc/PID/mem.
20525 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20526 * configure, config.in: Regenerated.
20528 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20530 * linux-low.c (linux_wait_for_event): Do not pass signals while
20533 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20535 * win32-low.c (create_process): New.
20536 (win32_create_inferior): Use create_process instead of
20537 CreateProcess. If create_process failed retry appending an ".exe"
20538 suffix. Store the GetLastError result immediatelly after
20539 create_process calls and use it on the call to error.
20541 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20543 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20545 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20547 * configure.ac: Switch license to GPLv3.
20549 2007-08-01 Michael Snyder <msnyder@access-company.com>
20551 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20553 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20555 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20557 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20558 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20559 CloseToolhelp32Snapshot.
20560 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20561 CloseToolhelp32Snapshot.
20563 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20565 * server.c (main): Check for inferior exit before main loop.
20567 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20569 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20570 instead of on tmp_desc.
20572 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20573 Daniel Jacobowitz <dan@codesourcery.com>
20575 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20576 (add_thread): Minor cleanups.
20577 (clear_inferiors): Move lower in the file. Clear the DLL
20579 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20580 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20581 (xml_escape_text): New.
20582 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20584 (handle_v_cont): Report errors.
20585 (gdbserver_version): Update.
20586 (main): Correct size of own_buf. Do not report initial DLL events.
20587 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20588 (unloaded_dll, xml_escape_text): New.
20589 * win32-low.c (enum target_waitkind): Update comments.
20590 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20591 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20592 (win32_EnumProcessModules, win32_GetModuleInformation)
20593 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20594 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20595 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20596 (win32_Module32First, win32_Module32Next, load_toolhelp)
20597 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20598 (get_child_debug_event): Handle DLL events.
20599 (win32_wait): Likewise.
20601 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20603 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20604 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20606 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20608 * win32-low.c (handle_output_debug_string): Ignore event if not
20611 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20613 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20615 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20617 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20619 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20621 * inferiors.c (change_inferior_id): Add comment.
20622 * linux-low.c (check_removed_breakpoint): Add an early
20623 prototype. Improve debug output.
20624 (linux_attach): Doc update.
20625 (linux_detach_one_process, linux_detach): Clean up before releasing
20627 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20628 * linux-low.h (struct process_info): Doc improvement.
20629 * mem-break.c (delete_all_breakpoints): New.
20630 * mem-break.h (delete_all_breakpoints): New prototype.
20631 * thread-db.c (find_first_thread): New.
20632 (thread_db_create_event): Call it instead of
20633 thread_db_find_new_threads. Clean up unused variables.
20634 (maybe_attach_thread): Remove first thread handling.
20635 (thread_db_find_new_threads): Use find_first_thread.
20636 (thread_db_get_tls_address): Likewise.
20638 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20640 * thread-db.c (thread_db_find_new_threads): Add prototype.
20641 (thread_db_create_event): Check for the main thread before adding
20643 (maybe_attach_thread): Only enable event reporting if TID == 0.
20644 (thread_db_get_tls_address): Check for new threads.
20646 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20648 * linux-low.c (linux_create_inferior): Try execv before execvp.
20649 * spu-low.c (spu_create_inferior): Likewise.
20651 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20653 * linux-low.c (linux_create_inferior): Change execv to execvp.
20654 * spu-low.c (spu_create_inferior): Likewies.
20656 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20658 * Makefile.in (clean): Clean new files instead of deleted ones.
20659 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20660 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20662 * configure.srv: Specify XML files and new regformats for MIPS and
20664 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20665 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20666 an entry for the restart register.
20667 (mips_cannot_fetch_register, mips_cannot_store_register)
20668 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20669 register names to match the XML descriptions.
20670 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20671 restart register instead of $0.
20673 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20674 Markus Deuling <deuling@de.ibm.com>
20676 * remote-utils.c (decode_xfer_write): New function.
20677 * server.h (decode_xfer_write): Add prototype.
20678 * server.c (handle_query): Add PACKET_LEN argument. Support
20679 qXfer:spu:read and qXfer:spu:write packets.
20680 (main): Pass packet_len to handle_query.
20681 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20682 * target.h (target_ops): Add qxfer_spu.
20684 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20686 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20687 accessing non-seekable spufs files.
20689 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20691 * server.c (handle_query): Add reply for qC packet.
20693 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20694 Leo Zayas <lerele@champenstudios@com>
20696 * server.h (check_remote_input_interrupt_request): New function.
20697 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20698 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20699 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20700 (check_remote_input_interrupt_request): New function.
20701 * server.h (check_remote_input_interrupt_request): Declare.
20702 * win32-low.c (winapi_DebugBreakProcess,
20703 winapi_GenerateConsoleCtrlEvent): New typedefs.
20704 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20706 (win32_wait): Check for remote interrupt request
20707 with check_remote_input_interrupt_request.
20708 (win32_request_interrupt): New function.
20709 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20711 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20713 * win32-low.c (debug_registers_changed,
20714 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20715 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20716 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20717 (thread_rec): Get context using the low target.
20718 (child_add_thread): Call thread_added on the low target,
20719 which does the same thing.
20721 (do_initial_child_stuff): Remove debug registers references.
20722 Set context using the low target. Resume threads after
20723 setting the contexts.
20724 (child_continue): Remove dead variable. Remove debug
20725 registers references.
20726 (child_fetch_inferior_registers): Go through the low target.
20727 (do_child_store_inferior_registers): Remove.
20728 (child_store_inferior_registers): Go through the low target.
20729 (win32_resume): Remove debug registers references.
20730 Set context using the low target.
20731 (handle_exception): Change return type to void. Don't record
20732 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20733 first chance exception.
20734 (get_child_debug_event): Change return type to void. Remove
20735 goto loop. Always return after waiting for debug event.
20736 (win32_wait): Convert to switch statement. Handle spurious
20739 * win32-i386-low.c (debug_registers_changed,
20740 debug_registers_used): New.
20741 (initial_stuff): Rename to ...
20742 (i386_initial_stuff): ... this. Clear debug registers
20744 (store_debug_registers): Delete.
20745 (i386_get_thread_context): New.
20746 (load_debug_registers): Delete.
20747 (i386_set_thread_context): New.
20748 (i386_thread_added): New.
20749 (single_step): Rename to ...
20750 (i386_single_step): ... this.
20751 (do_fetch_inferior_registers): Rename to ...
20752 (i386_fetch_inferior_register): ... this.
20753 (i386_store_inferior_register): New.
20754 (the_low_target): Adapt to new interface.
20756 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20757 (arm_get_thread_context): New.
20758 (arm_set_thread_context): New.
20760 (do_fetch_inferior_registers): Rename to ...
20761 (arm_fetch_inferior_register): ... this.
20762 (arm_store_inferior_register): New.
20763 (arm_wince_breakpoint): Reimplement as unsigned long.
20764 (arm_wince_breakpoint_len): Define.
20765 (the_low_target): Adapt to new interface.
20767 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20768 load_debug_registers. Add get_thread_context, set_thread_context,
20769 thread_added and store_inferior_register. Rename
20770 fetch_inferior_registers to fetch_inferior_register.
20771 (regptr): Remove declaration.
20773 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20775 * linux-low.c (linux_detach): Change return type to int. Return 0.
20776 * spu-low.c (spu_detach): Likewise.
20778 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20780 * target.h (target_ops): Change return type of detach to int.
20782 (join_inferior): New.
20783 * server.c (main): Don't skip detach support on mingw32.
20784 If the inferior doesn't support detaching return error.
20785 Call join_inferior instead of using waitpid.
20786 * linux-low.c (linux_join): New.
20787 (linux_target_op): Add linux_join.
20788 * spu-low.c (spu_join): New.
20789 (spu_target_ops): Add spu_join.
20790 * win32-low.c (win32_detach): Adapt to new interface.
20791 Reopen current_process_handle before detaching. Issue a child
20792 resume before detaching.
20794 (win32_target_op): Add win32_join.
20796 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20798 * win32-low.c (win32-attach): Fix return value.
20799 * target.h (target_ops): Describe ATTACH return values.
20801 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20803 * win32-low.c (GETPROCADDRESS): Define.
20804 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20805 (winapi_DebugSetProcessKillOnExit): Likewise.
20806 (win32_create_inferior): Force usage of ansi CreateProcessA.
20807 (win32_attach): Use GETPROCADDRESS.
20808 (win32_detach): Likewise.
20810 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20812 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20814 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20816 * win32-low.c: Commit leftover changes from 2007-03-29.
20818 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20820 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20821 fields short instead of int. Add explicit padding.
20822 (i387_cache_to_fsave): Remove unnecessary casts.
20823 (i387_fsave_to_cache): Doc fix.
20824 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20826 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20828 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20829 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20831 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20833 * configure.srv (arm*-*-mingw32ce*): Move near the other
20836 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20838 * configure.ac: Add errno checking.
20839 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20840 sys/file.h and malloc.h.
20841 (AC_CHECK_DECLS): Add perror.
20842 (srv_mingwce): Handle.
20843 * configure.srv (i[34567]86-*-cygwin*): Add
20844 win32-i386-low.o to srv_tgtobj.
20845 (i[34567]86-*-mingw*): Likewise.
20846 (arm*-*-mingw32ce*): Add case.
20847 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20848 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20849 [__MINGW32CE__] (strerror): New function.
20850 [__MINGW32CE__] (errno): Define to GetLastError.
20851 [__MINGW32CE__] (COUNTOF): New macro.
20852 (remote_open): Remove extra close call.
20853 * mem-break.c (delete_breakpoint_at): New function.
20854 * mem-break.h (delete_breakpoint_at): Declare.
20855 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20856 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20857 [USE_WIN32API] (read, write): Add char* casts.
20858 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20859 * server.h: Include wincecompat.h on Windows CE.
20860 [HAVE_ERRNO_H]: Check.
20861 (perror): Declare if not declared.
20862 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20863 (perror_with_name): Remove errno declaration.
20864 * wincecompat.h: New.
20865 * wincecompat.c: New.
20866 * win32-low.h: New.
20867 * win32-arm-low.c: New.
20868 * win32-i386-low.c: New.
20869 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20870 (OUTMSG2): Make it safe.
20872 (COUNTOF): New macro.
20873 (NUM_REGS): Get it from the low target.
20874 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20875 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20876 (thread_rec): Let low target handle debug registers.
20877 (child_add_thread): Likewise.
20878 (child_init_thread_list): Likewise.
20879 (continue_one_thread): Likewise.
20881 (do_child_fetch_inferior_registers): Move to ...
20882 * win32-i386-low.c: ... here, and rename to ...
20883 (do_fetch_inferior_registers): ... this.
20884 * win32-low.c (child_fetch_inferior_registers):
20885 Go through the low target.
20886 (do_child_store_inferior_registers): Use regptr.
20887 (strwinerror): New function.
20888 (win32_create_inferior): Handle Windows CE.
20889 Use strwinerror instead of strerror on Windows error
20890 codes. Add program to the error output.
20891 Don't close the main thread handle on Windows CE.
20892 (win32_attach): Use coredll.dll on Windows CE.
20893 (win32_kill): Close current process and current
20895 (win32_detach): Use coredll.dll on Windows CE.
20896 (win32_resume): Let low target handle debug registers, and
20898 (handle_exception): Add/Remove initial breakpoint. Avoid
20899 non-existant WSTOPSIG on Windows CE.
20900 (win32_read_inferior_memory): Cast to remove warning.
20901 (win32_arch_string): Go through the low target.
20902 (initialize_low): Call set_breakpoint_data with the low
20903 target's breakpoint.
20904 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20905 FOP_REGNUM, mappings): Move to ...
20906 * win32-i386-low.c: ... here.
20907 * win32-low.c (win32_thread_info): Move to ...
20908 * win32-low.h: ... here.
20909 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20910 win32-arm-low.c and wincecompat.c.
20911 (all:): Add $EXEEXT.
20912 (install-only:): Likewise.
20913 (gdbserver:): Likewise.
20914 (gdbreplay:): Likewise.
20915 * config.in: Regenerate.
20916 * configure: Regenerate.
20918 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20920 * win32-low.c: Rename typedef thread_info to
20921 win32_thread_info throughout.
20923 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20925 * win32-i386-low.c: Rename to ...
20926 * win32-low.c: ... this.
20927 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20928 * Makefile.in: Likewise.
20930 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20932 * remote-utils.c (monitor_output): Constify msg parameter.
20933 * server.h (monitor_output): Likewise.
20934 * win32-i386-low.c (handle_output_debug_string): New.
20935 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20936 handle_output_debug_string.
20937 (get_child_debug_event): Likewise.
20939 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20941 * server.c (main): Correct strtoul check.
20943 2007-03-27 Jon Ringle <jon@ringle.org>
20945 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20947 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20949 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20951 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20953 * terminal.h: Check HAVE_SGTTY_H.
20955 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20957 * remote-utils.c (remote_open): Print out the assigned port number.
20959 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20961 * remote-utils.c (monitor_output): New function.
20962 * server.c (debug_threads): Define here.
20963 (monitor_show_help): New function.
20964 (handle_query): Handle qRcmd.
20965 (main): Do not handle 'd' packet.
20966 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20967 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20970 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20972 * Makefile.in (EXEEXT): New.
20973 (clean): Use $(EXEEXT).
20975 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20977 * target.h (target_ops): Rename send_signal to request_interrupt,
20978 and remove enum target_signal parameter.
20979 * linux-low.c (linux_request_interrupt): Rename from
20980 linux_send_signal, and always send SIGINT.
20981 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20982 and always send SIGINT.
20983 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20985 (input_interrupt): Likewise.
20987 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20989 * server.c (get_features_xml): Check if target implemented
20991 * win32-i386-low.c (win32_arch_string): New.
20992 (win32_target_ops): Add win32_arch_string as arch_string member.
20994 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20996 * spu-low.c (spu_arch_string): New.
20997 (spu_target_ops): Add spu_arch_string.
20999 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21001 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21002 * configure.ac: Do not check for terminal.h.
21003 * configure, config.in: Regenerated.
21005 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21007 * Makefile.in (OBS): Add $(XML_BUILTIN).
21008 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21010 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21011 (arm-with-iwmmxt.c): New.
21012 * config.in, configure: Regenerate.
21013 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21014 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21015 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21016 (arm*-*-linux*): Add iWMMXt and regset support.
21017 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21018 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21019 (arm_store_wmmxregset, target_regsets): New.
21020 * server.c (get_features_xml): Take annex argument. Check builtin
21022 (handle_query): Handle multiple annexes.
21024 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21026 * remote-utils.c [USE_WIN32API] (read, write): Define.
21027 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21030 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21032 * linux-i386-low.c (the_low_target): Set arch_string.
21033 * linux-x86-64-low.c (the_low_target): Likewise.
21034 * linux-low.c (linux_arch_string): New.
21035 (linux_target_ops): Add it.
21036 * linux-low.h (struct linux_target_ops): Add arch_string.
21037 * server.c (write_qxfer_response): Use const void * for DATA.
21038 (get_features_xml): New.
21039 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21040 * target.h (struct target_ops): Add arch_string method.
21042 2007-01-03 Denis Pilat <denis.pilat@st.com>
21043 Daniel Jacobowitz <dan@codesourcery.com>
21045 * linux-low.c (linux_kill): Handle being called with no threads.
21046 * win32-i386-low.c (win32_kill): Likewise.
21047 (get_child_debug_event): Clear current_process_handle.
21049 2006-12-30 Denis PILAT <denis.pilat@st.com>
21050 Daniel Jacobowitz <dan@codesourcery.com>
21052 * remote-utils.c (remote_open): Check the type of specified
21053 serial port devices before opening them.
21054 * server.c (main): Kill the inferior if an error occurs during
21055 the first remote_open.
21057 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21059 * README: Update supported targets.
21061 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21063 * Makefile.in (clean): Remove reg-mips64.c.
21064 (reg-mips64.c, reg-mips64.o): New rules.
21065 * configure.srv: Handle mips64. Include regset support for mips.
21066 * linux-mips-low.c (union mips_register): New.
21067 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21068 (mips_breakpoint, mips_breakpoint_at): Use int.
21069 (mips_collect_register, mips_supply_register)
21070 (mips_collect_register_32bit, mips_supply_register_32bit)
21071 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21072 (mips_store_fpregset, target_regsets): New.
21073 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21075 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21077 * configure.srv: Add target "spu*-*-*".
21078 * Makefile.in (clean): Remove reg-spu.c.
21079 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21080 * spu-low.c: New file.
21082 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21084 * configure.ac: Correct td_thr_tls_get_addr test.
21085 * configure: Regenerated.
21087 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21089 * linux-low.c (linux_wait_for_event): Reformat. Use the
21090 pass_signals array.
21091 * remote-utils.c (decode_address_to_semicolon): New.
21092 * server.c (pass_signals, handle_general_set): New.
21093 (handle_query): Mention QPassSignals for qSupported.
21094 (main): Call handle_general_set.
21095 * server.h (pass_signals, decode_address_to_semicolon): New.
21097 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21099 * server.c (handle_query): Correct error handling for read_auxv.
21101 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21103 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21104 and srv_linux_thread_db to yes.
21105 * linux-s390-low.c (s390_fill_gregset): New function.
21106 (target_regsets): Define data structure.
21108 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21110 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21111 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21112 * config.in, configure: Regenerated.
21113 * inferiors.c (gdb_id_to_thread): New function.
21114 (gdb_id_to_thread_id): Use it.
21115 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21116 * linux-low.h (struct process_info): Add th member.
21117 (thread_db_get_tls_address): New prototype.
21118 * remote-utils.c (decode_address): Make non-static.
21119 * server.c (handle_query): Handle qGetTLSAddr.
21120 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21121 * target.h (struct target_ops): Add get_tls_address.
21122 * thread-db.c (maybe_attach_thread): Save the thread handle.
21123 (thread_db_get_tls_address): New.
21125 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21127 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21128 (linux_resume_one_process): Take a siginfo_t *. Update all
21129 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21130 (struct pending_signals): Add a siginfo_t.
21131 (linux_wait_for_process): Always set last_status.
21132 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21133 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21134 * linux-low.h (struct process_info): Add last_status.
21136 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21138 * remote-utils.c (try_rle): New function.
21139 (putpkt_binary): Use it.
21141 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21143 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21144 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21145 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21146 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21147 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21150 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21152 * server.c (terminal_fd): New variable.
21153 (old_foreground_pgrp): Likewise.
21154 (restore_old_foreground_pgrp): New function.
21155 (start_inferior): Record the terminal file descriptor in terminal_fd
21156 and its original foreground group in old_foreground_pgrp. Register
21157 restore_old_foreground_pgrp with atexit().
21159 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21161 * server.c (handle_query): Correct qPart to qXfer.
21163 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21165 * configure.ac: Check for more headers which are missing on
21166 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21167 * configure.srv: Add Cygwin and mingw32.
21168 * remote-utils.c: Don't include headers unconditionally which
21169 are missing on mingw32. Include <winsock.h> for mingw32.
21170 (remote_open): Adjust for mingw32 support. Flush
21171 standard error after writing to it.
21172 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21173 (unblock_async_io, enable_async_io, disable_async_io)
21174 (readchar, getpkt): Update for Winsock support.
21175 (prepare_resume_reply): Expect a protocol signal number.
21176 * server.c: Disable <sys/wait.h> on mingw32.
21177 (start_inferior): Adjust for mingw32 support. Flush
21178 standard error after writing to it.
21179 (attach_inferior): Likewise. Use protocol signal
21181 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21183 * win32-i386-low.c: New file.
21184 * Makefile.in (XM_CLIBS): Set.
21185 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21186 (win32-i386-low.o): New dependency rule.
21187 * linux-low.c (linux_wait): Use target signal numbers.
21188 * target.h (struct target_ops): Doc fix.
21189 * server.h (target_signal_to_name): New prototype.
21190 * gdbreplay.c: Don't include headers unconditionally which
21191 are missing on mingw32. Include <winsock.h> for mingw32.
21192 (remote_close, remote_open): Adjust for Winsock support.
21193 * configure, config.in: Regenerated.
21195 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21197 * server.c (decode_xfer_read, write_qxfer_response): New.
21198 (handle_query): Take a packet length argument. Handle
21199 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21200 the qSupported response.
21201 (main): Update call to handle_query.
21203 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21205 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21206 (putpkt_binary): Renamed from putpkt and adjusted for binary
21208 (putpkt): New wrapper for putpkt_binary.
21209 (readchar): Don't mask off the high bit.
21210 (decode_X_packet): New function.
21211 * server.c (main): Call putpkt_binary if a handler sets the packet
21212 length. Save the length of the incoming packet. Handle 'X'.
21213 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21215 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21217 * server.c (handle_query): Handle qSupported.
21219 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21221 * remote-utils.c (all_symbols_looked_up): New variable.
21222 (look_up_one_symbol): Check it.
21223 * server.h (look_up_one_symbol): New declaration.
21224 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21226 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21228 * Makefile.in (linux-arm-low.o): Update dependencies.
21229 * linux-arm-low.c: Include "gdb_proc_service.h".
21230 (PTRACE_GET_THREAD_AREA): Define.
21231 (ps_get_thread_area): New function.
21233 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21235 * configure.srv (m68k*-*-uclinux*): New target.
21236 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21237 (linux_resume_one_process): Remove extraneous cast.
21238 (linux_read_offsets): New.
21239 (linux_target_op): Add linux_read_offsets on mmuless systems.
21240 * server.c (handle_query): Add qOffsets logic.
21241 * target.h (struct target_ops): Add read_offsets.
21243 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21245 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21246 (PTRACE_GET_THREAD_AREA): Define.
21247 (ps_get_thread_area): New function.
21248 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21249 (linux-x86-64-low.o): Update.
21251 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21253 * configure.ac: Remove checks for prfpregset_t.
21254 * gdb_proc_service.h: New file.
21255 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21256 new "gdb_proc_service.h".
21257 * proc-service.c: Likewise.
21258 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21259 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21260 * Makefile.in (gdb_proc_service_h): Updated.
21261 * configure, config.in: Regenerated.
21263 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21265 * remote-utils.c (prepare_resume_reply): Move declaration
21266 of gdb_id_from_wait to the top of the block.
21268 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21270 * linux-low.c (regsets_store_inferior_registers): Read the regset
21271 from the target before filling it.
21273 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21275 * server.c (attach_inferior): Return SIGTRAP for a successful
21278 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21280 * Makefile.in (OBS): Add version.o.
21281 (STAGESTUFF): Delete.
21282 (version.o): Add dependencies.
21283 (version.c): Replace rule.
21284 (clean): Remove version.c.
21285 * server.c (gdbserver_version): New.
21286 (gdbserver_usage): Use printf.
21287 (main): Handle --version and --help.
21288 * server.h (version, host_name): Add declarations.
21290 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21302 * linux-x86-64-low.c:
21304 * linux-s390-low.c:
21305 * linux-ppc64-low.c:
21307 * linux-mips-low.c:
21308 * linux-m68k-low.c:
21309 * linux-m32r-low.c:
21312 * linux-ia64-low.c:
21313 * linux-i386-low.c:
21314 * linux-crisv32-low.c:
21326 * gdbserver.1: Add (C) after Copyright. Update the FSF
21329 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21331 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21332 (arm_breakpoint_at): Recognize both breakpoints.
21333 (the_low_target): Use the correct breakpoint instruction.
21335 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21337 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21338 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21339 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21340 (the_low_target): Update.
21342 2005-10-25 Andreas Schwab <schwab@suse.de>
21344 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21346 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21347 (ia64_num_regs): Reduce to 462.
21349 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21351 * acinclude.m4: Correct quoting.
21352 * aclocal.m4: Regenerated.
21354 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21355 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21356 (thread_db_init): Call thread_db_err_str.
21357 * configure.ac: Check for TD_VERSION.
21358 * config.in, configure: Regenerated.
21360 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21362 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21364 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21366 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21367 is not available. Define HAVE_PTRACE_GETREGS if it is.
21368 * config.in, configure: Regenerated.
21369 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21370 * linux-i386-low.c, linux-m68k-low.c: Update to use
21371 HAVE_PTRACE_GETREGS.
21372 * linux-low.c (regsets_fetch_inferior_registers)
21373 (regsets_store_inferior_registers): Only return 0 if we processed
21375 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21376 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21378 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21380 * inferiors.c (struct thread_info): Add gdb_id.
21381 (add_thread): Add gdb_id argument.
21382 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21383 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21384 calls to add_thread.
21385 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21386 * server.c (handle_query): Use thread_to_gdb_id.
21387 (handle_v_cont, main): Use gdb_id_to_thread_id.
21388 * server.h (add_thread): Update prototype.
21389 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21392 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21394 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21395 left-padded registers.
21396 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21397 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21399 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21401 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21402 * configure: Regenerate.
21403 * config.in: Regenerate.
21404 * server.h (NEED_DECLARATION_STRERROR):
21405 Replace with !HAVE_DECL_STRERROR.
21407 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21409 * linux-low.c (linux_wait, linux_send_signal): Don't test
21410 an unsigned long variable for > 0 if it could be MAX_ULONG.
21411 * server.c (myresume): Likewise.
21412 * target.c (set_desired_inferior): Likewise.
21414 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21416 * configure.ac: Simplify and improve check for socklen_t.
21417 * configure, config.in: Regenerate.
21419 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21421 * acconfig.h: Remove.
21422 * configure.ac: Add a test for socklen_t. Use three-argument
21423 AC_DEFINE throughout.
21424 * config.in: Regenerated using autoheader 2.59.
21425 * configure: Regenerated.
21427 * gdbreplay.c (socklen_t): Provide a default.
21428 (remote_open): Use socklen_t.
21429 * remote-utils.c (socklen_t): Provide a default.
21430 (remote_open): Use socklen_t.
21431 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21434 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21436 * linux-low.c (linux_read_memory, linux_write_memory)
21437 (linux_read_auxv): Likewise.
21438 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21439 (check_mem_write): Likewise.
21440 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21442 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21443 (registers_from_string, register_data): Likewise.
21444 * server.c (handle_query, main): Likewise.
21445 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21446 (decode_M_packet): Likewise.
21447 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21448 * target.h (struct target_ops): Update read_memory, write_memory,
21450 (read_inferior_memory, write_inferior_memory): Update.
21451 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21452 to unsigned char *.
21453 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21454 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21455 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21456 linux-s390-low.c, linux-sh-low.c: Update for changes in
21457 read_inferior_memory and the_low_target->breakpoint.
21459 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21461 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21462 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21463 * configure.srv: Add powerpc64-*-linux*.
21464 * linux-ppc64-low.c: New file.
21466 2005-05-23 Orjan Friberg <orjanf@axis.com>
21468 * linux-cris-low.c: New file with support for CRIS.
21469 * linux-crisv32-low.c: Ditto for CRISv32.
21470 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21471 (clean): Add reg-cris.c and reg-crisv32.c.
21472 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21473 reg-crisv32.o, and reg-crisv32.c to make rules.
21474 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21475 recognized targets.
21477 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21479 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21480 of sizeof (PTRACE_XFER_TYPE).
21481 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21483 2005-05-12 Orjan Friberg <orjanf@axis.com>
21485 * target.h (struct target_ops): Add insert_watchpoint,
21486 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21487 pointers for hardware watchpoint support.
21488 * linux-low.h (struct linux_target_ops): Ditto.
21489 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21490 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21491 to linux_target_ops.
21492 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21494 * server.c (main): Recognize 'Z' and 'z' packets.
21496 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21498 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21499 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21500 (the_low_target): Add new members.
21502 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21504 * proc-service.c (ps_lgetregs): Search all_processes instead of
21507 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21509 * server.c (start_inferior): Change return type to int.
21510 (attach_inferior): Change sigptr to int *.
21511 (handle_v_cont, handle_v_requests): Change signal to int *.
21512 (main): Change signal to int.
21514 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21516 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21517 * configure.srv: Add m32r*-*-linux*.
21518 * linux-m32r-low.c: New file.
21520 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21522 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21524 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21526 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21527 Take unsigned long arguments for PIDs.
21528 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21529 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21530 (wait_for_sigstop, linux_resume_one_process)
21531 (regsets_fetch_inferior_registers, linux_send_signal)
21532 (linux_read_auxv): Likewise. Update the types of variables holding
21533 PIDs. Update format string specifiers.
21534 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21535 * remote-utils.c (prepare_resume_reply): Likewise.
21536 * server.c (cont_thread, general_thread, step_thread)
21537 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21539 (handle_query): Update format specifiers.
21540 (handle_v_cont, main): Use strtoul for thread IDs.
21541 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21542 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21543 (general_thread, step_thread, thread_from_wait)
21544 (old_thread_from_wait): Update.
21545 * target.h (struct thread_resume): Use unsigned long for THREAD.
21546 (struct target_ops): Use unsigned long for arguments to attach and
21549 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21551 * acinclude.m4: Include bfd/bfd.m4 directly.
21552 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21553 <agriffis@toolchain.org>.
21554 * aclocal.m4, configure: Regenerated.
21556 2005-01-07 Andrew Cagney <cagney@gnu.org>
21558 * configure.ac: Rename configure.in, require autoconf 2.59.
21559 * configure: Re-generate.
21561 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21563 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21564 LIBS when finished.
21565 * aclocal.m4: Regenerated.
21566 * configure: Regenerated.
21568 2004-11-21 Andreas Schwab <schwab@suse.de>
21570 * linux-m68k-low.c (m68k_num_gregs): Define.
21571 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21572 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21573 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21574 (m68k_breakpoint_at): New. Add to the_low_target.
21576 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21577 srv_linux_thread_db to yes.
21579 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21581 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21582 (ARCH_SET_FS): Likewise.
21583 (ARCH_GET_FS): Likewise.
21584 (ARCH_GET_GS): Likewise.
21586 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21588 * linux-i386-low.c (ps_get_thread_area): New.
21589 * linux-x86-64-low.c (ps_get_thread_area): New.
21590 * linux-low.c: Include <sys/syscall.h>.
21591 (linux_kill_one_process): Don't kill the first thread here.
21592 (linux_kill): Kill the first thread here.
21593 (kill_lwp): New function.
21594 (send_sigstop, linux_send_signal): Use it.
21595 * proc-service.c: Clean up #ifdefs.
21596 (fpregset_info): Delete.
21597 (ps_lgetregs): Update and enable implementation.
21598 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21600 * remote-utils.c (struct sym_cache, symbol_cache): New.
21601 (input_interrupt): Print a clearer message.
21602 (async_io_enabled): New variable.
21603 (enable_async_io, disable_async_io): Use it. Update comments.
21604 (look_up_one_symbol): Use the symbol cache.
21605 * thread-db.c (thread_db_look_up_symbols): New function.
21606 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21608 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21610 * configure.in: Test for -rdynamic.
21611 * configure: Regenerated.
21612 * Makefile (INTERNAL_LDFLAGS): New.
21613 (gdbserver, gdbreplay): Use it.
21615 2004-09-02 Andrew Cagney <cagney@gnu.org>
21617 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21619 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21621 * linux-low.c (linux_wait): Clear all_processes list also.
21623 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21625 * linux-low.c: Include <errno.h>. Remove extern declaration of
21628 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21630 * gdbreplay.c, server.h, utils.c: Update copyright years.
21632 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21634 * server.c (main): Print child status or termination signal from
21635 variable 'signal', not 'sig'.
21637 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21639 * linux-low.c (linux_read_memory): Change return type to
21640 int. Check for and return error from ptrace().
21641 * target.c (read_inferior_memory): Change return type to int. Pass
21642 back return status from the_target->read_memory().
21643 * target.h (struct target_ops): Adapt *read_memory() prototype.
21645 (read_inferior_memory): Adapt prototype.
21646 * server.c (main): Return an error packet if
21647 read_inferior_memory() returns an error.
21649 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21651 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21652 Unify with other clean targets.
21654 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21656 * server.c (handle_v_cont): Call set_desired_inferior.
21658 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21660 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21662 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21664 * linux-low.c (linux_wait): Unblock async I/O.
21665 (linux_resume): Block and enable async I/O.
21666 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21667 * server.h (block_async_io, unblock_async_io): Add prototypes.
21669 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21671 * remote-utils.c (remote_open): Print a status notice after
21672 opening a TCP port.
21673 * server.c (attach_inferior): Print a status notice after
21676 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21678 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21680 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21682 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21684 * server.c, target.h: Update copyright years.
21686 2004-02-25 Roland McGrath <roland@redhat.com>
21688 * target.h (struct target_ops): New member `read_auxv'.
21689 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21690 * linux-low.c (linux_read_auxv): New function.
21691 (linux_target_ops): Initialize `read_auxv' member to that.
21693 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21695 Committed by Jim Blandy <jimb@redhat.com>.
21697 * linux-s390-low.c (s390_num_regs): Update.
21698 (s390_regmap): Remove control registers. Use __s390x__ predefine
21699 instead of GPR_SIZE to distiguish s390 and s390x targets.
21701 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21703 * linux-low.c: Update copyright year.
21704 (check_removed_breakpoint): Clear pending_is_breakpoint.
21705 (linux_set_resume_request, linux_queue_one_thread)
21706 (resume_status_pending_p): New functions.
21707 (linux_continue_one_thread): Use process->resume.
21708 (linux_resume): Only resume threads if there are no pending events.
21709 * linux-low.h (struct process_info): Add resume request
21712 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21714 * regcache.c (new_register_cache): Clear the allocated register
21715 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21717 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21719 * linux-low.c (linux_resume): Take a struct thread_resume *
21721 (linux_wait): Update call.
21722 (resume_ptr): New static variable.
21723 (linux_continue_one_thread): Renamed from
21724 linux_continue_one_process. Use resume_ptr.
21725 (linux_resume): Use linux_continue_one_thread.
21726 * server.c (handle_v_cont, handle_v_requests): New functions.
21727 (myresume): New function.
21728 (main): Handle 'v' case.
21729 * target.h (struct thread_resume): New type.
21730 (struct target_ops): Change argument of "resume" to struct
21732 (myresume): Delete macro.
21734 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21736 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21737 (uninstall): Support DESTDIR.
21739 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21741 * configure.srv: Add xscale*linux copy of arm*linux entry.
21743 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21745 * linux-arm-low.c (arm_reinsert_addr): New function.
21746 (the_low_target): Add arm_reinsert_addr.
21748 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21750 * mem-break.c: Remove whitespace at end of file.
21752 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21754 * configure.in: Check whether we need to prototype strerror.
21755 * server.h: Optionally prototype strerror.
21756 * gdbreplay.c (perror_with_name): Use strerror.
21757 * linux-low.c (linux_attach_lwp): Use strerror.
21758 * utils.c (perror_with_name): Use strerror.
21759 * config.in, configure: Regenerated.
21761 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21763 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21764 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21766 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21768 * Makefile.in (SFILES): Update.
21769 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21770 low-sun3.c: Remove files.
21772 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21774 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21775 (linux_detach_one_process, linux_detach): New functions.
21776 (linux_target_ops): Add linux_detach.
21777 * server.c (main): Handle 'D' packet.
21778 * target.h (struct target_ops): Add "detach" member.
21779 (detach_inferior): Define.
21781 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21783 From Kelley Cook <kelleycook@wideopenwest.com>:
21784 * configure.srv: Accept i[34567]86 variants.
21786 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21788 * linux-low.c (linux_wait_for_event): Correct comment typos.
21789 (linux_resume_one_process): Call check_removed_breakpoint.
21790 (linux_send_signal): New function.
21791 (linux_target_ops): Add linux_send_signal.
21792 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21794 * target.h (struct target_ops): Add send_signal.
21796 2003-05-29 Jim Blandy <jimb@redhat.com>
21798 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21799 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21800 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21801 away part of the register's value.
21803 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21805 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21806 (linux_wait_for_event, linux_init_signals): Likewise.
21808 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21810 * configure.in: Check for stdlib.h.
21811 * configure: Regenerated.
21812 * config.in: Regenerated.
21814 2003-01-04 Andreas Schwab <schwab@suse.de>
21816 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21818 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21820 * Makefile.in: Remove obsolete code.
21822 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21824 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21825 defined(PT_FPR0_HI).
21827 2002-11-17 Stuart Hughes <seh@zee2.com>
21829 * linux-arm-low.c (arm_num_regs): Increase.
21830 (arm_regmap): Include status register.
21832 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21834 * linux-low.c (register_addr): Remove incorrect -1 check.
21836 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21838 * linux-low.c (linux_create_inferior): Call setpgid. Return
21840 (unstopped_p, linux_signal_pid): Remove.
21841 (linux_target_ops): Remove linux_signal_pid.
21842 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21843 global instead of target method.
21844 * target.h (struct target_ops): Remove signal_pid. Update comment
21845 for create_inferior.
21846 * server.c (signal_pid): New variable.
21847 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21848 gdbserver. Set the child to be the foreground process group.
21849 (attach_inferior): Set signal_pid.
21851 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21853 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21855 2002-08-20 Jim Blandy <jimb@redhat.com>
21857 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21860 2002-08-01 Andrew Cagney <cagney@redhat.com>
21862 * Makefile.in: Make chill references obsolete.
21864 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21866 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21867 * configure: Regenerate.
21868 * config.in: Regenerate.
21870 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21872 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21873 (perror_with_name, remote_close, remote_open, expect, play): Static.
21875 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21877 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21878 byte offsets instead of an array of indexes.
21879 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21881 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21883 * regcache.c: Add comment.
21885 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21887 * thread-db.c: New file.
21888 * proc-service.c: New file.
21889 * acinclude.m4: New file.
21890 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21891 proc-service.o, and thread-db.o.
21892 (linux-low.o): Add USE_THREAD_DB.
21893 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21894 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21895 * aclocal.m4: Regenerated.
21896 * config.in: Regenerated.
21897 * configure: Regenerated.
21898 * configure.in: Check for proc_service.h, sys/procfs.h,
21899 thread_db.h, and linux/elf.h headrs.
21900 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21901 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21902 Check for -lthread_db and thread support.
21903 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21904 PowerPC, and SuperH.
21905 * i387-fp.c: Constify arguments.
21906 * i387-fp.h: Likewise.
21907 * inferiors.c: (struct thread_info): Renamed from
21908 `struct inferior_info'. Remove PID member. Use generic inferior
21909 list header. All uses updated.
21910 (inferiors, signal_pid): Removed.
21911 (all_threads): New variable.
21912 (get_thread): Define.
21913 (add_inferior_to_list): New function.
21914 (for_each_inferior): New function.
21915 (change_inferior_id): New function.
21916 (add_inferior): Removed.
21917 (remove_inferior): New function.
21918 (add_thread): New function.
21919 (free_one_thread): New function.
21920 (remove_thread): New function.
21921 (clear_inferiors): Use for_each_inferior and free_one_thread.
21922 (find_inferior): New function.
21923 (find_inferior_id): New function.
21924 (inferior_target_data): Update argument type.
21925 (set_inferior_target_data): Likewise.
21926 (inferior_regcache_data): Likewise.
21927 (set_inferior_regcache_data): Likewise.
21928 * linux-low.c (linux_bp_reinsert): Remove.
21929 (all_processes, stopping_threads, using_thrads)
21930 (struct pending_signals, debug_threads, pid_of): New.
21931 (inferior_pid): Replace with macro.
21932 (struct inferior_linux_data): Remove.
21933 (get_stop_pc, add_process): New functions.
21934 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21935 Use add_process and add_thread.
21936 (linux_attach_lwp): New function, based on old linux_attach. Use
21937 add_process and add_thread. Set stop_expected for new threads.
21938 (linux_attach): New function.
21939 (linux_kill_one_process): New function.
21940 (linux_kill): Kill all LWPs.
21941 (linux_thread_alive): Use find_inferior_id.
21942 (check_removed_breakpoints, status_pending_p): New functions.
21943 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21944 Update. Use WNOHANG. Wait for cloned processes also. Update process
21945 struct for the found process.
21946 (linux_wait_for_event): New function.
21947 (linux_wait): Use it. Support LWPs.
21948 (send_sigstop, wait_for_sigstop, stop_all_processes)
21949 (linux_resume_one_process, linux_continue_one_process): New functions.
21950 (linux_resume): Support LWPs.
21951 (REGISTER_RAW_SIZE): Remove.
21952 (fetch_register): Use register_size instead. Call supply_register.
21953 (usr_store_inferior_registers): Likewise. Call collect_register.
21954 Fix recursive case.
21955 (regsets_fetch_inferior_registers): Improve error message.
21956 (regsets_store_inferior_registers): Add debugging.
21957 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21958 (unstopped_p, linux_signal_pid): New functions.
21959 (linux_target_ops): Add linux_signal_pid.
21960 (linux_init_signals): New function.
21961 (initialize_low): Call it. Initialize using_threads.
21962 * regcache.c (inferior_regcache_data): Add valid
21964 (get_regcache): Fetch registers lazily. Add fetch argument
21965 and update all callers.
21966 (regcache_invalidate_one, regcache_invalidate): New
21968 (new_register_cache): Renamed from create_register_cache.
21969 Return the new regcache.
21970 (free_register_cache): Change argument to a void *.
21971 (registers_to_string, registers_from_string): Call get_regcache
21972 with fetch flag set.
21973 (register_data): Make static. Pass fetch flag to get_regcache.
21974 (supply_register): Call get_regcache with fetch flag clear.
21975 (collect_register): Call get_regcache with fetch flag set.
21976 (collect_register_as_string): New function.
21977 * regcache.h: Update.
21978 * remote-utils.c (putpkt): Flush after debug output and use
21980 Handle input interrupts while waiting for an ACK.
21981 (input_interrupt): Use signal_pid method.
21982 (getpkt): Flush after debug output and use stderr.
21983 (outreg): Use collect_register_as_string.
21984 (new_thread_notify, dead_thread_notify): New functions.
21985 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21986 and general_thread.
21987 (look_up_one_symbol): Flush after debug output.
21988 * server.c (step_thread, server_waiting): New variables.
21989 (start_inferior): Don't use signal_pid. Update call to mywait.
21990 (attach_inferior): Update call to mywait.
21991 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21992 (main): Don't fetch/store registers explicitly. Use
21993 set_desired_inferior. Support proposed ``Hs'' packet. Update
21995 * server.h: Update.
21996 (struct inferior_list, struct_inferior_list_entry): New.
21997 * target.c (set_desired_inferior): New.
21998 (write_inferior_memory): Constify.
21999 (mywait): New function.
22000 * target.h: Update.
22001 (struct target_ops): New signal_pid method.
22002 (mywait): Removed macro, added prototype.
22004 * linux-low.h (regset_func): Removed.
22005 (regset_fill_func, regset_store_func): New.
22006 (enum regset_type): New.
22007 (struct regset_info): Add type field. Use new operation types.
22008 (struct linux_target_ops): stop_pc renamed to get_pc.
22009 Add decr_pc_after_break and breakpoint_at.
22010 (get_process, get_thread_proess, get_process_thread)
22011 (strut process_info, all_processes, linux_attach_lwp)
22012 (thread_db_init): New.
22014 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22015 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22016 (the_low_target): Add new members.
22017 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22018 (i386_store_fpxregset): Constify.
22019 (target_regsets): Add new kind identifier.
22020 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22021 (i386_set_pc): Add debugging.
22022 (i386_breakpoint_at): New function.
22023 (the_low_target): Add new members.
22024 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22025 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22026 (mips_breakpoint_at): New.
22027 (the_low_target): Add new members.
22028 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22029 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22030 (the_low_target): Add new members.
22031 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22032 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22033 (the_low_target): Add new members.
22034 * linux-x86-64-low.c (target_regsets): Add new kind
22037 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22039 From Martin Pool <mbp@samba.org>:
22040 * server.c (gdbserver_usage): New function.
22043 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22045 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22046 stop_at -> stop_pc.
22048 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22050 * Makefile.in: Remove obsolete code.
22052 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22054 * linux-low.c (regsets_fetch_inferior_registers),
22055 (regsets_store_inferior_registers): Removed cast to int from
22057 * regcache.h: Added declaration of struct inferior_info.
22059 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22061 * inferiors.c (struct inferior_info): Add regcache_data.
22062 (add_inferior): Call create_register_cache.
22063 (clear_inferiors): Call free_register_cache.
22064 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22065 * regcache.c (struct inferior_regcache_data): New.
22066 (registers): Remove.
22067 (get_regcache): New function.
22068 (create_register_cache, free_register_cache): New functions.
22069 (set_register_cache): Don't initialize the register cache here.
22070 (registers_to_string, registers_from_string, register_data): Call
22072 * regcache.h: Add prototypes.
22073 * server.h: Likewise.
22075 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22077 * mem-break.c: New file.
22078 * mem-break.h: New file.
22079 * Makefile.in: Add mem-break.o rule; update server.h
22081 * inferiors.c (struct inferior_info): Add target_data
22083 (clear_inferiors): Free target_data member if set.
22084 (inferior_target_data, set_inferior_target_data): New functions.
22085 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22086 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22087 * linux-low.c (linux_bp_reinsert): New variable.
22088 (struct inferior_linux_data): New.
22089 (linux_create_inferior): Use set_inferior_target_data.
22090 (linux_attach): Likewise. Call add_inferior.
22091 (linux_wait_for_one_inferior): New function.
22092 (linux_wait): Call it.
22093 (linux_write_memory): Add const.
22094 (initialize_low): Call set_breakpoint_data.
22095 * linux-low.h (struct linux_target_ops): Add breakpoint
22097 * server.c (attach_inferior): Remove extra add_inferior
22099 * server.h: Include mem-break.h. Update inferior.c
22101 * target.c (read_inferior_memory)
22102 (write_inferior_memory): New functions.
22103 * target.h (read_inferior_memory)
22104 (write_inferior_memory): Change macros to prototypes.
22105 (struct target_ops): Update comments. Add const to write_memory
22108 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22110 * linux-low.c (usr_store_inferior_registers): Support
22111 registers which are allowed to fail to store.
22112 * linux-low.h (linux_target_ops): Likewise.
22113 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22114 (ppc_cannot_store_register): FPSCR may not be storable.
22116 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22118 * server.h: Include <string.h> if HAVE_STRING_H.
22119 * ChangeLog: Correct paths in last ChangeLog entry.
22121 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22123 * linux-low.h: Remove obsolete prototypes.
22124 (struct linux_target_ops): New.
22125 (extern the_low_target): New.
22126 * linux-low.c (num_regs, regmap): Remove declarations.
22127 (register_addr): Use the_low_target explicitly.
22128 (fetch_register): Likewise.
22129 (usr_fetch_inferior_registers): Likewise.
22130 (usr_store_inferior_registers): Likewise.
22131 * linux-arm-low.c (num_regs): Remove.
22132 (arm_num_regs): Define.
22133 (arm_regmap): Renamed from regmap, made static.
22134 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22136 (arm_cannot_store_register): Renamed from cannot_store_register,
22138 (the_low_target): New.
22139 * linux-i386-low.c (num_regs): Remove.
22140 (i386_num_regs): Define.
22141 (i386_regmap): Renamed from regmap, made static.
22142 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22144 (i386_cannot_store_register): Renamed from cannot_store_register,
22146 (the_low_target): New.
22147 * linux-ia64-low.c (num_regs): Remove.
22148 (ia64_num_regs): Define.
22149 (ia64_regmap): Renamed from regmap, made static.
22150 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22152 (ia64_cannot_store_register): Renamed from cannot_store_register,
22154 (the_low_target): New.
22155 * linux-m68k-low.c (num_regs): Remove.
22156 (m68k_num_regs): Define.
22157 (m68k_regmap): Renamed from regmap, made static.
22158 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22160 (m68k_cannot_store_register): Renamed from cannot_store_register,
22162 (the_low_target): New.
22163 * linux-mips-low.c (num_regs): Remove.
22164 (mips_num_regs): Define.
22165 (mips_regmap): Renamed from regmap, made static.
22166 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22168 (mips_cannot_store_register): Renamed from cannot_store_register,
22170 (the_low_target): New.
22171 * linux-ppc-low.c (num_regs): Remove.
22172 (ppc_num_regs): Define.
22173 (ppc_regmap): Renamed from regmap, made static.
22174 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22176 (ppc_cannot_store_register): Renamed from cannot_store_register,
22178 (the_low_target): New.
22179 * linux-s390-low.c (num_regs): Remove.
22180 (s390_num_regs): Define.
22181 (s390_regmap): Renamed from regmap, made static.
22182 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22184 (s390_cannot_store_register): Renamed from cannot_store_register,
22186 (the_low_target): New.
22187 * linux-sh-low.c (num_regs): Remove.
22188 (sh_num_regs): Define.
22189 (sh_regmap): Renamed from regmap, made static.
22190 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22192 (sh_cannot_store_register): Renamed from cannot_store_register,
22194 (the_low_target): New.
22195 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22196 (the_low_target): New.
22198 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22200 * Makefile.in: Add stamp-h target.
22201 * configure.in: Create stamp-h.
22202 * configure: Regenerated.
22204 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22206 * inferiors.c: New file.
22207 * target.c: New file.
22208 * target.h: New file.
22209 * Makefile.in: Add target.o and inferiors.o. Update
22211 * linux-low.c (inferior_pid): New static variable,
22212 moved from server.c.
22213 (linux_create_inferior): Renamed from create_inferior.
22214 Call add_inferior. Return 0 on success instead of a PID.
22215 (linux_attach): Renamed from myattach.
22216 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22217 (linux_thread_alive): Renamed from mythread_alive.
22218 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22220 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22221 (regsets_store_inferior_registers): Correct error message.
22222 Add missing ``return 0''.
22223 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22224 (linux_store_registers): Renamed from store_inferior_registers.
22225 (linux_read_memory): Renamed from read_inferior_memory.
22226 (linux_write_memory): Renamed from write_inferior_memory.
22227 (linux_target_ops): New structure.
22228 (initialize_low): Call set_target_ops ().
22229 * remote-utils.c (unhexify): New function.
22230 (hexify): New function.
22231 (input_interrupt): Send signals to ``signal_pid''.
22232 * server.c (inferior_pid): Remove.
22233 (start_inferior): Update create_inferior call.
22234 (attach_inferior): Call add_inferior.
22235 (handle_query): New function.
22236 (main): Call handle_query for `q' packets.
22237 * server.h: Include "target.h". Remove obsolete prototypes.
22238 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22240 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22242 * Makefile.in: Add WARN_CFLAGS. Update configury
22244 * configure.in: Check for <string.h>
22245 * configure: Regenerate.
22246 * config.in: Regenerate.
22247 * gdbreplay.c: Include needed system headers.
22248 (remote_open): Remove strchr prototype.
22249 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22250 * regcache.c (supply_register): Change buf argument to const void *.
22251 (supply_register_by_name): Likewise.
22252 (collect_register): Change buf argument to void *.
22253 (collect_register_by_name): Likewise.
22254 * regcache.h: Add missing prototypes.
22255 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22256 * server.c (handle_query): New function.
22257 (attached): New static variable, moved out of main.
22258 (main): Quiet longjmp clobber warnings.
22259 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22260 * utils.c (error): Remove NORETURN.