1 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3 * tdesc.cc (struct tdesc_compatible_info): New struct.
4 (tdesc_compatible_info_list): New function.
5 (tdesc_compatible_info_arch_name): New function.
7 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9 Use std::list to stop pending signal instead of manually-created
11 * linux-low.h: Include <list>.
12 (struct pending_signal): Move here from linux-low.cc.
13 (struct lwp_info) <pending_signals>
14 <pending_signals_to_report>: Update the type.
15 * linux-low.cc (struct pending_signals): Remove.
16 (linux_process_target::delete_lwp)
17 (linux_process_target::add_lwp)
18 (enqueue_one_deferred_signal)
19 (dequeue_one_deferred_signal)
20 (enqueue_pending_signal)
21 (linux_process_target::resume_one_lwp_throw)
22 (linux_process_target::thread_needs_step_over)
23 (linux_process_target::resume_one_thread)
24 (linux_process_target::proceed_one_lwp): Update the use of pending
27 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
29 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
32 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
34 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
35 * configure.srv: Remove mingw32ce cases.
36 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
37 * win32-low.h (to_back_slashes): Remove.
38 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
40 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
42 * Makefile.in (SFILES): linux-tile-low.cc.
43 * configure.srv: Remove tilegx case.
44 * linux-tile-low.cc: Remove.
46 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
48 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
49 * configure.srv: Remove m32r case.
50 * linux-m32r-low.cc: Remove.
52 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
54 * Makefile.in (SFILES): Remove linux-cris-low.c.
55 * configure.srv: Remove cris cases.
56 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
58 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
60 * Makefile.in (SFILES): Remove linux-bfin-low.c.
61 * configure.srv: Remove bfin case.
62 * linux-bfin-low.cc: Remove.
63 * linux-low.cc: Remove BFIN-conditional code.
65 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
67 * configure: Re-generate.
68 * configure.ac: Remove srv_qnx test.
69 * configure.srv: Remove nto case.
70 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
71 * remote-utils.c: Remove __QNX__-guarded code.
73 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
75 * configure: Re-generate.
76 * configure.ac: Remove srv_lynxos test.
77 * configure.srv: Remove lynxos cases.
78 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
81 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
83 * README: Fix a few outdated or incoherent things.
85 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
87 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
88 (win32_clear_inferiors): Use open_process_used.
89 (get_child_debug_event): Likewise.
91 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
94 * linux-low.cc (linux_process_target::create_inferior),
95 lynx-low.cc (lynx_process_target::create_inferior),
96 win32-low.cc (win32_process_target::create_inferior): Use
97 construct_inferior_arguments instead of stringify_argv
98 to get string representation which properly escapes
100 * server.cc (handle_v_run): Just pass empty program arg
101 as such, since any further processing is now handled via
102 construct_inferior_arguments.
104 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
106 * nto-low.cc (nto_process_target::create_inferior): Pass
107 argv to spawnp function as char **.
109 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
111 * server.cc (captured_main), (handle_v_run): No longer
112 insert extra NULL element to args vector.
114 2020-05-23 Pedro Alves <palves@redhat.com>
116 * gdb-safe-ctype.h: New.
118 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
121 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
122 (ia64_target::low_breakpoint_at): Ditto.
124 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
126 * win32-i386-low.cc (i386_supports_z_point_type): Handle
127 Z_PACKET_HW_BP z_type.
128 (i386_insert_point): Handle raw_bkpt_type type.
129 (i386_remove_point): Likewise.
131 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
133 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
135 * win32-arm-low.cc (arm_num_regs): New function.
136 (struct win32_target_ops): Use arm_num_regs.
137 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
139 (i386_get_thread_context): Likewise.
140 (i386_prepare_to_resume): Likewise.
141 (i386_thread_added): Likewise.
142 (i386_single_step): Likewise.
143 (i386_fetch_inferior_register): Likewise.
144 (i386_store_inferior_register): Likewise.
145 (i386_arch_setup): Likewise.
146 (i386_win32_num_regs): New function.
147 (struct win32_target_ops): Use i386_win32_num_regs.
148 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
150 (win32_require_context): Likewise.
151 (child_add_thread): Likewise.
152 (do_initial_child_stuff): Likewise.
153 (continue_one_thread): Likewise.
154 (win32_process_target::resume): Likewise.
155 (load_psapi): Likewise.
156 (win32_add_all_dlls): Likewise.
157 (maybe_adjust_pc): Likewise.
158 (win32_process_target::qxfer_siginfo): Likewise.
159 (initialize_low): Likewise.
160 * win32-low.h (struct win32_target_ops): Change num_regs to
163 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
165 * configure.ac: Remove check for fs_base/gs_base in
167 * configure: Re-generate.
168 * config.in: Re-generate.
169 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
170 x86_store_gregset): Adjust.
172 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
174 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
177 2020-04-16 Tom Tromey <tromey@adacore.com>
179 * win32-low.cc (windows_nat::handle_access_violation): New
182 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
184 * win32-low.cc (get_child_debug_event): Fix format string warning.
186 2020-04-13 Tom Tromey <tom@tromey.com>
188 * server.h (gdb_fildes_t): Remove typedef.
189 * remote-utils.c (remote_desc, list_desc): Now int.
190 (INVALID_DESCRIPTOR): Remove.
191 (gdb_connected, remote_close)
192 (check_remote_input_interrupt_request): Update.
193 * utils.h (pfildes): Don't declare.
194 * utils.c (pfildes): Remove.
196 2020-04-13 Tom Tromey <tom@tromey.com>
198 * server.h (handle_serial_event, handle_target_event): Update.
199 * server.c: Don't call initialize_event_loop.
200 (keep_processing_events): New global.
201 (handle_serial_event): Return void. Set keep_processing_events.
202 (handle_target_event): Return void.
203 (start_event_loop): Move from event-loop.c. Rewrite.
204 * remote-utils.c (handle_accept_event): Return void.
205 (reset_readchar): Use delete_timer.
206 (process_remaining): Return void.
207 (reschedule): Use create_timer.
208 * event-loop.h: Remove.
209 * event-loop.cc: Remove.
210 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
212 2020-04-13 Tom Tromey <tom@tromey.com>
214 * server.c (invoke_async_signal_handlers)
215 (check_async_event_handlers, flush_streams, gdb_select): New
218 2020-04-13 Tom Tromey <tom@tromey.com>
220 * configure: Rebuild.
221 * config.in: Rebuild.
223 2020-04-08 Tom Tromey <tromey@adacore.com>
226 * win32-low.c (child_continue): Call matching_pending_stop.
227 (get_child_debug_event): Call fetch_pending_stop. Push pending
230 2020-04-08 Tom Tromey <tromey@adacore.com>
232 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
233 (win32_process_target::supports_stopped_by_sw_breakpoint):
235 * win32-low.c (win32_supports_z_point_type): Always handle
237 (win32_insert_point): Call insert_memory_breakpoint when needed.
238 (win32_remove_point): Call remove_memory_breakpoint when needed.
239 (win32_process_target::stopped_by_sw_breakpoint)
240 (win32_process_target::supports_stopped_by_sw_breakpoint): New
242 (win32_target_ops): Update.
243 (maybe_adjust_pc): New function.
244 (win32_wait): Call maybe_adjust_pc.
246 2020-04-08 Tom Tromey <tromey@adacore.com>
248 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
250 * win32-i386-low.c (the_low_target): Update.
251 * win32-arm-low.c (the_low_target): Update.
253 2020-04-08 Tom Tromey <tromey@adacore.com>
255 * win32-low.h (win32_process_target::read_pc)
256 (win32_process_target::write_pc): Declare.
257 * win32-low.c (win32_process_target::read_pc)
258 (win32_process_target::write_pc): New methods.
259 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
261 (the_low_target): Update.
262 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
264 (the_low_target): Update.
266 2020-04-08 Tom Tromey <tromey@adacore.com>
268 * win32-low.c (win32_kill, get_child_debug_event): Use
269 wait_for_debug_event.
271 2020-04-08 Tom Tromey <tromey@adacore.com>
273 * win32-low.c (child_continue): Call continue_last_debug_event.
275 2020-04-08 Tom Tromey <tromey@adacore.com>
277 * win32-low.c (handle_exception): Remove.
278 (windows_nat::handle_ms_vc_exception): New function.
279 (get_child_debug_event): Add "continue_status" parameter.
281 (win32_wait): Update.
283 2020-04-08 Tom Tromey <tromey@adacore.com>
285 * win32-low.c (windows_nat::handle_load_dll): Rename from
286 handle_load_dll. No longer static.
287 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
290 2020-04-08 Tom Tromey <tromey@adacore.com>
292 * win32-low.c (handle_output_debug_string): Add parameter. Change
294 (win32_kill, get_child_debug_event): Update.
296 2020-04-08 Tom Tromey <tromey@adacore.com>
298 * win32-low.c (current_process_handle, current_process_id)
299 (main_thread_id, last_sig, current_event, siginfo_er): Move to
302 2020-04-08 Tom Tromey <tromey@adacore.com>
304 * win32-low.c (get_image_name): Remove.
305 (handle_load_dll): Update.
307 2020-04-08 Tom Tromey <tromey@adacore.com>
309 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
310 No longer static. Change parameters.
311 (child_add_thread, child_fetch_inferior_registers)
312 (child_store_inferior_registers, win32_resume)
313 (win32_get_tib_address): Update.
315 2020-04-08 Tom Tromey <tromey@adacore.com>
317 * win32-low.h (struct win32_target_ops): Use qualified names where
319 * win32-i386-low.c: Add "using namespace".
320 * win32-low.c: Add "using namespace".
321 * win32-arm-low.c: Add "using namespace".
323 2020-04-08 Tom Tromey <tromey@adacore.com>
325 * win32-low.c (delete_thread_info): Don't call CloseHandle.
327 2020-04-08 Tom Tromey <tromey@adacore.com>
329 * win32-low.c (win32_require_context, suspend_one_thread): Use
330 windows_thread_info::suspend.
331 (continue_one_thread): Use windows_thread_info::resume.
332 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
334 2020-04-08 Tom Tromey <tromey@adacore.com>
336 * win32-i386-low.c (update_debug_registers)
337 (i386_prepare_to_resume, i386_thread_added): Update.
339 2020-04-08 Tom Tromey <tromey@adacore.com>
341 * win32-low.c (child_add_thread): Use new.
342 (delete_thread_info): Use delete.
344 2020-04-08 Tom Tromey <tromey@adacore.com>
346 * win32-low.h (struct windows_thread_info): Remove.
348 2020-04-08 Tom Tromey <tromey@adacore.com>
350 * win32-low.h (struct windows_thread_info): Rename from
351 win32_thread_info. Remove typedef.
352 (struct win32_target_ops, win32_require_context): Update.
353 * win32-low.c (win32_get_thread_context)
354 (win32_set_thread_context, win32_prepare_to_resume)
355 (win32_require_context, thread_rec, child_add_thread)
356 (delete_thread_info, continue_one_thread)
357 (child_fetch_inferior_registers, child_store_inferior_registers)
358 (win32_resume, suspend_one_thread, win32_get_tib_address):
360 * win32-i386-low.c (update_debug_registers)
361 (win32_get_current_dr, i386_get_thread_context)
362 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
363 (i386_fetch_inferior_register, i386_store_inferior_register):
365 * win32-arm-low.c (arm_get_thread_context)
366 (arm_fetch_inferior_register, arm_store_inferior_register):
369 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371 * linux-low.h (struct linux_target_ops): Remove.
372 (the_low_target): Remove.
373 * linux-x86-low.cc (the_low_target): Remove.
374 * linux-aarch64-low.cc (the_low_target): Ditto.
375 * linux-arm-low.cc (the_low_target): Ditto.
376 * linux-bfin-low.cc (the_low_target): Ditto.
377 * linux-cris-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-ia64-low.cc (the_low_target): Ditto.
380 * linux-m32r-low.cc (the_low_target): Ditto.
381 * linux-m68k-low.cc (the_low_target): Ditto.
382 * linux-mips-low.cc (the_low_target): Ditto.
383 * linux-nios2-low.cc (the_low_target): Ditto.
384 * linux-ppc-low.cc (the_low_target): Ditto.
385 * linux-riscv-low.cc (the_low_target): Ditto.
386 * linux-s390-low.cc (the_low_target): Ditto.
387 * linux-sh-low.cc (the_low_target): Ditto.
388 * linux-sparc-low.cc (the_low_target): Ditto.
389 * linux-tic6x-low.cc (the_low_target): Ditto.
390 * linux-tile-low.cc (the_low_target): Ditto.
391 * linux-xtensa-low.cc (the_low_target): Ditto.
393 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
395 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
396 linux target define the op by overriding the declaration in
397 process_stratum_target.
399 * linux-low.h (struct linux_target_ops): Remove the op.
400 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
401 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
402 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
403 (x86_get_ipa_tdesc_idx): Turn into...
404 (x86_target::get_ipa_tdesc_idx): ...this.
405 (the_low_target): Remove the op field.
406 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
407 (ppc_get_ipa_tdesc_idx): Turn into...
408 (ppc_target::get_ipa_tdesc_idx): ...this.
409 (the_low_target): Remove the op field.
410 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
411 (s390_get_ipa_tdesc_idx): Turn into...
412 (s390_target::get_ipa_tdesc_idx): ...this.
413 (the_low_target): Remove the op field.
415 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
417 Turn the 'get_syscall_trapinfo' linux target op into a method
418 of process_stratum_target.
420 * linux-low.h (struct linux_target_ops): Remove the op.
421 (class linux_process_target) <get_syscall_trapinfo>
422 <gdb_catch_this_syscall>
423 <low_supports_catch_syscall>
424 <low_get_syscall_trapinfo>: Declare.
425 * linux-low.cc (get_syscall_trapinfo): Turn into...
426 (linux_process_target::get_syscall_trapinfo): ...this.
427 (linux_process_target::low_get_syscall_trapinfo): Define.
428 (gdb_catch_this_syscall_p): Turn into...
429 (linux_process_target::gdb_catch_this_syscall): ...this.
430 (linux_process_target::low_supports_catch_syscall): Define.
432 Update the callers below.
434 (linux_process_target::wait_1)
435 (linux_process_target::supports_catch_syscall)
437 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
438 <low_get_syscall_trapinfo>: Declare.
439 (x86_target::low_supports_catch_syscall): Define.
440 (x86_get_syscall_trapinfo): Turn into...
441 (x86_target::low_get_syscall_trapinfo): ...this.
442 (the_low_target): Remove the op field.
443 * linux-aarch64-low.cc (class aarch64_target)
444 <low_supports_catch_syscall>
445 <low_get_syscall_trapinfo>: Declare.
446 (aarch64_target::low_supports_catch_syscall): Define.
447 (aarch64_get_syscall_trapinfo): Turn into...
448 (aarch64_target::low_get_syscall_trapinfo): ...this.
449 (the_low_target): Remove the op field.
450 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
451 <low_get_syscall_trapinfo>: Declare.
452 (arm_target::low_supports_catch_syscall): Define.
453 (arm_get_syscall_trapinfo): Turn into...
454 (arm_target::low_get_syscall_trapinfo): ...this.
455 (the_low_target): Remove the op field.
456 * linux-ppc-low.cc (the_low_target): Remove the op field.
457 * linux-s390-low.cc (the_low_target): Remove the op field.
459 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461 Remove the 'supports_hardware_single_step' linux target op and
462 override the process_stratum_target's op definition in
463 linux_process_target to return true.
465 * linux-low.h (struct linux_target_ops): Remove the op.
466 (class linux_process_target) <finish_step_over>
467 <maybe_hw_step>: Declare.
468 * linux-low.cc (can_hardware_single_step): Remove.
469 (maybe_hw_step): Turn into...
470 (linux_process_target::maybe_hw_step): ...this.
471 (finish_step_over): Turn into...
472 (linux_process_target::finish_step_over): ...this.
473 (linux_process_target::supports_hardware_single_step): Update
476 Update the callers below.
478 (linux_process_target::single_step)
479 (linux_process_target::resume_one_lwp_throw)
481 * linux-arm-low.cc (class arm_target)
482 <supports_hardware_single_step>: Declare.
483 (arm_supports_hardware_single_step): Turn into...
484 (arm_target::supports_hardware_single_step): ...this.
485 (the_low_target): Remove the op field.
486 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
487 (the_low_target): Remove the op field.
488 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
490 (the_low_target): Remove the op field.
491 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
492 (the_low_target): Remove the op field.
493 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
494 (the_low_target): Remove the op field.
495 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
496 (the_low_target): Remove the op field.
497 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
498 (the_low_target): Remove the op field.
499 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
500 (the_low_target): Remove the op field.
501 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
502 (the_low_target): Remove the op field.
503 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
504 (the_low_target): Remove the op field.
505 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
506 (the_low_target): Remove the op field.
507 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
508 (the_low_target): Remove the op field.
509 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
511 (the_low_target): Remove the op field.
513 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515 Turn the 'supports_range_stepping' linux target op into a method
516 of linux_process_target.
518 * linux-low.h (struct linux_target_ops): Remove the op.
519 (class linux_process_target) <low_supports_range_stepping>: Declare.
520 * linux-low.cc (linux_process_target::low_supports_range_stepping):
522 (linux_process_target::supports_range_stepping): Update the call
524 * linux-x86-low.cc (class x86_target)
525 <low_supports_range_stepping>: Declare.
526 (x86_supports_range_stepping): Turn into...
527 (x86_target::low_supports_range_stepping): ...this.
528 (the_low_target): Remove the op field.
529 * linux-aarch64-low.cc (class aarch64_target)
530 <low_supports_range_stepping>: Declare.
531 (aarch64_supports_range_stepping): Turn into...
532 (aarch64_target::low_supports_range_stepping): ...this.
533 (the_low_target): Remove the op field.
534 * linux-arm-low.cc (the_low_target): Remove the op field.
535 * linux-bfin-low.cc (the_low_target): Ditto.
536 * linux-crisv32-low.cc (the_low_target): Ditto.
537 * linux-m32r-low.cc (the_low_target): Ditto.
538 * linux-m68k-low.cc (the_low_target): Ditto.
539 * linux-ppc-low.cc (the_low_target): Ditto.
540 * linux-s390-low.cc (the_low_target): Ditto.
541 * linux-sh-low.cc (the_low_target): Ditto.
542 * linux-tic6x-low.cc (the_low_target): Ditto.
543 * linux-tile-low.cc (the_low_target): Ditto.
544 * linux-xtensa-low.cc (the_low_target): Ditto.
546 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548 Remove the 'emit_ops' linux target ops and let the concrete
549 linux target define the op by overriding the declaration of
550 process_stratum_target.
552 * linux-low.h (struct linux_target_ops): Remove the op.
553 (class linux_process_target) <emit_ops>: Remove.
554 * linux-low.cc (linux_process_target::emit_ops): Remove.
555 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
556 (x86_emit_ops): Turn into...
557 (x86_target::emit_ops): ...this.
558 (the_low_target): Remove the op field.
559 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
560 (aarch64_emit_ops): Turn into...
561 (aarch64_target::emit_ops): ...this.
562 (the_low_target): Remove the op field.
563 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
564 (ppc_emit_ops): Turn into...
565 (ppc_target::emit_ops): ...this.
566 (the_low_target): Remove the op field.
567 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
568 (s390_emit_ops): Turn into...
569 (s390_target::emit_ops): ...this.
570 (the_low_target): Remove the op field.
571 * linux-arm-low.cc (the_low_target): Remove the op field.
572 * linux-bfin-low.cc (the_low_target): Ditto.
573 * linux-crisv32-low.cc (the_low_target): Ditto.
574 * linux-m32r-low.cc (the_low_target): Ditto.
575 * linux-m68k-low.cc (the_low_target): Ditto.
576 * linux-sh-low.cc (the_low_target): Ditto.
577 * linux-tic6x-low.cc (the_low_target): Ditto.
578 * linux-tile-low.cc (the_low_target): Ditto.
579 * linux-xtensa-low.cc (the_low_target): Ditto.
581 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583 Remove the 'install_fast_tracepoint_jump_pad' and
584 'get_min_fast_tracepoint_insn_len' linux target ops to let the
585 concrete linux target define the ops by overriding the declarations
586 of process_stratum_target.
588 * linux-low.h (struct linux_target_ops): Remove the ops.
589 (class linux_process_target) <supports_fast_tracepoints>
590 <install_fast_tracepoint_jump_pad>
591 <get_min_fast_tracepoint_insn_len>: Remove.
592 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
593 (linux_process_target::install_fast_tracepoint_jump_pad)
594 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
595 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
596 <install_fast_tracepoint_jump_pad>
597 <get_min_fast_tracepoint_insn_len>: Declare.
598 (x86_target::supports_fast_tracepoints): Define.
599 (x86_install_fast_tracepoint_jump_pad): Turn into...
600 (x86_target::install_fast_tracepoint_jump_pad): ...this.
601 (x86_get_min_fast_tracepoint_insn_len): Turn into...
602 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
603 (the_low_target): Remove the op fields.
604 * linux-aarch64-low.cc (class aarch64_target)
605 <supports_fast_tracepoints>
606 <install_fast_tracepoint_jump_pad>
607 <get_min_fast_tracepoint_insn_len>: Declare.
608 (aarch64_target::supports_fast_tracepoints): Define.
609 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
610 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
611 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
612 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
613 (the_low_target): Remove the op fields.
614 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
615 <install_fast_tracepoint_jump_pad>
616 <get_min_fast_tracepoint_insn_len>: Declare.
617 (ppc_target::supports_fast_tracepoints): Define.
618 (ppc_install_fast_tracepoint_jump_pad): Turn into...
619 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
620 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
621 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
622 (the_low_target): Remove the op fields.
623 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
624 <install_fast_tracepoint_jump_pad>
625 <get_min_fast_tracepoint_insn_len>: Declare.
626 (s390_target::supports_fast_tracepoints): Define.
627 (s390_install_fast_tracepoint_jump_pad): Turn into...
628 (s390_target::install_fast_tracepoint_jump_pad): ...this.
629 (s390_get_min_fast_tracepoint_insn_len): Turn into...
630 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
631 (the_low_target): Remove the op fields.
632 * linux-arm-low.cc (the_low_target): Remove the op fields.
633 * linux-bfin-low.cc (the_low_target): Ditto.
634 * linux-crisv32-low.cc (the_low_target): Ditto.
635 * linux-m32r-low.cc (the_low_target): Ditto.
636 * linux-m68k-low.cc (the_low_target): Ditto.
637 * linux-sh-low.cc (the_low_target): Ditto.
638 * linux-tic6x-low.cc (the_low_target): Ditto.
639 * linux-tile-low.cc (the_low_target): Ditto.
640 * linux-xtensa-low.cc (the_low_target): Ditto.
642 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
644 Turn the 'get_thread_area' linux target op into a method of
645 process_stratum_target.
647 * linux-low.h (struct linux_target_ops): Remove the op.
648 (class linux_process_target) <stuck_in_jump_pad>
649 <linux_fast_tracepoint_collecting>
650 <low_get_thread_area>: Declare.
651 * linux-low.cc (supports_fast_tracepoints): Remove.
652 (linux_fast_tracepoint_collecting): Turn into...
653 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
654 (linux_process_target::low_get_thread_area): Define.
655 (stuck_in_jump_pad_callback): Turn into...
656 (linux_process_target::stuck_in_jump_pad): ...this.
658 Update the caller below.
660 (linux_process_target::stabilize_threads)
662 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
664 (x86_get_thread_area): Turn into...
665 (x86_target::low_get_thread_area): ...this.
666 (the_low_target): Remove the op field.
667 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
669 (aarch64_get_thread_area): Turn into...
670 (aarch64_target::low_get_thread_area): ...this.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
674 (ppc_get_thread_area): Turn into...
675 (ppc_target::low_get_thread_area): ...this.
676 (the_low_target): Remove the op field.
677 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
679 (s390_get_thread_area): Turn into...
680 (s390_target::low_get_thread_area): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
692 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Remote the 'supports_tracepoints' linux target op and let the
695 concrete linux target define it by overriding the op declared in
696 process_stratum_target.
698 * linux-low.h (struct linux_target_ops): Remove the op.
699 (class linux_process_target) <supports_tracepoints>: Remove.
700 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
701 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
703 (x86_supports_tracepoints): Turn into...
704 (x86_target::supports_tracepoints): ...this.
705 (the_low_target): Remove the op field.
706 * linux-aarch64-low.cc (class aarch64_target)
707 <supports_tracepoints>: Declare.
708 (aarch64_supports_tracepoints): Turn into...
709 (aarch64_target::supports_tracepoints): ...this.
710 (the_low_target): Remove the op field.
711 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
713 (ppc_supports_tracepoints): Turn into...
714 (ppc_target::supports_tracepoints): ...this.
715 (the_low_target): Remove the op field.
716 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
718 (s390_supports_tracepoints): Turn into...
719 (s390_target::supports_tracepoints): ...this.
720 (the_low_target): Remove the op field.
721 * linux-arm-low.cc (the_low_target): Remove the op field.
722 * linux-bfin-low.cc (the_low_target): Ditto.
723 * linux-crisv32-low.cc (the_low_target): Ditto.
724 * linux-m32r-low.cc (the_low_target): Ditto.
725 * linux-m68k-low.cc (the_low_target): Ditto.
726 * linux-sh-low.cc (the_low_target): Ditto.
727 * linux-tic6x-low.cc (the_low_target): Ditto.
728 * linux-tile-low.cc (the_low_target): Ditto.
729 * linux-xtensa-low.cc (the_low_target): Ditto.
731 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733 Remove the 'process_qsupported' linux target op and let a concrete
734 linux target define the op by overriding the op declaration in
735 process_stratum_target.
737 * linux-low.h (struct linux_target_ops): Remove the op.
738 (class linux_process_target) <process_qsupported>: Remove.
739 * linux-low.cc (linux_process_target::process_qsupported): Remove.
740 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
741 (x86_linux_process_qsupported): Turn into...
742 (x86_target::process_qsupported): ...this.
743 (the_low_target): Remove the op field.
744 * linux-aarch64-low.cc (the_low_target): Remove the op
746 * linux-arm-low.cc (the_low_target): Ditto.
747 * linux-bfin-low.cc (the_low_target): Ditto.
748 * linux-crisv32-low.cc (the_low_target): Ditto.
749 * linux-m32r-low.cc (the_low_target): Ditto.
750 * linux-m68k-low.cc (the_low_target): Ditto.
751 * linux-ppc-low.cc (the_low_target): Ditto.
752 * linux-s390-low.cc (the_low_target): Ditto.
753 * linux-sh-low.cc (the_low_target): Ditto.
754 * linux-tic6x-low.cc (the_low_target): Ditto.
755 * linux-tile-low.cc (the_low_target): Ditto.
756 * linux-xtensa-low.cc (the_low_target): Ditto.
758 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760 Turn the 'prepare_to_resume' linux target op into a method of
761 linux_process_target.
763 * linux-low.h (struct linux_target_ops): Remove the op.
764 (class linux_process_target) <low_prepare_to_resume>: Declare.
765 * linux-low.cc (linux_process_target::low_prepare_to_resume):
768 Update the callers below:
770 (linux_process_target::resume_one_lwp_throw)
771 (linux_process_target::low_prepare_to_resume)
773 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
775 (x86_target::low_prepare_to_resume): Define.
776 (the_low_target): Remove the op field.
777 * linux-aarch64-low.cc (class aarch64_target)
778 <low_prepare_to_resume>: Declare.
779 (aarch64_target::low_prepare_to_resume): Define.
780 (the_low_target): Remove the op field.
781 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
783 (arm_prepare_to_resume): Turn into...
784 (arm_target::low_prepare_to_resume): ...this.
785 (the_low_target): Remove the op field.
786 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
788 (mips_linux_prepare_to_resume): Turn into...
789 (mips_target::low_prepare_to_resume): ...this.
790 (the_low_target): Remove the op field.
791 * linux-bfin-low.cc (the_low_target): Remove the op field.
792 * linux-crisv32-low.cc (the_low_target): Ditto.
793 * linux-m32r-low.cc (the_low_target): Ditto.
794 * linux-m68k-low.cc (the_low_target): Ditto.
795 * linux-ppc-low.cc (the_low_target): Ditto.
796 * linux-s390-low.cc (the_low_target): Ditto.
797 * linux-sh-low.cc (the_low_target): Ditto.
798 * linux-tic6x-low.cc (the_low_target): Ditto.
799 * linux-tile-low.cc (the_low_target): Ditto.
800 * linux-xtensa-low.cc (the_low_target): Ditto.
802 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
804 Turn the 'new_process', 'delete_process', 'new_thread',
805 'delete_thread', and 'new_fork' linux target ops into methods
806 of linux_process_target.
808 * linux-low.h (struct linux_target_ops): Remove the ops.
809 (class linux_process_target) <add_linux_process>
814 <check_zombie_leaders>
820 <low_new_fork>: Declare.
821 * linux-low.cc (delete_lwp): Turn into...
822 (linux_process_target::delete_lwp): ...this.
823 (linux_process_target::low_delete_thread): Define.
824 (linux_add_process): Turn into...
825 (linux_process_target::add_linux_process): ...this.
826 (linux_process_target::low_new_process): Define.
827 (linux_process_target::low_delete_process): Define.
828 (linux_process_target::low_new_fork): Define.
829 (add_lwp): Turn into...
830 (linux_process_target::add_lwp): ...this.
831 (linux_process_target::low_new_thread): Define.
832 (linux_attach_lwp): Turn into...
833 (linux_process_target::attach_lwp): ...this.
834 (linux_detach_one_lwp): Turn into...
835 (linux_process_target::detach_one_lwp): ...this.
836 (linux_detach_lwp_callback): Remove and inline...
837 (linux_process_target::detach): ...here.
838 (check_zombie_leaders): Turn into...
839 (linux_process_target::check_zombie_leaders): ...this.
840 (filter_exit_event): Turn into...
841 (linux_process_target::filter_exit_event): ...this.
843 Update the callers below.
845 (linux_process_target::handle_extended_wait)
846 (linux_process_target::create_inferior)
847 (attach_proc_task_lwp_callback)
848 (linux_process_target::attach)
849 (linux_process_target::detach)
850 (linux_process_target::mourn)
851 * thread-db.cc (attach_thread)
853 * linux-x86-low.cc (class x86_target) <low_new_process>
857 <low_new_fork>: Declare.
858 (x86_linux_new_process): Turn into...
859 (x86_target::low_new_process): ...this.
860 (x86_linux_delete_process): Turn into...
861 (x86_target::low_delete_process): ...this.
862 (x86_target::low_new_thread): Define.
863 (x86_target::low_delete_thread): Define.
864 (x86_linux_new_fork): Turn into...
865 (x86_target::low_new_fork): ...this.
866 (the_low_target): Remove the op fields.
867 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
871 <low_new_fork>: Declare.
872 (aarch64_linux_new_process): Turn into...
873 (aarch64_target::low_new_process): ...this.
874 (aarch64_linux_delete_process): Turn into...
875 (aarch64_target::low_delete_process): ...this.
876 (aarch64_target::low_new_thread): Define.
877 (aarch64_target::low_delete_thread): Define.
878 (aarch64_linux_new_fork): Turn into...
879 (aarch64_target::low_new_fork): ...this.
880 (the_low_target): Remove the op fields.
881 * linux-arm-low.cc (class arm_target) <low_new_process>
885 <low_new_fork>: Declare.
886 (arm_new_process): Turn into...
887 (arm_target::low_new_process): ...this.
888 (arm_delete_process): Turn into...
889 (arm_target::low_delete_process): ...this.
890 (arm_new_thread): Turn into...
891 (arm_target::low_new_thread): ...this.
892 (arm_delete_thread): Turn into...
893 (arm_target::low_delete_thread): ...this.
894 (arm_new_fork): Turn into...
895 (arm_target::low_new_fork): ...this.
896 (the_low_target): Remove the op fields.
897 * linux-mips-low.cc (class mips_target) <low_new_process>
901 <low_new_fork>: Declare.
902 (mips_linux_new_process): Turn into...
903 (mips_target::low_new_process): ...this.
904 (mips_linux_delete_process): Turn into...
905 (mips_target::low_delete_process): ...this.
906 (mips_linux_new_thread): Turn into...
907 (mips_target::low_new_thread): ...this.
908 (mips_linux_delete_thread): Turn into...
909 (mips_target::low_delete_thread): ...this.
910 (mips_linux_new_fork): Turn into...
911 (mips_target::low_new_fork): ...this.
912 (the_low_target): Remove the op fields.
913 * linux-bfin-low.cc (the_low_target): Remove the op fields.
914 * linux-crisv32-low.cc (the_low_target): Ditto.
915 * linux-m32r-low.cc (the_low_target): Ditto.
916 * linux-m68k-low.cc (the_low_target): Ditto.
917 * linux-ppc-low.cc (the_low_target): Ditto.
918 * linux-s390-low.cc (the_low_target): Ditto.
919 * linux-sh-low.cc (the_low_target): Ditto.
920 * linux-tic6x-low.cc (the_low_target): Ditto.
921 * linux-tile-low.cc (the_low_target): Ditto.
922 * linux-xtensa-low.cc (the_low_target): Ditto.
924 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926 Turn the 'siginfo_fixup' linux target op into a method of
927 linux_process_target.
929 * linux-low.h (struct linux_target_ops): Remove the op.
930 (class linux_process_target) <siginfo_fixup>
931 <low_siginfo_fixup>: Declare.
932 * linux-low.cc (siginfo_fixup): Turn into...
933 (linux_process_target::siginfo_fixup): ...this.
934 (linux_process_target::low_siginfo_fixup): Define.
935 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
936 (x86_siginfo_fixup): Turn into...
937 (x86_target::low_siginfo_fixup): ...this.
938 (the_low_target): Remove the op field.
939 * linux-aarch64-low.cc (class aarch64_target):
940 <low_siginfo_fixup>: Declare.
941 (aarch64_linux_siginfo_fixup): Turn into...
942 (aarch64_target::low_siginfo_fixup): ...this.
943 (the_low_target): Remove the op field.
944 * linux-arm-low.cc (the_low_target): Remove the op field.
945 * linux-bfin-low.cc (the_low_target): Ditto.
946 * linux-crisv32-low.cc (the_low_target): Ditto.
947 * linux-m32r-low.cc (the_low_target): Ditto.
948 * linux-m68k-low.cc (the_low_target): Ditto.
949 * linux-mips-low.cc (the_low_target): Ditto.
950 * linux-ppc-low.cc (the_low_target): Ditto.
951 * linux-s390-low.cc (the_low_target): Ditto.
952 * linux-sh-low.cc (the_low_target): Ditto.
953 * linux-tic6x-low.cc (the_low_target): Ditto.
954 * linux-tile-low.cc (the_low_target): Ditto.
955 * linux-xtensa-low.cc (the_low_target): Ditto.
957 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
959 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
960 linux target ops into methods of linux_process_target.
962 * linux-low.h (struct linux_target_ops): Remove the ops.
963 (class linux_process_target) <low_collect_ptrace_register>
964 <low_store_ptrace_register>: Declare.
965 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
966 (linux_process_target::low_supply_ptrace_register): Define.
968 Update the callers below.
970 (linux_process_target::fetch_register)
971 (linux_process_target::store_register)
973 * linux-x86-low.cc (the_low_target): Remove the op fields.
974 * linux-aarch64-low.cc (the_low_target): Ditto.
975 * linux-arm-low.cc (the_low_target): Ditto.
976 * linux-bfin-low.cc (the_low_target): Ditto.
977 * linux-crisv32-low.cc (the_low_target): Ditto.
978 * linux-m32r-low.cc (the_low_target): Ditto.
979 * linux-m68k-low.cc (the_low_target): Ditto.
980 * linux-sh-low.cc (the_low_target): Ditto.
981 * linux-sparc-low.cc (the_low_target): Ditto.
982 * linux-tic6x-low.cc (the_low_target): Ditto.
983 * linux-tile-low.cc (the_low_target): Ditto.
984 * linux-xtensa-low.cc (the_low_target): Ditto.
985 * linux-mips-low.cc (class mips_target)
986 <low_collect_ptrace_register>
987 <low_supply_ptrace_register>: Declare.
988 (mips_collect_ptrace_register): Turn into ...
989 (mips_target::low_collect_ptrace_register): ...this.
990 (mips_supply_ptrace_register): Turn into...
991 (mips_target::low_supply_ptrace_register): ...this.
992 (the_low_target): Remove the op fields.
993 * linux-ppc-low.cc (class ppc_target)
994 <low_collect_ptrace_register>
995 <low_supply_ptrace_register>: Declare.
996 (ppc_collect_ptrace_register): Turn into ...
997 (ppc_target::low_collect_ptrace_register): ...this.
998 (ppc_supply_ptrace_register): Turn into ...
999 (ppc_target::low_supply_ptrace_register): ...this.
1000 (ppc_fill_gregset): Update for the calls to
1001 low_collect_ptrace_register.
1002 (the_low_target): Remove the op fields.
1003 * linux-s390-low.cc (class s390_target)
1004 <low_collect_ptrace_register>
1005 <low_supply_ptrace_register>: Declare.
1006 (s390_collect_ptrace_register): Turn into ...
1007 (s390_target::low_collect_ptrace_register): ...this.
1008 (s390_supply_ptrace_register): Turn into ...
1009 (s390_target::low_supply_ptrace_register): ...this.
1010 (s390_fill_gregset): Update for the calls to
1011 low_collect_ptrace_register.
1012 (the_low_target): Remove the op fields.
1014 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1017 target ops into methods of linux_process_target.
1019 * linux-low.h (struct linux_target_ops): Remove the ops.
1020 (class linux_process_target) <check_stopped_by_watchpoint>
1021 <low_stopped_by_watchpoint>
1022 <low_stopped_data_address>: Declare.
1023 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1024 (linux_process_target::check_stopped_by_watchpoint): ...this.
1025 (linux_process_target::low_stopped_by_watchpoint): Define.
1026 (linux_process_target::low_stopped_data_address): Define.
1027 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1028 <low_stopped_data_address>: Declare.
1029 (x86_stopped_by_watchpoint): Turn into...
1030 (x86_target::low_stopped_by_watchpoint): ...this.
1031 (x86_stopped_data_address): Turn into...
1032 (x86_target::low_stopped_data_address): ...this.
1033 (the_low_target): Remove the op fields.
1034 * linux-aarch64-low.cc (class aarch64_target)
1035 <low_stopped_by_watchpoint>
1036 <low_stopped_data_address>: Declare.
1037 (aarch64_stopped_by_watchpoint): Turn into...
1038 (aarch64_target::low_stopped_by_watchpoint): ...this.
1039 (aarch64_stopped_data_address): Turn into...
1040 (aarch64_target::low_stopped_data_address): ...this.
1041 (the_low_target): Remove the op fields.
1042 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1043 <low_stopped_data_address>: Declare.
1044 (arm_stopped_by_watchpoint): Turn into...
1045 (arm_target::low_stopped_by_watchpoint): ...this.
1046 (arm_stopped_data_address): Turn into...
1047 (arm_target::low_stopped_data_address): ...this.
1048 (the_low_target): Remove the op fields.
1049 * linux-crisv32-low.cc (class crisv32_target)
1050 <low_stopped_by_watchpoint>
1051 <low_stopped_data_address>: Declare.
1052 (cris_stopped_by_watchpoint): Turn into...
1053 (crisv32_target::low_stopped_by_watchpoint): ...this.
1054 (cris_stopped_data_address): Turn into...
1055 (crisv32_target::low_stopped_data_address): ...this.
1056 (the_low_target): Remove the op fields.
1057 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1058 <low_stopped_data_address>: Declare.
1059 (mips_stopped_by_watchpoint): Turn into...
1060 (mips_target::low_stopped_by_watchpoint): ...this.
1061 (mips_stopped_data_address): Turn into...
1062 (mips_target::low_stopped_data_address): ...this.
1063 (the_low_target): Remove the op fields.
1064 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1065 * linux-m32r-low.cc (the_low_target): Ditto.
1066 * linux-m68k-low.cc (the_low_target): Ditto.
1067 * linux-ppc-low.cc (the_low_target): Ditto.
1068 * linux-s390-low.cc (the_low_target): Ditto.
1069 * linux-sh-low.cc (the_low_target): Ditto.
1070 * linux-sparc-low.cc (the_low_target): Ditto.
1071 * linux-tic6x-low.cc (the_low_target): Ditto.
1072 * linux-tile-low.cc (the_low_target): Ditto.
1073 * linux-xtensa-low.cc (the_low_target): Ditto.
1075 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1077 Turn the 'insert_point' and 'remove_point' linux target ops into
1078 methods of linux_process_target.
1080 * linux-low.h (struct linux_target_ops): Remove the ops.
1081 (class linux_process_target) <low_insert_point>
1082 <low_remove_point>: Declare.
1083 * linux-low.cc (linux_process_target::low_insert_point)
1084 (linux_process_target::low_remove_point): Define.
1085 (linux_process_target::insert_point)
1086 (linux_process_target::remove_point): Update for calls to
1087 low_insert_point and low_remove_point.
1088 * linux-x86-low.cc (class x86_target) <low_insert_point>
1089 <low_remove_point>: Declare.
1090 (x86_insert_point): Turn into...
1091 (x86_target::low_insert_point): ...this.
1092 (x86_remove_point): Turn into...
1093 (x86_target::low_remove_point): ...this.
1094 (the_low_target): Remove the op fields.
1095 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1096 <low_remove_point>: Declare.
1097 (aarch64_insert_point): Turn into...
1098 (aarch64_target::low_insert_point): ...this.
1099 (aarch64_remove_point): Turn into...
1100 (aarch64_target::low_remove_point): ...this.
1101 (the_low_target): Remove the op fields.
1102 * linux-arm-low.cc (class arm_target) <low_insert_point>
1103 <low_remove_point>: Declare.
1104 (arm_insert_point): Turn into...
1105 (arm_target::low_insert_point): ...this.
1106 (arm_remove_point): Turn into...
1107 (arm_target::low_remove_point): ...this.
1108 (the_low_target): Remove the op fields.
1109 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1110 <low_remove_point>: Declare.
1111 (crisv32_insert_point): Turn into...
1112 (crisv32_target::low_insert_point): ...this.
1113 (crisv32_remove_point): Turn into...
1114 (crisv32_target::low_remove_point): ...this.
1115 (the_low_target): Remove the op fields.
1116 * linux-mips-low.cc (class mips_target) <low_insert_point>
1117 <low_remove_point>: Declare.
1118 (mips_insert_point): Turn into...
1119 (mips_target::low_insert_point): ...this.
1120 (mips_remove_point): Turn into...
1121 (mips_target::low_remove_point): ...this.
1122 (the_low_target): Remove the op fields.
1123 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1124 <low_remove_point>: Declare.
1125 (ppc_insert_point): Turn into...
1126 (ppc_target::low_insert_point): ...this.
1127 (ppc_remove_point): Turn into...
1128 (ppc_target::low_remove_point): ...this.
1129 (the_low_target): Remove the op fields.
1130 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1131 * linux-m32r-low.cc (the_low_target): Ditto.
1132 * linux-m68k-low.cc (the_low_target): Ditto.
1133 * linux-s390-low.cc (the_low_target): Ditto.
1134 * linux-sh-low.cc (the_low_target): Ditto.
1135 * linux-sparc-low.cc (the_low_target): Ditto.
1136 * linux-tic6x-low.cc (the_low_target): Ditto.
1137 * linux-tile-low.cc (the_low_target): Ditto.
1138 * linux-xtensa-low.cc (the_low_target): Ditto.
1140 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1142 Remove the 'supports_z_point_type' linux target op and let the
1143 concrete linux target define it by overriding the op declared in
1144 process_stratum_target.
1146 * linux-low.cc (linux_process_target::supports_z_point_type):
1148 * linux-low.h (struct linux_target_ops): Remove the op.
1149 (class linux_process_target) <supports_z_point_type>: Remove.
1150 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1152 (x86_supports_z_point_type): Turn into...
1153 (x86_target::supports_z_point_type): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-aarch64-low.cc (class aarch64_target)
1156 <supports_z_point_type>: Declare.
1157 (aarch64_supports_z_point_type): Turn into...
1158 (aarch64_target::supports_z_point_type): ...this.
1159 (the_low_target): Remove the op field.
1160 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1162 (arm_supports_z_point_type): Turn into...
1163 (arm_target::supports_z_point_type): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-crisv32-low.cc (class crisv32_target)
1166 <supports_z_point_type>: Declare.
1167 (cris_supports_z_point_type): Turn into...
1168 (crisv32_target::supports_z_point_type): ...this.
1169 (the_low_target): Remove the op field.
1170 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1172 (mips_supports_z_point_type): Turn into...
1173 (mips_target::supports_z_point_type): ...this.
1174 (the_low_target): Remove the op field.
1175 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1177 (ppc_supports_z_point_type): Turn into...
1178 (ppc_target::supports_z_point_type): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1182 (s390_supports_z_point_type): Turn into...
1183 (s390_target::supports_z_point_type): ...this.
1184 (the_low_target): Remove the op field.
1185 * linux-bfin-low.cc (the_low_target): Remove the op field.
1186 * linux-m32r-low.cc (the_low_target): Ditto.
1187 * linux-m68k-low.cc (the_low_target): Ditto.
1188 * linux-sh-low.cc (the_low_target): Ditto.
1189 * linux-sparc-low.cc (the_low_target): Ditto.
1190 * linux-tic6x-low.cc (the_low_target): Ditto.
1191 * linux-tile-low.cc (the_low_target): Ditto.
1192 * linux-xtensa-low.cc (the_low_target): Ditto.
1194 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1196 Turn the 'breakpoint_at' linux target op into a method of
1197 linux_process_target.
1199 * linux-low.h (struct linux_target_ops): Remove the op.
1200 (class linux_process_target) <low_breakpoint_at>: Declare.
1202 Update the callers below:
1204 * linux-low.cc (linux_process_target::save_stop_reason)
1205 (linux_process_target::thread_still_has_status_pending)
1206 (linux_process_target::wait_1)
1208 * linux-x86-low.cc (class x86_target)
1209 <low_breakpoint_at>: Declare.
1210 (x86_breakpoint_at): Turn into...
1211 (x86_target::low_breakpoint_at): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-aarch64-low.cc (class aarch64_target)
1214 <low_breakpoint_at>: Declare.
1215 (aarch64_breakpoint_at): Turn into...
1216 (aarch64_target::low_breakpoint_at): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-arm-low.cc (class arm_target)
1219 <low_breakpoint_at>: Declare.
1220 (arm_target::low_breakpoint_at): Define.
1221 (the_low_target): Remove the op field.
1222 * linux-bfin-low.cc (class bfin_target)
1223 <low_breakpoint_at>: Declare.
1224 (bfin_breakpoint_at): Turn into...
1225 (bfin_target::low_breakpoint_at): ...this.
1226 (the_low_target): Remove the op field.
1227 * linux-cris-low.cc (class cris_target)
1228 <low_breakpoint_at>: Declare.
1229 (cris_breakpoint_at): Turn into...
1230 (cris_target::low_breakpoint_at): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-crisv32-low.cc (class crisv32_target)
1233 <low_breakpoint_at>: Declare.
1234 (crisv32_breakpoint_at): Turn into...
1235 (crisv32_target::low_breakpoint_at): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-ia64-low.cc (class ia64_target)
1238 <low_breakpoint_at>: Declare.
1239 (ia64_target::low_breakpoint_at): Define.
1240 * linux-m32r-low.cc (class m32r_target)
1241 <low_breakpoint_at>: Declare.
1242 (m32r_breakpoint_at): Turn into...
1243 (m32r_target::low_breakpoint_at): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-m68k-low.cc (class m68k_target)
1246 <low_breakpoint_at>: Declare.
1247 (m68k_breakpoint_at): Turn into...
1248 (m68k_target::low_breakpoint_at): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-mips-low.cc (class mips_target)
1251 <low_breakpoint_at>: Declare.
1252 (mips_breakpoint_at): Turn into...
1253 (mips_target::low_breakpoint_at): ...this.
1254 (the_low_target): Remove the op field.
1255 * linux-nios2-low.cc (class nios2_target)
1256 <low_breakpoint_at>: Declare.
1257 (nios2_breakpoint_at): Turn into...
1258 (nios2_target::low_breakpoint_at): ...this.
1259 (the_low_target): Remove the op field.
1260 * linux-ppc-low.cc (class ppc_target)
1261 <low_breakpoint_at>: Declare.
1262 (ppc_breakpoint_at): Turn into...
1263 (ppc_target::low_breakpoint_at): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-riscv-low.cc (class riscv_target)
1266 <low_breakpoint_at>: Declare.
1267 (riscv_breakpoint_at): Turn into...
1268 (riscv_target::low_breakpoint_at): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-s390-low.cc (class s390_target)
1271 <low_breakpoint_at>: Declare.
1272 (s390_breakpoint_at): Turn into...
1273 (s390_target::low_breakpoint_at): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-sh-low.cc (class sh_target)
1276 <low_breakpoint_at>: Declare.
1277 (sh_breakpoint_at): Turn into...
1278 (sh_target::low_breakpoint_at): ...this.
1279 (the_low_target): Remove the op field.
1280 * linux-sparc-low.cc (class sparc_target)
1281 <low_breakpoint_at>: Declare.
1282 (sparc_breakpoint_at): Turn into...
1283 (sparc_target::low_breakpoint_at): ...this.
1284 (the_low_target): Remove the op field.
1285 * linux-tic6x-low.cc (class tic6x_target)
1286 <low_breakpoint_at>: Declare.
1287 (tic6x_breakpoint_at): Turn into...
1288 (tic6x_target::low_breakpoint_at): ...this.
1289 (the_low_target): Remove the op field.
1290 * linux-tile-low.cc (class tile_target)
1291 <low_breakpoint_at>: Declare.
1292 (tile_breakpoint_at): Turn into...
1293 (tile_target::low_breakpoint_at): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-xtensa-low.cc (class xtensa_target)
1296 <low_breakpoint_at>: Declare.
1297 (xtensa_breakpoint_at): Turn into...
1298 (xtensa_target::low_breakpoint_at): ...this.
1299 (the_low_target): Remove the op field.
1301 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1303 Turn the 'decr_pc_after_break' linux_target_ops field into
1304 a method of linux_process_target.
1306 * linux-low.h (struct linux_target_ops)
1307 <decr_pc_after_break>: Remove.
1308 (class linux_process_target) <low_decr_pc_after_break>: New method
1310 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1311 New method implementation.
1313 Update the users below.
1315 (linux_process_target::save_stop_reason)
1316 (linux_process_target::wait_1)
1317 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1319 (x86_target::low_decr_pc_after_break): New method implementation.
1320 (the_low_target): Remove the field.
1321 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1323 (bfin_target::low_decr_pc_after_break): New method implementation.
1324 (the_low_target): Remove the field.
1325 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1327 (m68k_target::low_decr_pc_after_break): New method implementation.
1328 (the_low_target): Remove the field.
1329 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1331 (s390_target::low_decr_pc_after_break): New method implementation.
1332 (the_low_target): Remove the field.
1333 * linux-aarch64-low.cc (the_low_target): Remove the field.
1334 * linux-arm-low.cc (the_low_target): Remove the field.
1335 * linux-cris-low.cc (the_low_target): Remove the field.
1336 * linux-crisv32-low.cc (the_low_target): Remove the field.
1337 * linux-m32r-low.cc (the_low_target): Remove the field.
1338 * linux-mips-low.cc (the_low_target): Remove the field.
1339 * linux-nios2-low.cc (the_low_target): Remove the field.
1340 * linux-ppc-low.cc (the_low_target): Remove the field.
1341 * linux-riscv-low.cc (the_low_target): Remove the field.
1342 * linux-sh-low.cc (the_low_target): Remove the field.
1343 * linux-sparc-low.cc (the_low_target): Remove the field.
1344 * linux-tic6x-low.cc (the_low_target): Remove the field.
1345 * linux-tile-low.cc (the_low_target): Remove the field.
1346 * linux-xtensa-low.cc (the_low_target): Remove the field.
1348 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1350 Remove the 'supports_software_single_step' linux target op and let
1351 the concrete linux target define it by overriding the op in
1352 process_stratum_target.
1353 Turn the 'get_next_pcs' linux target op into a method of
1354 linux_process_target.
1356 * linux-low.h (struct linux_target_ops): Remove the ops.
1357 (class linux_process_target) <supports_software_single_step>:
1359 <low_get_next_pcs>: Declare.
1360 * linux-low.cc (can_software_single_step): Remove.
1361 (linux_process_target::low_get_next_pcs): Define.
1362 (linux_process_target::supports_software_single_step): Remove.
1364 Update the callers below.
1366 (linux_process_target::handle_extended_wait)
1367 (linux_process_target::wait_1)
1368 (linux_process_target::install_software_single_step_breakpoints)
1369 (linux_process_target::single_step)
1370 (linux_process_target::thread_needs_step_over)
1371 (linux_process_target::proceed_one_lwp)
1372 (linux_process_target::supports_range_stepping)
1374 * linux-x86-low.cc (the_low_target): Remove the op field.
1375 * linux-aarch64-low.cc (the_low_target): Ditto.
1376 * linux-bfin-low.cc (the_low_target): Ditto.
1377 * linux-cris-low.cc (the_low_target): Ditto.
1378 * linux-crisv32-low.cc (the_low_target): Ditto.
1379 * linux-m32r-low.cc (the_low_target): Ditto.
1380 * linux-m68k-low.cc (the_low_target): Ditto.
1381 * linux-mips-low.cc (the_low_target): Ditto.
1382 * linux-nios2-low.cc (the_low_target): Ditto.
1383 * linux-ppc-low.cc (the_low_target): Ditto.
1384 * linux-riscv-low.cc (the_low_target): Ditto.
1385 * linux-s390-low.cc (the_low_target): Ditto.
1386 * linux-sh-low.cc (the_low_target): Ditto.
1387 * linux-sparc-low.cc (the_low_target): Ditto.
1388 * linux-tic6x-low.cc (the_low_target): Ditto.
1389 * linux-tile-low.cc (the_low_target): Ditto.
1390 * linux-xtensa-low.cc (the_low_target): Ditto.
1391 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1392 <supports_software_single_step>: Declare.
1393 (arm_target::supports_software_single_step): Define.
1394 (arm_gdbserver_get_next_pcs): Turn into...
1395 (arm_target::low_get_next_pcs): ...this.
1396 (the_low_target): Remove the op field.
1398 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1400 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1401 the concrete linux target define it by overriding the op
1402 in process_stratum_target.
1404 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1406 * linux-low.h (struct linux_target_ops): Remove the op.
1407 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1408 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1410 (x86_sw_breakpoint_from_kind): Turn into...
1411 (x86_target::sw_breakpoint_from_kind): ...this.
1412 (the_low_target): Remove the op field.
1413 * linux-aarch64-low.cc (class aarch64_target)
1414 <sw_breakpoint_from_kind>: Declare.
1415 (aarch64_sw_breakpoint_from_kind): Turn into...
1416 (aarch64_target::sw_breakpoint_from_kind): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1420 (arm_target::sw_breakpoint_from_kind): Define.
1421 (the_low_target): Remove the op field.
1422 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1424 (bfin_sw_breakpoint_from_kind): Turn into...
1425 (bfin_target::sw_breakpoint_from_kind): ...this.
1426 (the_low_target): Remove the op field.
1427 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1429 (cris_sw_breakpoint_from_kind): Turn into...
1430 (cris_target::sw_breakpoint_from_kind): ...this.
1431 (the_low_target): Remove the op field.
1432 * linux-crisv32-low.cc (class crisv32_target)
1433 <sw_breakpoint_from_kind>: Declare.
1434 (cris_sw_breakpoint_from_kind): Turn into...
1435 (crisv32_target::sw_breakpoint_from_kind): ...this.
1436 (the_low_target): Remove the op field.
1437 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1439 (ia64_target::sw_breakpoint_from_kind): Define.
1440 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1442 (m32r_sw_breakpoint_from_kind): Turn into...
1443 (m32r_target::sw_breakpoint_from_kind): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1447 (m68k_sw_breakpoint_from_kind): Turn into...
1448 (m68k_target::sw_breakpoint_from_kind): ...this.
1449 (the_low_target): Remove the op field.
1450 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1452 (mips_sw_breakpoint_from_kind): Turn into...
1453 (mips_target::sw_breakpoint_from_kind): ...this.
1454 (the_low_target): Remove the op field.
1455 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1457 (nios2_sw_breakpoint_from_kind): Turn into...
1458 (nios2_target::sw_breakpoint_from_kind): ...this.
1459 (the_low_target): Remove the op field.
1460 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1462 (ppc_sw_breakpoint_from_kind): Turn into...
1463 (ppc_target::sw_breakpoint_from_kind): ...this.
1464 (the_low_target): Remove the op field.
1465 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1467 (riscv_sw_breakpoint_from_kind): Turn into...
1468 (riscv_target::sw_breakpoint_from_kind): ...this.
1469 (the_low_target): Remove the op field.
1470 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1472 (s390_sw_breakpoint_from_kind): Turn into...
1473 (s390_target::sw_breakpoint_from_kind): ...this.
1474 (the_low_target): Remove the op field.
1475 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1477 (sh_sw_breakpoint_from_kind): Turn into...
1478 (sh_target::sw_breakpoint_from_kind): ...this.
1479 (the_low_target): Remove the op field.
1480 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1482 (sparc_sw_breakpoint_from_kind): Turn into...
1483 (sparc_target::sw_breakpoint_from_kind): ...this.
1484 (the_low_target): Remove the op field.
1485 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1487 (tic6x_sw_breakpoint_from_kind): Turn into...
1488 (tic6x_target::sw_breakpoint_from_kind): ...this.
1489 (the_low_target): Remove the op field.
1490 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1492 (tile_sw_breakpoint_from_kind): Turn into...
1493 (tile_target::sw_breakpoint_from_kind): ...this.
1494 (the_low_target): Remove the op field.
1495 * linux-xtensa-low.cc (class xtensa_target)
1496 <sw_breakpoint_from_kind>: Declare.
1497 (xtensa_sw_breakpoint_from_kind): Turn into...
1498 (xtensa_target::sw_breakpoint_from_kind): ...this.
1499 (the_low_target): Remove the op field.
1501 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1503 Remove the 'breakpoint_kind_from_pc' and
1504 'breakpoint_kind_from_current_state' linux target ops, and let the
1505 concrete linux target define them by overriding the ops of
1506 process_stratum_target.
1508 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1510 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1511 * linux-low.h (struct linux_target_ops): Remove ops.
1512 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1513 <breakpoint_kind_from_current_state>: Remove.
1514 * linux-x86-low.cc (the_low_target): Remove the op fields.
1515 * linux-bfin-low.cc (the_low_target): Ditto.
1516 * linux-cris-low.cc (the_low_target): Ditto.
1517 * linux-crisv32-low.cc (the_low_target): Ditto.
1518 * linux-m32r-low.cc (the_low_target): Ditto.
1519 * linux-m68k-low.cc (the_low_target): Ditto.
1520 * linux-mips-low.cc (the_low_target): Ditto.
1521 * linux-nios2-low.cc (the_low_target): Ditto.
1522 * linux-ppc-low.cc (the_low_target): Ditto.
1523 * linux-s390-low.cc (the_low_target): Ditto.
1524 * linux-sh-low.cc (the_low_target): Ditto.
1525 * linux-sparc-low.cc (the_low_target): Ditto.
1526 * linux-tic6x-low.cc (the_low_target): Ditto.
1527 * linux-tile-low.cc (the_low_target): Ditto.
1528 * linux-xtensa-low.cc (the_low_target): Ditto.
1529 * linux-aarch64-low.cc (class aarch64_target)
1530 <breakpoint_kind_from_pc>
1531 <breakpoint_kind_from_current_state>: Declare.
1532 (aarch64_breakpoint_kind_from_pc): Turn into...
1533 (aarch64_target::breakpoint_kind_from_pc): ...this.
1534 (aarch64_breakpoint_kind_from_current_state): Turn into...
1535 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1536 (the_low_target): Remove the op fields.
1537 * linux-arm-low.cc (class arm_target):
1538 <breakpoint_kind_from_pc>
1539 <breakpoint_kind_from_current_state>: Declare.
1540 (arm_target::breakpoint_kind_from_pc): Define.
1541 (arm_target::breakpoint_kind_from_current_state): Define.
1542 (the_low_target): Remove the op fields.
1543 * linux-riscv-low.cc (class riscv_target):
1544 <breakpoint_kind_from_pc>: Declare.
1545 (riscv_breakpoint_kind_from_pc): Turn into...
1546 (riscv_target::breakpoint_kind_from_pc): ...this.
1547 (the_low_target): Remove the op fields.
1549 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1551 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1552 of linux_process_target.
1554 * linux-low.h (struct linux_target_ops): Remove the ops.
1555 (class linux_process_target) <low_supports_breakpoints>
1557 <low_set_pc>: Declare.
1558 * linux-low.cc (supports_breakpoints): Turn into...
1559 (linux_process_target::low_supports_breakpoints): ...this.
1560 (linux_process_target::low_get_pc): Define.
1561 (linux_process_target::low_set_pc): Define.
1563 Update the callers below.
1565 (linux_process_target::get_pc)
1566 (linux_process_target::save_stop_reason)
1567 (linux_process_target::maybe_move_out_of_jump_pad)
1568 (linux_process_target::wait_1)
1569 (linux_process_target::resume_one_lwp_throw)
1570 (linux_process_target::resume)
1571 (linux_process_target::proceed_all_lwps)
1572 (linux_process_target::read_pc)
1573 (linux_process_target::write_pc)
1575 * linux-x86-low.cc (class linux_process_target)
1576 <low_supports_breakpoints>
1578 <low_set_pc>: Declare.
1579 (x86_target::low_supports_breakpoints): Define.
1580 (x86_get_pc): Turn into...
1581 (x86_target::low_get_pc): ...this.
1582 (x86_set_pc): Turn into...
1583 (x86_target::low_set_pc): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-arm-low.cc (class arm_target)
1586 <low_supports_breakpoints>
1588 <low_set_pc>: Declare.
1589 (arm_target::low_supports_breakpoints)
1590 (arm_target::low_get_pc)
1591 (arm_target::low_set_pc): Define.
1592 (the_low_target): Remove the op fields.
1593 * linux-bfin-low.cc (class bfin_target)
1594 <low_supports_breakpoints>
1596 <low_set_pc>: Declare.
1597 (bfin_target::low_supports_breakpoints)
1598 (bfin_target::low_get_pc)
1599 (bfin_target::low_set_pc): Define.
1600 (the_low_target): Remove the op fields.
1601 * linux-cris-low.cc (class cris_target)
1602 <low_supports_breakpoints>
1604 <low_set_pc>: Declare.
1605 (cris_target::low_supports_breakpoints)
1606 (cris_target::low_get_pc)
1607 (cris_target::low_set_pc): Define.
1608 (the_low_target): Remove the op fields.
1609 * linux-crisv32-low.cc (class crisv32_target)
1610 <low_supports_breakpoints>
1612 <low_set_pc>: Declare.
1613 (crisv32_target::low_supports_breakpoints)
1614 (crisv32_target::low_get_pc)
1615 (crisv32_target::low_set_pc): Define.
1616 (the_low_target): Remove the op fields.
1617 * linux-m32r-low.cc (class m32r_target)
1618 <low_supports_breakpoints>
1620 <low_set_pc>: Declare.
1621 (m32r_target::low_supports_breakpoints)
1622 (m32r_target::low_get_pc)
1623 (m32r_target::low_set_pc): Define.
1624 (the_low_target): Remove the op fields.
1625 * linux-m68k-low.cc (class m68k_target)
1626 <low_supports_breakpoints>
1628 <low_set_pc>: Declare.
1629 (m68k_target::low_supports_breakpoints)
1630 (m68k_target::low_get_pc)
1631 (m68k_target::low_set_pc): Define.
1632 (the_low_target): Remove the op fields.
1633 * linux-nios2-low.cc (class nios2_target)
1634 <low_supports_breakpoints>
1636 <low_set_pc>: Declare.
1637 (nios2_target::low_supports_breakpoints)
1638 (nios2_target::low_get_pc)
1639 (nios2_target::low_set_pc): Define.
1640 (the_low_target): Remove the op fields.
1641 * linux-sh-low.cc (class sh_target)
1642 <low_supports_breakpoints>
1644 <low_set_pc>: Declare.
1645 (sh_target::low_supports_breakpoints)
1646 (sh_target::low_get_pc)
1647 (sh_target::low_set_pc): Define.
1648 (the_low_target): Remove the op fields.
1649 * linux-xtensa-low.cc (class xtensa_target)
1650 <low_supports_breakpoints>
1652 <low_set_pc>: Declare.
1653 (xtensa_target::low_supports_breakpoints)
1654 (xtensa_target::low_get_pc)
1655 (xtensa_target::low_set_pc): Define.
1656 (the_low_target): Remove the op fields.
1657 * linux-sparc-low.cc (class sparc_target)
1658 <low_supports_breakpoints>
1659 <low_get_pc>: Declare.
1660 (sparc_target::low_supports_breakpoints)
1661 (sparc_target::low_get_pc): Define.
1662 (the_low_target): Remove the op fields.
1663 * linux-tile-low.cc (class tile_target)
1664 <low_supports_breakpoints>
1666 <low_set_pc>: Declare.
1667 (tile_target::low_supports_breakpoints)
1668 (tile_target::low_get_pc)
1669 (tile_target::low_set_pc): Define.
1670 (the_low_target): Remove the op fields.
1671 * linux-aarch64-low.cc (class aarch64_target)
1672 <low_supports_breakpoints>
1674 <low_set_pc>: Declare.
1675 (aarch64_target::low_supports_breakpoints): Define.
1676 (aarch64_get_pc): Turn into...
1677 (aarch64_target::low_get_pc): ...this.
1678 (aarch64_set_pc): Turn into...
1679 (aarch64_target::low_set_pc): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-mips-low.cc (class mips_target)
1682 <low_supports_breakpoints>
1684 <low_set_pc>: Declare.
1685 (mips_target::low_supports_breakpoints): Define.
1686 (mips_get_pc): Turn into...
1687 (mips_target::low_get_pc): ...this.
1688 (mips_set_pc): Turn into...
1689 (mips_target::low_set_pc): ...this.
1690 (the_low_target): Remove the op fields.
1691 * linux-ppc-low.cc (class ppc_target)
1692 <low_supports_breakpoints>
1694 <low_set_pc>: Declare.
1695 (ppc_target::low_supports_breakpoints): Define.
1696 (ppc_get_pc): Turn into...
1697 (ppc_target::low_get_pc): ...this.
1698 (ppc_set_pc): Turn into...
1699 (ppc_target::low_set_pc): ...this.
1700 (the_low_target): Remove the op fields.
1701 * linux-riscv-low.cc (class riscv_target)
1702 <low_supports_breakpoints>
1704 <low_set_pc>: Declare.
1705 (riscv_target::low_supports_breakpoints): Define.
1706 (riscv_get_pc): Turn into...
1707 (riscv_target::low_get_pc): ...this.
1708 (riscv_set_pc): Turn into...
1709 (riscv_target::low_set_pc): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-s390-low.cc (class s390_target)
1712 <low_supports_breakpoints>
1714 <low_set_pc>: Declare.
1715 (s390_target::low_supports_breakpoints): Define.
1716 (s390_get_pc): Turn into...
1717 (s390_target::low_get_pc): ...this.
1718 (s390_set_pc): Turn into...
1719 (s390_target::low_set_pc): ...this.
1720 (the_low_target): Remove the op fields.
1721 * linux-tic6x-low.cc (class tic6x_target)
1722 <low_supports_breakpoints>
1724 <low_set_pc>: Declare.
1725 (tic6x_target::low_supports_breakpoints): Define.
1726 (tic6x_get_pc): Turn into...
1727 (tic6x_target::low_get_pc): ...this.
1728 (tic6x_set_pc): Turn into...
1729 (tic6x_target::low_set_pc): ...this.
1730 (the_low_target): Remove the op fields.
1732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1734 Turn some more static methods in linux-low into private methods
1735 of linux_process_target.
1737 * linux-low.cc (get_pc): Turn into...
1738 (linux_process_target::get_pc): ...this.
1739 (save_stop_reason): Turn into...
1740 (linux_process_target::save_stop_reason): ...this.
1741 (thread_still_has_status_pending_p): Turn into...
1742 (linux_process_target::thread_still_has_status_pending): ...this.
1743 (status_pending_p_callback): Turn into...
1744 (linux_process_target::status_pending_p_callback): ...this.
1745 (resume_stopped_resumed_lwps): Turn into...
1746 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1747 (install_software_single_step_breakpoints): Turn into...
1748 (linux_process_target::install_software_single_step_breakpoints):
1750 (single_step): Turn into...
1751 (linux_process_target::single_step): ...this.
1752 (linux_resume_one_lwp_throw): Turn into...
1753 (linux_process_target::resume_one_lwp_throw): ...this.
1754 (linux_resume_one_lwp): Turn into...
1755 (linux_process_target::resume_one_lwp): ...this.
1756 (resume_status_pending_p): Turn into...
1757 (linux_process_target::resume_status_pending): ...this.
1758 (need_step_over_p): Turn into...
1759 (linux_process_target::thread_needs_step_over): ...this.
1760 (linux_resume_one_thread): Turn into...
1761 (linux_process_target::resume_one_thread): ...this.
1762 (proceed_one_lwp): Turn into...
1763 (linux_process_target::proceed_one_lwp): ...this.
1764 (unsuspend_and_proceed_one_lwp): Turn into...
1765 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1767 Update the calls/references to the above functions below.
1769 (linux_process_target::handle_extended_wait)
1770 (linux_process_target::filter_event)
1771 (linux_process_target::wait_for_event_filtered)
1772 (linux_process_target::wait_1)
1773 (linux_process_target::move_out_of_jump_pad)
1774 (linux_process_target::start_step_over)
1775 (linux_process_target::resume)
1776 (linux_process_target::proceed_all_lwps)
1777 (regsets_store_inferior_registers)
1778 (linux_process_target::store_register)
1780 * linux-low.h (class linux_process_target)
1783 <thread_still_has_status_pending>
1784 <status_pending_p_callback>
1785 <resume_stopped_resumed_lwps>
1786 <install_software_single_step_breakpoints>
1788 <resume_one_lwp_throw>
1790 <resume_status_pending>
1791 <thread_needs_step_over>
1794 <unsuspend_and_proceed_one_lwp>: Declare.
1796 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1798 Turn the 'fetch_register' linux target op into a method of
1799 linux_process_target.
1801 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1802 (class linux_process_target) <low_fetch_register>: Declare.
1803 * linux-x86-low.cc (the_low_target)
1804 * linux-aarch64-low.cc (the_low_target)
1805 * linux-arm-low.cc (the_low_target)
1806 * linux-bfin-low.cc (the_low_target)
1807 * linux-cris-low.cc (the_low_target)
1808 * linux-crisv32-low.cc (the_low_target)
1809 * linux-m32r-low.cc (the_low_target)
1810 * linux-m68k-low.cc (the_low_target)
1811 * linux-nios2-low.cc (the_low_target)
1812 * linux-ppc-low.cc (the_low_target)
1813 * linux-s390-low.cc (the_low_target)
1814 * linux-sh-low.cc (the_low_target)
1815 * linux-sparc-low.cc (the_low_target)
1816 * linux-tic6x-low.cc (the_low_target)
1817 * linux-tile-low.cc (the_low_target)
1818 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1819 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1821 (ia64_fetch_register): Turn into...
1822 (ia64_target::low_fetch_register): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1826 (mips_fetch_register): Turn into...
1827 (mips_target::low_fetch_register): ...this.
1828 (the_low_target): Remove the op field.
1829 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1831 (riscv_fetch_register): Turn into...
1832 (riscv_target::low_fetch_register): ...this.
1833 (the_low_target): Remove the op field.
1835 Update the callers below.
1837 * linux-low.cc (linux_process_target::fetch_registers)
1838 (linux_process_target::low_fetch_register)
1840 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1842 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1843 linux target ops into methods of linux_process_target.
1845 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1846 (class linux_process_target) <fetch_register>
1848 <usr_fetch_inferior_registers>
1849 <usr_store_inferior_registers>
1850 <low_cannot_fetch_register>
1851 <low_cannot_fetch_register> Declare.
1852 * linux-low.cc (fetch_register): Turn into...
1853 (linux_process_target::fetch_register): ...this.
1854 (store_register): Turn into ...
1855 (linux_process_target::store_register): ...this.
1856 (usr_fetch_inferior_registers): Turn into...
1857 (linux_process_target::usr_fetch_inferior_registers): ...this.
1858 (usr_store_inferior_registers): Turn into...
1859 (linux_process_target::usr_store_inferior_registers): ...this.
1860 * linux-x86-low.cc (class x86_target)
1861 <low_cannot_fetch_register>
1862 <low_cannot_store_register>: Declare.
1863 (x86_cannot_store_register): Turn into...
1864 (x86_target::low_cannot_store_register): ...this.
1865 (x86_cannot_fetch_register): Turn into...
1866 (x86_target::low_cannot_fetch_register): ...this.
1867 (the_low_target): Remove the target op fields.
1868 * linux-aarch64-low.cc (class aarch64_target)
1869 <low_cannot_fetch_register>
1870 <low_cannot_store_register>: Declare.
1871 (aarch64_target::low_cannot_fetch_register)
1872 (aarch64_target::low_cannot_store_register): Define.
1873 (the_low_target): Remove the op fields.
1874 * linux-arm-low.cc (class arm_target)
1875 <low_cannot_fetch_register>
1876 <low_cannot_store_register>: Declare.
1877 (arm_cannot_fetch_register): Turn into...
1878 (arm_target::low_cannot_fetch_register): ...this.
1879 (arm_cannot_store_register): Turn into...
1880 (arm_target::low_cannot_store_register): ...this.
1881 (the_low_target): Remove the op fields.
1882 * linux-bfin-low.cc (class bfin_target)
1883 <low_cannot_fetch_register>
1884 <low_cannot_store_register>: Declare.
1885 (bfin_cannot_fetch_register): Turn into...
1886 (bfin_target::low_cannot_fetch_register): ...this.
1887 (bfin_cannot_store_register): Turn into...
1888 (bfin_target::low_cannot_store_register): ...this.
1889 (the_low_target): Remove the op fields.
1890 * linux-cris-low.cc (class cris_target)
1891 <low_cannot_fetch_register>
1892 <low_cannot_store_register>: Declare.
1893 (cris_cannot_fetch_register): Turn into...
1894 (cris_target::low_cannot_fetch_register): ...this.
1895 (cris_cannot_store_register): Turn into...
1896 (cris_target::low_cannot_store_register): ...this.
1897 (the_low_target): Remove the op fields.
1898 * linux-crisv32-low.cc (class crisv32_target)
1899 <low_cannot_fetch_register>
1900 <low_cannot_store_register>: Declare.
1901 (crisv32_target::low_cannot_fetch_register)
1902 (crisv32_target::low_cannot_store_register): Define.
1903 (the_low_target): Remove the op fields.
1904 * linux-ia64-low.cc (class ia64_target)
1905 <low_cannot_fetch_register>
1906 <low_cannot_store_register>: Declare.
1907 (ia64_cannot_fetch_register): Turn into...
1908 (ia64_target::low_cannot_fetch_register): ...this.
1909 (ia64_cannot_store_register): Turn into...
1910 (ia64_target::low_cannot_store_register): ...this.
1911 (the_low_target): Remove the op fields.
1912 * linux-m32r-low.cc (class m32r_target)
1913 <low_cannot_fetch_register>
1914 <low_cannot_store_register>: Declare.
1915 (m32r_cannot_fetch_register): Turn into...
1916 (m32r_target::low_cannot_fetch_register): ...this.
1917 (m32r_cannot_store_register): Turn into...
1918 (m32r_target::low_cannot_store_register): ...this.
1919 (the_low_target): Remove the op fields.
1920 * linux-m68k-low.cc (class m68k_target)
1921 <low_cannot_fetch_register>
1922 <low_cannot_store_register>: Declare.
1923 (m68k_cannot_fetch_register): Turn into...
1924 (m68k_target::low_cannot_fetch_register): ...this.
1925 (m68k_cannot_store_register): Turn into...
1926 (m68k_target::low_cannot_store_register): ...this.
1927 (the_low_target): Remove the op fields.
1928 * linux-mips-low.cc (class mips_target)
1929 <low_cannot_fetch_register>
1930 <low_cannot_store_register>: Declare.
1931 (mips_cannot_fetch_register): Turn into...
1932 (mips_target::low_cannot_fetch_register): ...this.
1933 (mips_cannot_store_register): Turn into...
1934 (mips_target::low_cannot_store_register): ...this.
1935 (get_usrregs_info): Inline at the call sites in
1936 low_cannot_fetch_register and low_cannot_store_register,
1938 (the_low_target): Remove the op fields.
1939 * linux-nios2-low.cc (class nios2_target)
1940 <low_cannot_fetch_register>
1941 <low_cannot_store_register>: Declare.
1942 (nios2_cannot_fetch_register): Turn into...
1943 (nios2_target::low_cannot_fetch_register): ...this.
1944 (nios2_cannot_store_register): Turn into...
1945 (nios2_target::low_cannot_store_register): ...this.
1946 (the_low_target): Remove the op fields.
1947 * linux-ppc-low.cc (class ppc_target)
1948 <low_cannot_fetch_register>
1949 <low_cannot_store_register>: Declare.
1950 (ppc_cannot_fetch_register): Turn into...
1951 (ppc_target::low_cannot_fetch_register): ...this.
1952 (ppc_cannot_store_register): Turn into...
1953 (ppc_target::low_cannot_store_register): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-riscv-low.cc (class riscv_target)
1956 <low_cannot_fetch_register>
1957 <low_cannot_store_register>: Declare.
1958 (riscv_target::low_cannot_fetch_register)
1959 (riscv_target::low_cannot_store_register): Define.
1960 (the_low_target): Remove the op fields.
1961 * linux-s390-low.cc (class s390_target)
1962 <low_cannot_fetch_register>
1963 <low_cannot_store_register>: Declare.
1964 (s390_cannot_fetch_register): Turn into...
1965 (s390_target::low_cannot_fetch_register): ...this.
1966 (s390_cannot_store_register): Turn into...
1967 (s390_target::low_cannot_store_register): ...this.
1968 (the_low_target): Remove the op fields.
1969 * linux-sh-low.cc (class sh_target)
1970 <low_cannot_fetch_register>
1971 <low_cannot_store_register>: Declare.
1972 (sh_cannot_fetch_register): Turn into...
1973 (sh_target::low_cannot_fetch_register): ...this.
1974 (sh_cannot_store_register): Turn into...
1975 (sh_target::low_cannot_store_register): ...this.
1976 (the_low_target): Remove the op fields.
1977 * linux-sparc-low.cc (class sparc_target)
1978 <low_cannot_fetch_register>
1979 <low_cannot_store_register>: Declare.
1980 (sparc_cannot_fetch_register): Turn into...
1981 (sparc_target::low_cannot_fetch_register): ...this.
1982 (sparc_cannot_store_register): Turn into...
1983 (sparc_target::low_cannot_store_register): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-tic6x-low.cc (class tic6x_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (tic6x_cannot_fetch_register): Turn into...
1989 (tic6x_target::low_cannot_fetch_register): ...this.
1990 (tic6x_cannot_store_register): Turn into...
1991 (tic6x_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-tile-low.cc (class tile_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (tile_cannot_fetch_register): Turn into...
1997 (tile_target::low_cannot_fetch_register): ...this.
1998 (tile_cannot_store_register): Turn into...
1999 (tile_target::low_cannot_store_register): ...this.
2000 (the_low_target): Remove the op fields.
2001 * linux-xtensa-low.cc (class xtensa_target)
2002 <low_cannot_fetch_register>
2003 <low_cannot_store_register>: Declare.
2004 (xtensa_target::low_cannot_fetch_register)
2005 (xtensa_target::low_cannot_store_register): Define.
2006 (the_low_target): Remove the op fields.
2008 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2010 Turn the 'regs_info' linux target op into a method of
2011 linux_process_target.
2013 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2014 (class linux_process_target) <get_regs_info>: Define.
2016 Update the callers below.
2018 * linux-low.cc (linux_process_target::fetch_registers)
2019 (linux_process_target::store_registers)
2020 * proc-service.cc (gregset_info)
2022 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2023 (x86_linux_regs_info): Turn into ...
2024 (x86_target::get_regs_info): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2028 (aarch64_regs_info): Turn into ...
2029 (aarch64_target::get_regs_info): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2032 (arm_regs_info): Turn into ...
2033 (arm_target::get_regs_info): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2036 (bfin_regs_info): Turn into ...
2037 (bfin_target::get_regs_info): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2040 (cris_regs_info): Turn into ...
2041 (cris_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2045 (crisv32_regs_info): Turn into ...
2046 (crisv32_target::get_regs_info): ...this.
2047 (the_low_target): Remove the op field.
2048 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2049 (ia64_regs_info): Turn into ...
2050 (ia64_target::get_regs_info): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2053 (m32r_regs_info): Turn into ...
2054 (m32r_target::get_regs_info): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2057 (m68k_regs_info): Turn into ...
2058 (m68k_target::get_regs_info): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2061 (mips_regs_info): Turn into ...
2062 (mips_target::get_regs_info): ...this.
2063 (the_low_target): Remove the op field.
2064 (get_usrregs_info): Update the call to the op.
2065 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2066 (nios2_regs_info): Turn into ...
2067 (nios2_target::get_regs_info): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2070 (ppc_regs_info): Turn into ...
2071 (ppc_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2074 (riscv_regs_info): Turn into ...
2075 (riscv_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2078 (s390_regs_info): Turn into ...
2079 (s390_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 (s390_collect_ptrace_register)
2082 (s390_supply_ptrace_register)
2083 (s390_fill_gregset): Update the call to the op.
2084 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2085 (sh_regs_info): Turn into ...
2086 (sh_target::get_regs_info): ...this.
2087 (the_low_target): Remove the op field.
2088 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2089 (sparc_regs_info): Turn into ...
2090 (sparc_target::get_regs_info): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2093 (tic6x_regs_info): Turn into ...
2094 (tic6x_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2097 (tile_regs_info): Turn into ...
2098 (tile_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2102 (xtensa_regs_info): Turn into ...
2103 (xtensa_target::get_regs_info): ...this.
2104 (the_low_target): Remove the op field.
2106 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2108 Turn the 'arch_setup' linux target op into a method of
2109 linux_process_target.
2111 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2112 (class linux_process_target) <arch_setup_thread>
2113 <low_arch_setup>: New declarations.
2114 * linux-low.cc (linux_arch_setup): Delete.
2115 (linux_arch_setup_thread): Turn into...
2116 (linux_process_target::arch_setup_thread): ... this.
2118 Update the callers below.
2120 (linux_process_target::handle_extended_wait)
2121 (linux_process_target::post_create_inferior)
2122 (linux_process_target::filter_event)
2124 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2126 (x86_linux_update_xmltarget): Turn into...
2127 (x86_target::update_xmltarget): ...this.
2128 (x86_linux_process_qsupported): Update the call to
2129 x86_linux_update_xmltarget.
2130 (x86_arch_setup): Turn into ...
2131 (x86_target::low_arch_setup): ...this.
2132 (the_low_target): Remove the op field.
2133 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2135 (aarch64_arch_setup): Turn into ...
2136 (aarch64_target::low_arch_setup): ...this.
2137 (the_low_target): Remove the op field.
2138 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2140 (arm_arch_setup): Turn into ...
2141 (arm_target::low_arch_setup): ...this.
2142 (the_low_target): Remove the op field.
2143 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2145 (bfin_arch_setup): Turn into ...
2146 (bfin_target::low_arch_setup): ...this.
2147 (the_low_target): Remove the op field.
2148 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2150 (cris_arch_setup): Turn into ...
2151 (cris_target::low_arch_setup): ...this.
2152 (the_low_target): Remove the op field.
2153 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2155 (crisv32_arch_setup): Turn into ...
2156 (crisv32_target::low_arch_setup): ...this.
2157 (the_low_target): Remove the op field.
2158 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2160 (ia64_arch_setup): Turn into ...
2161 (ia64_target::low_arch_setup): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2165 (m32r_arch_setup): Turn into ...
2166 (m32r_target::low_arch_setup): ...this.
2167 (the_low_target): Remove the op field.
2168 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2170 (m68k_arch_setup): Turn into ...
2171 (m68k_target::low_arch_setup): ...this.
2172 (the_low_target): Remove the op field.
2173 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2175 (mips_arch_setup): Turn into ...
2176 (mips_target::low_arch_setup): ...this.
2177 (the_low_target): Remove the op field.
2178 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2180 (nios2_arch_setup): Turn into ...
2181 (nios2_target::low_arch_setup): ...this.
2182 (the_low_target): Remove the op field.
2183 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2185 (ppc_arch_setup): Turn into ...
2186 (ppc_target::low_arch_setup): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2190 (riscv_arch_setup): Turn into ...
2191 (riscv_target::low_arch_setup): ...this.
2192 (the_low_target): Remove the op field.
2193 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2195 (s390_arch_setup): Turn into ...
2196 (s390_target::low_arch_setup): ...this.
2197 (the_low_target): Remove the op field.
2198 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2200 (sh_arch_setup): Turn into ...
2201 (sh_target::low_arch_setup): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2205 (sparc_arch_setup): Turn into ...
2206 (sparc_target::low_arch_setup): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2210 (tic6x_arch_setup): Turn into ...
2211 (tic6x_target::low_arch_setup): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2215 (tile_arch_setup): Turn into ...
2216 (tile_target::low_arch_setup): ...this.
2217 (the_low_target): Remove the op field.
2218 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2220 (xtensa_arch_setup): Turn into ...
2221 (xtensa_target::low_arch_setup): ...this.
2222 (the_low_target): Remove the op field.
2224 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226 * linux-low.h (the_linux_target): New extern declaration.
2227 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2229 (the_linux_target): Remove.
2230 * linux-x86-low.cc (class x86_target): New class.
2231 (the_x86_target): New static object.
2232 (the_linux_target): Define as pointer to the_x86_target.
2233 * linux-aarch64-low.cc (class aarch64_target): New class.
2234 (the_aarch64_target): New static object.
2235 (the_linux_target): Define as pointer to the_aarch64_target.
2236 * linux-arm-low.cc (class arm_target): New class.
2237 (the_arm_target): New static object.
2238 (the_linux_target): Define as pointer to the_arm_target.
2239 * linux-bfin-low.cc (class bfin_target): New class.
2240 (the_bfin_target): New static object.
2241 (the_linux_target): Define as pointer to the_bfin_target.
2242 * linux-cris-low.cc (class cris_target): New class.
2243 (the_cris_target): New static object.
2244 (the_linux_target): Define as pointer to the_cris_target.
2245 * linux-crisv32-low.cc (class crisv32_target): New class.
2246 (the_crisv32_target): New static object.
2247 (the_linux_target): Define as pointer to the_crisv32_target.
2248 * linux-ia64-low.cc (class ia64_target): New class.
2249 (the_ia64_target): New static object.
2250 (the_linux_target): Define as pointer to the_ia64_target.
2251 * linux-m32r-low.cc (class m32r_target): New class.
2252 (the_m32r_target): New static object.
2253 (the_linux_target): Define as pointer to the_m32r_target.
2254 * linux-m68k-low.cc (class m68k_target): New class.
2255 (the_m68k_target): New static object.
2256 (the_linux_target): Define as pointer to the_m68k_target.
2257 * linux-mips-low.cc (class mips_target): New class.
2258 (the_mips_target): New static object.
2259 (the_linux_target): Define as pointer to the_mips_target.
2260 * linux-nios2-low.cc (class nios2_target): New class.
2261 (the_nios2_target): New static object.
2262 (the_linux_target): Define as pointer to the_nios2_target.
2263 * linux-ppc-low.cc (class ppc_target): New class.
2264 (the_ppc_target): New static object.
2265 (the_linux_target): Define as pointer to the_ppc_target.
2266 * linux-riscv-low.cc (class riscv_target): New class.
2267 (the_riscv_target): New static object.
2268 (the_linux_target): Define as pointer to the_riscv_target.
2269 * linux-s390-low.cc (class s390_target): New class.
2270 (the_s390_target): New static object.
2271 (the_linux_target): Define as pointer to the_s390_target.
2272 * linux-sh-low.cc (class sh_target): New class.
2273 (the_sh_target): New static object.
2274 (the_linux_target): Define as pointer to the_sh_target.
2275 * linux-sparc-low.cc (class sparc_target): New class.
2276 (the_sparc_target): New static object.
2277 (the_linux_target): Define as pointer to the_sparc_target.
2278 * linux-tic6x-low.cc (class tic6x_target): New class.
2279 (the_tic6x_target): New static object.
2280 (the_linux_target): Define as pointer to the_tic6x_target.
2281 * linux-tile-low.cc (class tile_target): New class.
2282 (the_tile_target): New static object.
2283 (the_linux_target): Define as pointer to the_tile_target.
2284 * linux-xtensa-low.cc (class xtensa_target): New class.
2285 (the_xtensa_target): New static object.
2286 (the_linux_target): Define as pointer to the_xtensa_target.
2288 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2290 Turn some static functions in linux-low.cc into private methods of
2291 linux_process_target.
2293 * linux-low.cc (handle_extended_wait): Turn into ...
2294 (linux_process_target::handle_extended_wait): ...this. Call
2295 'mourn' on 'this' object instead of 'the_target'.
2296 (maybe_move_out_of_jump_pad): Turn into...
2297 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2298 (linux_low_filter_event): Turn into...
2299 (linux_process_target::filter_event): ...this.
2300 (linux_wait_for_event_filtered): Turn into...
2301 (linux_process_target::wait_for_event_filtered): ...this.
2302 (linux_wait_for_event): Turn into...
2303 (linux_process_target::wait_for_event): ...this.
2304 (linux_wait_1): Turn into...
2305 (linux_process_target::wait_1): ...this.
2306 (wait_for_sigstop): Turn into...
2307 (linux_process_target::wait_for_sigstop): ...this.
2308 (move_out_of_jump_pad_callback): Turn into...
2309 (linux_process_target::move_out_of_jump_pad): ...this.
2310 (stop_all_lwps): Turn into...
2311 (linux_process_target::stop_all_lwps): ...this.
2312 (start_step_over): Turn into...
2313 (linux_process_target::start_step_over): ...this.
2314 (complete_ongoing_step_over): Turn into...
2315 (linux_process_target::complete_ongoing_step_over): ...this.
2316 (proceed_all_lwps): Turn into...
2317 (linux_process_target::proceed_all_lwps): ...this.
2318 (unstop_all_lwps): Turn into...
2319 (linux_process_target::unstop_all_lwps): ...this.
2321 * linux-low.h (class linux_process_target)
2322 <handle_extended_wait>
2323 <maybe_move_out_of_jump_pad>
2325 <wait_for_event_filtered>
2329 <move_out_of_jump_pad>
2332 <complete_ongoing_step_over>
2334 <unstop_all_lwps>: Declare.
2336 Update the callers below.
2338 * linux-low.cc (linux_process_target::attach): Update.
2339 (linux_process_target::stabilize_threads): Ditto.
2340 (linux_process_target::wait): Ditto.
2342 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2344 * linux-low.h (struct linux_target_ops): Update the comment for
2345 'cannot_store_register' to return 0 or 1.
2346 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2349 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2351 * config.in: Re-generate.
2352 * configure: Re-generate.
2354 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2356 * regcache.cc (find_register_by_number): Update.
2357 * tdesc.cc (init_target_desc): Likewise.
2358 * tdesc.h (target_desc::reg_defs): Likewise.
2360 2020-03-12 Tom Tromey <tom@tromey.com>
2362 * configure: Rebuild.
2363 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2364 (WIN32APILIBS): New subst.
2365 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2367 (gdbsupport/%.o): Remove target.
2368 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2369 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2370 (WIN32APILIBS): New variable.
2371 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2372 (gdbreplay$(EXEEXT)): Likewise.
2374 2020-03-12 Tom Tromey <tom@tromey.com>
2376 * config.in, configure: Rebuild.
2377 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2378 * acinclude.m4: Include gettext-sister.m4.
2379 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2381 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2382 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2384 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2386 * acinclude.m4: Update path to selftest.m4.
2388 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2390 * configure.ac: Don't source bfd/development.sh, move
2391 GDB_AC_COMMON higher.
2392 * configure: Re-generate.
2394 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2396 * configure: Re-generate.
2398 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2400 * configure: Re-generate.
2402 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2404 * .dir-locals.el: New file.
2406 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408 * .gitattributes: New file.
2410 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2412 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2413 reply into an S reply.
2414 * server.cc (disable_packet_T): New global.
2415 (captured_main): Set new global when appropriate.
2416 * server.h (disable_packet_T): Declare.
2418 2020-02-21 Tom Tromey <tom@tromey.com>
2420 * Makefile.in (mostlyclean): New target.
2422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2424 * target.h (struct process_stratum_target): Remove.
2425 (class process_target): Rename to ...
2426 (class process_stratum_target): ... this.
2427 * linux-low.h (class linux_process_target): Derive from
2428 'process_stratum_target'.
2429 * linux-low.cc (linux_target_ops): Remove.
2430 (initialize_low): Set the_target to the singleton instance of
2431 linux_process_target.
2432 * lynx-low.h (class lynx_process_target): Derive from
2433 'process_stratum_target'.
2434 * lynx-low.cc (lynx_target_ops): Remove.
2435 (initialize_low): Set the_target to the singleton instance of
2436 lynx_process_target.
2437 * nto-low.h (class nto_process_target): Derive from
2438 'process_stratum_target'.
2439 * nto-low.cc (nto_target_ops): Remove.
2440 (initialize_low): Set the_target to the singleton instance of
2442 * win32-low.h (class win32_process_target): Derive from
2443 'process_stratum_target'.
2444 * win32-low.cc (win32_target_ops): Remove.
2445 (initialize_low): Set the_target to the singleton instance of
2446 win32_process_target.
2448 Replace 'the_target->pt' with 'the_target' in the uses below.
2450 * hostio.cc (hostio_error)
2455 * linux-aarch32-low.cc (arm_breakpoint_at)
2456 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2457 * linux-arm-low.cc (arm_sigreturn_next_pc)
2459 (arm_get_syscall_trapinfo)
2460 * linux-cris-low.cc (cris_breakpoint_at)
2461 * linux-crisv32-low.cc (cris_breakpoint_at)
2462 * linux-low.cc (handle_extended_wait)
2465 (linux_process_target::breakpoint_kind_from_pc)
2467 * linux-m32r-low.cc (m32r_breakpoint_at)
2468 * linux-mips-low.cc (mips_breakpoint_at)
2469 * linux-nios2-low.cc (nios2_breakpoint_at)
2470 * linux-ppc-low.cc (ppc_breakpoint_at)
2471 * linux-s390-low.cc (s390_get_hwcap)
2472 * linux-sh-low.cc (sh_breakpoint_at)
2473 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2474 (sparc_store_gregset_from_stack)
2475 (sparc_breakpoint_at)
2476 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2477 * linux-tile-low.cc (tile_breakpoint_at)
2478 * linux-x86-low.cc (x86_breakpoint_at)
2479 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2480 * mem-break.cc (bp_size)
2482 (insert_memory_breakpoint)
2483 (set_raw_breakpoint_at)
2484 (delete_raw_breakpoint)
2486 (uninsert_raw_breakpoint)
2487 (reinsert_raw_breakpoint)
2488 (validate_inserted_breakpoint)
2489 * regcache.cc (regcache_read_pc)
2491 * remote-utils.cc (putpkt_binary_1)
2494 (prepare_resume_reply)
2495 * server.cc (handle_general_set)
2498 (handle_qxfer_exec_file)
2499 (handle_qxfer_libraries_svr4)
2500 (handle_qxfer_osdata)
2501 (handle_qxfer_siginfo)
2502 (handle_qxfer_fdpic)
2506 (queue_stop_reply_callback)
2508 * target.cc (prepare_to_access_memory)
2509 (done_accessing_memory)
2510 (read_inferior_memory)
2511 (target_write_memory)
2512 (target_stop_and_wait)
2514 (target_mourn_inferior)
2515 (target_continue_no_signal)
2517 (target_supports_multi_process)
2520 (target_create_inferior)
2521 (target_post_create_inferior)
2523 (target_supports_fork_events)
2524 (target_supports_vfork_events)
2525 (target_supports_exec_events)
2526 (target_handle_new_gdb_connection)
2529 (fetch_inferior_registers)
2530 (store_inferior_registers)
2532 (target_supports_non_stop)
2534 (target_process_qsupported)
2535 (target_supports_catch_syscall)
2536 (target_get_ipa_tdesc_idx)
2537 (target_supports_tracepoints)
2538 (target_supports_fast_tracepoints)
2539 (target_get_min_fast_tracepoint_insn_len)
2540 (target_thread_stopped)
2542 (target_unpause_all)
2543 (target_stabilize_threads)
2544 (target_install_fast_tracepoint_jump_pad)
2546 (target_supports_disable_randomization)
2547 (target_supports_agent)
2548 (target_enable_btrace)
2549 (target_disable_btrace)
2550 (target_read_btrace)
2551 (target_read_btrace_conf)
2552 (target_supports_range_stepping)
2553 (target_supports_stopped_by_sw_breakpoint)
2554 (target_stopped_by_sw_breakpoint)
2555 (target_supports_stopped_by_hw_breakpoint)
2556 (target_supports_hardware_single_step)
2557 (target_stopped_by_hw_breakpoint)
2558 (target_breakpoint_kind_from_pc)
2559 (target_breakpoint_kind_from_current_state)
2560 (target_supports_software_single_step)
2561 (target_core_of_thread)
2562 (target_thread_name)
2563 (target_thread_handle)
2564 * win32-low.cc (do_initial_child_stuff)
2566 Rename target op default definitions listed below.
2568 * target.cc (process_target::post_create_inferior): Rename as ...
2569 (process_stratum_target::post_create_inferior): ... this.
2570 (process_target::prepare_to_access_memory): Rename as ...
2571 (process_stratum_target::prepare_to_access_memory): ... this.
2572 (process_target::done_accessing_memory): Rename as ...
2573 (process_stratum_target::done_accessing_memory): ... this.
2574 (process_target::look_up_symbols): Rename as ...
2575 (process_stratum_target::look_up_symbols): ... this.
2576 (process_target::supports_read_auxv): Rename as ...
2577 (process_stratum_target::supports_read_auxv): ... this.
2578 (process_target::read_auxv): Rename as ...
2579 (process_stratum_target::read_auxv): ... this.
2580 (process_target::supports_z_point_type): Rename as ...
2581 (process_stratum_target::supports_z_point_type): ... this.
2582 (process_target::insert_point): Rename as ...
2583 (process_stratum_target::insert_point): ... this.
2584 (process_target::remove_point): Rename as ...
2585 (process_stratum_target::remove_point): ... this.
2586 (process_target::stopped_by_sw_breakpoint): Rename as ...
2587 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2588 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2589 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2590 (process_target::stopped_by_hw_breakpoint): Rename as ...
2591 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2592 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2593 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2594 (process_target::supports_hardware_single_step): Rename as ...
2595 (process_stratum_target::supports_hardware_single_step): ... this.
2596 (process_target::stopped_by_watchpoint): Rename as ...
2597 (process_stratum_target::stopped_by_watchpoint): ... this.
2598 (process_target::stopped_data_address): Rename as ...
2599 (process_stratum_target::stopped_data_address): ... this.
2600 (process_target::supports_read_offsets): Rename as ...
2601 (process_stratum_target::supports_read_offsets): ... this.
2602 (process_target::read_offsets): Rename as ...
2603 (process_stratum_target::read_offsets): ... this.
2604 (process_target::supports_get_tls_address): Rename as ...
2605 (process_stratum_target::supports_get_tls_address): ... this.
2606 (process_target::get_tls_address): Rename as ...
2607 (process_stratum_target::get_tls_address): ... this.
2608 (process_target::hostio_last_error): Rename as ...
2609 (process_stratum_target::hostio_last_error): ... this.
2610 (process_target::supports_qxfer_osdata): Rename as ...
2611 (process_stratum_target::supports_qxfer_osdata): ... this.
2612 (process_target::qxfer_osdata): Rename as ...
2613 (process_stratum_target::qxfer_osdata): ... this.
2614 (process_target::supports_qxfer_siginfo): Rename as ...
2615 (process_stratum_target::supports_qxfer_siginfo): ... this.
2616 (process_target::qxfer_siginfo): Rename as ...
2617 (process_stratum_target::qxfer_siginfo): ... this.
2618 (process_target::supports_non_stop): Rename as ...
2619 (process_stratum_target::supports_non_stop): ... this.
2620 (process_target::async): Rename as ...
2621 (process_stratum_target::async): ... this.
2622 (process_target::start_non_stop): Rename as ...
2623 (process_stratum_target::start_non_stop): ... this.
2624 (process_target::supports_multi_process): Rename as ...
2625 (process_stratum_target::supports_multi_process): ... this.
2626 (process_target::supports_fork_events): Rename as ...
2627 (process_stratum_target::supports_fork_events): ... this.
2628 (process_target::supports_vfork_events): Rename as ...
2629 (process_stratum_target::supports_vfork_events): ... this.
2630 (process_target::supports_exec_events): Rename as ...
2631 (process_stratum_target::supports_exec_events): ... this.
2632 (process_target::handle_new_gdb_connection): Rename as ...
2633 (process_stratum_target::handle_new_gdb_connection): ... this.
2634 (process_target::handle_monitor_command): Rename as ...
2635 (process_stratum_target::handle_monitor_command): ... this.
2636 (process_target::core_of_thread): Rename as ...
2637 (process_stratum_target::core_of_thread): ... this.
2638 (process_target::supports_read_loadmap): Rename as ...
2639 (process_stratum_target::supports_read_loadmap): ... this.
2640 (process_target::read_loadmap): Rename as ...
2641 (process_stratum_target::read_loadmap): ... this.
2642 (process_target::process_qsupported): Rename as ...
2643 (process_stratum_target::process_qsupported): ... this.
2644 (process_target::supports_tracepoints): Rename as ...
2645 (process_stratum_target::supports_tracepoints): ... this.
2646 (process_target::read_pc): Rename as ...
2647 (process_stratum_target::read_pc): ... this.
2648 (process_target::write_pc): Rename as ...
2649 (process_stratum_target::write_pc): ... this.
2650 (process_target::supports_thread_stopped): Rename as ...
2651 (process_stratum_target::supports_thread_stopped): ... this.
2652 (process_target::thread_stopped): Rename as ...
2653 (process_stratum_target::thread_stopped): ... this.
2654 (process_target::supports_get_tib_address): Rename as ...
2655 (process_stratum_target::supports_get_tib_address): ... this.
2656 (process_target::get_tib_address): Rename as ...
2657 (process_stratum_target::get_tib_address): ... this.
2658 (process_target::pause_all): Rename as ...
2659 (process_stratum_target::pause_all): ... this.
2660 (process_target::unpause_all): Rename as ...
2661 (process_stratum_target::unpause_all): ... this.
2662 (process_target::stabilize_threads): Rename as ...
2663 (process_stratum_target::stabilize_threads): ... this.
2664 (process_target::supports_fast_tracepoints): Rename as ...
2665 (process_stratum_target::supports_fast_tracepoints): ... this.
2666 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2667 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2668 (process_target::emit_ops): Rename as ...
2669 (process_stratum_target::emit_ops): ... this.
2670 (process_target::supports_disable_randomization): Rename as ...
2671 (process_stratum_target::supports_disable_randomization): ... this.
2672 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2673 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2674 (process_target::qxfer_libraries_svr4): Rename as ...
2675 (process_stratum_target::qxfer_libraries_svr4): ... this.
2676 (process_target::supports_agent): Rename as ...
2677 (process_stratum_target::supports_agent): ... this.
2678 (process_target::enable_btrace): Rename as ...
2679 (process_stratum_target::enable_btrace): ... this.
2680 (process_target::disable_btrace): Rename as ...
2681 (process_stratum_target::disable_btrace): ... this.
2682 (process_target::read_btrace): Rename as ...
2683 (process_stratum_target::read_btrace): ... this.
2684 (process_target::read_btrace_conf): Rename as ...
2685 (process_stratum_target::read_btrace_conf): ... this.
2686 (process_target::supports_range_stepping): Rename as ...
2687 (process_stratum_target::supports_range_stepping): ... this.
2688 (process_target::supports_pid_to_exec_file): Rename as ...
2689 (process_stratum_target::supports_pid_to_exec_file): ... this.
2690 (process_target::pid_to_exec_file): Rename as ...
2691 (process_stratum_target::pid_to_exec_file): ... this.
2692 (process_target::supports_multifs): Rename as ...
2693 (process_stratum_target::supports_multifs): ... this.
2694 (process_target::multifs_open): Rename as ...
2695 (process_stratum_target::multifs_open): ... this.
2696 (process_target::multifs_unlink): Rename as ...
2697 (process_stratum_target::multifs_unlink): ... this.
2698 (process_target::multifs_readlink): Rename as ...
2699 (process_stratum_target::multifs_readlink): ... this.
2700 (process_target::breakpoint_kind_from_pc): Rename as ...
2701 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2702 (process_target::breakpoint_kind_from_current_state): Rename as ...
2703 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2704 (process_target::thread_name): Rename as ...
2705 (process_stratum_target::thread_name): ... this.
2706 (process_target::thread_handle): Rename as ...
2707 (process_stratum_target::thread_handle): ... this.
2708 (process_target::supports_software_single_step): Rename as ...
2709 (process_stratum_target::supports_software_single_step): ... this.
2710 (process_target::supports_catch_syscall): Rename as ...
2711 (process_stratum_target::supports_catch_syscall): ... this.
2712 (process_target::get_ipa_tdesc_idx): Rename as ...
2713 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2715 2020-02-20 Pedro Alves <palves@redhat.com>
2717 * target.cc (set_target_ops): Simply copy the given target pointer
2718 instead of creating a copy of the pointed object.
2720 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2725 * target.h (struct process_stratum_target): Remove the target op.
2726 (class process_target): Add the target op.
2727 (target_get_ipa_tdesc_idx): Update the macro.
2728 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2730 Update the derived classes and callers below.
2732 * linux-low.cc (linux_target_ops): Update.
2733 (linux_get_ipa_tdesc_idx): Turn into ...
2734 (linux_process_target::get_ipa_tdesc_idx): ... this.
2735 * linux-low.h (class linux_process_target): Update.
2736 * lynx-low.cc (lynx_target_ops): Update.
2737 * nto-low.cc (nto_target_ops): Update.
2738 * win32-low.cc (win32_target_ops): Update.
2740 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742 Turn process_stratum_target's supports_catch_syscall op into a
2743 method of process_target.
2745 * target.h (struct process_stratum_target): Remove the target op.
2746 (class process_target): Add the target op.
2747 (target_supports_catch_syscall): Update the macro.
2748 * target.cc (process_target::supports_catch_syscall): Define.
2750 Update the derived classes and callers below.
2752 * linux-low.cc (linux_target_ops): Update.
2753 (linux_supports_catch_syscall): Turn into ...
2754 (linux_process_target::supports_catch_syscall): ... this.
2755 * linux-low.h (class linux_process_target): Update.
2756 * lynx-low.cc (lynx_target_ops): Update.
2757 * nto-low.cc (nto_target_ops): Update.
2758 * win32-low.cc (win32_target_ops): Update.
2760 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2762 Turn process_stratum_target's supports_software_single_step op
2763 into a method of process_target.
2765 * target.h (struct process_stratum_target): Remove the target op.
2766 (class process_target): Add the target op.
2767 (target_supports_software_single_step): Update the macro.
2768 * target.cc (process_target::supports_software_single_step): Define.
2770 Update the derived classes and callers below.
2772 * linux-low.cc (linux_target_ops): Update.
2773 (linux_supports_software_single_step): Turn into ...
2774 (linux_process_target::supports_software_single_step): ... this.
2775 * linux-low.h (class linux_process_target): Update.
2776 * lynx-low.cc (lynx_target_ops): Update.
2777 * nto-low.cc (nto_target_ops): Update.
2778 * win32-low.cc (win32_target_ops): Update.
2780 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782 Turn process_stratum_target's thread_name and thread_handle ops
2783 into methods of process_target.
2785 * target.h (struct process_stratum_target): Remove the target ops.
2786 (class process_target): Add the target ops.
2787 (target_thread_name): Update the macro.
2788 (target_thread_handle): Update the macro.
2789 * target.cc (process_target::thread_name): Define.
2790 (process_target::thread_handle): Define.
2792 Update the derived classes and callers below.
2794 * linux-low.cc (linux_target_ops): Update.
2795 (linux_process_target::thread_name): Define.
2796 (linux_process_target::thread_handle): Define.
2797 * linux-low.h (class linux_process_target): Update.
2798 * lynx-low.cc (lynx_target_ops): Update.
2799 * nto-low.cc (nto_target_ops): Update.
2800 * win32-low.cc (win32_target_ops): Update.
2802 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804 Turn process_stratum_target's breakpoint_kind_from_pc,
2805 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2806 ops into methods of process_target.
2808 * target.h (struct process_stratum_target): Remove the target op.
2809 (class process_target): Add the target op.
2810 (target_breakpoint_kind_from_pc): Update the macro.
2811 (target_breakpoint_kind_from_current_state): Update the macro.
2812 (default_breakpoint_kind_from_pc): Remove declaration.
2813 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2814 (process_target::breakpoint_kind_from_pc): ... this.
2815 (process_target::breakpoint_kind_from_current_state): Define.
2817 Update the derived classes and callers below.
2819 * mem-break.cc (bp_size): Update.
2820 (bp_opcode): Update.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_wait_1): Update.
2823 (linux_breakpoint_kind_from_pc): Turn into ...
2824 (linux_process_target::breakpoint_kind_from_pc): ... this.
2825 (linux_sw_breakpoint_from_kind): Turn into ...
2826 (linux_process_target::sw_breakpoint_from_kind): ... this.
2827 (linux_breakpoint_kind_from_current_state): Turn into ...
2828 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 (lynx_process_target::sw_breakpoint_from_kind): Define.
2832 * lynx-low.h (class lynx_process_target): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 (nto_sw_breakpoint_from_kind): Turn into ...
2835 (nto_process_target::sw_breakpoint_from_kind): ... this.
2836 * nto-low.h (class nto_process_target): Update.
2837 * win32-low.cc (win32_target_ops): Update.
2838 (win32_sw_breakpoint_from_kind): Turn into ...
2839 (win32_process_target::sw_breakpoint_from_kind): ... this.
2840 * win32-low.h (class win32_process_target): Update.
2842 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844 Turn process_stratum_target's multifs_open, multifs_readlink,
2845 multifs_unlink ops into methods of process_target.
2847 * target.h (struct process_stratum_target): Remove the target ops.
2848 (class process_target): Add the target ops. Also add
2850 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2852 (process_target::supports_multifs): Define.
2853 (process_target::multifs_open): Define.
2854 (process_target::multifs_readlink): Define.
2855 (process_target::multifs_unlink): Define.
2857 Update the derived classes and callers below.
2859 * hostio.cc (handle_setfs): Update.
2860 (handle_open): Update.
2861 (handle_unlink): Update.
2862 (handle_readlink): Update.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_process_target::supports_multifs): Define.
2865 (linux_process_target::multifs_open): Define.
2866 (linux_process_target::multifs_readlink): Define.
2867 (linux_process_target::multifs_unlink): Define.
2868 * linux-low.h (class linux_process_target): Update.
2869 * lynx-low.cc (lynx_target_ops): Update.
2870 * nto-low.cc (nto_target_ops): Update.
2871 * win32-low.cc (win32_target_ops): Update.
2873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875 Turn process_stratum_target's pid_to_exec_file op into a method
2878 * target.h (struct process_stratum_target): Remove the target op.
2879 (class process_target): Add the target op. Also add
2880 'supports_pid_to_exec_file'.
2881 * target.cc (process_target::pid_to_exec_file): Define.
2882 (process_target::supports_pid_to_exec_file): Define.
2884 Update the derived classes and callers below.
2886 * server.cc (handle_qxfer_exec_file): Update.
2887 (handle_query): Update.
2888 * linux-low.cc (linux_target_ops): Update.
2889 (linux_process_target::supports_pid_to_exec_file): Define.
2890 (linux_process_target::pid_to_exec_file): Define.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's supports_range_stepping op into a
2899 method of process_target.
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op.
2903 (target_supports_range_stepping): Update the macro.
2904 * target.cc (process_target::supports_range_stepping): Define.
2906 Update the derived classes and callers below.
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_supports_range_stepping): Turn into ...
2910 (linux_process_target::supports_range_stepping): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 * nto-low.cc (nto_target_ops): Update.
2914 * win32-low.cc (win32_target_ops): Update.
2916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2918 Turn process_stratum_target's btrace-related ops (enable_btrace,
2919 disable_btrace, read_btrace, read_btrace_conf) into methods of
2922 * target.h (struct process_stratum_target): Remove the target ops.
2923 (class process_target): Add the target ops.
2924 (target_enable_btrace): Update.
2925 (target_disable_btrace): Update.
2926 (target_read_btrace): Update.
2927 (target_read_btrace_conf): Update.
2928 * target.cc (process_target::enable_btrace): Define.
2929 (process_target::disable_btrace): Define.
2930 (process_target::read_btrace): Define.
2931 (process_target::read_btrace_conf): Define.
2933 Update the derived classes and callers below.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_process_target:enable_btrace): Define as a wrapper around
2937 linux_enable_btrace.
2938 (linux_low_disable_btrace): Turn into ...
2939 (linux_process_target::disable_btrace): ... this.
2940 (linux_low_read_btrace): Turn into ...
2941 (linux_process_target::read_btrace): ... this.
2942 (linux_low_btrace_conf): Turn into ...
2943 (linux_process_target::read_btrace_conf): ... this.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 * nto-low.cc (nto_target_ops): Update.
2947 * win32-low.cc (win32_target_ops): Update.
2949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951 Turn process_stratum_target's supports_agent op into a method of
2954 * target.h (struct process_stratum_target): Remove the target op.
2955 (class process_target): Add the target op.
2956 (target_supports_agent): Update the macro.
2957 * target.cc (process_target::supports_agent): Define.
2959 Update the derived classes and callers below.
2961 * linux-low.cc (linux_target_ops): Update.
2962 (linux_supports_agent): Turn into ...
2963 (linux_process_target::supports_agent): ... this.
2964 * linux-low.h (class linux_process_target): Update.
2965 * lynx-low.cc (lynx_target_ops): Update.
2966 * nto-low.cc (nto_target_ops): Update.
2967 * win32-low.cc (win32_target_ops): Update.
2969 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2971 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2972 method of process_target.
2974 * target.h (struct process_stratum_target): Remove the target op.
2975 (class process_target): Add the target op. Also add
2976 'supports_qxfer_libraries_svr4'.
2977 * target.cc (process_target::qxfer_libraries_svr4): Define.
2978 (process_target::supports_qxfer_libraries_svr4): Define.
2980 Update the derived classes and callers below.
2982 * server.cc (handle_qxfer_libraries_svr4): Update.
2983 (handle_query): Update.
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2986 (linux_qxfer_libraries_svr4): Turn into ...
2987 (linux_process_target::qxfer_libraries_svr4): ... this.
2988 * linux-low.h (class linux_process_target): Update.
2989 * lynx-low.cc (lynx_target_ops): Update.
2990 * nto-low.cc (nto_target_ops): Update.
2991 * win32-low.cc (win32_target_ops): Update.
2993 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995 Turn process_stratum_target's supports_disable_randomization op
2996 into a method of process_target.
2998 * target.h (struct process_stratum_target): Remove the target op.
2999 (class process_target): Add the target op.
3000 (target_supports_disable_randomization): Update the macro.
3001 * target.cc (process_target::supports_disable_randomization): Define.
3003 Update the derived classes and callers below.
3005 * linux-low.cc (linux_target_ops): Update.
3006 (linux_supports_disable_randomization): Turn into ...
3007 (linux_process_target::supports_disable_randomization): ... this.
3008 * linux-low.h (class linux_process_target): Update.
3009 * lynx-low.cc (lynx_target_ops): Update.
3010 * nto-low.cc (nto_target_ops): Update.
3011 * win32-low.cc (win32_target_ops): Update.
3013 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3015 Turn process_stratum_target's emit_ops op into a method of
3018 * target.h (struct process_stratum_target): Remove the target op.
3019 (class process_target): Add the target op.
3020 (target_emit_ops): Update the macro.
3021 * target.cc (process_target::emit_ops): Define.
3023 Update the derived classes and callers below.
3025 * linux-low.cc (linux_target_ops): Update.
3026 (linux_emit_ops): Turn into ...
3027 (linux_process_target::emit_ops): ... this.
3028 * linux-low.h (class linux_process_target): Update.
3029 * lynx-low.cc (lynx_target_ops): Update.
3030 * nto-low.cc (nto_target_ops): Update.
3031 * win32-low.cc (win32_target_ops): Update.
3033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3035 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3036 and get_min_fast_tracepoint_insn_len ops into methods of
3039 * target.h (struct process_stratum_target): Remove the target ops.
3040 (class process_target): Add the target ops. Also add
3041 'supports_fast_tracepoints'.
3042 (target_supports_fast_tracepoints): Update the macro.
3043 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3044 (install_fast_tracepoint_jump_pad): Update and rename the macro
3046 (target_install_fast_tracepoint_jump_pad): ... this.
3047 * target.cc (process_target::supports_fast_tracepoints): Define.
3048 (process_target::install_fast_tracepoint_jump_pad): Define.
3049 (process_target::get_min_fast_tracepoint_insn_len): Define.
3051 Update the derived classes and callers below.
3053 * tracepoint.cc (install_fast_tracepoint): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_process_target::supports_fast_tracepoints): Define.
3056 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3057 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3058 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3059 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3060 * linux-low.h (class linux_process_target): Update.
3061 * lynx-low.cc (lynx_target_ops): Update.
3062 * nto-low.cc (nto_target_ops): Update.
3063 * win32-low.cc (win32_target_ops): Update.
3065 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3067 Turn process_stratum_target's stabilize_threads op into a
3068 method of process_target.
3070 * target.h (struct process_stratum_target): Remove the target op.
3071 (class process_target): Add the target op.
3072 (target_stabilize_threads): Update the macro.
3073 * target.cc (process_target::stabilize_threads): Define.
3075 Update the derived classes and callers below.
3077 * server.cc (handle_status): Update.
3078 * tracepoint.cc (cmd_qtdp): Update.
3079 (cmd_qtstart): Update.
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_stabilize_threads): Turn into ...
3082 (linux_process_target::stabilize_threads): ... this.
3083 (linux_wait_1): Update.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3091 Turn process_stratum_target's pause_all and unpause_all ops
3092 into methods of process_target.
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops.
3096 (pause_all): Update the macro and rename to...
3097 (target_pause_all): ... this.
3098 (unpause_all): Update the macro and rename to...
3099 (target_unpause_all): ... this.
3100 * target.cc (process_target::pause_all): Define.
3101 (process_target::unpause_all): Define.
3103 Update the derived classes and callers below.
3105 * server.cc (handle_status): Update.
3106 * tracepoint.cc (clear_installed_tracepoints): Update.
3108 (cmd_qtstart): Update.
3109 (stop_tracing): Update.
3110 (cmd_qtstatus): Update.
3111 (upload_fast_traceframes): Update.
3112 (run_inferior_command): Update.
3113 * linux-low.cc (linux_target_ops): Update.
3114 (linux_pause_all): Turn into ...
3115 (linux_process_target::pause_all): ... this.
3116 (linux_unpause_all): Turn into ...
3117 (linux_process_target::unpause_all): ... this.
3118 (linux_process_target::prepare_to_access_memory): Update.
3119 (linux_process_target::done_accessing_memory): Update.
3120 * linux-low.h (class linux_process_target): Update.
3121 * lynx-low.cc (lynx_target_ops): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 * win32-low.cc (win32_target_ops): Update.
3125 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3127 Turn process_stratum_target's get_tib_address op into a method of
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op. Also add
3132 'supports_get_tib_address'.
3133 * target.cc (process_target::get_tib_address): Define.
3134 (process_target::supports_get_tib_address): Define.
3136 Update the derived classes and callers below.
3138 * server.cc (handle_query): Update.
3139 * linux-low.cc (win32_target_ops): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143 (win32_process_target::supports_get_tib_address): Define.
3144 (win32_get_tib_address): Turn into ...
3145 (win32_process_target::get_tib_address): ... this.
3146 * win32-low.h (class win32_process_target): Update.
3148 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3150 Turn process_stratum_target's thread_stopped op into a method of
3153 * target.h (struct process_stratum_target): Remove the target op.
3154 (class process_target): Add the target op. Also add
3155 'supports_thread_stopped'.
3156 (target_thread_stopped): Update the macro.
3157 * target.cc (process_target::thread_stopped): Define.
3158 (process_target::supports_thread_stopped): Define.
3159 (prepare_to_access_memory): Update.
3161 Update the derived classes and callers below.
3163 * server.cc (queue_stop_reply_callback): Update.
3164 * linux-low.cc (linux_target_ops): Update.
3165 (linux_process_target::supports_thread_stopped): Define.
3166 (linux_thread_stopped): Turn into ...
3167 (linux_process_target::thread_stopped): ... this.
3168 * linux-low.h (class linux_process_target): Update.
3169 * lynx-low.cc (lynx_target_ops): Update.
3170 * nto-low.cc (nto_target_ops): Update.
3171 * win32-low.cc (win32_target_ops): Update.
3173 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3175 Turn process_stratum_target's read_pc and write_pc ops into
3176 methods of process_target.
3178 * target.h (struct process_stratum_target): Remove the target ops.
3179 (class process_target): Add the target ops.
3180 * target.cc (process_target::read_pc): Define.
3181 (process_target::write_pc): Define.
3183 Update the derived classes and callers below.
3185 * regcache.cc (regcache_read_pc): Update.
3186 (regcache_write_pc): Update.
3187 * linux-low.cc (linux_target_ops): Update.
3188 (linux_read_pc): Turn into ...
3189 (linux_process_target::read_pc): ... this.
3190 (linux_write_pc): Turn into ...
3191 (linux_process_target::write_pc): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's supports_tracepoints op into a
3200 method of process_target.
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op.
3204 (target_supports_tracepoints): Update the macro.
3205 * target.cc (process_target::supports_tracepoints): Define.
3207 Update the derived classes and callers below.
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_supports_tracepoints): Turn into ...
3211 (linux_process_target::supports_tracepoints): ... this.
3212 * linux-low.h (class linux_process_target): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.cc (win32_target_ops): Update.
3217 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3219 Turn process_stratum_target's process_qsupported op into a method
3222 * target.h (struct process_stratum_target): Remove the target op.
3223 (class process_target): Add the target op.
3224 (target_process_qsupported): Update the macro.
3225 * target.cc (process_target::process_qsupported): Define.
3227 Update the derived classes and callers below.
3229 * linux-low.cc (linux_target_ops): Update.
3230 (linux_process_qsupported): Turn into ...
3231 (linux_process_target::process_qsupported): ... this.
3232 * linux-low.h (class linux_process_target): Update.
3233 * lynx-low.cc (lynx_target_ops): Update.
3234 * nto-low.cc (nto_target_ops): Update.
3235 * win32-low.cc (win32_target_ops): Update.
3237 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3239 Turn process_stratum_target's read_loadmap op into a method of
3242 * target.h (struct process_stratum_target): Remove the target op.
3243 (class process_target): Add the target op. Also add
3244 'supports_read_loadmap'.
3245 * target.cc (process_target::read_loadmap): Define.
3246 (process_target::supports_read_loadmap): Define.
3248 Update the derived classes and callers below.
3250 * server.cc (handle_qxfer_fdpic): Update.
3251 (handle_query): Update.
3252 * linux-low.cc (linux_target_ops): Update.
3253 (linux_process_target::supports_read_loadmap): Define.
3254 (linux_read_loadmap): Turn into ...
3255 (linux_process_target::read_loadmap): ... this.
3256 * linux-low.h (class linux_process_target): Update.
3257 * lynx-low.cc (lynx_target_ops): Update.
3258 * nto-low.cc (nto_target_ops): Update.
3259 * win32-low.cc (win32_target_ops): Update.
3261 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3263 Turn process_stratum_target's core_of_thread op into a method of
3266 * target.h (struct process_stratum_target): Remove the target op.
3267 (class process_target): Add the target op.
3268 (target_core_of_thread): Update the macro.
3269 * target.cc (process_target::core_of_thread): Define.
3271 Update the derived classes and callers below.
3273 * linux-low.cc (linux_target_ops): Update.
3274 (linux_process_target::core_of_thread): Define.
3275 * linux-low.h (class linux_process_target): Update.
3276 * lynx-low.cc (lynx_target_ops): Update.
3277 * nto-low.cc (nto_target_ops): Update.
3278 * win32-low.cc (win32_target_ops): Update.
3280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3282 Turn process_stratum_target's handle_monitor_command op into a
3283 method of process_target.
3285 * target.h (struct process_stratum_target): Remove the target op.
3286 (class process_target): Add the target op.
3287 (target_handle_monitor_command): Update the macro.
3288 * target.cc (process_target::handle_monitor_command): Define.
3290 Update the derived classes and callers below.
3292 * server.cc (handle_query): Update.
3293 * linux-low.cc (linux_target_ops): Update.
3294 (linux_process_target::handle_monitor_command): Define.
3295 * linux-low.h (class linux_process_target): Update.
3296 * lynx-low.cc (lynx_target_ops): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 * win32-low.cc (win32_target_ops): Update.
3300 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3302 Turn process_stratum_target's handle_new_gdb_connection op into a
3303 method of process_target.
3305 * target.h (struct process_stratum_target): Remove the target op.
3306 (class process_target): Add the target op.
3307 (target_handle_new_gdb_connection): Update the macro.
3308 * target.cc (process_target::handle_new_gdb_connection): Define.
3310 Update the derived classes and callers below.
3312 * linux-low.cc (linux_target_ops): Update.
3313 (linux_handle_new_gdb_connection): Turn into ...
3314 (linux_process_target::handle_new_gdb_connection): ... this.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 * win32-low.cc (win32_target_ops): Update.
3320 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322 Turn process_stratum_target's supports_fork_events,
3323 supports_vfork_events, and supports_exec_events ops into methods
3326 * target.h (struct process_stratum_target): Remove the target ops.
3327 (class process_target): Add the target ops.
3328 (target_supports_fork_events): Update the macro.
3329 (target_supports_vfork_events): Update the macro.
3330 (target_supports_exec_events): Update the macro.
3331 * target.cc (process_target::supports_fork_events): Define.
3332 (process_target::supports_vfork_events): Define.
3333 (process_target::supports_exec_events): Define.
3335 Update the derived classes and callers below.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_fork_events): Turn into ...
3339 (linux_process_target::supports_fork_events): ... this.
3340 (linux_supports_vfork_events): Turn into ...
3341 (linux_process_target::supports_vfork_events): ... this.
3342 (linux_supports_exec_events): Turn into ...
3343 (linux_process_target::supports_exec_events): ... this.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3349 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351 Turn process_stratum_target's supports_multi_process op into a
3352 method of process_target.
3354 * target.h (struct process_stratum_target): Remove the target op.
3355 (class process_target): Add the target op.
3356 * target.cc (process_target::supports_multi_process): Define.
3357 (target_supports_multi_process): Update.
3359 Update the derived classes and callers below.
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_supports_multi_process): Turn into ...
3363 (linux_process_target::supports_multi_process): ... this.
3364 * linux-low.h (class linux_process_target): Update.
3365 * lynx-low.cc (lynx_target_ops): Update.
3366 * nto-low.cc (nto_target_ops): Update.
3367 * win32-low.cc (win32_target_ops): Update.
3369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371 Turn process_stratum_target's supports_non_stop, async, and
3372 start_non_stop ops into methods of process_target.
3374 * target.h (struct process_stratum_target): Remove the target ops.
3375 (class process_target): Add the target ops.
3376 (target_supports_non_stop): Update the macro.
3377 (target_async): Update the macro.
3378 (start_non_stop): Remove declaration.
3379 * target.cc (process_target::supports_non_stop): Define.
3380 (process_target::async): Define.
3381 (process_target::start_non_stop): Define.
3382 (start_non_stop): Remove.
3384 Update the derived classes and callers below.
3386 * server.cc (handle_qxfer_siginfo): Update.
3387 (handle_query): Update.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_supports_non_stop): Turn into ...
3390 (linux_process_target::supports_non_stop): ... this.
3391 (linux_async): Turn into ...
3392 (linux_process_target::async): ... this.
3393 (linux_start_non_stop): Turn into ...
3394 (linux_process_target::start_non_stop): ... this.
3395 * linux-low.h (class linux_process_target): Update.
3396 * lynx-low.cc (lynx_target_ops): Update.
3397 * nto-low.cc (nto_target_ops): Update.
3398 (nto_supports_non_stop): Remove; rely on the default behavior
3400 * win32-low.cc (win32_target_ops): Update.
3402 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3404 Turn process_stratum_target's qxfer_siginfo op into a method of
3407 * target.h (struct process_stratum_target): Remove the target op.
3408 (class process_target): Add the target op. Also add
3409 'supports_qxfer_siginfo'.
3410 * target.cc (process_target::qxfer_siginfo): Define.
3411 (process_target::supports_qxfer_siginfo): Define.
3413 Update the derived classes and callers below.
3415 * server.cc (handle_qxfer_siginfo): Update.
3416 (handle_query): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_process_target::supports_qxfer_siginfo): Define.
3419 (linux_xfer_siginfo): Turn into ...
3420 (linux_process_target::qxfer_siginfo): ... this.
3421 * linux-low.h (class linux_process_target): Update.
3422 * lynx-low.cc (lynx_target_ops): Update.
3423 * nto-low.cc (nto_target_ops): Update.
3424 * win32-low.cc (win32_target_ops): Update.
3426 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3428 Turn process_stratum_target's qxfer_osdata op into a method of
3431 * target.h (struct process_stratum_target): Remove the target op.
3432 (class process_target): Add the target op. Also add
3433 'supports_qxfer_osdata'.
3434 * target.cc (process_target::qxfer_osdata): Define.
3435 (process_target::supports_qxfer_osdata): Define.
3437 Update the derived classes and callers below.
3439 * server.cc (handle_qxfer_osdata): Update.
3440 (handle_query): Update.
3441 * linux-low.cc (linux_target_ops): Update.
3442 (linux_process_target::supports_qxfer_osdata): Define.
3443 (linux_qxfer_osdata): Turn into ...
3444 (linux_process_target::qxfer_osdata): ... this.
3445 * linux-low.h (class linux_process_target): Update.
3446 * lynx-low.cc (lynx_target_ops): Update.
3447 * nto-low.cc (nto_target_ops): Update.
3448 * win32-low.cc (win32_target_ops): Update.
3450 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3452 Turn process_stratum_target's hostio_last_error op into a
3453 method of process_target.
3455 * target.h (struct process_stratum_target): Remove the target op.
3456 (class process_target): Add the target op.
3457 * target.cc: Add "hostio.h" to includes.
3458 (process_target::hostio_last_error): Define.
3460 Update the derived classes and callers below.
3462 * hostio.cc (hostio_error): Update.
3463 * linux-low.cc: Remove "hostio.h" from includes.
3464 (linux_target_ops): Update.
3465 * lynx-low.cc (lynx_target_ops): Update.
3466 * nto-low.cc (nto_target_ops): Update.
3467 * win32-low.h (class win32_process_target): Update.
3468 * win32-low.cc (win32_target_ops): Update.
3469 (wince_hostio_last_error): Turn into ...
3470 (win32_process_target::hostio_last_error): ... this.
3472 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3474 Turn process_stratum_target's get_tls_address op into a method of
3477 * target.h (struct process_stratum_target): Remove the target op.
3478 (class process_target): Add the target op. Also add
3479 'supports_get_tls_address'.
3480 * target.cc (process_target::get_tls_address): Define.
3481 (process_target::supports_get_tls_address): Define.
3483 Update the derived classes and callers below.
3485 * server.cc (handle_query): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_process_target::supports_get_tls_address): Define.
3488 (linux_process_target::get_tls_address): Define.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3494 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496 Turn process_stratum_target's read_offsets op into a method of
3499 * target.h (struct process_stratum_target): Remove the target op.
3500 (class process_target): Add the target op. Also add
3501 'supports_read_offsets'.
3502 * target.cc (process_target::read_offsets): Define.
3503 (process_target::supports_read_offsets): Define.
3505 Update the derived classes and callers below.
3507 * server.cc (handle_query): Update.
3508 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3509 (linux_target_ops): Update.
3510 (linux_process_target::supports_read_offsets): Define.
3511 (linux_read_offsets): Turn into ...
3512 (linux_process_target::read_offsets): ... this.
3513 * linux-low.h (class linux_process_target): Update.
3514 * lynx-low.cc (lynx_target_ops): Update.
3515 * nto-low.cc (nto_target_ops): Update.
3516 * win32-low.cc (win32_target_ops): Update.
3518 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520 Turn process_stratum_target's stopped_by_watchpoint and
3521 stopped_data_address ops into methods of process_target.
3523 * target.h (struct process_stratum_target): Remove the target ops.
3524 (class process_target): Add the target ops.
3525 * target.cc (process_target::stopped_by_watchpoint): Define.
3526 (process_target::stopped_data_address): Define.
3528 Update the derived classes and callers below.
3530 * remote-utils.cc (prepare_resume_reply): Update.
3531 * linux-low.cc (linux_target_ops): Update.
3532 (linux_stopped_by_watchpoint): Turn into ...
3533 (linux_process_target::stopped_by_watchpoint): ... this.
3534 (linux_stopped_data_address): Turn into ...
3535 (linux_process_target::stopped_data_address): ... this.
3536 * linux-low.h (class linux_process_target): Update.
3537 * lynx-low.cc (lynx_target_ops): Update.
3538 * nto-low.cc (nto_target_ops): Update.
3539 (nto_stopped_by_watchpoint): Turn into ...
3540 (nto_process_target::stopped_by_watchpoint): ... this.
3541 (nto_stopped_data_address): Turn into ...
3542 (nto_process_target::stopped_data_address): ... this.
3543 * nto-low.h (class nto_process_target): Update.
3544 * win32-low.cc (win32_target_ops): Update.
3545 (win32_stopped_by_watchpoint): Turn into ...
3546 (win32_process_target::stopped_by_watchpoint): ... this.
3547 (win32_stopped_data_address): Turn into ...
3548 (win32_process_target::stopped_data_address): ... this.
3549 * win32-low.h (class win32_process_target): Update.
3551 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3553 Turn process_stratum_target's supports_hardware_single_step op into
3554 a method of process_target.
3556 * target.h (struct process_stratum_target): Remove the target op.
3557 (class process_target): Add the target op.
3558 (target_supports_hardware_single_step): Update the macro.
3559 (target_can_do_hardware_single_step): Remove declaration.
3560 * target.cc (process_target::supports_hardware_single_step): Define.
3561 (target_can_do_hardware_single_step): Remove.
3563 Update the derived classes and callers below.
3565 * linux-low.h (class linux_process_target): Update.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_supports_hardware_single_step): Turn into ...
3568 (linux_process_target::supports_hardware_single_step): ... this.
3569 * lynx-low.h (class lynx_process_target): Update.
3570 * lynx-low.cc (lynx_target_ops): Update.
3571 (lynx_process_target::supports_hardware_single_step): Define.
3572 * nto-low.h (class nto_process_target): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 (nto_process_target::supports_hardware_single_step): Define.
3575 * win32-low.h (class win32_process_target): Update.
3576 * win32-low.cc (win32_target_ops): Update.
3577 (win32_process_target::supports_hardware_single_step): Define.
3579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3582 ops into methods of process_target.
3584 * target.h (struct process_stratum_target): Remove the target ops.
3585 (class process_target): Add the target ops.
3586 (target_stopped_by_hw_breakpoint): Update the macro.
3587 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3588 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3589 (process_target::supports_stopped_by_hw_breakpoint): Define.
3591 Update the derived classes and callers below.
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_stopped_by_hw_breakpoint): Turn into ...
3595 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3596 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3597 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3598 * linux-low.h (class linux_process_target): Update.
3599 * lynx-low.cc (lynx_target_ops): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 * win32-low.cc (win32_target_ops): Update.
3603 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3606 ops into methods of process_target.
3608 * target.h (struct process_stratum_target): Remove the target ops.
3609 (class process_target): Add the target ops.
3610 (target_stopped_by_sw_breakpoint): Update the macro.
3611 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3612 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3613 (process_target::supports_stopped_by_sw_breakpoint): Define.
3615 Update the derived classes and callers below.
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_stopped_by_sw_breakpoint): Turn into ...
3619 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3620 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3621 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 * nto-low.cc (nto_target_ops): Update.
3625 * win32-low.cc (win32_target_ops): Update.
3627 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629 Turn process_stratum_target's insert_point and remove_point ops
3630 into methods of process_target.
3632 * target.h (struct process_stratum_target): Remove the target ops.
3633 (class process_target): Add the target ops.
3634 * target.cc (process_target::insert_point): Define.
3635 (process_target::remove_point): Define.
3637 Update the derived classes and callers below.
3639 * mem-break.cc (set_raw_breakpoint_at): Update.
3640 (delete_raw_breakpoint): Update.
3641 (uninsert_raw_breakpoint): Update.
3642 (reinsert_raw_breakpoint): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_insert_point): Turn into ...
3645 (linux_process_target::insert_point): ... this.
3646 (linux_remove_point): Turn into ...
3647 (linux_process_target::remove_point): ... this.
3648 * linux-low.h (class linux_process_target): Update.
3649 * lynx-low.cc (lynx_target_ops): Update.
3650 * nto-low.cc (nto_target_ops): Update.
3651 (nto_insert_point): Turn into ...
3652 (nto_process_target::insert_point): ... this.
3653 (nto_remove_point): Turn into ...
3654 (nto_process_target::remove_point): ... this.
3655 * nto-low.h (class nto_process_target): Update.
3656 * win32-low.cc (win32_target_ops): Update.
3657 (win32_insert_point): Turn into ...
3658 (win32_process_target::insert_point): ... this.
3659 (win32_remove_point): Turn into ...
3660 (win32_process_target::remove_point): ... this.
3661 * win32-low.h (class win32_process_target): Update.
3663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665 Turn process_stratum_target's supports_z_point_type op into a
3666 method of process_target.
3668 * target.h (struct process_stratum_target): Remove the target op.
3669 (class process_target): Add the target op.
3670 * target.cc (process_target::supports_z_point_type): Define.
3672 Update the derived classes and callers below.
3674 * mem-break.cc (z_type_supported): Update.
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_supports_z_point_type): Turn into ...
3677 (linux_process_target::supports_z_point_type): ... this.
3678 * linux-low.h (class linux_process_target): Update.
3679 * lynx-low.cc (lynx_target_ops): Update.
3680 * nto-low.cc (nto_target_ops): Update.
3681 (nto_supports_z_point_type): Turn into ...
3682 (nto_process_target::supports_z_point_type): ... this.
3683 * nto-low.h (class nto_process_target): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3685 (win32_supports_z_point_type): Turn into ...
3686 (win32_process_target::supports_z_point_type): ... this.
3687 * win32-low.h (class win32_process_target): Update.
3689 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3691 Turn process_stratum_target's read_auxv op into a method of
3694 * target.h (class process_stratum_target): Remove the target op.
3695 (struct process_target): Add the target op. Also add
3696 'supports_read_auxv'.
3697 * target.cc (process_target::read_auxv): Define.
3698 (process_target::supports_read_auxv): Define.
3700 Update the derived classes and callers below.
3702 * server.cc (handle_qxfer_auxv): Update.
3703 (handle_query): Update.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_process_target::supports_read_auxv): Define.
3706 (linux_read_auxv): Turn into ...
3707 (linux_process_target::read_auxv): ... this.
3708 * linux-low.h (class linux_process_target): Update.
3709 * lynx-low.cc (lynx_target_ops): Update.
3710 * nto-low.cc (nto_target_ops): Update.
3711 (nto_process_target::supports_read_auxv): Define.
3712 (nto_read_auxv): Turn into ...
3713 (nto_process_target::read_auxv): ... this.
3714 * nto-low.h (class nto_process_target): Update.
3715 * win32-low.cc (win32_target_ops): Update.
3717 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3719 Turn process_stratum_target's request_interrupt op into a method of
3722 * target.h (struct process_stratum_target): Remove the target op.
3723 (class process_target): Add the target op.
3725 Update the derived classes and callers below.
3727 * remote-utils.cc (putpkt_binary_1): Update.
3728 (input_interrupt): Update.
3730 * server.cc (handle_v_requests): Update.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_request_interrupt): Turn into ...
3733 (linux_process_target::request_interrupt): ... this.
3734 * linux-low.h (class linux_process_target): Update.
3735 * lynx-low.cc (lynx_target_ops): Update.
3736 (lynx_request_interrupt): Turn into ...
3737 (lynx_process_target::request_interrupt): ... this.
3738 * lynx-low.h (class lynx_process_target): Update.
3739 * nto-low.cc (nto_target_ops): Update.
3740 (nto_request_interrupt): Turn into ...
3741 (nto_process_target::request_interrupt): ... this.
3742 * nto-low.h (class nto_process_target): Update.
3743 * win32-low.cc (win32_target_ops): Update.
3744 (win32_request_interrupt): Turn into ...
3745 (win32_process_target::request_interrupt): ... this.
3746 * win32-low.h (class win32_process_target): Update.
3748 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750 Turn process_stratum_target's look_up_symbols op into a method of
3753 * target.h (struct process_stratum_target): Remove the target op.
3754 (class process_target): Add the target op.
3755 * target.cc (process_target::look_up_symbols): Define.
3757 Update the derived classes and callers below.
3759 * server.cc (handle_query): Update.
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_look_up_symbols): Turn into ...
3762 (linux_process_target::look_up_symbols): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 * nto-low.cc (nto_target_ops): Update.
3766 * win32-low.cc (win32_target_ops): Update.
3768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3770 Turn process_stratum_target's read_memory and write_memory
3771 ops into methods of process_target.
3773 * target.h (struct process_stratum_target): Remove the target ops.
3774 (class process_target): Add the target ops.
3776 Update the derived classes and callers below.
3778 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3779 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3780 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3781 (arm_get_syscall_trapinfo): Update.
3782 * linux-cris-low.cc (cris_breakpoint_at): Update.
3783 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3784 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3785 * linux-mips-low.cc (mips_breakpoint_at): Update.
3786 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3787 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3788 * linux-sh-low.cc (sh_breakpoint_at): Update.
3789 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3790 (sparc_store_gregset_from_stack): Update.
3791 (sparc_breakpoint_at): Update.
3792 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3793 * linux-tile-low.cc (tile_breakpoint_at): Update.
3794 * linux-x86-low.cc (x86_breakpoint_at): Update.
3795 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3796 * mem-brea.cc (insert_memory_breakpoint): Update.
3797 (validate_inserted_breakpoint): Update.
3798 * target.cc (read_inferior_memory): Update.
3799 (target_write_memory): Update.
3800 * linux-low.cc (linux_target_ops): Update.
3801 (linux_read_memory): Make a wrapper around the read_memory target
3803 (linux_process_target::read_memory): Rename from linux_read_memory.
3804 (linux_write_memory): Turn into ...
3805 (linux_process_target::write_memory): ... this.
3806 * linux-low.h (class linux_process_target): Update.
3807 * lynx-low.cc (lynx_target_ops): Update.
3808 (lynx_read_memory): Turn into ...
3809 (lynx_process_target::read_memory): ... this.
3810 (lynx_write_memory): Turn into ...
3811 (lynx_process_target::write_memory): ... this.
3812 * lynx-low.h (class lynx_process_target): Update.
3813 * nto-low.cc (nto_target_ops): Update.
3814 (nto_read_memory): Turn into ...
3815 (nto_process_target::read_memory): ... this.
3816 (nto_write_memory): Turn into ...
3817 (nto_process_target::write_memory): ... this.
3818 * nto-low.h (class nto_process_target): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820 (win32_read_inferior_memory): Turn into ...
3821 (win32_process_target::read_memory): ... this.
3822 (win32_write_inferior_memory): Turn into ...
3823 (win32_process_target::write_memory): ... this.
3824 * win32-low.h (class win32_process_target): Update.
3826 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3828 Turn process_stratum_target's prepare_to_access_memory and
3829 done_accessing_memory ops into methods of process_target.
3831 * target.h (struct process_stratum_target): Remove the target ops.
3832 (class process_target): Add the target ops.
3833 * target.cc (process_target::prepare_to_access_memory): Define.
3834 (process_target::done_accessing_memory): Define.
3835 (prepare_to_access_memory): Update.
3836 (done_accessing_memory): Update.
3838 Update the derived classes and callers below.
3840 * linux-low.cc (linux_target_ops): Update.
3841 (linux_prepare_to_access_memory): Turn into ...
3842 (linux_process_target::prepare_to_access_memory): ... this.
3843 (linux_done_accessing_memory): Turn into ...
3844 (linux_process_target::done_accessing_memory): ... this.
3845 * linux-low.h (class linux_process_target): Update.
3846 * lynx-low.cc (lynx_target_ops): Update.
3847 * nto-low.cc (nto_target_ops): Update.
3848 * win32-low.cc (win32_target_ops): Update.
3850 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3852 Turn process_stratum_target's fetch_registers and store_registers
3853 ops into methods of process_target.
3855 * target.h (struct process_stratum_target): Remove the target ops.
3856 (class process_target): Add the target ops.
3857 (fetch_inferior_registers): Update the macro.
3858 (store_inferior_registers): Update the macro.
3860 Update the derived classes and callers below.
3862 * linux-low.cc (linux_target_ops): Update.
3863 (linux_fetch_registers): Turn into ...
3864 (linux_process_target::fetch_registers): ... this.
3865 (linux_store_registers): Turn into ...
3866 (linux_process_target::store_registers): ... this.
3867 * linux-low.h (class linux_process_target): Update.
3868 * lynx-low.cc (lynx_target_ops): Update.
3869 (lynx_fetch_registers): Turn into ...
3870 (lynx_process_target::fetch_registers): ... this.
3871 (lynx_store_registers): Turn into ...
3872 (lynx_process_target::store_registers): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 (nto_fetch_registers): Turn into ...
3876 (nto_process_target::fetch_registers): ... this.
3877 (nto_store_registers): Turn into ...
3878 (nto_process_target::store_registers): ... this.
3879 * nto-low.h (class nto_process_target): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3881 (win32_fetch_inferior_registers): Turn into ...
3882 (win32_process_target::fetch_registers): ... this.
3883 (win32_store_inferior_registers): Turn into ...
3884 (win32_process_target::store_registers): ... this.
3885 * win32-low.h (class win32_process_target): Update.
3887 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889 Turn process_stratum_target's wait op into a method of
3892 * target.h (struct process_stratum_target): Remove the target op.
3893 (class process_target): Add the target op.
3895 Update the derived classes and callers below.
3897 * target.cc (target_wait): Update.
3898 * linux-low.cc (linux_target_ops): Update.
3899 (linux_wait): Turn into ...
3900 (linux_process_target::wait): ... this.
3901 * linux-low.h (class linux_process_target): Update.
3902 * lynx-low.cc (lynx_target_ops): Update.
3903 (lynx_wait): Turn into ...
3904 (lynx_process_target::wait): ... this.
3905 * lynx-low.h (class lynx_process_target): Update.
3906 * nto-low.cc (nto_target_ops): Update.
3907 (nto_wait): Turn into ...
3908 (nto_process_target::wait): ... this.
3909 * nto-low.h (class nto_process_target): Update.
3910 * win32-low.cc (win32_target_ops): Update.
3911 (win32_wait): Turn into ...
3912 (win32_process_target::wait): ... this.
3913 (do_initial_child_stuff): Update.
3914 * win32-low.h (class win32_process_target): Update.
3916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3918 Turn process_stratum_target's resume op into a method of
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op.
3924 Update the derived classes and callers below.
3926 * server.cc (resume): Update.
3927 * target.cc (target_stop_and_wait): Update.
3928 (target_continue_no_signal): Update.
3929 (target_continue): Update.
3930 * linux-low.cc (linux_target_ops): Update.
3931 (linux_resume): Turn into ...
3932 (linux_process_target::resume): ... this.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 (lynx_resume): Turn into ...
3936 (lynx_process_target::resume): ... this.
3937 * lynx-low.h (class lynx_process_target): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 (nto_resume): Turn into ...
3940 (nto_process_target::resume): ... this.
3941 * nto-low.h (class nto_process_target): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3943 (win32_resume): Turn into ...
3944 (win32_process_target::resume): ... this.
3945 (win32_process_target::detach): Update.
3946 (do_initial_child_stuff): Update.
3947 * win32-low.h (class win32_process_target): Update.
3949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3951 Turn process_stratum_target's thread_alive op into a method of
3954 * target.h (struct process_stratum_target): Remove the target op.
3955 (class process_target): Add the target op.
3956 (mythread_alive): Update the macro.
3958 Update the derived classes and callers below.
3960 * linux-low.cc (linux_target_ops): Update.
3961 (linux_thread_alive): Turn into ...
3962 (linux_process_target::thread_alive): ... this.
3963 (wait_for_sigstop): Update.
3964 * linux-low.h (class linux_process_target): Update.
3965 * lynx-low.cc (lynx_target_ops): Update.
3966 (lynx_thread_alive): Turn into ...
3967 (lynx_process_target::thread_alive): ... this.
3968 * lynx-low.h (class lynx_process_target): Update.
3969 * nto-low.cc (nto_target_ops): Update.
3970 (nto_thread_alive): Turn into ...
3971 (nto_process_target::thread_alive): ... this.
3972 * nto-low.h (class nto_process_target): Update.
3973 * win32-low.cc (win32_target_ops): Update.
3974 (win32_thread_alive): Turn into ...
3975 (win32_process_target::thread_alive): ... this.
3976 * win32-low.h (class win32_process_target): Update.
3978 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3980 Turn process_stratum_target's join op into a method of
3983 * target.h (struct process_stratum_target): Remove the target op.
3984 (class process_target): Add the target op.
3985 (join_inferior): Update the macro.
3987 Update the derived classes and callers below.
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_join): Turn into ...
3991 (linux_process_target::join): ... this.
3992 * linux-low.h (class linux_process_target): Update.
3993 * lynx-low.cc (lynx_target_ops): Update.
3994 (lynx_join): Turn into ...
3995 (lynx_process_target::join): ... this.
3996 * lynx-low.h (class lynx_process_target): Update.
3997 * nto-low.cc (nto_target_ops): Update.
3998 (nto_process_target::join): Define.
3999 * nto-low.h (class nto_process_target): Update.
4000 * win32-low.cc (win32_target_ops): Update.
4001 (win32_join): Turn into ...
4002 (win32_process_target::join): ... this.
4003 * win32-low.h (class win32_process_target): Update.
4005 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4007 Turn process_stratum_target's mourn op into a method of
4010 * target.h (struct process_stratum_target): Remove the target op.
4011 (class process_target): Add the target op.
4013 Update the derived classes and callers below.
4015 * target.cc (target_mourn_inferior): Update.
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_mourn): Turn into ...
4018 (linux_process_target::mourn): ... this.
4019 (handle_extended_wait): Update.
4020 (linux_process_target::kill): Update.
4021 (linux_process_target::detach): Update.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 (lynx_mourn): Turn into ...
4025 (lynx_process_target::mourn): ... this.
4026 * lynx-low.h (class lynx_process_target): Update.
4027 * nto-low.cc (nto_target_ops): Update.
4028 (nto_mourn): Turn into ...
4029 (nto_process_target::mourn): ... this.
4030 * nto-low.h (class nto_process_target): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4032 (win32_mourn): Turn into ...
4033 (win32_process_target::mourn): ... this.
4034 * win32-low.h (class win32_process_target): Update.
4036 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038 Turn process_stratum_target's detach op into a method of
4041 * target.h (struct process_stratum_target): Remove the target op.
4042 (class process_target): Add the target op.
4043 (detach_inferior): Update the macro.
4045 Update the derived classes and callers below.
4047 * linux-low.cc (linux_target_ops): Update.
4048 (linux_detach): Turn into ...
4049 (linux_process_target::detach): ... this.
4050 * linux-low.h (class linux_process_target): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 (lynx_detach): Turn into ...
4053 (lynx_process_target::detach): ... this.
4054 * lynx-low.h (class lynx_process_target): Update.
4055 * nto-low.cc (nto_target_ops): Update.
4056 (nto_detach): Turn into ...
4057 (nto_process_target::detach): ... this.
4058 * nto-low.h (class nto_process_target): Update.
4059 * win32-low.cc (win32_target_ops): Update.
4060 (win32_detach): Turn into ...
4061 (win32_process_target::detach): ... this.
4062 * win32-low.h (class win32_process_target): Update.
4064 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4066 Turn process_stratum_target's kill op into a method of
4069 * target.h (struct process_stratum_target): Remove the target op.
4070 (class process_target): Add the target op.
4072 Update the derived classes and callers below.
4074 * target.cc (kill_inferior): Update.
4075 * linux-low.cc (linux_target_ops): Update.
4076 (linux_kill): Turn into ...
4077 (linux_process_target::kill): ... this.
4078 * linux-low.h (class linux_process_target): Update.
4079 * lynx-low.cc (lynx_target_ops): Update.
4080 (lynx_kill): Turn into ...
4081 (lynx_process_target::kill): ... this.
4082 * lynx-low.h (class lynx_process_target): Update.
4083 * nto-low.cc (nto_target_ops): Update.
4084 (nto_kill): Turn into ...
4085 (nto_process_target::kill): ... this.
4086 * nto-low.h (class nto_process_target): Update.
4087 * win32-low.cc (win32_target_ops): Update.
4088 (win32_kill): Turn into ...
4089 (win32_process_target::kill): ... this.
4090 * win32-low.h (class win32_process_target): Update.
4092 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094 Turn process_stratum_target's attach op into a method of
4097 * target.h (struct process_stratum_target): Remove the target op.
4098 (class process_target): Add the target op.
4099 (myattach): Update the macro.
4101 Update the derived classes and callers below.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_attach): Turn into ...
4105 (linux_process_target::attach): ... this.
4106 * linux-low.h (class linux_process_target): Update.
4107 * lynx-low.cc (lynx_target_ops): Update.
4108 (lynx_attach): Turn into ...
4109 (lynx_process_target::attach): ... this.
4110 * lynx-low.h (class lynx_process_target): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 (nto_attach): Turn into ...
4113 (nto_process_target::attach): ... this.
4114 * nto-low.h (class nto_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_attach): Turn into ...
4117 (win32_process_target::attach): ... this.
4118 * win32-low.h (class win32_process_target): Update.
4120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4122 Turn process_stratum_target's post_create_inferior op into a method
4125 * target.h (struct process_stratum_target): Remove the target op.
4126 (class process_target): Add the target op.
4127 (target_post_create_inferior): Update the macro.
4128 * target.cc (process_target::post_create_inferior): Define.
4130 Update the derived classes and callers below.
4132 * linux-low.cc (linux_target_ops): Update.
4133 (linux_post_create_inferior): Turn into ...
4134 (linux_process_target::post_create_inferior): ... this.
4135 * linux-low.h (class linux_process_target): Update.
4136 * lynx-low.cc (lynx_target_ops): Update.
4137 * nto-low.cc (nto_target_ops): Update.
4138 * win32-low.cc (win32_target_ops): Update.
4140 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4142 Turn process_stratum_target's create_inferior op into a method of
4145 * target.h (struct process_stratum_target): Remove the target op.
4146 (class process_target): Add the target op.
4147 (create_inferior): Rename the macro to ...
4148 (target_create_inferior): ... this.
4150 Update the derived classes and callers below.
4152 * server.cc (handle_v_run): Update.
4153 (captured_main): Update.
4154 (process_serial_event): Update.
4155 * linux-low.cc (linux_target_ops): Update.
4156 (linux_create_inferior): Turn into ...
4157 (linux_process_target::create_inferior): ... this.
4158 * linux-low.h (class linux_process_target): Update.
4159 * lynx-low.cc (lynx_target_ops): Update.
4160 (lynx_create_inferior): Turn into ...
4161 (lynx_process_target::create_inferior): ... this.
4162 * lynx-low.h (class lynx_process_target): Update.
4163 * nto-low.cc (nto_target_ops): Update.
4164 (nto_create_inferior): Turn into ...
4165 (nto_process_target::create_inferior): ... this.
4166 * nto-low.h (class nto_process_target): Update.
4167 * win32-low.cc (win32_target_ops): Update.
4168 (win32_create_inferior): Turn into ...
4169 (win32_process_target::create_inferior): ... this.
4170 * win32-low.h (class win32_process_target): Update.
4172 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4174 * target.h (class process_target): New class definition.
4175 (struct process_stratum_target) <pt>: New field with type
4177 * linux-low.h (class linux_process_target): Define as a derived
4178 class of 'process_target'.
4179 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4181 * lynx-low.h (class lynx_process_target): Define as a derived
4182 class of 'process_target'.
4183 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4185 * nto-low.h (class nto_process_target): Define as a derived
4186 class of 'process_target'.
4187 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4189 * win32-low.h (class win32_process_target): Define as a derived
4190 class of 'process_target'.
4191 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4194 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4196 * configure: Regenerate.
4198 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4199 Andrew Burgess <andrew.burgess@embecosm.com>
4201 * linux-riscv-low.cc: New file.
4202 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4203 and nat/riscv-linux-tdesc.c.
4204 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4205 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4208 2020-02-14 Tom Tromey <tom@tromey.com>
4210 * acinclude.m4: Don't include acx_configure_dir.m4.
4211 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4212 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4213 (all, install-only, uninstall, clean-info, clean)
4214 (maintainer-clean): Don't recurse.
4215 (subdir_do, all-lib): Remove.
4216 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4218 (generated_files): Update.
4219 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4220 * configure: Rebuild.
4221 * configure.ac: Don't configure gnulib or libiberty.
4224 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4226 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4227 preparing the command line for CreateProcess.
4228 (win32_create_inferior): Reflect the program name in debugging
4229 output that shows the process and its command line.
4231 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4233 * Makefile.in: Rename source files from .c to .cc.
4234 * %.c: Rename to %.cc.
4235 * configure.ac: Rename server.c to server.cc.
4236 * configure: Re-generate.
4238 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4240 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4242 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4244 * win32-low.c (win32_create_inferior): Set signal_pid.
4246 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4247 Pedro Alves <palves@redhat.com>
4249 Skip building gdbserver in a cross-configuration.
4250 * configure.srv: Set $gdbserver_host depending on whether $target
4251 is $host. Use $gdbserver_host instead of $host.
4253 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4255 * configure: Re-generate.
4257 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4259 * configure: Re-generate.
4261 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4263 * acinclude.m4: Update warning.m4 path.
4265 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4267 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4268 (handle_exception): Set siginfo_er.
4269 (win32_xfer_siginfo): New function.
4271 2020-02-07 Tom Tromey <tom@tromey.com>
4272 Pedro Alves <palves@redhat.com>
4274 * README: Update build documentation.
4275 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4277 * configure.ac: Update paths.
4278 * configure: Rebuild.
4279 * acinclude.m4: Update paths.
4280 * Makefile.in: Update include paths.
4281 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4282 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4283 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4284 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4285 (%-generated.c): Update paths.
4286 * Move entire directory from ../gdb/gdbserver.
4288 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4290 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4292 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4294 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4295 assignment instead of srv_linux_obj.
4297 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4299 * server.c (handle_qxfer_libraries): Write segment-address with
4302 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4304 * Makefile.in (install-strip): New target.
4305 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4306 * aclocal.m4: Regenerate.
4307 * configure: Regenerate.
4308 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4310 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4312 * Makefile.in (SFILES): Adjust paths to point to real files.
4313 (OBS): Move waitstatus.o to target/waitstatus.o.
4314 (TAGS): Transform paths appropriately.
4316 (nat/%.o): ... this pattern rule.
4318 (target/%.o): ... this pattern rule.
4319 * configure.srv: Adjust paths throughout to include nat/ prefix
4320 with the revant files.
4321 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4322 * configure: Regenerate.
4324 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4326 * Makefile.in (TAGS): Remove config files from the recipe.
4328 2020-01-14 Tom Tromey <tom@tromey.com>
4330 * configure: Rebuild.
4331 * configure.ac: Remove any checks that were added to common.m4.
4332 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4335 2020-01-14 Tom Tromey <tom@tromey.com>
4337 * server.h: Include config.h.
4338 * gdbreplay.c: Include config.h.
4339 * configure: Rebuild.
4340 * configure.ac: Don't source common.host.
4341 * acinclude.m4: Update path.
4342 * Makefile.in (INCSUPPORT): New variable.
4343 (INCLUDE_CFLAGS): Add INCSUPPORT.
4344 (SFILES): Update paths.
4345 (version-generated.c): Update path to create-version.sh.
4346 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4348 2020-01-14 Tom Tromey <tom@tromey.com>
4350 * configure.ac (LIBS): Use WIN32APILIBS.
4351 (USE_WIN32API): Don't define.
4352 * configure: Rebuild.
4354 2020-01-14 Tom Tromey <tom@tromey.com>
4356 * configure: Rebuild.
4358 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4360 * Makefile.in (%-generated.c): Remove rule for files from
4363 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4365 * configure: Re-generate.
4367 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4369 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4371 * tracepoint.c (stop_tracing, flush_trace_buffer,
4372 about_to_request_buffer_space, get_trace_state_variable_value,
4373 set_trace_state_variable_value, gdb_collect): Add declaration.
4375 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4377 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4378 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4379 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4380 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4381 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4384 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4386 * inferiors.c: Include gdbsupport/common-inferior.h.
4388 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4390 * hostio-errno.c: Include hostio.h.
4392 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4394 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4397 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4399 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4400 * linux-arm-tdesc.h: Include arch/arm.h.
4402 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4404 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4406 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4408 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4409 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4411 2020-01-10 Pedro Alves <palves@redhat.com>
4413 * fork-child.c (post_fork_inferior): Pass target down to
4415 * inferiors.c (switch_to_thread): Add process_stratum_target
4417 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4418 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4419 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4420 * remote-utils.c (prepare_resume_reply): Pass the target to
4422 * target.c (the_target): Now a process_stratum_target.
4423 (done_accessing_memory): Pass the target to switch_to_thread.
4424 (set_target_ops): Ajust to use process_stratum_target.
4425 * target.h (struct target_ops): Rename to ...
4426 (struct process_stratum_target): ... this.
4427 (the_target, set_target_ops): Adjust.
4428 (prepare_to_access_memory): Adjust comment.
4429 * win32-low.c (child_xfer_memory): Adjust to use
4430 process_stratum_target.
4431 (win32_target_ops): Now a process_stratum_target.
4433 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4434 Pedro Alves <palves@redhat.com>
4436 * win32-low.c (get_child_debug_event): Extract the fatal exception
4437 from the exit status and convert to the equivalent Posix signal
4439 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4440 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4442 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4444 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4446 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4448 * server.c (gdbserver_version): Change copyright year to 2020.
4449 * gdbreplay.c (gdbreplay_version): Likewise.
4451 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4453 * configure: Regenerate.
4454 * configure.ac: Quote variable arguments of test.
4456 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4458 * Makefile.in: Fix build with GNU Make 3.81
4460 2019-12-16 Tom Tromey <tromey@adacore.com>
4462 * server.c (get_exec_file): Constify result.
4464 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4466 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4467 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4468 * config.in: Regenerate.
4469 * configure: Regenerate.
4470 * configure.ac: Don't check for strerror.
4471 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4472 Call safe_strerror instead of strerror.
4473 * server.h (strerror): Remove this now-unnecessary declaration.
4474 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4476 (gdb_agent_helper_thread): Likewise.
4477 * utils.c (perror_with_name): Likewise.
4479 2019-11-26 Tom Tromey <tom@tromey.com>
4481 * configure, config.in: Rebuild.
4483 2019-11-26 Tom Tromey <tom@tromey.com>
4485 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4486 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4488 * configure, config.in: Rebuild.
4490 2019-11-26 Tom Tromey <tom@tromey.com>
4492 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4493 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4494 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4495 * acinclude.m4: Include ax_pthread.m4.
4496 * config.in, configure: Rebuild.
4498 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4500 * debug.c (debug_set_output): Call safe_strerror instead of
4502 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4503 (linux_kill_one_lwp): Likewise.
4504 (linux_detach_one_lwp): Likewise.
4505 (linux_wait_for_event_filtered): Likewise.
4506 (store_register): Likewise.
4507 * lynx-low.c (lynx_attach): Likewise.
4508 * mem-break.c (insert_memory_breakpoint): Likewise.
4509 (remove_memory_breakpoint): Likewise.
4510 (delete_fast_tracepoint_jump): Likewise.
4511 (set_fast_tracepoint_jump): Likewise.
4512 (uninsert_fast_tracepoint_jumps_at): Likewise.
4513 (reinsert_fast_tracepoint_jumps_at): Likewise.
4514 * nto-low.c (nto_xfer_memory): Likewise.
4515 (nto_resume): Likewise.
4517 2019-11-20 Luis Machado <luis.machado@linaro.org>
4519 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4520 instead of register count.
4521 * tdesc.c (tdesc_contains_feature): New function.
4522 * tdesc.h (tdesc_contains_feature): New prototype.
4524 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4526 * Makefile.in: Add safe-strerror.c.
4527 * configure: Regenerate.
4528 * configure.ac: Don't source common.host.
4530 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4532 * config.in: Regenerate.
4533 * configure: Regenerate.
4535 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4537 * ax.c (ax_printf): Handle size_t_arg.
4539 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4541 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4542 * mi/mi-main.c (output_cores): Likewise.
4543 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4544 (linux_xfer_osdata_modules): Likewise.
4545 * remote.c (register_remote_support_xml): Likewise.
4546 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4547 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4549 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4551 * configure: Regenerate.
4552 * configure.ac: Remove check for strerror_r.
4554 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4556 * config.in: Regenerate.
4557 * configure: Regenerate.
4558 * configure.ac: Also check for strerror_r.
4560 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4562 * ax.h (debug_agent): Remove duplicate declaration.
4564 2019-10-26 Tom de Vries <tdevries@suse.de>
4566 * linux-aarch64-low.c: Fix typos in comments.
4567 * linux-arm-low.c: Same.
4568 * linux-low.c: Same.
4569 * linux-ppc-low.c: Same.
4570 * proc-service.c: Same.
4573 * tracepoint.c: Same.
4574 * win32-low.c: Same.
4576 2019-10-25 Tom Tromey <tromey@adacore.com>
4578 * utils.c (xstrdup): Remove.
4580 2019-10-23 Tom Tromey <tom@tromey.com>
4582 * configure, config.in: Rebuild.
4584 2019-10-23 Tom Tromey <tom@tromey.com>
4586 * configure: Rebuild.
4587 * acinclude.m4: Use m4_include, not sinclude.
4589 2019-10-17 Tom Tromey <tromey@adacore.com>
4591 * configure: Rebuild.
4592 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4593 in AC_CONFIG_FILES invocation.
4594 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4597 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4599 * server.c: Include xml-builtin.h.
4600 (get_xml_features): Don't declare xml_builtins here.
4602 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4604 * Makefile.in: Remove references to vec-ipa.o.
4606 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * Makefile.in: Remove references to vec.c.
4610 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4612 * server.c (server_waiting): Change to bool.
4613 (extended_protocol): Likewise.
4614 (response_needed): Likewise.
4615 (exit_requested): Likewise.
4616 (run_once): Likewise.
4617 (report_no_resumed): Likewise.
4618 (non_stop): Likewise.
4619 (disable_packet_vCont): Likewise.
4620 (disable_packet_Tthread): Likewise.
4621 (disable_packet_qC): Likewise.
4622 (disable_packet_qfThreadInfo): Likewise.
4623 (handle_general_set): Update.
4624 (handle_detach): Update.
4625 (handle_monitor_command): Update.
4626 (handle_query): Update.
4627 (captured_main): Update.
4628 (process_serial_event): Update.
4629 * server.h (server_waiting): Change to bool.
4630 (disable_packet_vCont): Likewise.
4631 (disable_packet_Tthread): Likewise.
4632 (disable_packet_qC): Likewise.
4633 (disable_packet_qfThreadInfo): Likewise.
4634 (run_once): Likewise.
4635 (non_stop): Likewise.
4636 * target.c (target_stop_and_wait): Update.
4638 2019-10-02 Tom Tromey <tromey@adacore.com>
4640 * Makefile.in (SFILES): Add common-inferior.c.
4641 (OBS): Add common-inferior.o.
4642 * server.c (startup_with_shell): Don't define.
4644 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4646 * linux-low.c (linux_low_read_btrace): Update for change to
4649 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4651 * debug.c (debug_threads): Remove comment in favor of the header.
4652 * debug.h (using_threads): Add declaration.
4653 (debug_threads): Add comment.
4654 * linux-aarch64-low.c: Include debug.h and remove declaration of
4656 * nto-low.c: Likewise.
4657 * remote-utils.c: Likewise.
4658 * thread-db.c: Likewise.
4660 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4662 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4663 and powerpc-cell64l-ipa.o.
4664 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4665 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4666 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4669 * spu-low.c: Remove file.
4671 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4672 (parse_spufs_run): Remove.
4673 (ppc_get_pc): Remove Cell/B.E. support.
4674 (ppc_set_pc): Likewise.
4675 (ppc_breakpoint_at): Likewise.
4676 (ppc_arch_setup): Likewise.
4677 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4678 tdesc_powerpc_cell32l.
4679 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4680 or init_registers_powerpc_cell32l.
4681 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4682 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4683 or init_registers_powerpc_cell32l.
4684 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4685 (init_registers_powerpc_cell32l): Remove prototype.
4686 (init_registers_powerpc_cell64l): Likewise.
4688 * target.h (struct target_ops): Remove qxfer_spu member.
4689 * server.c (handle_qxfer_spu): Remove.
4690 (qxfer_packets): Remove entry for "spu".
4691 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4692 * linux-low.c (SPUFS_MAGIC): Remove.
4693 (spu_enumerate_spu_ids): Remove.
4694 (linux_qxfer_spu): Remove.
4695 (linux_target_ops): Remove qxfer_spu member.
4696 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4697 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4698 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4700 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4702 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4703 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4704 * config.in: Regenerate.
4705 * configure: Regenerate.
4707 2019-08-15 Tom Tromey <tromey@adacore.com>
4709 * target.c (target_write_memory): Use gdb::byte_vector.
4711 2019-08-15 Tom Tromey <tromey@adacore.com>
4713 * tracepoint.c (write_inferior_data_pointer)
4714 (write_inferior_integer, write_inferior_int8)
4715 (write_inferior_uinteger, m_tracepoint_action_download)
4716 (r_tracepoint_action_download, x_tracepoint_action_download)
4717 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4718 (download_agent_expr, download_tracepoint_1)
4719 (download_trace_state_variables, upload_fast_traceframes): Update.
4720 * server.c (gdb_write_memory): Update.
4721 * remote-utils.c (relocate_instruction): Update.
4722 * proc-service.c (ps_pdwrite): Update.
4723 * mem-break.c (remove_memory_breakpoint)
4724 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4725 (uninsert_fast_tracepoint_jumps_at)
4726 (reinsert_fast_tracepoint_jumps_at): Update.
4727 * linux-x86-low.c (append_insns)
4728 (i386_install_fast_tracepoint_jump_pad)
4729 (amd64_write_goto_address, i386_write_goto_address): Update.
4730 * linux-s390-low.c (append_insns, s390_write_goto_address):
4732 * linux-ppc-low.c (ppc_relocate_instruction)
4733 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4734 (ppc_write_goto_address): Update.
4735 * linux-aarch64-low.c (append_insns): Update.
4736 * target.h (struct target_ops): Update.
4737 (write_inferior_memory): Don't declare.
4738 * target.c (target_write_memory): Rename from
4739 write_inferior_memory. Remove old target_write_memory.
4741 2019-08-15 Tom Tromey <tromey@adacore.com>
4743 * target.c (write_inferior_memory): Use std::vector.
4745 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4748 * configure.ac: Drop enable-libmcheck support.
4749 * configure, config.in: Rebuild.
4750 * acinclude.m4: Don't include it.
4752 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4754 * configure.srv: Remove Arm xml files.
4756 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4758 * configure.srv: Add new files. Remove xml generated files.
4759 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4761 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4762 * linux-aarch32-tdesc.c: New file.
4763 * linux-aarch32-tdesc.h: New file.
4764 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4765 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4766 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4767 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4768 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4769 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4770 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4771 (arm_read_description): Call arm_linux_read_description.
4772 (initialize_low_arch): Don't init registers.
4773 * linux-arm-tdesc.c: New file.
4774 * linux-arm-tdesc.h: New file.
4776 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4778 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4779 Move counter inside for.
4780 (arm_read_description): Check ptrace earlier.
4781 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4783 2019-07-09 Tom Tromey <tom@tromey.com>
4785 * configure: Rebuild.
4786 * configure.ac: Change common to gdbsupport.
4787 * acinclude.m4: Change common to gdbsupport.
4788 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4789 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4790 common to gdbsupport.
4791 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4792 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4793 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4794 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4795 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4796 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4797 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4798 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4799 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4800 common to gdbsupport.
4802 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4804 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4806 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4808 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4810 * configure.srv: Remove legacy xml.
4811 * linux-aarch64-low.c (initialize_low_arch): Remove
4812 initialize_low_tdesc call.
4813 * linux-aarch64-tdesc-selftest.c: Remove file.
4814 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4815 * linux-x86-low.c (initialize_low_arch): Remove
4816 initialize_low_tdesc call.
4817 * linux-x86-tdesc-selftest.c: Remove file.
4818 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4820 2019-06-20 Tom de Vries <tdevries@suse.de>
4822 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4823 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4825 2019-06-19 Tom de Vries <tdevries@suse.de>
4827 * debug.h (debug_write): Change return type to ssize_t.
4828 * debug.c (debug_write): Same.
4830 2019-06-14 Tom Tromey <tom@tromey.com>
4832 * configure.ac: Use new path to gnulib.
4833 * configure: Rebuild.
4834 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4837 2019-06-11 Tom Tromey <tom@tromey.com>
4839 * Makefile.in (SFILES): Add alloc.c.
4841 (IPA_OBJS): Add alloc-ipa.o.
4842 (alloc-ipa.o): New target.
4843 (%.o: ../%.c): New pattern rule.
4845 2019-06-10 Tom Tromey <tromey@adacore.com>
4847 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4848 end warning with a newline.
4849 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4851 * thread-db.c (attach_thread): Don't end warning with a newline.
4852 (thread_db_notice_clone): Likewise.
4853 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4855 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4856 end warning with a newline.
4858 2019-06-04 Pedro Alves <palves@redhat.com>
4860 * server.c (captured_main): Use make_unique_xstrdup.
4862 2019-06-02 Tom Tromey <tom@tromey.com>
4864 * gdbreplay.c (fromhex): Remove.
4865 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4867 2019-05-29 Tom Tromey <tromey@adacore.com>
4869 * configure: Rebuild.
4871 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4873 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4874 sign extension code on 32-bit builds.
4876 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4879 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4881 2019-04-19 Tom Tromey <tom@tromey.com>
4883 * server.c (struct vstop_notif): Derive from notif_event.
4885 (queue_stop_reply): Update.
4886 (remove_all_on_match_ptid): Change type. Rewrite.
4887 (discard_queued_stop_replies): Rewrite.
4888 (in_queued_stop_replies_ptid): Change type.
4889 (in_queued_stop_replies): Rewrite.
4890 (notif_stop): Update.
4891 (queue_stop_reply_callback): Update.
4892 (captured_main): Don't call initialize_notif.
4893 (push_stop_notification): Update.
4894 * notif.c (notif_write_event, handle_notif_ack)
4895 (notif_event_enque, notif_push): Update.
4896 (notif_event_xfree, initialize_notif): Remove.
4897 * notif.h (struct notif_event): Include <list>, not
4899 (struct notif_server) <queue>: Now a std::list.
4900 (notif_event_p): Remove typedef.
4901 (initialize_notif): Don't declare.
4902 (struct notif_event): Add virtual destructor.
4904 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4906 * ax.c (ax_vdebug): Call debug_printf.
4907 * debug.c (debug_write): New function.
4908 * debug.h (debug_write): New declaration.
4909 * linux-low.c (sigchld_handler): Call debug_write.
4911 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4913 * debug.c (debug_set_output): New function.
4914 (debug_vprintf): Send output to debug_file.
4915 (debug_flush): Likewise.
4916 * debug.h (debug_set_output): New declaration.
4917 * server.c (handle_monitor_command): Add debug-file option.
4918 (captured_main): Likewise.
4920 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4922 * debug.c (remote_debug): Add definition.
4923 * debug.h (remote_debug): Add declaration.
4924 * hostio.c (remote_debug): Remove declaration.
4925 * remote-utils.c (struct ui_file): Likewise.
4926 (remote_debug): Likewise.
4927 * remote-utils.h (remote_debug): Likewise,
4928 * server.c (remote_debug): Remove definition.
4930 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4932 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4933 when using a 64-bit gdbserver.
4935 2019-04-09 Tom Tromey <tromey@adacore.com>
4937 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4939 2019-04-08 Tom Tromey <tom@tromey.com>
4941 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4943 (linux_resume_one_lwp): Likewise.
4945 2019-04-08 Tom Tromey <tom@tromey.com>
4947 * gdbreplay.c: Update.
4948 * linux-low.c: Update.
4951 2019-04-08 Tom Tromey <tom@tromey.com>
4953 * server.c: Use C++ exception handling.
4954 * linux-low.c: Use C++ exception handling.
4955 * gdbreplay.c: Use C++ exception handling.
4957 2019-04-08 Tom Tromey <tom@tromey.com>
4959 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4960 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4961 (captured_main, main): Update.
4962 * gdbreplay.c (main): Update.
4964 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4966 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4967 value in argument pointer, return 1 if the entry is found and 0
4968 otherwise. Move comment.
4969 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4970 * linux-low.h (linux_get_auxv): Declare.
4971 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4973 2019-04-05 Tom Tromey <tromey@adacore.com>
4975 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4978 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4980 * linux-low.c (AT_HWCAP2): Add define if not already included.
4982 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4984 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4985 (aarch64_arch_setup): Call linux_get_hwcap.
4986 * linux-arm-low.c (arm_get_hwcap): Remove function.
4987 (arm_read_description): Call linux_get_hwcap.
4988 * linux-low.c (linux_get_auxv): New function.
4989 (linux_get_hwcap): Likewise.
4990 (linux_get_hwcap2): Likewise.
4991 * linux-low.h (linux_get_hwcap): New declaration.
4992 (linux_get_hwcap2): Likewise.
4993 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4994 (ppc_arch_setup): Call linux_get_hwcap.
4995 * linux-s390-low.c (s390_get_hwcap): Remove function.
4996 (s390_arch_setup): Call linux_get_hwcap.
4998 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4999 Jiong Wang <jiong.wang@arm.com>
5001 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5002 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5004 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5006 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5007 Jiong Wang <jiong.wang@arm.com>
5009 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5010 (aarch64_get_hwcap): New function.
5011 (aarch64_arch_setup): Read APIA hwcap.
5013 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5014 Jiong Wang <jiong.wang@arm.com>
5016 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5017 (initialize_low_tracepoint): Likewise.
5018 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5019 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5020 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5021 (aarch64_linux_read_description): Likewise.
5022 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5024 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5026 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5027 i386_create_target_description for 'segments' parameter.
5028 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5029 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5030 * win32-i386-low.c (i386_arch_setup): Likewise.
5032 2019-03-12 Tom Tromey <tromey@adacore.com>
5034 * linux-low.c (iterate_over_lwps): Update.
5036 2019-03-06 Tom Tromey <tom@tromey.com>
5038 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5039 (captured_main): Use SCOPE_EXIT.
5041 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5043 * configure.srv: Use '$enable_unittest' instead of '$development'
5044 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5047 2019-02-27 Tom Tromey <tromey@adacore.com>
5049 * gdbreplay.c (logchar): Handle \r\n.
5051 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5053 * linux-low.c (linux_attach): Add process before lwp.
5054 * server.c (attach_inferior): Check if already attached.
5056 2019-02-07 Tom Tromey <tom@tromey.com>
5058 * x86-tdesc.h: Rename include guard.
5059 * x86-low.h: Add include guard.
5060 * wincecompat.h: Rename include guard.
5061 * win32-low.h: Add include guard.
5062 * utils.h: Rename include guard.
5063 * tracepoint.h: Rename include guard.
5064 * tdesc.h: Rename include guard.
5065 * target.h: Rename include guard.
5066 * server.h: Rename include guard.
5067 * remote-utils.h: Rename include guard.
5068 * regcache.h: Rename include guard.
5069 * nto-low.h: Rename include guard.
5070 * notif.h: Add include guard.
5071 * mem-break.h: Rename include guard.
5072 * lynx-low.h: Add include guard.
5073 * linux-x86-tdesc.h: Add include guard.
5074 * linux-s390-tdesc.h: Add include guard.
5075 * linux-ppc-tdesc-init.h: Add include guard.
5076 * linux-low.h: Add include guard.
5077 * linux-aarch64-tdesc.h: Add include guard.
5078 * linux-aarch32-low.h: Add include guard.
5079 * inferiors.h: Rename include guard.
5080 * i387-fp.h: Rename include guard.
5081 * hostio.h: Rename include guard.
5082 * gdbthread.h: Rename include guard.
5083 * gdb_proc_service.h: Rename include guard.
5084 * event-loop.h: Rename include guard.
5085 * dll.h: Rename include guard.
5086 * debug.h: Rename include guard.
5087 * ax.h: Rename include guard.
5089 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5092 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5093 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5095 2019-01-25 Tom Tromey <tom@tromey.com>
5097 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5099 2019-01-25 Tom Tromey <tom@tromey.com>
5101 * win32-low.c: Fix common/ includes.
5102 * win32-i386-low.c: Fix common/ includes.
5103 * tracepoint.c: Fix common/ includes.
5104 * thread-db.c: Fix common/ includes.
5105 * target.h: Fix common/ includes.
5106 * symbol.c: Fix common/ includes.
5107 * spu-low.c: Fix common/ includes.
5108 * server.h: Fix common/ includes.
5109 * server.c: Fix common/ includes.
5110 * remote-utils.c: Fix common/ includes.
5111 * regcache.h: Fix common/ includes.
5112 * regcache.c: Fix common/ includes.
5113 * nto-x86-low.c: Fix common/ includes.
5114 * notif.h: Fix common/ includes.
5115 * mem-break.h: Fix common/ includes.
5116 * lynx-low.c: Fix common/ includes.
5117 * lynx-i386-low.c: Fix common/ includes.
5118 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5119 * linux-x86-low.c: Fix common/ includes.
5120 * linux-low.c: Fix common/ includes.
5121 * inferiors.h: Fix common/ includes.
5122 * i387-fp.c: Fix common/ includes.
5123 * hostio.c: Fix common/ includes.
5124 * hostio-errno.c: Fix common/ includes.
5125 * gdbthread.h: Fix common/ includes.
5126 * gdbreplay.c: Fix common/ includes.
5127 * fork-child.c: Fix common/ includes.
5128 * event-loop.c: Fix common/ includes.
5130 (enum gdb_agent_op): Fix common/ includes.
5132 2019-01-21 Tom Tromey <tom@tromey.com>
5134 * tracepoint.c: Fix includes.
5135 * remote-utils.c: Fix includes.
5136 * linux-x86-low.c: Fix includes.
5138 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5140 * gdbreplay.c (gdbreplay_version): Update copyright year in
5142 * server.c (gdbserver_version): Likewise.
5144 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5146 * linux-low.c (add_lwp): Switch ordering.
5148 2018-11-29 Tom Tromey <tom@tromey.com>
5150 * win32-low.c (win32_join): Take pid, not process.
5151 * target.h (struct target_ops) <join>: Change argument type.
5152 (join_inferior): Change argument name.
5153 * spu-low.c (spu_join): Take pid, not process.
5154 * server.c (handle_detach): Preserve pid before destroying
5156 * lynx-low.c (lynx_join): Take pid, not process.
5157 * linux-low.c (linux_join): Take pid, not process.
5159 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5161 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5162 (aarch64_cannot_fetch_register): Likewise.
5163 (struct linux_target_ops): Update references.
5165 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5167 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5169 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5171 * configure.srv (ipa_ppc_linux_regobj): Add
5172 powerpc-isa207-htm-vsx32l-ipa.o and
5173 powerpc-isa207-htm-vsx64l-ipa.o.
5174 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5175 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5176 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5177 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5178 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5179 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5180 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5181 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5182 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5183 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5184 (init_registers_powerpc_isa207_htm_vsx32l)
5185 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5186 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5187 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5188 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5189 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5190 (ppc_store_tm_ctarregset): New functions.
5191 (ppc_regsets): Add entries for HTM regsets.
5192 (ppc_arch_setup): Set htm in features struct when needed. Set
5193 sizes for the HTM regsets.
5194 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5195 (initialize_low_arch): Call
5196 init_registers_powerpc_isa207_htm_vsx32l and
5197 init_registers_powerpc_isa207_htm_vsx64l.
5198 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5199 PPC_TDESC_ISA207_HTM_VSX.
5200 (initialize_low_tracepoint): Call
5201 init_registers_powerpc_isa207_htm_vsx32l and
5202 init_registers_powerpc_isa207_htm_vsx64l.
5204 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5206 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5207 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5208 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5209 (ppc_store_pmuregset): New functions.
5210 (ppc_regsets): Add entries for ebb and pmu regsets.
5211 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5212 pmu regsets are available. Set sizes for these regsets.
5214 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5216 * configure.srv (ipa_ppc_linux_regobj): Add
5217 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5218 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5219 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5220 rs6000/powerpc-isa207-vsx32l.xml, and
5221 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5222 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5223 <PPC_TDESC_ISA207_VSX>: New enum value.
5224 (init_registers_powerpc_isa207_vsx32l): Declare.
5225 (init_registers_powerpc_isa207_vsx64l): Declare.
5226 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5227 (ppc_store_tarregset): New function.
5228 (ppc_regsets): Add entry for the TAR regset.
5229 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5230 size for the TAR regsets.
5231 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5232 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5233 and init_registers_powerpc_isa207_vsx64l.
5234 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5235 (initialize_low_tracepoint): Call
5236 init_registers_powerpc_isa207_vsx32l and
5237 init_registers_powerpc_isa207_vsx64l.
5239 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5240 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5242 * configure.srv (ipa_ppc_linux_regobj): Add
5243 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5244 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5245 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5246 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5247 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5248 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5249 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5250 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5251 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5252 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5253 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5254 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5255 (ppc_hwcap): Add comment.
5256 (ppc_hwcap2): New global.
5257 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5258 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5259 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5260 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5261 when needed. Set sizes for the the DSCR and PPR regsets.
5262 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5263 (initialize_low_arch): Call
5264 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5265 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5266 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5267 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5268 (initialize_low_tracepoint): Call
5269 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5270 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5272 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5274 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5276 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5277 Simon Marchi <simark@simark.ca>
5279 * acinclude.m4: Include "../selftest.m4".
5280 * configure: Regenerate.
5281 * configure.ac: Use "GDB_AC_SELFTEST".
5282 * configure.srv: Use "$enable_unittests" instead of
5283 "$development" when checking whether unit tests have been
5285 * server.c (captured_main): Update message informing that
5286 selftests have been disabled.
5288 2018-10-04 Tom Tromey <tom@tromey.com>
5290 * configure: Rebuild.
5292 2018-10-04 Tom Tromey <tom@tromey.com>
5294 * server.c (handle_status): Rename inner "thread".
5295 (process_serial_event): Declare "res" in 'm' case.
5296 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5297 (iterate_over_lwps): Rename inner "thread".
5298 (linux_qxfer_libraries_svr4): Rename inner "len".
5299 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5301 2018-10-01 Gary Benson <gbenson@redhat.com>
5303 * gdb_proc_service.h: Moved common code to
5304 common/gdb_proc_service.h.
5306 2018-10-01 Gary Benson <gbenson@redhat.com>
5308 * gdb_proc_service.h: Synchronize comments and whitespace with
5309 GDB's version of this file.
5311 2018-09-25 Tom Tromey <tom@tromey.com>
5313 * configure: Rebuild.
5314 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5316 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5318 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5319 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5320 ($(IPA_LIB)): Sort IPA_OBJS.
5322 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5324 * Makefile.in: Remove references to $(ADD_DEPS).
5326 2018-09-16 Tom Tromey <tom@tromey.com>
5328 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5330 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5333 2018-09-05 Tom Tromey <tom@tromey.com>
5335 * configure: Rebuild.
5337 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5340 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5342 2018-08-27 Tom Tromey <tom@tromey.com>
5345 * configure: Rebuild.
5347 2018-08-27 Tom Tromey <tom@tromey.com>
5349 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5350 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5351 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5352 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5353 (s390x_emit_stack_adjust): Add casts to unsigned char.
5355 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5359 * server.h (struct client_state) <disable_randomization>:
5362 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5364 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5366 (mips_supply_ptrace_register): Likewise.
5368 2018-07-22 Tom Tromey <tom@tromey.com>
5370 * configure: Rebuild.
5372 2018-07-22 Tom Tromey <tom@tromey.com>
5374 * win32-low.c (win32_create_inferior): Remove unused variables.
5375 * gdbreplay.c (remote_open): Remove unused variable.
5376 * remote-utils.c (remote_prepare): Remove unused variable.
5377 * x86-tdesc.h (X86_TDESC_H): Define.
5378 (amd64_expedite_regs): Define conditionally.
5379 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5380 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5381 * remote-utils.c (readchar): Remove unused variable.
5383 2018-07-13 Pedro Alves <palves@redhat.com>
5385 * linux-low.c (linux_kill): Change parameter to process_info
5386 pointer instead of pid. Adjust.
5387 * lynx-low.c (lynx_kill): Likewise.
5388 * nto-low.c (nto_kill): Likewise.
5389 * spu-low.c (spu_kill): Likewise.
5390 * win32-low.c (win32_kill): Likewise.
5391 * server.c (handle_v_kill, kill_inferior_callback)
5392 (detach_or_kill_for_exit): Adjust.
5393 * target.c (kill_inferior): Change parameter to process_info
5394 pointer instead of pid. Adjust.
5395 * target.h (struct target_ops) <kill>: Change parameter to
5396 process_info pointer instead of pid. Adjust all implementations
5398 (kill_inferior): Likewise.
5400 2018-07-13 Pedro Alves <palves@redhat.com>
5402 * linux-low.c (linux_detach, linux_join): Change parameter to
5403 process_info pointer instead of pid. Adjust.
5404 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5405 * nto-low.c (nto_detach): Likewise.
5406 * spu-low.c (spu_detach, spu_join): Likewise.
5407 * win32-low.c (win32_detach, win32_join): Likewise.
5408 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5409 * target.h (struct target_ops) <detach, join>: Change parameter to
5410 process_info pointer instead of pid. Adjust all implementations
5412 (detach_inferior, join_inferior): Rename 'pid' parameter to
5415 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5416 Jan Kratochvil <jan.kratochvil@redhat.com>
5417 Paul Fertser <fercerpav@gmail.com>
5418 Tsutomu Seki <sekiriki@gmail.com>
5420 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5421 (OBS): Add 'common/netstuff.o'.
5422 (GDBREPLAY_OBS): Likewise.
5423 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5424 (remote_open): Implement support for IPv6
5426 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5428 (handle_accept_event): Accept connections from IPv6 sources.
5429 (remote_prepare): Handle IPv6-style hostnames; implement
5430 support for IPv6 connections.
5431 (remote_open): Implement support for printing connections from
5434 2018-07-11 Pedro Alves <palves@redhat.com>
5437 * mem-break.c (any_persistent_commands): Add process_info
5438 parameter and use it instead of relying on the current process.
5439 Change return type to bool.
5440 * mem-break.h (any_persistent_commands): Add process_info
5441 parameter and change return type to bool.
5442 * server.c (handle_detach): Remove require_running_or_return call.
5443 Look up the process_info for the process we're about to detach.
5444 If not found, return back error to GDB. Adjust
5445 any_persistent_commands call to pass down a process pointer.
5447 2018-07-11 Pedro Alves <palves@redhat.com>
5449 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5450 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5451 instead of collect_register_by_name.
5452 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5453 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5455 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5456 Pedro Alves <palves@redhat.com>
5458 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5460 2018-07-03 Tom Tromey <tom@tromey.com>
5462 * linux-low.c: Update.
5463 * lynx-low.c: Update.
5464 * mem-break.c: Update.
5465 * nto-low.c: Update.
5466 * remote-utils.c: Update.
5468 * spu-low.c: Update.
5470 * win32-low.c: Update.
5472 2018-07-03 Tom Tromey <tom@tromey.com>
5476 2018-07-03 Tom Tromey <tom@tromey.com>
5478 * linux-low.c: Update.
5480 2018-07-03 Tom Tromey <tom@tromey.com>
5484 2018-07-03 Tom Tromey <tom@tromey.com>
5486 * linux-low.c: Update.
5487 * linux-mips-low.c: Update.
5488 * lynx-low.c: Update.
5489 * nto-low.c: Update.
5490 * remote-utils.c: Update.
5492 * spu-low.c: Update.
5494 * thread-db.c: Update.
5496 2018-07-03 Tom Tromey <tom@tromey.com>
5498 * linux-low.c: Update.
5499 * linux-mips-low.c: Update.
5500 * lynx-low.c: Update.
5501 * mem-break.c: Update.
5502 * nto-low.c: Update.
5503 * remote-utils.c: Update.
5505 * spu-low.c: Update.
5507 * tracepoint.c: Update.
5509 2018-07-03 Tom Tromey <tom@tromey.com>
5511 * linux-low.c: Update.
5512 * linux-ppc-low.c: Update.
5513 * linux-x86-low.c: Update.
5514 * proc-service.c: Update.
5516 * spu-low.c: Update.
5517 * thread-db.c: Update.
5518 * win32-low.c: Update.
5520 2018-07-03 Tom Tromey <tom@tromey.com>
5522 * linux-low.c: Update.
5523 * lynx-low.c: Update.
5524 * nto-low.c: Update.
5525 * remote-utils.c: Update.
5526 * spu-low.c: Update.
5527 * thread-db.c: Update.
5528 * win32-low.c: Update.
5530 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5532 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5533 parameter in call to 'amd64_create_target_description'.
5535 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5537 * x86-tdesc.h: Remove executable permission flag.
5539 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5541 * configure.ac: Remove AC_PREREQ, add missing quoting.
5542 * configure: Re-generate.
5543 * config.in: Re-generate.
5544 * aclocal.m4: Re-generate.
5546 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5548 * tracepoint.h (current_traceframe): Remove declaration.
5550 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5552 * linux-aarch64-low.c (is_sve_tdesc): New function.
5553 (aarch64_sve_regs_copy_to_regcache): Likewise.
5554 (aarch64_sve_regs_copy_from_regcache): Likewise.
5555 (aarch64_regs_info): Add SVE checks.
5556 (initialize_low_arch): Initialize SVE.
5558 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5560 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5562 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5564 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5565 (initialize_low_tracepoint): Likewise
5566 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5567 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5569 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5571 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5573 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5575 * server.h (PBUFSIZ): Increase size
5577 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5579 * regcache.c (regcache::raw_compare): New function.
5580 * regcache.h (regcache::raw_compare): New declaration.
5582 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5584 * regcache.c (new_register_cache): Use new.
5585 (free_register_cache): Use delete.
5586 (register_data): Use const.
5587 (supply_register): Move body inside regcache.
5588 (regcache::raw_supply): New override function.
5589 (collect_register): Move body inside regcache.
5590 (regcache::raw_collect): New override function.
5591 (regcache::get_register_status): New override function.
5592 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5594 2018-06-09 Tom Tromey <tom@tromey.com>
5596 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5598 (event_queue): Use std::queue.
5599 (gdb_event_xfree): Remove.
5600 (initialize_event_loop, process_event, wait_for_event): Update.
5602 2018-06-08 Stan Cox <scox@redhat.com>
5604 * win32-low.c (win32_create_inferior): last_ptid and last_status
5605 moved to client_state.
5607 2018-06-08 Pedro Alves <palves@redhat.com>
5609 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5610 common/common-exceptions.o, common/common-utils.o,
5611 common/errors.o, common/print-utils.o and utils.o.
5612 * gdbreplay.c: Include "common-defs.h" instead of the two
5613 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5614 string.h or alloca.h.
5615 (perror_with_name): Delete.
5616 (remote_open): Use xstrdup instead of strdup.
5617 (main): Rename to ...
5618 (captured_main): ... this.
5621 2018-06-08 Tom Tromey <tom@tromey.com>
5623 * linux-low.c (linux_low_read_btrace): Update.
5625 2018-06-04 Stan Cox <scox@redhat.com>
5627 * server.h (struct client_state): New.
5628 * server.c (cont_thread, general_thread, multi_process)
5629 (report_fork_events, report_vfork_events, report_exec_events)
5630 (report_thread_events, swbreak_feature, hwbreak_feature)
5631 (vCont_supported, disable_randomization, pass_signals)
5632 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5633 Moved to client_state.
5634 * remote-utils.c (remote_debug, noack_mode)
5635 (transport_is_reliable): Moved to client_state.
5636 * tracepoint.c (current_traceframe): Moved to client_state.
5639 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5640 linux-low.c, remote-utils.h, target.c: Use client_state.
5642 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5644 * configure.srv: Add new c/h file.
5646 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5648 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5651 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5653 * gdb.arch/mips-fpregset-core.exp: New test.
5654 * gdb.arch/mips-fpregset-core.c: New test source.
5656 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5659 * hostio.c (require_int): Do not report overflow for integers
5660 between 0xfffffff and 0x7fffffff.
5662 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5664 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5665 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5666 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5668 (the_low_target): Wire them.
5670 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5672 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5673 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5674 mode. Call collect_register_by_name with vscr using
5675 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5676 (ppc_store_vrregset): Add and set vscr_offset variable as in
5677 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5680 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5682 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5683 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5684 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5686 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5688 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5689 (ppc_store_vsxregset): Likewise.
5690 (ppc_fill_vrregset): Likewise.
5691 (ppc_store_vrregset): Likewise.
5692 (ppc_fill_evrregset): Likewise.
5693 (ppc_store_evrregset): Likewise.
5694 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5695 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5698 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5700 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5701 wordsize of the inferior. Call ppc_linux_target_wordsize.
5703 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5705 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5706 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5707 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5708 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5709 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5710 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5711 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5712 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5713 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5714 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5715 (tdesc_powerpc_e500l): Remove.
5716 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5717 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5718 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5719 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5721 (ppc_arch_setup): Remove target description matching code. Fill a
5722 ppc_linux_features struct and call ppc_linux_match_description
5725 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5727 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5728 width of the requested register exceeds the width of the
5730 (mips_cannot_store_register): Likewise.
5732 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5734 * linux-mips-low.c (mips_fetch_register): New function. Update
5736 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5737 (the_low_target): Wire `mips_fetch_register'.
5739 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5741 * lynx-i386-low.c (LYNXOS_178): New macro.
5742 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5743 the layout on LynxOS-178.
5744 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5745 handle floating point registers that are not supported by
5748 2018-05-10 Tom Tromey <tom@tromey.com>
5750 * configure: Rebuild.
5752 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5755 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5756 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5757 Use it to set the expedite_regs field in the given tdesc.
5758 * x86-tdesc.h: New file.
5759 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5760 Adjust following the addition of the new expedite_regs parameter
5761 to init_target_desc.
5762 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5763 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5764 (i386_linux_read_description, amd64_linux_read_description):
5765 Adjust following the addition of the new expedite_regs parameter
5766 to init_target_desc.
5767 * lynx-i386-low.c: #include "x86-tdesc.h".
5768 (lynx_i386_arch_setup): Adjust following the addition of the new
5769 expedite_regs parameter to init_target_desc.
5770 * nto-x86-low.c: #include "x86-tdesc.h".
5771 (nto_x86_arch_setup): Adjust following the addition of the new
5772 expedite_regs parameter to init_target_desc.
5773 * win32-i386-low.c: #include "x86-tdesc.h".
5774 (i386_arch_setup): Adjust following the addition of the new
5775 expedite_regs parameter to init_target_desc.
5777 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5780 * win32-low.c (win32_create_inferior): Add call to my_wait
5781 setting last_status global.
5783 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5786 * win32-low.c (create_process): Only call gdb_tilde_expand if
5787 inferior_cwd is not NULL.
5789 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5791 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5792 registers to the cache if their values have changed.
5793 (i387_xsave_to_cache): Provide default values for x87 control
5794 registers when these features are available, but disabled.
5795 * regcache.c (supply_register_by_name_zeroed): New function.
5796 * regcache.h (supply_register_by_name_zeroed): Declare new
5799 2018-05-07 Tom Tromey <tom@tromey.com>
5801 * configure: Rebuild.
5803 2018-05-04 Tom Tromey <tom@tromey.com>
5805 * configure: Rebuild.
5807 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5808 Pedro Alves <palves@redhat.com>
5810 * linux-aarch64-low.c (aarch64_stopped_data_address):
5813 2018-04-27 Tom Tromey <tom@tromey.com>
5815 * configure: Rebuild.
5817 2018-04-23 Tom Tromey <tom@tromey.com>
5819 * configure: Rebuild.
5821 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5823 * Makefile.in (depcomp): Add "..".
5824 (all_deps_files): New and use it.
5826 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5828 * configure.srv (aarch64*-*-linux*): Don't include xml.
5829 (i[34567]86-*-cygwin*): Likewise.
5830 (i[34567]86-*-linux*): Likewise.
5831 (i[34567]86-*-lynxos*): Likewise.
5832 (i[34567]86-*-mingw32ce*): Likewise.
5833 (i[34567]86-*-mingw*): Likewise.
5834 (i[34567]86-*-nto*): Likewise.
5835 (tic6x-*-uclinux): Likewise.
5836 (x86_64-*-linux*): Likewise.
5837 (x86_64-*-mingw*): Likewise.
5838 (x86_64-*-cygwin*): Likewise.
5840 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5842 * tdesc.c: Remove xml parameter.
5844 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5846 * server.c (get_features_xml): Remove cast.
5847 * tdesc.c (void target_desc::accept): Fill in function.
5848 (tdesc_get_features_xml): Remove old xml creation.
5849 (print_xml_feature::visit_pre): Add xml vistor.
5850 * tdesc.h (struct target_desc): Make xmltarget mutable.
5851 (tdesc_get_features_xml): Remove declaration.
5853 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5855 * tdesc.c (tdesc_architecture_name): Add new function.
5856 (tdesc_osabi_name): Likewise.
5857 (tdesc_get_features_xml): Use new functions.
5859 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5861 * tdesc.c (tdesc_create_flags): Remove.
5862 (tdesc_add_flag): Likewise.
5863 (tdesc_named_type): Likewise.
5864 (tdesc_create_union): Likewise.
5865 (tdesc_create_struct): Likewise.
5866 (tdesc_create_vector): Likewise.
5867 (tdesc_add_bitfield): Likewise.
5868 (tdesc_add_field): Likewise.
5869 (tdesc_set_struct_size): Likewise.
5871 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5873 * tdesc.c (~target_desc): Remove implictly deleted items.
5874 (init_target_desc): Iterate all features.
5875 (tdesc_get_features_xml): Use vector.
5876 (tdesc_create_feature): Create feature.
5877 * tdesc.h (tdesc_feature) Remove
5878 (target_desc): Add features.
5880 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5882 * Makefile.in: Add common/tdesc.c
5883 * tdesc.c (init_target_desc): init all reg_defs from register
5885 (tdesc_create_reg): Create tdesc_reg.
5886 * tdesc.h (tdesc_feature): Add register vector.
5888 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5890 * tdesc.h (struct target_desc) <features>: Change type to
5891 std::vector<std::string>.
5892 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5894 (tdesc_get_features_xml): Likewise.
5895 (tdesc_create_feature): Likewise.
5897 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5899 * regcache.c (find_register_by_number): Return a ref.
5900 (find_regno): Use references.
5901 (register_size): Likewise.
5902 (register_data): Likewise.
5903 * tdesc.c (target_desc::~target_desc): Remove free calls.
5904 (target_desc::operator==): Use std::vector compare.
5905 (init_target_desc): Use reference.
5906 (tdesc_create_reg): Use reg constructors.
5907 * tdesc.h (struct target_desc): Replace pointer with object.
5909 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5911 * regcache.c (find_register_by_number): Make static.
5912 (find_regno): Use find_register_by_number
5913 * regcache.h (struct reg): Remove declaration.
5915 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5917 * tdesc.c (target_desc::~target_desc): Move to here.
5918 (target_desc::operator==): Likewise.
5919 * tdesc.h (target_desc::~target_desc): Move from here.
5920 (target_desc::operator==): Likewise.
5922 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5924 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5926 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5928 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5930 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5931 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5932 and init_registers_s390_gs_linux64.
5934 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5936 * linux-s390-low.c (s390_fill_gs): Remove function.
5937 (s390_fill_gsbc): Remove function.
5938 (s390_regsets): Set fill functions for the guarded storage regsets
5941 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5943 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5944 the word size. Add comment.
5945 (s390_get_wordsize): New function.
5946 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5947 pswm with it. Instead, use s390_get_wordsize to determine the
5948 word size first and derive the correct tdesc from that directly.
5950 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5952 * Makefile.in: Include silent-rules.mk.
5953 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5954 (COMPILE): Add ECHO_CXX.
5955 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5956 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5957 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5958 (version-generated.c): Add ECHO_GEN.
5959 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5960 (IPAGENT_COMPILE): Add ECHO_CXX.
5961 (%-generated.c): Add ECHO_REGDAT.
5963 2018-03-14 Tom Tromey <tom@tromey.com>
5966 * ax.c (ax_printf): Special case for NULL.
5968 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5970 * linux-low.c (linux_qxfer_libraries_svr4): Use
5971 xml_escape_text_append.
5973 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5975 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5977 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5979 * server.c (handle_general_set): Remove unnecessary xstrdup.
5981 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5983 * server.c (parse_debug_format_options): Adjust to
5984 delim_string_to_char_ptr_vec changes.
5985 * thread-db.c (thread_db_load_search): Adjust to
5986 dirnames_to_char_ptr_vec changes.
5988 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5990 * target.h (target_enable_btrace, target_disable_btrace)
5991 (target_read_btrace, target_read_btrace_conf): Turn macro into
5992 inline function. Throw error if target method is not defined.
5993 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5994 check for btrace target method. Be prepared to handle exceptions
5995 from btrace target methods.
5997 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5999 * server.c (captured_main): Change order of error message printed
6000 when the current working directory cannot be found.
6002 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6004 * server.c: Include "filenames.h" and "pathstuff.h".
6005 (program_name): Delete variable.
6006 (program_path): New anonymous class.
6007 (get_exec_wrapper): Use "program_path" instead of
6009 (handle_v_run): Likewise.
6010 (captured_main): Likewise.
6011 (process_serial_event): Likewise.
6013 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6015 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6016 (OBJS): Add "pathstuff.o".
6017 * server.c (current_directory): New global variable.
6018 (captured_main): Initialize "current_directory".
6020 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6022 * tdesc.c: Use common/tdesc.h.
6023 * tdesc.h: Likewise.
6025 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6026 Simon Marchi <simon.marchi@ericsson.com>
6028 * Makefile.in: Switch order of make rules.
6030 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6032 * Makefile.in: Add common directory in build.
6033 * configure.ac: Add common reference.
6034 * configure: Regenerate.
6036 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6038 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6039 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6040 * spu-low.c (spu_target_ops): Likewise.
6041 * win32-low.c (win32_target_ops): Likewise.
6042 * server.c (supported_btrace_packets): Report packets unconditionally.
6043 * target.h (target_ops) <supports_btrace>: Remove.
6044 (target_supports_btrace): Remove.
6046 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6048 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6049 (handle_btrace_disable): Change return type to void. Use exceptions
6051 (handle_btrace_general_set): Catch exception and copy message to
6054 2018-02-08 Tom Tromey <tom@tromey.com>
6056 * linux-low.c (install_software_single_step_breakpoints): Use
6057 make_scoped_restore.
6058 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6059 (do_restore_current_thread_cleanup): Remove.
6060 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6063 2018-02-08 Tom Tromey <tom@tromey.com>
6065 * mem-break.c (set_raw_breakpoint_at): Use
6066 gdb::unique_xmalloc_ptr.
6068 2018-01-30 Pedro Alves <palves@redhat.com>
6071 * target.c (target_terminal::terminal_state): Rename to ...
6072 (target_terminal::m_terminal_state): ... this.
6074 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6076 * linux-low.c (handle_extended_wait): Surround call to
6077 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6079 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6081 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6082 linux_ptrace_attach_fail_reason_string now returning an
6084 (linux_attach): Likewise.
6085 * thread-db.c (attach_thread): Likewise.
6087 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6090 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6091 checking for fs_base/gs_base fields in struct user_regs_struct.
6092 * configure: Regenerate.
6094 2018-01-16 Yao Qi <yao.qi@linaro.org>
6097 * linux-low.c (fetch_register): Call supply_register instead of
6100 2018-01-08 Yao Qi <yao.qi@linaro.org>
6101 Simon Marchi <simon.marchi@ericsson.com>
6103 * Makefile.in (OBS): Remove selftest.o.
6104 * configure.ac: Set srv_selftest_objs if $development is true.
6105 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6106 * configure: Re-generated.
6107 * server.c (captured_main): Wrap variable selftest_filter with
6110 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6112 * server.c (parse_debug_format_options): Return std::string.
6113 (handle_monitor_command, captured_main): Adjust.
6115 2018-01-05 Pedro Alves <palves@redhat.com>
6118 * server.c (captured_main): Pass quiet=false to
6119 save_original_signals_state.
6121 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6123 * gdbreplay.c (gdbreplay_version): Update copyright year in
6125 * server.c (gdbserver_version): Likewise.
6127 2017-12-08 Tom Tromey <tom@tromey.com>
6129 * ax.c (ax_printf): Update.
6131 2017-12-07 Yao Qi <yao.qi@linaro.org>
6133 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6134 aarch64_linux_read_description.
6135 * linux-amd64-ipa.c (idx2mask): New array.
6136 (get_ipa_tdesc): Move idx2mask out.
6137 (initialize_low_tracepoint): Initialize target descriptions.
6138 * linux-i386-ipa.c (idx2mask): New array.
6139 (get_ipa_tdesc): Move idx2mask out.
6140 (initialize_low_tracepoint): Initialize target descriptions.
6142 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6144 * tdesc.c (struct tdesc_type): Change return type.
6145 (tdesc_add_flag): Change parameter type.
6146 (tdesc_add_bitfield): Likewise.
6147 (tdesc_add_field): Likewise.
6148 (tdesc_set_struct_size): Likewise.
6150 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6152 * regcache.c (registers_to_string): Remove unused variable.
6154 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6156 * inferiors.c (for_each_inferior_with_data): Remove.
6157 * inferiors.h (for_each_inferior_with_data): Remove.
6158 * server.c (handle_qxfer_threads_worker): Change parameter type.
6159 (handle_qxfer_threads_proper): Use for_each_thread.
6161 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6163 * inferiors.c (for_each_inferior): Remove.
6164 (clear_inferiors): Use for_each_thread.
6165 * inferiors.h (for_each_inferior): Remove.
6166 * linux-low.c (linux_wait_for_event_filtered): Use
6168 (linux_stabilize_threads): Likewise.
6169 * regcache.c (regcache_release): Likewise.
6170 * server.c (gdb_wants_all_threads_stopped): Likewise.
6171 (clear_pending_status_callback): Remove.
6172 (handle_status): Use for_each_thread.
6173 (captured_main): Likewise.
6174 * win32-low.c (child_init_thread_list): Likewise.
6175 (win32_clear_inferiors): Likewise.
6176 (fake_breakpoint_event): Likewise.
6178 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6180 * inferiors.h (find_inferior): Remove.
6181 * inferiors.c (find_inferior): Remove.
6183 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6185 * linux-low.c (resume_status_pending_p): Update comment.
6186 (need_step_over_p): Update comment.
6188 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6190 * linux-low.c (proceed_one_lwp): Return void, change parameter
6192 (unsuspend_and_proceed_one_lwp): Likewise.
6193 (proceed_all_lwps): Use for_each_thread.
6194 (unstop_all_lwps): Likewise.
6196 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6198 * linux-low.c (linux_resume_one_thread): Return void, take
6200 (linux_resume): Use for_each_thread.
6202 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6204 * linux-low.c (send_sigstop_callback): Return void, change
6205 parameter type. Rename to...
6206 (send_sigstop): ... this.
6207 (suspend_and_send_sigstop_callback): Return void, change parameter
6209 (suspend_and_send_sigstop): ... this.
6210 (stop_all_lwps): Use for_each_thread.
6212 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6214 * linux-low.c (lwp_running): Return bool, remove unused
6216 (linux_stabilize_threads): Use find_thread.
6218 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6220 * linux-low.c (select_singlestep_lwp_callback): Remove.
6221 (count_events_callback): Remove.
6222 (select_event_lwp_callback): Remove.
6223 (select_event_lwp): Use find_thread/for_each_thread.
6225 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6227 * linux-low.c (not_stopped_callback): Return bool, take filter
6229 (linux_wait_for_event_filtered): Use find_thread.
6230 (linux_wait_1): Likewise.
6232 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6234 * linux-low.c (same_lwp): Remove.
6235 (find_lwp_pid): Use find_thread.
6237 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6239 * linux-low.c (delete_lwp_callback): Remove.
6240 (linux_mourn): Use for_each_thread.
6242 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6244 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6245 args parameter, don't check for pid.
6246 (linux_detach): Use for_each_thread.
6248 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6250 * linux-low.c (struct counter): Remove.
6251 (second_thread_of_pid_p): Remove.
6252 (last_thread_of_process_p): Use find_thread.
6254 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6256 * inferiors.c (find_inferior_in_random): Remove.
6257 * inferiors.h (find_inferior_in_random): Remove.
6258 * linux-low.c (status_pending_p_callback): Return bool, accept
6259 parameter ptid directly.
6260 (linux_wait_for_event_filtered): Use find_thread_in_random.
6261 (linux_wait_1): Likewise.
6263 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6265 * inferiors.c (find_inferior_id): Remove.
6266 (find_thread_ptid): Move implemention from find_inferior_id to
6268 * inferiors.h (find_inferior_id): Remove.
6269 * server.c (handle_status): Use find_thread_ptid.
6270 (process_serial_event): Likewise.
6271 * thread-db.c (find_one_thread): Likewise.
6272 (thread_db_thread_handle): Likewise.
6273 * win32-low.c (thread_rec): Likewise.
6274 (child_delete_thread): Likewise.
6275 (win32_thread_alive): Likewise.
6276 (get_child_debug_event): Likewise.
6278 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6280 * linux-mips-low.c (update_watch_registers_callback): Return
6281 void, remove pid_p parameter, don't check for pid.
6282 (mips_insert_point, mips_remove_point): Use for_each_thread.
6284 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6286 * lynx.low (lynx_delete_thread_callback): Remove.
6287 (lynx_mourn): Use for_each_thread.
6289 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6291 * regcache.c (regcache_invalidate_one): Remove.
6292 (regcache_invalidate_pid): use for_each_thread.
6294 2017-11-26 Tom Tromey <tom@tromey.com>
6296 * linux-low.c (linux_create_inferior): Update.
6298 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6300 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6302 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6304 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6305 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6306 * linux-aarch64-tdesc-selftest.c: New file.
6307 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6309 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6311 * configure.srv: Add new file.
6312 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6313 * linux-aarch64-tdesc-selftest.c: New file.
6314 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6316 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6318 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6319 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6320 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6322 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6324 * configure.srv: Add new files.
6325 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6326 aarch64_linux_read_description.
6327 * linux-aarch64-low.c (aarch64_linux_read_description):
6328 Merge with aarch64_arch_setup.
6329 (aarch64_arch_setup): Call aarch64_linux_read_description.
6330 * linux-aarch64-tdesc.c: New file.
6331 * linux-aarch64-tdesc.h: New file.
6333 2017-11-24 Yao Qi <yao.qi@linaro.org>
6335 * configure.srv: Set $srv_regobj for tic6x-linux.
6336 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6337 (tic6x_read_description): Move some code to tic6x_arch_setup.
6338 (tic6x_tdesc_test): New function.
6339 (initialize_low_arch): Call selftests::register_test.
6341 2017-11-22 Yao Qi <yao.qi@linaro.org>
6343 * remote-utils.c (prepare_resume_reply): Use memcpy.
6345 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6347 * linux-low.c (kill_one_lwp_callback): Return void, take
6348 argument directly, don't filter on pid.
6349 (linux_kill): Use for_each_thread.
6351 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6353 * linux-low.c (need_step_over_p): Return bool, remove dummy
6355 (linux_resume, proceed_all_lwps): Use find_thread.
6357 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6359 * linux-low.c (resume_status_pending_p): Return bool, remove
6361 (linux_resume): Use find_thread.
6363 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6365 * linux-low.c (struct thread_resume_array): Remove.
6366 (linux_set_resume_request): Return void, take arguments
6368 (linux_resume): Use for_each_thread.
6370 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6372 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6373 return bool, remove data argument.
6374 (linux_stabilize_threads): Use find_thread.
6376 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6378 * linux-low.c (unsuspend_one_lwp): Remove.
6379 (unsuspend_all_lwps): Use for_each_thread, inline code from
6382 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6384 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6385 * linux-low.c (struct iterate_over_lwps_args): Remove.
6386 (iterate_over_lwps_filter): Remove.
6387 (iterate_over_lwps): Use find_thread.
6389 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6391 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6392 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6393 code from reset_lwp_ptrace_options_callback.
6395 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6397 * linux-arm-low.c (struct update_registers_data): Remove.
6398 (update_registers_callback): Return void, take arguments
6399 directly, don't check thread's pid.
6400 (arm_insert_point, arm_remove_point): Use for_each_thread.
6402 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6404 * win32-low.c (continue_one_thread): Return void, take argument
6406 (child_continue): Use for_each_thread.
6408 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6410 * win32-i386-low.c (update_debug_registers_callback): Rename
6412 (update_debug_registers): ... this, return void, remove pid_p arg.
6413 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6415 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6417 * inferiors.h (struct process_info): Add constructor, initialize
6419 <syscalls_to_catch>: Change type to std::vector<int>.
6420 * inferiors.c (add_process): Allocate process_info with new.
6421 (remove_process): Free process_info with delete.
6422 * linux-low.c (handle_extended_wait): Adjust.
6423 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6424 * server.c (handle_general_set): Adjust.
6426 2017-11-16 Pedro Alves <palves@redhat.com>
6428 * remote-utils.c (remote_close): Block SIGIO signals instead of
6429 uninstalling the SIGIO handler.
6431 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6433 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6435 2017-11-16 Yao Qi <yao.qi@linaro.org>
6437 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6438 (tic6x_store_gregset): Likewise.
6439 (tic6x_usrregs_info): Move it up.
6441 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6443 * Makefile.in: Update arch rules.
6444 * configure.srv: Explicitly mark arch/ files.
6446 2017-11-13 Andreas Schwab <schwab@suse.de>
6448 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6450 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6452 2017-11-06 Pedro Alves <palves@redhat.com>
6454 * config.in, configure: Regenerate.
6456 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6458 * target.c (struct thread_search): Remove.
6459 (thread_search_callback): Remove.
6460 (prepare_to_access_memory): Use for_each_thread instead of
6461 find_inferior. Inline code from thread_search_callback.
6463 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6465 * server.c (struct visit_actioned_threads_data): Remove.
6466 (visit_actioned_threads): Change prototype to take arguments
6468 (resume): Use find_thread instead of find_inferior.
6470 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6472 * server.c (queue_stop_reply_callback): Change prototype, return
6474 (find_status_pending_thread_callback): Remove.
6475 (handle_status): Replace find_inferior with find_thread and
6478 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6480 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6482 (aarch64_store_gregset): Likewise.
6483 (aarch64_fill_fpregset): Likewise.
6484 (aarch64_store_fpregset): Likewise.
6486 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6488 * gdbthread.h (find_thread, for_each_thread): New functions.
6489 * inferiors.c (thread_of_pid): Remove.
6490 (find_any_thread_of_pid): Use find_thread.
6491 * linux-low.c (num_lwps): Use for_each_thread.
6493 2017-10-17 Yao Qi <yao.qi@linaro.org>
6495 * Makefile.in: Remove one rule.
6496 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6498 2017-10-17 Yao Qi <yao.qi@linaro.org>
6500 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6501 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6503 2017-10-17 Yao Qi <yao.qi@linaro.org>
6505 * configure.srv: Rename arm.o with arch/arm.o.
6507 2017-10-17 Yao Qi <yao.qi@linaro.org>
6509 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6510 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6511 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6512 (arch-i386.o, arch-amd64.o): Remove rules.
6513 (arch/%.o): New rule.
6514 Update POSTCOMPILE and COMPILE.pre.
6515 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6516 * configure: Re-generated.
6517 * configure.srv: Replace arch-i386.o with arch/i386.o.
6518 Replace arch-amd64.o with arch/amd64.o.
6520 2017-10-16 Yao Qi <yao.qi@linaro.org>
6522 * configure: Regenerated.
6524 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6526 * inferiors.h: (struct inferior_list): Remove.
6527 (struct inferior_list_entry); Remove.
6528 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6529 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6530 get_first_inferior): Remove.
6531 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6532 find_inferior_id, find_inferior_in_random): Change signature.
6533 * inferiors.c (all_threads): Change type to
6534 std::list<thread_info *>.
6535 (get_thread): Remove macro.
6536 (find_inferior, find_inferior_id): Change signature, implement
6538 (find_inferior_in_random): Change signature, implement using
6539 find_thread_in_random.
6540 (for_each_inferior, for_each_inferior_with_data): Change
6541 signature, implement using for_each_thread.
6542 (add_inferior_to_list, remove_inferior): Remove.
6543 (add_thread, get_first_thread, thread_of_pid,
6544 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6545 (get_first_inferior, one_inferior_p, clear_inferior_list):
6547 (clear_inferiors, get_thread_process): Update.
6548 * gdbthread.h: Include <list>.
6549 (struct thread_info) <entry>: Remove field.
6551 (all_threads): Change type to std::list<thread_info *>.
6552 (get_first_inferior): Add doc.
6553 (find_thread, for_each_thread, find_thread_in_random): New
6555 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6556 * linux-arm-low.c (update_registers_callback): Update.
6557 * linux-low.c (second_thread_of_pid_p): Update.
6558 (kill_one_lwp_callback, linux_detach_lwp_callback,
6559 delete_lwp_callback, status_pending_p_callback, same_lwp,
6560 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6561 iterate_over_lwps, not_stopped_callback,
6562 resume_stopped_resumed_lwps, count_events_callback,
6563 select_singlestep_lwp_callback, select_event_lwp_callback,
6564 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6565 suspend_and_send_sigstop_callback, wait_for_sigstop,
6566 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6567 lwp_running, linux_set_resume_request, resume_status_pending_p,
6568 need_step_over_p, start_step_over, linux_resume_one_thread,
6569 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6570 reset_lwp_ptrace_options_callback): Update.
6571 * linux-mips-low.c (update_watch_registers_callback): Update.
6572 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6574 (free_register_cache_thread_one): Remove.
6575 (regcache_release): Update.
6576 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6577 handle_qxfer_threads_worker): Update.
6578 (handle_query): Update, use list iterator.
6579 (visit_actioned_threads, handle_pending_status,
6580 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6581 clear_pending_status_callback, set_pending_status_callback,
6582 find_status_pending_thread_callback, handle_status,
6583 process_serial_event): Update.
6584 * target.c (thread_search_callback): Update.
6585 * thread-db.c (thread_db_get_tls_address): Update.
6586 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6588 * win32-i386-low.c (update_debug_registers_callback): Update.
6589 * win32-low.c (delete_thread_info, child_delete_thread,
6590 continue_one_thread, suspend_one_thread,
6591 get_child_debug_event): Adjust.
6593 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6595 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6596 * inferiors.h: Include <list>.
6597 (struct process_info) <entry>: Remove field.
6599 (pid_of): Change macro to function.
6600 (ptid_of, lwpid_of): Remove macro.
6601 (all_processes): Change type to std::list<process_info *>.
6602 (ALL_PROCESSES): Remove macro.
6603 (for_each_process, find_process): New function.
6604 * inferiors.c (all_processes): Change type to
6605 std::list<process_info *>.
6606 (find_thread_process): Adjust.
6607 (add_process): Likewise.
6608 (remove_process): Likewise.
6609 (find_process_pid): Likewise.
6610 (get_first_process): Likewise.
6611 (started_inferior_callback): Remove.
6612 (have_started_inferiors_p): Adjust.
6613 (attached_inferior_callback): Remove.
6614 (have_attached_inferiors_p): Adjust.
6615 * linux-low.c (check_zombie_leaders): Likewise.
6616 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6617 (x86_linux_update_xmltarget): Adjust.
6618 * server.c (handle_query): Likewise.
6619 (gdb_reattached_process): Remove.
6620 (handle_status): Adjust.
6621 (kill_inferior_callback): Likewise.
6622 (detach_or_kill_inferior): Remove.
6623 (print_started_pid): Likewise.
6624 (print_attached_pid): Likewise.
6625 (detach_or_kill_for_exit): Update.
6626 (process_serial_event): Likewise.
6627 * linux-arm-low.c (arm_new_fork): Likewise.
6629 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6631 * dll.h: Include <list>.
6632 (struct dll_info): Add constructor.
6633 <entry>: Remove field.
6634 (all_dlls): Change type to std::list<dll_info>.
6635 * dll.c: Include <algorithm>.
6636 (get_dll): Remove macro.
6637 (all_dlls): Change type to std::list<dll_info *>.
6638 (free_one_dll): Remove.
6639 (match_dll): Likewise.
6640 (loaded_dll): Adjust.
6641 (unloaded_dll): Adjust to all_dlls type change, use
6642 std::find_if. Inline code from match_dll.
6643 (clear_dlls): Adjust to all_dlls type change.
6644 * server.c (emit_dll_description): Remove.
6645 (handle_qxfer_libraries): Adjust to all_dlls type change,
6646 integrate emit_dll_description's functionality.
6648 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6650 * linux-low.h (struct linux_target_ops) <delete_process>: New
6652 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6653 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6654 (struct linux_target_ops): Add delete_process callback.
6655 * linux-arm-low.c (arm_delete_process): New.
6656 (struct linux_target_ops): Add delete_process callback.
6657 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6658 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6659 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6660 * linux-mips-low.c (mips_linux_delete_process): New.
6661 (struct linux_target_ops): Add delete_process callback.
6662 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6663 * linux-s390-low.c (struct linux_target_ops): Likewise.
6664 * linux-sh-low.c (struct linux_target_ops): Likewise.
6665 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6666 * linux-tile-low.c (struct linux_target_ops): Likewise.
6667 * linux-x86-low.c (x86_linux_delete_process): New.
6668 (struct linux_target_ops): Add delete_process callback.
6669 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6671 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6673 * linux-aarch64-low.c (the_low_target): Add thread delete
6675 * linux-arm-low.c (arm_delete_thread): New function.
6676 (the_low_target): Add thread delete callback.
6677 * linux-bfin-low.c (the_low_target): Likewise.
6678 * linux-crisv32-low.c (the_low_target): Likewise.
6679 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6681 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6683 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6684 * linux-mips-low.c (mips_linux_delete_thread): New function.
6685 (the_low_target): Add thread delete callback.
6686 * linux-ppc-low.c (the_low_target): Likewise.
6687 * linux-s390-low.c (the_low_target): Likewise.
6688 * linux-sh-low.c (the_low_target): Likewise.
6689 * linux-tic6x-low.c (the_low_target): Likewise.
6690 * linux-tile-low.c (the_low_target): Likewise.
6691 * linux-x86-low.c (the_low_target): Likewise.
6692 * linux-xtensa-low.c (the_low_target): Likewise.
6694 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6696 * win32-low.c: Include "common-inferior.h".
6698 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6700 * inferiors.c (set_inferior_cwd): New function.
6701 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6702 (handle_query): Inform that QSetWorkingDir is supported.
6703 * win32-low.c (create_process): Pass the inferior's cwd to
6706 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6708 * inferiors.c (current_inferior_cwd): New global variable.
6709 (get_inferior_cwd): New function.
6710 * inferiors.h (struct process_info) <cwd>: New field.
6712 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6714 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6715 (OBS): Add gdb_tilde_expand.o.
6717 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6719 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6720 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6722 2017-09-29 Pedro Alves <palves@redhat.com>
6724 * ax.c (gdb_parse_agent_expr): Constify.
6725 * ax.h (gdb_parse_agent_expr): Constify.
6726 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6728 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6729 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6730 * remote-utils.h (read_ptid): Constify.
6731 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6732 (process_point_options, process_serial_event): Constify.
6733 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6734 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6735 (cmd_qtbuffer): Constify.
6737 2017-09-29 Pedro Alves <palves@redhat.com>
6739 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6742 2017-09-29 Pedro Alves <palves@redhat.com>
6744 * linux-low.c (handle_extended_wait): Pass parent thread instead
6745 of process to thread_db_notice_clone.
6746 * linux-low.h (thread_db_notice_clone): Replace parent process
6747 parameter with parent thread parameter.
6748 * thread-db.c (find_one_thread): Add comment.
6749 (thread_db_notice_clone): Replace parent process parameter with
6750 parent thread parameter. Temporarily switch to the parent thread.
6752 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6754 * gdbthread.h: Include "common-gdbthread.h".
6755 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6756 "if" when validating the ptid.
6757 * remote-utils.c: Include "gdbthread.h".
6758 (prepare_resume_reply): Use "switch_to_thread".
6759 * target.c (done_accessing_memory): Likewise.
6761 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6763 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6764 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6765 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6766 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6767 s390x-gs-linux64-ipa.o to ipa_obj.
6768 * linux-s390-low.c (HWCAP_S390_GS): New define.
6769 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6771 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6772 (s390_arch_setup): Check for guarded-storage support and choose
6774 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6775 init_registers_s390x_gs_linux64.
6776 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6778 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6779 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6781 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6783 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6785 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6787 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6788 (thread_db_thread_handle): Declare.
6789 * linux-low.c (linux_target_ops): Initialize thread_handle.
6790 * server.c (handle_qxfer_threads_worker): Add support for
6792 * target.h (struct target_ops): Add new function pointer,
6794 (target_thread_handle): Define.
6795 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6797 (thread_db_thread_handle): New function.
6799 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6801 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6802 * linux-low.h (thread_db_notice_clone): Declare.
6803 * thread-db.c (thread_db_notice_clone): New function.
6805 2017-09-21 Pedro Alves <palves@redhat.com>
6807 * server.c (gdb_read_memory, handle_status, process_serial_event)
6808 (handle_serial_event, handle_target_event): Adjust to
6809 set_desired_thread prototype change.
6810 * target.c (set_desired_thread): Remove 'use_general' parameter
6812 * target.h (set_desired_thread): Remove 'use_general' parameter.
6814 2017-09-20 Tom Tromey <tom@tromey.com>
6816 * target.c (target_terminal::terminal_state): Define.
6817 (target_terminal::init): Rename from target_terminal_init.
6818 (target_terminal::inferior): Rename from
6819 target_terminal_inferior.
6820 (target_terminal::ours): Rename from target_terminal_ours.
6821 (target_terminal::ours_for_output, target_terminal::info): New.
6823 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6825 * server.c (accumulate_file_name_length): Remove.
6826 (emit_dll_description): Adjust to std::string change.
6827 (handle_qxfer_libraries): Use std::string to hold document.
6829 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6831 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6832 return type of xml_escape_text.
6833 * server.c (emit_dll_description): Likewise.
6835 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6837 * server.c (captured_main): Accept argument for --selftest.
6838 Update run_tests call.
6839 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6840 when registering selftests.
6842 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6844 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6845 instead of "VEC" for "target_desc.reg_defs".
6846 (regcache_cpy): Likewise.
6847 (registers_to_string): Likewise.
6848 (registers_from_string): Likewise.
6849 (find_regno): Likewise.
6850 (supply_regblock): Likewise.
6851 (regcache_raw_read_unsigned): Likewise.
6852 * tdesc.c (init_target_desc): Likewise.
6853 (tdesc_create_reg): Likewise.
6854 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6855 (struct target_desc) <reg_defs>: Convert to "std::vector".
6856 (target_desc): Do not initialize "reg_defs".
6857 (~target_desc): Update code to use "std::vector" instead of "VEC"
6858 for "target_desc.reg_defs".
6859 (operator==): Likewise.
6861 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6863 * inferiors.h (thread_to_gdb_id): Remove.
6864 * inferiors.c (thread_to_gdb_id): Remove.
6865 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6866 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6867 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6869 * nto-low.c (nto_fetch_registers, nto_store_registers,
6870 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6872 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6874 * inferiors.h (gdb_id_to_thread_id): Remove.
6875 * inferiors.c (gdb_id_to_thread_id): Remove.
6876 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6877 removal. Move pid declaration closer to where it's used.
6879 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6881 * server.c (handle_detach): New function.
6882 (process_serial_event): Move code out, call handle_detach.
6884 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6886 * server.c (require_running): Rename to ...
6887 (require_running_or_return): ... this ...
6888 (require_running_or_break): ... and this.
6889 (handle_query, process_serial_event): Adjust.
6891 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6893 * linux-low.c (linux_set_resume_request): Remove unused
6896 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6898 * server.c (first_thread_of): Remove.
6899 (process_serial_event): Replace usage of first_thread_of with
6900 find_any_thread_of_pid.
6901 * tracepoint.c (same_process_p): Remove.
6902 (gdb_agent_about_to_close): Replace usage of same_process_p with
6903 find_any_thread_of_pid.
6904 * linux-x86-low.c (same_process_callback): Remove.
6905 (x86_arch_setup_process_callback): Replace usage of
6906 same_process_callback with find_any_thread_of_pid.
6907 * thread-db.c (any_thread_of): Remove.
6908 (switch_to_process): Replace usage of any_thread_of with
6909 find_any_thread_of_pid.
6910 * inferiors.c (thread_pid_matches_callback): Remove.
6911 (find_thread_process): Adjust to use find_any_thread_of_pid.
6913 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6915 * regcache.c (get_thread_regcache): Guard calls to "memset"
6918 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6920 * linux-low.c (handle_extended_wait): Use
6921 "allocate_target_description" instead of "XNEW".
6922 * linux-x86-low.c (initialize_low_arch): Likewise.
6924 2017-09-05 Yao Qi <yao.qi@linaro.org>
6926 * configure.srv (srv_i386_regobj): Remove.
6927 (srv_amd64_regobj): Remove.
6928 (srv_regobj): Set it to "" for x86 non-linux targets.
6929 * linux-x86-tdesc.c (i386_linux_read_description):
6930 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6931 (init_registers_i386): Remove the declaration.
6932 (tdesc_i386): Remove the declaration.
6933 (lynx_i386_arch_setup): Call i386_create_target_description.
6934 * nto-x86-low.c: Likewise.
6935 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6936 [!__x86_64__]: include arch/i386.h.
6937 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6939 2017-09-05 Yao Qi <yao.qi@linaro.org>
6941 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6942 i386/amd64-XXX-linux from it.
6944 2017-09-05 Yao Qi <yao.qi@linaro.org>
6946 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6948 (ipa_amd64_linux_regobj): Remove.
6949 (ipa_x32_linux_regobj): Remove.
6951 2017-09-05 Yao Qi <yao.qi@linaro.org>
6953 * Makefile.in (arch-amd64.o): New rule.
6954 * configure.srv: Append arch-amd64.o.
6955 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6956 (get_ipa_tdesc): Call amd64_linux_read_description.
6957 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6958 and init_registers_amd64_XXX.
6959 * linux-x86-low.c (x86_linux_read_description): Call
6960 amd64_linux_read_description.
6961 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6962 (initialize_low_arch): Don't call init_registers_x32_XXX and
6963 init_registers_amd64_XXX.
6964 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6965 and tdesc_amd64_XXX.
6966 [__x86_64__] (amd64_tdesc_test): New function.
6967 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6968 and init_registers_amd64_XXX.
6969 * linux-x86-tdesc.c: Include arch/amd64.h.
6970 (xcr0_to_tdesc_idx): New function.
6971 (i386_linux_read_description): New function.
6972 (amd64_get_ipa_tdesc_idx): New function.
6973 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6974 (amd64_get_ipa_tdesc): Declare.
6976 2017-09-05 Yao Qi <yao.qi@linaro.org>
6978 * configure.srv (srv_i386_linux_xmlfiles): Remove
6979 i386/i386-XXX-linux.xml from it.
6981 2017-09-05 Yao Qi <yao.qi@linaro.org>
6983 * configure.srv: Set srv_i386_linux_regobj empty if $development
6985 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6986 initialize_low_tdesc.
6987 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6988 with #if initialize_low_tdesc.
6989 * linux-x86-tdesc-selftest.c: New file.
6990 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6992 2017-09-05 Yao Qi <yao.qi@linaro.org>
6994 * Makefile.in (arch-i386.o): New rule.
6995 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6996 (x86_64-*-linux*): Likewise.
6997 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6998 include arch/i386.h.
6999 (i386_linux_read_description): Remove code and call
7000 i386_create_target_description.
7001 * tdesc.c (allocate_target_description): New function.
7002 * tdesc.h (set_tdesc_architecture): Remove declaration.
7003 (set_tdesc_osabi): Likewise.
7005 2017-09-05 Yao Qi <yao.qi@linaro.org>
7007 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7008 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7009 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7011 * server.c (get_features_xml): Call tdesc_get_features_xml.
7012 * tdesc.c (set_tdesc_architecture): New function.
7013 (set_tdesc_osabi): New function.
7014 (tdesc_get_features_xml): New function.
7015 (tdesc_create_feature): Add an argument.
7016 * tdesc.h (struct target_desc) <features>: New field.
7017 <arch, osabi>: New field.
7018 (~target_desc): xfree features, arch, and osabi.
7019 (target_desc::oerator==): Don't compare .xmltarget.
7020 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7021 (set_tdesc_osabi): Likewise.
7022 (tdesc_get_features_xml): Likewise.
7024 2017-09-05 Yao Qi <yao.qi@linaro.org>
7026 * linux-x86-tdesc.c: Include selftest.h.
7027 (i386_tdesc_test): New function.
7028 (initialize_low_tdesc): Call selftests::register_test.
7029 * tdesc.h: Include regdef.h.
7030 (target_desc): Override operator == and !=.
7032 2017-09-05 Yao Qi <yao.qi@linaro.org>
7034 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7035 (ipa_obj): Likewise.
7036 * linux-i386-ipa.c: Include common/x86-xstate.h
7037 (get_ipa_tdesc): Call i386_linux_read_description.
7038 (initialize_low_tracepoint): Don't call init_registers_XXX
7039 functions, call initialize_low_tdesc instead.
7040 * linux-x86-low.c (x86_linux_read_description): Call
7041 i386_linux_read_description.
7042 (initialize_low_arch): Don't call init_registers_i386_XXX
7043 functions, call initialize_low_tdesc.
7044 * linux-x86-tdesc.c: New file.
7045 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7046 (i386_get_ipa_tdesc_idx): Declare.
7047 (i386_get_ipa_tdesc): Declare.
7048 (initialize_low_tdesc): Declare.
7050 2017-09-05 Yao Qi <yao.qi@linaro.org>
7052 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7055 2017-09-05 Yao Qi <yao.qi@linaro.org>
7057 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7058 * regcache.c (get_thread_regcache): Use VEC_length.
7059 (init_register_cache): Likewise.
7060 (regcache_cpy): Likewise.
7061 (registers_to_string): Iterate reg_defs via VEC_iterate.
7062 (find_regno): Likewise.
7063 (find_register_by_number): Use VEC_index.
7064 (register_size): Call find_register_by_number.
7065 (register_data): Call find_register_by_number.
7066 (supply_regblock): Use VEC_length.
7067 (regcache_raw_read_unsigned): Likewise.
7068 * tdesc.c (init_target_desc): Iterate reg_defs via
7070 (default_description): Update initializer.
7071 (copy_target_description): Don't update field num_registers.
7072 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7073 <num_registers>: Remove.
7075 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7077 * Makefile.in (.SECONDARY): Define target.
7079 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7081 * linux-low.c (linux_wait_1): Adjust.
7082 * server.c (queue_stop_reply_callback): Adjust.
7084 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7086 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7087 QEnvironmentUnset and QEnvironmentReset packets.
7088 (handle_query): Inform remote that QEnvironmentHexEncoded,
7089 QEnvironmentUnset and QEnvironmentReset are supported.
7091 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7093 * inferiors.h (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 * inferiors.c (inferior_target_data): Rename to ...
7100 (thread_target_data): ... this.
7101 (inferior_regcache_data): Rename to ...
7102 (thread_regcache_data): ... this.
7103 (set_inferior_regcache_data): Rename to ...
7104 (set_thread_regcache_data): ... this.
7105 (free_one_thread): Update.
7106 * linux-low.h (get_thread_lwp): Update.
7107 * regcache.c (get_thread_regcache): Update.
7108 (regcache_invalidate_thread): Update.
7109 (free_register_cache_thread): Update.
7110 * win32-i386-low.c (update_debug_registers_callback): Update.
7111 (win32_get_current_dr): Update.
7112 * win32-low.c (thread_rec): Update.
7113 (delete_thread_info): Update.
7114 (continue_one_thread): Update.
7115 (suspend_one_thread): Update.
7117 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7119 * inferiors.c (set_inferior_target_data): Remove.
7120 * inferiors.h (set_inferior_target_data): Remove.
7122 2017-08-18 Yao Qi <yao.qi@linaro.org>
7124 * Makefile.in (OBS): Add selftest.o.
7125 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7126 * configure, config.in: Re-generated.
7127 * server.c: Include common/sefltest.h.
7128 (captured_main): Handle option --selftest.
7130 2017-08-09 Yao Qi <yao.qi@linaro.org>
7132 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7133 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7134 i386-avx-mpx.o and i386-mmx.o.
7135 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7136 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7137 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7138 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7139 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7140 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7141 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7142 i386/amd64-avx-mpx.xml.
7144 2017-08-09 Yao Qi <yao.qi@linaro.org>
7146 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7147 and x32-avx-avx512.o.
7148 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7149 i386/x32-avx-avx512.xml.
7151 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7153 * tracepoint.h (enum class fast_tpoint_collect_result): New
7155 (fast_tracepoint_collecting): Change return type to
7156 fast_tpoint_collect_result.
7157 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7158 * linux-low.h: Include tracepoint.h.
7159 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7160 fast_tpoint_collect_result.
7161 * linux-low.c (handle_tracepoints): Adjust.
7162 (linux_fast_tracepoint_collecting): Change return type to
7163 fast_tpoint_collect_result.
7164 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7165 linux_wait_1, stuck_in_jump_pad_callback,
7166 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7167 proceed_one_lwp): Adjust to type change.
7169 2017-07-10 Yao Qi <yao.qi@linaro.org>
7171 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7173 2017-06-29 Yao Qi <yao.qi@linaro.org>
7175 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7177 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7179 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7181 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7183 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7185 * linux-low.c (linux_create_inferior): Adjust code to access the
7186 environment information via 'gdb_environ' class.
7187 * lynx-low.c (lynx_create_inferior): Likewise.
7188 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7189 (get_environ): Return a pointer to 'our_environ'.
7190 (captured_main): Initialize 'our_environ'.
7191 * server.h (get_environ): Adjust prototype.
7192 * spu-low.c (spu_create_inferior): Adjust code to access the
7193 environment information via 'gdb_environ' class.
7195 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7197 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7198 usage of "register" keyword.
7200 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7202 * configure: Re-generate.
7204 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7206 * configure: Re-generate.
7208 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7210 * Makefile.in (COMPILE.pre): Add "-x c++".
7212 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7214 * fork-child.c: Conditionally include <signal.h>.
7216 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7218 * server.c (handle_general_set): Handle new packet
7219 "QStartupWithShell".
7220 (handle_query): Add "QStartupWithShell" to the list of supported
7222 (gdbserver_usage): Add help text explaining the
7223 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7225 (captured_main): Recognize and act upon the presence of the new
7228 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7229 Pedro Alves <palves@redhat.com>
7231 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7232 * configure: Regenerate.
7233 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7235 (i[34567]86-*-lynxos*): Likewise.
7236 (spu*-*-*): Likewise.
7237 * fork-child.c: New file.
7238 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7240 (linux_ptrace_fun): New function.
7241 (linux_create_inferior): Adjust function prototype to reflect
7242 change on "target.h". Adjust function code to use
7244 (linux_request_interrupt): Delete "signal_pid".
7245 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7246 (lynx_ptrace_fun): New function.
7247 (lynx_create_inferior): Adjust function prototype to reflect
7248 change on "target.h". Adjust function code to use
7250 * nto-low.c (nto_create_inferior): Adjust function prototype and
7251 code to reflect change on "target.h". Update comments.
7252 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7253 "common-terminal.h" and "environ.h".
7254 (terminal_fd): Moved to fork-child.c.
7255 (old_foreground_pgrp): Likewise.
7256 (restore_old_foreground_pgrp): Likewise.
7257 (last_status): Make it global.
7258 (last_ptid): Likewise.
7259 (our_environ): New variable.
7260 (startup_with_shell): Likewise.
7261 (program_name): Likewise.
7262 (program_argv): Rename to...
7263 (program_args): ...this.
7264 (wrapper_argv): New variable.
7265 (start_inferior): Delete function.
7266 (get_exec_wrapper): New function.
7267 (get_exec_file): Likewise.
7268 (get_environ): Likewise.
7269 (prefork_hook): Likewise.
7270 (post_fork_inferior): Likewise.
7271 (postfork_hook): Likewise.
7272 (postfork_child_hook): Likewise.
7273 (handle_v_run): Update code to deal with arguments coming from the
7274 remote host. Update calls from "start_inferior" to
7276 (captured_main): Likewise. Initialize environment variable. Call
7278 * server.h (post_fork_inferior): New prototype.
7279 (get_environ): Likewise.
7280 (last_status): Declare.
7281 (last_ptid): Likewise.
7282 (signal_pid): Likewise.
7283 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7284 (spu_ptrace_fun): New function.
7285 (spu_create_inferior): Adjust function prototype to reflect change
7286 on "target.h". Adjust function code to use "fork_inferior".
7287 * target.c (target_terminal_init): New function.
7288 (target_terminal_inferior): Likewise.
7289 (target_terminal_ours): Likewise.
7290 * target.h: Include <vector>.
7291 (struct target_ops) <create_inferior>: Update prototype.
7292 (create_inferior): Update macro.
7293 * utils.c (gdb_flush_out_err): New function.
7294 * win32-low.c (win32_create_inferior): Adjust function prototype
7295 and code to reflect change on "target.h".
7297 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7299 * inferiors.c (switch_to_thread): New function.
7301 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7303 * Makefile.in (SFILE): Add "common/job-control.c".
7304 (OBS): Add "job-control.o".
7306 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7308 * Makefile: Remove "@host_makefile_frag@".
7310 2017-05-05 Pedro Alves <palves@redhat.com>
7312 * configure: Regenerate.
7314 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7316 * configure: Regenerate.
7318 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7320 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7321 software_single_step change of return type to
7322 std::vector<CORE_ADDR>.
7323 * linux-low.c (install_software_single_step_breakpoints):
7325 * linux-low.h (install_software_single_step_breakpoints):
7328 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7330 * remote-utils.c: Include "gdb_termios.h" instead of
7332 * terminal.h: Delete file.
7334 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7336 * server.c: Include <vector>.
7337 <program_argv, wrapper_argv>: Convert to std::vector.
7338 (start_inferior): Rewrite function to use C++.
7339 (handle_v_run): Likewise. Update code that calculates the argv
7340 based on the vRun packet; use C++.
7341 (captured_main): Likewise.
7343 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7345 * server.c (handle_v_cont): Initialize thread_resume::thread
7348 2017-04-05 Pedro Alves <palves@redhat.com>
7350 * configure: Regenerate.
7352 2017-04-05 Pedro Alves <palves@redhat.com>
7354 * gdbreplay.c (sync_error): Constify.
7355 * linux-x86-low.c (push_opcode): Constify.
7357 2017-04-05 Pedro Alves <palves@redhat.com>
7359 * win32-low.c (get_child_debug_event)
7360 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7361 Report TARGET_WAITKIND_SPURIOUS instead.
7363 2017-04-05 Pedro Alves <palves@redhat.com>
7365 * remote-utils.c (remote_prepare, remote_open): Constify.
7366 * remote-utils.h (remote_prepare, remote_open): Constify.
7367 * server.c (captured_main): Constify 'port' handling.
7369 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7371 * Makefile.in (clean): Clear .deps.
7373 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7375 * .gitignore: Remove generated files, replace with wildcard.
7376 * (clean): Replace removal of generated files with wildcard.
7377 (version.c): Replace with...
7378 (version-generated.c): ...this.
7379 (xml-builtin.c): Replace with...
7380 (xml-builtin-generated.c): ...this.
7381 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7382 (%.c: *regformats*): Replace with...
7383 (%-generated.c: *regformats*): ...this.
7385 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7387 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7388 (xtensa_fill_gregset): Call collect_register_by_name for
7390 (xtensa_store_gregset): Call supply_register_by_name for
7393 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7395 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7396 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7397 (xtensa_store_gregset): Call supply_register for all registers in
7398 a0_regnum..a0_regnum + C0_NREGS range.
7400 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7402 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7403 (ax-ipa.o: ax.c): Remove.
7404 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7405 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7406 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7407 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7408 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7410 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7412 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7413 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7414 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7415 (errors-ipa.o: ../common/errors.c): Remove.
7416 (format-ipa.o: ../common/format.c): Remove.
7417 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7419 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7421 * Makefile.in (%-ipa.o: %.c): New rule.
7422 (tracepoint-ipa.o: tracepoint.c): Remove.
7423 (utils-ipa.o: utils.c): Remove.
7424 (remote-utils-ipa.o: remote-utils.c): Remove.
7425 (regcache-ipa.o: regcache.c): Remove.
7426 (i386-linux-ipa.o: i386-linux.c): Remove.
7427 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7428 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7429 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7430 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7431 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7432 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7433 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7434 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7435 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7436 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7437 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7438 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7439 (aarch64-ipa.o: aarch64.c): Remove.
7440 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7441 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7442 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7443 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7444 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7445 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7446 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7447 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7448 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7449 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7450 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7451 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7452 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7453 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7454 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7455 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7456 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7457 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7458 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7459 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7460 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7461 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7462 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7463 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7464 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7465 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7466 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7467 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7468 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7469 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7470 (tdesc-ipa.o: tdesc.c): Remove.
7471 (x32-linux-ipa.o: x32-linux.c): Remove.
7472 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7473 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7475 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7477 * Makefile.in (%.o: ../arch/%.c): New rule.
7478 (arm.o: ../arch/arm.c): Remove.
7479 (arm-linux.o: ../arch/arm-linux.c): Remove.
7480 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7481 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7483 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7485 * Makefile.in (%.o: ../nat/%.c): New rule.
7486 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7487 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7488 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7489 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7490 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7491 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7492 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7493 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7494 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7495 (linux-personality.o: ../nat/linux-personality.c): Remove.
7496 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7497 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7498 (x86-linux.o: ../nat/x86-linux.c): Remove.
7499 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7500 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7502 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7504 * Makefile.in (%.o: ../common/%.c): New rule.
7505 (signals.o: ../common/signals.c): Remove.
7506 (print-utils.o: ../common/print-utils.c): Remove.
7507 (rsp-low.o: ../common/rsp-low.c): Remove.
7508 (common-utils.o: ../common/common-utils.c): Remove.
7509 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7510 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7511 (vec.o: ../common/vec.c): Remove.
7512 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7513 (xml-utils.o: ../common/xml-utils.c): Remove.
7514 (ptid.o: ../common/ptid.c): Remove.
7515 (buffer.o: ../common/buffer.c): Remove.
7516 (format.o: ../common/format.c): Remove.
7517 (filestuff.o: ../common/filestuff.c): Remove.
7518 (agent.o: ../common/agent.c): Remove.
7519 (errors.o: ../common/errors.c): Remove.
7520 (environ.o: ../common/environ.c): Remove.
7521 (common-debug.o: ../common/common-debug.c): Remove.
7522 (cleanups.o: ../common/cleanups.c): Remove.
7523 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7524 (fileio.o: ../common/fileio.c): Remove.
7525 (common-regcache.o: ../common/common-regcache.c): Remove.
7526 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7527 (new-op.o: ../common/new-op.c): Remove.
7528 (btrace-common.o: ../common/btrace-common.c): Remove.
7530 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7532 * Makefile.in (%.o: ../target/%.c): New rule.
7533 (waitstatus.o: ../target/waitstatus.c): Remove.
7535 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7538 (%.c: ../regformats/%.dat,
7539 (%.c: ../regformats/arm/%.dat,
7540 (%.c: ../regformats/i386/%.dat,
7541 (%.c: ../regformats/rs6000/%.dat): New rules.
7542 (aarch64.c): Remove.
7543 (reg-arm.c): Remove.
7544 (arm-with-iwmmxt.c): Remove.
7545 (arm-with-vfpv2.c): Remove.
7546 (arm-with-vfpv3.c): Remove.
7547 (arm-with-neon.c): Remove.
7548 (reg-bfin.c): Remove.
7549 (reg-cris.c): Remove.
7550 (reg-crisv32.c): Remove.
7552 (i386-linux.c): Remove.
7553 (i386-avx.c): Remove.
7554 (i386-avx-linux.c): Remove.
7555 (i386-avx-avx512.c): Remove.
7556 (i386-avx-avx512-linux.c): Remove.
7557 (i386-mpx.c): Remove.
7558 (i386-mpx-linux.c): Remove.
7559 (i386-avx-mpx-avx512-pku.c): Remove.
7560 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7561 (i386-avx-mpx.c): Remove.
7562 (i386-avx-mpx-linux.c): Remove.
7563 (i386-mmx.c): Remove.
7564 (i386-mmx-linux.c): Remove.
7565 (reg-ia64.c): Remove.
7566 (reg-m32r.c): Remove.
7567 (reg-m68k.c): Remove.
7569 (mips-linux.c): Remove.
7570 (mips-dsp-linux.c): Remove.
7571 (mips64-linux.c): Remove.
7572 (mips64-dsp-linux.c): Remove.
7573 (nios2-linux.c): Remove.
7574 (powerpc-32.c): Remove.
7575 (powerpc-32l.c): Remove.
7576 (powerpc-altivec32l.c): Remove.
7577 (powerpc-cell32l.c): Remove.
7578 (powerpc-vsx32l.c): Remove.
7579 (powerpc-isa205-32l.c): Remove.
7580 (powerpc-isa205-altivec32l.c): Remove.
7581 (powerpc-isa205-vsx32l.c): Remove.
7582 (powerpc-e500l.c): Remove.
7583 (powerpc-64l.c): Remove.
7584 (powerpc-altivec64l.c): Remove.
7585 (powerpc-cell64l.c): Remove.
7586 (powerpc-vsx64l.c): Remove.
7587 (powerpc-isa205-64l.c): Remove.
7588 (powerpc-isa205-altivec64l.c): Remove.
7589 (powerpc-isa205-vsx64l.c): Remove.
7590 (s390-linux32.c): Remove.
7591 (s390-linux32v1.c): Remove.
7592 (s390-linux32v2.c): Remove.
7593 (s390-linux64.c): Remove.
7594 (s390-linux64v1.c): Remove.
7595 (s390-linux64v2.c): Remove.
7596 (s390-te-linux64.c): Remove.
7597 (s390-vx-linux64.c): Remove.
7598 (s390-tevx-linux64.c): Remove.
7599 (s390x-linux64.c): Remove.
7600 (s390x-linux64v1.c): Remove.
7601 (s390x-linux64v2.c): Remove.
7602 (s390x-te-linux64.c): Remove.
7603 (s390x-vx-linux64.c): Remove.
7604 (s390x-tevx-linux64.c): Remove.
7605 (tic6x-c64xp-linux.c): Remove.
7606 (tic6x-c64x-linux.c): Remove.
7607 (tic6x-c62x-linux.c): Remove.
7609 (reg-sparc64.c): Remove.
7610 (reg-spu.c): Remove.
7612 (amd64-linux.c): Remove.
7613 (amd64-avx.c): Remove.
7614 (amd64-avx-linux.c): Remove.
7615 (amd64-avx-avx512.c): Remove.
7616 (amd64-avx-avx512-linux.c): Remove.
7617 (amd64-mpx.c): Remove.
7618 (amd64-mpx-linux.c): Remove.
7619 (amd64-avx-mpx-avx512-pku.c): Remove.
7620 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7621 (amd64-avx-mpx.c): Remove.
7622 (amd64-avx-mpx-linux.c): Remove.
7624 (x32-linux.c): Remove.
7625 (x32-avx.c): Remove.
7626 (x32-avx-linux.c): Remove.
7627 (x32-avx-avx512.c): Remove.
7628 (x32-avx-avx512-linux.c): Remove.
7629 (reg-xtensa.c): Remove.
7630 (reg-tilegx.c): Remove.
7631 (reg-tilegx32.c): Remove.
7633 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7635 * Makefile.in (SFILES): Add "common/environ.c".
7636 (OBJS): Add "common/environ.h".
7638 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7640 * configure.ac: Check if the fs_base and gs_base members of
7641 `struct user_regs_struct' exist.
7642 * config.in: Regenerated.
7643 * configure: Likewise.
7645 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7647 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7649 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7650 (get_next_pcs_syscall_next_pc): Likewise.
7652 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7654 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7655 * nto-x86-low.c: Likewise.
7657 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7659 * Makefile.in: Include disable-implicit-rules.mk.
7661 2016-11-23 Pedro Alves <palves@redhat.com>
7663 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7664 (debug_vprintf): Use std::chrono::steady_clock instead of
7665 gettimeofday. Use '.' instead of ':'.
7666 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7667 (get_timestamp): Use std::chrono::steady_clock instead of
7670 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7672 * Makefile.in: Fix whitespace formatting.
7674 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7676 * Makefile.in (SFILES, OBS): Flatten list and order
7679 2016-11-23 Pedro Alves <palves@redhat.com>
7681 * event-loop.c (handle_file_event): Use warning.
7682 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7683 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7686 2016-11-23 Pedro Alves <palves@redhat.com>
7688 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7690 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7691 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7692 debug_printf and debug_flush for debug output.
7693 * server.c (handle_general_set): Likewise.
7694 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7697 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7699 * Makefile.in (.c.o): Replace rule with ...
7700 (%.o: %.c): ... this one.
7702 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7704 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7705 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7707 * configure.ac: Remove checks for the make program.
7708 * configure: Re-generate.
7710 2016-10-28 Pedro Alves <palves@redhat.com>
7712 * Makefile.in (CXX_DIALECT): Get from configure.
7713 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7714 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7715 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7716 * config.in: Regenerate.
7717 * configure: Regenerate.
7719 2016-10-27 Yao Qi <yao.qi@linaro.org>
7721 * linux-low.c (linux_supports_range_stepping): Return true if
7722 can_software_single_step return true.
7724 2016-10-27 Yao Qi <yao.qi@linaro.org>
7726 * inferiors.c (find_inferior_in_random): New function.
7727 * inferiors.h (find_inferior_in_random): Declare.
7728 * linux-low.c (linux_wait_for_event_filtered): Call
7729 find_inferior_in_random instead of find_inferior.
7731 2016-10-27 Yao Qi <yao.qi@linaro.org>
7733 * linux-low.c (linux_wait_1): If single-step breakpoints are
7734 inserted, remove them.
7736 2016-10-26 Pedro Alves <palves@redhat.com>
7738 * linux-low.c (handle_extended_wait): Link parent/child fork
7740 (linux_wait_1): Unlink them.
7741 (linux_set_resume_request): Ignore resume requests for
7742 already-resumed and unhandled fork child threads.
7743 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7744 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7746 (handle_v_requests) <vCont>: Don't call require_running.
7747 * server.h (in_queued_stop_replies): New declaration.
7749 2016-10-24 Yao Qi <yao.qi@linaro.org>
7752 * linux-aarch64-low.c (append_insns): Cast the return value to
7755 2016-10-10 Yao Qi <yao.qi@linaro.org>
7757 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7759 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7761 * target.c (target_supports_multi_process): New function, moved
7763 * target.h (target_supports_multi_process): ... here. Remove
7766 2016-10-05 Tom Tromey <tom@tromey.com>
7769 * tracepoint.c (handle_tracepoint_bkpts): Check
7770 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7772 2016-10-05 Yao Qi <yao.qi@linaro.org>
7774 * configure.srv: Update the path of arm-*.xml files.
7776 2016-10-05 Terry Guo <terry.guo@arm.com>
7777 Yao Qi <yao.qi@linaro.org>
7779 * Makefile.in: Adjust the path of rules.
7780 * configure.srv: Update the path of xml files.
7781 * regformats/arm-with-iwmmxt.dat: Regenerated.
7782 * regformats/arm-with-neon.dat: Likewise.
7783 * regformats/arm-with-vfpv2.dat: Likewise.
7784 * regformats/arm-with-vfpv3.dat Likewise.
7786 2016-09-30 Yao Qi <yao.qi@linaro.org>
7789 * target.c (target_stop_and_wait): Don't call
7790 target_continue_no_signal, use resume_stop instead.
7792 2016-09-26 Yao Qi <yao.qi@linaro.org>
7794 * linux-low.c (linux_wait_1): Call debug_exit.
7796 2016-09-23 Pedro Alves <palves@redhat.com>
7798 * Makefile.in (SFILES): Add common/new-op.c.
7799 (OBS): Add common/new-op.o.
7800 (new-op.o): New rule.
7802 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7804 * .gitinore: Ignore more files.
7806 2016-09-21 Yao Qi <yao.qi@linaro.org>
7808 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7811 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7813 * server.c (start_inferior): Call target_mourn_inferior instead of
7814 mourn_inferior; pass ptid_t argument to it.
7816 (handle_target_event): Likewise.
7817 * target.c (target_mourn_inferior): New function.
7818 * target.h (mourn_inferior): Delete macro.
7820 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7822 * linux-low.c (lwp_is_stepping): New function.
7824 2016-09-06 Carl Love <cel@us.ibm.com>
7826 * server.c (start_inferior): Fixed comment, requested comment change
7827 didn't get updated correctly. Removed reference to ptrace () call as
7828 it is only true on Linux systems.
7830 2016-09-06 Carl Love <cel@us.ibm.com>
7832 * server.c (start_inferior): Do not call
7833 function target_post_create_inferior () if the
7834 inferior process has already exited.
7836 2016-09-05 Pedro Alves <palves@redhat.com>
7838 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7839 (COMPILE.pre, CC_LD): Use CXX directly.
7840 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7841 * acinclude.m4: Don't include build-with-cxx.m4.
7842 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7843 * configure: Regenerate.
7845 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7848 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7849 call writing data to own_buf.
7851 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7853 * target.c (mywait): Call target_wait instead of
7855 (target_wait): New function.
7857 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7859 * server.c (start_inferior): New variable 'ptid'. Replace calls
7860 to the_target->resume by target_continue{,_no_signal}, depending
7862 * target.c (target_stop_and_wait): Call target_continue_no_signal
7863 instead of the_target->resume.
7864 (target_continue): New function.
7866 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7868 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7870 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7873 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7875 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7876 * linux-arm-low.c (ps_get_thread_area): Likewise.
7877 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7878 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7879 * linux-mips-low.c (ps_get_thread_area): Likewise.
7880 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7881 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7882 * linux-x86-low.c (ps_get_thread_area): Likewise.
7883 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7885 2016-08-19 Pedro Alves <palves@redhat.com>
7887 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7889 2016-08-19 Pedro Alves <palves@redhat.com>
7891 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7892 comment. Use memcpy instead of casting through unsigned long.
7894 2016-08-19 Pedro Alves <palves@redhat.com>
7896 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7897 allocating around 0x80000000.
7899 2016-08-19 Pedro Alves <palves@redhat.com>
7902 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7903 (x32-avx512-linux-ipa.o): New rules.
7904 * configure.ac (x86_64-*-linux*): New x32 check.
7905 * configure.srv (ipa_x32_linux_regobj): New.
7906 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7907 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7909 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7911 * configure: Regenerate.
7913 2016-08-09 Pedro Alves <palves@redhat.com>
7916 * Makefile.in (OBS): Add signals-state-save-restore.o.
7917 (signals-state-save-restore.o): New rule.
7918 * config.in: Regenerate.
7919 * configure: Regenerate.
7920 * linux-low.c: Include "signals-state-save-restore.h".
7921 (linux_create_inferior): Call
7922 restore_original_signals_state.
7923 * server.c: Include "dispositions-save-restore.h".
7924 (captured_main): Call save_original_signals_state.
7926 2016-08-05 Pedro Alves <palves@redhat.com>
7928 * configure: Regenerate.
7930 2016-08-04 Yao Qi <yao.qi@linaro.org>
7932 * linux-low.c (regsets_fetch_inferior_registers): Check
7933 errno is ESRCH or not.
7935 2016-08-02 Yao Qi <yao.qi@linaro.org>
7937 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7938 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7939 (thread_db_load_search): Update.
7940 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7941 td_ta_set_event and td_ta_event_getmsg.
7943 2016-07-26 Pedro Alves <palves@redhat.com>
7946 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7947 of unsigned long for 64-bit registers and use uint32_t instead of
7948 unsigned int for 32-bit registers.
7950 2016-07-26 Pedro Alves <palves@redhat.com>
7952 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7955 2016-07-21 Tom Tromey <tom@tromey.com>
7957 * configure: Rebuild.
7959 2016-07-21 Yao Qi <yao.qi@linaro.org>
7961 * mem-break.c (find_gdb_breakpoint): Cast bp to
7962 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7964 2016-07-21 Yao Qi <yao.qi@linaro.org>
7966 * server.c (handle_v_requests): Support s and S actions
7967 if target_supports_software_single_step return true.
7969 2016-07-21 Yao Qi <yao.qi@linaro.org>
7971 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7972 is resume_step, call maybe_hw_step.
7973 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7975 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7977 (proceed_one_lwp): If resume request is resume_step, install
7978 reinsert breakpoints and call maybe_hw_step.
7980 2016-07-21 Yao Qi <yao.qi@linaro.org>
7982 * linux-low.c (proceed_one_lwp): Declare.
7983 (linux_resume_one_thread): Remove local variable 'step'.
7984 Lift code enqueue signal. Call proceed_one_lwp instead of
7985 linux_resume_one_lwp.
7987 2016-07-21 Yao Qi <yao.qi@linaro.org>
7989 * linux-low.c (linux_resume_one_thread): Call
7990 enqueue_pending_signal.
7992 2016-07-21 Yao Qi <yao.qi@linaro.org>
7994 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7995 * inferiors.c (do_restore_current_thread_cleanup): New function.
7996 (make_cleanup_restore_current_thread): Likewise.
7997 * linux-low.c (install_software_single_step_breakpoints): Call
7998 make_cleanup_restore_current_thread. Switch current_thread to
8001 2016-07-21 Yao Qi <yao.qi@linaro.org>
8003 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8004 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8005 (clone_one_breakpoint): Likewise.
8006 (delete_reinsert_breakpoints): Change parameter to thread.
8008 (has_reinsert_breakpoints): Likewise.
8009 (uninsert_reinsert_breakpoints): Likewise.
8010 (reinsert_reinsert_breakpoints): Likewise.
8011 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8012 (delete_reinsert_breakpoints): Likewise.
8013 (reinsert_reinsert_breakpoints): Likewise.
8014 (uninsert_reinsert_breakpoints): Likewise.
8015 (has_reinsert_breakpoints): Likewise.
8017 2016-07-21 Yao Qi <yao.qi@linaro.org>
8019 * inferiors.c (get_thread_process): Make parameter const.
8020 * inferiors.h (get_thread_process): Update declaration.
8021 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8022 Add new parameters child_thread and parent_thread. Callers
8024 * mem-break.h (clone_all_breakpoints): Update declaration.
8026 2016-07-21 Yao Qi <yao.qi@linaro.org>
8028 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8029 <command_list, handler>: Remove.
8030 (struct gdb_breakpoint): New.
8031 (struct other_breakpoint): New.
8032 (struct reinsert_breakpoint): New.
8033 (is_gdb_breakpoint): New function.
8034 (any_persistent_commands): Update command_list if
8035 is_gdb_breakpoint returns true.
8036 (set_breakpoint): Create breakpoints according to their types.
8037 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8038 (set_gdb_breakpoint_1): Likewise.
8039 (set_gdb_breakpoint): Likewise.
8040 (clear_breakpoint_conditions): Change parameter type to
8041 'struct gdb_breakpoint *'.
8042 (clear_breakpoint_commands): Likewise.
8043 (clear_breakpoint_conditions_and_commands): Likewise.
8044 (add_condition_to_breakpoint): Likewise.
8045 (add_breakpoint_condition): Likewise.
8046 (add_commands_to_breakpoint): Likewise.
8047 (check_breakpoints): Check other_breakpoint.
8048 (clone_one_breakpoint): Clone breakpopint according to its type.
8049 * mem-break.h (struct gdb_breakpoint): Declare.
8050 (set_gdb_breakpoint): Update declaration.
8051 (clear_breakpoint_conditions_and_commands): Likewise.
8052 (add_breakpoint_condition): Likewise.
8053 (add_breakpoint_commands): Likewise.
8054 * server.c (process_point_options): Change parameter type to
8055 'struct gdb_breakpoint *'.
8057 2016-07-21 Yao Qi <yao.qi@linaro.org>
8059 * mem-break.c (set_breakpoint_at): Rename it to ...
8060 (set_breakpoint_type_at): ... it.
8061 (set_breakpoint_at): Call set_breakpoint_type_at.
8062 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8063 * mem-break.h (set_breakpoint_at): Update comments.
8065 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8067 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8069 (nios2_store_gregset): Likewise.
8071 2016-07-01 Pedro Alves <palves@redhat.com>
8072 Antoine Tremblay <antoine.tremblay@ericsson.com>
8074 * linux-low.c: Change interface to take the target lwp_info
8075 pointer directly and return void. Handle detaching from a zombie
8077 (linux_detach_lwp_callback): New function.
8078 (linux_detach): Detach from the leader thread after detaching from
8081 2016-06-28 Yao Qi <yao.qi@linaro.org>
8083 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8084 for variable new_offset.
8085 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8086 (aarch64_ftrace_insn_reloc_cb): Likewise.
8087 (aarch64_ftrace_insn_reloc_tb): Likewise.
8088 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8089 PRIx64 instead of PRIx32.
8091 2016-06-28 Yao Qi <yao.qi@linaro.org>
8093 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8094 (the_low_target): Install arm_get_syscall_trapinfo.
8096 2016-06-28 Yao Qi <yao.qi@linaro.org>
8098 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8100 (the_low_target): Install aarch64_get_syscall_trapinfo.
8102 2016-06-28 Yao Qi <yao.qi@linaro.org>
8104 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8106 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8107 Remove parameter sysno.
8108 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8111 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8113 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8114 (s390_emit_ne_goto): Likewise.
8115 (s390_emit_lt_goto): Likewise.
8116 (s390_emit_le_goto): Likewise.
8117 (s390_emit_gt_goto): Likewise.
8118 (s390_emit_ge_goto): Likewise.
8119 (s390x_emit_eq_goto): Likewise.
8120 (s390x_emit_ne_goto): Likewise.
8121 (s390x_emit_lt_goto): Likewise.
8122 (s390x_emit_le_goto): Likewise.
8123 (s390x_emit_gt_goto): Likewise.
8124 (s390x_emit_ge_goto): Likewise.
8125 (s390_emit_ops_impl): Mark variable static.
8126 (s390x_emit_ops): Likewise.
8128 2016-06-17 Yao Qi <yao.qi@linaro.org>
8130 * linux-low.c (handle_extended_wait): Call
8131 uninsert_reinsert_breakpoints for the parent process. Remove
8132 reinsert breakpoints from the child process. Reinsert them to
8133 the parent process when vfork is done.
8134 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8135 (reinsert_reinsert_breakpoints): New function.
8136 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8137 (reinsert_reinsert_breakpoints): Declare.
8139 2016-06-17 Yao Qi <yao.qi@linaro.org>
8141 * linux-low.c (handle_extended_wait): If the parent is doing
8142 step-over, remove the reinsert breakpoints from the forked child.
8144 2016-06-17 Yao Qi <yao.qi@linaro.org>
8146 * linux-low.c (unsuspend_all_lwps): Declare.
8147 (linux_low_filter_event): If thread exited, call finish_step_over.
8148 If step-over is finished, unsuspend other threads.
8150 2016-06-17 Yao Qi <yao.qi@linaro.org>
8152 * linux-low.c (linux_resume_one_lwp_throw): Assert
8153 has_reinsert_breakpoints returns false.
8154 * mem-break.c (delete_disabled_breakpoints): Assert
8155 bp type isn't reinsert_breakpoint.
8157 2016-06-17 Yao Qi <yao.qi@linaro.org>
8159 * linux-low.c (maybe_hw_step): New function.
8160 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8161 (finish_step_over): Switch current_thread to lwp temporarily,
8162 and assert has_reinsert_breakpoints returns true.
8163 (proceed_one_lwp): Call maybe_hw_step.
8164 * mem-break.c (has_reinsert_breakpoints): New function.
8165 * mem-break.h (has_reinsert_breakpoints): Declare.
8167 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8169 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8171 2016-05-17 Yao Qi <yao.qi@linaro.org>
8173 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8174 instead of find_inferior.
8176 2016-05-05 Yao Qi <yao.qi@linaro.org>
8178 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8179 Initialize res to zero.
8181 2016-05-05 Yao Qi <yao.qi@linaro.org>
8183 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8186 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8188 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8189 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8190 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8192 2016-04-28 Par Olsson <par.olsson@windriver.com>
8193 Simon Marchi <simon.marchi@ericsson.com>
8195 * tracepoint.c (write_inferior_int8): New function.
8196 (cmd_qtenable_disable): Write enable flag using
8197 write_inferior_int8.
8199 2016-04-25 Yao Qi <yao.qi@linaro.org>
8201 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8202 (need_step_over_p): Return zero if the LWP has pending signals
8203 can be delivered on software single step target.
8205 2016-04-25 Yao Qi <yao.qi@linaro.org>
8207 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8208 return instead of error.
8210 2016-04-22 Yao Qi <yao.qi@linaro.org>
8212 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8215 2016-04-22 Yao Qi <yao.qi@linaro.org>
8217 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8218 signal when stepping over breakpoint with software single
8221 2016-04-21 Pedro Alves <palves@redhat.com>
8223 * linux-s390-low.c (s390_collect_ptrace_register)
8224 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8226 (s390_check_regset): Use void * instead of gdb_byte *.
8228 2016-04-20 Pedro Alves <palves@redhat.com>
8230 * configure: Renegerate.
8232 2016-04-20 Yao Qi <yao.qi@linaro.org>
8234 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8235 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8237 (arm_store_gregset): Likewise.
8239 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8241 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8242 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8243 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8244 (amd64-avx-mpx-linux.c): New rules.
8245 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8246 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8247 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8248 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8249 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8250 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8251 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8252 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8253 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8254 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8255 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8256 * linux-x86-low.c (x86_linux_read_description): Add case for
8257 X86_XSTATE_AVX_MPX_MASK.
8258 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8259 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8260 init_registers_i386_avx_mpx_linux.
8261 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8262 (initialize_low_tracepoint): Call
8263 init_registers_i386_avx_mpx_linux.
8264 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8265 (initialize_low_tracepoint): Call
8266 init_registers_amd64_avx_mpx_linux.
8267 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8268 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8269 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8272 2016-04-18 Pedro Alves <palves@redhat.com>
8274 * configure: Regenerate.
8276 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8278 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8279 (aarch64_emit_sub): Likewise.
8281 2016-04-12 Pedro Alves <palves@redhat.com>
8283 * utils.c (prepare_to_throw_exception): Delete.
8285 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8287 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8289 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8291 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8293 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8295 * linux-aarch64-ipa.c: Add <elf.h> include.
8296 * linux-ppc-ipa.c: Add <elf.h> include.
8297 * linux-s390-ipa.c: Add <elf.h> include.
8299 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8301 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8302 (get_raw_reg_ptr): Likewise.
8303 (get_trace_state_variable_value_ptr): Likewise.
8304 (set_trace_state_variable_value_ptr): Likewise.
8305 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8308 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8309 Marcin Kościelnicki <koriakin@0x04.net>
8312 * linux-ppc-low.c (emit_insns): New function.
8313 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8314 (ppc_emit_prologue): New function.
8315 (ppc_emit_epilogue): New function.
8316 (ppc_emit_add): New function.
8317 (ppc_emit_sub): New function.
8318 (ppc_emit_mul): New function.
8319 (ppc_emit_lsh): New function.
8320 (ppc_emit_rsh_signed): New function.
8321 (ppc_emit_rsh_unsigned): New function.
8322 (ppc_emit_ext): New function.
8323 (ppc_emit_zero_ext): New function.
8324 (ppc_emit_log_not): New function.
8325 (ppc_emit_bit_and): New function.
8326 (ppc_emit_bit_or): New function.
8327 (ppc_emit_bit_xor): New function.
8328 (ppc_emit_bit_not): New function.
8329 (ppc_emit_equal): New function.
8330 (ppc_emit_less_signed): New function.
8331 (ppc_emit_less_unsigned): New function.
8332 (ppc_emit_ref): New function.
8333 (ppc_emit_const): New function.
8334 (ppc_emit_reg): New function.
8335 (ppc_emit_pop): New function.
8336 (ppc_emit_stack_flush): New function.
8337 (ppc_emit_swap): New function.
8338 (ppc_emit_stack_adjust): New function.
8339 (ppc_emit_call): New function.
8340 (ppc_emit_int_call_1): New function.
8341 (ppc_emit_void_call_2): New function.
8342 (ppc_emit_if_goto): New function.
8343 (ppc_emit_goto): New function.
8344 (ppc_emit_eq_goto): New function.
8345 (ppc_emit_ne_goto): New function.
8346 (ppc_emit_lt_goto): New function.
8347 (ppc_emit_le_goto): New function.
8348 (ppc_emit_gt_goto): New function.
8349 (ppc_emit_ge_goto): New function.
8350 (ppc_write_goto_address): New function.
8351 (ppc_emit_ops_impl): New static variable.
8352 (ppc64v1_emit_prologue): New function.
8353 (ppc64v2_emit_prologue): New function.
8354 (ppc64_emit_epilogue): New function.
8355 (ppc64_emit_add): New function.
8356 (ppc64_emit_sub): New function.
8357 (ppc64_emit_mul): New function.
8358 (ppc64_emit_lsh): New function.
8359 (ppc64_emit_rsh_signed): New function.
8360 (ppc64_emit_rsh_unsigned): New function.
8361 (ppc64_emit_ext): New function.
8362 (ppc64_emit_zero_ext): New function.
8363 (ppc64_emit_log_not): New function.
8364 (ppc64_emit_bit_and): New function.
8365 (ppc64_emit_bit_or): New function.
8366 (ppc64_emit_bit_xor): New function.
8367 (ppc64_emit_bit_not): New function.
8368 (ppc64_emit_equal): New function.
8369 (ppc64_emit_less_signed): New function.
8370 (ppc64_emit_less_unsigned): New function.
8371 (ppc64_emit_ref): New function.
8372 (ppc64_emit_const): New function.
8373 (ppc64v1_emit_reg): New function.
8374 (ppc64v2_emit_reg): New function.
8375 (ppc64_emit_pop): New function.
8376 (ppc64_emit_stack_flush): New function.
8377 (ppc64_emit_swap): New function.
8378 (ppc64v1_emit_call): New function.
8379 (ppc64v2_emit_call): New function.
8380 (ppc64v1_emit_int_call_1): New function.
8381 (ppc64v2_emit_int_call_1): New function.
8382 (ppc64v1_emit_void_call_2): New function.
8383 (ppc64v2_emit_void_call_2): New function.
8384 (ppc64_emit_if_goto): New function.
8385 (ppc64_emit_eq_goto): New function.
8386 (ppc64_emit_ne_goto): New function.
8387 (ppc64_emit_lt_goto): New function.
8388 (ppc64_emit_le_goto): New function.
8389 (ppc64_emit_gt_goto): New function.
8390 (ppc64_emit_ge_goto): New function.
8391 (ppc64v1_emit_ops_impl): New static variable.
8392 (ppc64v2_emit_ops_impl): New static variable.
8393 (ppc_emit_ops): New function.
8394 (linux_low_target): Wire in ppc_emit_ops.
8396 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8397 Marcin Kościelnicki <koriakin@0x04.net>
8400 * Makefile.in: Add powerpc-*-ipa.o
8401 * configure.srv: Add ipa_obj for powerpc*-linux.
8402 * linux-ppc-ipa.c: New file.
8403 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8405 (PPC_FIELD): New macro.
8406 (PPC_SEXT): New macro.
8407 (PPC_OP6): New macro.
8408 (PPC_BO): New macro.
8409 (PPC_LI): New macro.
8410 (PPC_BD): New macro.
8411 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8412 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8413 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8414 (ppc_get_thread_area): New function.
8415 (is_elfv2_inferior): New function.
8416 (gen_ds_form): New function.
8417 (GEN_STD): New macro.
8418 (GEN_STDU): New macro.
8419 (GEN_LD): New macro.
8420 (GEN_LDU): New macro.
8421 (gen_d_form): New function.
8422 (GEN_ADDI): New macro.
8423 (GEN_ADDIS): New macro.
8424 (GEN_LI): New macro.
8425 (GEN_LIS): New macro.
8426 (GEN_ORI): New macro.
8427 (GEN_ORIS): New macro.
8428 (GEN_LWZ): New macro.
8429 (GEN_STW): New macro.
8430 (GEN_STWU): New macro.
8431 (gen_xfx_form): New function.
8432 (GEN_MFSPR): New macro.
8433 (GEN_MTSPR): New macro.
8434 (GEN_MFCR): New macro.
8435 (GEN_MTCR): New macro.
8436 (GEN_SYNC): New macro.
8437 (GEN_LWSYNC): New macro.
8438 (gen_x_form): New function.
8439 (GEN_OR): New macro.
8440 (GEN_MR): New macro.
8441 (GEN_LWARX): New macro.
8442 (GEN_STWCX): New macro.
8443 (GEN_CMPW): New macro.
8444 (gen_md_form): New function.
8445 (GEN_RLDICL): New macro.
8446 (GEN_RLDICR): New macro.
8447 (gen_i_form): New function.
8449 (GEN_BL): New macro.
8450 (gen_b_form): New function.
8451 (GEN_BNE): New macro.
8452 (GEN_LOAD): New macro.
8453 (GEN_STORE): New macro.
8454 (gen_limm): New function.
8455 (gen_atomic_xchg): New function.
8456 (gen_call): New function.
8457 (ppc_relocate_instruction): New function.
8458 (ppc_install_fast_tracepoint_jump_pad): New function.
8459 (ppc_get_min_fast_tracepoint_insn_len): New function.
8460 (ppc_get_ipa_tdesc_idx): New function.
8461 (the_low_target): Wire in the new functions.
8462 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8464 * linux-ppc-tdesc.h: New file.
8466 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8468 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8469 (alloc_jump_pad_buffer): New function.
8470 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8471 (alloc_jump_pad_buffer): New function.
8472 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8473 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8474 (alloc_jump_pad_buffer): New function.
8475 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8476 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8477 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8478 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8480 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8482 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8483 * linux-amd64-ipa.c: Likewise.
8484 * linux-i386-ipa.c: Likewise.
8485 * linux-s390-ipa.c: Likewise.
8486 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8487 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8488 set_trace_state_variable_value_ptr.
8489 (struct ipa_sym_addresses): Likewise.
8490 (symbol_list): Likewise.
8491 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8492 accessing gdb_collect directly.
8493 (gdb_collect_ptr_type): New typedef.
8494 (get_raw_reg_ptr_type): New typedef.
8495 (get_trace_state_variable_value_ptr_type): New typedef.
8496 (set_trace_state_variable_value_ptr_type): New typedef.
8497 (gdb_collect_ptr): New global.
8498 (get_raw_reg_ptr): New global.
8499 (get_trace_state_variable_value_ptr): New global.
8500 (set_trace_state_variable_value_ptr): New global.
8501 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8502 accessing get_raw_reg directly.
8503 (get_get_tsv_func_addr): Likewise for
8504 get_trace_state_variable_value_ptr.
8505 (get_set_tsv_func_addr): Likewise for
8506 set_trace_state_variable_value_ptr.
8507 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8509 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8511 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8513 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8515 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8517 (relocate_instruction): Remove own_buf.
8518 * server.c (own_buf): Make global.
8519 (handle_v_requests): Make global.
8520 * server.h (own_buf): New declaration.
8521 (handle_v_requests): New prototype.
8523 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8526 * linux-s390-low.c (add_insns): New function.
8527 (s390_emit_prologue): New function.
8528 (s390_emit_epilogue): New function.
8529 (s390_emit_add): New function.
8530 (s390_emit_sub): New function.
8531 (s390_emit_mul): New function.
8532 (s390_emit_lsh): New function.
8533 (s390_emit_rsh_signed): New function.
8534 (s390_emit_rsh_unsigned): New function.
8535 (s390_emit_ext): New function.
8536 (s390_emit_log_not): New function.
8537 (s390_emit_bit_and): New function.
8538 (s390_emit_bit_or): New function.
8539 (s390_emit_bit_xor): New function.
8540 (s390_emit_bit_not): New function.
8541 (s390_emit_equal): New function.
8542 (s390_emit_less_signed): New function.
8543 (s390_emit_less_unsigned): New function.
8544 (s390_emit_ref): New function.
8545 (s390_emit_if_goto): New function.
8546 (s390_emit_goto): New function.
8547 (s390_write_goto_address): New function.
8548 (s390_emit_litpool): New function.
8549 (s390_emit_const): New function.
8550 (s390_emit_call): New function.
8551 (s390_emit_reg): New function.
8552 (s390_emit_pop): New function.
8553 (s390_emit_stack_flush): New function.
8554 (s390_emit_zero_ext): New function.
8555 (s390_emit_swap): New function.
8556 (s390_emit_stack_adjust): New function.
8557 (s390_emit_set_r2): New function.
8558 (s390_emit_int_call_1): New function.
8559 (s390_emit_void_call_2): New function.
8560 (s390_emit_eq_goto): New function.
8561 (s390_emit_ne_goto): New function.
8562 (s390_emit_lt_goto): New function.
8563 (s390_emit_le_goto): New function.
8564 (s390_emit_gt_goto): New function.
8565 (s390_emit_ge_goto): New function.
8566 (s390x_emit_prologue): New function.
8567 (s390x_emit_epilogue): New function.
8568 (s390x_emit_add): New function.
8569 (s390x_emit_sub): New function.
8570 (s390x_emit_mul): New function.
8571 (s390x_emit_lsh): New function.
8572 (s390x_emit_rsh_signed): New function.
8573 (s390x_emit_rsh_unsigned): New function.
8574 (s390x_emit_ext): New function.
8575 (s390x_emit_log_not): New function.
8576 (s390x_emit_bit_and): New function.
8577 (s390x_emit_bit_or): New function.
8578 (s390x_emit_bit_xor): New function.
8579 (s390x_emit_bit_not): New function.
8580 (s390x_emit_equal): New function.
8581 (s390x_emit_less_signed): New function.
8582 (s390x_emit_less_unsigned): New function.
8583 (s390x_emit_ref): New function.
8584 (s390x_emit_if_goto): New function.
8585 (s390x_emit_const): New function.
8586 (s390x_emit_call): New function.
8587 (s390x_emit_reg): New function.
8588 (s390x_emit_pop): New function.
8589 (s390x_emit_stack_flush): New function.
8590 (s390x_emit_zero_ext): New function.
8591 (s390x_emit_swap): New function.
8592 (s390x_emit_stack_adjust): New function.
8593 (s390x_emit_int_call_1): New function.
8594 (s390x_emit_void_call_2): New function.
8595 (s390x_emit_eq_goto): New function.
8596 (s390x_emit_ne_goto): New function.
8597 (s390x_emit_lt_goto): New function.
8598 (s390x_emit_le_goto): New function.
8599 (s390x_emit_gt_goto): New function.
8600 (s390x_emit_ge_goto): New function.
8601 (s390_emit_ops): New function.
8602 (struct linux_target_ops): Fill in emit_ops hook.
8604 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8607 * Makefile.in: Add s390 IPA files.
8608 * configure.srv: Build IPA for s390.
8609 * linux-s390-ipa.c: New file.
8610 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8611 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8612 (tdesc_s390_linux32): Likewise.
8613 (init_registers_s390_linux32v1): Likewise.
8614 (tdesc_s390_linux32v1): Likewise.
8615 (init_registers_s390_linux32v2): Likewise.
8616 (tdesc_s390_linux32v2): Likewise.
8617 (init_registers_s390_linux64): Likewise.
8618 (tdesc_s390_linux64): Likewise.
8619 (init_registers_s390_linux64v1): Likewise.
8620 (tdesc_s390_linux64v1): Likewise.
8621 (init_registers_s390_linux64v2): Likewise.
8622 (tdesc_s390_linux64v2): Likewise.
8623 (init_registers_s390_te_linux64): Likewise.
8624 (tdesc_s390_te_linux64): Likewise.
8625 (init_registers_s390_vx_linux64): Likewise.
8626 (tdesc_s390_vx_linux64): Likewise.
8627 (init_registers_s390_tevx_linux64): Likewise.
8628 (tdesc_s390_tevx_linux64): Likewise.
8629 (init_registers_s390x_linux64): Likewise.
8630 (tdesc_s390x_linux64): Likewise.
8631 (init_registers_s390x_linux64v1): Likewise.
8632 (tdesc_s390x_linux64v1): Likewise.
8633 (init_registers_s390x_linux64v2): Likewise.
8634 (tdesc_s390x_linux64v2): Likewise.
8635 (init_registers_s390x_te_linux64): Likewise.
8636 (tdesc_s390x_te_linux64): Likewise.
8637 (init_registers_s390x_vx_linux64): Likewise.
8638 (tdesc_s390x_vx_linux64): Likewise.
8639 (init_registers_s390x_tevx_linux64): Likewise.
8640 (tdesc_s390x_tevx_linux64): Likewise.
8641 (have_hwcap_s390_vx): New static variable.
8642 (s390_arch_setup): Fill have_hwcap_s390_vx.
8643 (s390_get_thread_area): New function.
8644 (s390_ft_entry_gpr_esa): New const.
8645 (s390_ft_entry_gpr_zarch): New const.
8646 (s390_ft_entry_misc): New const.
8647 (s390_ft_entry_fr): New const.
8648 (s390_ft_entry_vr): New const.
8649 (s390_ft_main_31): New const.
8650 (s390_ft_main_64): New const.
8651 (s390_ft_exit_fr): New const.
8652 (s390_ft_exit_vr): New const.
8653 (s390_ft_exit_misc): New const.
8654 (s390_ft_exit_gpr_esa): New const.
8655 (s390_ft_exit_gpr_zarch): New const.
8656 (append_insns): New function.
8657 (s390_relocate_instruction): New function.
8658 (s390_install_fast_tracepoint_jump_pad): New function.
8659 (s390_get_min_fast_tracepoint_insn_len): New function.
8660 (s390_get_ipa_tdesc_idx): New function.
8661 (struct linux_target_ops): Wire in the above functions.
8662 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8663 * linux-s390-tdesc.h: New file.
8665 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8667 * linux-s390-low.c (s390_supports_tracepoints): New function.
8668 (struct linux_target_ops): Fill supports_tracepoints hook.
8670 2016-03-18 Yao Qi <yao.qi@linaro.org>
8672 * linux-low.c (lwp_signal_can_be_delivered): New function.
8673 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8675 2016-03-18 Yao Qi <yao.qi@linaro.org>
8677 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8678 0 if signal is enqueued. Remove 'signal' from one debugging
8679 message. Move one debugging message to some lines below.
8680 Remove code setting 'signal' to 0.
8682 2016-03-18 Yao Qi <yao.qi@linaro.org>
8684 * linux-low.c (linux_low_filter_event): Remove redundant
8685 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8687 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8689 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8690 (struct linux_target_ops): Wire in the above.
8692 2016-03-03 Yao Qi <yao.qi@linaro.org>
8694 * linux-low.c: Update comments to start_step_over.
8696 2016-03-03 Yao Qi <yao.qi@linaro.org>
8699 * linux-low.c (handle_extended_wait): Set child suspended
8700 if event_lwp->bp_reinsert isn't zero.
8702 2016-03-02 Yao Qi <yao.qi@linaro.org>
8704 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8705 enqueue_pending_signal.
8707 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8709 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8712 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8714 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8715 (s390_regmap_3264) [!__s390x__]: New global.
8716 (s390_collect_ptrace_register): Skip map entries containing -1.
8717 (s390_supply_ptrace_register): Ditto.
8718 (s390_fill_gprs_high): New function.
8719 (s390_store_gprs_high): New function.
8720 (s390_regsets): Add NT_S390_HIGH_GPRS.
8721 (s390_get_hwcap): Enable on 31-bit.
8722 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8723 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8724 Detect NT_S390_HIGH_GPRS.
8725 (s390_usrregs_info_3264): Enable on 31-bit.
8726 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8727 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8729 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8732 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8733 * configure.srv: Ditto.
8734 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8735 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8736 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8737 (init_registers_amd64_linux): Remove prototype.
8738 (tdesc_amd64_linux): Remove declaration.
8739 (get_ipa_tdesc): New function.
8740 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8741 initialize remaining tdescs.
8742 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8743 (init_registers_i386_linux): Remove prototype.
8744 (tdesc_i386_linux): Remove declaration.
8745 (get_ipa_tdesc): New function.
8746 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8747 initialize remaining tdescs.
8748 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8749 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8750 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8751 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8752 (x86_get_ipa_tdesc_idx): New function.
8753 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8754 * linux-x86-tdesc.h: New file.
8755 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8756 (target_get_ipa_tdesc_idx): New macro.
8757 * tracepoint.c (ipa_tdesc_idx): New macro.
8758 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8759 (symbol_list): Add ipa_tdesc_idx.
8760 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8761 (ipa_tdesc): Remove.
8762 (ipa_tdesc_idx): New variable.
8763 (get_context_regcache): Use get_ipa_tdesc.
8764 (gdb_collect): Ditto.
8766 * tracepoint.h (get_ipa_tdesc): New prototype.
8767 (ipa_tdesc): Remove.
8769 2016-02-24 Pedro Alves <palves@redhat.com>
8771 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8772 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8773 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8774 Factor out common code between the USE_SIGTRAP_SIGINFO and
8775 !USE_SIGTRAP_SIGINFO blocks.
8776 (linux_low_filter_event): Call save_stop_reason instead of
8777 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8779 (linux_wait_1): Update comments.
8781 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8783 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8784 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8785 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8786 ppc_insert_point, ppc_remove_point.
8788 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8790 * linux-s390-low.c (s390_supports_z_point_type): New function.
8791 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8793 2016-02-16 Yao Qi <yao.qi@linaro.org>
8795 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8796 PC. Get pc from regcache_read_pc.
8798 2016-02-12 Yao Qi <yao.qi@linaro.org>
8800 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8801 or linux_get_pc_32bit.
8802 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8804 2016-02-12 Yao Qi <yao.qi@linaro.org>
8806 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8807 arm_linux_get_next_pcs_fixup.
8809 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8811 * tracepoint.c (x_tracepoint_action_download): Change
8812 write_inferior_data_ptr to write_inferior_data_pointer.
8813 (cmd_qtstart): Likewise.
8814 (write_inferior_data_ptr): Remove.
8815 (download_agent_expr): Change write_inferior_data_ptr to
8816 write_inferior_data_pointer.
8817 (download_tracepoint_1): Likewise.
8818 (download_tracepoint): Likewise.
8819 (download_trace_state_variables): Likewise.
8821 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8822 Marcin Kościelnicki <koriakin@0x04.net>
8824 * tracepoint.c (struct tracepoint_action_ops): Remove.
8825 (struct tracepoint_action): Remove ops.
8826 (m_tracepoint_action_download, r_tracepoint_action_download)
8827 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8828 size and offset accordingly.
8829 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8830 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8831 (tracepoint_action_send, tracepoint_action_download): New functions.
8832 Helpers for trace action handlers.
8833 (add_tracepoint_action): Remove setup actions ops.
8834 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8836 2016-02-10 Yao Qi <yao.qi@linaro.org>
8838 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8840 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8842 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8844 * configure: Regenerate.
8846 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8848 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8849 void * to gdb_byte *.
8850 * linux-low.c (siginfo_fixup): Likewise.
8851 (linux_xfer_siginfo): Likewise.
8852 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8854 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8856 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8858 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8860 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8862 * linux-x86-low.c [__x86_64__]: Include
8863 "nat/amd64-linux-siginfo.h".
8864 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8865 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8866 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8867 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8868 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8869 (cpt_si_fd, si_timerid, si_overrun): Move from
8870 nat/amd64-linux-siginfo.c.
8871 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8873 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8875 * server.c (skip_to_semicolon): Remove.
8876 (process_point_options): Use strchrnul instead of
8879 2016-01-26 Yao Qi <yao.qi@linaro.org>
8881 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8882 * linux-low.c (install_software_single_step_breakpoints): Don't
8883 call regcache_read_pc.
8884 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8887 2016-01-26 Yao Qi <yao.qi@linaro.org>
8889 * linux-low.c (install_software_single_step_breakpoints): Call
8890 regcache_read_pc instead of get_pc.
8892 2016-01-26 Yao Qi <yao.qi@linaro.org>
8894 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8895 (unblock_async_io): Rename to ...
8896 (block_unblock_async_io): ... it. New function.
8897 (enable_async_io): Don't install SIGIO handler. Unblock it
8899 (disable_async_io): Don't ignore SIGIO. Block it instead.
8900 (initialize_async_io): Install SIGIO handler. Don't call
8903 2016-01-26 Yao Qi <yao.qi@linaro.org>
8905 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8906 first character is '\003', call *the_target->request_interrupt.
8908 2016-01-25 Yao Qi <yao.qi@linaro.org>
8910 * remote-utils.c (new_thread_notify): Remove.
8911 (dead_thread_notify): Likewise.
8912 * remote-utils.h (new_thread_notify): Remove declaration.
8913 (dead_thread_notify): Likewise.
8915 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8917 * gdb.trace/pending.exp: Fix expected message on continue.
8919 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8921 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8922 it works properly on big-endian machines where sizeof (CORE_ADDR)
8925 2016-01-21 Pedro Alves <palves@redhat.com>
8927 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8928 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8929 * configure: Regenerate.
8931 2016-01-21 Yao Qi <yao.qi@linaro.org>
8933 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8934 is_thumb and set it according to CPSR saved on the stack.
8935 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8936 arm_sigreturn_next_pc.
8938 2016-01-18 Yao Qi <yao.qi@linaro.org>
8940 * linux-low.c (linux_set_pc_64bit): New function.
8941 (linux_get_pc_64bit): New function.
8942 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8944 * linux-sparc-low.c (debug_threads): Remove declaration.
8945 (sparc_get_pc): Remove.
8946 (the_low_target): Use linux_get_pc_64bit instead of
8948 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8949 (the_low_target): Use linux_get_pc_64bit and
8952 2016-01-18 Yao Qi <yao.qi@linaro.org>
8954 * linux-arm-low.c (debug_threads): Remove declaration.
8955 (arm_get_pc, arm_set_pc): Remove.
8956 (the_low_target): Use linux_get_pc_32bit and
8958 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8959 (the_low_target): Use linux_get_pc_32bit and
8961 * linux-cris-low.c (debug_threads): Remove declaration.
8962 (cris_get_pc, cris_set_pc,): Remove.
8963 (the_low_target): Use linux_get_pc_32bit and
8965 * linux-crisv32-low.c (debug_threads): Remove declaration.
8966 (cris_get_pc, cris_set_pc): Remove.
8967 (the_low_target): Use linux_get_pc_32bit and
8969 * linux-low.c: Include inttypes.h.
8970 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8971 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8972 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8973 (the_low_target): Use linux_get_pc_32bit and
8975 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_32bit and
8978 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8979 (the_low_target): Use linux_get_pc_32bit and
8981 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8982 (the_low_target): Use linux_get_pc_32bit and
8984 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8985 (the_low_target): Use linux_get_pc_32bit and
8988 2016-01-18 Gary Benson <gbenson@redhat.com>
8990 * configure.ac (AC_FUNC_FORK): New check.
8991 * config.in: Regenerate.
8992 * configure: Likewise.
8994 2016-01-14 Yao Qi <yao.qi@linaro.org>
8996 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8997 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8998 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8999 arm_get_next_pcs_ctor.
9001 2016-01-12 Josh Stone <jistone@redhat.com>
9002 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9004 * inferiors.h: Include "gdb_vecs.h".
9005 (struct process_info): Add syscalls_to_catch.
9006 * inferiors.c (remove_process): Free syscalls_to_catch.
9007 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9008 syscall_return stops.
9009 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9010 * server.c (handle_general_set): Handle QCatchSyscalls.
9011 (handle_query): Report support for QCatchSyscalls.
9012 * target.h (struct target_ops): Add supports_catch_syscall.
9013 (target_supports_catch_syscall): New macro.
9014 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9015 (struct lwp_info): Add syscall_state.
9016 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9017 Maintain syscall_state and syscalls_to_catch across exec.
9018 (get_syscall_trapinfo): New function, proxy to the_low_target.
9019 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9020 (linux_low_filter_event): Toggle syscall_state entry/return for
9021 syscall traps, and set it ignored for all others.
9022 (gdb_catching_syscalls_p): New function.
9023 (gdb_catch_this_syscall_p): New function.
9024 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9025 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9026 (linux_supports_catch_syscall): New function.
9027 (linux_target_ops): Install it.
9028 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9029 (the_low_target): Install it.
9031 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9033 * acinclude.m4: Include new ../warning.m4 file.
9034 * configure: Regenerated.
9035 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9037 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9039 * ax.c (is_goto_target): Mark static.
9040 * linux-low.c (register_addr): Likewise.
9041 (linux_fetch_registers, linux_store_registers): Likewise.
9042 * mem-break.c (any_persistent_commands): Fix old prototype.
9043 (add_commands_to_breakpoint): Mark static.
9044 * regcache.c (find_register_by_name): Delete unused func.
9045 * remote-utils.c (hex_or_minus_one): Mark static.
9046 * server.c (monitor_show_help): Mark static.
9047 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9048 handle_v_requests): Likewise.
9050 2016-01-12 Pedro Alves <palves@redhat.com>
9052 Remove use of the registered trademark symbol throughout.
9054 2016-01-08 Yao Qi <yao.qi@linaro.org>
9056 * remote-utils.c (getpkt): If c is '\003', call target hook
9059 2016-01-06 Yao Qi <yao.qi@linaro.org>
9061 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9062 linux-aarch32-low.c.
9063 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9064 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9065 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9066 (thumb2_breakpoint): Declare.
9067 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9068 linux-aarch32-low.h.
9069 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9070 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9071 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9073 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9075 * gdbreplay.c (gdbreplay_version): Change copyright year in
9077 * server.c (gdbserver_version): Likewise.
9079 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9081 * server.c (crc32_table): Delete.
9082 (crc32): Use libiberty's xcrc32 function.
9084 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9086 * lynx-low.c (lynx_delete_thread_callback): New function.
9087 (lynx_mourn): Properly delete our process and all of its
9088 threads. Remove call to clear_inferiors.
9090 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9092 * target.c (thread_search_callback): Add check that
9093 the thread_stopped target callback is not NULL before
9096 2015-12-21 Yao Qi <yao.qi@linaro.org>
9098 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9101 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9103 * server.c (handle_query): Call target_supports_software_single_step.
9105 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9107 * linux-low.c (single_step): New function.
9108 (linux_resume_one_lwp_throw): Call single_step.
9109 (start_step_over): Likewise.
9111 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9113 * Makefile.in (SFILES): Append arch/arm-linux.c,
9114 arch/arm-get-next-pcs.c.
9115 (arm-linux.o): New rule.
9116 (arm-get-next-pcs.o): New rule.
9117 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9119 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9120 to linux-aarch32-low.c.
9121 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9122 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9123 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9124 (thumb2_breakpoint_len): Likewise.
9125 (arm_is_thumb_mode): Make non-static.
9126 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9127 from linux-aarch32-low.c.
9128 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9129 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9130 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9131 (thumb2_breakpoint_len): Likewise.
9132 (arm_is_thumb_mode): New declaration.
9133 * linux-arm-low.c: Include arch/arm-linux.h
9134 aarch/arm-get-next-pcs.h, sys/syscall.h.
9135 (get_next_pcs_ops): New struct.
9136 (get_next_pcs_addr_bits_remove): New function.
9137 (get_next_pcs_is_thumb): New function.
9138 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9139 (arm_sigreturn_next_pc): Likewise.
9140 (get_next_pcs_syscall_next_pc): Likewise.
9141 (arm_gdbserver_get_next_pcs): Likewise.
9142 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9144 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9145 * server.h: Include gdb_vecs.h.
9147 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9149 * Makefile.in (SFILES): Append common/common-regcache.c.
9150 (OBS): Append common-regcache.o.
9151 (common-regcache.o): New rule.
9152 * regcache.c (init_register_cache): Initialize cache to
9154 (regcache_raw_read_unsigned): New function.
9155 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9156 register_status enum.
9158 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9160 * linux-aarch64-low.c (the_low_targets): Rename
9161 breakpoint_reinsert_addr to get_next_pcs.
9162 * linux-arm-low.c (the_low_targets): Likewise.
9163 * linux-bfin-low.c (the_low_targets): Likewise.
9164 * linux-cris-low.c (the_low_targets): Likewise.
9165 * linux-crisv32-low.c (the_low_targets): Likewise.
9166 * linux-low.c (can_software_single_step): Likewise.
9167 (install_software_single_step_breakpoints): New function.
9168 (start_step_over): Use install_software_single_step_breakpoints.
9169 * linux-low.h: New CORE_ADDR vector.
9170 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9172 * linux-mips-low.c (the_low_targets): Likewise.
9173 * linux-nios2-low.c (the_low_targets): Likewise.
9174 * linux-sparc-low.c (the_low_targets): Likewise.
9176 2015-12-17 Pedro Alves <palves@redhat.com>
9178 * linux-low.c (linux_kill_one_lwp): Remove references to
9180 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9182 (linux_init_signals): Delete.
9183 (initialize_low): Adjust.
9184 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9186 2015-12-16 Pedro Alves <palves@redhat.com>
9188 * configure.ac (compiler warning flags): When testing a
9189 -Wno-foo option, check whether -Wfoo works instead.
9190 * configure: Regenerate.
9192 2015-12-11 Don Breazeal <donb@codesourcery.com>
9194 * server.c (process_serial_event): Don't exit from gdbserver
9195 in remote mode if there are still active inferiors.
9197 2015-12-11 Yao Qi <yao.qi@linaro.org>
9199 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9200 arm_breakpoint_at if the process is 32-bit.
9202 2015-12-11 Yao Qi <yao.qi@linaro.org>
9204 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9207 2015-12-07 Yao Qi <yao.qi@linaro.org>
9209 * configure.srv: Append arm.o to srv_tgtobj for
9210 aarch64*-*-linux* target.
9211 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9212 from linux-arm-low.c.
9213 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9214 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9215 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9216 (thumb2_breakpoint_len): Likewise.
9217 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9218 (arm_breakpoint_kinds): Likewise.
9219 (arm_breakpoint_kind_from_pc): Likewise.
9220 (arm_sw_breakpoint_from_kind): Likewise.
9221 (arm_breakpoint_kind_from_current_state): Likewise.
9222 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9223 (arm_sw_breakpoint_from_kind): Declare.
9224 (arm_breakpoint_kind_from_current_state): Declare.
9225 (arm_breakpoint_at): Declare.
9226 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9227 arm_sw_breakpoint_from_kind if process is 32-bit.
9228 (aarch64_breakpoint_kind_from_pc): New function.
9229 (aarch64_breakpoint_kind_from_current_state): New function.
9230 (the_low_target): Initialize fields breakpoint_kind_from_pc
9231 and breakpoint_kind_from_current_state.
9232 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9233 linux-aarch32-low.c.
9234 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9235 (arm_breakpoint, arm_breakpoint_len): Likewise.
9236 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9237 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9238 (arm_is_thumb_mode): Likewise.
9239 (arm_breakpoint_at): Likewise.
9240 (arm_breakpoint_kind_from_pc): Likewise.
9241 (arm_sw_breakpoint_from_kind): Likewise.
9242 (arm_breakpoint_kind_from_current_state): Likewise.
9245 2015-08-04 Yao Qi <yao.qi@linaro.org>
9247 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9248 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9249 * server.c (extended_protocol): Remove "static".
9250 * server.h (extended_protocol): Declare it.
9252 2015-12-04 Josh Stone <jistone@redhat.com>
9254 * target.h (struct target_ops) <arch_setup>: Rename to ...
9255 (struct target_ops) <post_create_inferior>: ... this.
9256 (target_arch_setup): Rename to ...
9257 (target_post_create_inferior): ... this, calling post_create_inferior.
9258 * server.c (start_inferior): Update target_arch_setup calls to
9259 target_post_create_inferior.
9260 * linux-low.c (linux_low_ptrace_options): Forward declare.
9261 (linux_arch_setup): Update its comment for general use.
9262 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9263 (struct linux_target_ops): Use linux_post_create_inferior.
9264 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9265 to post_create_inferior.
9266 * nto-low.c (struct nto_target_ops): Likewise.
9267 * spu-low.c (struct spu_target_ops): Likewise.
9268 * win32-low.c (struct win32_target_ops): Likewise.
9270 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9272 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9274 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9276 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9277 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9278 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9279 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9280 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9281 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9282 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9283 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9284 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9285 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9286 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9287 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9289 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9291 * linux-low.c (linux_look_up_symbols): Don't call
9292 linux_supports_traceclone.
9293 * linux-low.h (thread_db_init): Remove use_events argument.
9294 * thread-db.c (thread_db_use_event): Remove global variable.
9295 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9296 (struct thread_db) <td_create_bp>: Remove field.
9297 (thread_db_create_event): Remove function.
9298 (thread_db_enable_reporting): Likewise.
9299 (find_one_thread): Don't check for thread_db_use_events.
9300 (attach_thread): Likewise.
9301 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9302 (try_thread_db_load_1): Don't check for thread_db_use_events.
9303 (thread_db_init): Remove use_events argument and thread events
9305 (remove_thread_event_breakpoints): Remove function.
9306 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9308 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9310 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9312 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9313 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9314 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9315 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9316 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9318 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9320 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9321 * linux-low.c (can_hardware_single_step): Use
9322 supports_hardware_single_step.
9323 (can_software_single_step): New function.
9324 (start_step_over): Call can_software_single_step.
9325 (linux_supports_hardware_single_step): New function.
9326 (struct target_ops) <supports_software_single_step>: Initialize.
9327 * linux-low.h (struct linux_target_ops)
9328 <supports_hardware_single_step>: Initialize.
9329 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9330 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9331 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9332 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9333 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9334 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9335 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9336 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9337 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9338 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9340 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9341 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9343 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9344 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9345 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9348 * target.h (struct target_ops): <supports_software_single_step>:
9350 (target_supports_software_single_step): New macro.
9352 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9354 * linux-low.c (linux_wait_1): Fix pc advance condition.
9355 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9356 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9358 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9360 * linux-arm-low.c (arm_is_thumb_mode): New function.
9361 (arm_breakpoint_at): Use arm_is_thumb_mode.
9362 (arm_breakpoint_kind_from_current_state): New function.
9363 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9365 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9366 (linux_breakpoint_kind_from_current_state): New function.
9367 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9368 * linux-low.h (struct linux_target_ops)
9369 <breakpoint_kind_from_current_state>: New field.
9370 * target.h (struct target_ops): Likewise.
9371 (target_breakpoint_kind_from_current_state): New macro.
9373 2015-11-30 Pedro Alves <palves@redhat.com>
9375 * linux-low.c (linux_resume): Wake up the event loop before
9378 2015-11-30 Pedro Alves <palves@redhat.com>
9380 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9382 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9384 * target.c (struct thread_search): New structure.
9385 (thread_search_callback): New function.
9386 (prev_general_thread): New global.
9387 (prepare_to_access_memory, done_accessing_memory): New functions.
9388 * target.h (prepare_to_access_memory, done_accessing_memory):
9389 Replace macros with function declarations.
9391 2015-11-30 Pedro Alves <palves@redhat.com>
9394 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9395 report TARGET_WAITKIND_NO_RESUMED.
9396 * remote-utils.c (prepare_resume_reply): Handle
9397 TARGET_WAITKIND_NO_RESUMED.
9398 * server.c (report_no_resumed): New global.
9399 (handle_query) <qSupported>: Handle "no-resumed+". Report
9400 "no-resumed+" support.
9401 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9402 return error if the client doesn't support no-resumed events.
9403 (push_stop_notification): New function.
9404 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9405 events if the client supports them.
9407 2015-11-30 Pedro Alves <palves@redhat.com>
9409 * linux-low.c (thread_still_has_status_pending_p): Don't check
9411 (lwp_resumed): New function.
9412 (status_pending_p_callback): Return early if the LWP is not
9413 supposed to be resumed.
9415 2015-11-30 Pedro Alves <palves@redhat.com>
9417 * linux-low.c (handle_extended_wait): Assert that the LWP's
9418 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9419 thread create events, leave the new child's status pending.
9420 (linux_low_filter_event): If GDB wants to hear about thread exit
9421 events, leave the LWP marked dead and don't delete it.
9422 (linux_wait_for_event_filtered): Don't check for thread exit.
9423 (filter_exit_event): New function.
9424 (linux_wait_1): Use it, when returning an exit event.
9425 (linux_resume_one_lwp_throw): Assert that the LWP's
9426 waitstatus is TARGET_WAITKIND_IGNORE.
9427 * remote-utils.c (prepare_resume_reply): Handle
9428 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9429 * server.c (report_thread_events): New global.
9430 (handle_general_set): Handle QThreadEvents.
9431 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9432 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9433 TARGET_WAITKIND_THREAD_EXITED.
9434 * server.h (report_thread_events): Declare.
9436 2015-11-30 Pedro Alves <palves@redhat.com>
9438 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9439 the thread's last_resume_kind was resume_stop.
9441 2015-11-30 Pedro Alves <palves@redhat.com>
9443 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9446 2015-11-30 Pedro Alves <palves@redhat.com>
9448 * server.c (handle_v_requests): Handle vCtrlC.
9450 2015-11-30 Pedro Alves <palves@redhat.com>
9452 * gdbthread.h (find_any_thread_of_pid): Declare.
9453 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9455 * server.c (handle_query): If current_thread is NULL, look for
9456 another thread of the selected process.
9458 2015-11-26 Daniel Colascione <dancol@dancol.org>
9459 Simon Marchi <simon.marchi@ericsson.com>
9461 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9462 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9464 * target.h (struct target_ops) <thread_name>: New field.
9465 (target_thread_name): New macro.
9467 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9469 * regcache.h (regcache_invalidate_pid): Add declaration.
9470 * regcache.c (regcache_invalidate_pid): New function, extracted
9471 from regcache_invalidate.
9472 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9473 Add trivial documentation comment.
9474 * lynx-low.c: Use regcache_invalidate_pid instead of
9475 regcache_invalidate.
9477 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9479 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9480 and Elf64_auxv_t if the target is Android.
9482 2015-11-22 Doug Evans <xdje42@gmail.com>
9484 * target.h: #include <sys/types.h>.
9486 2015-11-19 Pedro Alves <palves@redhat.com>
9488 * linux-low.c (linux_process_qsupported): Change prototype.
9490 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9492 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9493 and adjust to loop over all features.
9494 * server.c (handle_query) <qSupported>: Adjust to call
9495 target_process_qsupported once, passing it a vector of unprocessed
9497 * target.h (struct target_ops) <process_qsupported>: Change
9499 (target_process_qsupported): Adjust.
9501 2015-11-19 Pedro Alves <palves@redhat.com>
9503 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9505 * configure: Regenerate.
9507 2015-11-19 Pedro Alves <palves@redhat.com>
9509 * configure: Regenerate.
9511 2015-11-19 Yao Qi <yao.qi@linaro.org>
9513 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9516 2015-11-19 Yao Qi <yao.qi@linaro.org>
9518 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9519 (struct aarch64_operand): Move enum out.
9521 2015-11-19 Yao Qi <yao.qi@linaro.org>
9523 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9524 struct user_fpsimd_state *.
9525 (aarch64_store_fpregset): Likewise.
9527 2015-11-19 Yao Qi <yao.qi@linaro.org>
9529 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9530 struct user_pt_regs *.
9531 (aarch64_store_gregset): Likewise.
9533 2015-11-18 Pedro Alves <palves@redhat.com>
9535 * Makefile.in (all_object_files): Add $IPA_OBJS.
9537 2015-11-17 Pedro Alves <palves@redhat.com>
9539 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9540 GDB_SIGNAL_0 and gdb_signal_to_string.
9542 2015-11-17 Pedro Alves <palves@redhat.com>
9544 * win32-low.c (handle_output_debug_string): Remove parameter.
9545 (win32_kill): Remove our_status local and adjust call to
9546 handle_output_debug_string.
9547 (get_child_debug_event): Adjust call to
9548 handle_output_debug_string.
9550 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9552 * linux-mips-low.c (mips_fill_gregset): Add cast.
9553 (mips_store_gregset): Likewise.
9554 (mips_fill_fpregset): Likewise.
9555 (mips_store_fpregset): Likewise.
9557 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9559 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9562 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9564 * linux-mips-low.c (mips_linux_new_thread): Change type of
9565 watch_type to enum target_hw_bp_type.
9567 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9569 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9570 Change return type to arm_hwbp_type.
9572 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9574 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9575 (arm_store_gregset): Likewise.
9576 * linux-arm-low.c (arm_get_hwcap): Likewise.
9577 (arm_read_description): Likewise.
9579 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9581 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9583 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9585 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9586 (ppc_fill_vsxregset): Likewise.
9587 (ppc_store_vsxregset): Likewise.
9588 (ppc_fill_vrregset): Likewise.
9589 (ppc_store_vrregset): Likewise.
9590 (ppc_fill_evrregset): Likewise.
9591 (ppc_store_evrregset): Likewise.
9593 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9595 * linux-ppc-low.c (ppc_usrregs_info): Remove
9596 forward-declaration.
9597 (ppc_arch_setup): Move lower in file.
9599 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9601 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9602 (ps_pdwrite): Likewise.
9604 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9606 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9607 to after assert checks.
9609 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9611 * proc-service.c (ps_pdread): Add/adjust casts.
9612 (ps_pdwrite): Add/adjust casts.
9614 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9616 * server.c (handle_search_memory_1): Cast return value of
9619 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9621 * server.c (write_qxfer_response): Change type of data to
9624 2015-10-29 Pedro Alves <palves@redhat.com>
9626 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9628 2015-10-29 Pedro Alves <palves@redhat.com>
9630 * tracepoint.c (clear_installed_tracepoints): Add casts.
9632 2015-10-29 Pedro Alves <palves@redhat.com>
9634 * server.c (handle_v_cont, process_serial_event): Add enum
9635 gdb_signal casts to signal parsing code.
9637 2015-10-29 Pedro Alves <palves@redhat.com>
9639 * linux-low.h (NULL_REGSET): Define.
9640 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9641 * linux-arm-low.c (arm_regsets): Likewise.
9642 * linux-crisv32-low.c (cris_regsets): Likewise.
9643 * linux-m68k-low.c (m68k_regsets): Likewise.
9644 * linux-mips-low.c (mips_regsets): Likewise.
9645 * linux-nios2-low.c (nios2_regsets): Likewise.
9646 * linux-ppc-low.c (ppc_regsets): Likewise.
9647 * linux-s390-low.c (s390_regsets): Likewise.
9648 * linux-sh-low.c (sh_regsets): Likewise.
9649 * linux-sparc-low.c (sparc_regsets): Likewise.
9650 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9651 * linux-tile-low.c (tile_regsets): Likewise.
9652 * linux-x86-low.c (x86_regsets): Likewise.
9653 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9655 2015-10-29 Pedro Alves <palves@redhat.com>
9657 * linux-low.h (NULL_REGSET): Define.
9658 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9659 * linux-arm-low.c (arm_regsets): Likewise.
9660 * linux-crisv32-low.c (cris_regsets): Likewise.
9661 * linux-m68k-low.c (m68k_regsets): Likewise.
9662 * linux-mips-low.c (mips_regsets): Likewise.
9663 * linux-nios2-low.c (nios2_regsets): Likewise.
9664 * linux-ppc-low.c (ppc_regsets): Likewise.
9665 * linux-s390-low.c (s390_regsets): Likewise.
9666 * linux-sh-low.c (sh_regsets): Likewise.
9667 * linux-sparc-low.c (sparc_regsets): Likewise.
9668 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9669 * linux-tile-low.c (tile_regsets): Likewise.
9670 * linux-x86-low.c (x86_regsets): Likewise.
9671 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9673 2015-10-26 Doug Evans <dje@google.com>
9675 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9677 2015-10-26 Doug Evans <dje@google.com>
9679 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9681 2015-10-26 Doug Evans <dje@google.com>
9683 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9685 (attach_thread, find_new_threads_callback): Ditto.
9687 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9689 * mem-break.h (set_breakpoint_data): Remove.
9691 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9693 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9694 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9695 (initialize_low): Remove set_breakpoint_data call.
9696 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9697 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9698 (initialize_low): Remove set_breakpoint_data call.
9699 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9700 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9701 (initialize_low): Remove set_breakpoint_data call.
9703 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9705 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9706 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9707 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9708 * target.h (target_breakpoint_kind_from_pc): New macro.
9710 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9712 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9713 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9714 the default breakpoint kind.
9716 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9718 * linux-arm-low.c (arm_supports_z_point_type): Add software
9721 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9723 * linux-arm-low.c: Refactor breakpoint definitions.
9724 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9725 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9727 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9729 * Makefile.in: Add arm.c/o.
9730 * configure.srv: Likewise.
9731 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9732 (arm_breakpoint_kind_from_pc): New function.
9733 (arm_sw_breakpoint_from_kind): Return proper kind.
9734 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9736 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9738 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9740 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9741 (struct raw_breakpoint) <size>: Remove.
9742 (struct raw_breakpoint) <kind>: Add.
9743 (bp_size): New function.
9744 (bp_opcode): Likewise.
9745 (find_raw_breakpoint_at): Adjust for kind.
9746 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9747 (remove_memory_breakpoint): Adjust for kind call bp_size.
9748 (set_raw_breakpoint_at): Adjust for kind.
9749 (set_breakpoint): Likewise.
9750 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9751 (delete_raw_breakpoint): Adjust for kind.
9752 (delete_breakpoint): Likewise.
9753 (find_gdb_breakpoint): Likewise.
9754 (set_gdb_breakpoint_1): Likewise.
9755 (set_gdb_breakpoint): Likewise.
9756 (delete_gdb_breakpoint_1): Likewise.
9757 (delete_gdb_breakpoint): Likewise.
9758 (uninsert_raw_breakpoint): Likewise.
9759 (reinsert_raw_breakpoint): Likewise.
9760 (set_breakpoint_data): Remove.
9761 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9762 (check_mem_read): Adjust for kind call bp_size.
9763 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9764 (clone_one_breakpoint): Adjust for kind.
9765 * mem-break.h (set_gdb_breakpoint): Likewise.
9766 (delete_gdb_breakpoint): Likewise.
9767 * server.c (process_serial_event): Likewise.
9769 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9771 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9772 (struct linux_target_ops) <breakpoint>: Remove.
9773 (struct linux_target_ops) <breakpoint_len>: Remove.
9774 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9775 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9776 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9777 (arm_sw_breakpoint_from_kind): New function.
9778 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9779 (struct linux_target_ops) <breakpoint>: Remove.
9780 (struct linux_target_ops) <breakpoint_len>: Remove.
9781 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9782 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9783 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9784 (struct linux_target_ops) <breakpoint>: Remove.
9785 (struct linux_target_ops) <breakpoint_len>: Remove.
9786 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9787 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9788 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9789 (struct linux_target_ops) <breakpoint>: Remove.
9790 (struct linux_target_ops) <breakpoint_len>: Remove.
9791 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9792 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9793 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9794 and sw_breakpoint_from_kind to increment the pc.
9795 (linux_breakpoint_kind_from_pc): New function.
9796 (linux_sw_breakpoint_from_kind): New function.
9797 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9798 (initialize_low): Call breakpoint_kind_from_pc and
9799 sw_breakpoint_from_kind to replace breakpoint_data/len.
9800 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9802 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9803 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9804 (struct linux_target_ops) <breakpoint>: Remove.
9805 (struct linux_target_ops) <breakpoint_len>: Remove.
9806 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9807 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9808 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9809 (struct linux_target_ops) <breakpoint>: Remove.
9810 (struct linux_target_ops) <breakpoint_len>: Remove.
9811 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9812 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9813 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9814 (struct linux_target_ops) <breakpoint>: Remove.
9815 (struct linux_target_ops) <breakpoint_len>: Remove.
9816 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9817 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9818 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9819 (struct linux_target_ops) <breakpoint>: Remove.
9820 (struct linux_target_ops) <breakpoint_len>: Remove.
9821 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9822 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9823 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9824 (struct linux_target_ops) <breakpoint>: Remove.
9825 (struct linux_target_ops) <breakpoint_len>: Remove.
9826 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9827 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9828 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9829 (struct linux_target_ops) <breakpoint>: Remove.
9830 (struct linux_target_ops) <breakpoint_len>: Remove.
9831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9832 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9833 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9834 (struct linux_target_ops) <breakpoint>: Remove.
9835 (struct linux_target_ops) <breakpoint_len>: Remove.
9836 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9837 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9838 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9839 (struct linux_target_ops) <breakpoint>: Remove.
9840 (struct linux_target_ops) <breakpoint_len>: Remove.
9841 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9842 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9843 * linux-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9849 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9850 (struct linux_target_ops) <breakpoint>: Remove.
9851 (struct linux_target_ops) <breakpoint_len>: Remove.
9852 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9853 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9854 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9855 (struct linux_target_ops) <breakpoint>: Remove.
9856 (struct linux_target_ops) <breakpoint_len>: Remove.
9857 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9858 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9860 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9862 * linux-cris-low.c (cris_get_pc): Remove void arg.
9864 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9866 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9869 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9871 * inferiors.c (thread_pid_matches_callback): New function.
9872 (find_thread_process): New function.
9873 (remove_thread): Reset current_thread.
9874 (remove_process): Assert threads have been removed first.
9876 2015-10-15 Yao Qi <yao.qi@linaro.org>
9878 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9880 (aarch64_remove_point): Likewise.
9881 * regcache.c (regcache_register_size): New function.
9883 2015-10-12 Yao Qi <yao.qi@linaro.org>
9885 * linux-aarch64-low.c: Update all callers as emit_load_store
9886 is renamed to aarch64_emit_load_store.
9888 2015-10-12 Yao Qi <yao.qi@linaro.org>
9890 * linux-aarch64-low.c: Update all callers of function renaming
9891 from emit_insn to aarch64_emit_insn.
9893 2015-10-12 Yao Qi <yao.qi@linaro.org>
9895 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9896 arch/aarch64-insn.h.
9897 (struct aarch64_memory_operand): Likewise.
9899 (emit_insn): Move to arch/aarch64-insn.c.
9900 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9901 (emit_load_store): Move to arch/aarch64-insn.c.
9902 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9903 (can_encode_int32): Remove.
9905 2015-10-12 Yao Qi <yao.qi@linaro.org>
9907 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9908 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9909 (aarch64_relocate_instruction): Likewise.
9910 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9911 (struct aarch64_insn_visitor): Likewise.
9913 2015-10-12 Yao Qi <yao.qi@linaro.org>
9915 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9916 (struct aarch64_insn_visitor): New.
9917 (struct aarch64_insn_relocation_data): New.
9918 (aarch64_ftrace_insn_reloc_b): New function.
9919 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9920 (aarch64_ftrace_insn_reloc_cb): Likewise.
9921 (aarch64_ftrace_insn_reloc_tb): Likewise.
9922 (aarch64_ftrace_insn_reloc_adr): Likewise.
9923 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9924 (aarch64_ftrace_insn_reloc_others): Likewise.
9926 (aarch64_relocate_instruction): Use visitor.
9928 2015-10-12 Yao Qi <yao.qi@linaro.org>
9930 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9931 int. Add argument buf.
9932 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9933 aarch64_relocate_instruction.
9935 2015-10-12 Yao Qi <yao.qi@linaro.org>
9937 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9938 argument insn. Remove local variable insn. Don't call
9940 (aarch64_install_fast_tracepoint_jump_pad): Call
9943 2015-09-30 Yao Qi <yao.qi@linaro.org>
9945 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9946 (emit_load_store_pair): Likewise.
9948 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9950 * dll.c (match_dll): Add cast(s).
9951 (unloaded_dll): Likewise.
9952 * linux-low.c (second_thread_of_pid_p): Likewise.
9953 (delete_lwp_callback): Likewise.
9954 (count_events_callback): Likewise.
9955 (select_event_lwp_callback): Likewise.
9956 (linux_set_resume_request): Likewise.
9957 * server.c (accumulate_file_name_length): Likewise.
9958 (emit_dll_description): Likewise.
9959 (handle_qxfer_threads_worker): Likewise.
9960 (visit_actioned_threads): Likewise.
9961 * thread-db.c (any_thread_of): Likewise.
9962 * tracepoint.c (same_process_p): Likewise.
9963 (match_blocktype): Likewise.
9964 (build_traceframe_info_xml): Likewise.
9966 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9968 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9970 (gdb_unparse_agent_expr): Likewise.
9971 * hostio.c (require_data): Likewise.
9972 (handle_pread): Likewise.
9973 * linux-low.c (disable_regset): Likewise.
9974 (fetch_register): Likewise.
9975 (store_register): Likewise.
9976 (get_dynamic): Likewise.
9977 (linux_qxfer_libraries_svr4): Likewise.
9978 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9979 (set_fast_tracepoint_jump): Likewise.
9980 (uninsert_fast_tracepoint_jumps_at): Likewise.
9981 (reinsert_fast_tracepoint_jumps_at): Likewise.
9982 (validate_inserted_breakpoint): Likewise.
9983 (clone_agent_expr): Likewise.
9984 * regcache.c (init_register_cache): Likewise.
9985 * remote-utils.c (putpkt_binary_1): Likewise.
9986 (decode_M_packet): Likewise.
9987 (decode_X_packet): Likewise.
9988 (look_up_one_symbol): Likewise.
9989 (relocate_instruction): Likewise.
9990 (monitor_output): Likewise.
9991 * server.c (handle_search_memory): Likewise.
9992 (handle_qxfer_exec_file): Likewise.
9993 (handle_qxfer_libraries): Likewise.
9994 (handle_qxfer): Likewise.
9995 (handle_query): Likewise.
9996 (handle_v_cont): Likewise.
9997 (handle_v_run): Likewise.
9998 (captured_main): Likewise.
9999 * target.c (write_inferior_memory): Likewise.
10000 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10001 * tracepoint.c (init_trace_buffer): Likewise.
10002 (add_tracepoint_action): Likewise.
10003 (add_traceframe): Likewise.
10004 (add_traceframe_block): Likewise.
10005 (cmd_qtdpsrc): Likewise.
10006 (cmd_qtdv): Likewise.
10007 (cmd_qtstatus): Likewise.
10008 (response_source): Likewise.
10009 (response_tsv): Likewise.
10010 (cmd_qtnotes): Likewise.
10011 (gdb_collect): Likewise.
10012 (initialize_tracepoint): Likewise.
10014 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10016 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10017 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10018 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10020 (enum aarch64_condition_codes): New enum.
10021 (w0): New static global.
10024 (struct aarch64_memory_operand) <type>: New
10025 MEMORY_OPERAND_POSTINDEX type.
10026 (postindex_memory_operand): New helper function.
10027 (emit_ret): New function.
10028 (emit_load_store_pair): New function, factored out of emit_stp
10029 with support for MEMORY_OPERAND_POSTINDEX.
10030 (emit_stp): Rewrite using emit_load_store_pair.
10031 (emit_ldp): New function.
10032 (emit_load_store): Likewise.
10033 (emit_ldr): Mention post-index instruction in comment.
10034 (emit_ldrh): New function.
10035 (emit_ldrb): New function.
10036 (emit_ldrsw): Mention post-index instruction in comment.
10037 (emit_str): Likewise.
10038 (emit_subs): New function.
10039 (emit_cmp): Likewise.
10040 (emit_and): Likewise.
10041 (emit_orr): Likewise.
10042 (emit_orn): Likewise.
10043 (emit_eor): Likewise.
10044 (emit_mvn): Likewise.
10045 (emit_lslv): Likewise.
10046 (emit_lsrv): Likewise.
10047 (emit_asrv): Likewise.
10048 (emit_mul): Likewise.
10049 (emit_sbfm): Likewise.
10050 (emit_sbfx): Likewise.
10051 (emit_ubfm): Likewise.
10052 (emit_ubfx): Likewise.
10053 (emit_csinc): Likewise.
10054 (emit_cset): Likewise.
10055 (emit_nop): Likewise.
10056 (emit_ops_insns): New helper function.
10057 (emit_pop): Likewise.
10058 (emit_push): Likewise.
10059 (aarch64_emit_prologue): New function.
10060 (aarch64_emit_epilogue): Likewise.
10061 (aarch64_emit_add): Likewise.
10062 (aarch64_emit_sub): Likewise.
10063 (aarch64_emit_mul): Likewise.
10064 (aarch64_emit_lsh): Likewise.
10065 (aarch64_emit_rsh_signed): Likewise.
10066 (aarch64_emit_rsh_unsigned): Likewise.
10067 (aarch64_emit_ext): Likewise.
10068 (aarch64_emit_log_not): Likewise.
10069 (aarch64_emit_bit_and): Likewise.
10070 (aarch64_emit_bit_or): Likewise.
10071 (aarch64_emit_bit_xor): Likewise.
10072 (aarch64_emit_bit_not): Likewise.
10073 (aarch64_emit_equal): Likewise.
10074 (aarch64_emit_less_signed): Likewise.
10075 (aarch64_emit_less_unsigned): Likewise.
10076 (aarch64_emit_ref): Likewise.
10077 (aarch64_emit_if_goto): Likewise.
10078 (aarch64_emit_goto): Likewise.
10079 (aarch64_write_goto_address): Likewise.
10080 (aarch64_emit_const): Likewise.
10081 (aarch64_emit_call): Likewise.
10082 (aarch64_emit_reg): Likewise.
10083 (aarch64_emit_pop): Likewise.
10084 (aarch64_emit_stack_flush): Likewise.
10085 (aarch64_emit_zero_ext): Likewise.
10086 (aarch64_emit_swap): Likewise.
10087 (aarch64_emit_stack_adjust): Likewise.
10088 (aarch64_emit_int_call_1): Likewise.
10089 (aarch64_emit_void_call_2): Likewise.
10090 (aarch64_emit_eq_goto): Likewise.
10091 (aarch64_emit_ne_goto): Likewise.
10092 (aarch64_emit_lt_goto): Likewise.
10093 (aarch64_emit_le_goto): Likewise.
10094 (aarch64_emit_gt_goto): Likewise.
10095 (aarch64_emit_ge_got): Likewise.
10096 (aarch64_emit_ops_impl): New static global variable.
10097 (aarch64_emit_ops): New target function, return
10098 &aarch64_emit_ops_impl.
10099 (struct linux_target_ops): Install it.
10101 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10103 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10104 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10106 * linux-aarch64-ipa.c: New file.
10107 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10109 (aarch64_get_thread_area): New target method.
10110 (extract_signed_bitfield): New helper function.
10111 (aarch64_decode_ldr_literal): New function.
10112 (enum aarch64_opcodes): New enum.
10113 (struct aarch64_register): New struct.
10114 (struct aarch64_operand): New struct.
10115 (x0): New static global.
10124 (aarch64_register): New helper function.
10125 (register_operand): Likewise.
10126 (immediate_operand): Likewise.
10127 (struct aarch64_memory_operand): New struct.
10128 (offset_memory_operand): New helper function.
10129 (preindex_memory_operand): Likewise.
10130 (enum aarch64_system_control_registers): New enum.
10131 (ENCODE): New macro.
10132 (emit_insn): New helper function.
10133 (emit_b): New function.
10134 (emit_bcond): Likewise.
10135 (emit_cb): Likewise.
10136 (emit_tb): Likewise.
10137 (emit_blr): Likewise.
10138 (emit_stp): Likewise.
10139 (emit_ldp_q_offset): Likewise.
10140 (emit_stp_q_offset): Likewise.
10141 (emit_load_store): Likewise.
10142 (emit_ldr): Likewise.
10143 (emit_ldrsw): Likewise.
10144 (emit_str): Likewise.
10145 (emit_ldaxr): Likewise.
10146 (emit_stxr): Likewise.
10147 (emit_stlr): Likewise.
10148 (emit_data_processing_reg): Likewise.
10149 (emit_data_processing): Likewise.
10150 (emit_add): Likewise.
10151 (emit_sub): Likewise.
10152 (emit_mov): Likewise.
10153 (emit_movk): Likewise.
10154 (emit_mov_addr): Likewise.
10155 (emit_mrs): Likewise.
10156 (emit_msr): Likewise.
10157 (emit_sevl): Likewise.
10158 (emit_wfe): Likewise.
10159 (append_insns): Likewise.
10160 (can_encode_int32_in): New helper function.
10161 (aarch64_relocate_instruction): New function.
10162 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10163 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10164 (struct linux_target_ops): Install aarch64_get_thread_area,
10165 aarch64_install_fast_tracepoint_jump_pad and
10166 aarch64_get_min_fast_tracepoint_insn_len.
10168 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10170 * Makefile.in (aarch64-insn.o): New rule.
10171 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10173 2015-09-21 Yao Qi <yao.qi@linaro.org>
10175 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10177 2015-09-21 Yao Qi <yao.qi@linaro.org>
10179 * tracepoint.c (max_jump_pad_size): Remove.
10181 2015-09-18 Yao Qi <yao.qi@linaro.org>
10183 * linux-aarch64-low.c: Don't include sys/uio.h.
10184 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10186 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10188 * tracepoint.c (eval_result_type): Change prototype.
10189 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10191 2015-09-15 Pedro Alves <palves@redhat.com>
10193 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10194 Check whether to report exec events instead of checking whether
10195 multiprocess is enabled.
10197 2015-09-15 Pedro Alves <palves@redhat.com>
10200 * remote-utils.c (prepare_resume_reply): Merge
10201 TARGET_WAITKIND_VFORK_DONE switch case with the
10202 TARGET_WAITKIND_FORKED case.
10204 2015-09-15 Yao Qi <yao.qi@linaro.org>
10206 * server.c (handle_query): Check string comparison using
10207 "else if" instead of "if".
10209 2015-09-15 Yao Qi <yao.qi@linaro.org>
10211 * server.c (vCont_supported): New global variable.
10212 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10213 matches. Append ";vContSupported+" to own_buf.
10214 (handle_v_requests): Append ";s;S" to own_buf if target supports
10215 hardware single step or vCont_supported is false.
10216 (capture_main): Set vCont_supported to zero.
10218 2015-09-15 Yao Qi <yao.qi@linaro.org>
10220 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10222 (linux_supports_hardware_single_step): ... New function.
10223 (linux_target_ops): Update.
10224 * lynx-low.c (lynx_target_ops): Set field
10225 supports_hardware_single_step to target_can_do_hardware_single_step.
10226 * nto-low.c (nto_target_ops): Likewise.
10227 * spu-low.c (spu_target_ops): Likewise.
10228 * win32-low.c (win32_target_ops): Likewise.
10229 * target.c (target_can_do_hardware_single_step): New function.
10230 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10231 Remove. <supports_hardware_single_step>: New field.
10232 (target_supports_conditional_breakpoints): Remove.
10233 (target_supports_hardware_single_step): New macro.
10234 (target_can_do_hardware_single_step): Declare.
10235 * server.c (handle_query): Use target_supports_hardware_single_step
10236 instead of target_supports_conditional_breakpoints.
10238 2015-09-15 Yao Qi <yao.qi@linaro.org>
10240 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10242 (struct linux_target_ops the_low_target): Install
10243 aarch64_linux_siginfo_fixup.
10245 2015-09-11 Don Breazeal <donb@codesourcery.com>
10246 Luis Machado <lgustavo@codesourcery.com>
10248 * linux-low.c (linux_mourn): Static declaration.
10249 (linux_arch_setup): Move in front of
10250 handle_extended_wait.
10251 (linux_arch_setup_thread): New function.
10252 (handle_extended_wait): Handle exec events. Call
10253 linux_arch_setup_thread. Make event_lwp argument a
10254 pointer-to-a-pointer.
10255 (check_zombie_leaders): Do not check stopped threads.
10256 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10257 (linux_low_filter_event): Add lwp and thread for exec'ing
10258 non-leader thread if leader thread has been deleted.
10259 Refactor code into linux_arch_setup_thread and call it.
10260 Pass child lwp pointer by reference to handle_extended_wait.
10261 (linux_wait_for_event_filtered): Update comment.
10262 (linux_wait_1): Prevent clobbering exec event status.
10263 (linux_supports_exec_events): New function.
10264 (linux_target_ops) <supports_exec_events>: Initialize new member.
10265 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10267 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10268 * server.c (report_exec_events): New global variable.
10269 (handle_query): Handle qSupported query for exec-events feature.
10270 (captured_main): Initialize report_exec_events.
10271 * server.h (report_exec_events): Declare new global variable.
10272 * target.h (struct target_ops) <supports_exec_events>: New
10274 (target_supports_exec_events): New macro.
10275 * win32-low.c (win32_target_ops) <supports_exec_events>:
10276 Initialize new member.
10278 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10280 * linux-low.c (linux_low_enable_btrace): Remove.
10281 (linux_target_ops): Replace linux_low_enable_btrace with
10282 linux_enable_btrace.
10284 2015-09-03 Yao Qi <yao.qi@linaro.org>
10286 * linux-aarch64-low.c (aarch64_insert_point): Call
10287 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10290 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10292 * linux-low.c (check_stopped_by_breakpoint): Use
10293 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10295 2015-08-27 Pedro Alves <palves@redhat.com>
10297 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10299 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10301 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10302 the XNEW-family equivalent.
10303 (compile_bytecodes): Likewise.
10304 * dll.c (loaded_dll): Likewise.
10305 * event-loop.c (append_callback_event): Likewise.
10306 (create_file_handler): Likewise.
10307 (create_file_event): Likewise.
10308 * hostio.c (handle_open): Likewise.
10309 * inferiors.c (add_thread): Likewise.
10310 (add_process): Likewise.
10311 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10312 * linux-arm-low.c (arm_new_process): Likewise.
10313 (arm_new_thread): Likewise.
10314 * linux-low.c (add_to_pid_list): Likewise.
10315 (linux_add_process): Likewise.
10316 (handle_extended_wait): Likewise.
10317 (add_lwp): Likewise.
10318 (enqueue_one_deferred_signal): Likewise.
10319 (enqueue_pending_signal): Likewise.
10320 (linux_resume_one_lwp_throw): Likewise.
10321 (linux_resume_one_thread): Likewise.
10322 (linux_read_memory): Likewise.
10323 (linux_write_memory): Likewise.
10324 * linux-mips-low.c (mips_linux_new_process): Likewise.
10325 (mips_linux_new_thread): Likewise.
10326 (mips_add_watchpoint): Likewise.
10327 * linux-x86-low.c (initialize_low_arch): Likewise.
10328 * lynx-low.c (lynx_add_process): Likewise.
10329 * mem-break.c (set_raw_breakpoint_at): Likewise.
10330 (set_breakpoint): Likewise.
10331 (add_condition_to_breakpoint): Likewise.
10332 (add_commands_to_breakpoint): Likewise.
10333 (clone_agent_expr): Likewise.
10334 (clone_one_breakpoint): Likewise.
10335 * regcache.c (new_register_cache): Likewise.
10336 * remote-utils.c (look_up_one_symbol): Likewise.
10337 * server.c (queue_stop_reply): Likewise.
10338 (start_inferior): Likewise.
10339 (queue_stop_reply_callback): Likewise.
10340 (handle_target_event): Likewise.
10341 * spu-low.c (fetch_ppc_memory): Likewise.
10342 (store_ppc_memory): Likewise.
10343 * target.c (set_target_ops): Likewise.
10344 * thread-db.c (thread_db_load_search): Likewise.
10345 (try_thread_db_load_1): Likewise.
10346 * tracepoint.c (add_tracepoint): Likewise.
10347 (add_tracepoint_action): Likewise.
10348 (create_trace_state_variable): Likewise.
10349 (cmd_qtdpsrc): Likewise.
10350 (cmd_qtro): Likewise.
10351 (add_while_stepping_state): Likewise.
10352 * win32-low.c (child_add_thread): Likewise.
10353 (get_image_name): Likewise.
10355 2015-08-25 Yao Qi <yao.qi@linaro.org>
10357 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10359 2015-08-25 Yao Qi <yao.qi@linaro.org>
10361 * Makefile.in (aarch64-linux.o): New rule.
10362 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10364 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10365 (aarch64_init_debug_reg_state): Make it extern.
10366 (aarch64_linux_prepare_to_resume): Remove.
10368 2015-08-25 Yao Qi <yao.qi@linaro.org>
10370 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10371 lwp_arch_private_info and ptid_of_lwp.
10373 2015-08-25 Yao Qi <yao.qi@linaro.org>
10375 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10376 Find proc_info by find_process_pid. All callers updated.
10378 2015-08-25 Yao Qi <yao.qi@linaro.org>
10380 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10382 (debug_reg_change_callback): Remove.
10383 (aarch64_notify_debug_reg_change): Remove.
10385 2015-08-25 Yao Qi <yao.qi@linaro.org>
10387 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10388 Call current_lwp_ptid.
10390 2015-08-25 Yao Qi <yao.qi@linaro.org>
10392 * linux-aarch64-low.c (debug_reg_change_callback): Use
10395 2015-08-25 Yao Qi <yao.qi@linaro.org>
10397 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10399 2015-08-25 Yao Qi <yao.qi@linaro.org>
10401 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10403 2015-08-25 Yao Qi <yao.qi@linaro.org>
10405 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10408 2015-08-25 Yao Qi <yao.qi@linaro.org>
10410 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10412 (debug_reg_change_callback): Remove argument entry and add argument
10413 lwp. Remove local variable thread. Don't print thread id in the
10414 debugging output. Don't check whether pid of thread equals to pid.
10415 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10416 iterate_over_lwps instead find_inferior.
10418 2015-08-24 Pedro Alves <palves@redhat.com>
10420 * inferiors.c (get_first_process): New function.
10421 * inferiors.h (get_first_process): New declaration.
10422 * remote-utils.c (read_ptid): Default to the first process in the
10423 list, instead of to the current thread's process.
10425 2015-08-24 Pedro Alves <palves@redhat.com>
10427 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10428 * event-loop.c: Likewise.
10429 * remote-utils.c: Likewise.
10430 * tracepoint.c: Likewise.
10432 2015-08-24 Pedro Alves <palves@redhat.com>
10434 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10437 2015-08-21 Pedro Alves <palves@redhat.com>
10439 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10440 instead of literal 1.
10442 2015-08-21 Pedro Alves <palves@redhat.com>
10444 * tdesc.c (default_description): Explicitly zero-initialize.
10446 2015-08-21 Pedro Alves <palves@redhat.com>
10449 * inferiors.c (remove_thread): Discard any pending stop reply for
10451 * server.c (remove_all_on_match_pid): Rename to ...
10452 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10454 (discard_queued_stop_replies): Change parameter to a ptid. Now
10456 (handle_v_kill, kill_inferior_callback, captured_main)
10457 (process_serial_event): Adjust.
10458 * server.h (discard_queued_stop_replies): Declare.
10460 2015-08-21 Pedro Alves <palves@redhat.com>
10462 * linux-low.c (wait_for_sigstop): Always switch to no thread
10463 selected if the previously current thread dies.
10464 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10465 process instead of the current thread's.
10466 * remote-utils.c (input_interrupt): Don't check if there's no
10468 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10469 current thread to the general thread fails, error out.
10470 (handle_qxfer_auxv, handle_qxfer_libraries)
10471 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10472 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10473 (handle_query): Check if there's a thread selected instead of
10474 checking whether there's any thread in the thread list.
10475 (handle_qxfer_threads, handle_qxfer_btrace)
10476 (handle_qxfer_btrace_conf): Don't error out early if there's no
10477 thread in the thread list.
10478 (handle_v_cont, myresume): Don't set the current thread to the
10480 (process_serial_event) <Hg handling>: Also set thread_id if the
10481 previous general thread is still alive.
10482 (process_serial_event) <g/G handling>: If setting the current
10483 thread to the general thread fails, error out.
10484 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10485 thread's lwp instead of the current thread's.
10486 * target.c (set_desired_thread): If the desired thread was not
10487 found, leave the current thread pointing to NULL. Return an int
10488 (boolean) indicating success.
10489 * target.h (set_desired_thread): Change return type to int.
10491 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10493 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10494 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10496 (ps_get_thread_area): New function.
10498 2015-08-19 Gary Benson <gbenson@redhat.com>
10500 * hostio.c (handle_pread): Do not attempt to read more data
10501 than hostio_reply_with_data can fit in a packet.
10503 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10505 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10507 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10509 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10511 2015-08-06 Pedro Alves <palves@redhat.com>
10513 * tracepoint.c (expr_eval_result): Now an int.
10515 2015-08-06 Pedro Alves <palves@redhat.com>
10517 * gdbthread.h (struct regcache): Forward declare.
10518 (struct thread_info) <regcache_data>: Now a struct regcache
10520 * inferiors.c (inferior_regcache_data)
10521 (set_inferior_regcache_data): Now work with struct regcache
10523 * inferiors.h (struct regcache): Forward declare.
10524 (inferior_regcache_data, set_inferior_regcache_data): Now work
10525 with struct regcache pointers.
10526 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10527 (free_register_cache_thread): Remove struct regcache pointer
10530 2015-08-06 Pedro Alves <palves@redhat.com>
10532 * server.c (captured_main): On error, print the exception message
10533 to stderr, and if run_once is set, throw a quit.
10535 2015-08-06 Pedro Alves <palves@redhat.com>
10537 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10538 the current thread.
10540 2015-08-06 Pedro Alves <palves@redhat.com>
10542 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10543 reading beyond the passed in buffer length.
10545 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10547 * tracepoint.c (symbol_list) <required>: Remove.
10549 2015-08-06 Pedro Alves <palves@redhat.com>
10551 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10552 count if stopping and suspending threads.
10553 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10554 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10555 (linux_detach): Complete an ongoing step-over.
10556 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10558 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10559 (linux_wait_1): If passing a signal to the inferior after
10560 finishing a step-over, unsuspend and re-resume all lwps. If we
10561 see a single-step event but the thread should be continuing, don't
10562 pass the trap to gdb.
10563 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10564 internal_error instead of gdb_assert.
10565 (enqueue_pending_signal): New function.
10566 (check_ptrace_stopped_lwp_gone): Add debug output.
10567 (start_step_over): Use internal_error instead of gdb_assert.
10568 (complete_ongoing_step_over): New function.
10569 (linux_resume_one_thread): Don't resume a suspended thread.
10570 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10573 2015-08-06 Pedro Alves <palves@redhat.com>
10575 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10576 (linux_thread_alive): Use lwp_is_marked_dead.
10577 (extended_event_reported): Delete.
10578 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10579 instead of extended_event_reported.
10580 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10582 (lwp_is_marked_dead): New function.
10583 (lwp_running): Use lwp_is_marked_dead.
10584 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10587 2015-08-06 Pedro Alves <palves@redhat.com>
10589 * linux-low.c (linux_wait_1): Move fork event output out of the
10590 !report_to_gdb check. Pass event_child->waitstatus to
10591 target_waitstatus_to_string instead of ourstatus.
10593 2015-08-04 Yao Qi <yao.qi@linaro.org>
10595 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10596 if current_thread is 32 bit.
10598 2015-08-04 Yao Qi <yao.qi@linaro.org>
10600 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10601 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10602 * server.c (extended_protocol): Remove "static".
10603 * server.h (extended_protocol): Declare it.
10605 2015-08-04 Yao Qi <yao.qi@linaro.org>
10607 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10608 both aarch64 and aarch32.
10609 (aarch64_set_pc): Likewise.
10611 2015-08-04 Yao Qi <yao.qi@linaro.org>
10613 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10614 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10615 arm-with-neon.xml to srv_xmlfiles.
10616 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10617 (is_64bit_tdesc): New function.
10618 (aarch64_linux_read_description): New function.
10619 (aarch64_arch_setup): Call aarch64_linux_read_description.
10620 (regs_info): Rename to regs_info_aarch64.
10621 (aarch64_regs_info): Return right regs_info.
10622 (initialize_low_arch): Call initialize_low_arch_aarch32.
10624 2015-08-04 Yao Qi <yao.qi@linaro.org>
10626 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10627 * linux-aarch32-low.c: New file.
10628 * linux-aarch32-low.h: New file.
10629 * linux-arm-low.c (arm_fill_gregset): Move it to
10630 linux-aarch32-low.c.
10631 (arm_store_gregset): Likewise.
10632 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10633 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10634 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10635 (regs_info): Rename to regs_info_arm.
10636 (arm_regs_info): Return regs_info_aarch32 if
10637 have_ptrace_getregset is 1 and target description is
10638 arm_with_neon or arm_with_vfpv3.
10639 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10640 Call initialize_low_arch_aarch32 instead.
10642 2015-08-04 Yao Qi <yao.qi@linaro.org>
10644 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10645 * linux-low.c: ... here.
10646 * linux-low.h (have_ptrace_getregset): Declare it.
10648 2015-08-04 Pedro Alves <palves@redhat.com>
10650 * thread-db.c (struct thread_db): Use new typedefs.
10651 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10653 (disable_thread_event_reporting): Cast result of dlsym to
10654 destination function pointer type.
10655 (thread_db_mourn): Use td_ta_delete_ftype.
10657 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10659 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10661 (CDX_BREAKPOINT): Define for R2.
10662 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10663 (the_low_target): Add comments.
10665 2015-07-30 Yao Qi <yao.qi@linaro.org>
10667 * linux-arm-low.c (arm_hwcap): Remove it.
10668 (arm_read_description): New local variable arm_hwcap. Don't
10669 set arm_hwcap to zero.
10671 2015-07-30 Yao Qi <yao.qi@linaro.org>
10673 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10674 Use regcache->tdesc instead.
10675 (arm_store_wmmxregset): Likewise.
10676 (arm_fill_vfpregset): Likewise.
10677 (arm_store_vfpregset): Likewise.
10679 2015-07-30 Yao Qi <yao.qi@linaro.org>
10681 * linux-arm-low.c: Include arch/arm.h.
10682 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10683 (arm_store_gregset): Likewise.
10685 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10687 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10688 ptrace's 4th parameter.
10690 2015-07-27 Yao Qi <yao.qi@linaro.org>
10692 * configure.srv (case aarch64*-*-linux*): Don't set
10695 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10697 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10699 * linux-arm-low.c: Likewise.
10700 * linux-cris-low.c: Likewise.
10701 * linux-crisv32-low.c: Likewise.
10702 * linux-low.c: Likewise.
10703 * linux-m68k-low.c: Likewise.
10704 * linux-mips-low.c: Likewise.
10705 * linux-nios2-low.c: Likewise.
10706 * linux-s390-low.c: Likewise.
10707 * linux-sparc-low.c: Likewise.
10708 * linux-tic6x-low.c: Likewise.
10709 * linux-tile-low.c: Likewise.
10710 * linux-x86-low.c: Likewise.
10712 2015-07-24 Pedro Alves <palves@redhat.com>
10714 * config.in: Regenerate.
10715 * configure: Regenerate.
10717 2015-07-24 Pedro Alves <palves@redhat.com>
10719 * acinclude.m4: Include ../ptrace.m4.
10720 * configure.ac: Call GDB_AC_PTRACE.
10721 * config.in, configure: Regenerate.
10723 2015-07-24 Yao Qi <yao.qi@linaro.org>
10725 * linux-low.c (linux_create_inferior): Remove setting to
10726 proc->priv->new_inferior.
10727 (linux_attach): Likewise.
10728 (linux_low_filter_event): Likewise.
10729 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10731 2015-07-24 Yao Qi <yao.qi@linaro.org>
10733 * linux-low.c (linux_arch_setup): New function.
10734 (linux_low_filter_event): If proc->tdesc is NULL and
10735 proc->attached is true, call the_low_target.arch_setup.
10736 Otherwise, keep status pending, and return.
10737 (linux_resume_one_lwp_throw): Don't call get_pc if
10738 thread->while_stepping isn't NULL. Don't call
10739 get_thread_regcache if proc->tdesc is NULL.
10740 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10741 (linux_target_ops): Install arch_setup.
10742 * server.c (start_inferior): Call the_target->arch_setup.
10743 * target.h (struct target_ops) <arch_setup>: New field.
10744 (target_arch_setup): New marco.
10745 * lynx-low.c (lynx_target_ops): Update.
10746 * nto-low.c (nto_target_ops): Update.
10747 * spu-low.c (spu_target_ops): Update.
10748 * win32-low.c (win32_target_ops): Update.
10750 2015-07-24 Yao Qi <yao.qi@linaro.org>
10752 * linux-low.c (linux_add_process): Don't set
10753 proc->priv->new_inferior.
10754 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10755 (linux_attach): Likewise.
10757 2015-07-24 Yao Qi <yao.qi@linaro.org>
10759 * server.c (start_inferior): Code refactor.
10761 2015-07-24 Yao Qi <yao.qi@linaro.org>
10763 * server.c (process_serial_event): Set general_thread.
10765 2015-07-21 Yao Qi <yao.qi@linaro.org>
10767 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10768 aarch64_linux_get_debug_reg_capacity.
10770 2015-07-17 Yao Qi <yao.qi@linaro.org>
10772 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10773 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10774 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10775 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10776 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10777 (AARCH64_HWP_ALIGNMENT): Likewise.
10778 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10779 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10780 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10781 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10782 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10783 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10784 (struct aarch64_debug_reg_state): Likewise.
10785 (struct arch_lwp_info): Likewise.
10786 (aarch64_align_watchpoint): Likewise.
10787 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10788 (aarch64_watchpoint_length): Likewise.
10789 (aarch64_point_encode_ctrl_reg): Likewise
10790 (aarch64_point_is_aligned): Likewise.
10791 (aarch64_align_watchpoint): Likewise.
10792 (aarch64_linux_set_debug_regs):
10793 (aarch64_dr_state_insert_one_point): Likewise.
10794 (aarch64_dr_state_remove_one_point): Likewise.
10795 (aarch64_handle_breakpoint): Likewise.
10796 (aarch64_handle_aligned_watchpoint): Likewise.
10797 (aarch64_handle_unaligned_watchpoint): Likewise.
10798 (aarch64_handle_watchpoint): Likewise.
10800 2015-07-17 Yao Qi <yao.qi@linaro.org>
10802 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10803 and don't aarch64_get_debug_reg_state. All callers update.
10804 (aarch64_handle_aligned_watchpoint): Likewise.
10805 (aarch64_handle_unaligned_watchpoint): Likewise.
10806 (aarch64_handle_watchpoint): Likewise.
10807 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10808 (aarch64_remove_point): Likewise.
10810 2015-07-17 Yao Qi <yao.qi@linaro.org>
10812 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10814 (aarch64_handle_unaligned_watchpoint): Likewise.
10816 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10818 Revert the previous 3 commits:
10819 Move gdb_regex* to common/
10820 Move linux_find_memory_regions_full & co.
10821 gdbserver build-id attribute generator
10823 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10824 Jan Kratochvil <jan.kratochvil@redhat.com>
10826 gdbserver build-id attribute generator.
10827 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10828 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10829 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10831 (get_dynamic): Use find_pdhr to traverse program headers.
10832 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10833 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10834 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10835 (get_hex_build_id): New.
10836 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10837 to reply XML document.
10839 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10840 Jan Kratochvil <jan.kratochvil@redhat.com>
10842 * target.c: Include target/target-utils.h and fcntl.h.
10843 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10844 (target_fileio_read_stralloc): New functions.
10846 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10848 * Makefile.in (OBS): Add gdb_regex.o.
10849 (gdb_regex.o): New.
10850 * config.in: Rebuilt.
10851 * configure: Rebuilt.
10853 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10854 Jan Kratochvil <jan.kratochvil@redhat.com>
10856 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10857 * Makefile.in (OBS): Add target-utils.o.
10858 (linux-maps.o, target-utils.o): New.
10859 * configure.srv (srv_linux_obj): Add linux-maps.o.
10861 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10863 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10864 function, return 1.
10865 (the_low_target): Install it.
10867 2015-07-14 Pedro Alves <palves@redhat.com>
10869 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10870 Instead, ignore ECHILD, and throw an error for other errnos.
10872 2015-07-10 Pedro Alves <palves@redhat.com>
10874 * event-loop.c (struct callback_event) <data>: Change type to
10875 gdb_client_data instance instead of gdb_client_data pointer.
10876 (append_callback_event): Adjust.
10878 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10880 * linux-aarch64-low.c: Add comments for each linux_target_ops
10881 method. Remove comments already covered in target_ops and
10882 linux_target_ops definitions.
10883 (the_low_target): Add comments for each unimplemented method.
10885 2015-07-09 Yao Qi <yao.qi@linaro.org>
10887 * linux-aarch64-low.c (aarch64_regmap): Remove.
10888 (aarch64_usrregs_info): Remove.
10889 (regs_info): Set field usrregs to NULL.
10891 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10893 * linux-low.c: Include "rsp-low.h"
10894 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10895 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10896 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10897 (handle_btrace_enable_pt): New.
10898 (handle_btrace_general_set): Support "pt".
10899 (handle_btrace_conf_general_set): Support "pt:size".
10901 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10903 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10906 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10908 * linux-aarch64-low.c: Remove comment about endianness.
10909 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10910 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10913 2015-06-24 Gary Benson <gbenson@redhat.com>
10915 * linux-i386-ipa.c (stdint.h): Do not include.
10916 * lynx-i386-low.c (stdint.h): Likewise.
10917 * lynx-ppc-low.c (stdint.h): Likewise.
10918 * mem-break.c (stdint.h): Likewise.
10919 * thread-db.c (stdint.h): Likewise.
10920 * tracepoint.c (stdint.h): Likewise.
10921 * win32-low.c (stdint.h): Likewise.
10923 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10925 * server.c (write_qxfer_response): Update call to
10926 remote_escape_output.
10928 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10929 Jan Kratochvil <jan.kratochvil@redhat.com>
10931 Merge multiple hex conversions.
10932 * gdbreplay.c (tohex): Rename to 'fromhex'.
10933 (logchar): Use fromhex.
10935 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10937 * server.c (handle_qxfer_libraries): Set `version' attribute for
10940 2015-06-10 Gary Benson <gbenson@redhat.com>
10942 * target.h (struct target_ops) <multifs_open>: New field.
10943 <multifs_unlink>: Likewise.
10944 <multifs_readlink>: Likewise.
10945 * linux-low.c (nat/linux-namespaces.h): New include.
10946 (linux_target_ops): Initialize the_target->multifs_open,
10947 the_target->multifs_unlink and the_target->multifs_readlink.
10948 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10949 * hostio.c (hostio_fs_pid): New static variable.
10950 (hostio_handle_new_gdb_connection): New function.
10951 (handle_setfs): Likewise.
10952 (handle_open): Use the_target->multifs_open as appropriate.
10953 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10954 (handle_readlink): Use the_target->multifs_readlink as
10956 (handle_vFile): Handle vFile:setfs packets.
10957 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10958 after target_handle_new_gdb_connection.
10960 2015-06-10 Gary Benson <gbenson@redhat.com>
10962 * configure.ac (AC_CHECK_FUNCS): Add setns.
10963 * config.in: Regenerate.
10964 * configure: Likewise.
10965 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10966 (linux-namespaces.o): New rule.
10967 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10969 2015-06-09 Gary Benson <gbenson@redhat.com>
10971 * hostio.c (handle_open): Process mode argument with
10972 fileio_to_host_mode.
10974 2015-06-01 Yao Qi <yao.qi@linaro.org>
10976 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10977 * linux-x86-low.c: Likewise.
10979 2015-05-28 Don Breazeal <donb@codesourcery.com>
10981 * linux-low.c (handle_extended_wait): Initialize
10982 thread_info.last_resume_kind for new fork children.
10984 2015-05-15 Pedro Alves <palves@redhat.com>
10986 * target.h (target_handle_new_gdb_connection): Rewrite using if
10987 wrapped in do/while.
10989 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10991 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10992 * configure, config.in: Regenerate.
10993 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10996 2015-05-12 Don Breazeal <donb@codesourcery.com>
10998 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10999 PTRACE_EVENT_VFORK_DONE.
11000 (linux_low_ptrace_options, extended_event_reported): Add vfork
11002 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11003 and "vforkdone" for RSP 'T' Stop Reply Packet.
11004 * server.h (report_vfork_events): Declare
11007 2015-05-12 Don Breazeal <donb@codesourcery.com>
11009 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11010 (the_low_target) <new_fork>: Initialize new member.
11011 * linux-arm-low.c (arm_new_fork): New function.
11012 (the_low_target) <new_fork>: Initialize new member.
11013 * linux-low.c (handle_extended_wait): Call new target function
11015 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11016 * linux-mips-low.c (mips_add_watchpoint): New function
11017 extracted from mips_insert_point.
11018 (the_low_target) <new_fork>: Initialize new member.
11019 (mips_linux_new_fork): New function.
11020 (mips_insert_point): Call mips_add_watchpoint.
11021 * linux-x86-low.c (x86_linux_new_fork): New function.
11022 (the_low_target) <new_fork>: Initialize new member.
11024 2015-05-12 Don Breazeal <donb@codesourcery.com>
11026 * linux-low.c (handle_extended_wait): Implement return value,
11027 rename argument 'event_child' to 'event_lwp', handle
11028 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11029 (linux_low_ptrace_options): New function.
11030 (linux_low_filter_event): Call linux_low_ptrace_options,
11031 use different argument fo linux_enable_event_reporting,
11032 use return value from handle_extended_wait.
11033 (extended_event_reported): New function.
11034 (linux_wait_1): Call extended_event_reported and set
11035 status to report fork events.
11036 (linux_write_memory): Add pid to debug message.
11037 (reset_lwp_ptrace_options_callback): New function.
11038 (linux_handle_new_gdb_connection): New function.
11039 (linux_target_ops): Initialize new structure member.
11040 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11041 * lynx-low.c: Initialize new structure member.
11042 * remote-utils.c (prepare_resume_reply): Implement stop reason
11043 "fork" for "T" stop message.
11044 * server.c (handle_query): Call handle_new_gdb_connection.
11045 * server.h (report_fork_events): Declare global flag.
11046 * target.h (struct target_ops) <handle_new_gdb_connection>:
11048 (target_handle_new_gdb_connection): New macro.
11049 * win32-low.c: Initialize new structure member.
11051 2015-05-12 Don Breazeal <donb@codesourcery.com>
11053 * mem-break.c (APPEND_TO_LIST): Define macro.
11054 (clone_agent_expr): New function.
11055 (clone_one_breakpoint): New function.
11056 (clone_all_breakpoints): New function.
11057 * mem-break.h: Declare new functions.
11059 2015-05-12 Don Breazeal <donb@codesourcery.com>
11061 * linux-low.c (linux_supports_fork_events): New function.
11062 (linux_supports_vfork_events): New function.
11063 (linux_target_ops): Initialize new structure members.
11064 (initialize_low): Call linux_check_ptrace_features.
11065 * lynx-low.c (lynx_target_ops): Initialize new structure
11067 * server.c (report_fork_events, report_vfork_events):
11069 (handle_query): Add new features to qSupported packet and
11071 (captured_main): Initialize new global variables.
11072 * target.h (struct target_ops) <supports_fork_events>:
11074 <supports_vfork_events>: New member.
11075 (target_supports_fork_events): New macro.
11076 (target_supports_vfork_events): New macro.
11077 * win32-low.c (win32_target_ops): Initialize new structure
11080 2015-05-12 Gary Benson <gbenson@redhat.com>
11082 * server.c (handle_qxfer_exec_file): Use current process
11085 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11087 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11088 Remove HAVE_PTRACE_GETREGS conditionals.
11089 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11090 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11092 2015-05-08 Yao Qi <yao.qi@linaro.org>
11094 * linux-low.c (linux_supports_conditional_breakpoints): New
11096 (linux_target_ops): Install new target method.
11097 * lynx-low.c (lynx_target_ops): Install NULL hook for
11098 supports_conditional_breakpoints.
11099 * nto-low.c (nto_target_ops): Likewise.
11100 * spu-low.c (spu_target_ops): Likewise.
11101 * win32-low.c (win32_target_ops): Likewise.
11102 * server.c (handle_query): Check
11103 target_supports_conditional_breakpoints.
11104 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11106 (target_supports_conditional_breakpoints): New macro.
11108 2015-05-06 Pedro Alves <palves@redhat.com>
11111 * server.c (start_inferior): If the process exits, mourn it.
11113 2015-04-21 Gary Benson <gbenson@redhat.com>
11115 * hostio.c (fileio_open_flags_to_host): Factored out to
11116 fileio_to_host_openflags in common/fileio.c. Single use
11119 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11121 * linux-xtensa-low.c (xtensa_fill_gregset)
11122 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11125 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11127 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11128 (regs_info): Replace usrregs pointer with NULL.
11130 2015-04-17 Gary Benson <gbenson@redhat.com>
11132 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11133 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11134 * server.c (handle_qxfer_exec_file): New function.
11135 (qxfer_packets): Add exec-file entry.
11136 (handle_query): Report qXfer:exec-file:read as supported packet.
11138 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11140 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11142 2015-04-09 Gary Benson <gbenson@redhat.com>
11144 * hostio-errno.c (errno_to_fileio_error): Remove function.
11145 Update caller to use remote_fileio_to_fio_error.
11147 2015-04-09 Yao Qi <yao.qi@linaro.org>
11149 * linux-low.c (linux_insert_point): Call
11150 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11151 (linux_remove_point): Call remove_memory_breakpoint if type is
11153 * linux-x86-low.c (x86_insert_point): Don't call
11154 insert_memory_breakpoint.
11155 (x86_remove_point): Don't call remove_memory_breakpoint.
11157 2015-04-01 Pedro Alves <palves@redhat.com>
11158 Cleber Rosa <crosa@redhat.com>
11160 * server.c (gdbserver_usage): Reorganize and extend the usage
11163 2015-03-24 Pedro Alves <palves@redhat.com>
11165 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11166 output. Also dump TRAP_TRACE.
11167 (linux_low_filter_event): In debug output, distinguish a
11168 resume_stop SIGSTOP from a delayed SIGSTOP.
11170 2015-03-24 Gary Benson <gbenson@redhat.com>
11172 * linux-x86-low.c (x86_linux_new_thread): Moved to
11174 (x86_linux_prepare_to_resume): Likewise.
11176 2015-03-24 Gary Benson <gbenson@redhat.com>
11178 * Makefile.in (x86-linux-dregs.o): New rule.
11179 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11180 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11181 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11182 (x86_linux_dr_get): Likewise.
11183 (x86_linux_dr_set): Likewise.
11184 (update_debug_registers_callback): Likewise.
11185 (x86_linux_dr_set_addr): Likewise.
11186 (x86_linux_dr_get_addr): Likewise.
11187 (x86_linux_dr_set_control): Likewise.
11188 (x86_linux_dr_get_control): Likewise.
11189 (x86_linux_dr_get_status): Likewise.
11190 (x86_linux_update_debug_registers): Likewise.
11192 2015-03-24 Gary Benson <gbenson@redhat.com>
11194 * linux-x86-low.c (x86_linux_update_debug_registers):
11195 New function, factored out from...
11196 (x86_linux_prepare_to_resume): ...this.
11198 2015-03-24 Gary Benson <gbenson@redhat.com>
11200 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11201 (x86_linux_dr_set): Likewise.
11202 (update_debug_registers_callback): Likewise.
11203 (x86_linux_dr_set_addr): Likewise.
11204 (x86_linux_dr_get_addr): Likewise.
11205 (x86_linux_dr_set_control): Likewise.
11206 (x86_linux_dr_get_control): Likewise.
11207 (x86_linux_dr_get_status): Likewise.
11208 (x86_linux_prepare_to_resume): Likewise.
11210 2015-03-24 Gary Benson <gbenson@redhat.com>
11212 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11213 Use perror_with_name. Pass string through gettext.
11214 (x86_linux_dr_set): Likewise.
11216 2015-03-24 Gary Benson <gbenson@redhat.com>
11218 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11219 (x86_linux_dr_set_addr): ...this.
11220 (x86_dr_low_get_addr): Rename to...
11221 (x86_linux_dr_get_addr): ...this.
11222 (x86_dr_low_set_control): Rename to...
11223 (x86_linux_dr_set_control): ...this.
11224 (x86_dr_low_get_control): Rename to...
11225 (x86_linux_dr_get_control): ...this.
11226 (x86_dr_low_get_status): Rename to...
11227 (x86_linux_dr_get_status): ...this.
11228 (x86_dr_low): Update with new function names.
11230 2015-03-24 Gary Benson <gbenson@redhat.com>
11232 * Makefile.in (x86-linux.o): New rule.
11233 * configure.srv: Add x86-linux.o to relevant targets.
11234 * linux-low.c (lwp_set_arch_private_info): New function.
11235 (lwp_arch_private_info): Likewise.
11236 * linux-x86-low.c: Include nat/x86-linux.h.
11237 (arch_lwp_info): Removed structure.
11238 (update_debug_registers_callback):
11239 Use lwp_set_debug_registers_changed.
11240 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11241 and lwp_set_debug_registers_changed.
11242 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11244 2015-03-24 Gary Benson <gbenson@redhat.com>
11246 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11247 * linux-arm-low.c (arm_new_thread): Likewise.
11248 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11249 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11250 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11251 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11253 2015-03-24 Gary Benson <gbenson@redhat.com>
11255 * linux-low.c (ptid_of_lwp): New function.
11256 (lwp_is_stopped): Likewise.
11257 (lwp_stop_reason): Likewise.
11258 * linux-x86-low.c (update_debug_registers_callback):
11259 Use lwp_is_stopped.
11260 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11263 2015-03-24 Gary Benson <gbenson@redhat.com>
11265 * linux-low.h (linux_stop_lwp): Remove declaration.
11267 2015-03-24 Gary Benson <gbenson@redhat.com>
11269 * linux-low.h: Include nat/linux-nat.h.
11270 * linux-low.c (iterate_over_lwps_args): New structure.
11271 (iterate_over_lwps_filter): New function.
11272 (iterate_over_lwps): Likewise.
11273 * linux-x86-low.c (update_debug_registers_callback):
11274 Update signature to what iterate_over_lwps expects.
11275 Remove PID check that iterate_over_lwps now performs.
11276 (x86_dr_low_set_addr): Use iterate_over_lwps.
11277 (x86_dr_low_set_control): Likewise.
11279 2015-03-24 Gary Benson <gbenson@redhat.com>
11281 * linux-x86-low.c (x86_debug_reg_state): New function.
11282 (x86_linux_prepare_to_resume): Use the above.
11284 2015-03-24 Gary Benson <gbenson@redhat.com>
11286 * linux-low.c (current_lwp_ptid): New function.
11287 * linux-x86-low.c: Include nat/linux-nat.h.
11288 (x86_dr_low_get_addr): Use current_lwp_ptid.
11289 (x86_dr_low_get_control): Likewise.
11290 (x86_dr_low_get_status): Likewise.
11292 2015-03-20 Pedro Alves <palves@redhat.com>
11294 * tracepoint.c (cmd_qtstatus): Make "str" const.
11296 2015-03-20 Pedro Alves <palves@redhat.com>
11298 * server.c (handle_general_set): Make "req_str" const.
11300 2015-03-19 Pedro Alves <palves@redhat.com>
11302 * linux-low.c (linux_resume_one_lwp): Rename to ...
11303 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11304 instead call perror_with_name.
11305 (check_ptrace_stopped_lwp_gone): New function.
11306 (linux_resume_one_lwp): Reimplement as wrapper around
11307 linux_resume_one_lwp_throw that swallows errors if the LWP is
11310 2015-03-19 Pedro Alves <palves@redhat.com>
11312 * linux-low.c (count_events_callback, select_event_lwp_callback):
11313 No longer check whether the thread has resume_stop as last resume
11316 2015-03-19 Pedro Alves <palves@redhat.com>
11318 * linux-low.c (count_events_callback, select_event_lwp_callback):
11319 Use the lwp's status_pending_p field, not the thread's.
11321 2015-03-19 Pedro Alves <palves@redhat.com>
11323 * linux-low.c (select_event_lwp_callback): Update comments to
11324 no longer mention SIGTRAP.
11326 2015-03-18 Gary Benson <gbenson@redhat.com>
11328 * server.c (handle_query): Do not report vFile:fstat as supported.
11330 2015-03-11 Gary Benson <gbenson@redhat.com>
11332 * hostio.c (sys/types.h): New include.
11333 (sys/stat.h): Likewise.
11334 (common-remote-fileio.h): Likewise.
11335 (handle_fstat): New function.
11336 (handle_vFile): Handle vFile:fstat packets.
11338 2015-03-11 Gary Benson <gbenson@redhat.com>
11340 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11341 struct stat.st_blocks and struct stat.st_blksize.
11342 * configure: Regenerate.
11343 * config.in: Likewise.
11344 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11345 (OBS): Add common-remote-fileio.o.
11346 (common-remote-fileio.o): New rule.
11348 2015-03-09 Pedro Alves <palves@redhat.com>
11350 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11351 'struct sockaddr' pointer in 'accept' call.
11353 2015-03-09 Pedro Alves <palves@redhat.com>
11356 2015-03-07 Pedro Alves <palves@redhat.com>
11357 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11358 or <winsock2.h> here. Instead include "gdb_socket.h".
11359 (remote_open): Use union gdb_sockaddr_u.
11360 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11361 or <winsock2.h> here. Instead include "gdb_socket.h".
11362 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11363 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11365 (init_named_socket, gdb_agent_helper_thread): Use union
11368 2015-03-07 Pedro Alves <palves@redhat.com>
11370 * configure.ac (build_warnings): Move
11371 -Wdeclaration-after-statement to the C-specific set.
11372 * configure: Regenerate.
11374 2015-03-07 Pedro Alves <palves@redhat.com>
11376 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11377 or <winsock2.h> here. Instead include "gdb_socket.h".
11378 (remote_open): Use union gdb_sockaddr_u.
11379 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11380 or <winsock2.h> here. Instead include "gdb_socket.h".
11381 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11382 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11384 (init_named_socket, gdb_agent_helper_thread): Use union
11387 2015-03-07 Pedro Alves <palves@redhat.com>
11389 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11392 2015-03-06 Yao Qi <yao.qi@linaro.org>
11394 * linux-aarch64-low.c (aarch64_insert_point): Use
11395 show_debug_regs as a boolean.
11396 (aarch64_remove_point): Likewise.
11398 2015-03-05 Pedro Alves <palves@redhat.com>
11400 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11401 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11402 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11403 * nto-low.c (nto_target_ops): Likewise.
11404 * spu-low.c (spu_target_ops): Likewise.
11405 * win32-low.c (win32_target_ops): Likewise.
11407 2015-03-04 Pedro Alves <palves@redhat.com>
11409 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11410 Decide whether a breakpoint triggered based on the SIGTRAP's
11412 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11413 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11414 (linux_low_filter_event): Check for breakpoints before checking
11416 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11418 (linux_stopped_by_sw_breakpoint)
11419 (linux_supports_stopped_by_sw_breakpoint)
11420 (linux_stopped_by_hw_breakpoint)
11421 (linux_supports_stopped_by_hw_breakpoint): New functions.
11422 (linux_target_ops): Install new target methods.
11424 2015-03-04 Pedro Alves <palves@redhat.com>
11426 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11427 * server.c (swbreak_feature, hwbreak_feature): New globals.
11428 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11429 (captured_main): Clear swbreak_feature and hwbreak_feature.
11430 * server.h (swbreak_feature, hwbreak_feature): Declare.
11431 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11432 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11433 supports_stopped_by_hw_breakpoint>: New fields.
11434 (target_supports_stopped_by_sw_breakpoint)
11435 (target_stopped_by_sw_breakpoint)
11436 (target_supports_stopped_by_hw_breakpoint)
11437 (target_stopped_by_hw_breakpoint): Declare.
11439 2015-03-04 Pedro Alves <palves@redhat.com>
11441 enum lwp_stop_reason -> enum target_stop_reason
11442 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11443 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11444 (linux_wait_1, stuck_in_jump_pad_callback)
11445 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11446 (linux_stopped_by_watchpoint):
11447 * linux-low.h (enum lwp_stop_reason): Delete.
11448 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11449 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11451 2015-03-04 Yao Qi <yao.qi@linaro.org>
11453 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11455 2015-03-03 Gary Benson <gbenson@redhat.com>
11457 * hostio.c (handle_vFile): Fix prefix lengths.
11459 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11461 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11464 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11466 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11467 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11468 (clean): Add "rm -f" for above C files.
11469 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11470 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11471 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11472 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11473 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11474 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11475 (init_registers_s390x_vx_linux64)
11476 (init_registers_s390x_tevx_linux64)
11477 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11478 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11480 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11481 (s390_store_vxrs_high): New functions.
11482 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11484 (s390_arch_setup): Add logic for selecting one of the new target
11485 descriptions. Activate the new vector regsets if applicable.
11486 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11487 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11488 and init_registers_s390x_tevx_linux64.
11490 2015-03-01 Pedro Alves <palves@redhat.com>
11492 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11495 2015-02-27 Pedro Alves <palves@redhat.com>
11497 * linux-x86-low.c (u_debugreg_offset): New function.
11498 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11500 2015-02-27 Pedro Alves <palves@redhat.com>
11502 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11503 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11504 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11505 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11506 (ps_lsetfpregs, ps_getpid)
11507 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11508 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11509 (ps_lsetxregs, ps_plog): Declare.
11511 2015-02-27 Pedro Alves <palves@redhat.com>
11513 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11514 IP_AGENT_EXPORT_FUNC.
11515 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11516 IP_AGENT_EXPORT_FUNC.
11517 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11518 (IP_AGENT_EXPORT): Delete.
11519 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11520 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11521 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11522 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11523 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11524 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11525 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11526 (traceframe_read_count, traceframe_write_count)
11527 (traceframes_created, trace_state_variables, get_raw_reg)
11528 (get_trace_state_variable_value, set_trace_state_variable_value)
11529 (ust_loaded, helper_thread_id, cmd_buf): Use
11530 IPA_SYM_EXPORTED_NAME.
11531 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11532 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11533 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11534 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11535 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11536 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11537 EXTERN_C_PUSH/EXTERN_C_POP.
11538 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11539 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11540 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11541 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11542 (traceframe_write_count, traceframe_read_count)
11543 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11544 (about_to_request_buffer_space, get_trace_state_variable_value)
11545 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11546 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11547 EXTERN_C_PUSH/EXTERN_C_POP.
11548 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11549 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11550 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11551 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11552 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11553 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11554 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11555 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11557 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11558 (IP_AGENT_EXPORT_VAR_DECL): Define.
11559 (tracing): Declare.
11560 (gdb_agent_get_raw_reg): Declare.
11562 2015-02-27 Tom Tromey <tromey@redhat.com>
11563 Pedro Alves <palves@redhat.com>
11565 Rename symbols whose names are reserved C++ keywords throughout.
11567 2015-02-27 Pedro Alves <palves@redhat.com>
11569 * Makefile.in (COMPILER): New, get it from autoconf.
11570 (CXX): Get from autoconf instead.
11571 (COMPILE.pre): Use COMPILER.
11572 (CC-LD): Rename to ...
11573 (CC_LD): ... this. Use COMPILER.
11574 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11575 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11576 * acinclude.m4: Include build-with-cxx.m4.
11577 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11578 Disable -Werror by default if building in C++ mode.
11579 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11580 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11581 the C++ compiler. Save/restore CXXFLAGS too.
11582 * configure: Regenerate.
11584 2015-02-27 Pedro Alves <palves@redhat.com>
11586 * acinclude.m4: Include libiberty.m4.
11587 * configure.ac: Call libiberty_INIT.
11588 * config.in, configure: Regenerate.
11590 2015-02-26 Pedro Alves <palves@redhat.com>
11592 * linux-low.c (linux_wait_1): When incrementing the PC past a
11593 program breakpoint always use the_low_target.breakpoint_len as
11594 increment, rather than the maximum between that and
11595 the_low_target.decr_pc_after_break.
11597 2015-02-23 Pedro Alves <palves@redhat.com>
11599 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11600 thread was doing a step-over; always adjust the PC if
11601 we stepped over a permanent breakpoint.
11602 (linux_wait_1): If we stepped over breakpoint that was on top of a
11603 permanent breakpoint, manually advance the PC past it.
11605 2015-02-23 Pedro Alves <palves@redhat.com>
11607 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11609 (x86_fill_gregset, x86_store_gregset): Use it when handling
11612 2015-02-20 Pedro Alves <palves@redhat.com>
11614 * thread-db.c: Include "nat/linux-procfs.h".
11615 (thread_db_init): Skip listing new threads if the kernel supports
11616 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11618 2015-02-20 Pedro Alves <palves@redhat.com>
11620 * linux-low.c (status_pending_p_callback): Use ptid_match.
11622 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11624 PR breakpoints/16812
11625 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11626 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11627 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11629 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11631 PR breakpoints/15956
11632 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11634 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11636 * linux-low.c (linux_low_btrace_conf): Print size.
11637 * server.c (handle_btrace_conf_general_set): New.
11638 (hanle_general_set): Call handle_btrace_conf_general_set.
11639 (handle_query): Report Qbtrace-conf:bts:size as supported.
11641 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11643 * linux-low.c (linux_low_enable_btrace): Update parameters.
11644 (linux_low_btrace_conf): New.
11645 (linux_target_ops)<to_btrace_conf>: Initialize.
11646 * server.c (current_btrace_conf): New.
11647 (handle_btrace_enable): Rename to ...
11648 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11649 to target_enable_btrace. Update comment. Update users.
11650 (handle_qxfer_btrace_conf): New.
11651 (qxfer_packets): Add btrace-conf entry.
11652 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11653 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11654 (target_ops)<read_btrace_conf>: New.
11655 (target_enable_btrace): Update parameters.
11656 (target_read_btrace_conf): New.
11658 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11660 * server.c (handle_btrace_general_set): Remove call to
11661 target_supports_btrace.
11662 (supported_btrace_packets): New.
11663 (handle_query): Call supported_btrace_packets.
11664 * target.h: include btrace-common.h.
11665 (btrace_target_info): Removed.
11666 (supports_btrace, target_supports_btrace): Update parameters.
11668 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11670 * Makefile.in (SFILES): Add common/btrace-common.c.
11671 (OBS): Add common/btrace-common.o.
11672 (btrace-common.o): Add build rules.
11673 * linux-low: Include btrace-common.h.
11674 (linux_low_read_btrace): Use struct btrace_data. Call
11675 btrace_data_init and btrace_data_fini.
11677 2015-02-06 Pedro Alves <palves@redhat.com>
11679 * thread-db.c (find_new_threads_callback): Add debug output.
11681 2015-02-04 Pedro Alves <palves@redhat.com>
11683 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11684 (resume_stopped_resumed_lwps): New function.
11685 (linux_wait_for_event_filtered): Use it.
11687 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11689 * Makefile.in (SFILES): Add linux-personality.c.
11690 (linux-personality.o): New rule.
11691 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11692 list of objects to be built.
11693 * linux-low.c: Include nat/linux-personality.h.
11694 (linux_create_inferior): Remove code to disable address space
11695 randomization (moved to ../nat/linux-personality.c). Create
11696 cleanup to disable address space randomization.
11698 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11700 * Makefile.in (posix-strerror.o): New rule.
11701 (mingw-strerror.o): Likewise.
11702 * configure: Regenerated.
11703 * configure.ac: Source file ../common/common.host. Initialize new
11704 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11706 2015-01-14 Yao Qi <yao@codesourcery.com>
11708 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11709 (ppc-linux.o): New rule.
11710 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11711 * configure.ac: AC_CHECK_FUNCS(getauxval).
11712 * config.in: Re-generated.
11713 * configure: Re-generated.
11714 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11715 ppc64_64bit_inferior_p
11717 2015-01-14 Yao Qi <yao@codesourcery.com>
11719 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11720 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11721 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11722 (PT_ORIG_R3, PT_TRAP): Likewise.
11723 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11724 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11725 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11727 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11729 * i387-fp.c (i387_cache_to_xsave): In look over
11730 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11731 zmmh_low_space field by use of zmmh_high_space.
11733 2015-01-09 Pedro Alves <palves@redhat.com>
11735 * linux-low.c (step_over_bkpt): Move higher up in the file.
11736 (handle_extended_wait): Don't store the stop_pc here.
11737 (get_stop_pc): Adjust comments and rename to ...
11738 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11739 stopped for a software breakpoint or hardware breakpoint.
11740 (thread_still_has_status_pending_p): New function.
11741 (status_pending_p_callback): Use
11742 thread_still_has_status_pending_p. If the event is no longer
11743 interesting, resume the LWP.
11744 (handle_tracepoints): Add assert.
11745 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11746 (wstatus_maybe_breakpoint): New function.
11747 (cancel_breakpoint): Delete function.
11748 (check_stopped_by_watchpoint): New function, factored out from
11749 linux_low_filter_event.
11750 (lp_status_maybe_breakpoint): Delete function.
11751 (linux_low_filter_event): Remove filter_ptid argument.
11752 Leave thread group exits pending here. Store the LWP's stop PC.
11753 Always leave events pending.
11754 (linux_wait_for_event_filtered): Pull all events out of the
11755 kernel, and leave them all pending.
11756 (count_events_callback, select_event_lwp_callback): Consider all
11758 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11759 (select_event_lwp): Only give preference to the stepping LWP in
11760 all-stop mode. Adjust comments.
11761 (ignore_event): New function.
11762 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11763 references to cancel_breakpoints. Adjust to renames. Also give
11764 equal priority to all LWPs that have had events in non-stop mode.
11765 If reporting a software breakpoint event, unadjust the LWP's PC.
11766 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11767 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11769 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11770 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11771 (linux_stopped_by_watchpoint): Adjust.
11772 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11773 * linux-low.h (enum lwp_stop_reason): New.
11774 (struct lwp_info) <stop_pc>: Adjust comment.
11775 <stopped_by_watchpoint>: Delete field.
11776 <stop_reason>: New field.
11777 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11778 * mem-break.c (software_breakpoint_inserted_here)
11779 (hardware_breakpoint_inserted_here): New function.
11780 * mem-break.h (software_breakpoint_inserted_here)
11781 (hardware_breakpoint_inserted_here): Declare.
11782 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11783 (cancel_breakpoints): Delete.
11784 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11785 (upload_fast_traceframes): Remove references to
11786 cancel_breakpoints.
11788 2015-01-09 Pedro Alves <palves@redhat.com>
11790 * thread-db.c (find_new_threads_callback): Ignore thread if the
11791 kernel thread ID is -1.
11793 2015-01-09 Pedro Alves <palves@redhat.com>
11795 * linux-low.c (linux_attach_fail_reason_string): Move to
11796 nat/linux-ptrace.c, and rename.
11797 (linux_attach_lwp): Update comment.
11798 (attach_proc_task_lwp_callback): New function.
11799 (linux_attach): Adjust to rename and use
11800 linux_proc_attach_tgid_threads.
11801 (linux_attach_fail_reason_string): Delete declaration.
11803 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11805 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11806 * server.c (gdbserver_version): Likewise.
11808 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11810 * remote-utils.c: Include ctype.h.
11811 (input_interrupt): Explicitly handle the case when the char
11812 received is the NUL byte. Improve the printing of non-ASCII
11815 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11817 * linux-low.c (linux_low_filter_event): Update call to
11818 linux_enable_event_reporting following the addition of
11819 a new parameter to that function.
11821 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11824 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11825 (AARCH64_FPCR_REGNO): Likewise.
11826 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11827 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11828 (aarch64_store_fpregset): Likewise.
11830 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11832 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11833 Remove FIXME comment about assumption about N.
11835 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11837 * configure.ac: If large-file support is disabled in GDBserver,
11838 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11839 * configure: Regenerate.
11841 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11843 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11844 warning upon ENODATA from ptrace.
11845 * linux-s390-low.c (s390_store_tdb): New.
11846 (s390_regsets): Add regset for NT_S390_TDB.
11848 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11850 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11851 without a fill_function.
11852 * linux-s390-low.c (s390_fill_last_break): Remove.
11853 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11854 (s390_arch_setup): Use regset's size instead of fill_function for
11855 loop end condition.
11857 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11859 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11860 the regset's store function when ptrace returned an error.
11861 * regcache.c (get_thread_regcache): Invalidate register cache
11862 before fetching inferior's registers.
11864 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11866 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11867 while-loop as for-loop.
11868 (regsets_store_inferior_registers): Likewise.
11870 2014-11-28 Yao Qi <yao@codesourcery.com>
11872 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11873 * config.in, configure: Re-generate.
11874 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11877 2014-11-21 Yao Qi <yao@codesourcery.com>
11879 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11880 (AC_CHECK_HEADERS): Remove malloc.h.
11881 * configure: Re-generated.
11882 * config.in: Re-generated.
11883 * server.h: Don't include alloca.h and malloc.h.
11884 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11885 Don't include malloc.h.
11887 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11889 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11890 corresponding ERRNO check in same block.
11892 2014-11-12 Pedro Alves <palves@redhat.com>
11894 * server.c (cont_thread): Update comment.
11895 (start_inferior, attach_inferior): No longer clear cont_thread.
11896 (handle_v_cont): No longer set cont_thread.
11897 (captured_main): Clear cont_thread each time a GDB connects.
11899 2014-11-12 Pedro Alves <palves@redhat.com>
11901 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11902 thread, and don't resume all threads if the Hc thread has exited.
11904 2014-11-12 Pedro Alves <palves@redhat.com>
11906 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11907 the process group instead of to a specific LWP.
11909 2014-10-15 Pedro Alves <palves@redhat.com>
11912 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11914 (arm_set_thread_context): Delete.
11915 (the_low_target): Adjust.
11916 * win32-i386-low.c (debug_registers_changed)
11917 (debug_registers_used): Delete.
11918 (update_debug_registers_callback): New function.
11919 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11920 needing to update their debug registers.
11921 (win32_get_current_dr): New function.
11922 (x86_dr_low_get_addr, x86_dr_low_get_control)
11923 (x86_dr_low_get_status): Fetch the debug register from the thread
11925 (i386_initial_stuff): Adjust.
11926 (i386_get_thread_context): Remove current_event parameter. Don't
11927 clear debug_registers_changed nor copy DR values to
11929 (i386_set_thread_context): Delete.
11930 (i386_prepare_to_resume): New function.
11931 (i386_thread_added): Mark the thread as needing to update irs
11933 (the_low_target): Remove i386_set_thread_context and install
11934 i386_prepare_to_resume.
11935 * win32-low.c (win32_get_thread_context): Adjust.
11936 (win32_set_thread_context): Use SetThreadContext
11938 (win32_prepare_to_resume): New function.
11939 (win32_require_context): New function, factored out from ...
11940 (thread_rec): ... this.
11941 (continue_one_thread): Call win32_prepare_to_resume on each thread
11942 we're about to continue.
11943 (win32_resume): Call win32_prepare_to_resume on the event thread.
11944 * win32-low.h (struct win32_thread_info)
11945 <debug_registers_changed>: New field.
11946 (struct win32_target_ops): Change prototype of set_thread_context,
11947 delete set_thread_context and add prepare_to_resume.
11948 (win32_require_context): New declaration.
11950 2014-10-08 Gary Benson <gbenson@redhat.com>
11952 * server.h: Do not include common-exceptions.h.
11954 2014-10-08 Gary Benson <gbenson@redhat.com>
11956 * server.h: Do not include cleanups.h.
11958 2014-09-30 James Hogan <james.hogan@imgtec.com>
11960 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11961 mips64-dsp-linux.c.
11963 2014-09-23 Yao Qi <yao@codesourcery.com>
11965 * linux-low.c (lp_status_maybe_breakpoint): New function.
11966 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11967 (count_events_callback): Likewise.
11968 (select_event_lwp_callback): Likewise.
11969 (cancel_breakpoints_callback): Likewise.
11971 2014-09-19 Don Breazeal <donb@codesourcery.com>
11973 * linux-low.c (handle_extended_wait): Call
11974 linux_ptrace_get_extended_event.
11975 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11976 linux_is_extended_waitstatus.
11978 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11980 * Makefile.in (CPPFLAGS): Define.
11981 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11982 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11984 2014-09-16 Gary Benson <gbenson@redhat.com>
11986 * inferiors.h (current_inferior): Renamed as...
11987 (current_thread): New variable. All uses updated.
11988 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11989 (maybe_move_out_of_jump_pad): Likewise.
11990 (cancel_breakpoint): Likewise.
11991 (linux_low_filter_event): Likewise.
11992 (wait_for_sigstop): Likewise.
11993 (linux_resume_one_lwp): Likewise.
11994 (need_step_over_p): Likewise.
11995 (start_step_over): Likewise.
11996 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11997 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11998 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11999 and save_inferior as saved_thread.
12000 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12002 (regcache_invalidate_thread): Likewise.
12003 * remote-utils.c (prepare_resume_reply): Likewise.
12004 * thread-db.c (thread_db_get_tls_address): Likewise.
12005 (disable_thread_event_reporting): Likewise.
12006 (remove_thread_event_breakpoints): Likewise.
12007 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12009 * target.h (set_desired_inferior): Renamed as...
12010 (set_desired_thread): New declaration. All uses updated.
12011 * server.c (myresume): Updated comment to reference thread instead
12013 (handle_serial_event): Likewise.
12014 (handle_target_event): Likewise.
12016 2014-09-12 Tom Tromey <tromey@redhat.com>
12017 Gary Benson <gbenson@redhat.com>
12019 * regcache.h: Include common-regcache.h.
12020 (regcache_read_pc): Don't declare.
12021 * regcache.c (get_thread_regcache_for_ptid): New function.
12023 2014-09-11 Tom Tromey <tromey@redhat.com>
12024 Gary Benson <gbenson@redhat.com>
12026 * symbol.c: New file.
12027 * Makefile.in (SFILES): Add symbol.c.
12028 (OBS): Add symbol.o.
12030 2014-09-11 Gary Benson <gbenson@redhat.com>
12032 * target.c (target_stop_ptid, target_continue_ptid): New
12035 2014-09-11 Tom Tromey <tromey@redhat.com>
12036 Gary Benson <gbenson@redhat.com>
12038 * target.h: Include target/target.h.
12039 * target.c (target_read_memory, target_read_uint32)
12040 (target_write_memory): New functions.
12042 2014-09-11 Gary Benson <gbenson@redhat.com>
12044 * server.h (debug_hw_points): Don't declare.
12045 * server.c (debug_hw_points): Don't define. Replace all uses
12046 with show_debug_regs.
12047 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12048 all uses with show_debug_regs.
12050 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12052 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12053 endianness into account.
12054 (ppc_supply_ptrace_register): Likewise.
12056 2014-09-03 James Hogan <james.hogan@imgtec.com>
12058 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12059 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12061 2014-09-03 Gary Benson <gbenson@redhat.com>
12063 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12064 ALL_DEBUG_ADDRESS_REGISTERS.
12066 2014-09-02 Gary Benson <gbenson@redhat.com>
12068 * i386-low.h: Renamed as...
12069 * x86-low.h: New file. All type, function and variable name
12070 prefixes changed from "i386_" to "x86_". All references updated.
12071 * i386-low.c: Renamed as...
12072 * x86-low.c: New file. All type, function and variable name
12073 prefixes changed from "i386_" to "x86_". All references updated.
12075 2014-09-02 Gary Benson <gbenson@redhat.com>
12077 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12078 (x86_linux_new_thread): Likewise.
12080 2014-08-29 Gary Benson <gbenson@redhat.com>
12082 * server.h (setjmp.h): Do not include.
12083 (toplevel): Do not declare.
12084 (common-exceptions.h): Include.
12085 (cleanups.h): Likewise.
12086 * server.c (toplevel): Do not define.
12087 (exit_code): New static global.
12088 (detach_or_kill_for_exit_cleanup): New function.
12089 (main): New function. Original main renamed to...
12090 (captured_main): New function.
12091 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12093 2014-08-29 Gary Benson <gbenson@redhat.com>
12095 * Makefile.in (SFILES): Add common/common-exceptions.c.
12096 (OBS): Add common-exceptions.o.
12097 (common-exceptions.o): New rule.
12098 * utils.c (prepare_to_throw_exception): New function.
12100 2014-08-29 Gary Benson <gbenson@redhat.com>
12102 * config.in: Regenerate.
12103 * configure: Likewise.
12105 2014-08-29 Gary Benson <gbenson@redhat.com>
12107 * Makefile.in (SFILES): Add common/cleanups.c.
12109 (cleanups.o): New rule.
12111 2014-08-29 Gary Benson <gbenson@redhat.com>
12113 * utils.c (internal_vwarning): New function.
12115 2014-08-28 Gary Benson <gbenson@redhat.com>
12117 * utils.h (fatal): Remove declaration.
12118 * utils.c (fatal): Remove function.
12120 2014-08-28 Gary Benson <gbenson@redhat.com>
12122 * tracepoint.c (gdb_agent_init): Replace fatal with
12124 (initialize_tracepoint): Likewise.
12126 2014-08-28 Gary Benson <gbenson@redhat.com>
12128 * remote-utils.c (remote_prepare): Replace fatal with error.
12130 2014-08-28 Gary Benson <gbenson@redhat.com>
12132 * linux-low.c (linux_async): Replace fatal with warning.
12133 Tidy up and return.
12134 (linux_start_non_stop): Return -1 if linux_async failed.
12136 2014-08-28 Gary Benson <gbenson@redhat.com>
12138 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12140 (i386_dr_low_get_addr): Remove vague comment.
12141 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12144 2014-08-28 Gary Benson <gbenson@redhat.com>
12146 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12147 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12149 (linux_resume_one_lwp): Likewise.
12150 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12152 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12153 with internal_error.
12154 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12155 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12156 (find_register_by_name): Replace fatal with internal_error.
12157 (find_regno): Likewise.
12158 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12159 * thread-db.c (thread_db_create_event): Likewise.
12160 (thread_db_load_search): Likewise.
12161 (try_thread_db_load_1): Likewise.
12162 * tracepoint.c (get_jump_space_head): Replace fatal with
12164 (claim_trampoline_space): Likewise.
12165 (have_fast_tracepoint_trampoline_buffer): Likewise.
12166 (cmd_qtstart): Likewise.
12167 (stop_tracing): Likewise.
12168 (fast_tracepoint_collecting): Likewise.
12169 (target_malloc): Likewise.
12170 (download_tracepoint): Likewise.
12171 (download_trace_state_variables): Replace check with gdb_assert.
12172 (upload_fast_traceframes): Replace fatal with internal_error.
12174 2014-08-19 Tom Tromey <tromey@redhat.com>
12175 Gary Benson <gbenson@redhat.com>
12177 * Makefile.in (SFILES): Add common/common-debug.c.
12178 (OBS): Add common-debug.o.
12179 (common-debug.o): New rule.
12180 * debug.h (debug_printf): Don't declare.
12181 * debug.c (debug_printf): Renamed and rewritten as...
12182 (debug_vprintf): New function.
12184 2014-08-19 Gary Benson <gbenson@redhat.com>
12186 * utils.h: Do not include print-utils.h.
12188 2014-08-19 Tom Tromey <tromey@redhat.com>
12189 Gary Benson <gbenson@redhat.com>
12191 * server.h: Add static assertion.
12192 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12194 2014-08-19 Tom Tromey <tromey@redhat.com>
12195 Gary Benson <gbenson@redhat.com>
12197 * Makefile.in (SFILES): Add common/errors.c.
12198 (OBS): Add errors.o.
12199 (IPA_OBS): Add errors-ipa.o.
12200 (errors.o): New rule.
12201 (errors-ipa.o): Likewise.
12202 * utils.h (perror_with_name, error, warning): Don't declare.
12203 * utils.c (warning): Renamed and rewritten as...
12204 (vwarning): New function.
12205 (error): Renamed and rewritten as...
12206 (verror): New function.
12207 (internal_error): Renamed and rewritten as...
12208 (internal_verror): New function.
12210 2014-08-07 Gary Benson <gbenson@redhat.com>
12212 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12213 * configure: Regenerate.
12214 * config.in: Likewise.
12215 * server.h: Do not include errno.h.
12216 * event-loop.c: Likewise.
12217 * hostio-errno.c: Likewise.
12218 * linux-low.c: Likewise.
12219 * remote-utils.c: Likewise.
12220 * spu-low.c: Likewise.
12221 * utils.c: Likewise.
12222 * gdbreplay.c: Unconditionally include errno.h.
12224 2014-08-07 Gary Benson <gbenson@redhat.com>
12226 * server.h: Do not include string.h.
12227 * event-loop.c: Likewise.
12228 * linux-low.c: Likewise.
12229 * regcache.c: Likewise.
12230 * remote-utils.c: Likewise.
12231 * spu-low.c: Likewise.
12232 * utils.c: Likewise.
12234 2014-08-07 Gary Benson <gbenson@redhat.com>
12236 * server.h: Do not include gdb_assert.h.
12238 2014-08-07 Gary Benson <gbenson@redhat.com>
12240 * server.h: Do not include common-utils.h.
12242 2014-08-07 Gary Benson <gbenson@redhat.com>
12244 * server.h: Do not include ptid.h.
12245 * notif.h: Likewise.
12247 2014-08-07 Gary Benson <gbenson@redhat.com>
12249 * server.h: Do not include gdb_locale.h.
12251 2014-08-07 Gary Benson <gbenson@redhat.com>
12253 * server.h: Do not include gdb/signals.h.
12254 * win32-low.c: Likewise.
12256 2014-08-07 Gary Benson <gbenson@redhat.com>
12258 * server.h: Do not include pathmax.h.
12260 2014-08-07 Gary Benson <gbenson@redhat.com>
12262 * server.h: Do not include libiberty.h.
12263 * linux-bfin-low.c: Likewise.
12265 2014-08-07 Gary Benson <gbenson@redhat.com>
12267 * server.h: Do not include ansidecl.h.
12269 2014-08-07 Gary Benson <gbenson@redhat.com>
12271 * linux-x86-low.c: Do not include stddef.h.
12272 * lynx-ppc-low.c: Likewise.
12273 * tracepoint.c: Likewise.
12275 2014-08-07 Gary Benson <gbenson@redhat.com>
12277 * server.h: Do not include stdarg.h.
12278 * nto-low.c: Likewise.
12280 2014-08-07 Gary Benson <gbenson@redhat.com>
12282 * server.h: Do not include stdlib.h.
12283 * inferiors.c: Likewise.
12284 * linux-low.c: Likewise.
12285 * regcache.c: Likewise.
12286 * spu-low.c: Likewise.
12287 * tracepoint.c: Likewise.
12288 * utils.c: Likewise.
12290 2014-08-07 Gary Benson <gbenson@redhat.com>
12292 * server.h: Do not include stdio.h.
12293 * linux-low.c: Likewise.
12294 * remote-utils.c: Likewise.
12295 * spu-low.c: Likewise.
12296 * utils.c: Likewise.
12297 * wincecompat.c: Likewise.
12299 2014-08-06 Gary Benson <gbenson@redhat.com>
12301 * regcache.c (init_register_cache): Move conditionals inside if.
12303 2014-08-06 Gary Benson <gbenson@redhat.com>
12305 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12307 2014-07-31 Gary Benson <gbenson@redhat.com>
12309 * ax.h: Do not include server.h.
12310 * gdbthread.h: Likewise.
12311 * lynx-low.h: Likewise.
12312 * notif.h: Likewise.
12314 2014-07-30 Gary Benson <gbenson@redhat.com>
12316 * server.h: Include common-defs.h.
12317 Do not include config.h or build-gnulib-gdbserver/config.h.
12319 2014-07-30 Gary Benson <gbenson@redhat.com>
12321 * hostio-errno.c: Move server.h to top of includes list.
12322 * inferiors.c: Likewise.
12323 * linux-x86-low.c: Likewise.
12324 * notif.c: Include server.h.
12326 2014-07-24 Tom Tromey <tromey@redhat.com>
12327 Gary Benson <gbenson@redhat.com>
12329 * server.h (CORE_ADDR): Now unsigned.
12331 2014-07-16 Pedro Alves <palves@redhat.com>
12333 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12335 2014-07-15 Pedro Alves <palves@redhat.com>
12337 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12340 2014-07-11 Pedro Alves <palves@redhat.com>
12342 * linux-low.c (kill_wait_lwp): New function, based on
12343 kill_one_lwp_callback, but use my_waitpid directly.
12344 (kill_one_lwp_callback, linux_kill): Use it.
12346 2014-06-23 Pedro Alves <palves@redhat.com>
12348 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12349 before setting DR0..DR3.
12351 2014-06-20 Gary Benson <gbenson@redhat.com>
12353 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12354 * configure: Regenerated.
12355 * config.in: Likewise.
12357 2014-06-20 Gary Benson <gbenson@redhat.com>
12359 * Makefile.in (SFILES): Update locations for files moved
12360 from common to nat.
12361 (object file files): Reordered.
12363 2014-06-20 Gary Benson <gbenson@redhat.com>
12365 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12366 (i386_dr_low_set_addr): Likewise.
12367 (i386_dr_low_get_addr): Likewise.
12368 (i386_dr_low_can_set_control): Likewise.
12369 (i386_dr_low_set_control): Likewise.
12370 (i386_dr_low_get_control): Likewise.
12371 (i386_dr_low_get_status): Likewise.
12372 (i386_get_debug_register_length): Likewise.
12373 * linux-x86-low.c (i386_dr_low_set_addr):
12374 Changed signature. Made static.
12375 (i386_dr_low_get_addr): Likewise.
12376 (i386_dr_low_set_control): Likewise.
12377 (i386_dr_low_get_control): Likewise.
12378 (i386_dr_low_get_status): Likewise.
12379 (i386_dr_low): New global variable.
12380 * win32-i386-low.c (i386_dr_low_set_addr):
12381 Changed signature. Made static.
12382 (i386_dr_low_get_addr): Likewise.
12383 (i386_dr_low_set_control): Likewise.
12384 (i386_dr_low_get_control): Likewise.
12385 (i386_dr_low_get_status): Likewise.
12386 (i386_dr_low): New global variable.
12388 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12390 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12391 * Makefile.in (AR, AR_FLAGS): Define.
12392 * configure: Regenerate.
12394 2014-06-19 Gary Benson <gbenson@redhat.com>
12396 * Makefile.in (i386-dregs.o): New rule.
12397 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12398 * i386-low.c (target.h): Remove include.
12399 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12400 (DR_CONTROL_SHIFT): Likewise.
12401 (DR_CONTROL_SIZE): Likewise.
12402 (DR_RW_EXECUTE): Likewise.
12403 (DR_RW_WRITE): Likewise.
12404 (DR_RW_READ): Likewise.
12405 (DR_RW_IORW): Likewise.
12406 (DR_LEN_1): Likewise.
12407 (DR_LEN_2): Likewise.
12408 (DR_LEN_4): Likewise.
12409 (DR_LEN_8): Likewise.
12410 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12411 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12412 (DR_ENABLE_SIZE): Likewise.
12413 (DR_LOCAL_SLOWDOWN): Likewise.
12414 (DR_GLOBAL_SLOWDOWN): Likewise.
12415 (DR_CONTROL_RESERVED): Likewise.
12416 (I386_DR_CONTROL_MASK): Likewise.
12417 (I386_DR_VACANT): Likewise.
12418 (I386_DR_LOCAL_ENABLE): Likewise.
12419 (I386_DR_GLOBAL_ENABLE): Likewise.
12420 (I386_DR_DISABLE): Likewise.
12421 (I386_DR_SET_RW_LEN): Likewise.
12422 (I386_DR_GET_RW_LEN): Likewise.
12423 (I386_DR_WATCH_HIT): Likewise.
12424 (i386_wp_op_t): Likewise.
12425 (i386_show_dr): Likewise.
12426 (i386_length_and_rw_bits): Likewise.
12427 (i386_insert_aligned_watchpoint): Likewise.
12428 (i386_remove_aligned_watchpoint): Likewise.
12429 (i386_handle_nonaligned_watchpoint): Likewise.
12430 i386_update_inferior_debug_regs(): Likewise.
12431 (i386_dr_insert_watchpoint): Likewise.
12432 (i386_dr_remove_watchpoint): Likewise.
12433 (i386_dr_region_ok_for_watchpoint): Likewise.
12434 (i386_dr_stopped_data_address): Likewise.
12435 (i386_dr_stopped_by_watchpoint): Likewise.
12437 2014-06-19 Gary Benson <gbenson@redhat.com>
12439 * i386-low.c (i386_dr_show): Renamed to
12440 i386_show_dr and made static. All uses updated.
12441 (i386_dr_length_and_rw_bits): Renamed to
12442 i386_length_and_rw_bits and made static.
12444 (i386_dr_insert_aligned_watchpoint): Renamed to
12445 i386_insert_aligned_watchpoint and made static.
12447 (i386_dr_remove_aligned_watchpoint): Renamed to
12448 i386_remove_aligned_watchpoint and made static.
12450 (i386_dr_update_inferior_debug_regs): Renamed to
12451 i386_update_inferior_debug_regs and made static.
12454 2014-06-18 Gary Benson <gbenson@redhat.com>
12456 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12457 (i386_dr_low_can_set_control): Likewise.
12458 (i386_get_debug_register_length): Likewise.
12459 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12460 (i386_dr_low_can_set_control): Likewise.
12461 (i386_get_debug_register_length): Likewise.
12463 2014-06-17 Gary Benson <gbenson@redhat.com>
12465 * i386-low.h (i386-dregs.h): New include.
12466 (DR_FIRSTADDR): Now in i386-dregs.h.
12467 (DR_LASTADDR): Likewise.
12468 (DR_NADDR): Likewise.
12469 (DR_STATUS): Likewise.
12470 (DR_CONTROL): Likewise.
12471 (i386_debug_reg_state): Likewise.
12472 (i386_dr_insert_watchpoint): Likewise.
12473 (i386_dr_remove_watchpoint): Likewise.
12474 (i386_dr_region_ok_for_watchpoint): Likewise.
12475 (i386_dr_stopped_data_address): Likewise.
12476 (i386_dr_stopped_by_watchpoint): Likewise.
12477 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12479 2014-06-18 Gary Benson <gbenson@redhat.com>
12481 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12482 i386_dr_insert_watchpoint.
12483 (i386_low_remove_watchpoint): Renamed to
12484 i386_dr_remove_watchpoint.
12485 (i386_low_region_ok_for_watchpoint): Renamed to
12486 i386_dr_region_ok_for_watchpoint.
12487 (i386_low_stopped_data_address): Renamed to
12488 i386_dr_stopped_data_address.
12489 (i386_low_stopped_by_watchpoint): Renamed to
12490 i386_dr_stopped_by_watchpoint.
12491 * i386-low.c (i386_show_dr): Renamed to
12492 i386_dr_show and made nonstatic. All uses updated.
12493 (i386_length_and_rw_bits): Renamed to
12494 i386_dr_length_and_rw_bits and made nonstatic.
12496 (i386_insert_aligned_watchpoint): Renamed to
12497 i386_dr_insert_aligned_watchpoint and made nonstatic.
12499 (i386_remove_aligned_watchpoint): Renamed to
12500 i386_dr_remove_aligned_watchpoint and made nonstatic.
12502 (i386_update_inferior_debug_regs): Renamed to
12503 i386_dr_update_inferior_debug_regs and made nonstatic.
12505 (i386_low_insert_watchpoint): Renamed to
12506 i386_dr_insert_watchpoint. All uses updated.
12507 (i386_low_remove_watchpoint): Renamed to
12508 i386_dr_remove_watchpoint. All uses updated.
12509 (i386_low_region_ok_for_watchpoint): Renamed to
12510 i386_dr_region_ok_for_watchpoint. All uses updated.
12511 (i386_low_stopped_data_address): Renamed to
12512 i386_dr_stopped_data_address. All uses updated.
12513 (i386_low_stopped_by_watchpoint): Renamed to
12514 i386_dr_stopped_by_watchpoint. All uses updated.
12516 2014-06-18 Gary Benson <gbenson@redhat.com>
12518 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12519 (i386_dr_low_can_set_control): Likewise.
12520 (i386_insert_aligned_watchpoint): New check.
12522 2014-06-18 Gary Benson <gbenson@redhat.com>
12524 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12527 2014-06-18 Gary Benson <gbenson@redhat.com>
12529 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12530 instead of fatal and error.
12531 (i386_handle_nonaligned_watchpoint): Likewise.
12533 2014-06-18 Gary Benson <gbenson@redhat.com>
12535 * i386-low.c (i386_get_debug_register_length): New macro.
12536 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12537 (i386_show_dr): Use debug_printf instead of fprintf. Use
12538 phex to format values.
12540 2014-06-18 Gary Benson <gbenson@redhat.com>
12542 * i386-low.h: Comment changes.
12543 * i386-low.c: Likewise.
12545 2014-06-18 Gary Benson <gbenson@redhat.com>
12547 * i386-low.c: Whitespace changes.
12549 2014-06-12 Tom Tromey <tromey@redhat.com>
12551 * utils.c (freeargv): Remove.
12553 2014-06-12 Tom Tromey <tromey@redhat.com>
12555 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12556 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12557 (parse_debug_format_options): Likewise.
12558 (gdbserver_usage): Likewise.
12559 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12560 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12561 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12563 ($(LIBGNU)): Depend on libiberty.
12564 (all-lib): Recurse into all subdirs.
12565 (install-only): Invoke "install" target in subdirs.
12566 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12568 * configure: Rebuild.
12569 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12570 for vasprintf, vsnprintf, or gettimeofday.
12571 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12574 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12576 * development.sh: Delete.
12577 * Makefile.in (config.status): Adjust dependency on development.sh.
12578 * configure.ac: Adjust development.sh source call.
12579 * configure: Regenerate.
12581 2014-06-02 Pedro Alves <palves@redhat.com>
12583 * ax.c (gdb_free_agent_expr): New function.
12584 * ax.h (gdb_free_agent_expr): New declaration.
12585 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12587 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12589 (clear_breakpoint_conditions_and_commands): New function.
12590 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12591 (clear_breakpoint_conditions_and_commands): New declaration.
12593 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12595 * linux-aarch64-low.c (asm/ptrace.h): Include.
12597 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12599 Fix TLS access for -static -pthread.
12600 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12601 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12602 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12604 2014-05-20 Pedro Alves <palves@redhat.com>
12606 * linux-aarch64-low.c (aarch64_insert_point)
12607 (aarch64_remove_point): No longer check whether the type is
12608 supported here. Adjust to new interface.
12609 (the_low_target): Install aarch64_supports_z_point_type as
12610 supports_z_point_type method.
12611 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12612 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12613 instead of a Z packet char. Adjust.
12614 (arm_supports_z_point_type): New function.
12615 (arm_insert_point, arm_remove_point): Adjust to new interface.
12616 (the_low_target): Install arm_supports_z_point_type.
12617 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12618 (cris_insert_point, cris_remove_point): Adjust to new interface.
12619 Don't check whether the type is supported here.
12620 (the_low_target): Install cris_supports_z_point_type.
12621 * linux-low.c (linux_supports_z_point_type): New function.
12622 (linux_insert_point, linux_remove_point): Adjust to new interface.
12623 * linux-low.h (struct linux_target_ops) <insert_point,
12624 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12625 raw_breakpoint pointer parameter.
12626 <supports_z_point_type>: New method.
12627 * linux-mips-low.c (mips_supports_z_point_type): New function.
12628 (mips_insert_point, mips_remove_point): Adjust to new interface.
12629 Use mips_supports_z_point_type.
12630 (the_low_target): Install mips_supports_z_point_type.
12631 * linux-ppc-low.c (the_low_target): Install NULL as
12632 supports_z_point_type method.
12633 * linux-s390-low.c (the_low_target): Install NULL as
12634 supports_z_point_type method.
12635 * linux-sparc-low.c (the_low_target): Install NULL as
12636 supports_z_point_type method.
12637 * linux-x86-low.c (x86_supports_z_point_type): New function.
12638 (x86_insert_point): Adjust to new insert_point interface. Use
12639 insert_memory_breakpoint. Adjust to new
12640 i386_low_insert_watchpoint interface.
12641 (x86_remove_point): Adjust to remove_point interface. Use
12642 remove_memory_breakpoint. Adjust to new
12643 i386_low_remove_watchpoint interface.
12644 (the_low_target): Install x86_supports_z_point_type.
12645 * lynx-low.c (lynx_target_ops): Install NULL as
12646 supports_z_point_type callback.
12647 * nto-low.c (nto_supports_z_point_type): New.
12648 (nto_insert_point, nto_remove_point): Adjust to new interface.
12649 (nto_target_ops): Install nto_supports_z_point_type.
12650 * mem-break.c: Adjust intro comment.
12651 (struct raw_breakpoint) <raw_type, size>: New fields.
12652 <inserted>: Update comment.
12653 <shlib_disabled>: Delete field.
12654 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12655 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12656 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12657 (raw_bkpt_type_to_target_hw_bp_type): New function.
12658 (find_enabled_raw_code_breakpoint_at): New function.
12659 (find_raw_breakpoint_at): New type and size parameters. Use them.
12660 (insert_memory_breakpoint): New function, based off
12661 set_raw_breakpoint_at.
12662 (remove_memory_breakpoint): New function.
12663 (set_raw_breakpoint_at): Reimplement.
12664 (set_breakpoint): New, based on set_breakpoint_at.
12665 (set_breakpoint_at): Reimplement.
12666 (delete_raw_breakpoint): Go through the_target->remove_point
12667 instead of assuming memory breakpoints.
12668 (find_gdb_breakpoint_at): Delete.
12669 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12670 (find_gdb_breakpoint): New function.
12671 (set_gdb_breakpoint_at): Delete.
12672 (z_type_supported): New function.
12673 (set_gdb_breakpoint_1): New function, loosely based off
12674 set_gdb_breakpoint_at.
12675 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12676 (delete_gdb_breakpoint_at): Delete.
12677 (delete_gdb_breakpoint_1): New function, loosely based off
12678 delete_gdb_breakpoint_at.
12679 (delete_gdb_breakpoint): New function.
12680 (clear_gdb_breakpoint_conditions): Rename to ...
12681 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12683 (add_condition_to_breakpoint): Make static.
12684 (add_breakpoint_condition): Take a struct breakpoint pointer
12685 instead of an address. Adjust.
12686 (gdb_condition_true_at_breakpoint): Rename to ...
12687 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12689 (gdb_condition_true_at_breakpoint): Reimplement.
12690 (add_breakpoint_commands): Take a struct breakpoint pointer
12691 instead of an address. Adjust.
12692 (gdb_no_commands_at_breakpoint): Rename to ...
12693 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12694 parameter. Return true if no breakpoint was found. Change debug
12696 (gdb_no_commands_at_breakpoint): Reimplement.
12697 (run_breakpoint_commands): Rename to ...
12698 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12699 and change return type to boolean.
12700 (run_breakpoint_commands): New function.
12701 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12702 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12703 breakpoint. Go through the_target->remove_point instead of
12704 assuming memory breakpoint.
12705 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12706 software and hardware breakpoints.
12707 (reinsert_raw_breakpoint): Go through the_target->insert_point
12708 instead of assuming memory breakpoint.
12709 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12710 software and hardware breakpoints.
12711 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12712 Check both software and hardware breakpoints.
12713 (validate_inserted_breakpoint): Assert the breakpoint is a
12714 software breakpoint. Set the inserted flag to -1 instead of
12715 setting shlib_disabled.
12716 (delete_disabled_breakpoints): Adjust.
12717 (validate_breakpoints): Only validate software breakpoints.
12718 Adjust to inserted flag change.
12719 (check_mem_read, check_mem_write): Skip breakpoint types other
12720 than software breakpoints. Adjust to inserted flag change.
12721 * mem-break.h (enum raw_bkpt_type): New enum.
12722 (raw_breakpoint, struct process_info): Forward declare.
12723 (Z_packet_to_target_hw_bp_type): Delete declaration.
12724 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12725 (set_gdb_breakpoint, delete_gdb_breakpoint)
12726 (clear_breakpoint_conditions): New declarations.
12727 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12728 (breakpoint_inserted_here): Update comment.
12729 (add_breakpoint_condition, add_breakpoint_commands): Replace
12730 address parameter with a breakpoint pointer parameter.
12731 (gdb_breakpoint_here): Update comment.
12732 (delete_gdb_breakpoint_at): Delete.
12733 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12734 * server.c (process_point_options): Take a struct breakpoint
12735 pointer instead of an address. Adjust.
12736 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12737 delete_gdb_breakpoint.
12738 * spu-low.c (spu_target_ops): Install NULL as
12739 supports_z_point_type method.
12740 * target.h: Include mem-break.h.
12741 (struct target_ops) <prepare_to_access_memory>: Update comment.
12742 <supports_z_point_type>: New field.
12743 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12744 instead of a char. Also take a raw breakpoint pointer.
12745 * win32-arm-low.c (the_low_target): Install NULL as
12746 supports_z_point_type.
12747 * win32-i386-low.c (i386_supports_z_point_type): New function.
12748 (i386_insert_point, i386_remove_point): Adjust to new interface.
12749 (the_low_target): Install i386_supports_z_point_type.
12750 * win32-low.c (win32_supports_z_point_type): New function.
12751 (win32_insert_point, win32_remove_point): Adjust to new interface.
12752 (win32_target_ops): Install win32_supports_z_point_type.
12753 * win32-low.h (struct win32_target_ops):
12754 <supports_z_point_type>: New method.
12755 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12756 instead of a char. Also take a raw breakpoint pointer.
12758 2014-05-20 Pedro Alves <palves@redhat.com>
12760 * mem-break.h: Include break-common.h.
12761 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12762 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12763 (Z_packet_to_target_hw_bp_type): New declaration.
12764 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12765 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12766 (Z_PACKET_ACCESS_WP): Delete macros.
12767 (Z_packet_to_hw_type): Delete function.
12768 * i386-low.h: Don't include break-common.h here.
12769 (Z_packet_to_hw_type): Delete declaration.
12770 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12771 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12772 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12773 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12774 * linux-aarch64-low.c: Don't include break-common.h here.
12775 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12776 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12777 (Z_packet_to_target_hw_bp_type): Delete function.
12778 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12780 (mips_insert_point, mips_remove_point): Use
12781 Z_packet_to_target_hw_bp_type.
12783 2014-05-20 Pedro Alves <palves@redhat.com>
12785 * linux-aarch64-low.c: Include break-common.h.
12786 (enum target_point_type): Delete.
12787 (Z_packet_to_point_type): Rename to ...
12788 (Z_packet_to_target_hw_bp_type): ... this, and return a
12789 target_hw_bp_type instead.
12790 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12791 instead of an enum target_point_type.
12792 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12794 (aarch64_dr_state_insert_one_point)
12795 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12796 (aarch64_handle_aligned_watchpoint)
12797 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12798 Take an enum target_hw_bp_type instead of an enum
12800 (aarch64_supports_z_point_type): New function.
12801 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12802 use Z_packet_to_target_hw_bp_type.
12804 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12806 * configure.ac: Only use -Werror by default when DEVELOPMENT
12808 * configure: Regenerate.
12810 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12812 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12813 * linux-x86-low.c (X86_64_USER_REGS): New.
12814 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12816 2014-04-28 Yao Qi <yao@codesourcery.com>
12818 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12821 2014-04-25 Pedro Alves <palves@redhat.com>
12824 * linux-low.c (linux_attach_fail_reason_string): New function.
12825 (linux_attach_lwp): Delete.
12826 (linux_attach_lwp_1): Rename to ...
12827 (linux_attach_lwp): ... this. 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): Adjust to call linux_attach_lwp. Call error on
12831 failure to attach to the tgid. Call warning when failing to
12833 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12834 argument. Remove "initial" parameter. Return int instead of
12835 void. Don't error or warn here.
12836 (linux_attach_fail_reason_string): New declaration.
12837 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12838 interface change. Use linux_attach_fail_reason_string.
12840 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12841 Walfred Tedeschi <walfred.tedeschi@intel.com>
12843 * Makefile.in: Added rules to handle new files
12844 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12845 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12846 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12847 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12848 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12849 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12850 x32-avx512-linux.o.
12851 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12852 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12853 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12854 i386/x32-avx512.xml.
12855 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12856 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12857 i386/x32-avx512-linux.xml.
12858 * i387-fp.c (num_avx512_k_registers): New constant for number
12860 (num_avx512_zmmh_low_registers): New constant for number of
12861 lower ZMM registers (0-15).
12862 (num_avx512_zmmh_high_registers): New constant for number of
12863 higher ZMM registers (16-31).
12864 (num_avx512_ymmh_registers): New contant for number of higher
12865 YMM registers (ymm16-31 added by avx521 on x86_64).
12866 (num_avx512_xmm_registers): New constant for number of higher
12867 XMM registers (xmm16-31 added by AVX512 on x86_64).
12868 (struct i387_xsave): Add space for AVX512 registers.
12869 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12870 Add code to handle AVX512 registers.
12871 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12872 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12873 prototypei from generated file.
12874 (tdesc_amd64_avx512_linux): Likewise.
12875 (init_registers_x32_avx512_linux): Likewise.
12876 (tdesc_x32_avx512_linux): Likewise.
12877 (init_registers_i386_avx512_linux): Likewise.
12878 (tdesc_i386_avx512_linux): Likewise.
12879 (x86_64_regmap): Add AVX512 registers.
12880 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12882 (initialize_low_arch): Add code to initialize AVX512 registers.
12884 2014-04-23 Pedro Alves <palves@redhat.com>
12886 * mem-break.c (find_gdb_breakpoint_at): Make static.
12887 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12889 2014-04-23 Pedro Alves <palves@redhat.com>
12891 * i386-low.c: Don't include break-common.h here.
12892 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12893 prototype to take target_hw_bp_type as argument instead of a Z
12895 * i386-low.h: Include break-common.h here.
12896 (Z_packet_to_hw_type): Declare.
12897 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12899 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12900 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12901 (x86_remove_point): Convert the packet number to a
12902 target_hw_bp_type before calling i386_low_remove_watchpoint.
12903 * win32-i386-low.c (i386_insert_point): Convert the packet number
12904 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12905 (i386_remove_point): Convert the packet number to a
12906 target_hw_bp_type before calling i386_low_remove_watchpoint.
12908 2014-04-23 Pedro Alves <palves@redhat.com>
12910 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12912 2014-04-10 Pedro Alves <palves@redhat.com>
12914 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12915 Check if the condition or command is NULL before checking if the
12916 breakpoint is known. On success, return true.
12917 * mem-break.h (add_breakpoint_condition): Document return.
12918 (add_breakpoint_commands): Add describing comment.
12919 * server.c (skip_to_semicolon): New function.
12920 (process_point_options): Use it.
12922 2014-04-09 Pedro Alves <palves@redhat.com>
12924 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12927 2014-02-27 Pedro Alves <palves@redhat.com>
12930 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12932 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12934 (last_thread_of_process_p): Take a PID argument instead of a
12936 (linux_wait_for_lwp): Delete.
12937 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12939 (linux_low_filter_event): New function, party factored out from
12940 linux_wait_for_event.
12941 (linux_wait_for_event): Rename to ...
12942 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12943 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12944 sigsuspend. Check for zombie leaders.
12945 (linux_wait_for_event): Reimplement as wrapper around
12946 linux_wait_for_event_filtered.
12947 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12948 a normal or signal exit is seen, it's the whole process exiting.
12949 (wait_for_sigstop): No longer a for_each_inferior callback.
12950 Rewrite on top of linux_wait_for_event_filtered.
12951 (stop_all_lwps): Call wait_for_sigstop directly.
12952 * server.c (resume, handle_target_event): Handle
12953 TARGET_WAITKIND_NO_RESUMED.
12955 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12957 * win32-low.c (psapi_get_dll_name,
12958 * win32_CreateToolhelp32Snapshot): Delete.
12959 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12960 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12962 (handle_load_dll): Add function description.
12963 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12965 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12967 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12969 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12970 base address when calling win32_add_one_solib.
12971 (handle_load_dll): Delete local variable load_addr.
12972 Remove 0x1000 offset applied to DLL base address when calling
12973 win32_add_one_solib.
12974 (handle_unload_dll): Add comment.
12976 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12978 * win32-low.c (win32_add_all_dlls): Renames
12979 win32_ensure_ntdll_loaded. Rewrite function documentation.
12980 Adjust implementation to always load all DLLs.
12981 Add 0x1000 offset to DLL base address when calling
12982 win32_add_one_solib.
12983 (child_initialization_done): New static global.
12984 (do_initial_child_stuff): Set child_initialization_done to
12985 zero during child initialization, and 1 after. Replace call
12986 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12988 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12989 (handle_unload_dll): Add function documentation.
12990 (get_child_debug_event): Ignore load and unload DLL events
12991 during child initialization.
12993 2014-02-20 Doug Evans <dje@google.com>
12995 Remove global all_lwps.
12996 * inferiors.h (ptid_of): Move here from linux-low.h.
12997 (pid_of, lwpid_of): Ditto.
12998 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12999 parameter is a struct thread_info * now.
13000 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13001 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13002 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13004 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13005 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13006 * linux-arm-low.c (update_registers_callback): Update, "entry"
13007 parameter is a struct thread_info * now.
13008 Fetch lwpid from current_inferior directly.
13009 (arm_insert_point): Pass &all_threads to find_inferior instead of
13011 (arm_remove_point): Ditto.
13012 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13013 (arm_prepare_to_resume): Fetch pid from thread.
13014 (arm_read_description): Fetch lwpid from current_inferior directly.
13015 * linux-low.c (all_lwps): Delete.
13016 (delete_lwp): Delete call to remove_inferior.
13017 (handle_extended_wait): Fetch lwpid from thread.
13018 (add_lwp): Don't set lwp->entry.id. Remove call to
13019 add_inferior_to_list.
13020 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13021 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13022 (kill_one_lwp_callback): Ditto.
13023 (linux_kill): Don't dereference NULL pointer.
13024 Fetch ptid,lwpid from thread.
13025 (get_detach_signal): Fetch ptid from thread.
13026 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13027 Simplify call to regcache_invalidate_thread.
13028 (delete_lwp_callback): Update, "entry" parameter is a
13029 struct thread_info * now. Fetch pid from thread.
13030 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13031 (status_pending_p_callback): Update, "entry" parameter is a
13032 struct thread_info * now. Fetch ptid from thread.
13033 (find_lwp_pid): Update, "entry" parameter is a
13034 struct thread_info * now.
13035 (linux_wait_for_lwp): Fetch pid from thread.
13036 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13037 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13038 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13039 (dequeue_one_deferred_signal): Ditto.
13040 (cancel_breakpoint): Fetch ptid from current_inferior.
13041 (linux_wait_for_event): Pass &all_threads to find_inferior,
13042 not &all_lwps. Fetch ptid, lwpid from thread.
13043 (count_events_callback): Update, "entry" parameter is a
13044 struct thread_info * now.
13045 (select_singlestep_lwp_callback): Ditto.
13046 (select_event_lwp_callback): Ditto.
13047 (cancel_breakpoints_callback): Ditto.
13048 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13050 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13051 (unsuspend_one_lwp): Update, "entry" parameter is a
13052 struct thread_info * now.
13053 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13055 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13056 Fetch lwpid from thread, not lwp.
13057 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13058 Pass &all_threads to find_inferior, not &all_lwps.
13059 (send_sigstop): Fetch lwpid from thread, not lwp.
13060 (send_sigstop_callback): Update, "entry" parameter is a
13061 struct thread_info * now.
13062 (suspend_and_send_sigstop_callback): Ditto.
13063 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13064 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13065 struct thread_info * now.
13066 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13068 (lwp_running): Update, "entry" parameter is a
13069 struct thread_info * now.
13070 (stop_all_lwps): Fetch ptid from thread.
13071 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13072 (linux_resume_one_lwp): Fetch lwpid from thread.
13073 (linux_set_resume_request): Update, "entry" parameter is a
13074 struct thread_info * now. Fetch pid, lwpid from thread.
13075 (resume_status_pending_p): Update, "entry" parameter is a
13076 struct thread_info * now.
13077 (need_step_over_p): Ditto. Fetch lwpid from thread.
13078 (start_step_over): Fetch lwpid from thread.
13079 (linux_resume_one_thread): Update, "entry" parameter is a
13080 struct thread_info * now. Fetch lwpid from thread.
13081 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13082 (proceed_one_lwp): Update, "entry" parameter is a
13083 struct thread_info * now. Fetch lwpid from thread.
13084 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13085 struct thread_info * now.
13086 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13087 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13088 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13090 (regsets_store_inferior_registers): Ditto.
13091 (fetch_register, store_register): Ditto.
13092 (linux_read_memory, linux_write_memory): Ditto.
13093 (linux_request_interrupt): Ditto.
13094 (linux_read_auxv): Ditto.
13095 (linux_xfer_siginfo): Ditto.
13096 (linux_qxfer_spu): Ditto.
13097 (linux_qxfer_libraries_svr4): Ditto.
13098 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13099 moved to inferiors.h.
13101 (get_thread_lwp): Update.
13102 (struct lwp_info): Delete member "entry". Simplify comment for
13104 (all_lwps): Delete.
13105 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13106 current_inferior directly.
13107 (update_watch_registers_callback): Update, "entry" parameter is a
13108 struct thread_info * now. Fetch pid from thread.
13109 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13110 (mips_insert_point): Fetch lwpid from current_inferior.
13111 Pass &all_threads to find_inferior, not &all_lwps.
13112 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13113 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13115 (mips_stopped_data_address): Ditto.
13116 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13118 * linux-tile-low.c (tile_arch_setup): Ditto.
13119 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13120 (update_debug_registers_callback): Update, "entry" parameter is a
13121 struct thread_info * now. Fetch pid from thread.
13122 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13123 Pass &all_threads to find_inferior, not &all_lwps.
13124 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13125 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13126 Pass &all_threads to find_inferior, not &all_lwps.
13127 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13128 (i386_dr_low_get_status): Ditto.
13129 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13130 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13131 (x86_linux_read_description): Ditto.
13132 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13134 2014-02-20 Doug Evans <dje@google.com>
13136 * inferiors.c (get_first_inferior): Fix buglet.
13138 2014-02-19 Doug Evans <dje@google.com>
13140 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13141 * inferiors.c (add_thread): Change result type to struct thread_info *.
13142 All callers updated.
13143 (add_lwp): Call add_thread here instead of in callers.
13144 All callers updated.
13145 * linux-low.h (get_lwp_thread): Rewrite.
13146 (struct lwp_info): New member "thread".
13148 2014-02-19 Doug Evans <dje@google.com>
13150 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13151 All callers updated.
13153 2014-02-19 Doug Evans <dje@google.com>
13155 * inferiors.c (add_thread): Fix whitespace.
13157 2014-02-19 Doug Evans <dje@google.com>
13159 * dll.c (clear_dlls): Replace accessing list implemention details
13161 * gdbthread.h (get_first_thread): Declare.
13162 * inferiors.c (for_each_inferior_with_data): New function.
13163 (get_first_thread): New function.
13164 (find_thread_ptid): Simplify.
13165 (get_first_inferior): New function.
13166 (clear_list): Delete.
13167 (one_inferior_p): New function.
13168 (clear_inferior_list): New function.
13169 (clear_inferiors): Update.
13170 * inferiors.h (for_each_inferior_with_data): Declare.
13171 (clear_inferior_list): Declare.
13172 (one_inferior_p): Declare.
13173 (get_first_inferior): Declare.
13174 * linux-low.c (linux_wait_for_event): Replace accessing list
13175 implemention details with API function.
13176 * server.c (target_running): Ditto.
13177 (accumulate_file_name_length): New function.
13178 (emit_dll_description): New function.
13179 (handle_qxfer_libraries): Replace accessing list implemention
13180 details with API function.
13181 (handle_qxfer_threads_worker): New function.
13182 (handle_qxfer_threads_proper): Replace accessing list implemention
13183 details with API function.
13184 (handle_query): Ditto.
13185 (visit_actioned_threads_callback_ftype): New typedef.
13186 (visit_actioned_threads_data): New struct.
13187 (visit_actioned_threads): Rewrite to be find_inferior callback.
13188 (resume): Call find_inferior.
13189 (handle_status): Replace accessing list implemention
13190 details with API function.
13191 (process_serial_event): Replace accessing list implemention details
13193 * target.c (set_desired_inferior): Replace accessing list implemention
13194 details with API function.
13195 * tracepoint.c (same_process_p): New function.
13196 (gdb_agent_about_to_close): Replace accessing list implemention
13197 details with API function.
13198 * win32-low.c (child_delete_thread): Replace accessing list
13199 implemention details with API function.
13200 (match_dll_by_basename): New function.
13201 (dll_is_loaded_by_basename): New function.
13202 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13203 details call to dll_is_loaded_by_basename.
13205 2014-02-19 Doug Evans <dje@google.com>
13207 * dll.h (struct dll_info): Add comment.
13208 * gdbthread.h (struct thread_info): Add comment.
13209 (current_ptid): Simplify.
13210 * inferiors.c (add_process): Update.
13211 (remove_process): Update.
13212 * inferiors.h (struct process_info): Rename member "head" to "entry".
13213 * linux-low.c (delete_lwp): Update.
13215 (last_thread_of_process_p): Update.
13216 (kill_one_lwp_callback, linux_kill): Update.
13217 (status_pending_p_callback): Update.
13218 (wait_for_sigstop): Update. Simplify read of ptid.
13219 (start_step_over): Update.
13220 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13221 (get_lwp_thread): Update.
13222 (struct lwp_info): Rename member "head" to "entry".
13223 * regcache.h (inferior_list_entry): Delete.
13224 * server.c (kill_inferior_callback): Update.
13225 (detach_or_kill_inferior_callback): Update.
13226 (print_started_pid): Update.
13227 (print_attached_pid): Update.
13228 (process_serial_event): Simplify read of ptid.
13229 * thread-db.c (thread_db_create_event): Update.
13230 (thread_db_get_tls_address): Update.
13231 * win32-low.c (current_inferior_ptid): Simplify.
13233 2014-02-19 Tom Tromey <tromey@redhat.com>
13235 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13237 (target_supports_btrace): Update.
13239 2014-02-14 Yao Qi <yao@codesourcery.com>
13241 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13242 (rsp-low-ipa.o): New target.
13244 2014-02-12 Tom Tromey <tromey@redhat.com>
13246 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13247 convert_ascii_to_int.
13248 * regcache.c (registers_to_string): Likewise.
13249 * remote-utils.c (decode_M_packet): Likewise.
13250 * server.c (process_serial_event): Likewise.
13252 2014-02-12 Tom Tromey <tromey@redhat.com>
13254 * server.c (handle_query, handle_v_run): Use hex2bin, not
13256 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13258 2014-02-12 Tom Tromey <tromey@redhat.com>
13260 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13261 convert_int_to_ascii.
13262 * regcache.c (registers_to_string, collect_register_as_string):
13264 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13266 * server.c (process_serial_event): Likewise.
13267 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13268 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13270 2014-02-12 Tom Tromey <tromey@redhat.com>
13272 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13273 bin2hex, not hexify.
13274 * tracepoint.c (cmd_qtstatus): Likewise.
13276 2014-02-12 Tom Tromey <tromey@redhat.com>
13278 * remote-utils.c (monitor_output): Pass explicit length to
13281 2014-02-12 Tom Tromey <tromey@redhat.com>
13283 * tracepoint.c: Include rsp-low.h.
13284 * server.c: Include rsp-low.h.
13285 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13286 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13288 * remote-utils.c: Include rsp-low.h.
13289 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13290 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13291 (convert_int_to_ascii, convert_ascii_to_int): Move to
13293 * regcache.c: Include rsp-low.h.
13294 * ax.c: Include rsp-low.h.
13295 * Makefile.in (SFILES): Add common/rsp-low.c.
13296 (OBS): Add rsp-low.o.
13297 (rsp-low.o): New target.
13299 2014-02-12 Tom Tromey <tromey@redhat.com>
13301 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13302 Include print-utils.h.
13303 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13304 (plongest, thirty_two, phex_nz): Remove.
13305 * Makefile.in (SFILES): Add common/print-utils.c.
13306 (OBS): Add print-utils.o.
13307 (print-utils-ipa.o): New target.
13308 (print-utils.o): New target.
13309 (IPA_OBJS): Add print-utils-ipa.o.
13311 2014-02-06 Tom Tromey <tromey@redhat.com>
13313 * Makefile.in (SFILES): Fix indentation.
13315 2014-02-05 Doug Evans <dje@google.com>
13317 * linux-low.c (linux_wait_for_event): Improve comment.
13318 (linux_wait_1): Keep current_inferior in sync with event_child.
13320 2014-01-22 Doug Evans <dje@google.com>
13322 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13324 2014-01-22 Doug Evans <dje@google.com>
13326 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13327 * configure: Regenerate.
13328 * config.in: Regenerate.
13329 * Makefile.in (SFILES): Add debug.c.
13330 (OBS): Add debug.o.
13331 * debug.c: New file.
13332 * debug.h: New file.
13333 * linux-aarch64-low.c (*): Update all debugging printfs to use
13334 debug_printf instead of fprintf.
13335 * linux-arm-low.c (*): Ditto.
13336 * linux-cris-low.c (*): Ditto.
13337 * linux-crisv32-low.c (*): Ditto.
13338 * linux-m32r-low.c (*): Ditto.
13339 * linux-sparc-low.c (*): Ditto.
13340 * linux-x86.c (*): Ditto.
13341 * linux-low.c (*): Ditto.
13342 (linux_wait_1): Add calls to debug_enter, debug_exit.
13343 (linux_wait): Remove redundant debugging printf.
13344 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13345 (linux_resume, unstop_all_lwps): Ditto.
13346 * mem-break.c (*): Update all debugging printfs to use
13347 debug_printf instead of fprintf.
13348 * remote-utils.c (*): Ditto.
13349 * thread-db.c (*): Ditto.
13350 * server.c #include <ctype.h>, "gdb_vecs.h".
13351 (debug_threads): Moved to debug.c.
13352 (*): Update all debugging printfs to use debug_printf instead of
13354 (start_inferior): Replace call to fflush with call to debug_flush.
13355 (monitor_show_help): Mention set debug-format.
13356 (parse_debug_format_options): New function.
13357 (handle_monitor_command): Handle "monitor set debug-format".
13358 (gdbserver_usage): Mention --debug-format.
13359 (main): Parse --debug-format.
13360 * server.h (debug_threads): Declaration moved to debug.h.
13361 #include "debug.h".
13362 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13363 trace_debug_1 that uses debug_printf.
13364 (tracepoint_look_up_symbols): Update all debugging printfs to use
13365 debug_printf instead of fprintf.
13367 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13369 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13372 2014-01-17 Pedro Alves <palves@redhat.com>
13375 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13376 defined after including gdb_proc_service.h.
13378 2014-01-16 Doug Evans <dje@google.com>
13380 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13381 (match_dll): Use it.
13383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13385 * target.h (target_ops) <read_btrace>: Change parameters and
13386 return type to allow error reporting.
13387 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13388 trace reading errors on.
13389 * linux-low.c (linux_low_read_btrace): Pass trace reading
13391 (linux_low_disable_btrace): New.
13393 2014-01-15 Doug Evans <dje@google.com>
13395 * inferiors.c (thread_id_to_gdb_id): Delete.
13396 * inferiors.h (thread_id_to_gdb_id): Delete.
13398 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13400 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13401 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13404 2014-01-08 Pedro Alves <palves@redhat.com>
13406 * server.c (handle_status): Don't discard previous queued stop
13407 replies or thread's pending status here.
13408 (main) <disconnection>: Do it here instead.
13410 2014-01-08 Pedro Alves <palves@redhat.com>
13412 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13413 * server.c (visit_actioned_threads, handle_pending_status): New
13415 (handle_v_cont): Factor out parts to ...
13416 (resume): ... this new function. If in all-stop, and a thread
13417 being resumed has a pending status, report it without actually
13419 (myresume): Adjust to use the new 'resume' function.
13420 (clear_pending_status_callback, set_pending_status_callback)
13421 (find_status_pending_thread_callback): New functions.
13422 (handle_status): Handle the case of multiple threads having
13423 interesting statuses to report. Report threads' real last signal
13424 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13425 with an interesting thread to report the status for, instead of
13426 always reporting the status of the first thread.
13428 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13430 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13431 * gdbreplay.c (gdbreplay_version): Likewise.
13433 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13435 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13436 iov.iov_len with the real length in use.
13438 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13440 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13441 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13442 for all targets that use win32-low.c.
13443 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13444 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13446 2013-12-13 Pedro Alves <palves@redhat.com>
13448 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13449 if equal to TARGET_WAITKIND_LOADED.
13450 * win32-low.c (cached_status): New static global.
13451 (win32_wait): Add declaration.
13452 (do_initial_child_stuff): Flush all initial pending debug events
13453 up to the initial breakpoint.
13454 (win32_wait): If CACHED_STATUS was set, return that instead
13455 of doing a real wait. Remove the code resuming the execution
13456 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13457 during the initial phase. Also remove the code changing
13458 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13459 TARGET_WAITKIND_STOPPED.
13461 2013-12-11 Yao Qi <yao@codesourcery.com>
13463 * notif.c (handle_notif_ack): Return 0 if no notification
13466 2013-11-20 Doug Evans <dje@google.com>
13468 * linux-low.c (linux_set_resume_request): Fix comment.
13470 2013-11-20 Doug Evans <dje@google.com>
13472 * linux-low.c (resume_status_pending_p): Tweak comment.
13474 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13476 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13477 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13478 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13479 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13480 (srv_amd64_regobj): Add amd64-mpx.o.
13481 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13482 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13483 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13484 * i387-fp.c (num_pl_bnd_register) Added constant.
13485 (num_pl_bnd_cfg_registers) Added constant.
13486 (struct i387_xsave) Added reserved area and MPX fields.
13487 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13488 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13490 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13491 (init_registers_amd64_mpx_linux): Declare new function.
13492 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13493 (x86_64_regmap): Add MPX registers.
13494 (x86_linux_read_description): Add MPX case.
13495 (initialize_low_arch): Initialize MPX targets.
13497 2013-11-18 Tom Tromey <tromey@redhat.com>
13499 * configure: Rebuild.
13500 * configure.ac: Don't check for stdlib.h.
13501 * gdbreplay.c: Unconditionally include stdlib.h.
13503 2013-11-18 Tom Tromey <tromey@redhat.com>
13505 * config.in: Rebuild.
13506 * configure: Rebuild.
13507 * configure.ac: Don't use AC_HEADER_DIRENT.
13509 2013-11-18 Tom Tromey <tromey@redhat.com>
13511 * server.h: Don't check HAVE_STRING_H.
13512 * gdbreplay.c: Don't check HAVE_STRING_H.
13513 * configure: Rebuild.
13515 2013-11-18 Tom Tromey <tromey@redhat.com>
13517 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13520 2013-11-08 Tom Tromey <tromey@redhat.com>
13522 * configure, config.in: Rebuild.
13523 * configure.ac: Remove unused configury.
13525 2013-11-08 Tom Tromey <tromey@redhat.com>
13527 * acinclude.m4: Include common.m4, codeset.m4.
13528 * configure, config.in: Rebuild.
13529 * configure.ac: Use GDB_AC_COMMON.
13531 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13533 * linux-s390-low.c (HWCAP_S390_TE): New define.
13534 (s390_arch_setup): Consider the TE field in the HWCAP for
13535 determining 'have_regset_tdb'.
13537 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13540 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13543 2013-10-02 Pedro Alves <palves@redhat.com>
13545 * server.c (process_serial_event): Don't output "GDBserver
13546 exiting" if GDB is connected through stdio.
13547 * target.c (mywait): Likewise, be silent if GDB is connected
13550 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13552 * lynx-low.c (lynx_add_threads_after_attach): New function.
13553 (lynx_attach): Remove call to add_thread. Add call to
13554 lynx_add_threads_after_attach instead.
13556 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13558 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13559 * config.in, configure: Regenerated.
13561 2013-09-18 Yao Qi <yao@codesourcery.com>
13564 * server.c (start_inferior): Clear 'resume_info'.
13566 2013-09-16 Jiong Wang <jiwang@tilera.com>
13568 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13571 2013-09-16 Jiong Wang <jiwang@tilera.com>
13573 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13574 linux-tile-low.o to srv_tgtobj.
13576 2013-09-16 Will Newton <will.newton@linaro.org>
13578 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13581 2013-09-06 Pedro Alves <palves@redhat.com>
13583 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13584 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13585 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13586 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13587 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13588 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13590 2013-09-06 Pedro Alves <palves@redhat.com>
13592 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13593 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13595 2013-09-06 Pedro Alves <palves@redhat.com>
13597 * linux-amd64-ipa.c: Include tracepoint.h.
13598 * linux-i386-ipa.c: Include tracepoint.h.
13600 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13602 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13603 (ps_get_thread_area): New function.
13605 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13607 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13608 (initialize_low_arch): Call init_registers_crisv32 rather than
13609 init_register_crisv32.
13611 2013-09-05 Pedro Alves <palves@redhat.com>
13613 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13615 * hostio.h: ... this new file.
13616 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13617 win32-low.c: Include hostio.h.
13619 2013-09-05 Pedro Alves <palves@redhat.com>
13621 * server.h (gdb_client_data, handler_func, callback_handler_func)
13622 (delete_file_handler, add_file_handler, append_callback_event)
13623 (delete_callback_event, start_event_loop, initialize_event_loop):
13624 Move to event-loop.h and include it.
13625 * event-loop.h: New file.
13627 2013-09-05 Pedro Alves <palves@redhat.com>
13629 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13630 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13631 (loaded_dll, unloaded_dll): Move to ...
13632 * dll.h: ... this new file.
13633 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13635 2013-09-05 Pedro Alves <palves@redhat.com>
13637 * server.h (current_process, get_thread_process, all_processes)
13638 (add_inferior_to_list, for_each_inferior, current_inferior)
13639 (remove_inferior, add_process, remove_process, find_process_pid)
13640 (have_started_inferiors_p, have_attached_inferiors_p)
13641 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13642 (clear_inferiors, find_inferior, find_inferior_id)
13643 (inferior_target_data, set_inferior_target_data)
13644 (inferior_regcache_data, set_inferior_regcache_data): Move to
13645 inferiors.h, and include it.
13646 * inferiors.h: New file.
13648 2013-09-05 Pedro Alves <palves@redhat.com>
13650 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13654 2013-09-05 Pedro Alves <palves@redhat.com>
13656 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13658 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13659 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13660 (handle_tracepoint_general_set, handle_tracepoint_query)
13661 (tracepoint_finished_step, tracepoint_was_hit)
13662 (release_while_stepping_state_list, current_traceframe)
13663 (in_readonly_region, traceframe_read_mem)
13664 (fetch_traceframe_registers, traceframe_read_sdata)
13665 (traceframe_read_info, struct fast_tpoint_collect_status)
13666 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13667 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13668 (supply_fast_tracepoint_registers)
13669 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13670 (ipa_tdesc, claim_trampoline_space)
13671 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13672 (agent_mem_read, agent_get_trace_state_variable_value)
13673 (agent_set_trace_state_variable_value, agent_tsv_read)
13674 (agent_mem_read_string, get_raw_reg_func_addr)
13675 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13676 * tracepoint.h: ... this new file.
13678 2013-09-05 Pedro Alves <palves@redhat.com>
13680 * server.h (perror_with_name, error, fatal, warning, paddress)
13681 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13683 * utils.h: New file.
13685 2013-09-05 Pedro Alves <palves@redhat.com>
13687 * server.h (remote_debug, noack_mode, transport_is_reliable)
13688 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13689 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13690 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13691 (write_enn, initialize_async_io, enable_async_io)
13692 (disable_async_io, check_remote_input_interrupt_request)
13693 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13694 (dead_thread_notify, prepare_resume_reply)
13695 (decode_address_to_semicolon, decode_address, decode_m_packet)
13696 (decode_M_packet, decode_X_packet, decode_xfer_write)
13697 (decode_search_memory_packet, unhexify, hexify)
13698 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13699 (look_up_one_symbol, relocate_instruction)
13700 (monitor_output): Move to remote-utils.h, and include it.
13701 * remote-utils.h: New file.
13703 2013-09-05 Pedro Alves <palves@redhat.com>
13705 * server.h (_): Delete.
13707 2013-09-02 Pedro Alves <palves@redhat.com>
13709 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13710 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13712 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13714 2013-09-02 Pierre Muller <muller@sourceware.org>
13716 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13717 or WriteProcessMemory complete successfully and handle
13718 ERROR_PARTIAL_COPY error.
13720 2013-09-02 Pedro Alves <palves@redhat.com>
13722 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13723 error instead of EIO.
13725 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13728 * linux-low.c: Include filestuff.h.
13729 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13730 * lynx-low.c: Include filestuff.h.
13731 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13732 * server.c: Include filestuff.h.
13733 (main): Call notice_open_fds.
13734 * spu-low.c: Include filestuff.h.
13735 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13737 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13739 * Makefile.in: Explain why ../target and ../nat are not
13740 listed as include file search paths.
13741 (linux-waitpid.o): New object file rule.
13742 * configure.srv (srv_native_linux_obj): New variable.
13743 Replace all occurrences of linux native object files with
13744 $srv_native_linux_obj.
13745 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13746 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13747 (linux_enable_event_reporting): Remove declaration.
13748 (my_waitpid): Moved to common/linux-waitpid.c.
13749 (linux_wait_for_event): Pass ptid when calling
13750 linux_enable_event_reporting.
13751 (linux_supports_tracefork_flag): Remove.
13752 (linux_enable_event_reporting): Likewise.
13753 (linux_tracefork_grandchild): Remove.
13754 (STACK_SIZE): Moved to common/linux-ptrace.c.
13755 (linux_tracefork_child): Remove.
13756 (linux_test_for_tracefork): Remove.
13757 (linux_look_up_symbols): Call linux_supports_traceclone.
13758 (initialize_low): Remove call to linux_test_for_tracefork.
13759 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13760 common/linux-ptrace.h.
13761 (PTRACE_TYPE_ARG4): Likewise.
13762 Include linux-ptrace.h.
13764 2013-08-21 Pedro Alves <palves@redhat.com>
13766 * config.in: Renegerate.
13768 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13770 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13771 (SFILES): Remove $(srcdir)/common/target-common.c and
13772 add $(srcdir)/target/waitstatus.c.
13773 (OBS): Remove target-common.o and add waitstatus.o.
13774 (server_h): Remove $(srcdir)/../common/target-common.h and
13775 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13776 and $(srcdir)/../target/waitstatus.h.
13777 (target-common.o): Remove.
13778 (waitstatus.o): New target object file.
13779 * target.h: Do not include target-common.h and
13780 include target/resume.h, target/wait.h and
13781 target/waitstatus.h.
13783 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13785 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13786 to PTRACE_TYPE_ARG3.
13787 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13788 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13790 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13791 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13793 2013-07-27 Jie Zhang <jie@codesourcery.com>
13794 Daniel Jacobowitz <dan@codesourcery.com>
13795 Yao Qi <yao@codesourcery.com>
13797 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13798 (mips-linux-watch.o): New rule.
13799 (mips_linux_watch_h): New variable.
13800 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13802 * linux-mips-low.c: Include mips-linux-watch.h.
13803 (struct arch_process_info, struct arch_lwp_info): New.
13804 (update_watch_registers_callback): New function.
13805 (mips_linux_new_process, mips_linux_new_thread) New functions.
13806 (mips_linux_prepare_to_resume, mips_insert_point): New
13808 (mips_remove_point, mips_stopped_by_watchpoint): New
13810 (rsp_bp_type_to_target_hw_bp_type): New function.
13811 (mips_stopped_data_address): New function.
13812 (the_low_target): Add watchpoint support functions.
13814 2013-07-27 Yao Qi <yao@codesourcery.com>
13816 * i386-low.c: Include break-common.h.
13817 (enum target_hw_bp_type): Remove.
13819 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13821 * Makefile.in (SFILES): /common/target-common.c.
13822 (OBS): Add target-common.o.
13823 (server_h): Add $(srcdir)/../common/target-common.h.
13824 (target-common.o): New target.
13825 * server.c (queue_stop_reply_callback): Free
13826 status string after use.
13827 * target.c (target_waitstatus_to_string): Remove.
13828 * target.h: Include target-common.h.
13829 (resume_kind): Likewise.
13830 (target_waitkind): Likewise.
13831 (target_waitstatus): Likewise.
13832 (TARGET_WNOHANG): Likewise.
13834 2013-07-04 Yao Qi <yao@codesourcery.com>
13836 * Makefile.in (host_alias): Use @host_noncanonical@.
13837 (target_alias): Use @target_noncanonical@.
13838 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13839 ACX_NONCANONICAL_HOST.
13840 * configure: Regenerated.
13843 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13845 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13846 * configure: Rebuild.
13847 * Makefile.in (version_host, version_target): Get from configure.
13848 (version.c): Use $(version_host) and $(version_target).
13850 2013-07-03 Pedro Alves <palves@redhat.com>
13852 * Makefile.in (config.status): Depend on development.sh.
13853 * acinclude.m4: Include libmcheck.m4.
13854 * configure: Regenerate.
13856 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13858 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13859 attribute inside the parentheses.
13860 (winapi_DebugSetProcessKillOnExit): Ditto.
13861 (winapi_DebugBreakProcess): Ditto.
13862 (winapi_GenerateConsoleCtrlEvent): Ditto.
13864 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13866 * notif.h (notif_event): Add a dummy member to avoid compiler
13869 2013-07-01 Pedro Alves <palves@redhat.com>
13871 * hostio.c (HOSTIO_PATH_MAX): Define.
13872 (require_filename, handle_open, handle_unlink, handle_readlink):
13875 2013-07-01 Pedro Alves <palves@redhat.com>
13877 * server.h: Include "pathmax.h".
13878 * linux-low.c: Don't include sys/param.h.
13879 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13881 * win32-low.c: Don't include sys/param.h.
13882 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13884 2013-07-01 Pedro Alves <palves@redhat.com>
13886 * event-loop.c: Don't check HAVE_UNISTD_H before including
13888 * gdbreplay.c: Likewise.
13889 * remote-utils.c: Likewise.
13890 * server.c: Likewise.
13891 * configure.ac: Don't check for unistd.h.
13892 * configure: Regenerate.
13894 2013-06-28 Tom Tromey <tromey@redhat.com>
13896 * Makefile.in (version.c): Use version.in, not
13899 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13901 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13902 * configure: Rebuild.
13903 * Makefile.in (version_host, version_target): Get from configure.
13904 (version.c): Use $(version_host) and $(version_target).
13906 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13908 Fix trace-status to output user name without trailing colon.
13909 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13911 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13913 Fix trace-status to output proper start-time and stop-time.
13914 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13915 output start time and stop time in hex as gdb expects.
13917 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13919 * tracepoint.c (build_traceframe_info_xml): Output trace state
13920 variables present in the trace buffer.
13922 2013-06-24 Tom Tromey <tromey@redhat.com>
13924 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13926 (version.o): Remove.
13927 * gdbreplay.c: Include version.h.
13928 (version, host_name): Don't declare.
13929 * server.h: Include version.h.
13930 (version, host_name): Don't declare.
13932 2013-06-12 Pedro Alves <palves@redhat.com>
13934 * linux-x86-low.c (linux_is_elf64): Delete global.
13935 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13936 with local linux_pid_exe_is_elf_64_file use.
13938 2013-06-11 Pedro Alves <palves@redhat.com>
13940 * linux-low.c (regset_disabled, disable_regset): New functions.
13941 (regsets_fetch_inferior_registers)
13942 (regsets_store_inferior_registers): Use them.
13943 (initialize_regsets_info); Don't allocate the disabled_regsets
13945 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13948 2013-06-11 Pedro Alves <palves@redhat.com>
13950 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13953 2013-06-11 Pedro Alves <palves@redhat.com>
13955 * linux-x86-low.c (initialize_low_arch): Call
13956 init_registers_x32_avx_linux.
13958 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13960 Fix compatibility with Android Bionic.
13961 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13964 2013-06-07 Pedro Alves <palves@redhat.com>
13967 * Makefile.in (OBS): Add tdesc.o.
13968 (IPA_OBJS): Add tdesc-ipa.o.
13969 (tdesc-ipa.o): New rule.
13970 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13972 * linux-low.c (new_inferior): Delete.
13973 (disabled_regsets, num_regsets): Delete.
13974 (linux_add_process): Adjust to set the new per-process
13976 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13977 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13978 was a stop. When calling arch_setup, switch the current inferior
13979 to the thread that got an event.
13980 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13981 (regsets_fetch_inferior_registers)
13982 (regsets_store_inferior_registers): New regsets_info parameter.
13984 (linux_register_in_regsets): New regs_info parameter. Adjust to
13986 (register_addr, fetch_register, store_register): New usrregs_info
13987 parameter. Adjust to use it.
13988 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13989 parameter regs_info. Adjust to use it.
13990 (linux_fetch_registers): Get the current inferior's regs_info, and
13992 (linux_store_registers): Ditto.
13993 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13994 (initialize_low): Don't initialize the target_regsets here. Call
13995 initialize_low_arch.
13996 * linux-low.h (target_regsets): Delete declaration.
13997 (struct regsets_info): New.
13998 (struct usrregs_info): New.
13999 (struct regs_info): New.
14000 (struct process_info_private) <new_inferior>: New field.
14001 (struct linux_target_ops): Delete the num_regs, regmap, and
14002 regset_bitmap fields. New field regs_info.
14003 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14004 * i387-fp.c (num_xmm_registers): Delete.
14005 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14006 calls to new interface.
14007 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14008 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14009 Infer the number of xmm registers from the regcache's target
14011 * i387-fp.h (num_xmm_registers): Delete.
14012 * inferiors.c (add_thread): Don't install the thread's regcache
14014 * proc-service.c (gregset_info): Fetch the current inferior's
14015 regs_info. Adjust to use it.
14016 * regcache.c: Include tdesc.h.
14017 (register_bytes, reg_defs, num_registers)
14018 (gdbserver_expedite_regs): Delete.
14019 (get_thread_regcache): If the thread doesn't have a regcache yet,
14020 create one, instead of aborting gdbserver.
14021 (regcache_invalidate_one): Rename to ...
14022 (regcache_invalidate_thread): ... this.
14023 (regcache_invalidate_one): New.
14024 (regcache_invalidate): Only invalidate registers of the current
14026 (init_register_cache): Add target_desc parameter, and use it.
14027 (new_register_cache): Ditto. Assert the target description has a
14028 non zero registers_size.
14029 (regcache_cpy): Add assertions. Adjust.
14030 (realloc_register_cache, set_register_cache): Delete.
14031 (registers_to_string, registers_from_string): Adjust.
14032 (find_register_by_name, find_regno, find_register_by_number)
14033 (register_cache_size): Add target_desc parameter, and use it.
14034 (free_register_cache_thread, free_register_cache_thread_one)
14035 (regcache_release, register_cache_size): New.
14036 (register_size): Add target_desc parameter, and use it.
14037 (register_data, supply_register, supply_register_zeroed)
14038 (supply_regblock, supply_register_by_name, collect_register)
14039 (collect_register_as_string, collect_register_by_name): Adjust.
14040 * regcache.h (struct target_desc): Forward declare.
14041 (struct regcache) <tdesc>: New field.
14042 (init_register_cache, new_register_cache): Add target_desc
14044 (regcache_invalidate_thread): Declare.
14045 (regcache_invalidate_one): Delete declaration.
14046 (regcache_release): Declare.
14047 (find_register_by_number, register_cache_size, register_size)
14048 (find_regno): Add target_desc parameter.
14049 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14051 * remote-utils.c: Include tdesc.h.
14052 (outreg, prepare_resume_reply): Adjust.
14053 * server.c: Include tdesc.h.
14054 (gdbserver_xmltarget): Delete declaration.
14055 (get_features_xml, process_serial_event): Adjust.
14056 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14058 (struct process_info) <tdesc>: New field.
14059 (ipa_tdesc): Declare.
14060 * tdesc.c: New file.
14061 * tdesc.h: New file.
14062 * tracepoint.c: Include tdesc.h.
14063 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14064 (get_context_regcache): Adjust to pass ipa_tdesc down.
14065 (do_action_at_tracepoint): Adjust to get the register cache size
14066 from the context regcache's description.
14067 (traceframe_walk_blocks): Adjust to get the register cache size
14068 from the current trace frame's description.
14069 (traceframe_get_pc): Adjust to get current trace frame's
14070 description and pass it down.
14071 (gdb_collect): Adjust to get the register cache size from the
14073 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14074 (gdbserver_xmltarget): Delete.
14075 (initialize_low_tracepoint): Set the ipa's target description.
14076 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14077 (initialize_low_tracepoint): Set the ipa's target description.
14078 * linux-x86-low.c: Include tdesc.h.
14079 [__x86_64__] (is_64bit_tdesc): New.
14080 (ps_get_thread_area, x86_get_thread_area): Use it.
14081 (i386_cannot_store_register): Rename to ...
14082 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14083 (i386_cannot_fetch_register): Rename to ...
14084 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14085 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14087 (target_regsets): Rename to ...
14088 (x86_regsets): ... this.
14089 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14091 (x86_siginfo_fixup): Use is_64bit_tdesc.
14092 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14093 (tdesc_x32_avx_linux, tdesc_x32_linux)
14094 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14096 (x86_linux_update_xmltarget): Delete.
14097 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14098 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14099 (AMD64_LINUX_USER64_CS): New.
14100 (x86_linux_read_description): New, based on
14101 x86_linux_update_xmltarget.
14102 (same_process_callback): New.
14103 (x86_arch_setup_process_callback): New.
14104 (x86_linux_update_xmltarget): New.
14105 (x86_regsets_info): New.
14106 (amd64_linux_regs_info): New.
14107 (i386_linux_usrregs_info): New.
14108 (i386_linux_regs_info): New.
14109 (x86_linux_regs_info): New.
14110 (x86_arch_setup): Reimplement.
14111 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14112 (x86_emit_ops): Ditto.
14113 (the_low_target): Adjust. Install x86_linux_regs_info,
14114 x86_cannot_fetch_register, and x86_cannot_store_register.
14115 (initialize_low_arch): New.
14116 * linux-ia64-low.c (tdesc_ia64): Declare.
14117 (ia64_fetch_register): Adjust.
14118 (ia64_usrregs_info, regs_info): New globals.
14119 (ia64_regs_info): New function.
14120 (the_low_target): Adjust.
14121 (initialize_low_arch): New function.
14122 * linux-sparc-low.c (tdesc_sparc64): Declare.
14123 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14125 (sparc_arch_setup): New function.
14126 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14127 (the_low_target): Adjust.
14128 (initialize_low_arch): New function.
14129 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14130 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14131 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14132 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14133 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14134 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14135 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14136 (tdesc_powerpc_isa205_vsx64l): Declare.
14137 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14138 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14139 (ppc_set_pc, ppc_get_hwcap): Adjust.
14140 (ppc_usrregs_info): Forward declare.
14141 (!__powerpc64__) ppc_regmap_adjusted: New global.
14142 (ppc_arch_setup): Adjust to the current process'es target
14144 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14145 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14146 (ppc_store_evrregset): Adjust.
14147 (target_regsets): Rename to ...
14148 (ppc_regsets): ... this, and make static.
14149 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14150 (ppc_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14154 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14155 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14156 (tdesc_s390x_linux64v2): Declare.
14157 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14158 (s390_fill_gregset, s390_store_last_break): Adjust.
14159 (target_regsets): Rename to ...
14160 (s390_regsets): ... this, and make static.
14161 (s390_get_pc, s390_set_pc): Adjust.
14162 (s390_get_hwcap): New target_desc parameter, and use it.
14163 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14164 (s390_arch_setup): Adjust to set the current process'es target
14165 description. Don't adjust the regmap.
14166 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14167 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14168 (regs_info_3264): New globals.
14169 (s390_regs_info): New function.
14170 (the_low_target): Adjust.
14171 (initialize_low_arch): New function.
14172 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14173 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14174 [__mips64] (init_registers_mips_linux)
14175 (init_registers_mips_dsp_linux): Delete defines.
14176 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14177 (have_dsp): New global.
14178 (mips_read_description): New, based on mips_arch_setup.
14179 (mips_arch_setup): Reimplement.
14180 (get_usrregs_info): New function.
14181 (mips_cannot_fetch_register, mips_cannot_store_register)
14182 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14183 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14184 (target_regsets): Rename to ...
14185 (mips_regsets): ... this, and make static.
14186 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14187 (dsp_regs_info, regs_info): New globals.
14188 (mips_regs_info): New function.
14189 (the_low_target): Adjust.
14190 (initialize_low_arch): New function.
14191 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14192 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14194 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14195 (arm_read_description): New, with bits factored from
14197 (arm_arch_setup): Reimplement.
14198 (target_regsets): Rename to ...
14199 (arm_regsets): ... this, and make static.
14200 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14201 (arm_regs_info): New function.
14202 (the_low_target): Adjust.
14203 (initialize_low_arch): New function.
14204 * linux-m68k-low.c (tdesc_m68k): Declare.
14205 (target_regsets): Rename to ...
14206 (m68k_regsets): ... this, and make static.
14207 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14208 (m68k_regs_info): New function.
14209 (m68k_arch_setup): New function.
14210 (the_low_target): Adjust.
14211 (initialize_low_arch): New function.
14212 * linux-sh-low.c (tdesc_sharch): Declare.
14213 (target_regsets): Rename to ...
14214 (sh_regsets): ... this, and make static.
14215 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14216 (sh_regs_info, sh_arch_setup): New functions.
14217 (the_low_target): Adjust.
14218 (initialize_low_arch): New function.
14219 * linux-bfin-low.c (tdesc_bfin): Declare.
14220 (bfin_arch_setup): New function.
14221 (bfin_usrregs_info, regs_info): New globals.
14222 (bfin_regs_info): New function.
14223 (the_low_target): Adjust.
14224 (initialize_low_arch): New function.
14225 * linux-cris-low.c (tdesc_cris): Declare.
14226 (cris_arch_setup): New function.
14227 (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-cris-low.c (tdesc_crisv32): Declare.
14232 (cris_arch_setup): New function.
14233 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14234 (cris_regs_info): New function.
14235 (the_low_target): Adjust.
14236 (initialize_low_arch): New function.
14237 * linux-m32r-low.c (tdesc_m32r): Declare.
14238 (m32r_arch_setup): New function.
14239 (m32r_usrregs_info, regs_info): New globals.
14240 (m32r_regs_info): Adjust.
14241 (initialize_low_arch): New function.
14242 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14243 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14244 (tic6x_usrregs_info): Forward declare.
14245 (tic6x_read_description): New function, based on ...
14246 (tic6x_arch_setup): ... this. Reimplement.
14247 (target_regsets): Rename to ...
14248 (tic6x_regsets): ... this, and make static.
14249 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14250 (tic6x_regs_info): New function.
14251 (the_low_target): Adjust.
14252 (initialize_low_arch): New function.
14253 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14254 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14255 (target_regsets): Rename to ...
14256 (xtensa_regsets): ... this, and make static.
14257 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14259 (xtensa_arch_setup, xtensa_regs_info): New functions.
14260 (the_low_target): Adjust.
14261 (initialize_low_arch): New function.
14262 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14263 (nios2_arch_setup): Set the current process'es tdesc.
14264 (target_regsets): Rename to ...
14265 (nios2_regsets): ... this.
14266 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14267 (nios2_regs_info): New function.
14268 (the_low_target): Adjust.
14269 (initialize_low_arch): New function.
14270 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14271 (aarch64_arch_setup): Set the current process'es tdesc.
14272 (target_regsets): Rename to ...
14273 (aarch64_regsets): ... this.
14274 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14275 (aarch64_regs_info): New function.
14276 (the_low_target): Adjust.
14277 (initialize_low_arch): New function.
14278 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14280 (target_regsets): Rename to ...
14281 (tile_regsets): ... this.
14282 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14283 (tile_regs_info): New function.
14284 (tile_arch_setup): Set the current process'es tdesc.
14285 (the_low_target): Adjust.
14286 (initialize_low_arch): New function.
14287 * spu-low.c (tdesc_spu): Declare.
14288 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14289 * win32-arm-low.c (tdesc_arm): Declare.
14290 (arm_arch_setup): New function.
14291 (the_low_target): Install arm_arch_setup instead of
14292 init_registers_arm.
14293 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14294 (init_windows_x86): Rename to ...
14295 (i386_arch_setup): ... this. Set `win32_tdesc'.
14296 (the_low_target): Adjust.
14297 * win32-low.c (win32_tdesc): New global.
14298 (child_add_thread): Don't create the thread cache here.
14299 (do_initial_child_stuff): Set the new process'es tdesc.
14300 * win32-low.h (struct target_desc): Forward declare.
14301 (win32_tdesc): Declare.
14302 * lynx-i386-low.c (tdesc_i386): Declare global.
14303 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14304 * lynx-low.c (lynx_tdesc): New global.
14305 (lynx_add_process): Set the new process'es tdesc.
14306 * lynx-low.h (struct target_desc): Forward declare.
14307 (lynx_tdesc): Declare global.
14308 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14309 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14310 * nto-low.c (nto_tdesc): New global.
14311 (do_attach): Set the new process'es tdesc.
14312 * nto-low.h (struct target_desc): Forward declare.
14313 (nto_tdesc): Declare.
14314 * nto-x86-low.c (tdesc_i386): Declare.
14315 (nto_x86_arch_setup): Set `nto_tdesc'.
14317 2013-06-04 Gary Benson <gbenson@redhat.com>
14319 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14320 to qSupported response when appropriate.
14321 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14322 with nonzero-length annex.
14323 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14324 arguments supplied in annex.
14326 2013-05-31 Doug Evans <dje@google.com>
14329 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14330 64 bits in 64-cross-32 environment.
14332 2013-05-28 Pedro Alves <palves@redhat.com>
14334 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14335 (aarch64-without-fpu.c): Delete rule.
14336 * configure.srv (aarch64*-*-linux*): Remove references to
14337 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14338 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14341 2013-05-24 Pedro Alves <palves@redhat.com>
14343 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14344 instead of strchr/decode_address. Error if the range isn't split
14345 with a ','. Don't assume there's be a ':' in the action.
14347 2013-05-23 Yao Qi <yao@codesourcery.com>
14348 Pedro Alves <palves@redhat.com>
14350 * linux-low.c (lwp_in_step_range): New function.
14351 (linux_wait_1): If the thread was range stepping and stopped
14352 outside the stepping range, report the stop to GDB. Otherwise,
14353 continue stepping. Add range stepping debug output.
14354 (linux_set_resume_request): Copy the step range from the resume
14355 request to the lwp.
14356 (linux_supports_range_stepping): New.
14357 (linux_target_ops) <supports_range_stepping>: Set to
14358 linux_supports_range_stepping.
14359 * linux-low.h (struct linux_target_ops)
14360 <supports_range_stepping>: New field.
14361 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14362 * linux-x86-low.c (x86_supports_range_stepping): New.
14363 (the_low_target) <supports_range_stepping>: Set to
14364 x86_supports_range_stepping.
14365 * server.c (handle_v_cont): Handle 'r' action.
14366 (handle_v_requests): Append ";r" if the target supports range
14368 * target.h (struct thread_resume) <step_range_start,
14369 step_range_end>: New fields.
14370 (struct target_ops) <supports_range_stepping>:
14372 (target_supports_range_stepping): New macro.
14374 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14376 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14377 confusion in comment.
14379 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14381 * lynx-low.c (struct process_info_private): New type.
14382 (lynx_add_process): New function.
14383 (lynx_create_inferior, lynx_attach): Replace calls to
14384 add_process by calls to lynx_add_process.
14385 (lynx_resume): If PTID is null, then try using
14386 current_process()->private->last_wait_event_ptid.
14388 (lynx_clear_inferiors): Delete. The contents of that function
14389 has been inlined in lynx_mourn;
14390 (lynx_wait_1): Save the ptid in the process's private data.
14391 (lynx_mourn): Free the process' private data. Replace call
14392 to lynx_clear_inferiors by call to clear_inferiors.
14394 2013-05-17 Yao Qi <yao@codesourcery.com>
14396 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14399 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14401 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14402 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14403 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14404 PT_TEXT_END_ADDR guards. Update comments.
14405 (linux_target_op) <read_offsets>: Conditionally define to
14406 linux_read_offsets if the target is UCLIBC and if it defines
14407 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14409 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14410 Andrew Jenner <andrew@codesourcery.com>
14412 * Makefile.in (SFILES): Add linux-nios2-low.c.
14413 (clean): Add action to delete nios2-linux.c.
14414 (nios2-linux.c): New rule.
14415 * configure.srv: Add nios2*-*-linux*.
14416 * linux-nios2-low.c: New.
14418 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14420 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14422 2013-04-25 Hui Zhu <hui@codesourcery.com>
14425 * ax.c (ax_printf): Add fflush.
14427 2013-04-22 Tom Tromey <tromey@redhat.com>
14429 * Makefile.in (SFILES): Add filestuff.c.
14430 (OBS): Add filestuff.o.
14431 (filestuff.o): New target.
14432 * config.in, configure: Rebuild.
14433 * configure.ac: Check for fdwalk, pipe2.
14435 2013-04-17 Pedro Alves <palves@redhat.com>
14437 * configure.ac (USE_THREAD_DB): Delete variable.
14438 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14439 Don't AC_SUBST USE_THREAD_DB.
14440 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14441 * config.in, configure: Regenerate.
14443 2013-04-16 Pedro Alves <palves@redhat.com>
14445 * linux-low.h (struct lwp_info) <thread_known>: Move under
14446 the USE_THREAD_DB #ifdef.
14448 2013-04-16 Pedro Alves <palves@redhat.com>
14450 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14451 (linux-low.o): Delete rule.
14452 * linux-low.h: Always include "gdb_thread_db.h" instead of
14453 conditionally including thread_db.h.
14454 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14457 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14459 * Makefile.in (install-only): Fix make install regression.
14461 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14463 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14464 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14466 * gdbserver.1: Remove.
14468 2013-03-22 Pedro Alves <palves@redhat.com>
14470 * linux-low.c (handle_extended_wait): Don't call
14471 linux_enable_event_reporting.
14473 2013-03-15 Tony Theodore <tonyt@logyst.com>
14476 * Makefile.in (SHELL): Use @SHELL@.
14478 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14480 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14483 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14485 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14486 Remove extraneous NULL element.
14488 2013-03-13 Yao Qi <yao@codesourcery.com>
14490 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14491 'V' block in trace frame.
14493 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14495 * target.h (struct target_ops): Add btrace ops.
14496 (target_supports_btrace): New macro.
14497 (target_enable_btrace): New macro.
14498 (target_disable_btrace): New macro.
14499 (target_read_btrace): New macro.
14500 * gdbthread.h (struct thread_info): Add btrace field.
14501 * server.c: Include btrace-common.h.
14502 (handle_btrace_general_set): New function.
14503 (handle_btrace_enable): New function.
14504 (handle_btrace_disable): New function.
14505 (handle_general_set): Call handle_btrace_general_set.
14506 (handle_qxfer_btrace): New function.
14507 (struct qxfer qxfer_packets[]): Add btrace entry.
14508 * inferiors.c (remove_thread): Disable btrace.
14509 * linux-low: Include linux-btrace.h.
14510 (linux_low_enable_btrace): New function.
14511 (linux_low_read_btrace): New function.
14512 (linux_target_ops): Add btrace ops.
14513 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14514 Add srv_linux_btrace=yes.
14515 (x86_64-*-linux*): Add linux-btrace.o.
14516 Add srv_linux_btrace=yes.
14517 * configure.ac: Define HAVE_LINUX_BTRACE.
14518 * config.in: Regenerated.
14519 * configure: Regenerated.
14521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14523 * server.c (handle_qxfer): Preserve error message if -3 is
14525 (qxfer): Document the -3 return value.
14527 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14529 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14530 (linux_btrace_h): New variable.
14531 (linux-btrace.o): New rule.
14533 2013-03-08 Stan Shebs <stan@codesourcery.com>
14534 Hafiz Abid Qadeer <abidh@codesourcery.com>
14536 * tracepoint.c (trace_buffer_size): New global.
14537 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14538 (init_trace_buffer): Change to one-argument function. Allocate
14539 trace buffer memory.
14540 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14541 handle QTBuffer:size packet.
14542 (cmd_bigqtbuffer_size): New function.
14543 (initialize_tracepoint): Call init_trace_buffer with
14544 DEFAULT_TRACE_BUFFER_SIZE.
14545 * server.c (handle_query): Add QTBuffer:size in the
14548 2013-03-07 Yao Qi <yao@codesourcery.com>
14550 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14551 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14553 (cmd_qtsp): Adjust condition. Do post increment.
14554 Set cur_action and cur_step_action back to 0.
14556 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14559 * linux-low.c (linux_write_memory): Return early success if LEN is
14562 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14564 * configure.srv: Add x86_64-*-cygwin* as target.
14566 2013-02-28 Tom Tromey <tromey@redhat.com>
14568 * configure.ac: Invoke AC_SYS_LARGEFILE.
14569 * configure, config.in: Rebuild.
14571 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14573 * win32-low.c: Throughout, fix format strings and casts of
14574 printf-like functions to avoid type related warnings on all
14576 (get_child_debug_event): Print dwDebugEventCode as hex since
14577 that's how it's usually documented.
14579 2013-02-28 Yao Qi <yao@codesourcery.com>
14581 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14584 2013-02-27 Jiong Wang <jiwang@tilera.com>
14586 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14587 (reg-tilegx32.c): New rule.
14588 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14589 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14590 different register info initializer according to elf class.
14591 (init_registers_tilgx32): New function. The tilegx32 register info
14593 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14594 (tile_store_gregset): Likewise.
14596 2013-02-27 Yao Qi <yao@codesourcery.com>
14598 * server.c (process_point_options): Print debug message when
14599 debug_threads is true.
14601 2013-02-26 Yao Qi <yao@codesourcery.com>
14603 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14605 2013-02-19 Pedro Alves <palves@redhat.com>
14606 Kai Tietz <ktietz@redhat.com>
14610 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14611 instead of strtoul to extract address from packet.
14612 (process_serial_event) <'z'>: Likewise.
14614 2013-02-18 Yao Qi <yao@codesourcery.com>
14616 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14618 2013-02-14 Pedro Alves <palves@redhat.com>
14622 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14623 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14625 2013-02-14 Pedro Alves <palves@redhat.com>
14627 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14629 2013-02-14 Pedro Alves <palves@redhat.com>
14631 * tracepoint.c (save_string): Delete.
14632 (add_tracepoint_action): Use savestring instead of save_string.
14634 2013-02-12 Pedro Alves <palves@redhat.com>
14636 * linux-xtensa-low.c: Ditto.
14637 * xtensa-xtregs.c: Ditto.
14639 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14641 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14644 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14646 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14647 aarch64_num_wp_regs and aarch64_num_bp_regs to
14648 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14650 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14652 * linux-aarch64-low.c (ps_get_thread_area): Replace
14653 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14655 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14656 Marcus Shawcroft <marcus.shawcroft@arm.com>
14657 Nigel Stephens <nigel.stephens@arm.com>
14658 Yufeng Zhang <yufeng.zhang@arm.com>
14660 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14661 (aarch64.c, aarch64-without-fpu.c): New targets.
14662 * configure.srv (aarch64*-*-linux*): New.
14663 * linux-aarch64-low.c: New file.
14665 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14667 * linux-low.c (handle_extended_wait, linux_create_inferior)
14668 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14669 (dequeue_one_deferred_signal, linux_resume_one_thread)
14670 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14671 (linux_tracefork_grandchild, linux_test_for_tracefork)
14672 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14673 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14674 where the argument is 0.
14676 2013-01-25 Yao Qi <yao@codesourcery.com>
14678 * event-loop.c: Include "queue.h".
14679 (gdb_event_p): New typedef.
14680 (struct gdb_event) <next_event>: Remove.
14681 (event_queue): Change to QUEUE(gdb_event_p).
14682 (async_queue_event): Remove.
14683 (gdb_event_xfree): New.
14684 (initialize_event_loop): New.
14685 (process_event): Use API from QUEUE.
14686 (wait_for_event): Likewise.
14687 * server.c (main): Call initialize_event_loop.
14688 * server.h (initialize_event_loop): Declare.
14690 2013-01-18 Yao Qi <yao@codesourcery.com>
14692 * ax.h (struct eval_agent_expr_context): New.
14693 (gdb_eval_agent_expr): Update declaration.
14694 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14695 TFRAME. Add new argument CTX.
14696 * server.h (struct eval_agent_expr_context): Declare.
14697 (agent_mem_read, agent_tsv_read): Update declaration.
14698 (agent_mem_read_string): Likewise.
14699 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14700 (add_traceframe_block): Add new argument TPOINT.
14701 Increase TPOINT->traceframe_usage.
14702 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14703 eval_tracepoint_agent_expr.
14704 (condition_true_at_tracepoint): Likewise.
14705 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14706 (agent_mem_read_string, agent_tsv_read): Likewise.
14708 2013-01-16 Yao Qi <yao@codesourcery.com>
14710 * linux-low.c (linux_resume_one_lwp): Don't check
14711 'lwp->bp_reinsert != 0'.
14713 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14714 Pedro Alves <palves@redhat.com>
14716 * lynx-low.c (ptrace_request_to_str): Define a temporary
14717 macro and use it to simplify this function's implementation.
14719 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14721 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14724 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14726 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14728 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14730 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14732 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14734 * lynx-low.c (lynx_resume): Use the resume_info parameter
14735 to determine the ptid for the lynx_ptrace call, unless
14736 it is equal to minus_one_ptid, in which case we use the
14737 ptid of the current_inferior.
14738 (lynx_wait_1): After having received a thread create/exit
14739 event, resume the inferior's execution using the signaling
14740 thread's ptid, rather than the old ptid.
14742 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14744 * lynx-low.c (lynx_resume): Delete variable ret.
14746 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14748 * gdbreplay.c (gdbreplay_version): Update copyright year.
14749 * server.c (gdbserver_version): Likewise.
14751 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14753 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14756 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14758 * lynx-low.c (ptrace_request_to_str): Add handling for
14759 PTRACE_GETTRACESIG.
14761 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14763 * lynx-low.c (lynx_attach): Delete variable new_process.
14765 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14767 * lynx-low.c (lynx_create_inferior): Delete variable
14770 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14772 * lynx-low.c (ptrace_request_to_str): Do not handle
14773 PTRACE_GETTHREADLIST if this macro does not exist.
14775 2012-12-15 Yao Qi <yao@codesourcery.com>
14777 * Makefile.in (OBS): Add notif.o.
14778 * notif.c, notif.h: New.
14779 * server.c: Include "notif.h".
14780 (struct vstop_notif) <next>: Remove.
14782 (queue_stop_reply): Update.
14783 (push_event, send_next_stop_reply): Remove.
14784 (discard_queued_stop_replies): Update.
14785 (notif_stop): New variable.
14786 (handle_v_stopped): Remove.
14787 (handle_v_requests): Don't call handle_v_stopped. Call
14788 handle_ack_notif instead.
14789 (queue_stop_reply_callback): Call notif_event_enque instead
14790 of queue_stop_reply.
14791 (handle_status): Don't call send_next_stop_reply, call
14792 notif_write_event instead.
14793 (kill_inferior_callback): Likewise.
14794 (detach_or_kill_inferior_callback): Likewise.
14795 (main): Call initialize_notif.
14796 (process_serial_event): Call QUEUE_is_empty.
14797 (handle_target_event): Call notif_push instead of push event.
14798 * server.h (push_event): Remove declaration.
14800 2012-12-10 Tom Tromey <tromey@redhat.com>
14802 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14803 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14806 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14807 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14808 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14809 (amd64-linux-ipa.o, ax.o): Rewrite.
14810 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14811 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14812 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14813 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14814 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14815 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14816 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14817 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14818 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14819 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14820 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14821 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14822 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14823 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14824 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14825 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14826 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14827 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14828 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14829 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14830 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14831 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14832 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14833 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14834 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14835 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14836 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14837 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14838 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14839 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14840 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14841 (reg-tilegx.o): Remove.
14842 (all_object_files): New macro.
14843 Include .deps files.
14844 * aclocal.m4, configure: Rebuild.
14845 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14846 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14847 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14849 2012-12-05 Tom Tromey <tromey@redhat.com>
14852 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14854 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14856 * configure.ac: Check for linux/perf_event.h.
14857 * config.in: Regenerated.
14858 * configure: Regenerated.
14860 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14862 * hostio.c (handle_readlink): Decrease buffer size
14863 parameter passed to readlink by one byte.
14865 2012-11-26 Yao Qi <yao@codesourcery.com>
14867 * configure.ac (build_warnings): Append '-Wempty-body'.
14868 * configure: Regenerated.
14869 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14872 2012-11-15 Pierre Muller <muller@sourceware.org>
14874 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14875 * config.in: Regenerate.
14876 * configure: Regenerate.
14877 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14878 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14879 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14880 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14882 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14883 instead of <sys/wait.h> header.
14884 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14886 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14888 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14889 (various make rules): Remove -DGDBSERVER
14891 2012-11-09 Yao Qi <yao@codesourcery.com>
14893 * spu-low.c (current_ptid): Move it to ..
14894 * gdbthread.h: ... here. New.
14895 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14896 * server.c (myresume, process_serial_event): Likewise.
14897 * thread-db.c (thread_db_find_new_threads): Likewise.
14898 * tracepoint.c (run_inferior_command): Likewise.
14900 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14902 * server.c (handle_search_memory_1): Include access length in
14905 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14907 * linux-crisv32-low.c: Fix compile errors.
14909 2012-09-04 Yao Qi <yao@codesourcery.com>
14911 * tracepoint.c (cmd_qtsv): Adjust debug message.
14912 Don't check CUR_TPOINT.
14914 2012-08-28 Yao Qi <yao@codesourcery.com>
14916 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14917 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14918 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14919 Remove declarations of xmalloc, xreallloc, xstrdup and
14921 * Makefile.in (libiberty_h): New.
14922 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14923 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14925 2012-08-23 Yao Qi <yao@codesourcery.com>
14927 * server.h: Remove declaration of 'xsnprintf'.
14929 2012-08-22 Keith Seitz <keiths@redhat.com>
14931 * server.h: Include build-gnulib-gbserver/config.h.
14932 * gdbreplay.c: Likewise.
14934 2012-08-08 Doug Evans <dje@google.com>
14936 * Makefile.in (SFILES): Add gdb_vecs.c.
14937 (OBS): Add gdb_vecs.o.
14938 (gdb_vecs_h, host_defs_h): New variables.
14939 (thread-db.o): Add $(gdb_vecs_h) dependency.
14940 (gdb_vecs.o): New rule.
14941 * thread-db.c: #include "gdb_vecs.h".
14942 (thread_db_load_search): Use a vector to iterate over path elements.
14943 Handle text appearing after "$pdir".
14945 * configure.ac: Add check for strstr.
14946 * config.in: Regenerate.
14947 * configure: Regenerate.
14949 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14951 * hostio.c (handle_pread): If pread fails, fall back to attempting
14953 (handle_pwrite): Likewise for pwrite.
14955 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14957 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14958 between unsupported TYPE and unimplementable ADDR/LEN combination.
14959 (arm_insert_point): Act on new return value.
14961 2012-07-31 Pedro Alves <palves@redhat.com>
14963 * server.c (process_point_options): Only skip tokens if we find
14964 one that is unrecognized. Don't treat 'X' specially while
14965 skipping unrecognized tokens.
14967 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14969 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14970 to 4-byte-align HW breakpoint addresses for Thumb.
14972 2012-07-27 Yao Qi <yao@codesourcery.com>
14976 * server.h: Declare gdb_agent_about_to_close.
14977 * target.c (kill_inferior): Include "agent.h".
14978 New. Send command 'kill'.
14979 * target.h (kill_inferior): Removed macro.
14980 * tracepoint.c (gdb_agent_about_to_close): New.
14981 (gdb_agent_helper_thread): Handle command 'close'.
14982 Wait endlessly until the inferior stops.
14983 Install gdb_agent_remove_socket to atexit hook.
14984 (agent_socket_name): New static variable.
14985 (gdb_agent_socket_init): Replace local variable 'name' with
14986 'agent_socket_name'.
14987 (gdb_agent_remove_socket): New.
14989 2012-07-27 Yao Qi <yao@codesourcery.com>
14991 * server.c (process_point_options): Stop at 'X' when parsing.
14993 2012-07-19 Michael Eager <eager@eagercon.com>
14995 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14997 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14998 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14999 hardware breakpoint.
15001 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15003 * gdbserver/linux-low.c (initialize_low): Call
15004 linux_ptrace_init_warnings.
15006 2012-07-02 Doug Evans <dje@google.com>
15008 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15011 2012-07-02 Stan Shebs <stan@codesourcery.com>
15013 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15014 (ax.o): Add it to build rule.
15016 (OBS): Add format.o.
15017 (IPA_OBS): Add format.o.
15018 * server.c (handle_query): Claim support for breakpoint commands.
15019 (process_point_options): Add command case.
15020 (process_serial_event): Leave running if there are printfs in
15022 * mem-break.h (any_persistent_commands): Declare.
15023 (add_breakpoint_commands): Declare.
15024 (gdb_no_commands_at_breakpoint): Declare.
15025 (run_breakpoint_commands): Declare.
15026 * mem-break.c (struct point_command_list): New struct.
15027 (struct breakpoint): New field command_list.
15028 (any_persistent_commands): New function.
15029 (add_commands_to_breakpoint): New function.
15030 (add_breakpoint_commands): New function.
15031 (gdb_no_commands_at_breakpoint): New function.
15032 (run_breakpoint_commands): New function.
15033 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15035 * ax.c: Include format.h.
15036 (ax_printf): New function.
15037 (gdb_eval_agent_expr): Add printf opcode.
15039 2012-06-13 Yao Qi <yao@codesourcery.com>
15041 * server.c (start_inferior): Remove duplicated writes to fields
15042 'last_resume_kind' and 'last_status' of 'current_inferior'.
15044 2012-06-12 Yao Qi <yao@codesourcery.com>
15045 Pedro Alves <palves@redhat.com>
15047 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15049 * server.c (handle_v_cont): Extend comment.
15051 2012-06-11 Yao Qi <yao@codesourcery.com>
15053 * linux-low.c (linux_attach): Add 'static'.
15055 2012-06-06 Yao Qi <yao@codesourcery.com>
15057 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15059 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15061 Fix gcc -flto compilation warning.
15062 * server.c (main): Make variable multi_mode and attach volatile.
15064 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15066 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15067 if the platform doesn't know about it.
15069 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15071 * Makefile.in (SFILES): Add linux-tile-low.c.
15072 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15073 * configure.srv: Handle tilegx-*-linux*.
15074 * linux-tile-low.c: New file.
15076 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15078 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15080 2012-05-24 Pedro Alves <palves@redhat.com>
15084 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15086 2012-05-24 Pedro Alves <palves@redhat.com>
15090 Replace target_signal with gdb_signal throughout.
15092 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15094 * linux-low.c (linux_store_registers): Avoid the copying sequence
15095 when no data has been retrieved by ptrace.
15097 2012-05-22 Will Deacon <will.deacon@arm.com>
15099 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15100 Include asm/ptrace.h.
15101 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15104 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15106 * linux-low.c (linux_store_registers): Don't re-retrieve data
15107 with ptrace that has already been obtained from /proc. Always
15108 copy any data retrieved with ptrace to the buffer supplied.
15110 2012-05-11 Yao Qi <yao@codesourcery.com>
15111 Pedro Alves <palves@redhat.com>
15113 * linux-low.c (enum stopping_threads_kind): New.
15114 (stopping_threads): Change type to `enum stopping_threads_kind'.
15115 (handle_extended_wait): If stopping and suspending threads, leave
15116 the new_lwp suspended too.
15117 (linux_wait_for_event): Adjust.
15118 (stop_all_lwps): Set `stopping_threads' to
15119 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15120 whether we're suspending threads or just stopping them. Assert no
15123 2012-04-29 Yao Qi <yao@codesourcery.com>
15125 * server.h: Move some code to ...
15126 * gdbthread.h: ... here. New.
15127 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15128 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15129 (nto-low.o, win32-low.o): Likewise.
15130 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15131 * regcache.c, remote-utils.c, server.c: Likewise.
15132 * target.c, tracepoint.c, win32-low.c: Likewise.
15134 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15136 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15137 (PTRACE_ARG4_TYPE): Likewise.
15138 (PTRACE_XFER_TYPE): Likewise.
15139 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15140 ptrace to PTRACE_ARG3_TYPE.
15141 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15142 (PTRACE_ARG4_TYPE): Likewise.
15143 (PTRACE_XFER_TYPE): Likewise.
15144 (linux_detach_one_lwp): Cast fourth argument of
15145 ptrace to long then PTRACE_ARG4_TYPE.
15146 (regsets_fetch_inferior_registers): Cast third argument of
15147 ptrace to long then PTRACE_ARG3_TYPE.
15148 (regsets_store_inferior_registers): Likewise.
15150 2012-04-20 Pedro Alves <palves@redhat.com>
15152 * configure: Regenerate.
15154 2012-04-19 Pedro Alves <palves@redhat.com>
15156 * Makefile.in (GNULIB_BUILDDIR): New.
15157 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15158 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15159 (all, install-only, uninstall, clean-info, all-lib, clean): No
15160 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15161 (maintainer-clean realclean distclean): Use subdir_do.
15163 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15164 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15165 * acinclude.m4: Include acx_configure_dir.m4.
15166 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15167 calls. Call AC_PROG_RANLIB. Configure gnulib using
15170 (GNULIB_STDINT_H): Adjust.
15171 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15172 * gdbreplay.c: Include build-gnulib/config.h.
15173 * server.h: Likewise.
15174 * aclocal.m4: Regenerate.
15175 * config.in: Regenerate.
15176 * configure: Regenerate.
15178 2012-04-19 Pedro Alves <palves@redhat.com>
15180 * Makefile.in (LIBGNU, INCGNU): Adjust.
15181 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15182 (all, install-only, uninstall, clean-info, all-lib, clean)
15183 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15184 * configure.ac: Adjust AC_OUTPUT output.
15185 * aclocal.m4: Regenerate.
15186 * configure: Regenerate.
15188 2012-04-19 Pedro Alves <palves@redhat.com>
15190 * Makefile.in (generated_files): New.
15191 (server_h): Remove the explicit dependency on config.h, and depend
15192 on $generated_files.
15194 2012-04-19 Pedro Alves <palves@redhat.com>
15196 * Makefile.in (INCGNU): Add -Ignulib.
15198 2012-04-19 Pedro Alves <palves@redhat.com>
15200 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15201 (INCGNU): ... this, and spell out -I here.
15202 (GNULIB_LIB): Rename to ...
15203 (LIBGNU): ... this.
15204 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15206 2012-04-19 Pedro Alves <palves@redhat.com>
15208 * config.in: Regenerate.
15210 2012-04-19 Pedro Alves <palves@redhat.com>
15212 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15213 * server.h (memmem): Remove declaration.
15214 * config.in: Regenerate.
15215 * configure: Regenerate.
15217 2012-04-19 Yao Qi <yao@codesourcery.com>
15219 * Makefile.in (SFILES): Add common/vec.c.
15223 2012-04-19 Yao Qi <yao@codesourcery.com>
15225 * remote-utils.c (prepare_resume_reply): Replace with macro
15226 target_core_of_thread.
15227 * server.c (handle_qxfer_threads_proper): Likewise.
15228 * target.h (traget_core_of_thread): New macro.
15230 2012-04-18 Pedro Alves <palves@redhat.com>
15232 * aclocal.m4: Regenerate.
15233 * configure: Regenerate.
15235 2012-04-16 Yao Qi <yao@codesourcery.com>
15237 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15238 duplicated on address.
15240 2012-04-16 Yao Qi <yao@codesourcery.com>
15242 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15243 (struct tracepoint_action_ops) <send>: New field.
15244 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15245 (agent_expr_send, x_tracepoint_action_send): New.
15246 (l_tracepoint_action_send): New.
15247 (cmd_qtdp): Download and install tracepoint
15248 according to `use_agent'.
15249 (run_inferior_command): Add one more parameter `len'.
15251 (tracepoint_send_agent): New.
15252 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15254 2012-04-16 Yao Qi <yao@codesourcery.com>
15256 * tracepoint.c (download_tracepoints): Moved to ...
15257 (cmd_qtstart): ... here.
15259 2012-04-14 Yao Qi <yao@codesourcery.com>
15261 * tracepoint.c: Include inttypes.h.
15262 (struct collect_memory_action): Use sized types.
15263 (struct tracepoint): Likewise.
15264 (cmd_qtdp, stop_tracing): Update print specifiers.
15265 (cmd_qtp, response_tracepoint): Likewise.
15266 (collect_data_at_tracepoint): Likewise.
15267 (collect_data_at_step): Likewise.
15269 2012-04-14 Yao Qi <yao@codesourcery.com>
15271 Import gnulib module inttypes.
15272 * aclocal.m4, config.in, configure: Regenerated.
15274 2012-04-14 Yao Qi <yao@codesourcery.com>
15276 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15277 Makefile and config.status at last.
15279 2012-04-13 Yao Qi <yao@codesourcery.com>
15281 * tracepoint.c: Include stdint.h unconditionally.
15283 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15285 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15286 on BFD_HAVE_SYS_PROCFS_TYPE.
15287 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15288 * configure: Regenerate.
15289 * config.in: Likewise.
15291 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15293 * Makefile.in (clean): Also remove x32.c x32-linux.c
15294 x32-avx.c x32-avx-linux.c.
15295 (x32.o): New target.
15297 (x32-linux.o): Likewise.
15298 (x32-linux.c): Likewise.
15299 (x32-avx.o): Likewise.
15300 (x32-avx.c): Likewise.
15301 (x32-avx-linux.o): Likewise.
15302 (x32-avx-linux.c): Likewise.
15304 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15305 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15306 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15307 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15308 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15309 i386/x32-avx-linux.xml.
15311 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15312 (init_registers_x32_avx_linux): Likwise.
15313 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15314 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15316 2012-04-13 Pedro Alves <palves@redhat.com>
15318 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15319 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15320 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15321 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15324 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15326 * linux-x86-low.c (compat_x32_clock_t): New.
15327 (compat_x32_siginfo_t): Likewise.
15328 (compat_x32_siginfo_from_siginfo): Likewise.
15329 (siginfo_from_compat_x32_siginfo): Likewise.
15330 (linux_is_elf64): Likewise.
15331 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15332 and siginfo_from_compat_x32_siginfo for x32.
15333 (x86_arch_setup): Set linux_is_elf64.
15335 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15338 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15340 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15341 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15342 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15343 compatible with process.
15345 2012-04-12 Yao Qi <yao@codesourcery.com>
15347 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15348 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15349 (install-only, install-info, clean): Handle sub dir gnulib.
15350 (all-lib, am--refresh): New targets.
15351 (memmem.o): Remove target.
15352 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15353 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15354 (AC_REPLACE_FUNCS): Remove memmem.
15355 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15356 (AC_OUTPUT): Generate Makefile in gnulib/.
15357 * aclocal.m4, config.in, configure: Regenerated.
15359 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15361 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15363 2012-04-05 Pedro Alves <palves@redhat.com>
15365 -Werror=strict-aliasing
15367 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15370 2012-04-04 Pedro Alves <palves@redhat.com>
15372 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15373 (sparc_store_gregset_from_stack, sparc_store_gregset)
15374 (sparc_breakpoint_at): Fix formatting.
15376 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15378 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15380 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15381 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15382 * config.in: Regenerate.
15383 * configure: Likewise.
15385 2012-03-29 Pedro Alves <palves@redhat.com>
15387 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15388 Correct ptrace arguments.
15390 2012-03-28 Pedro Alves <palves@redhat.com>
15392 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15393 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15394 (IA64_FR1_REGNUM): New defines.
15395 (ia64_fetch_register): New.
15396 (the_low_target): Install it.
15397 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15399 * linux-low.c (linux_fetch_registers): Try the
15400 the_low_target.fetch_register hook first.
15402 * linux-arm-low.c (the_low_target): Adjust.
15403 * linux-bfin-low.c (the_low_target): Adjust.
15404 * linux-cris-low.c (the_low_target): Adjust.
15405 * linux-crisv32-low.c (the_low_target): Adjust.
15406 * linux-m32r-low.c (the_low_target): Adjust.
15407 * linux-m68k-low.c (the_low_target): Adjust.
15408 * linux-mips-low.c (the_low_target): Adjust.
15409 * linux-ppc-low.c (the_low_target): Adjust.
15410 * linux-s390-low.c (the_low_target): Adjust.
15411 * linux-sh-low.c (the_low_target): Adjust.
15412 * linux-sparc-low.c (the_low_target): Adjust.
15413 * linux-tic6x-low.c (the_low_target): Adjust.
15414 * linux-x86-low.c (the_low_target): Adjust.
15415 * linux-xtensa-low.c (the_low_target): Adjust.
15417 2012-03-26 Pedro Alves <palves@redhat.com>
15419 * server.c (handle_qxfer_libraries): Don't bail early if
15420 the_target->qxfer_libraries_svr4 is not NULL.
15422 2012-03-26 Pedro Alves <palves@redhat.com>
15424 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15426 2012-03-23 Pedro Alves <palves@redhat.com>
15428 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15429 "library-list-svr4" element's start tag when the the DSO list is
15432 2012-03-23 Pedro Alves <palves@redhat.com>
15434 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15435 a variable whose type size is the same as the inferior's pointer
15438 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15440 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15442 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15443 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15444 * linux-low.h: Include <signal.h>.
15445 (struct siginfo): Remove forward declaration.
15446 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15449 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15451 * .gitignore: Ignore more files.
15453 2012-03-19 Pedro Alves <palves@redhat.com>
15454 Jan Kratochvil <jan.kratochvil@redhat.com>
15456 * server.c (cont_thread, general_thread): Add describing comments.
15457 (start_inferior): Clear `cont_thread'.
15458 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15461 2012-03-15 Yao Qi <yao@codesourcery.com>
15463 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15465 (cmd_qtdp): ... here.
15467 2012-03-15 Yao Qi <yao@codesourcery.com>
15469 * tracepoint.c (struct tracepoint_action_ops): New.
15470 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15471 (m_tracepoint_action_download): New.
15472 (r_tracepoint_action_download): New.
15473 (x_tracepoint_action_download): New.
15474 (l_tracepoint_action_download): New.
15475 (add_tracepoint_action): Install `action->ops' according type.
15476 (download_tracepoint_1): Move code `download' function pointer
15477 of various tracepoint_action_ops.
15479 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15481 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15482 linux_ptrace_attach_warnings.
15484 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15486 * Makefile.in (linux-ptrace.o): New.
15487 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15488 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15489 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15490 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15491 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15493 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15495 2012-03-08 Yao Qi <yao@codesourcery.com>
15496 Pedro Alves <palves@redhat.com>
15498 Fix PR server/13392.
15499 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15500 offset of JMP insn.
15501 * tracepoint.c (remove_tracepoint): New.
15502 (cmd_qtdp): Call remove_tracepoint when failed to install.
15504 2012-03-07 Pedro Alves <palves@redhat.com>
15506 * linux-low.c (get_detach_signal): New.
15507 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15508 Pass on pending signals to PTRACE_DETACH. Check the result of the
15510 * server.c (program_signals, program_signals_p): New.
15511 (handle_general_set): Handle QProgramSignals.
15512 * server.h (program_signals, program_signals_p): Declare.
15514 2012-03-05 Pedro Alves <palves@redhat.com>
15515 Jan Kratochvil <jan.kratochvil@redhat.com>
15517 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15520 2012-03-03 Yao Qi <yao@codesourcery.com>
15522 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15523 agent_look_up_symbols.
15525 2012-03-03 Yao Qi <yao@codesourcery.com>
15527 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15528 (linux-x86-low.o): Likewise.
15529 * server.h: Remove in_process_agent_loaded.
15530 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15534 2012-03-03 Yao Qi <yao@codesourcery.com>
15536 * tracepoint.c (gdb_agent_capability): New global.
15537 (in_process_agent_loaded_ust): Renamed to
15538 `in_process_agent_supports_ust'.
15540 (in_process_agent_supports_ust): Call agent_capability_check.
15541 (clear_installed_tracepoints): Assert that agent supports
15544 2012-03-03 Yao Qi <yao@codesourcery.com>
15546 * linux-low.c (linux_supports_agent): New.
15547 (linux_target_ops): Initialize field `supports_agent' with
15548 linux_supports_agent.
15549 * target.h (struct target_ops) <supports_agent>: New.
15550 (target_supports_agent): New macro.
15551 * server.c (handle_general_set): Handle packet 'QAgent'.
15552 (handle_query): Send `QAgent+'.
15553 * Makefile.in (server.o): Depends on agent.h.
15555 2012-03-03 Yao Qi <yao@codesourcery.com>
15557 * Makefile.in (OBS): Add agent.o.
15558 Add new rule for agent.o.
15559 Track dependence of tracepoint.c on agent.h.
15560 * tracepoint.c (run_inferior_command_1):
15561 (run_inferior_command): Call agent_run_command.
15562 (gdb_ust_connect_sync_socket): Deleted. Move it to
15564 (resume_thread, stop_thread): Likewise.
15565 (gdb_ust_socket_init): Renamed to ...
15566 (gdb_agent_socket_init): ... New.
15567 (gdb_ust_thread): Renamed to ...
15568 (gdb_agent_helper_thread): ... New.
15569 (gdb_ust_init): Move some code to ...
15570 (gdb_agent_init): ... here. New.
15571 [HAVE_UST]: Call gdb_ust_init.
15572 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15573 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15574 * config.in, configure: Regenerated.
15576 2012-03-02 Pedro Alves <palves@redhat.com>
15578 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15579 * linux-low.c (struct simple_pid_list): New.
15580 (stopped_pids): New a struct simple_pid_list pointer.
15581 (add_to_pid_list, pull_pid_from_list): New.
15582 (handle_extended_wait): Don't assume the first signal new children
15583 report is SIGSTOP. Adjust call to pull_pid_from_list.
15584 (linux_wait_for_lwp): Adjust.
15586 2012-03-02 Yao Qi <yao@codesourcery.com>
15588 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15591 2012-03-02 Yao Qi <yao@codesourcery.com>
15593 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15594 `stop_pc' and `tpoint'. Update caller.
15596 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15598 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15599 * linux-low.c (use_linux_regsets): New macro.
15600 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15601 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15602 (linux_register_in_regsets): New function.
15603 (usr_fetch_inferior_registers): Skip registers covered by
15605 (usr_store_inferior_registers): Likewise.
15606 (usr_fetch_inferior_registers): New macro.
15607 (usr_store_inferior_registers): Likewise.
15608 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15609 (linux_store_registers): Likewise.
15610 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15612 (init_registers_mips64_dsp_linux): Likewise.
15613 (init_registers_mips_linux): New macro.
15614 (init_registers_mips_dsp_linux): Likewise.
15615 (mips_dsp_num_regs): Likewise.
15616 (DSP_BASE, DSP_CONTROL): New fallback macros.
15617 (mips_base_regs): New macro.
15618 (mips_regmap): Use it. Fix the size.
15619 (mips_dsp_regmap): New variable.
15620 (mips_dsp_regset_bitmap): Likewise.
15621 (mips_arch_setup): New function.
15622 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15624 (mips_cannot_store_register): Likewise.
15625 (the_low_target): Update .arch_setup, .num_regs and .regmap
15626 initializers. Add .regset_bitmap initializer.
15627 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15629 * linux-bfin-low.c (the_low_target): Likewise.
15630 * linux-cris-low.c (the_low_target): Likewise.
15631 * linux-crisv32-low.c (the_low_target): Likewise.
15632 * linux-ia64-low.c (the_low_target): Likewise.
15633 * linux-m32r-low.c (the_low_target): Likewise.
15634 * linux-m68k-low.c (the_low_target): Likewise.
15635 * linux-ppc-low.c (the_low_target): Likewise.
15636 * linux-s390-low.c (the_low_target): Likewise.
15637 * linux-sh-low.c (the_low_target): Likewise.
15638 * linux-sparc-low.c (the_low_target): Likewise.
15639 * linux-tic6x-low.c (the_low_target): Likewise.
15640 * linux-x86-low.c (the_low_target): Likewise.
15641 * linux-xtensa-low.c (the_low_target): Likewise.
15642 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15643 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15644 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15646 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15647 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15649 2012-02-29 Yao Qi <yao@codesourcery.com>
15650 Pedro Alves <palves@redhat.com>
15652 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15653 `step_over_finished' is true.
15655 2012-02-27 Pedro Alves <palves@redhat.com>
15657 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15658 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15660 2012-02-27 Pedro Alves <palves@redhat.com>
15663 * linux-low.c (pid_is_stopped): New.
15664 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15666 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15668 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15671 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15673 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15675 2012-02-24 Luis Machado <lgustavo@codesourcery>
15677 * server.c (handle_query): Advertise support for target-side
15678 breakpoint condition evaluation.
15679 (process_point_options): New function.
15680 (process_serial_event): When inserting a breakpoint, check for
15681 a target-side condition that should be evaluated.
15683 * mem-break.c: Include regcache.h and ax.h.
15684 (point_cond_list_t): New data structure.
15685 (breakpoint) <cond_list>: New field.
15686 (find_gdb_breakpoint_at): Make non-static.
15687 (delete_gdb_breakpoint_at): Clear any target-side
15689 (clear_gdb_breakpoint_conditions): New function.
15690 (add_condition_to_breakpoint): Likewise.
15691 (add_breakpoint_condition): Likewise.
15692 (gdb_condition_true_at_breakpoint): Likewise.
15693 (gdb_breakpoint_here): Return result directly instead
15694 of going through a local variable.
15696 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15697 (clear_gdb_breakpoint_conditions): Likewise.
15698 (add_breakpoint_condition): Likewise.
15699 (gdb_condition_true_at_breakpoint): Likewise.
15701 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15702 (need_step_over_p): Take target-side breakpoint condition into
15705 2012-02-24 Luis Machado <lgustavo@codesourcery>
15707 * server.h: Include tracepoint.h.
15708 (agent_mem_read, agent_get_trace_state_variable_value,
15709 agent_set_trace_state_variable_value,
15710 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15711 get_set_tsv_func_addr): New prototypes.
15713 * ax.h: New include file.
15714 * ax.c: New source file.
15716 * tracepoint.c: Include ax.h.
15717 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15718 agent_expr, eval_result_type): Move to ax.h.
15719 (parse_agent_expr): Rename to ...
15720 (gdb_parse_agent_expr): ... this, make it non-static and move
15722 (unparse_agent_expr) Rename to ...
15723 (gdb_unparse_agent_expr): ... this, make it non-static and move
15725 (eval_agent_expr): Rename to ...
15726 (eval_tracepoint_agent_expr): ... this.
15727 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15728 forward declarations.
15729 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15730 (agent_get_trace_state_variable_value): New function.
15731 (agent_set_trace_state_variable_value): New function.
15732 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15733 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15734 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15735 (condition_true_at_tracepoint): Likewise.
15736 (parse_agent_expr): Rename to ...
15737 (gdb_parse_agent_expr): ... this and move to ax.c.
15738 (unparse_agent_expr): Rename to ...
15739 (gdb_unparse_agent_expr): ... this and move to ax.c.
15740 (gdb_agent_op_name): Move to ax.c.
15741 (eval_agent_expr): Rename to ...
15742 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15744 (eval_tracepoint_agent_expr): New function.
15745 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15747 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15749 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15750 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15751 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15752 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15753 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15754 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15755 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15756 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15757 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15758 (compile_bytecodes): Remove forward declaration.
15759 (is_goto_target): Move to ax.c.
15760 (compile_bytecodes): Move to ax.c and call
15761 agent_get_trace_state_variable_value (...) and
15762 agent_set_trace_state_variable_value (...).
15764 * Makefile.in: Update ax.c and IPA dependencies.
15766 2012-02-24 Pedro Alves <palves@redhat.com>
15768 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15769 (cmd_bigqtbuffer_circular): ... this. Only handle
15770 'QTBuffer:circular:'.
15771 (handle_tracepoint_general_set): Adjust.
15773 2012-02-16 Yao Qi <yao@codesourcery.com>
15775 * inferiors.c: Move code to ...
15776 * dll.c: .... here. New.
15777 * server.h: Declare clear_dlls.
15778 * Makefile.in (SFILES): Add dll.c.
15782 2012-02-11 Yao Qi <yao@codesourcery.com>
15784 * server.c: (handle_monitor_command): Add a new parameter
15786 (handle_query): Update caller.
15788 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15790 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15791 * configure, config.in: Regenerate.
15792 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15795 2012-02-02 Pedro Alves <palves@redhat.com>
15797 Try SIGKILL first, then PTRACE_KILL.
15798 * linux-low.c (linux_kill_one_lwp): New.
15799 (linux_kill_one_lwp): Rename to ...
15800 (kill_one_lwp_callback): ... this. Use the new
15801 linux_kill_one_lwp.
15803 2012-02-02 Pedro Alves <palves@redhat.com>
15805 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15808 2012-01-27 Pedro Alves <palves@redhat.com>
15810 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15811 (elf_64_file_p): Make static.
15812 (linux_pid_exe_is_elf_64_file): New.
15813 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15814 Delete declarations.
15815 (linux_pid_exe_is_elf_64_file): Declare.
15816 * linux-x86-low.c (x86_arch_setup): Use
15817 linux_pid_exe_is_elf_64_file.
15819 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15821 * linux-low.c (linux_wait_for_event_1): Rename to ...
15822 (linux_wait_for_event): ... here and merge it with former
15823 linux_wait_for_event - new variable wait_ptid, use it.
15824 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15826 2012-01-23 Pedro Alves <palves@redhat.com>
15828 * server.c (main): Avoid yet another case of infinite loop while
15829 detaching/killing after a longjmp.
15831 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15834 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15836 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15838 * hostio.c (handle_readlink): New function.
15839 (handle_vFile): Call it to handle "vFile:readlink" packets.
15841 2012-01-20 Pedro Alves <palves@redhat.com>
15842 Ulrich Weigand <ulrich.weigand@linaro.org>
15844 * server.c (handle_v_requests): Only support vAttach and vRun to
15845 start multiple processes when in extended protocol mode.
15847 2012-01-17 Pedro Alves <palves@redhat.com>
15849 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15850 memalign plus mprotect to allocate the scratch buffer.
15852 2012-01-13 Pedro Alves <palves@redhat.com>
15854 * server.c (attach_inferior): Clear `cont_thread'.
15856 2012-01-13 Pedro Alves <palves@redhat.com>
15858 * server.c (main): Avoid infinite loop while detaching/killing
15861 2012-01-09 Doug Evans <dje@google.com>
15863 * server.c (start_inferior): Set last_ptid in --wrapper case.
15865 2012-01-06 Yao Qi <yao@codesourcery.com>
15867 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15869 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15871 2012-01-04 Yao Qi <yao@codesourcery.com>
15873 * tracepoint.c (cmd_qtdp): Print debug message
15874 for static tracepoint.
15876 2012-01-04 Yao Qi <yao@codesourcery.com>
15878 * tracepoint.c (trace_vdebug): Differentiate debug message
15879 between gdbserver and IPA.
15881 2012-01-03 Yao Qi <yao@codesourcery.com>
15883 * tracepoint.c (tracepoint_was_hit): Don't collect for
15886 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15888 * terminal.h: Reformat copyright header.
15890 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15892 * server.c (gdbserver_version): Update copyright year.
15893 * gdbreplay.c (gdbreplay_version): Likewise.
15895 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15897 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15900 2011-12-18 Hui Zhu <teawater@gmail.com>
15901 * linux-low.c (linux_create_inferior): Save return value to ret.
15903 2011-12-18 Hui Zhu <teawater@gmail.com>
15905 * linux-low.c (linux_create_inferior): Save return value to ret.
15907 2011-12-16 Doug Evans <dje@google.com>
15909 * linux-low.c (linux_create_inferior): If stdio connection,
15910 redirect stdin from /dev/null, stdout to stderr.
15911 * remote-utils.c (remote_is_stdio): New static global.
15912 (remote_connection_is_stdio): New function.
15913 (remote_prepare): Handle stdio connection.
15914 (remote_open): Ditto.
15915 (remote_close): Don't close stdin for stdio connections.
15916 (read_prim,write_prim): New functions. Replace all calls to
15917 read/write to these.
15918 * server.c (main): Watch for "-" argument. Move call to
15919 remote_prepare before start_inferior.
15920 * server.h (STDIO_CONNECTION_NAME): New macro.
15921 (remote_connection_is_stdio): Declare.
15923 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15924 in debugging output.
15926 2011-12-15 Yao Qi <yao@codesourcery.com>
15928 * tracepoint.c: Include sys/syscall.h.
15929 (gdb_ust_thread): Remove preprocessor conditional.
15931 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15933 * linux-low.c (linux_detach_one_lwp): Call
15934 the_low_target.prepare_to_resume before detaching.
15936 2011-12-14 Yao Qi <yao@codesourcery.com>
15938 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15941 2011-12-14 Yao Qi <yao@codesourcery.com>
15943 * i386-low.c (i386_low_stopped_data_address): Initialize local
15944 variable `control'.
15946 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15950 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15951 DR_CONTROL unless necessary. Extend comments.
15952 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15953 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15955 2011-12-13 Yao Qi <yao@codesourcery.com>
15957 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15959 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15961 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15963 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15964 Print new debug message for such case.
15966 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15968 Fix overlapping memcpy.
15969 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15970 the read_inferior_memory transfer.
15971 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15972 write_inferior_memory transfer.
15973 (set_fast_tracepoint_jump): New variable buf. Use it for the
15974 read_inferior_memory and write_inferior_memory transfers.
15975 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15976 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15977 Use it for the write_inferior_memory transfer.
15978 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15981 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15983 * linux-low.c (fetch_register, store_register): Make code
15984 consistent, fix formatting.
15986 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15988 * linux-low.c (usr_store_inferior_registers): Factor out code
15989 to handle individual registers into...
15990 (store_register): ... this new function.
15992 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15994 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15995 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15996 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15997 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15998 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15999 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16000 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16001 (srv_xmlfiles): Add new XML files.
16003 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16005 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16006 (init_registers_s390_linux32v1): Add prototype.
16007 (init_registers_s390_linux32v2): Likewise.
16008 (init_registers_s390_linux64v1): Likewise.
16009 (init_registers_s390_linux64v2): Likewise.
16010 (init_registers_s390x_linux64v1): Likewise.
16011 (init_registers_s390x_linux64v2): Likewise.
16012 (s390_num_regs): Increment to 52.
16013 (s390_regmap): Add orig_r2 register.
16014 (s390_num_regs_3264): Increment to 68.
16015 (s390_regmap_3264): Add orig_r2 register.
16016 (s390_collect_ptrace_register): Handle orig_r2 register.
16017 (s390_supply_ptrace_register): Likewise.
16018 (s390_fill_last_break): New function.
16019 (s390_store_last_break): Likewise.
16020 (s390_fill_system_call): New function.
16021 (s390_store_system_call): Likewise.
16022 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16024 (s390_check_regset): New function.
16025 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16026 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16027 Update target_regsets for available register sets.
16029 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16030 Jan Kratochvil <jan.kratochvil@redhat.com>
16032 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16033 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16035 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16036 * linux-low.h (struct process_info_private): New member r_debug.
16037 * server.c (handle_qxfer_libraries): Call
16038 the_target->qxfer_libraries_svr4.
16039 (handle_qxfer_libraries_svr4): New function.
16040 (qxfer_packets): New entry "libraries-svr4".
16041 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16042 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16043 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16044 PACKET_qXfer_libraries_svr4.
16046 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16048 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16049 PSW address/mask between 8-byte and 16-byte formats.
16050 (s390_supply_ptrace_register): Likewise.
16051 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16052 basic addressing mode bit.
16054 2011-11-24 Stan Shebs <stan@codesourcery.com>
16056 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16058 2011-11-17 Stan Shebs <stan@codesourcery.com>
16060 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16061 (tracing_start_time): New global.
16062 (tracing_stop_time): New global.
16063 (tracing_user_name): New global.
16064 (tracing_notes): New global.
16065 (tracing_stop_note): New global.
16066 (cmd_qtstart): Set traceframe_usage, start_time.
16067 (stop_tracing): Set stop_time.
16068 (cmd_qtstatus): Report additional status.
16069 (cmd_qtp): New function.
16070 (handle_tracepoint_query): Call it.
16071 (cmd_qtnotes): New function.
16072 (handle_tracepoint_general_set): Call it.
16073 (get_timestamp): Rename from tsv_get_timestamp.
16075 2011-11-14 Stan Shebs <stan@codesourcery.com>
16076 Kwok Cheung Yeung <kcy@codesourcery.com>
16078 * linux-x86-low.c (small_jump_insn): New.
16079 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16080 trampoline and error message, build a trampoline and issue a small
16081 jump instruction to it.
16082 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16083 trampoline and error message.
16084 (x86_get_min_fast_tracepoint_insn_len): New.
16085 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16086 * linux-low.h (struct linux_target_ops): Add arguments to
16087 install_fast_tracepoint_jump_pad operation, add new operation.
16088 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16090 (linux_get_min_fast_tracepoint_insn_len): New function.
16091 (linux_target_op): Add new operation.
16092 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16093 (gdb_trampoline_buffer_end): Ditto.
16094 (gdb_trampoline_buffer_error): Ditto.
16095 (struct ipa_sym_addresses): Add fields for new IPA variables.
16096 (symbol_list): Add entries for new IPA variables.
16097 (struct tracepoint): Add fields to hold the address range of the
16098 trampoline used by the tracepoint.
16099 (trampoline_buffer_head): New static variable.
16100 (trampoline_buffer_tail): Ditto.
16101 (claim_trampoline_space): New function.
16102 (have_fast_tracepoint_trampoline_buffer): New function.
16103 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16105 (install_fast_tracepoint): Ditto, also add error buffer argument.
16106 (cmd_qtminftpilen): New function.
16107 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16108 (fast_tracepoint_from_trampoline_address): New function.
16109 (fast_tracepoint_collecting): Handle trampoline as part of jump
16111 (set_trampoline_buffer_space): New function.
16112 (initialize_tracepoint): Initialize new IPA variables.
16113 * target.h (struct target_ops): Add arguments to
16114 install_fast_tracepoint_jump_pad operation, add new
16115 get_min_fast_tracepoint_insn_len operation.
16116 (target_get_min_fast_tracepoint_insn_len): New.
16117 (install_fast_tracepoint_jump_pad): Add arguments.
16118 * server.h (IPA_BUFSIZ): Define.
16119 * linux-i386-ipa.c: Include extra header files.
16120 (initialize_fast_tracepoint_trampoline_buffer): New function.
16121 (initialize_low_tracepoint): Call it.
16122 * server.h (set_trampoline_buffer_space): Declare.
16123 (claim_trampoline_space): Ditto.
16124 (have_fast_tracepoint_trampoline_buffer): Ditto.
16126 2011-11-14 Yao Qi <yao@codesourcery.com>
16128 * server.c (handle_query): Handle InstallInTrace for qSupported.
16129 * tracepoint.c (add_tracepoint): Sort list.
16130 (install_tracepoint, download_tracepoint): New.
16131 (cmd_qtdp): Call them to install and download tracepoints.
16132 (sort_tracepoints): Removed.
16133 (cmd_qtstart): Update.
16135 2011-11-14 Yao Qi <yao@codesourcery.com>
16137 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16138 * mem-break.h: Declare.
16139 * tracepoint.c (cmd_qtstart): Move some code to ...
16140 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16142 (download_tracepoints): Move some code to ...
16143 (download_tracepoint_1): ... here. New.
16145 2011-11-08 Yao Qi <yao@codesourcery.com>
16147 * remote-utils.c (relocate_instruction): A comment fix.
16149 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16151 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16152 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16153 dr_status_mirror and dr_control_mirror from debug_reg_state.
16154 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16155 (i386_initial_stuff): Remove use of deleted globals.
16156 (i386_get_thread_context, i386_set_thread_context,
16157 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16158 from debug_reg_state.
16160 2011-11-05 Yao Qi <yao@codesourcery.com>
16162 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16163 address as TPOINT's.
16165 2011-11-02 Stan Shebs <stan@codesourcery.com>
16167 * tracepoint.c (agent_mem_read_string): New function.
16168 (eval_agent_expr): Call it for tracenz.
16169 * server.c (handle_query): Report support for tracenz.
16171 2011-11-02 Yao Qi <yao@codesourcery.com>
16173 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16175 2011-11-02 Yao Qi <yao@codesourcery.com>
16177 * target.h: Fix a typo in comment.
16179 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16181 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16182 clobber the breakpoints' shadows with fast tracepoint jumps.
16183 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16184 * target.c (write_inferior_memory): Also pass MYADDR down to
16187 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16189 * configure.ac: Check support for personality routine.
16190 * configure: Regenerate.
16191 * config.in: Likewise.
16192 * linux-low.c: Include <sys/personality.h>.
16193 Define ADDR_NO_RANDOMIZE if necessary.
16194 (linux_create_inferior): Disable address space randomization when
16195 forking inferior, if requested.
16196 (linux_supports_disable_randomization): New function.
16197 (linux_target_ops): Install it.
16198 * server.h (disable_randomization): Declare.
16199 * server.c (disable_randomization): New global variable.
16200 (handle_general_set): Handle QDisableRandomization.
16201 (handle_query): Likewise for qSupported.
16202 (main): Support --disable-randomization and --no-disable-randomization
16203 command line arguments.
16204 * target.h (struct target_ops): Add supports_disable_randomization.
16205 (target_supports_disable_randomization): New macro.
16207 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16209 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16211 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16212 [!PT_GETDSBT] (target_loadmap): New definition.
16213 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16214 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16215 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16216 and PT_GETDSBT to LINUX_LOADMAP.
16217 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16218 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16220 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16222 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16223 (arm_linux_hwbp_cap): New static variable.
16224 (arm_linux_get_hwbp_cap): Replace by ...
16225 (arm_linux_init_hwbp_cap): ... this new function.
16226 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16227 (arm_linux_get_hw_watchpoint_count): Likewise.
16228 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16229 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16230 (arm_prepare_to_resume): Use perror_with_name instead of error.
16232 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16234 * linux-arm-low.c: Include <signal.h>.
16235 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16236 (struct arm_linux_hwbp_cap): New data type.
16237 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16238 (struct arm_linux_hw_breakpoint): New data type.
16239 (MAX_BPTS, MAX_WPTS): Define.
16240 (struct arch_process_info, struct arch_lwp_info): New data types.
16241 (arm_linux_get_hwbp_cap): New function.
16242 (arm_linux_get_hw_breakpoint_count): Likewise.
16243 (arm_linux_get_hw_watchpoint_count): Likewise.
16244 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16245 (arm_hwbp_control_initialize): Likewise.
16246 (arm_hwbp_control_is_enabled): Likewise.
16247 (arm_hwbp_control_is_initialized): Likewise.
16248 (arm_hwbp_control_disable): Likewise.
16249 (arm_linux_hw_breakpoint_equal): Likewise.
16250 (arm_linux_hw_point_initialize): Likewise.
16251 (struct update_registers_data): New data structure.
16252 (update_registers_callback: New function.
16253 (arm_insert_point): Likewise.
16254 (arm_remove_point): Likewise.
16255 (arm_stopped_by_watchpoint): Likewise.
16256 (arm_stopped_data_address): Likewise.
16257 (arm_new_process): Likewise.
16258 (arm_new_thread): Likewise.
16259 (arm_prepare_to_resume): Likewise.
16260 (the_low_target): Register arm_insert_point, arm_remove_point,
16261 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16262 arm_new_thread, and arm_prepare_to_resume.
16264 2011-09-15 Stan Shebs <stan@codesourcery.com>
16266 * server.h (struct emit_ops): Add compare-goto fields.
16267 * tracepoint.c (gdb_agent_op_sizes): New table.
16268 (emit_eq_goto): New function.
16269 (emit_ne_goto): New function.
16270 (emit_lt_goto): New function.
16271 (emit_le_goto): New function.
16272 (emit_gt_goto): New function.
16273 (emit_ge_goto): New function.
16274 (is_goto_target): New function.
16275 (compile_bytecodes): Recognize special cases of compare-goto
16276 combinations and call specialized emitters for them.
16277 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16278 (amd64_emit_ne_goto): New function.
16279 (amd64_emit_lt_goto): New function.
16280 (amd64_emit_le_goto): New function.
16281 (amd64_emit_gt_goto): New function.
16282 (amd64_emit_ge_goto): New function.
16283 (amd64_emit_ops): Add the new functions.
16284 (i386_emit_eq_goto): New function.
16285 (i386_emit_ne_goto): New function.
16286 (i386_emit_lt_goto): New function.
16287 (i386_emit_le_goto): New function.
16288 (i386_emit_gt_goto): New function.
16289 (i386_emit_ge_goto): New function.
16290 (i386_emit_ops): Add the new functions.
16292 2011-09-08 Stan Shebs <stan@codesourcery.com>
16294 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16295 (i386_emit_epilogue): Restore %ebx.
16297 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16299 * server.c (step_thread): Remove definition.
16300 (process_serial_event): Don't handle Hs.
16301 * server.h (step_thread): Remove declaration.
16302 * target.c (set_desired_inferior): Remove use of step_thread.
16304 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16306 * linux-low.c: Include linux-procfs.h.
16307 (linux_attach_lwp_1): Update comments.
16308 (linux_attach): Scan for existing threads when attaching to a
16309 process that is the tgid.
16310 * Makefile.in: Update dependencies.
16312 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16314 * configure.srv: Add linux-procfs.o dependencies.
16316 2011-08-14 Yao Qi <yao@codesourcery.com>
16318 * target.h (struct target_ops): Fix indent.
16319 * win32-low.c (win32_target_ops): Fix comment.
16321 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16322 Yao Qi <yao@codesourcery.com>
16324 * Makefile.in (clean): Remove tic6x-*.c files.
16325 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16326 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16327 (tic6x-c64xp-linux.c): Likewise.
16328 * configure.srv: Add support for tic6x-*-uclinux.
16329 * linux-tic6x-low.c: New.
16330 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16332 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16333 Yao Qi <yao@codesourcery.com>
16335 * target.h (struct target_ops): Add read_loadmap.
16336 * linux-low.c (struct target_loadseg): New type.
16337 (struct target_loadmap): New type.
16338 (linux_read_loadmap): New function.
16339 (linux_target_ops): Add linux_read_loadmap.
16340 * server.c (handle_query): Support qXfer:fdpic:read packet.
16341 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16344 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16346 * win32-low.c: Include <stdint.h>.
16348 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16350 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16351 to the inferior here.
16352 (i386_remove_aligned_watchpoint): Ditto.
16353 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16354 fit part of the watchpoint in the debug registers.
16355 (i386_update_inferior_debug_regs): New.
16356 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16357 registers, and only update the inferior on success.
16358 (i386_low_remove_watchpoint): Ditto.
16360 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16362 * linux-low.c (compare_ints, unique, list_threads, show_process,
16363 linux_core_of_thread): Delete.
16364 (linux_target_ops): Change linux_core_of_thread to
16365 linux_common_core_of_thread.
16366 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16367 * utils.c (malloc_failure): Change type of argument.
16368 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16369 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16370 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16371 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16372 (IPA_OBJS): Add common-utils-ipa.o.
16373 (ptid_h, linux_osdata_h): New macros.
16374 (server_h): Add common/common-utils.h, common/xml-utils.h,
16375 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16377 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16378 ptid.o, buffer.o): New rules.
16379 (linux-low.o): Add common/linux-osdata.h as a dependency.
16380 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16381 * configure.ac: Add AC_HEADER_DIRENT check.
16382 * config.in: Regenerate.
16383 * configure: Regenerate.
16384 * remote-utils.c (xml_escape_text): Delete.
16385 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16386 buffer_xml_printf): Move to common/buffer.c.
16387 * server.c (main): Remove call to initialize_inferiors.
16388 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16389 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16390 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16391 internal_error, gdb_assert, gdb_assert_fail): Delete.
16392 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16393 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16395 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16396 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16397 initialize_inferiors): Delete.
16399 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16401 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16404 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16406 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16408 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16410 2011-05-26 Yao Qi <yao@codesourcery.com>
16412 * Makefile.in (thread-db.o): Track dependence to
16413 common/gdb_thread_db.h.
16414 * thread-db.c: include gdb_thread_db.h from right place.
16416 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16418 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16419 __FILE__ and __LINE__ to internal_error.
16421 2011-05-13 Doug Evans <dje@google.com>
16423 * thread-db.c (try_thread_db_load_from_sdir): New function.
16424 (try_thread_db_load_from_dir): New function.
16425 (thread_db_load_search): Handle $sdir, ignore $pdir.
16426 Remove trying of system directories if search of
16427 libthread-db-search-path fails, that is now done via $sdir.
16429 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16431 * server.c (handle_query): Add EnableDisableTracepoints to the list
16432 of supported features.
16433 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16435 (cmd_qtenable_disable): New.
16436 (cmd_qtstart): Install tracepoints even if disabled.
16437 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16438 receiving a QTEnable or QTDisable packet.
16439 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16440 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16442 (gdb_probe): Skip data collection if static tracepoint is disabled.
16444 2011-05-10 Doug Evans <dje@google.com>
16446 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16448 2011-05-04 Doug Evans <dje@google.com>
16450 * linux-low.c (linux_join): Skip process lookup.
16451 * spu-low.c (spu_join): Ditto.
16452 * server.c (join_inferiors_callback): Delete.
16453 (process_serial_event): For 'D' packet (detach) call join_inferior
16456 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16458 * README: Don't mention xscale*-*-linux*.
16459 * configure.srv (xscale*-*-linux*): Don't handle target.
16461 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16463 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16465 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16466 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16467 (i386_emit_void_call_2): Likewise.
16469 2011-04-26 Yao Qi <yao@codesourcery.com>
16471 * linux-low.c: Move common macros to linux-ptrace.h.
16472 Include linux-ptrace.h.
16473 * Makefile.in (linux_ptrace_h): New.
16474 (linux-low.o): Depends on linux-ptrace.h.
16476 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16478 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16479 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16480 (remote_prepare): New function with most of the TCP code from ...
16481 (remote_open): ... here. Detect PORT here unconditionally. Move also
16482 setting transport_is_reliable.
16483 * server.c (run_once): New variable.
16484 (gdbserver_usage): Document it.
16485 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16486 the first run if RUN_ONCE.
16487 * server.h (run_once, remote_prepare): New declarations.
16489 2011-04-19 Tom Tromey <tromey@redhat.com>
16491 * win32-low.c (handle_load_dll): Remove duplicate "the".
16493 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16495 Remove support for old Cygwin 1.5 versions.
16496 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16497 function to avoid warning.
16498 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16501 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16503 * gdbserver/server.h (Macro _): Define it if not available.
16505 2011-03-14 Michael Snyder <msnyder@vmware.com>
16507 * hostio.c (handle_close): Remove unnecessary null test.
16509 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16511 * Makefile.in (maintainer-clean realclean distclean): Remove
16512 "make ... subdir_do" command.
16514 2011-03-10 Michael Snyder <msnyder@vmware.com>
16516 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16518 * server.c (handle_v_run): Free alloced buffer on early return.
16520 2011-03-09 Yao Qi <yao@codesourcery.com>
16523 2011-03-04 Yao Qi <yao@codesourcery.com>
16525 * Makefile.in: Remove GNU make feature --directory.
16527 2011-03-05 Yao Qi <yao@codesourcery.com>
16529 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16530 (subdir_do): New make target. Copied from gdb/Makefile.
16531 (maintainer-clean, realclean, distclean, clean): Call corresponding
16532 make targets in common/Makefile.
16534 2011-02-11 Yao Qi <yao@codesourcery.com>
16536 * configure.ac: Call AC_PROG_RANLIB.
16537 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16538 * configure: Regenerate.
16540 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16542 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16544 2011-03-06 Yao Qi <yao@codesourcery.com>
16546 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16548 2011-03-05 Yao Qi <yao@codesourcery.com>
16550 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16551 (subdir_do): New make target. Copied from gdb/Makefile.
16552 (maintainer-clean, realclean, distclean, clean): Call corresponding
16553 make targets in common/Makefile.
16555 2011-03-04 Yao Qi <yao@codesourcery.com>
16557 * Makefile.in: Remove GNU make feature --directory.
16559 2011-03-04 Michael Snyder <msnyder@vmware.com>
16561 * server.c (queue_stop_reply): Call xmalloc not malloc.
16563 2011-03-02 Michael Snyder <msnyder@vmware.com>
16565 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16567 2011-02-28 Michael Snyder <msnyder@vmware.com>
16569 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16570 (cmd_qtframe): Ditto.
16571 (cmd_qtbuffer): Ditto.
16572 (cmd_bigqtbuffer): Ditto.
16574 * utils.c (decimal2str): Initialize 'width' to nine, then
16575 don't mess with it.
16577 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16579 * hostio.c (require_data): Free *data, not data.
16581 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16583 * hostio.c (require_data): Use free, not xfree.
16585 2011-02-27 Michael Snyder <msnyder@vmware.com>
16587 * server.c (handle_query): Discard unused value.
16589 * hostio.c (require_data): Free malloc memory before returning
16592 2011-02-26 Michael Snyder <msnyder@vmware.com>
16594 * linux-low.c (list_threads): Call closedir for dirent.
16596 2011-02-27 Michael Snyder <msnyder@vmware.com>
16598 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16599 a case statement falls through.
16601 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16603 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16606 2011-02-26 Michael Snyder <msnyder@vmware.com>
16608 * utils.c (decimal2str): Eliminate dead code and dead param.
16609 (pulongest): Drop dead param from call to decimal2str.
16612 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16614 Revert the following patch (not approved yet):
16615 2011-02-21 Hui Zhu <teawater@gmail.com>
16616 * tracepoint.c (tp_printf): New function.
16617 (eval_agent_expr): Handle gdb_agent_op_printf.
16619 2011-02-21 Hui Zhu <teawater@gmail.com>
16621 * tracepoint.c (tp_printf): New function.
16622 (eval_agent_expr): Handle gdb_agent_op_printf.
16624 2011-02-18 Tom Tromey <tromey@redhat.com>
16626 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16627 (tracepoint.o): Likewise.
16628 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16629 (gdb_agent_op_names): Likewise.
16631 2011-02-18 Tom Tromey <tromey@redhat.com>
16633 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16634 gdb_agent_op_rot>: New constants.
16635 (gdb_agent_op_names): Add pick and roll.
16636 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16639 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16641 * aclocal.m4: Regenerated with aclocal-1.11.1.
16643 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16645 * server.c (handle_qxfer_traceframe_info): New.
16646 (qxfer_packets): Register "traceframe-info".
16647 (handle_query): Report support for qXfer:traceframe-info:read+.
16648 * tracepoint.c (match_blocktype): New.
16649 (traceframe_find_block_type): Rename to ...
16650 (traceframe_walk_blocks): ... this. Add callback filter argument,
16652 (traceframe_find_block_type): New, reimplemented on top of
16653 traceframe_walk_blocks.
16654 (build_traceframe_info_xml): New.
16655 (traceframe_read_info): New.
16656 * server.h (traceframe_read_info): Declare.
16658 2011-02-11 Yao Qi <yao@codesourcery.com>
16660 * configure.ac: Call AC_PROG_RANLIB.
16661 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16662 * configure: Regenerate.
16664 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16666 * server.c (gdb_read_memory): Change return semantics to allow
16668 (handle_search_memory_1): Adjust.
16669 (process_serial_event) <'m' packet>: Handle partial transfers.
16670 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16672 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16674 * regcache.c (init_register_cache): Initialize
16675 regcache->register_status.
16676 (free_register_cache): Release regcache->register_status.
16677 (regcache_cpy): Copy register_status.
16678 (registers_to_string): Print 'x's for unavailable registers.
16679 (supply_register): Mark the register's status valid or
16680 unavailable, depending on whether a buffer was passed in or not.
16681 (supply_register_zeroed): New.
16682 (supply_regblock): Mark the registers' status valid or
16683 unavailable, depending on whether a buffer was passed in or not.
16684 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16685 (struct regcache): New `register_status' field.
16686 (supply_register_zeroed): Declare.
16687 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16688 supply_register_zeroed, rather than passing a NULL buffer to
16690 * tracepoint.c (fetch_traceframe_registers): Update comment.
16692 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16694 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16697 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16699 * server.h (decode_xfer_write): Change prototype.
16700 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16701 and don't extract the annex here.
16702 * server.c (decode_xfer_read): Remove `annex' parameter,
16703 and don't extract the annex here.
16704 (decode_xfer): New.
16705 (struct qxfer): New.
16706 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16707 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16708 (handle_qxfer_statictrace): New functions, abstracted out from
16709 handle_query, and made to use the struct qxfer interface.
16710 (handle_threads_qxfer_proper): Rename to ...
16711 (handle_qxfer_threads_proper): ... this.
16712 (handle_threads_qxfer): Rename to ...
16713 (handle_qxfer_threads): ... this. Adjust.
16714 (qxfer_packets): New array.
16715 (handle_qxfer): New function.
16716 (handle_query): Use handle_qxfer.
16718 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16720 * gdbreplay.c: Shorten lines of >= 80 columns.
16721 * linux-low.c: Ditto.
16722 * linux-ppc-low.c: Ditto.
16723 * linux-s390-low.c: Ditto.
16724 * linux-sparc-low.c: Ditto.
16725 * linux-x86-low.c: Ditto.
16726 * linux-xtensa-low.c: Ditto.
16727 * mem-break.c: Ditto.
16728 * nto-low.c: Ditto.
16729 * regcache.h: Ditto.
16730 * remote-utils.c: Ditto.
16733 * thread-db.c: Ditto.
16734 * tracepoint.c: Ditto.
16736 * win32-low.h: Ditto.
16738 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16740 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16743 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16745 * server.c (gdbserver_version): Update copyright year in version
16747 * gdbreplay.c (gdbreplay_version): Ditto.
16749 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16751 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16752 * linux-bfin-low.c: New file.
16753 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16754 PT_DATA_ADDR for BFIN targets.
16755 * Makefile.in (SFILES): Add linux-bfin-low.c.
16756 (clean): Remove reg-bfin.c.
16757 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16758 * README: Mention supported Blackfin targets.
16760 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16762 * .gitignore: New file.
16764 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16766 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16768 2010-10-22 Jie Zhang <jie@codesourcery.com>
16770 * Makefile.in: Add FLAGS_TO_PASS variable.
16771 (install): Remove dependency of install-only and recursively
16772 invoke make for install-only.
16774 2010-10-04 Doug Evans <dje@google.com>
16776 * Makefile.in (uninstall): Use $(DESTDIR).
16778 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16782 * linux-x86-low.c (compat_siginfo_from_siginfo)
16783 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16784 si_code is < 0. Check for si_code == SI_TIMER before checking for
16787 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16789 * lynx-i386-low.c: New file.
16790 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16792 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16794 * lynx-low.c (ptrace_request_to_str): Remove handling for
16795 request values that have been removed in LynxOS 5.x.
16797 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16799 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16802 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16804 * configure.ac: Add --enable-inprocess-agent option.
16805 * configure: Rebuilt.
16807 2010-09-06 Yao Qi <yao@codesourcery.com>
16809 * linux-low.c (linux_kill): Remove unused variable.
16810 (linux_stabilize_threads): Likewise.
16811 * server.c (start_inferior): Likewise.
16812 (queue_stop_reply_callback): Likewise.
16813 * tracepoint.c (do_action_at_tracepoint): Likewise.
16815 2010-09-06 Yao Qi <yao@codesourcery.com>
16817 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16820 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16822 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16824 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16826 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16829 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16831 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16832 gdbserver/lynx-ppc-low.c: New files.
16833 * Makefile.in (lynx_low_h): New variable.
16834 (lynx-low.o, lynx-ppc-low.o): New rules.
16835 * configure.ac: On LynxOS, link with -lnetinet.
16836 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16837 * configure: regenerate.
16839 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16841 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16842 * configure.ac: Add check for vasprintf and vsnprintf.
16843 * configure, config.in: Regenerate.
16844 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16846 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16848 * gdbreplay.c: Move include of alloca.h up, next to include of
16850 * server.h: Add include of malloc.h.
16851 * mem-break.c: Remove include of malloc.h.
16852 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16854 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16856 * Makefile.in (memmem.o): Build with -Wno-error.
16858 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16860 * utils.c (xsnprintf): Make non-static.
16861 * server.h: Add xsnprintf declaration.
16862 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16863 replace calls to snprintf by calls to xsnprintf throughout.
16865 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16867 * configure.ac: Add configure check for alloca.
16868 * configure, config.in: Regenerate.
16869 * server.h: Include alloca.h if it exists.
16870 * gdbreplay.c: Include alloca.h if it exists.
16872 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16874 * linux-low.c (__SIGRTMIN): Define if not already defined.
16875 (linux_create_inferior): Check for __ANDROID__ rather than
16877 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16878 are already deferred.
16879 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16880 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16881 stopped and already has a pending signal to report.
16882 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16883 a pending signal to report or is moving out of a jump pad.
16884 (linux_init_signals): Check for __ANDROID__ rather than
16887 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16889 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16890 debug_threads check. Avoid a linear search when not doing debug
16893 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16895 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16896 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16897 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16898 (process_event): Change local fd's type to gdb_fildes_t.
16899 (create_file_handler): Adjust prototype.
16900 (delete_file_handler): Adjust prototype.
16901 (handle_file_event): Adjust prototype. Use pfildes.
16902 (create_file_event): Adjsut prototype.
16903 * remote-utils.c (remote_desc, listen_desc): Change type to
16905 * server.h: New gdb_fildes_t typedef.
16906 [USE_WIN32API]: Include winsock2.h.
16907 (delete_file_handler, add_file_handler): Adjust prototypes.
16908 (pfildes): Declare.
16909 * utils.c (pfildes): New.
16911 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16913 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16914 * configure: Regenerate.
16916 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16918 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16919 (linux_done_accessing_memory): ... this.
16920 (linux_target_ops): Adjust.
16921 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16922 * nto-low.c (nto_target_ops): Adjust comment.
16923 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16924 * spu-low.c (spu_target_ops): Adjust comment.
16925 * target.h (target_ops): Rename unprepare_to_access_memory field
16926 to done_accessing_memory.
16927 (unprepare_to_access_memory): Rename to ...
16928 (done_accessing_memory): ... this.
16930 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16932 * linux-low.c (linux_prepare_to_access_memory): New.
16933 (linux_unprepare_to_access_memory): New.
16934 (linux_target_ops): Install them.
16935 * server.c (read_memory): Rename to ...
16936 (gdb_read_memory): ... this. Use
16937 prepare_to_access_memory/prepare_to_access_memory.
16938 (write_memory): Rename to ...
16939 (gdb_write_memory): ... this. Use
16940 prepare_to_access_memory/prepare_to_access_memory.
16941 (handle_search_memory_1): Adjust.
16942 (process_serial_event): Adjust.
16943 * target.h (struct target_ops): New fields
16944 prepare_to_access_memory and unprepare_to_access_memory.
16945 (prepare_to_access_memory, unprepare_to_access_memory): New.
16946 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16947 prepare_to_access_memory/prepare_to_access_memory.
16948 * nto-low.c (nto_target_ops): Adjust.
16949 * spu-low.c (spu_target_ops): Adjust.
16950 * win32-low.c (win32_target_ops): Adjust.
16952 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16954 * Makefile.in (WARN_CFLAGS): Get it from configure.
16955 (WERROR_CFLAGS): New.
16956 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16957 * configure.ac: Introduce --enable-werror, which adds -Werror to
16958 the compiler command line. Enabled by default. Disable with
16959 --disable-werror. Add -Wdeclaration-after-statement
16960 Wpointer-arith and -Wformat-nonliteral to warning flags.
16961 * configure: Regenerate.
16963 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16965 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16967 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16969 * gdbreplay.c (remote_error): New.
16971 (expect): Use gdbchar. Check for error reading from GDB.
16972 Clarify sync error output.
16973 (play): Check for errors writing to GDB.
16974 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16975 * remote-utils.c (getpkt): Check for errors writing to the remote
16978 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16980 * linux-low.c (linux_wait_1): Move non-debugging code out of
16981 `debug_threads' control.
16983 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16985 * linux-low.c (linux_wait_1): Don't set last_status here.
16986 * server.c (push_event, queue_stop_reply_callback): Assert we're
16987 not pushing a TARGET_WAITKIND_IGNORE event.
16988 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16989 (myresume, handle_target_event): Set the thread's last_resume_kind
16990 and last_status from the target returned status.
16992 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16996 * linux-x86-low.c (update_debug_registers_callback): New.
16997 (i386_dr_low_set_addr): Use it.
16998 (i386_dr_low_get_addr): New.
16999 (i386_dr_low_set_control): Use update_debug_registers_callback.
17000 (i386_dr_low_get_control): New.
17001 (i386_dr_low_get_status): Adjust.
17002 * linux-low.c (linux_stop_lwp): New.
17003 * linux-low.h (linux_stop_lwp): Declare.
17005 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17006 argument instead of a i386_debug_reg_state.
17007 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17008 a i386_debug_reg_state.
17009 (i386_insert_aligned_watchpoint): Adjust.
17010 (i386_remove_aligned_watchpoint): Adjust.
17011 (i386_low_stopped_data_address): Read the debug registers from the
17012 inferior instead of from the mirrors.
17013 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17014 (i386_dr_low_get_addr): Declare.
17015 (i386_dr_low_get_control): Declare.
17016 (i386_dr_low_get_status): Change prototype.
17018 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17019 (i386_dr_low_get_addr): New.
17020 (i386_dr_low_get_control): New.
17021 (i386_dr_low_get_status): Adjust prototype. Return
17023 (i386_initial_stuff): Clear dr_status_mirror and
17025 (i386_get_thread_context): Adjust.
17026 (i386_set_thread_context): Adjust.
17027 (i386_thread_added): Adjust.
17029 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17031 * linux-low.h (linux_thread_area): Delete declaration.
17033 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17035 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17036 after its termination.
17038 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17040 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17041 (gdb_wants_all_stopped): Delete.
17042 (linux_wait_1): Don't call them.
17043 * server.c (handle_v_cont): Tag all threads as want-stopped.
17044 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17045 stopped as "client-wants-stopped".
17047 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17049 * Makefile.in (signals_h): New.
17050 (server_h): Depend on it.
17051 (server.o): Don't depend on $(signals_def).
17052 (signals.o): Depend on $(signals_def).
17054 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17056 * Makefile.in (signals_def): New.
17057 (server_h): Append include/gdb/signals.h and signals_def.
17058 (server.o): Append signals_def.
17060 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17062 * server.c (handle_target_event): Use target_signal_to_host for
17063 resume_info.sig initialization.
17064 * target.h (struct thread_resume) <sig>: New comment.
17066 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17068 * server.c (handle_query): strcpy() the returned string from paddress()
17069 instead of sprintf().
17070 * utils.c (paddress): Return phex_nz().
17072 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17074 * server.c (handle_v_cont): Call mourn_inferior if process
17076 (myresume): Likewise.
17078 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17080 Static tracepoints, and integration with UST.
17082 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17083 * mem-break.c (uninsert_all_breakpoints)
17084 (reinsert_all_breakpoints): New.
17085 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17086 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17087 (gdb_agent_ust_loaded, helper_thread_id)
17088 (gdb_agent_helper_thread_id): New macros.
17089 (struct ipa_sym_addresses): Add addr_ust_loaded,
17090 addr_helper_thread_id, addr_cmd_buf.
17091 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17092 (in_process_agent_loaded_ust): New.
17093 (write_e_ust_not_loaded): New.
17094 (maybe_write_ipa_ust_not_loaded): New.
17095 (struct collect_static_trace_data_action): New.
17096 (enum tracepoint_type) <static_tracepoint>: New.
17097 (struct tracepoint) <handle>: Mention static tracepoints.
17098 (struct static_tracepoint_ctx): New.
17099 (CMD_BUF_SIZE): New.
17100 (add_tracepoint_action): Handle static tracepoint actions.
17101 (unprobe_marker_at): New.
17102 (clear_installed_tracepoints): Handle static tracepoints.
17103 (cmd_qtdp): Handle static tracepoints.
17104 (probe_marker_at): New.
17105 (cmd_qtstart): Handle static tracepoints.
17106 (response_tracepoint): Handle static tracepoints.
17107 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17108 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17109 (get_context_regcache): Handle static tracepoints.
17110 (do_action_at_tracepoint): Handle static tracepoint actions.
17111 (traceframe_find_block_type): Handle static trace data blocks.
17112 (traceframe_read_sdata): New.
17113 (download_tracepoints): Download static tracepoint actions.
17114 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17115 (GDB_PROBE_NAME): New.
17117 (GET_UST_SYM): New.
17120 (ust_marker_to_static_tracepoint): New.
17122 (collect_ust_data_at_tracepoint): New.
17123 (gdb_ust_probe): New.
17124 (UNIX_PATH_MAX, SOCK_DIR): New.
17125 (gdb_ust_connect_sync_socket): New.
17126 (resume_thread, stop_thread): New.
17127 (run_inferior_command): New.
17128 (init_named_socket): New.
17129 (gdb_ust_socket_init): New.
17130 (cstr_to_hexstr): New.
17132 (first_marker, next_marker): New.
17133 (response_ust_marker): New.
17134 (cmd_qtfstm, cmd_qtsstm): New.
17135 (unprobe_marker_at, probe_marker_at): New.
17136 (cmd_qtstmat, gdb_ust_thread): New.
17137 (gdb_ust_init): New.
17138 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17139 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17140 (ST_REGENTRY): New.
17141 (x86_64_st_collect_regmap): New.
17142 (X86_64_NUM_ST_COLLECT_GREGS): New.
17143 (AMD64_RIP_REGNUM): New.
17144 (supply_static_tracepoint_registers): New.
17145 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17146 (ST_REGENTRY): New.
17147 (i386_st_collect_regmap): New.
17148 (i386_NUM_ST_COLLECT_GREGS): New.
17149 (supply_static_tracepoint_registers): New.
17150 * server.c (handle_query): Handle qXfer:statictrace:read.
17151 <qSupported>: Report support for StaticTracepoints, and
17152 qXfer:statictrace:read features.
17153 * server.h (traceframe_read_sdata)
17154 (supply_static_tracepoint_registers): Declare.
17155 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17156 (unpack_varlen_hex): Include in IPA build.
17157 * Makefile.in (ustlibs, ustinc): New.
17158 (IPA_OBJS): Add remote-utils-ipa.o.
17159 ($(IPA_LIB)): Link -ldl and -lpthread.
17161 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17162 * config.in, configure: Regenerate.
17164 2010-06-20 Ian Lance Taylor <iant@google.com>
17165 Pedro Alves <pedro@codesourcery.com>
17167 * linux-x86-low.c (always_true): Delete.
17168 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17169 trying to fool the compiler with always_true.
17171 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17173 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17174 conditions in gdbserver.
17176 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17178 * spu-low.c (spu_read_memory): Wrap around local store limit.
17179 (spu_write_memory): Likewise.
17181 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17183 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17184 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17186 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17188 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17189 uses with LONGEST uses.
17191 2010-06-14 Stan Shebs <stan@codesourcery.com>
17192 Pedro Alves <pedro@codesourcery.com>
17196 * linux-x86-low.c: Include limits.h.
17198 (always_true): New.
17201 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17202 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17203 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17204 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17205 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17206 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17207 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17208 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17209 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17210 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17211 (amd64_emit_void_call_2): New.
17212 (amd64_emit_ops): New.
17213 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17214 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17215 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17216 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17217 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17218 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17219 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17220 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17221 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17222 (i386_emit_stack_adjust, i386_emit_int_call_1)
17223 (i386_emit_void_call_2): New.
17224 (i386_emit_ops): New.
17225 (x86_emit_ops): New.
17226 (the_low_target): Install x86_emit_ops.
17227 * server.h (struct emit_ops): New.
17228 (get_raw_reg_func_addr): Declare.
17229 (current_insn_ptr, emit_error): Declare.
17230 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17231 (set_trace_state_variable_value): New defines.
17232 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17233 addr_get_trace_state_variable_value and
17234 addr_set_trace_state_variable_value.
17235 (symbol_list): New fields for get_raw_reg,
17236 get_trace_state_variable_value and set_trace_state_variable_value.
17237 (condfn): New typedef.
17238 (struct tracepoint): New field `compiled_cond'.
17239 (do_action_at_tracepoint): Clear compiled_cond.
17240 (get_trace_state_variable_value, set_trace_state_variable_value):
17242 (condition_true_at_tracepoint): If there's a compiled condition,
17244 (current_insn_ptr, emit_error): New globals.
17245 (struct bytecode_address): New.
17246 (get_raw_reg_func_addr): New.
17247 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17248 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17249 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17250 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17251 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17252 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17253 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17254 (compile_tracepoint_condition, compile_bytecodes): New.
17255 * target.h (emit_ops): Forward declare.
17256 (struct target_ops): New field emit_ops.
17257 (target_emit_ops): New.
17258 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17259 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17260 * linux-low.c (linux_emit_ops): New.
17261 (linux_target_ops): Install it.
17262 * linux-low.h (struct linux_target_ops): New field emit_ops.
17264 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17266 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17267 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17269 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17270 Stan Shebs <stan@codesourcery.com>
17272 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17273 (all): Depend on $(extra_libraries).
17274 (install-only): Install the IPA.
17275 (IPA_OBJS, IPA_LIB): New.
17276 (clean): Remove the IPA lib.
17277 (IPAGENT_CFLAGS): New.
17278 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17279 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17280 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17281 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17282 * configure.ac: Check for atomic builtins support in the compiler.
17283 (IPA_DEPFILES, extra_libraries): Define.
17284 * configure.srv (ipa_obj): Add description.
17285 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17286 (i[34567]86-*-linux*): Set ipa_obj.
17287 (x86_64-*-linux*): Set ipa_obj.
17288 * linux-low.c (stabilizing_threads): New.
17289 (supports_fast_tracepoints): New.
17290 (linux_detach): Stabilize threads before detaching.
17291 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17292 the lwp is either not stabilizing, or is moving out of a jump pad.
17293 (linux_fast_tracepoint_collecting): New.
17294 (maybe_move_out_of_jump_pad): New.
17295 (enqueue_one_deferred_signal): New.
17296 (dequeue_one_deferred_signal): New.
17297 (linux_wait_for_event_1): If moving out of a jump pad, defer
17298 pending signals to later.
17299 (linux_stabilize_threads): New.
17300 (linux_wait_1): Check if threads need moving out of jump pads, and
17302 (stuck_in_jump_pad_callback): New.
17303 (move_out_of_jump_pad_callback): New.
17304 (lwp_running): New.
17305 (linux_resume_one_lwp): Handle moving out of jump pads.
17306 (linux_set_resume_request): Dequeue deferred signals.
17307 (need_step_over_p): Also step over fast tracepoint jumps.
17308 (start_step_over): Also uninsert fast tracepoint jumps.
17309 (finish_step_over): Also reinsert fast tracepoint jumps.
17310 (linux_install_fast_tracepoint_jump): New.
17311 (linux_target_ops): Install linux_stabilize_threads and
17312 linux_install_fast_tracepoint_jump_pad.
17313 * linux-low.h (linux_target_ops) <get_thread_area,
17314 install_fast_tracepoint_jump_pad>: New fields.
17315 (struct lwp_info) <collecting_fast_tracepoint,
17316 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17317 (linux_get_thread_area): Declare.
17318 * linux-x86-low.c (jump_insn): New.
17319 (x86_get_thread_area): New.
17320 (append_insns): New.
17321 (push_opcode): New.
17322 (amd64_install_fast_tracepoint_jump_pad): New.
17323 (i386_install_fast_tracepoint_jump_pad): New.
17324 (x86_install_fast_tracepoint_jump_pad): New.
17325 (the_low_target): Install x86_get_thread_area and
17326 x86_install_fast_tracepoint_jump_pad.
17327 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17328 (struct fast_tracepoint_jump): New.
17329 (fast_tracepoint_jump_insn): New.
17330 (fast_tracepoint_jump_shadow): New.
17331 (find_fast_tracepoint_jump_at): New.
17332 (fast_tracepoint_jump_here): New.
17333 (delete_fast_tracepoint_jump): New.
17334 (set_fast_tracepoint_jump): New.
17335 (uninsert_fast_tracepoint_jumps_at): New.
17336 (reinsert_fast_tracepoint_jumps_at): New.
17337 (set_breakpoint_at): Use write_inferior_memory.
17338 (uninsert_raw_breakpoint): Use write_inferior_memory.
17339 (check_mem_read): Mask out fast tracepoint jumps.
17340 (check_mem_write): Mask out fast tracepoint jumps.
17341 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17342 (set_fast_tracepoint_jump): Declare.
17343 (delete_fast_tracepoint_jump)
17344 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17345 (reinsert_fast_tracepoint_jumps_at): Declare.
17346 * regcache.c: Don't compile many functions when building the
17347 in-process agent library.
17348 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17349 the register buffer in the heap.
17350 (free_register_cache): If the register buffer isn't owned by the
17351 regcache, don't free it.
17352 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17353 pre-existing register caches.
17354 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17356 (convert_ascii_to_int): : Constify `from' parameter type.
17357 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17358 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17359 the needed buffer in-place.
17360 (relocate_instruction): New.
17361 * server.c (handle_query) <qSymbols>: If the target supports
17362 tracepoints, give it a chance of looking up symbols. Report
17363 support for fast tracepoints.
17364 (handle_status): Stabilize threads.
17365 (process_serial_event): Adjust.
17366 * server.h (struct fast_tracepoint_jump): Forward declare.
17367 (struct process_info) <fast_tracepoint_jumps>: New field.
17368 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17369 (decode_X_packet, decode_M_packet): Adjust.
17370 (relocate_instruction): Declare.
17371 (in_process_agent_loaded): Declare.
17372 (tracepoint_look_up_symbols): Declare.
17373 (struct fast_tpoint_collect_status): Declare.
17374 (fast_tracepoint_collecting): Declare.
17375 (force_unlock_trace_buffer): Declare.
17376 (handle_tracepoint_bkpts): Declare.
17377 (initialize_low_tracepoint)
17378 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17379 * target.h (struct target_ops) <stabilize_threads,
17380 install_fast_tracepoint_jump_pad>: New fields.
17381 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17382 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17383 [HAVE_STDINT_H]: Include stdint.h.
17384 (trace_debug_1): Rename to ...
17385 (trace_vdebug): ... this.
17386 (trace_debug): Rename to ...
17387 (trace_debug_1): ... this. Add `level' parameter.
17388 (trace_debug): New.
17389 (ATTR_USED, ATTR_NOINLINE): New.
17390 (IP_AGENT_EXPORT): New.
17391 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17392 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17393 (about_to_request_buffer_space, trace_buffer_is_full)
17394 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17395 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17396 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17397 (traceframe_write_count, traceframes_created)
17398 (trace_state_variables)
17399 New renaming defines.
17400 (struct ipa_sym_addresses): New.
17401 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17402 (symbol_list): New.
17403 (ipa_sym_addrs): New.
17404 (all_tracepoint_symbols_looked_up): New.
17405 (in_process_agent_loaded): New.
17406 (write_e_ipa_not_loaded): New.
17407 (maybe_write_ipa_not_loaded): New.
17408 (tracepoint_look_up_symbols): New.
17409 (debug_threads) [IN_PROCESS_AGENT]: New.
17410 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17411 (UNKNOWN_SIDE_EFFECTS): New.
17412 (stop_tracing): New.
17413 (flush_trace_buffer): New.
17414 (stop_tracing_bkpt): New.
17415 (flush_trace_buffer_bkpt): New.
17416 (read_inferior_integer): New.
17417 (read_inferior_uinteger): New.
17418 (read_inferior_data_pointer): New.
17419 (write_inferior_data_pointer): New.
17420 (write_inferior_integer): New.
17421 (write_inferior_uinteger): New.
17422 (struct collect_static_trace_data_action): Delete.
17423 (enum tracepoint_type): New.
17424 (struct tracepoint) <type>: New field `type'.
17425 <actions_str, step_actions, step_actions_str>: Only include in
17427 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17428 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17429 (tracepoints): Use IP_AGENT_EXPORT.
17430 (last_tracepoint): Don't include in the IPA.
17431 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17432 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17433 (alloced_trace_state_variables): New.
17434 (trace_state_variables): Use IP_AGENT_EXPORT.
17435 (traceframe_t): Delete unused variable.
17436 (circular_trace_buffer): Don't include in the IPA.
17437 (trace_buffer_start): Delete.
17438 (struct trace_buffer_control): New.
17439 (trace_buffer_free): Delete.
17440 (struct ipa_trace_buffer_control): New.
17441 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17442 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17444 (trace_buffer_ctrl): New.
17445 (TRACE_BUFFER_CTRL_CURR): New.
17446 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17447 Reimplement as macros.
17448 (trace_buffer_wrap): Delete.
17449 (traceframe_write_count, traceframe_read_count)
17450 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17451 (struct tracepoint_hit_ctx) <type>: New field.
17452 (struct fast_tracepoint_ctx): New.
17453 (memory_barrier): New.
17455 (record_tracepoint_error): Update atomically in the IPA.
17456 (clear_inferior_trace_buffer): New.
17457 (about_to_request_buffer_space): New.
17458 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17459 updating the same buffer.
17460 (add_tracepoint): Default the tracepoint's type to trap
17461 tracepoint, and orig_size to -1.
17462 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17463 internal variables.
17464 (create_trace_state_variable): New parameter `gdb'. Handle it.
17465 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17466 (cmd_qtdp): Handle fast tracepoints.
17467 (cmd_qtdv): Adjust.
17468 (max_jump_pad_size): New.
17469 (gdb_jump_pad_head): New.
17470 (get_jump_space_head): New.
17471 (claim_jump_space): New.
17472 (sort_tracepoints): New.
17473 (MAX_JUMP_SIZE): New.
17474 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17476 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17477 support. Upload fast traceframes, and delete internal IPA
17479 (stop_tracing_handler): New.
17480 (flush_trace_buffer_handler): New.
17481 (cmd_qtstop): Upload fast tracepoints.
17482 (response_tracepoint): Handle fast tracepoints.
17483 (tracepoint_finished_step): Upload fast traceframes. Set the
17484 tracepoint hit context's tracepoint type.
17485 (handle_tracepoint_bkpts): New.
17486 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17487 type. Add comment about fast tracepoints.
17488 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17489 non-existing action_str field.
17490 (get_context_regcache): Handle fast tracepoints.
17491 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17493 (fast_tracepoint_from_jump_pad_address): New.
17494 (fast_tracepoint_from_ipa_tpoint_address): New.
17495 (collecting_t): New.
17496 (force_unlock_trace_buffer): New.
17497 (fast_tracepoint_collecting): New.
17499 (gdb_collect): New.
17500 (write_inferior_data_ptr): New.
17501 (target_tp_heap): New.
17502 (target_malloc): New.
17503 (download_agent_expr): New.
17505 (download_tracepoints): New.
17506 (download_trace_state_variables): New.
17507 (upload_fast_traceframes): New.
17508 (IPA_FIRST_TRACEFRAME): New.
17509 (IPA_NEXT_TRACEFRAME_1): New.
17510 (IPA_NEXT_TRACEFRAME): New.
17511 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17512 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17513 (gdb_jump_pad_buffer_end): New.
17514 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17515 (initialize_tracepoint): Adjust.
17516 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17517 buffer. Initialize the low module.
17518 * utils.c (PREFIX, TOOLNAME): New.
17519 (malloc_failure): Use PREFIX.
17520 (error): In the IPA, an error causes an exit.
17521 (fatal, warning): Use PREFIX.
17522 (internal_error): Use TOOLNAME.
17523 (NUMCELLS): Increase to 10.
17524 * configure, config.in: Regenerate.
17526 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17528 * server.c (handle_query) <qSupported>: Do two passes over the
17529 qSupported string to avoid nesting strtok.
17531 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17533 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17535 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17536 -Wl,--dynamic-list.
17537 * configure: Regenerate.
17538 * proc-service.list: New.
17540 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17542 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17545 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17547 * gdbreplay.c (remote_open): Check error return from socket() call by
17548 its equality to -1 not by it being negative.
17549 * remote-utils.c (remote_open): Likewise.
17551 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17553 * config.h: Regenerate.
17555 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17557 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17558 doesn't provide PTRACE_GET_THREAD_AREA.
17560 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17562 * linux-m68k-low.c: Include <asm/ptrace.h>
17563 (ps_get_thread_area): Implement.
17565 2010-05-03 Doug Evans <dje@google.com>
17567 * event-loop.c (struct callback_event): New struct.
17568 (callback_list): New global.
17569 (append_callback_event, delete_callback_event): New functions.
17570 (process_callback): New function.
17571 (start_event_loop): Call it.
17572 * remote-utils.c (NOT_SCHEDULED): Define.
17573 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17574 moved out of readchar.
17575 (readchar): Rewrite. Call reschedule before returning.
17576 (reset_readchar): New function.
17577 (remote_close): Call it.
17578 (process_remaining, reschedule): New functions.
17579 * server.h (callback_handler_func): New typedef.
17580 (append_callback_event, delete_callback_event): Declare.
17582 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17584 * proc-service.c (ps_pglobal_lookup): Use
17585 thread_db_look_up_one_symbol.
17586 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17587 parameter. Use it instead of all_symbols_looked_up.
17588 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17590 (all_symbols_looked_up): Don't declare.
17591 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17592 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17594 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17595 Set all_symbols_looked_up here.
17596 (thread_db_look_up_one_symbol): New.
17597 (thread_db_get_tls_address): Adjust.
17598 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17599 thread_db object on the heap, and tentatively set it in the
17601 (thread_db_init): Don't set all_symbols_looked_up here.
17602 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17604 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17606 * linux-low.c (linux_kill, linux_detach): Adjust.
17607 (status_pending_p_callback): Remove redundant statement. Check
17608 for !TARGET_WAITIKIND_IGNORE, instead of
17609 TARGET_WAITKIND_STOPPED.
17610 (handle_tracepoints): Make sure LWP is locked. Adjust.
17611 (linux_wait_for_event_1): Adjust.
17612 (linux_cancel_breakpoints): New.
17613 (unsuspend_one_lwp): New.
17614 (unsuspend_all_lwps): New.
17615 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17616 (send_sigstop_callback): Change return type to int, add new
17617 `except' parameter and handle it.
17618 (suspend_and_send_sigstop_callback): New.
17619 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17620 pass them down. If SUSPEND, also increment the lwp's suspend
17622 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17623 (need_step_over_p): Don't consider suspended LWPs.
17624 (start_step_over): Adjust.
17625 (proceed_one_lwp): Change return type to int, add new `except'
17626 parameter and handle it.
17627 (unsuspend_and_proceed_one_lwp): New.
17628 (proceed_all_lwps): Use find_inferior instead of
17630 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17631 also decrement the suspend count of LWPs. Pass `except' down,
17632 instead of hacking its suspend count.
17633 (linux_pause_all): Add `freeze' parameter. Adjust.
17634 (linux_unpause_all): New.
17635 (linux_target_ops): Install linux_unpause_all.
17636 * server.c (handle_status): Adjust.
17637 * target.h (struct target_ops): New fields `unpause_all' and
17638 `cancel_breakpoints'. Add new parameter to `pause_all'.
17639 (pause_all): Add new `freeze' parameter.
17640 (unpause_all): New.
17641 (cancel_breakpoints): New.
17642 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17643 cancel breakpoints.
17644 (cmd_qtstart): Pause threads.
17645 (stop_tracing): Pause threads, and cancel breakpoints.
17646 * win32-low.c (win32_target_ops): Adjust.
17648 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17650 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17651 the inferior right away from here...
17652 (linux_wait_1): ... to here, and adjust to check the thread's
17653 last_resume_kind instead of the lwp's step or stop_expected flags.
17655 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17657 * README: Use consistent `GDB' and `GDBserver' spellings.
17659 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17661 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17662 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17663 (linux_detach_one_lwp): Assume the lwp is stopped.
17664 (any_thread_of): Delete.
17665 (linux_detach): Stop all lwps here. Don't blindly delete all
17667 (delete_lwp_callback): New.
17668 (linux_mourn): Delete all lwps of the process that is gone.
17669 (linux_wait_1): Don't delete the last lwp of the process here.
17670 * mem-break.h (mark_breakpoints_out): Declare.
17671 * mem-break.c (mark_breakpoints_out): New.
17672 (free_all_breakpoints): Use it.
17673 * server.c (handle_target_event): If the process is gone, mark
17675 * thread-db.c (struct thread_db) <create_bp>: New field.
17676 (thread_db_enable_reporting): Fix prototype. Store a thread event
17677 breakpoint reference in the thread_db struct.
17678 (thread_db_load_search): Clear the thread_db object.
17679 (try_thread_db_load_1): Ditto.
17680 (switch_to_process): New.
17681 (disable_thread_event_reporting): Use it.
17682 (remove_thread_event_breakpoints): New.
17683 (thread_db_detach, thread_db_mourn): Use it.
17685 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17687 * linux-low.c (linux_enable_event_reporting): New.
17688 (linux_wait_for_event_1, handle_extended_wait): Use it.
17690 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17692 * linux-low.c (linux_kill_one_lwp, linux_kill)
17693 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17694 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17695 SIGSTOP even if the LWP is stopped.
17696 (send_sigstop_callback): New.
17697 (stop_all_lwps): Use send_sigstop_callback instead.
17698 (linux_resume_one_thread): Adjust.
17699 (proceed_one_lwp): Still proceed an LWP that the client has
17700 requested to stop, if we haven't reported it as stopped yet. Make
17701 sure that LWPs the client want stopped, have a pending SIGSTOP.
17703 2010-04-26 Doug Evans <dje@google.com>
17705 * server.c (handle_general_set): Make static.
17707 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17708 Print received char after testing for error/eof instead of before.
17709 (input_interrupt): Tweak comment.
17711 2010-04-23 Doug Evans <dje@google.com>
17713 * server.c (start_inferior): Print inferior argv if --debug.
17715 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17717 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17718 * nto-x86-low.c: Include server.h
17720 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17722 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17723 be consistent with other sources of this directory.
17724 (init_registers_amd64): Correct name of source file of this function
17727 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17729 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17730 64-bit executables.
17732 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17734 * win32-i386-low.c: Add 64-bit support.
17735 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17736 (init_registers_amd64): Declare.
17737 (mappings): Add 64-bit version of array.
17738 (init_windows_x86): New function.
17739 (the_low_target): Change init_arch field to init_windows_x86.
17741 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17743 * win32-low.c: Adapt to support also 64-bit architecture.
17744 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17745 (get_image_name): Use SIZE_T type for local variable `done'.
17746 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17747 (toolhelp_get_dll_name): Idem.
17748 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17749 Use uintptr_t typecast to avoid warning.
17750 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17751 (handle_exception): Use phex_nz to avoid warning.
17752 (win32_wait): Remove unused local variable `process'.
17754 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17756 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17759 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17761 * configure.ac: Use `ws2_32' library for srv_mingw.
17762 * configure: Regenerate.
17763 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17764 * remote-utils.c: Likewise.
17766 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17768 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17769 if __x86_64__ is defined.
17771 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17773 * configure: Regenerate.
17775 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17777 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17778 * target.h (target_ops): New get_tib_address field.
17779 * win32-low.h (win32_thread_info): Add thread_local_base field.
17780 * win32-low.c (child_add_thread): Add tlb argument.
17781 Set thread_local_base field to TLB.
17782 (get_child_debug_event): Adapt to child_add_thread change.
17783 (win32_get_tib_address): New function.
17784 (win32_target_ops): Set get_tib_address field to
17785 win32_get_tib_address.
17786 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17788 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17790 * linux-low.c (linux_mourn): Also remove the process.
17791 * server.c (handle_target_event): Don't remove the process here.
17792 * nto-low.c (nto_mourn): New.
17793 (nto_target_ops): Install it.
17794 * spu-low.c (spu_mourn): New.
17795 (spu_target_ops): Install it.
17796 * win32-low.c (win32_mourn): New.
17797 (win32_target_ops): Install it.
17799 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17801 * server.h (buffer_xml_printf): Remove redundant `;'.
17803 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17805 * regcache.c (set_register_cache): Invalidate regcaches before
17806 changing the register cache layout.
17807 (regcache_invalidate_one): Allow a NULL regcache.
17808 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17809 regcaches before changing the register cache layout or the target
17812 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17814 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17815 variable warning on Linux/x86-64.
17817 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17819 GDBserver disconnected tracing support.
17821 * linux-low.c (linux_remove_process): Delete.
17822 (add_lwp): Don't set last_resume_kind here.
17823 (linux_kill): Use `mourn'.
17824 (linux_detach): Use `thread_db_detach', and `mourn'.
17825 (linux_mourn): New.
17826 (linux_attach_lwp_1): Adjust comment.
17827 (linux_attach): last_resume_kind moved the thread_info; adjust.
17828 (status_pending_p_callback): Adjust.
17829 (linux_wait_for_event_1): Adjust.
17830 (count_events_callback, select_singlestep_lwp_callback)
17831 (select_event_lwp_callback, cancel_breakpoints_callback)
17832 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17833 (proceed_one_lwp): Adjust.
17834 (linux_async): Add debug output.
17835 (linux_thread_stopped): New.
17836 (linux_pause_all): New.
17837 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17839 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17840 (thread_db_free): Delete declaration.
17841 (thread_db_detach, thread_db_mourn): Declare.
17842 * thread-db.c (thread_db_init): Use thread_db_mourn.
17843 (thread_db_free): Delete, split in two.
17844 (disable_thread_event_reporting): New.
17845 (thread_db_detach): New.
17846 (thread_db_mourn): New.
17848 * server.h (struct thread_info) <last_resume_kind>: New field.
17849 <attached>: Add comment.
17850 <gdb_detached>: New field.
17851 (handler_func): Change return type to int.
17852 (handle_serial_event, handle_target_event): Ditto.
17853 (gdb_connected): Declare.
17855 (disconnected_tracing): Declare.
17856 (stop_tracing): Declare.
17858 * server.c (handle_query) <qSupported>: Report support for
17859 disconnected tracing.
17860 (queue_stop_reply_callback): Account for running threads.
17861 (gdb_wants_thread_stopped): New.
17862 (gdb_wants_all_threads_stopped): New.
17863 (gdb_reattached_process): New.
17864 (handle_status): Clear the `gdb_detached' flag of all processes.
17865 In all-stop, stop all threads.
17866 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17867 (process_serial_event): If the remote connection breaks, or if an
17868 exit was forced with "monitor exit", force an event loop exit.
17869 Handle disconnected tracing on detach.
17870 (handle_serial_event): Adjust.
17871 (handle_target_event): If GDB isn't connected, forward events back
17872 to the inferior, unless the last process exited, in which case,
17873 exit gdbserver. Adjust interface.
17875 * remote-utils.c (remote_open): Don't block in accept. Instead
17876 register an event loop source on the listen socket file
17877 descriptor. Refactor bits into ...
17878 (listen_desc): ... this new global.
17879 (gdb_connected): ... this new function.
17880 (enable_async_notification): ... this new function.
17881 (handle_accept_event): ... this new function.
17882 (remote_close): Clear remote_desc.
17884 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17886 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17888 (mourn_inferior): Define.
17889 (target_process_qsupported): Avoid the dangling else problem.
17890 (thread_stopped): Define.
17891 (pause_all): Define.
17892 (target_waitstatus_to_string): Declare.
17893 * target.c (target_waitstatus_to_string): New.
17895 * tracepoint.c (tracing): Make extern.
17896 (disconnected_tracing): New.
17897 (stop_tracing): Make extern. Handle tracing stops due to GDB
17899 (cmd_qtdisconnected): New.
17900 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17901 (handle_tracepoint_general_set): Handle QTDisconnected.
17903 * event-loop.c (event_handler_func): Change return type to int.
17904 (process_event): Bail out if the event handler wants the event
17906 (handle_file_event): Ditto.
17907 (start_event_loop): Bail out if the event handler wants the event
17910 * nto-low.c (nto_target_ops): Adjust.
17911 * spu-low.c (spu_wait): Don't remove the process here.
17912 (spu_target_ops): Adjust.
17913 * win32-low.c (win32_wait): Don't remove the process here.
17914 (win32_target_ops): Adjust.
17916 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17918 * regcache.c (realloc_register_cache): Invalidate inferior's
17919 regcache before recreating it.
17921 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17923 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17925 2010-04-09 Stan Shebs <stan@codesourcery.com>
17926 Pedro Alves <pedro@codesourcery.com>
17928 * server.h (LONGEST): New.
17929 (struct thread_info) <while_stepping>: New field.
17930 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17932 (initialize_tracepoint, handle_tracepoint_general_set)
17933 (handle_tracepoint_query, tracepoint_finished_step)
17934 (tracepoint_was_hit, release_while_stepping_state_list):
17935 (current_traceframe): Declare.
17936 * server.c (handle_general_set): Handle tracepoint packets.
17937 (read_memory): New.
17938 (write_memory): New.
17939 (handle_search_memory_1): Use read_memory.
17940 (handle_query): Report support for conditional tracepoints, trace
17941 state variables, and tracepoint sources. Handle tracepoint
17943 (main): Initialize the tracepoints module.
17944 (process_serial_event): Handle traceframe reads/writes.
17946 * linux-low.c (handle_tracepoints): New.
17947 (linux_wait_1): Call it.
17948 (linux_resume_one_lwp): Handle while-stepping.
17949 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17950 (linux_target_ops): Install them.
17951 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17953 * linux-x86-low.c (x86_supports_tracepoints): New.
17954 (the_low_target). Install it.
17956 * mem-break.h (delete_breakpoint): Declare.
17957 * mem-break.c (delete_breakpoint): Make external.
17959 * target.h (struct target_ops): Add `supports_tracepoints',
17960 `read_pc', and `write_pc' fields.
17961 (target_supports_tracepoints): Define.
17962 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17965 * regcache.h (struct regcache) <registers_owned>: New field.
17966 (init_register_cache, regcache_cpy): Declare.
17967 (regcache_read_pc, regcache_write_pc): Declare.
17968 (register_cache_size): Declare.
17969 (supply_regblock): Declare.
17970 * regcache.c (init_register_cache): New.
17971 (new_register_cache): Use it.
17972 (regcache_cpy): New.
17973 (register_cache_size): New.
17974 (supply_regblock): New.
17975 (regcache_read_pc, regcache_write_pc): New.
17977 * tracepoint.c: New.
17979 * Makefile.in (OBS): Add tracepoint.o.
17980 (tracepoint.o): New rule.
17982 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17984 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17986 (i386-mmx.c): Likewise.
17987 (i386-mmx-linux.o): Likewise.
17988 (i386-mmx-linux.c): Likewise.
17990 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17991 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17992 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17993 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17995 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17996 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17997 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17999 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18001 * Makefile.in (clean): Updated.
18003 (i386-avx.c): Likewise.
18004 (i386-avx-linux.o): Likewise.
18005 (i386-avx-linux.c): Likewise.
18006 (amd64-avx.o): Likewise.
18007 (amd64-avx.c): Likewise.
18008 (amd64-avx-linux.o): Likewise.
18009 (amd64-avx-linux.c): Likewise.
18011 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18012 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18013 (srv_amd64_regobj): Add amd64-avx.o.
18014 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18015 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18016 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18017 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18018 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18019 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18020 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18022 * i387-fp.c: Include "i386-xstate.h".
18024 (i387_cache_to_xsave): Likewise.
18025 (i387_xsave_to_cache): Likewise.
18026 (x86_xcr0): Likewise.
18028 * i387-fp.h (i387_cache_to_xsave): Likewise.
18029 (i387_xsave_to_cache): Likewise.
18030 (x86_xcr0): Likewise.
18032 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18033 * linux-crisv32-low.c (target_regsets): Likewise.
18034 * linux-m68k-low.c (target_regsets): Likewise.
18035 * linux-mips-low.c (target_regsets): Likewise.
18036 * linux-ppc-low.c (target_regsets): Likewise.
18037 * linux-s390-low.c (target_regsets): Likewise.
18038 * linux-sh-low.c (target_regsets): Likewise.
18039 * linux-sparc-low.c (target_regsets): Likewise.
18040 * linux-xtensa-low.c (target_regsets): Likewise.
18042 * linux-low.c: Include <sys/uio.h>.
18043 (regsets_fetch_inferior_registers): Support nt_type.
18044 (regsets_store_inferior_registers): Likewise.
18045 (linux_process_qsupported): New.
18046 (linux_target_ops): Add linux_process_qsupported.
18048 * linux-low.h (regset_info): Add nt_type.
18049 (linux_target_ops): Add process_qsupported.
18051 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18053 (init_registers_i386_avx_linux): New.
18054 (init_registers_amd64_avx_linux): Likewise.
18055 (xmltarget_i386_linux_no_xml): Likewise.
18056 (xmltarget_amd64_linux_no_xml): Likewise.
18057 (PTRACE_GETREGSET): Likewise.
18058 (PTRACE_SETREGSET): Likewise.
18059 (x86_fill_xstateregset): Likewise.
18060 (x86_store_xstateregset): Likewise.
18061 (use_xml): Likewise.
18062 (x86_linux_update_xmltarget): Likewise.
18063 (x86_linux_process_qsupported): Likewise.
18064 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18065 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18066 init_registers_i386_linux here. Call
18067 x86_linux_update_xmltarget.
18068 (the_low_target): Add x86_linux_process_qsupported.
18070 * server.c (handle_query): Call target_process_qsupported.
18072 * target.h (target_ops): Add process_qsupported.
18073 (target_process_qsupported): New.
18075 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18077 * inferiors.c (add_thread): Set last_status kind to
18078 TARGET_WAITKIND_IGNORE.
18079 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18080 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18081 (linux_wait_1): Move `thread' local definition to block that uses
18082 it. Don't NULL initialize `event_child'.
18083 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18084 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18085 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18087 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18089 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18090 an extended waitstatus, or by a watchpoint.
18091 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18092 thread was stepping or has been stopped by a watchpoint.
18094 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18096 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18097 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18098 of another, then delete the previous, and validate all
18100 (validate_inserted_breakpoint): New.
18101 (delete_disabled_breakpoints): New.
18102 (validate_breakpoints): New.
18103 (check_mem_read): Validate breakpoints before trusting their
18104 shadow. Delete disabled breakpoints.
18105 (check_mem_write): Validate breakpoints before trusting they
18106 should be inserted. Delete disabled breakpoints.
18107 * mem-break.h (validate_breakpoints):
18108 * server.c (handle_query): Validate breakpoints when we see a
18111 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18113 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18114 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18115 if we could tell there's a GDB breakpoint at stop_pc.
18116 (need_step_over_p): Don't do a step over if we find a GDB
18117 breakpoint at the resume PC.
18119 * mem-break.c (struct raw_breakpoint): New.
18120 (enum bkpt_type): New type `gdb_breakpoint'.
18121 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18122 fields. New field `raw'.
18123 (find_raw_breakpoint_at): New.
18124 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18125 breakpoint instead.
18126 (set_breakpoint_at): Adjust.
18127 (delete_raw_breakpoint): New.
18128 (release_breakpoint): New.
18129 (delete_breakpoint): Rename to...
18130 (delete_breakpoint_1): ... this. Add proc parameter. Use
18131 release_breakpoint. Return ENOENT.
18132 (delete_breakpoint): Reimplement.
18133 (find_breakpoint_at): Delete.
18134 (find_gdb_breakpoint_at): New.
18135 (delete_breakpoint_at): Delete.
18136 (set_gdb_breakpoint_at): New.
18137 (delete_gdb_breakpoint_at): New.
18138 (gdb_breakpoint_here): New.
18139 (set_reinsert_breakpoint): Use release_breakpoint.
18140 (uninsert_breakpoint): Rename to ...
18141 (uninsert_raw_breakpoint): ... this.
18142 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18143 (reinsert_raw_breakpoint): Change parameter type to
18145 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18147 (check_breakpoints): Adjust. Use release_breakpoint.
18148 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18149 (breakpoint_inserted_here): Ditto.
18150 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18151 Don't trust the breakpoint's shadow if it is not inserted.
18152 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18153 (delete_all_breakpoints): Adjust.
18154 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18155 use delete_breakpoint_1.
18157 * mem-break.h (breakpoints_supported): Delete declaration.
18158 (set_gdb_breakpoint_at): Declare.
18159 (gdb_breakpoint_here): Declare.
18160 (delete_breakpoint_at): Delete.
18161 (delete_gdb_breakpoint_at): Declare.
18163 * server.h (struct raw_breakpoint): Forward declare.
18164 (struct process_info): New field `raw_breakpoints'.
18166 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18169 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18171 * linux-low.c (status_pending_p_callback): Fix comment.
18172 (linux_wait_for_event_1): Move most of the internal breakpoint
18173 handling from here...
18174 (linux_wait_1): ... to here.
18175 (count_events_callback): New.
18176 (select_singlestep_lwp_callback): New.
18177 (select_event_lwp_callback): New.
18178 (cancel_breakpoints_callback): New.
18179 (select_event_lwp): New.
18180 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18181 priority to all LWPs that have had events that should be reported
18182 to the client. Cancel breakpoints when about to reporting the
18183 event to the client, not while stopping lwps. No longer cancel
18184 finished single-steps here.
18185 (cancel_finished_single_step): Delete.
18186 (cancel_finished_single_steps): Delete.
18188 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18190 * mem-break.c (enum bkpt_type): New.
18191 (struct breakpoint): New field `type'.
18192 (set_breakpoint_at): Change return type to struct breakpoint
18193 pointer. Set type to `other_breakpoint' by default.
18194 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18195 in the breakpoint list.
18196 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18197 (reinsert_breakpoint): Rename to ...
18198 (reinsert_raw_breakpoint): ... this.
18199 (reinsert_breakpoints_at): Adjust.
18200 * mem-break.h (struct breakpoint): Declare.
18201 (set_breakpoint_at): Change return type to struct breakpoint
18204 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18206 * server.c (handle_query): Assign, not compare.
18208 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18210 Teach linux gdbserver to step-over-breakpoints.
18212 * linux-low.c (can_hardware_single_step): New.
18213 (supports_breakpoints): New.
18214 (handle_extended_wait): If stopping threads, read the stop pc of
18215 the new cloned LWP.
18217 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18218 low target doesn't support retrieving the PC.
18219 (add_lwp): Set last_resume_kind to resume_continue.
18220 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18221 (linux_attach): Don't clear stop_expected. Set the lwp's
18222 last_resume_kind to resume_stop.
18223 (linux_detach_one_lwp): Don't check for removed breakpoints.
18224 (check_removed_breakpoint): Delete.
18225 (status_pending_p): Rename to ...
18226 (status_pending_p_callback): ... this. Don't check for removed
18227 breakpoints. Don't consider threads that are stopped from GDB's
18229 (linux_wait_for_lwp): Always read the stop_pc here.
18230 (cancel_breakpoint): New.
18231 (step_over_bkpt): New global.
18232 (linux_wait_for_event_1): Implement stepping over breakpoints.
18233 (gdb_wants_lwp_stopped): New.
18234 (gdb_wants_all_stopped): New.
18235 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18236 single-step traps here. Store the thread's last reported target
18238 (send_sigstop): Don't clear stop_expected. Always set it,
18240 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18241 (cancel_finished_single_step): New.
18242 (cancel_finished_single_steps): New.
18243 (wait_for_sigstop): Don't cancel finished single-step traps here.
18244 (linux_resume_one_lwp): Don't check for removed breakpoints.
18245 Don't set `step' on non-hardware step archs.
18246 (linux_set_resume_request): Ignore resume_stop requests if already
18247 stopping or stopped. Set the lwp's last_resume_kind.
18248 (resume_status_pending_p): Don't check for removed breakpoints.
18249 (need_step_over_p): New.
18250 (start_step_over): New.
18251 (finish_step_over): New.
18252 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18253 requests. Clear the thread's last reported target waitstatus.
18254 Don't use the `suspended' flag. Don't consider pending breakpoints.
18255 (linux_resume): Start a step-over if necessary.
18256 (proceed_one_lwp): New.
18257 (proceed_all_lwps): New.
18258 (unstop_all_lwps): New.
18259 * linux-low.h (struct lwp_info): Rewrite comment for the
18260 `suspended' flag. Add the `stop_pc' field. Delete the
18261 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18262 Add `'last_resume_kind' and `need_step_over' fields.
18263 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18264 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18265 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18266 (set_raw_breakpoint_at): New.
18267 (set_breakpoint_at): Rewrite to use it.
18268 (reinsert_breakpoint_handler): Delete.
18269 (set_reinsert_breakpoint): New.
18270 (reinsert_breakpoint_by_bp): Delete.
18271 (delete_reinsert_breakpoints): New.
18272 (uninsert_breakpoint): Rewrite.
18273 (uninsert_breakpoints_at): New.
18274 (reinsert_breakpoint): Rewrite.
18275 (reinsert_breakpoints_at): New.
18276 (check_breakpoints): Rewrite.
18277 (breakpoint_here): New.
18278 (breakpoint_inserted_here): New.
18279 (check_mem_read): Adjust.
18280 * mem-break.h (breakpoints_supported, breakpoint_here)
18281 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18282 (reinsert_breakpoint_by_bp): Delete declaration.
18283 (delete_reinsert_breakpoints): Declare.
18284 (reinsert_breakpoint): Delete declaration.
18285 (reinsert_breakpoints_at): Declare.
18286 (uninsert_breakpoint): Delete declaration.
18287 (uninsert_breakpoints_at): Declare.
18288 (check_breakpoints): Adjust prototype.
18289 * server.h: Adjust include order.
18290 (struct thread_info): Declare here. Add a `last_status' field.
18292 2010-03-23 Michael Snyder <msnyder@vmware.com>
18294 * server.c (crc32): New function.
18295 (handle_query): Add handling for 'qCRC:' request.
18297 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18299 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18300 lwp had been stopped by a watchpoint.
18302 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18304 * server.h (internal_error): Declare.
18305 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18306 * utils.c (internal_error): New function.
18308 2010-03-15 Andreas Schwab <schwab@redhat.com>
18310 * configure.srv: Fix typo setting srv_regobj.
18312 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18314 * linux-low.c (fetch_register): Avoid passing a non string literal
18316 (usr_store_inferior_registers): Ditto.
18318 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18320 * linux-low.c (linux_write_memory): Bail out early if peeking
18323 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18325 * linux-low.h (struct lwp_info): New fields
18326 `stopped_by_watchpoint' and `stopped_data_address'.
18327 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18328 here, and cache them in the lwp object.
18329 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18331 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18333 (linux_stopped_by_watchpoint): Rewrite.
18334 (linux_stopped_data_address): Rewrite.
18336 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18338 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18339 switching the current inferior, not before.
18341 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18343 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18344 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18345 i386-linux.c and amd64-linux.c.
18346 (reg-i386.o): Removed.
18347 (reg-i386.c): Likewise.
18348 (reg-i386-linux.o): Likewise.
18349 (reg-i386-linux.c): Likewise.
18350 (reg-x86-64.o): Likewise.
18351 (reg-x86-64.c): Likewise.
18352 (reg-x86-64-linux.o): Likewise.
18353 (reg-x86-64-linux.c): Likewise.
18355 (i386.c): Likewise.
18356 (i386-linux.o): Likewise.
18357 (i386-linux.c): Likewise.
18358 (amd64.o): Likewise.
18359 (amd64.c): Likewise.
18360 (amd64-linux.o): Likewise.
18361 (amd64-linux.c): Likewise.
18363 * configure.srv (srv_i386_regobj): New.
18364 (srv_i386_linux_regobj): Likewise.
18365 (srv_amd64_regobj): Likewise.
18366 (srv_amd64_linux_regobj): Likewise.
18367 (srv_i386_32bit_xmlfiles): Likewise.
18368 (srv_i386_64bit_xmlfiles): Likewise.
18369 (srv_i386_xmlfiles): Likewise.
18370 (srv_amd64_xmlfiles): Likewise.
18371 (srv_i386_linux_xmlfiles): Likewise.
18372 (srv_amd64_linux_xmlfiles): Likewise.
18373 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18374 srv_xmlfiles to $srv_i386_xmlfiles.
18375 (i[34567]86-*-mingw32ce*): Likewise.
18376 (i[34567]86-*-mingw*): Likewise.
18377 (i[34567]86-*-nto*): Likewise.
18378 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18379 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18380 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18381 (x86_64-*-linux*): Likewise.
18383 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18384 (init_registers_amd64_linux): New.
18385 (x86_arch_setup): Replace init_registers_x86_64_linux with
18386 init_registers_amd64_linux.
18388 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18390 * configure.ac: Check for libdl. If it is not available link against
18391 static libthread_db.
18392 * configure: Regenerate.
18394 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18398 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18399 handing a read watchpoint.
18400 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18402 2010-02-12 Doug Evans <dje@google.com>
18404 * linux-low.c (linux_supports_tracefork_flag): Document.
18405 (linux_look_up_symbols): Add comment.
18407 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18409 * regcache.c (supply_register): Clear regcache if buf is NULL.
18411 2010-02-02 Nicolas Roche <roche@sourceware.org>
18412 Joel Brobecker <brobecker@adacore.com>
18414 * inferiors.c (find_inferior): Add function documentation.
18415 (unloaded_dll): Handle the case where the unloaded dll has not
18416 been previously registered in the dll list.
18418 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18420 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18421 (thumb2_breakpoint): New.
18422 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18424 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18426 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18427 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18430 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18432 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18434 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18436 * linux-s390-low.c (s390_collect_ptrace_register)
18437 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18439 2010-01-21 Doug Evans <dje@google.com>
18441 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18442 (PTRACE_ARG4_TYPE): New macro.
18443 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18444 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18445 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18446 (usr_store_inferior_registers): Ditto.
18447 (linux_read_memory, linux_write_memory): Ditto.
18448 (linux_test_for_tracefork): Ditto.
18450 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18451 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18453 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18455 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18458 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18460 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18461 prototype to take a regcache. Adjust.
18463 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18465 * regcache.h (struct thread_info): Forward declare.
18466 (struct regcache): New.
18467 (new_register_cache): Adjust prototype.
18468 (get_thread_regcache): Declare.
18469 (free_register_cache): Adjust prototype.
18470 (registers_to_string, registers_from_string): Ditto.
18471 (supply_register, supply_register_by_name, collect_register)
18472 (collect_register_as_string, collect_register_by_name): Ditto.
18473 * regcache.c (struct inferior_regcache_data): Delete.
18474 (get_regcache): Rename to ...
18475 (get_thread_regcache): ... this. Adjust. Switch inferior before
18476 fetching registers.
18477 (regcache_invalidate_one): Adjust.
18478 (regcache_invalidate): Fix prototype.
18479 (new_register_cache): Return the new register cache.
18480 (free_register_cache): Change prototype.
18481 (realloc_register_cache): Adjust.
18482 (registers_to_string): Change prototype to take a regcache. Adjust.
18483 (registers_from_string): Ditto.
18484 (register_data): Ditto.
18485 (supply_register): Ditto.
18486 (supply_register_by_name): Ditto.
18487 (collect_register): Ditto.
18488 (collect_register_as_string): Ditto.
18489 (collect_register_by_name): Ditto.
18490 * server.c (process_serial_event): Adjust.
18491 * linux-low.h (regset_fill_func, regset_store_func): Change
18493 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18495 * linux-low.c (get_stop_pc): Adjust.
18496 (check_removed_breakpoint): Adjust.
18497 (linux_wait_for_event): Adjust.
18498 (linux_resume_one_lwp): Adjust.
18499 (fetch_register): Add regcache parameter. Adjust.
18500 (usr_store_inferior_registers): Ditto.
18501 (regsets_fetch_inferior_registers): Ditto.
18502 (regsets_store_inferior_registers): Ditto.
18503 (linux_fetch_registers, linux_store_registers): Ditto.
18504 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18506 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18508 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18509 prototype to take a regcache.
18510 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18511 * remote-utils.c (convert_ascii_to_int, outreg)
18512 (prepare_resume_reply): Change prototype to take a regcache.
18514 * target.h (struct target_ops) <fetch_registers, store_registers>:
18515 Change prototype to take a regcache.
18516 (fetch_inferior_registers, store_inferior_registers): Change
18517 prototype to take a regcache. Adjust.
18518 * proc-service.c (ps_lgetregs): Adjust.
18519 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18520 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18521 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18522 take a regcache. Adjust.
18523 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18524 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18525 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18526 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18527 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18528 (cris_cannot_fetch_register):
18529 (cris_breakpoint_at): Change prototype to take a regcache.
18531 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18532 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18533 to take a regcache. Adjust.
18534 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18536 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18537 take a regcache. Adjust.
18538 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18539 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18540 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18541 * linux-mips-low.c (mips_get_pc):
18542 (mips_set_pc): Change prototype to take a regcache. Adjust.
18543 (mips_reinsert_addr): Adjust.
18544 (mips_collect_register): Change prototype to take a regcache.
18546 (mips_supply_register):
18547 (mips_collect_register_32bit, mips_supply_register_32bit)
18548 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18549 (mips_store_fpregset): Ditto.
18550 * linux-ppc-low.c (ppc_supply_ptrace_register)
18551 (ppc_supply_ptrace_register): Ditto.
18552 (parse_spufs_run): Adjust.
18553 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18554 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18555 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18556 take a regcache. Adjust.
18557 * linux-s390-low.c (s390_collect_ptrace_register)
18558 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18559 (s390_set_pc): Change prototype to take a regcache. Adjust.
18560 (s390_arch_setup): Adjust.
18561 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18562 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18563 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18564 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18565 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18567 (sparc_breakpoint_at): Adjust.
18568 * linux-xtensa-low.c (xtensa_fill_gregset):
18569 (xtensa_store_gregset):
18570 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18571 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18572 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18573 prototype to take a regcache. Adjust.
18574 * win32-arm-low.c (arm_fetch_inferior_register)
18575 (arm_store_inferior_register): Change prototype to take a
18577 * win32-i386-low.c (i386_fetch_inferior_register)
18578 (i386_store_inferior_register): Change prototype to take a
18580 * win32-low.c (child_fetch_inferior_registers)
18581 (child_store_inferior_registers): Change prototype to take a
18583 (win32_wait): Adjust.
18584 (win32_fetch_inferior_registers): Change prototype to take a
18586 (win32_store_inferior_registers): Adjust.
18587 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18588 store_inferior_register>: Change prototype to take a regcache.
18590 2010-01-20 Doug Evans <dje@google.com>
18592 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18594 (linux_wait_for_event1, linux_init_signals): Ditto.
18595 (W_STOPCODE): Provide definition if missing.
18597 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18599 * linux-low.c (linux_core_of_thread): New.
18600 (compare_ints, show_process, list_threads): New.
18601 (linux_qxfer_osdata): Report threads and cores.
18602 (linux_target_op): Register linux_core_of_thread.
18603 * remote-utils.c (prepare_resume_reply): Report the core.
18604 (buffer_xml_printf): Support %d specifier.
18605 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18607 (handle_query): Handle qXfer:threads. Announce availability
18609 * target.h (struct target_ops): New field core_of_thread.
18611 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18613 * Makefile.in (clean): Remove new generated files.
18614 (reg-s390.o, reg-s390.c): Remove rules.
18615 (reg-s390x.o, reg-s390x.c): Likewise.
18616 (s390-linux32.o, s390-linux32.c): Add rules.
18617 (s390-linux64.o, s390-linux64.c): Likewise.
18618 (s390x-linux64.o, s390x-linux64.c): Likewise.
18619 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18620 * linux-s390-low.c: Include <elf.h>.
18621 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18622 (init_registers_s390): Remove prototype.
18623 (init_registers_s390x): Likewise.
18624 (init_registers_s390_linux32): Add prototype.
18625 (init_registers_s390_linux64): Likewise.
18626 (init_registers_s390x_linux64): Likewise.
18627 (s390_num_regs_3264): New define.
18628 (s390_regmap_3264): New global variable.
18629 (s390_cannot_fetch_register): Remove obsolete check.
18630 (s390_cannot_store_register): Likewise.
18631 (s390_collect_ptrace_register): Handle upper/lower register halves.
18632 (s390_supply_ptrace_register): Likewise.
18633 (s390_fill_gregset): Update to register number changes.
18634 (s390_get_hwcap): New routine.
18635 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18636 Install appropriate regmap and register set.
18638 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18640 * server.c (gdbserver_version): Update copyright year to 2010.
18641 * gdbreplay.c (gdbreplay_version): Likewise.
18643 2009-12-28 Doug Evans <dje@google.com>
18645 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18646 elf/external.h. Include <elf.h> instead but only if necessary.
18648 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18650 * linux-low.c (linux_remove_process): Remove `detaching'
18651 parameter. Don't release/detach from thread_db here.
18652 (linux_kill): Release/detach from thread_db here, ...
18653 (linux_detach): ... and here, before actually detaching.
18654 (linux_wait_1): ... and here, when a process exits.
18655 * thread-db.c (any_thread_of): New.
18656 (thread_db_free): Switch the current inferior to a thread of the
18659 2009-12-21 Doug Evans <dje@google.com>
18661 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18663 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18664 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18665 warning ifndef __NR_tkill. Move setting of errno there too.
18666 Delete unnecessary resetting of errno after syscall.
18667 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18669 * configure.ac: Check for dladdr.
18670 * config.in: Regenerate.
18671 * configure: Regenerate.
18672 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18673 (try_thread_db_load): Update.
18675 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18677 2009-12-18 Doug Evans <dje@google.com>
18679 * event-loop.c: Include unistd.h if it exists.
18681 * linux-low.c (my_waitpid): Move definition away from being in
18682 between linux_tracefork_child/linux_test_for_tracefork.
18684 * gdb_proc_service.h (psaddr_t): Fix type.
18685 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18686 signature to match glibc.
18688 2009-12-16 Doug Evans <dje@google.com>
18690 * linux-low.c (linux_read_memory): Fix argument to read.
18692 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18694 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18695 events, don't leave current_inferior pointing at null.
18697 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18699 * win32-low.c (LOG): Delete.
18700 (OUTMSG): Output to stderr.
18701 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18702 on compile time LOG macro.
18703 (win32_wait): Fix debug output.
18705 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18707 * win32-low.c (win32_add_one_solib): If the dll name is
18708 "ntdll.dll", prepend the system directory to the dll path.
18710 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18712 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18714 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18715 Vladimir Prus <vladimir@codesourcery.com>
18717 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18718 * configure.ac: Check for __mcoldfire__ and set
18719 gdb_cv_m68k_is_coldfire.
18720 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18721 reg-cf.o and reg-m68k.o.
18722 * configure: Regenerated.
18724 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18726 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18727 Pass it to thread_db_free.
18728 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18729 proper `detaching' argument to linux_remove_process.
18730 * linux-low.h (thread_db_free): Add `detaching' parameter.
18731 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18733 (thread_db_free): Add `detaching' parameter. Only
18734 call td_ta_clear_event if detaching from process.
18736 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18738 * thread-db.c (thread_db_free): Fix typo.
18740 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18743 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18745 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18747 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18748 with an i686 compiler.
18749 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18751 * configure: Rebuilt.
18753 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18757 * server.c (handle_search_memory_1): Correct read_addr initialization
18758 in loop for searching subsequent chunks.
18760 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18762 * configure.ac: New --with-libthread-db option.
18763 * thread-db.c: Allow direct dependence on libthread_db.
18764 (thread_db_free): Adjust.
18765 * config.in: Regenerate.
18766 * configure: Likewise.
18768 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18771 * thread-db.c (attach_thread): New function.
18772 (maybe_attach_thread): Return success/failure.
18773 (find_new_threads_callback): Adjust.
18774 (thread_db_find_new_threads): Loop until no new threads.
18776 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18778 * proc-service.c (ps_lgetregs): Formatting.
18780 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18782 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18783 * configure.ac: Adjust.
18784 * linux-low.h (struct process_info_private): Move members to struct
18786 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18787 * linux-low.c (linux_remove_process): Adjust.
18788 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18789 * server.c (handle_query): Move code ...
18790 (handle_monitor_command): ... here. New function.
18791 * target.h (struct target_ops): New member.
18792 * thread-db.c (struct thread_db): New.
18793 (libthread_db_search_path): New variable.
18794 (thread_db_create_event, thread_db_enable_reporting)
18795 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18796 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18797 (try_thread_db_load_1, dladdr_to_soname): New functions.
18798 (try_thread_db_load, thread_db_load_search): New functions.
18799 (thread_db_init): Search for libthread_db.
18800 (thread_db_free): New function.
18801 (thread_db_handle_monitor_command): Likewise.
18802 * config.in: Regenerate.
18803 * configure: Regenerate.
18805 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18807 * spu-low.c (spu_kill): Wait for inferior to terminate.
18808 Call clear_inferiors.
18809 (spu_detach): Call clear_inferiors.
18811 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18813 * aclocal.m4: Regenerate.
18814 * config.in: Likewise.
18815 * configure: Likewise.
18817 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18819 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18820 (parse_spufs_run): New function.
18821 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18822 (ppc_breakpoint_at): Handle SPU breakpoints.
18824 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18826 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18827 (SPUFS_MAGIC): Define.
18828 (spu_enumerate_spu_ids): New function.
18829 (linux_qxfer_spu): New function.
18830 (linux_target_ops): Install linux_qxfer_spu.
18832 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18834 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18835 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18836 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18837 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18838 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18839 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18840 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18841 (init_registers_powerpc_cell32l): Add prototype.
18842 (init_registers_powerpc_cell64l): Likewise.
18843 (ppc_arch_setup): Detect Cell/B.E. architecture.
18845 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18847 * Makefile.in (datarootdir): New variable.
18849 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18851 * linux-low.c (linux_write_memory): Update debugging output.
18852 * Makefile.in (clean): Add new descriptions.
18853 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18854 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18855 * configure.srv: Add new files for arm*-*-linux*.
18856 * linux-arm-low.c: Add new declarations.
18857 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18858 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18859 (HWCAP_VFPv3D16): New.
18860 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18861 instead of __IWMMXT__.
18862 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18863 (arm_arch_setup): New.
18864 (target_regsets): Remove #ifdef. Add VFP regset.
18865 (the_low_target): Use arm_arch_setup.
18867 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18869 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18870 the main thread again.
18872 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18874 Adding Neutrino gdbserver.
18875 * configure: Regenerated.
18876 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18877 * configure.srv (i[34567]86-*-nto*): New target.
18878 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18879 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18880 (nto_comctrl) [__QNX__]: New function.
18881 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18883 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18885 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18888 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18889 Pedro Alves <pedro@codesourcery.com>
18891 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18892 don't support CONTEXT_EXTENDED_REGISTERS.
18893 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18894 (the_low_target): Install them.
18895 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18896 failing with ERROR_PIPE_NOT_CONNECTED.
18898 2009-06-30 Doug Evans <dje@google.com>
18899 Pierre Muller <muller@ics.u-strasbg.fr>
18901 Add h/w watchpoint support to x86-linux, win32-i386.
18902 * Makefile.in (SFILES): Add i386-low.c
18903 (i386_low_h): Define.
18904 (i386-low.o): Add dependencies.
18905 (linux-x86-low.o): Add i386-low.h dependency.
18906 (win32-i386-low.o): Ditto.
18907 * i386-low.c: New file.
18908 * i386-low.h: New file.
18909 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18910 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18911 * linux-low.c (linux_add_process): Initialize arch_private.
18912 (linux_remove_process): Free arch_private.
18913 (add_lwp): Initialize arch_private.
18914 (delete_lwp): Free arch_private.
18915 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18917 * linux-low.h (process_info_private): New member arch_private.
18918 (lwp_info): New member arch_private.
18919 (linux_target_ops): New members new_process, new_thread,
18921 (ptid_of): New macro.
18922 * linux-x86-low.c: Include stddef.h, i386-low.h.
18923 (arch_process_info): New struct.
18924 (arch_lwp_info): New struct.
18925 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18926 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18927 (i386_dr_low_get_status): New function.
18928 (x86_insert_point, x86_remove_point): New functions.
18929 (x86_stopped_by_watchpoint): New function.
18930 (x86_stopped_data_address): New function.
18931 (x86_linux_new_process, x86_linux_new_thread): New functions.
18932 (x86_linux_prepare_to_resume): New function.
18933 (the_low_target): Add entries for insert_point, remove_point,
18934 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18936 * server.c (debug_hw_points): New global.
18937 (monitor_show_help): Document set debug-hw-points.
18938 (handle_query): Process "set debug-hw-points".
18939 * server.h (debug_hw_points): Declare.
18940 (paddress): Declare.
18941 * utils.c (NUMCELLS, CELLSIZE): New macros.
18942 (get_sell, xsnprintf, paddress): New functions.
18943 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18944 remove_point, stopped_by_watchpoint, stopped_data_address.
18945 * win32-i386-low.c: Include i386-low.h.
18946 (debug_reg_state): Replaces dr.
18947 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18948 (i386_dr_low_get_status): New function.
18949 (i386_insert_point, i386_remove_point): New functions.
18950 (i386_stopped_by_watchpoint): New function.
18951 (i386_stopped_data_address): New function.
18952 (i386_initial_stuff): Update.
18953 (get_thread_context,set_thread_context,i386_thread_added): Update.
18954 (the_low_target): Add entries for insert_point,
18955 remove_point, stopped_by_watchpoint, stopped_data_address.
18956 * win32-low.c (win32_insert_watchpoint): New function.
18957 (win32_remove_watchpoint): New function.
18958 (win32_stopped_by_watchpoint): New function.
18959 (win32_stopped_data_address): New function.
18960 (win32_target_ops): Add entries for insert_watchpoint,
18961 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18962 * win32-low.h (win32_target_ops): New members insert_point,
18963 remove_point, stopped_by_watchpoint, stopped_data_address.
18965 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18967 * server.c (process_serial_event): Re-return unsupported, not
18968 error, if the type isn't recognized. Re-allow supporting only
18969 insert or remove packets. Also call require_running for
18970 breakpoints. Add missing break statement to default case. Tidy.
18971 * target.h (struct target_ops): Rename insert_watchpoint to
18972 insert_point, and remove_watchpoint to remove_point.
18974 * linux-low.h (struct linux_target_ops): Likewise.
18975 * linux-low.c (linux_insert_watchpoint): Rename to ...
18976 (linux_insert_point): ... this. Adjust.
18977 (linux_remove_watchpoint): Rename to ...
18978 (linux_remove_point): ... this. Adjust.
18979 (linux_target_ops): Adjust.
18980 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18981 (cris_insert_point): ... this.
18982 (cris_remove_watchpoint): Rename to ...
18983 (cris_remove_point): ... this.
18984 (the_low_target): Adjust.
18986 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18988 * server.c (handle_v_kill): Pass signal_pid to
18989 kill_inferior if multi_process is zero.
18991 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18993 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18994 * target.h (target_ops): Comment for *_watchpoint to make it clear
18995 the functions can get types '0' and '1'.
18997 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18999 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19000 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19001 * regcache.c (get_regcache): Likewise.
19002 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19003 * win32-low.c (child_fetch_inferior_registers): Remove check for
19006 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19007 Pedro Alves <pedro@codesourcery.com>
19009 * target.h (struct target_ops) <supports_multi_process>: New
19011 (target_supports_multi_process): New.
19012 * server.c (handle_query): Even if GDB reports support, only
19013 enable multi-process if the target also supports it. Report
19014 multi-process support only if the target backend supports it.
19015 * linux-low.c (linux_supports_multi_process): New function.
19016 (linux_target_ops): Install it as target_supports_multi_process
19019 2009-05-24 Doug Evans <dje@google.com>
19021 Global renaming of find_thread_pid to find_thread_ptid.
19022 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19023 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19024 All callers updated.
19026 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19027 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19030 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19031 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19032 (linux_resume_one_lwp): Ditto.
19034 2009-05-23 Doug Evans <dje@google.com>
19036 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19037 from struct inferior_list_entry * to struct lwp_info *.
19038 All callers updated.
19040 2009-05-13 Doug Evans <dje@google.com>
19042 * linux-x86-low.c: Don't include assert.h.
19043 (x86_siginfo_fixup): Use fatal, not assert.
19044 (x86_arch_setup): Fix comment.
19046 2009-05-12 Doug Evans <dje@google.com>
19048 Biarch support for i386/amd64 gdbserver.
19049 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19050 Add linux-x86-low.c.
19051 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19052 (linux-x86-low.o): Add.
19053 * linux-x86-64-low.c: Delete.
19054 * linux-i386-low.c: Delete.
19055 * linux-x86-low.c: New file.
19056 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19058 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19060 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19061 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19062 (linux_child_pid_to_exec_file): New function.
19063 (elf_64_header_p, elf_64_file_p): New functions.
19064 (siginfo_fixup): New function.
19065 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19066 give target a chance to convert layout.
19067 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19068 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19070 2009-05-07 Doug Evans <dje@google.com>
19072 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19073 (regsets_store_inferior_registers): Ditto.
19075 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19079 * linux-low.c (must_set_ptrace_flags): Delete.
19080 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19082 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19083 `lwp->must_set_ptrace_flags' instead.
19084 (linux_wait_for_event_1): Set ptrace options here.
19085 (linux_wait_1): ... not here.
19087 2009-04-30 Doug Evans <dje@google.com>
19089 * inferiors.c (started_inferior_callback): New function.
19090 (attached_inferior_callback): New function.
19091 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19092 * server.c (print_started_pid, print_attached_pid): New functions.
19093 (detach_or_kill_for_exit): New function.
19094 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19095 * server.h (have_started_inferiors_p): Declare.
19096 (have_attached_inferiors_p): Declare.
19098 * inferiors.c (remove_process): Fix memory leak, free process.
19099 * linux-low.c (linux_remove_process): New function.
19100 (linux_kill): Call it instead of remove_process.
19101 (linux_detach, linux_wait_1): Ditto.
19103 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19105 * configure.srv: Add x86 Windows CE target.
19107 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19109 * inferiors.c (get_thread_process): Make global.
19110 * server.h (get_thread_process): Add prototype.
19111 * thread-db.c (find_one_thread): Use get_thread_process
19112 instead of current_process.
19113 (thread_db_get_tls_address): Do not crash if called when
19114 thread layer is not yet initialized.
19116 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19118 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19119 * spu-low.c (current_tid): Rename to ...
19120 (current_ptid): ... this.
19121 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19122 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19123 ptid_get_lwp (current_ptid) instead of current_tid.
19124 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19125 instead of current_tid. Use find_process_pid to verify pid
19126 argument is valid. Pass proper argument to remove_process.
19127 (spu_thread_alive): Compare current_ptid instead of current_tid.
19128 (spu_resume): Likewise.
19130 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19132 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19135 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19137 Implement the multiprocess extensions, and add linux multiprocess
19140 * server.h (ULONGEST): Declare.
19141 (struct ptid, ptid_t): New.
19142 (minus_one_ptid, null_ptid): Declare.
19143 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19144 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19145 (struct inferior_list_entry): Change `id' type from unsigned from
19147 (struct sym_cache, struct breakpoint, struct
19148 process_info_private): Forward declare.
19149 (struct process_info): Declare.
19150 (current_process): Declare.
19151 (all_processes): Declare.
19152 (initialize_inferiors): Declare.
19153 (add_thread): Adjust to use ptid_t.
19154 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19155 (add_process, remove_process, find_thread_pid): Declare.
19156 (find_inferior_id): Adjust to use ptid_t.
19157 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19158 (multi_process): Declare.
19159 (push_event): Adjust to use ptid_t.
19160 (read_ptid, write_ptid): Declare.
19161 (prepare_resume_reply): Adjust to use ptid_t.
19162 (clear_symbol_cache): Declare.
19163 * inferiors.c (all_processes): New.
19164 (null_ptid, minus_one_ptid): New.
19165 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19166 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19167 (add_thread): Change unsigned long to ptid. Remove gdb_id
19169 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19170 (gdb_id_to_thread): Rename to ...
19171 (find_thread_pid): ... this. Change unsigned long to ptid.
19172 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19173 (loaded_dll, pull_pid_from_list): Adjust.
19174 (add_process, remove_process, find_process_pid)
19175 (get_thread_process, current_process, initialize_inferiors): New.
19176 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19177 (struct target_waitstatus) <related_pid>: Ditto.
19178 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19179 return type to int.
19180 (struct target_ops) <join>: Add `pid' argument.
19181 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19182 (struct target_ops) <wait>: Add `ptid' field. Change return type
19184 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19185 (mywait): Add `ptid' argument. Change return type to ptid_t.
19186 (target_pid_to_str): Declare.
19187 * target.c (set_desired_inferior): Adjust to use ptids.
19188 (mywait): Add new `ptid' argument. Adjust.
19189 (target_pid_to_str): New.
19190 * mem-break.h (free_all_breakpoints): Declare.
19191 * mem-break.c (breakpoints): Delelete.
19192 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19193 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19194 to use per-process breakpoint list.
19195 (free_all_breakpoints): New.
19196 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19197 (symbol_cache, all_symbols_looked_up): Delete.
19199 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19201 (prepare_resume_reply): Change ptid argument's type from unsigned
19202 long to ptid_t. Adjust. Implement W;process and X;process.
19203 (free_sym_cache, clear_symbol_cache): New.
19204 (look_up_one_symbol): Adjust to per-process symbol cache. *
19205 * server.c (cont_thread, general_thread, step_thread): Change type
19207 (attached): Delete.
19208 (multi_process): New.
19209 (last_ptid): Change type to ptid_t.
19210 (struct vstop_notif) <ptid>: Change type to ptid_t.
19211 (queue_stop_reply, push_event): Change `ptid' argument's type to
19213 (discard_queued_stop_replies): Add `pid' argument.
19214 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19215 changes. Don't reference the `attached' global.
19216 (attach_inferior): Adjust to mywait interface changes.
19217 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19218 features. Handle and report "multiprocess+". Handle
19220 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19222 (handle_v_kill): New.
19223 (handle_v_stopped): Adjust to use target_pid_to_str.
19224 (handle_v_requests): Allow multiple attaches and runs when
19225 multiprocess extensions are in effect. Handle "vKill".
19226 (myresume): Adjust to use ptids.
19227 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19228 (handle_status): Adjust to discard_queued_stop_replies interface
19230 (first_thread_of, kill_inferior_callback)
19231 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19232 (main): Call initialize_inferiors. Adjust to use ptids, killing
19233 and detaching from all inferiors. Handle multiprocess packet
19235 * linux-low.h: Include gdb_proc_service.h.
19236 (struct process_info_private): New.
19237 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19238 <lwpid_of>: Use ptid_get_lwp.
19239 (get_lwp_thread): Adjust.
19240 (struct lwp_info): Add `dead' member.
19241 (find_lwp_pid): Declare.
19242 * linux-low.c (thread_db_active): Delete.
19243 (new_inferior): Adjust comment.
19244 (inferior_pid): Delete.
19245 (linux_add_process): New.
19246 (handle_extended_wait): Adjust.
19247 (add_lwp): Change unsigned long to ptid.
19248 (linux_create_inferior): Add process to processes table. Adjust
19249 to use ptids. Don't set new_inferior here.
19250 (linux_attach_lwp): Rename to ...
19251 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19252 it. Adjust to use ptids.
19253 (linux_attach_lwp): New.
19254 (linux_attach): Add process to processes table. Don't set
19256 (struct counter): New.
19257 (second_thread_of_pid_p, last_thread_of_process_p): New.
19258 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19259 multiple processes.
19260 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19261 processes. Remove process from process table.
19262 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19263 to multiple processes.
19264 (any_thread_of): New.
19265 (linux_detach): Add `pid' argument, and handle it. Remove process
19266 from processes table.
19267 (linux_join): Add `pid' argument. Handle it.
19268 (linux_thread_alive): Change unsighed long argument to ptid_t.
19269 Consider dead lwps as not being alive.
19270 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19271 threads we're not interested in.
19272 (same_lwp, find_lwp_pid): New.
19273 (linux_wait_for_lwp): Change `pid' argument's type from int to
19275 (linux_wait_for_event): Rename to ...
19276 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19277 from int to ptid_t. Adjust.
19278 (linux_wait_for_event): New.
19279 (linux_wait_1): Add `ptid' argument. Change return type to
19280 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19281 that exit from the process table.
19282 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19284 (mark_lwp_dead): New.
19285 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19286 stopping all threads, mark its main lwp as dead.
19287 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19289 (fetch_register, usr_store_inferior_registers)
19290 (regsets_fetch_inferior_registers)
19291 (regsets_store_inferior_registers, linux_read_memory)
19292 (linux_write_memory): Inline `inferior_pid'.
19293 (linux_look_up_symbols): Adjust to use per-process
19294 `thread_db_active'.
19295 (linux_request_interrupt): Adjust to use ptids.
19296 (linux_read_auxv): Inline `inferior_pid'.
19297 (initialize_low): Don't reference thread_db_active.
19298 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19299 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19300 (ps_getpid): Return the pid of the current inferior.
19301 * thread-db.c (proc_handle, thread_agent): Delete.
19302 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19304 (find_one_thread): Change argument type to ptid_t. Adjust to
19306 (maybe_attach_thread): Adjust to per-process data and ptids.
19307 (thread_db_find_new_threads): Ditto.
19308 (thread_db_init): Ditto.
19309 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19310 processes table. Adjust to use ptids.
19311 (spu_kill, spu_detach): Adjust interface. Remove process from
19313 (spu_join, spu_thread_alive): Adjust interface.
19314 (spu_wait): Adjust interface. Remove process from processes
19315 table. Adjust to use ptids.
19316 * win32-low.c (current_inferior_tid): Delete.
19317 (current_inferior_ptid): New.
19318 (debug_event_ptid): New.
19319 (thread_rec): Take a ptid. Adjust.
19320 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19321 (child_delete_thread): Ditto.
19322 (do_initial_child_stuff): Add `attached' argument. Add process to
19324 (child_fetch_inferior_registers, child_store_inferior_registers):
19326 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19327 (win32_attach): Pass 1 to do_initial_child_stuff.
19328 (win32_kill): Adjust interface. Remove process from processes
19330 (win32_detach): Ditto.
19331 (win32_join): Adjust interface.
19332 (win32_thread_alive): Take a ptid.
19333 (win32_resume): Adjust to use ptids.
19334 (get_child_debug_event): Ditto.
19335 (win32_wait): Adjust interface. Remove exiting process from
19338 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19340 Non-stop mode support.
19342 * server.h (non_stop): Declare.
19343 (gdb_client_data, handler_func): Declare.
19344 (delete_file_handler, add_file_handler, start_event_loop):
19346 (handle_serial_event, handle_target_event, push_event)
19347 (putpkt_notif): Declare.
19348 * target.h (enum resume_kind): New.
19349 (struct thread_resume): Replace `step' field by `kind' field.
19350 (TARGET_WNOHANG): Define.
19351 (struct target_ops) <wait>: Add `options' argument.
19352 <supports_non_stop, async, start_non_stop>: New fields.
19353 (target_supports_non_stop, target_async): New.
19354 (start_non_stop): Declare.
19355 (mywait): Add `options' argument.
19356 * target.c (mywait): Add `options' argument. Print child exit
19357 notifications here.
19358 (start_non_stop): New.
19359 * server.c (non_stop, own_buf, mem_buf): New globals.
19360 (struct vstop_notif): New.
19361 (notif_queue): New global.
19362 (queue_stop_reply, push_event, discard_queued_stop_replies)
19363 (send_next_stop_reply): New.
19364 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19366 (attach_inferior): In non-stop mode, don't wait for the target
19368 (handle_general_set): Handle QNonStop.
19369 (handle_query): When handling qC, return the current general
19370 thread, instead of the first thread of the list.
19371 (handle_query): If the backend supports non-stop mode, include
19372 QNonStop+ in the qSupported query response.
19373 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19375 (handle_v_attach, handle_v_run): Handle non-stop mode.
19376 (handle_v_stopped): New.
19377 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19378 (myresume): Adjust to use resume_kind. Handle non-stop.
19379 (queue_stop_reply_callback): New.
19380 (handle_status): Handle non-stop mode.
19381 (main): Clear non_stop flag on reconnection. Use the event-loop.
19382 Refactor serial protocol handling from here ...
19383 (process_serial_event): ... to this new function. When GDB
19384 selects any thread, select one here. In non-stop mode, wait until
19385 GDB acks all pending events before exiting.
19386 (handle_serial_event, handle_target_event): New.
19387 * remote-utils.c (remote_open): Install remote_desc in the event
19389 (remote_close): Remove remote_desc from the event loop.
19390 (putpkt_binary): Rename to...
19391 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19392 (putpkt_binary): New as wrapper around putpkt_binary_1.
19393 (putpkt_notif): New.
19394 (prepare_resume_reply): In non-stop mode, don't change the
19396 * event-loop.c: New.
19397 * Makefile.in (OBJ): Add event-loop.o.
19398 (event-loop.o): New rule.
19400 * linux-low.h (pid_of): Moved here.
19402 (get_lwp_thread): Use lwpid_of.
19403 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19404 * linux-low.c (pid_of): Delete.
19405 (inferior_pid): Use lwpid_of.
19406 (linux_event_pipe): New.
19407 (target_is_async_p): New.
19409 (handle_extended_wait): Use lwpid_of.
19410 (add_lwp): Don't set lwpid field.
19411 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19412 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19413 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19414 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19415 first. Adjust to linux_wait_for_event interface changes. Use
19417 (linux_detach): Don't delete the main lwp here.
19418 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19419 (status_pending_p): Don't consider explicitly suspended lwps.
19420 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19421 pointer. Add OPTIONS argument. Change return type to int. Use
19422 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19423 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19424 pointer. Add status pointer argument. Return a pid instead of a
19425 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19426 changes. In non-stop mode, don't switch to a random thread.
19427 (linux_wait): Rename to...
19428 (linux_wait_1): ... this. Add target_options argument, and handle
19429 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19430 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19431 clean exit and signal exit code. Don't stop all threads in
19432 non-stop mode. In all-stop mode, only stop all threads when
19433 reporting a stop to GDB. Handle explicit thread stop requests.
19434 (async_file_flush, async_file_mark): New.
19436 (send_sigstop): Use lwpid_of.
19437 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19438 interface changes. In non-stop mode, don't switch to a random
19440 (linux_resume_one_lwp): Use lwpid_of.
19441 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19442 (linux_resume_one_thread): ... this. Handle resume_stop. In
19443 non-stop mode, don't look for pending flag in all threads.
19444 (resume_status_pending_p): Don't consider explicitly suspended
19446 (my_waitpid): Reimplement. Emulate __WALL.
19447 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19449 (sigchld_handler, linux_supports_non_stop, linux_async)
19450 (linux_start_non_stop): New.
19451 (linux_target_ops): Register linux_supports_non_stop, linux_async
19452 and linux_start_non_stop.
19453 (initialize_low): Install SIGCHLD handler.
19454 * thread-db.c (thread_db_create_event, find_one_thread)
19455 (thread_db_get_tls_address): Use lwpid_of.
19456 * win32-low.c (win32_detach): Adjust to use resume_kind.
19457 (win32_wait): Add `options' argument.
19458 * spu-low.c (spu_resume): Adjust to use resume_kind.
19459 (spu_wait): Add `options' argument.
19461 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19463 Decouple target code from remote protocol.
19465 * target.h (enum target_waitkind): New.
19466 (struct target_waitstatus): New.
19467 (struct target_ops) <wait>: Return an unsigned long. Take a
19468 target_waitstatus pointer instead of a char pointer.
19469 (mywait): Likewise.
19470 * target.c (mywait): Change prototype to return an unsigned long.
19471 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19472 * server.h (thread_from_wait, old_thread_from_wait): Delete
19474 (prepare_resume_reply): Change prototype to take a
19476 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19477 (last_status, last_ptid): New.
19478 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19479 pid instead of a signal.
19480 (attach_inferior): Remove "status" and "signal" parameters.
19482 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19484 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19485 (handle_v_requests, myresume): Remove "status" and "signal"
19486 parameters. Adjust.
19487 (handle_status): New.
19488 (main): Delete local `status'. Adjust.
19489 * remote-utils.c: Include target.h.
19490 (prepare_resume_reply): Change prototype to take a
19491 target_waitstatus. Adjust.
19493 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19495 * spu-low.c (spu_wait): Adjust.
19496 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19498 (win32_wait): Adjust.
19500 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19502 * target.h (struct thread_resume): Delete leave_stopped member.
19503 (struct target_ops): Add a `n' argument to the `resume' callback.
19504 * server.c (start_inferior): Adjust.
19505 (handle_v_cont, myresume): Adjust.
19506 * linux-low.c (check_removed_breakpoint): Adjust to resume
19507 interface change, and to removed leave_stopped field.
19508 (resume_ptr): Delete.
19509 (struct thread_resume_array): New.
19510 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19511 resume interface change.
19512 (linux_continue_one_thread, linux_queue_one_thread)
19513 (resume_status_pending_p): Check if the resume field is NULL
19514 instead of checking the leave_stopped member.
19515 (linux_resume): Adjust to the target resume interface change.
19516 * spu-low.c (spu_resume): Adjust to the target resume interface
19518 * win32-low.c (win32_detach, win32_resume): Ditto.
19520 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19522 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19524 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19526 (linux_continue_one_thread): Only preserve the stepping flag if
19527 there's a pending breakpoint.
19529 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19531 * server.c (main): After the inferior having exited, call
19532 remote_close before exiting gdbserver.
19534 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19536 Fix size of FPSCR in Power 7 processors.
19537 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19538 (PPC_FEATURE_HAS_DFP): New #define.
19539 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19542 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19544 * server.c (handle_query) Whitespace and formatting.
19546 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19548 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19549 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19550 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19551 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19552 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19553 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19554 Makefile.in, configure.ac: Fix whitespace throughout.
19555 * configure: Regenerate.
19557 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19559 * inferiors.c (find_inferior): Make it safe for the callback
19560 function to delete the currently iterated inferior.
19562 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19564 * Makefile.in (linuw_low_h): Move higher.
19565 (thread-db.o): Depend on $(linux_low_h).
19567 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19569 Rename "process" to "lwp" throughout.
19571 * linux-low.c (all_processes): Rename to...
19572 (all_lwps): ... this.
19573 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19574 (add_process): Rename to ...
19575 (add_lwp): ... this. Adjust.
19576 (linux_create_inferior): Adjust.
19577 (linux_attach_lwp): Adjust.
19578 (linux_attach): Adjust.
19579 (linux_kill_one_process): Rename to ...
19580 (linux_kill_one_lwp): ... this. Adjust.
19581 (linux_kill): Adjust.
19582 (linux_detach_one_process): Rename to ...
19583 (linux_detach_one_lwp): ... this. Adjust.
19584 (linux_detach): Adjust.
19585 (check_removed_breakpoint): Adjust.
19586 (status_pending_p): Adjust.
19587 (linux_wait_for_process): Rename to ...
19588 (linux_wait_for_lwp): ... this. Adjust.
19589 (linux_wait_for_event): Adjust.
19590 (send_sigstop): Adjust.
19591 (wait_for_sigstop): Adjust.
19592 (stop_all_processes): Rename to ...
19593 (stop_all_lwps): ... this.
19594 (linux_resume_one_process): Rename to ...
19595 (linux_resume_one_lwp): ... this. Adjust.
19596 (linux_set_resume_request, linux_continue_one_thread)
19597 (linux_queue_one_thread, resume_status_pending_p)
19598 (usr_store_inferior_registers, regsets_store_inferior_registers)
19599 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19601 * linux-low.h (get_process): Rename to ...
19602 (get_lwp): ... this. Adjust.
19603 (get_thread_process): Rename to ...
19604 (get_thread_lwp): ... this. Adjust.
19605 (get_process_thread): Rename to ...
19606 (get_lwp_thread): ... this. Adjust.
19607 (struct process_info): Rename to ...
19608 (struct lwp_info): ... this.
19609 (all_processes): Rename to ...
19610 (all_lwps): ... this.
19611 * proc-service.c (ps_lgetregs): Adjust.
19612 * thread-db.c (thread_db_create_event, find_one_thread)
19613 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19615 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19617 * server.c (handle_query): Handle "qAttached".
19619 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19621 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19622 GPLv3, update license URL.
19624 2009-03-01 Doug Evans <dje@google.com>
19626 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19627 (server_h): Add gdb_signals.h.
19628 (signals.o): Update.
19629 * server.h (target_signal_from_host,target_signal_to_host_p)
19630 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19632 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19634 * remote-utils.c (getpkt): Also generate remote-debug
19635 information if noack_mode is set.
19637 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19639 * server.c (handle_query): Report qXfer:siginfo:read and
19640 qXfer:siginfo:write as supported and handle them.
19641 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19642 * linux-low.c (linux_xfer_siginfo): New.
19643 (linux_target_ops): Set it.
19645 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19647 * server.c (gdbserver_usage): Mention --remote-debug.
19648 (main): Accept '--remote-debug' switch.
19650 2009-01-18 Doug Evans <dje@google.com>
19652 * regcache.c (new_register_cache): No need to check result of xcalloc.
19653 * server.c (handle_search_memory): Back out calls to xmalloc,
19654 result is checked and error is returned to user upon failure.
19655 (handle_query): Ditto. Add more checks for result of malloc.
19656 (handle_v_cont): Check result of malloc, report error back to
19658 (handle_v_run): Ditto. Call freeargv.
19659 * server.h (freeargv): Declare.
19660 * utils.c (freeargv): New fn.
19662 2009-01-15 Doug Evans <dje@google.com>
19664 * gdbreplay.c (perror_with_name): Make arg const char *.
19665 * server.h (target_signal_to_name): Make return type const char *.
19666 * thread-db.c (thread_db_err_str): Make return type const char *.
19667 * utils.c (perror_with_name): Make arg const char *.
19669 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19671 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19672 when handling a EXIT_PROCESS_DEBUG_EVENT.
19674 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19676 * gdbreplay.c (gdbreplay_version): Update copyright year.
19677 * server.c (gdbserver_version): Likewise.
19679 2009-01-05 Doug Evans <dje@google.com>
19681 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19682 (handle_extended_wait): Improve comment.
19684 2008-12-13 Doug Evans <dje@google.com>
19686 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19687 * server.h (ATTR_MALLOC): New macro.
19688 (xmalloc,xcalloc,xstrdup): Declare.
19689 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19690 * inferiors.c: Ditto.
19691 * linux-low.c: Ditto.
19692 * mem-break.c: Ditto.
19693 * regcache.c: Ditto.
19694 * remote-utils.c: Ditto.
19697 * win32-low.c: Ditto.
19699 2008-12-12 Doug Evans <dje@google.com>
19701 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19702 in debugging printf.
19704 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19706 2008-12-09 Doug Evans <dje@google.com>
19708 * linux-low.h (struct process_info): Delete member tid, unused.
19709 * thread-db.c (find_one_thread): Update.
19710 (maybe_attach_thread): Update.
19712 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19714 * target.h (struct target_ops): Add qxfer_osdata member.
19715 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19717 (linux_qxfer_osdata): New functions.
19718 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19720 * server.c (handle_query): Handle "qXfer:osdata:read:".
19721 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19722 (buffer_xml_printf): New functions.
19723 * server.h (struct buffer): New.
19724 (buffer_grow_str, buffer_grow_str0): New macros.
19725 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19726 (buffer_xml_printf): Declare.
19728 2008-11-24 Doug Evans <dje@google.com>
19730 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19732 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19734 * server.c (handle_v_run): Always use the supplied argument list.
19736 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19738 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19739 (xtensa_regmap_table): Add entry for scompare1.
19741 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19743 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19744 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19745 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19746 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19747 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19748 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19749 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19750 XML target descriptions.
19751 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19752 when inferior is running on an ISA 2.05 or later processor. Add
19753 special case to return offset for full 64-bit slot of FPSCR when
19756 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19758 * Makefile.in (SFILES, clean): Added sparc64 files.
19759 (reg-sparc64.o, reg-sparc64.c): New.
19760 * configure.srv (sparc*-*-linux*): New configuration.
19761 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19762 syscall arguments for SPARC.
19763 (regsets_store_inferior_registers): Likewise.
19764 * linux-sparc-low.c: New file.
19766 2008-10-21 Doug Evans <dje@google.com>
19768 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19769 (READLINE_DIR,READLINE_DEP): Delete.
19770 (INTERNAL_CFLAGS): Update.
19771 (LINTFLAGS): Update.
19773 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19775 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19776 whole argv from the last run, not just argv[0].
19778 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19780 * regcache.c (new_register_cache): Return NULL if the register
19781 cache size isn't known yet.
19782 (free_register_cache): Avoid dereferencing a NULL regcache.
19784 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19786 * configure.srv: Merge MIPS and MIPS64.
19788 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19790 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19792 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19794 * Makefile.in: Add required vsx dependencies.
19796 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19797 Declare init_registers_powerpc_vsx32l.
19798 Declare init_registers_powerpc_vsx64l.
19799 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19800 (ppc_arch_setup): Check for VSX in hwcap.
19801 (ppc_fill_vsxregset): New function.
19802 (ppc_store_vsxregset): New function.
19803 Add new VSX entry in regset_info target_regsets.
19805 * configure.srv: Add new VSX dependencies.
19807 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19809 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19810 (remote_open): Set or clear transport_is_reliable.
19811 (putpkt_binary): Don't expect acks in noack mode.
19812 (getpkt): Don't send ack/nac in noack mode.
19813 * server.c (handle_general_set): Handle QStartNoAckMode.
19814 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19816 (main): Reset noack_mode on every connection.
19817 * server.h (noack_mode): Declare.
19819 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19821 * Makefile.in (GDBREPLAY_OBS): New variable.
19822 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19824 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19825 Daniel Jacobowitz <dan@codesourcery.com>
19827 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19828 (usr_store_inferior_registers): Likewise.
19829 (regsets_store_inferior_registers): Likewise.
19831 2008-07-31 Rolf Jansen <rj@surtec.com>
19832 Pedro Alves <pedro@codesourcery.com>
19834 * configure.ac: Check for memmem declaration.
19835 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19836 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19837 (disable_packet_qfThreadInfo): Unconditionally compile.
19838 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19839 * configure, config.in: Regenerate.
19841 2008-07-28 Doug Kwan <dougkwan@google.com>
19843 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19844 (linux_write_memory): Remove declaration of errno.
19846 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19848 * linux-low.c (handle_extended_wait): Do not use "status"
19849 variable uninitialized.
19851 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19853 * server.c (handle_v_attach): Inhibit reporting dll changes.
19855 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19857 * remote-utils.c (prepare_resume_reply): If requested, don't
19858 output "thread:TID" in the T stop reply.
19860 * server.c (disable_packet_vCont, disable_packet_Tthread)
19861 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19862 (handle_query): If requested, disable support for qC, qfThreadInfo
19864 (handle_v_requests): If requested, disable support for vCont.
19865 (gdbserver_show_disableable): New.
19866 (main): Handle --disable-packet and --disable-packet=LIST.
19868 * server.h (disable_packet_vCont, disable_packet_Tthread)
19869 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19871 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19873 * server.c (gdbserver_usage): Mention --version.
19875 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19877 * Makefile.in (gdbreplay.o): New rule.
19879 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19881 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19882 message, not gdbserver.
19884 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19885 Nathan Sidwell <nathan@codesourcery.com>
19886 Joseph Myers <joseph@codesourcery.com>
19888 * acinclude.m4: Include ../../config/acx.m4.
19889 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19890 * configure, config.in: Regenerate.
19891 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19892 * server.c (gdbserver_version): Print PKGVERSION.
19893 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19894 (main): Adjust gdbserver_usage calls.
19895 * gdbreplay.c (version, host_name): Add declarations.
19896 (gdbreplay_version, gdbreplay_usage): New.
19897 (main): Accept --version and --help options.
19899 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19901 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19902 (arm_breakpoint_at): Handle Thumb.
19903 (the_low_target): Add comment.
19905 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19907 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19909 2008-05-09 Doug Evans <dje@google.com>
19911 * server.h (decode_search_memory_packet): Declare.
19912 * remote-utils.c (decode_search_memory_packet): New fn.
19913 * server.c (handle_search_memory_1): New fn.
19914 (handle_search_memory): New fn.
19915 (handle_query): Process qSearch:memory packets.
19917 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19919 * regcache.c (registers_length): Remove.
19920 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19921 full register packet.
19922 * regcache.h (registers_length): Remove prototype.
19923 * server.h (PBUFSIZ): Define to 16384.
19925 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19927 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19928 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19929 powerpc-64l.o, and powerpc-altivec64l.o.
19930 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19931 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19932 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19933 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19934 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19937 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19938 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19939 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19940 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19941 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19942 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19943 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19944 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19945 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19946 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19949 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19950 (init_registers_powerpc_32l): ... this new prototype.
19951 (init_registers_powerpc_32): Remove, replace by ...
19952 (init_registers_powerpc_altivec32l): ... this new prototype.
19953 (init_registers_powerpc_e500): Remove, replace by ...
19954 (init_registers_powerpc_e500l): ... this new prototype.
19955 (init_registers_ppc64): Remove, replace by ...
19956 (init_registers_powerpc_64l): ... this new prototype.
19957 (init_registers_powerpc_64): Remove, replace by ...
19958 (init_registers_powerpc_altivec64l): ... this new prototype.
19959 (ppc_num_regs): Set to 73.
19960 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19961 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19962 (ppc_cannot_store_register): Handle orig_r3 and trap.
19963 (ppc_arch_setup): Update init_registers_... calls.
19964 (ppc_fill_gregset): Handle orig_r3 and trap.
19966 * inferiors.c (clear_inferiors): Reset current_inferior.
19968 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19970 * acinclude.m4: Add override.m4.
19971 * configure: Regenerate.
19973 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19975 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19976 initial call to init_register_ppc64.
19978 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19980 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19981 single powerpc*-*-linux* case.
19982 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19984 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19986 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19987 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19989 * linux-ppc-low.c: Include <elf.h>.
19990 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19991 (ppc_hwcap): New global variable.
19992 (ppc_regmap): Remove __SPE__ #ifdef sections.
19993 (ppc_regmap_e500): New global variable.
19994 (ppc_cannot_store_register): Update __SPE__ special case.
19995 (ppc_get_hwcap): New function.
19996 (ppc_arch_setup): Use it to determine whether inferior supports
19997 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19998 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19999 Do not access registers if target does not support AltiVec.
20000 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20001 Do not access registers if target does not support SPE.
20002 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20004 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20006 * linux-low.c (disabled_regsets, num_regsets): New.
20007 (use_regsets_p): Delete.
20008 (linux_wait_for_process): Clear disabled_regsets.
20009 (regsets_fetch_inferior_registers): Check and set it.
20010 (regsets_store_inferior_registers): Likewise.
20011 (linux_fetch_registers, linux_store_registers): Do not use
20013 (initialize_low): Allocate disabled_regsets.
20015 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20017 * Makefile.in (LIBOBJS): New.
20018 (OBS): Use LIBOBJS.
20019 (memmem.o): New rule.
20020 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20021 * configure: Regenerated.
20023 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20025 * server.c (handle_query): Never return "unsupported" for
20026 qXfer:features:read queries.
20028 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20030 * server.c (get_features_xml): Fix inverted condition.
20031 (handle_query): Always support qXfer:feature:read.
20033 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20035 * server.c (wrapper_argv): New.
20036 (start_inferior): Handle wrapper_argv. If set, expect an extra
20038 (gdbserver_usage): Document --wrapper.
20039 (main): Parse --wrapper.
20041 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20043 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20044 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20045 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20046 (ppc_set_pc): Likewise.
20047 (ppc_arch_setup): New function.
20048 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20049 of collect_register.
20050 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20052 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20054 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20055 instead of linux-ppc64-low.o.
20056 * linux-ppc64-low.c: Remove file.
20057 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20058 (linux-ppc64-low.o): Remove rule.
20060 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20061 (init_registers_powerpc_64): Likewise.
20062 (ppc_regmap): Conditionally define depending on __powerpc64__.
20063 (ppc_cannot_store_register): Do not special-case "fpscr" when
20064 compiled on __powerpc64__.
20065 (ppc_collect_ptrace_register): New function.
20066 (ppc_supply_ptrace_register): New function.
20067 (ppc_breakpoint): Change type to "unsigned int".
20068 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20069 (the_low_target): Conditionally provide initializers for the
20070 arch_setup member depending on __powerpc64__. Install
20071 collect_ptrace_register and supply_ptrace_register members.
20073 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20075 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20076 * server.c (gdbserver_xmltarget): Define.
20077 (get_features_xml): Use it to replace "target.xml" and arch_string.
20079 * configure.srv: Remove srv_xmltarget. Add XML files that were
20080 mentioned there to srv_xmlfiles instead. Remove conditional tests
20081 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20082 srv_xmlfiles and srv_regobj to include all possible choices.
20083 * configure.ac (srv_xmltarget): Remove.
20084 (srv_xmlfiles): Do not add "target.xml".
20085 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20086 checks for supplementary target information.
20087 * configure: Regenerate.
20088 * Makefile.in (XML_TARGET): Remove.
20089 (target.xml): Remove rule.
20090 (clean): Do not clean up target.xml.
20091 (.PRECIOUS): Do not mention target.xml.
20093 * target.h (struct target_ops): Remove arch_string member.
20094 * linux-low.c (linux_arch_string): Remove.
20095 (linux_target_ops): Remove arch_string initializer.
20096 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20097 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20098 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20099 * spu-low.c (spu_arch_string): Remove.
20100 (spu_target_ops): Remove arch_string initializer.
20101 * win32-low.c (win32_arch_string): Remove.
20102 (win32_target_ops): Remove arch_string initializer.
20103 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20104 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20105 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20107 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20109 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20110 by collect_ptrace_register and supply_ptrace_register hooks.
20111 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20112 instead of checking for the_low_target.left_pad_xfer.
20113 (usr_store_inferior_registers): Use collect_ptrace_register callback
20114 instead of checking for the_low_target.left_pad_xfer.
20116 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20117 (s390_supply_ptrace_register): Likewise.
20118 (s390_fill_gregset): Call s390_collect_ptrace_register.
20119 (the_low_target): Update.
20121 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20122 (ppc_supply_ptrace_register): Likewise.
20123 (the_low_target): Update.
20125 * linux-i386-low.c (the_low_target): Update.
20126 * linux-x86-64-low.c (the_low_target): Update.
20128 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20130 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20131 reg-s390.o and reg-s390x.o.
20133 * linux-low.c (new_inferior): New global variable.
20134 (linux_create_inferior, linux_attach): Set it.
20135 (linux_wait_for_process): Call the_low_target.arch_setup after the
20136 target has stopped for the first time.
20137 (initialize_low): Do not call the_low_target.arch_setup.
20139 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20140 (s390_set_pc): Likewise.
20141 (s390_arch_setup): New function.
20142 (the_low_target): Use s390_arch_setup as arch_setup routine.
20144 * regcache.c (realloc_register_cache): New function.
20145 (set_register_cache): Call it for each existing regcache.
20147 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20149 * server.h (init_registers): Remove prototype.
20151 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20152 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20153 instead of init_registers ().
20154 * linux-arm-low.c (init_registers_arm): Add prototype.
20155 (init_registers_arm_with_iwmmxt): Likewise.
20156 (the_low_target): Add initializer for arch_setup field.
20157 * linux-cris-low.c (init_registers_cris): Add prototype.
20158 (the_low_target): Add initializer for arch_setup field.
20159 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20160 (the_low_target): Add initializer for arch_setup field.
20161 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20162 (the_low_target): Add initializer for arch_setup field.
20163 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20164 (the_low_target): Add initializer for arch_setup field.
20165 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20169 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20170 (init_registers_mips64_linux): Likewise.
20171 (the_low_target): Add initializer for arch_setup field.
20172 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20173 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20174 (the_low_target): Add initializer for arch_setup field.
20175 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20176 (init_registers_powerpc_64): Likewise.
20177 (the_low_target): Add initializer for arch_setup field.
20178 * linux-s390-low.c (init_registers_s390): Add prototype.
20179 (init_registers_s390x): Likewise.
20180 (the_low_target): Add initializer for arch_setup field.
20181 * linux-sh-low.c (init_registers_sh): Add prototype.
20182 (the_low_target): Add initializer for arch_setup field.
20183 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20184 (the_low_target): Add initializer for arch_setup field.
20185 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20186 (the_low_target): Add initializer for arch_setup field.
20188 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20189 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20190 instead of init_registers ().
20191 * win32-arm-low.c (init_registers_arm): Add prototype.
20192 (the_low_target): Add initializer for arch_setup field.
20193 * win32-i386-low.c (init_registers_i386): Add prototype.
20194 (the_low_target): Add initializer for arch_setup field.
20196 * spu-low.c (init_registers_spu): Add prototype.
20197 (initialize_low): Call initialie_registers_spu () instead of
20198 initialize_registers ().
20200 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20202 * server.c (handle_v_requests): When handling the vRun and vAttach
20203 packets, if already debugging a process, don't kill it. Return an
20206 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20208 * server.c (handle_query): Correct length check.
20210 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20212 * win32-low.c (do_initial_child_stuff): Add process handle
20213 parameter. Set current_process_handle and current_process_id from the
20214 parameters. Clear globals.
20215 (win32_create_inferior): Don't set current_process_handle and
20216 current_process_id here. Instead pass them on the call to
20217 do_initial_child_stuff.
20218 (win32_attach): Likewise.
20219 (win32_clear_inferiors): New.
20220 (win32_kill): Don't close the current process handle or the
20221 current thread handle here. Instead call win32_clear_inferiors.
20222 (win32_detach): Don't open a new handle to the process. Call
20223 win32_clear_inferiors.
20224 (win32_join): Don't rely on current_process_handle; open a new
20225 handle using the process id.
20226 (win32_wait): Call win32_clear_inferiors when the inferior process
20229 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20231 * server.c (monitor_show_help): Add "exit".
20233 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20235 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20236 (clean): Add reg-xtensa.c.
20237 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20238 * configure.srv (xtensa*-*-linux*) New target.
20239 * linux-xtensa-low.c: New.
20240 * xtensa-xtregs.c: New.
20242 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20244 * hostio.c: Don't include errno.h.
20245 (errno_to_fileio_errno): Move to hostio-errno.
20246 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20247 error number outputting to the target->hostio_last_error callback.
20248 (hostio_packet_error): Use FILEIO_EINVAL directly.
20249 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20250 calls to hostio_error.
20251 * hostio-errno.c: New.
20252 * server.h (hostio_last_error_from_errno): Declare.
20253 * target.h (target_ops): Add hostio_last_error member.
20254 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20255 as hostio_last_error handler.
20256 * spu-low.c (spu_target_ops): Likewise.
20257 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20258 (wince_hostio_last_error): New functions.
20259 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20260 as hostio_last_error handler.
20261 (win32_target_ops) [!_WIN32_WCE]: Register
20262 hostio_last_error_from_errno as hostio_last_error handler.
20263 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20264 (hostio-errno.o): New rule.
20265 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20266 * configure.srv (srv_hostio_err_objs): New variable. Default to
20268 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20269 * configure: Regenerate.
20271 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20273 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20274 (linux_kill, linux_detach): Clean up the process list.
20275 * remote-utils.c (remote_open): Improve port number parsing.
20276 (putpkt_binary, input_interrupt): Only send interrupts if the target
20278 * server.c (extended_protocol): Make static.
20279 (attached): Define earlier.
20280 (exit_requested, response_needed, program_argv): New variables.
20281 (target_running): New.
20282 (start_inferior): Clear attached here.
20283 (attach_inferior): Set attached here.
20284 (require_running): Define.
20285 (handle_query): Use require_running and target_running. Implement
20287 (handle_v_attach, handle_v_run): New.
20288 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20289 (gdbserver_usage): Update.
20290 (main): Redo argument parsing. Handle --debug and --multi. Handle
20291 --attach along with other options or after the port. Save
20292 program_argv. Support no initial program. Resynchronize
20293 communication with GDB after an error. Handle "monitor exit".
20294 Use require_running and target_running. Always allow the extended
20295 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20296 restart in extended mode.
20297 * README: Refer to the GDB manual. Update --attach usage.
20299 2007-12-20 Andreas Schwab <schwab@suse.de>
20301 * linux-low.c (STACK_SIZE): Define.
20302 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20303 (linux_test_for_tracefork): Likewise.
20305 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20307 * linux-low.c (linux_wait_for_event): Update messages. Do not
20308 reinsert auto-delete breakpoints.
20309 * mem-break.c (struct breakpoint): Change return type of handler to
20311 (set_breakpoint_at): Update handler type.
20312 (reinsert_breakpoint_handler): Return 1 instead of calling
20314 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20316 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20317 * mem-break.h (set_breakpoint_at): Update handler type.
20318 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20319 * win32-low.c (auto_delete_breakpoint): New.
20320 (get_child_debug_event): Use it.
20322 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20324 * configure.ac: Check for pread and pwrite.
20325 * hostio.c (handle_pread): Fall back to lseek and read.
20326 (handle_pwrite): Fall back to lseek and write.
20327 * config.in, configure: Regenerated.
20329 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20331 * server.c (myresume): Add own_buf argument.
20332 (main): Update calls.
20334 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20336 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20337 * remote-utils.c (remote_open): Do not call disable_async_io.
20338 (block_async_io): Delete.
20339 (unblock_async_io): Make static.
20340 (initialize_async_io): New.
20341 * server.c (handle_v_cont): Handle async I/O here.
20342 (myresume): Likewise. Move other common resume tasks here...
20343 (main): ... from here. Call initialize_async_io. Disable async
20344 I/O before the main loop.
20345 * server.h (initialize_async_io): Declare.
20346 (block_async_io, unblock_async_io): Delete prototypes.
20347 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20349 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20351 * remote-utils.c (readchar): Allow binary data in received messages.
20353 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20355 * win32-low.c (attaching): New global.
20356 (win32_create_inferior): Clear the `attaching' global.
20357 (win32_attach): Set the `attaching' global.
20358 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20359 attaching. Only set a breakpoint at the entry point if not
20362 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20364 * server.c (main): Don't report dll events on the initial
20365 connection on attaches.
20367 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20369 * server.c (main): Relax numerical bases supported for the pid of
20370 the --attach command line argument.
20372 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20374 * win32-low.c (win32_attach): Call OpenProcess before
20375 DebugActiveProcess, not after. Add last error output to error
20378 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20380 * win32-low.c (win32_get_thread_context)
20381 (win32_set_thread_context): New functions.
20382 (thread_rec): Use win32_get_thread_context.
20383 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20384 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20387 2007-12-03 Leo Zayas
20388 Pedro Alves <pedro_alves@portugalmail.pt>
20390 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20392 (child_add_thread): Minor cleanup.
20393 (child_continue): Resume artificially suspended threads before
20394 calling ContinueDebugEvent.
20395 (suspend_one_thread): New.
20396 (fake_breakpoint_event): New.
20397 (get_child_debug_event): Change return type to int. Check here if
20398 gdb sent an interrupt request. If a soft interrupt was requested,
20399 fake a breakpoint event. Return 0 if there is no event to handle,
20401 (win32_wait): Don't check here if gdb sent an interrupt request.
20402 Ensure there is a valid event to handle.
20403 (win32_request_interrupt): Add soft interruption method as last
20406 2007-12-03 Leo Zayas
20407 Pedro Alves <pedro_alves@portugalmail.pt>
20409 * win32-low.h (win32_thread_info): Add descriptions to the
20410 structure members. Replace `suspend_count' counter by a
20412 * win32-low.c (thread_rec): Update condition of when to get the
20413 context from the inferior. Rely on ContextFlags being set if it
20414 has already been retrieved. Only suspend the inferior thread if
20415 we haven't already. Warn if that fails.
20416 (continue_one_thread): s/suspend_count/suspended/. Only call
20417 ResumeThread once. Warn if that fails.
20419 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20421 * win32-low.c (win32_wait): Don't read from the inferior when it
20422 has already exited.
20424 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20426 * Makefile.in (win32_low_h): New variable.
20427 (win32-low.o): Add dependency on $(win32_low_h).
20428 (win32-arm-low.o, win32-i386-low.o): New rules.
20430 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20432 * hostio.c: Correct copyright year.
20434 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20436 * Makefile.in (OBS): Add hostio.o.
20437 (hostio.o): New rule.
20438 * server.h (handle_vFile): Declare.
20439 * hostio.c: New file.
20440 * server.c (handle_v_requests): Take packet_len and new_packet_len
20441 for binary packets. Call handle_vFile.
20442 (main): Update call to handle_v_requests.
20444 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20446 * linux-low.c: Include <sched.h>.
20448 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20450 * linux-low.c (linux_tracefork_grandchild): New.
20451 (linux_tracefork_child): Use clone.
20452 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20454 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20456 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20458 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20460 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20462 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20464 * inferiors.c (change_inferior_id): Delete.
20465 (add_pid_to_list, pull_pid_from_list): New.
20466 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20467 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20468 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20469 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20470 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20471 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20472 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20473 (using_threads): Always set to 1.
20474 (handle_extended_wait): New.
20475 (add_process): Do not set TID.
20476 (linux_create_inferior): Set must_set_ptrace_flags.
20477 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20478 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20479 (linux_thread_alive): Rename TID argument to LWPID.
20480 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20481 (linux_wait_for_event): Do not use TID or check using_threads. Update
20482 call to dead_thread_notify. Call handle_extended_wait.
20483 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20484 (send_sigstop): Delete sigstop_sent.
20485 (wait_for_sigstop): Avoid TID.
20486 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20487 (linux_test_for_tracefork): New.
20488 (linux_lookup_signals): Use thread_db_active and
20489 linux_supports_tracefork_flag.
20490 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20491 * linux-low.h (get_process_thread): Avoid TID.
20492 (struct process_ifo): Move thread_known and tid to the end. Remove
20494 (linux_attach_lwp, thread_db_init): Update prototypes.
20495 * server.h (change_inferior_id): Delete prototype.
20496 (add_pid_to_list, pull_pid_from_list): New prototypes.
20497 * thread-db.c (thread_db_use_events): New.
20498 (find_first_thread): Rename to...
20499 (find_one_thread): ...this. Update callers and messages. Do not
20500 call fatal. Check thread_db_use_events. Do not call
20501 change_inferior_id or new_thread_notify.
20502 (maybe_attach_thread): Update. Do not call new_thread_notify.
20503 (thread_db_init): Set thread_db_use_events. Check use_events.
20504 * utils.c (fatal, warning): Correct message prefix.
20506 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20508 * Makefile.in (clean): Remove new files.
20509 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20510 (powerpc-64.o, powerpc-64.c): New rules.
20511 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20512 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20514 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20516 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20517 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20518 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20519 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20520 (target_regsets): Add AltiVec and SPE register sets.
20521 * configure.ac: Check for AltiVec and SPE.
20522 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20523 (ppc_fill_vrregset, ppc_store_vrregset): New.
20524 (target_regsets): Add AltiVec register set.
20525 * configure: Regenerated.
20527 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20529 * linux-low.c (O_LARGEFILE): Define.
20530 (linux_read_memory): Use /proc/PID/mem.
20531 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20532 * configure, config.in: Regenerated.
20534 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20536 * linux-low.c (linux_wait_for_event): Do not pass signals while
20539 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20541 * win32-low.c (create_process): New.
20542 (win32_create_inferior): Use create_process instead of
20543 CreateProcess. If create_process failed retry appending an ".exe"
20544 suffix. Store the GetLastError result immediatelly after
20545 create_process calls and use it on the call to error.
20547 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20549 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20551 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20553 * configure.ac: Switch license to GPLv3.
20555 2007-08-01 Michael Snyder <msnyder@access-company.com>
20557 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20559 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20561 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20563 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20564 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20565 CloseToolhelp32Snapshot.
20566 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20567 CloseToolhelp32Snapshot.
20569 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20571 * server.c (main): Check for inferior exit before main loop.
20573 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20575 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20576 instead of on tmp_desc.
20578 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20579 Daniel Jacobowitz <dan@codesourcery.com>
20581 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20582 (add_thread): Minor cleanups.
20583 (clear_inferiors): Move lower in the file. Clear the DLL
20585 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20586 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20587 (xml_escape_text): New.
20588 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20590 (handle_v_cont): Report errors.
20591 (gdbserver_version): Update.
20592 (main): Correct size of own_buf. Do not report initial DLL events.
20593 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20594 (unloaded_dll, xml_escape_text): New.
20595 * win32-low.c (enum target_waitkind): Update comments.
20596 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20597 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20598 (win32_EnumProcessModules, win32_GetModuleInformation)
20599 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20600 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20601 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20602 (win32_Module32First, win32_Module32Next, load_toolhelp)
20603 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20604 (get_child_debug_event): Handle DLL events.
20605 (win32_wait): Likewise.
20607 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20609 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20610 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20612 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20614 * win32-low.c (handle_output_debug_string): Ignore event if not
20617 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20619 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20621 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20623 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20625 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20627 * inferiors.c (change_inferior_id): Add comment.
20628 * linux-low.c (check_removed_breakpoint): Add an early
20629 prototype. Improve debug output.
20630 (linux_attach): Doc update.
20631 (linux_detach_one_process, linux_detach): Clean up before releasing
20633 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20634 * linux-low.h (struct process_info): Doc improvement.
20635 * mem-break.c (delete_all_breakpoints): New.
20636 * mem-break.h (delete_all_breakpoints): New prototype.
20637 * thread-db.c (find_first_thread): New.
20638 (thread_db_create_event): Call it instead of
20639 thread_db_find_new_threads. Clean up unused variables.
20640 (maybe_attach_thread): Remove first thread handling.
20641 (thread_db_find_new_threads): Use find_first_thread.
20642 (thread_db_get_tls_address): Likewise.
20644 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20646 * thread-db.c (thread_db_find_new_threads): Add prototype.
20647 (thread_db_create_event): Check for the main thread before adding
20649 (maybe_attach_thread): Only enable event reporting if TID == 0.
20650 (thread_db_get_tls_address): Check for new threads.
20652 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20654 * linux-low.c (linux_create_inferior): Try execv before execvp.
20655 * spu-low.c (spu_create_inferior): Likewise.
20657 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20659 * linux-low.c (linux_create_inferior): Change execv to execvp.
20660 * spu-low.c (spu_create_inferior): Likewies.
20662 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20664 * Makefile.in (clean): Clean new files instead of deleted ones.
20665 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20666 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20668 * configure.srv: Specify XML files and new regformats for MIPS and
20670 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20671 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20672 an entry for the restart register.
20673 (mips_cannot_fetch_register, mips_cannot_store_register)
20674 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20675 register names to match the XML descriptions.
20676 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20677 restart register instead of $0.
20679 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20680 Markus Deuling <deuling@de.ibm.com>
20682 * remote-utils.c (decode_xfer_write): New function.
20683 * server.h (decode_xfer_write): Add prototype.
20684 * server.c (handle_query): Add PACKET_LEN argument. Support
20685 qXfer:spu:read and qXfer:spu:write packets.
20686 (main): Pass packet_len to handle_query.
20687 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20688 * target.h (target_ops): Add qxfer_spu.
20690 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20692 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20693 accessing non-seekable spufs files.
20695 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20697 * server.c (handle_query): Add reply for qC packet.
20699 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20700 Leo Zayas <lerele@champenstudios@com>
20702 * server.h (check_remote_input_interrupt_request): New function.
20703 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20704 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20705 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20706 (check_remote_input_interrupt_request): New function.
20707 * server.h (check_remote_input_interrupt_request): Declare.
20708 * win32-low.c (winapi_DebugBreakProcess,
20709 winapi_GenerateConsoleCtrlEvent): New typedefs.
20710 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20712 (win32_wait): Check for remote interrupt request
20713 with check_remote_input_interrupt_request.
20714 (win32_request_interrupt): New function.
20715 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20717 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20719 * win32-low.c (debug_registers_changed,
20720 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20721 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20722 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20723 (thread_rec): Get context using the low target.
20724 (child_add_thread): Call thread_added on the low target,
20725 which does the same thing.
20727 (do_initial_child_stuff): Remove debug registers references.
20728 Set context using the low target. Resume threads after
20729 setting the contexts.
20730 (child_continue): Remove dead variable. Remove debug
20731 registers references.
20732 (child_fetch_inferior_registers): Go through the low target.
20733 (do_child_store_inferior_registers): Remove.
20734 (child_store_inferior_registers): Go through the low target.
20735 (win32_resume): Remove debug registers references.
20736 Set context using the low target.
20737 (handle_exception): Change return type to void. Don't record
20738 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20739 first chance exception.
20740 (get_child_debug_event): Change return type to void. Remove
20741 goto loop. Always return after waiting for debug event.
20742 (win32_wait): Convert to switch statement. Handle spurious
20745 * win32-i386-low.c (debug_registers_changed,
20746 debug_registers_used): New.
20747 (initial_stuff): Rename to ...
20748 (i386_initial_stuff): ... this. Clear debug registers
20750 (store_debug_registers): Delete.
20751 (i386_get_thread_context): New.
20752 (load_debug_registers): Delete.
20753 (i386_set_thread_context): New.
20754 (i386_thread_added): New.
20755 (single_step): Rename to ...
20756 (i386_single_step): ... this.
20757 (do_fetch_inferior_registers): Rename to ...
20758 (i386_fetch_inferior_register): ... this.
20759 (i386_store_inferior_register): New.
20760 (the_low_target): Adapt to new interface.
20762 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20763 (arm_get_thread_context): New.
20764 (arm_set_thread_context): New.
20766 (do_fetch_inferior_registers): Rename to ...
20767 (arm_fetch_inferior_register): ... this.
20768 (arm_store_inferior_register): New.
20769 (arm_wince_breakpoint): Reimplement as unsigned long.
20770 (arm_wince_breakpoint_len): Define.
20771 (the_low_target): Adapt to new interface.
20773 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20774 load_debug_registers. Add get_thread_context, set_thread_context,
20775 thread_added and store_inferior_register. Rename
20776 fetch_inferior_registers to fetch_inferior_register.
20777 (regptr): Remove declaration.
20779 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20781 * linux-low.c (linux_detach): Change return type to int. Return 0.
20782 * spu-low.c (spu_detach): Likewise.
20784 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20786 * target.h (target_ops): Change return type of detach to int.
20788 (join_inferior): New.
20789 * server.c (main): Don't skip detach support on mingw32.
20790 If the inferior doesn't support detaching return error.
20791 Call join_inferior instead of using waitpid.
20792 * linux-low.c (linux_join): New.
20793 (linux_target_op): Add linux_join.
20794 * spu-low.c (spu_join): New.
20795 (spu_target_ops): Add spu_join.
20796 * win32-low.c (win32_detach): Adapt to new interface.
20797 Reopen current_process_handle before detaching. Issue a child
20798 resume before detaching.
20800 (win32_target_op): Add win32_join.
20802 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20804 * win32-low.c (win32-attach): Fix return value.
20805 * target.h (target_ops): Describe ATTACH return values.
20807 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20809 * win32-low.c (GETPROCADDRESS): Define.
20810 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20811 (winapi_DebugSetProcessKillOnExit): Likewise.
20812 (win32_create_inferior): Force usage of ansi CreateProcessA.
20813 (win32_attach): Use GETPROCADDRESS.
20814 (win32_detach): Likewise.
20816 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20818 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20820 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20822 * win32-low.c: Commit leftover changes from 2007-03-29.
20824 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20826 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20827 fields short instead of int. Add explicit padding.
20828 (i387_cache_to_fsave): Remove unnecessary casts.
20829 (i387_fsave_to_cache): Doc fix.
20830 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20832 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20834 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20835 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20837 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20839 * configure.srv (arm*-*-mingw32ce*): Move near the other
20842 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20844 * configure.ac: Add errno checking.
20845 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20846 sys/file.h and malloc.h.
20847 (AC_CHECK_DECLS): Add perror.
20848 (srv_mingwce): Handle.
20849 * configure.srv (i[34567]86-*-cygwin*): Add
20850 win32-i386-low.o to srv_tgtobj.
20851 (i[34567]86-*-mingw*): Likewise.
20852 (arm*-*-mingw32ce*): Add case.
20853 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20854 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20855 [__MINGW32CE__] (strerror): New function.
20856 [__MINGW32CE__] (errno): Define to GetLastError.
20857 [__MINGW32CE__] (COUNTOF): New macro.
20858 (remote_open): Remove extra close call.
20859 * mem-break.c (delete_breakpoint_at): New function.
20860 * mem-break.h (delete_breakpoint_at): Declare.
20861 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20862 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20863 [USE_WIN32API] (read, write): Add char* casts.
20864 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20865 * server.h: Include wincecompat.h on Windows CE.
20866 [HAVE_ERRNO_H]: Check.
20867 (perror): Declare if not declared.
20868 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20869 (perror_with_name): Remove errno declaration.
20870 * wincecompat.h: New.
20871 * wincecompat.c: New.
20872 * win32-low.h: New.
20873 * win32-arm-low.c: New.
20874 * win32-i386-low.c: New.
20875 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20876 (OUTMSG2): Make it safe.
20878 (COUNTOF): New macro.
20879 (NUM_REGS): Get it from the low target.
20880 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20881 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20882 (thread_rec): Let low target handle debug registers.
20883 (child_add_thread): Likewise.
20884 (child_init_thread_list): Likewise.
20885 (continue_one_thread): Likewise.
20887 (do_child_fetch_inferior_registers): Move to ...
20888 * win32-i386-low.c: ... here, and rename to ...
20889 (do_fetch_inferior_registers): ... this.
20890 * win32-low.c (child_fetch_inferior_registers):
20891 Go through the low target.
20892 (do_child_store_inferior_registers): Use regptr.
20893 (strwinerror): New function.
20894 (win32_create_inferior): Handle Windows CE.
20895 Use strwinerror instead of strerror on Windows error
20896 codes. Add program to the error output.
20897 Don't close the main thread handle on Windows CE.
20898 (win32_attach): Use coredll.dll on Windows CE.
20899 (win32_kill): Close current process and current
20901 (win32_detach): Use coredll.dll on Windows CE.
20902 (win32_resume): Let low target handle debug registers, and
20904 (handle_exception): Add/Remove initial breakpoint. Avoid
20905 non-existant WSTOPSIG on Windows CE.
20906 (win32_read_inferior_memory): Cast to remove warning.
20907 (win32_arch_string): Go through the low target.
20908 (initialize_low): Call set_breakpoint_data with the low
20909 target's breakpoint.
20910 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20911 FOP_REGNUM, mappings): Move to ...
20912 * win32-i386-low.c: ... here.
20913 * win32-low.c (win32_thread_info): Move to ...
20914 * win32-low.h: ... here.
20915 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20916 win32-arm-low.c and wincecompat.c.
20917 (all:): Add $EXEEXT.
20918 (install-only:): Likewise.
20919 (gdbserver:): Likewise.
20920 (gdbreplay:): Likewise.
20921 * config.in: Regenerate.
20922 * configure: Regenerate.
20924 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20926 * win32-low.c: Rename typedef thread_info to
20927 win32_thread_info throughout.
20929 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20931 * win32-i386-low.c: Rename to ...
20932 * win32-low.c: ... this.
20933 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20934 * Makefile.in: Likewise.
20936 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20938 * remote-utils.c (monitor_output): Constify msg parameter.
20939 * server.h (monitor_output): Likewise.
20940 * win32-i386-low.c (handle_output_debug_string): New.
20941 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20942 handle_output_debug_string.
20943 (get_child_debug_event): Likewise.
20945 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20947 * server.c (main): Correct strtoul check.
20949 2007-03-27 Jon Ringle <jon@ringle.org>
20951 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20953 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20955 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20957 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20959 * terminal.h: Check HAVE_SGTTY_H.
20961 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20963 * remote-utils.c (remote_open): Print out the assigned port number.
20965 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20967 * remote-utils.c (monitor_output): New function.
20968 * server.c (debug_threads): Define here.
20969 (monitor_show_help): New function.
20970 (handle_query): Handle qRcmd.
20971 (main): Do not handle 'd' packet.
20972 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20973 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20976 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20978 * Makefile.in (EXEEXT): New.
20979 (clean): Use $(EXEEXT).
20981 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20983 * target.h (target_ops): Rename send_signal to request_interrupt,
20984 and remove enum target_signal parameter.
20985 * linux-low.c (linux_request_interrupt): Rename from
20986 linux_send_signal, and always send SIGINT.
20987 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20988 and always send SIGINT.
20989 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20991 (input_interrupt): Likewise.
20993 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20995 * server.c (get_features_xml): Check if target implemented
20997 * win32-i386-low.c (win32_arch_string): New.
20998 (win32_target_ops): Add win32_arch_string as arch_string member.
21000 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21002 * spu-low.c (spu_arch_string): New.
21003 (spu_target_ops): Add spu_arch_string.
21005 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21007 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21008 * configure.ac: Do not check for terminal.h.
21009 * configure, config.in: Regenerated.
21011 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21013 * Makefile.in (OBS): Add $(XML_BUILTIN).
21014 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21016 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21017 (arm-with-iwmmxt.c): New.
21018 * config.in, configure: Regenerate.
21019 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21020 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21021 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21022 (arm*-*-linux*): Add iWMMXt and regset support.
21023 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21024 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21025 (arm_store_wmmxregset, target_regsets): New.
21026 * server.c (get_features_xml): Take annex argument. Check builtin
21028 (handle_query): Handle multiple annexes.
21030 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21032 * remote-utils.c [USE_WIN32API] (read, write): Define.
21033 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21036 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21038 * linux-i386-low.c (the_low_target): Set arch_string.
21039 * linux-x86-64-low.c (the_low_target): Likewise.
21040 * linux-low.c (linux_arch_string): New.
21041 (linux_target_ops): Add it.
21042 * linux-low.h (struct linux_target_ops): Add arch_string.
21043 * server.c (write_qxfer_response): Use const void * for DATA.
21044 (get_features_xml): New.
21045 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21046 * target.h (struct target_ops): Add arch_string method.
21048 2007-01-03 Denis Pilat <denis.pilat@st.com>
21049 Daniel Jacobowitz <dan@codesourcery.com>
21051 * linux-low.c (linux_kill): Handle being called with no threads.
21052 * win32-i386-low.c (win32_kill): Likewise.
21053 (get_child_debug_event): Clear current_process_handle.
21055 2006-12-30 Denis PILAT <denis.pilat@st.com>
21056 Daniel Jacobowitz <dan@codesourcery.com>
21058 * remote-utils.c (remote_open): Check the type of specified
21059 serial port devices before opening them.
21060 * server.c (main): Kill the inferior if an error occurs during
21061 the first remote_open.
21063 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21065 * README: Update supported targets.
21067 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21069 * Makefile.in (clean): Remove reg-mips64.c.
21070 (reg-mips64.c, reg-mips64.o): New rules.
21071 * configure.srv: Handle mips64. Include regset support for mips.
21072 * linux-mips-low.c (union mips_register): New.
21073 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21074 (mips_breakpoint, mips_breakpoint_at): Use int.
21075 (mips_collect_register, mips_supply_register)
21076 (mips_collect_register_32bit, mips_supply_register_32bit)
21077 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21078 (mips_store_fpregset, target_regsets): New.
21079 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21081 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21083 * configure.srv: Add target "spu*-*-*".
21084 * Makefile.in (clean): Remove reg-spu.c.
21085 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21086 * spu-low.c: New file.
21088 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21090 * configure.ac: Correct td_thr_tls_get_addr test.
21091 * configure: Regenerated.
21093 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21095 * linux-low.c (linux_wait_for_event): Reformat. Use the
21096 pass_signals array.
21097 * remote-utils.c (decode_address_to_semicolon): New.
21098 * server.c (pass_signals, handle_general_set): New.
21099 (handle_query): Mention QPassSignals for qSupported.
21100 (main): Call handle_general_set.
21101 * server.h (pass_signals, decode_address_to_semicolon): New.
21103 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21105 * server.c (handle_query): Correct error handling for read_auxv.
21107 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21109 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21110 and srv_linux_thread_db to yes.
21111 * linux-s390-low.c (s390_fill_gregset): New function.
21112 (target_regsets): Define data structure.
21114 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21116 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21117 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21118 * config.in, configure: Regenerated.
21119 * inferiors.c (gdb_id_to_thread): New function.
21120 (gdb_id_to_thread_id): Use it.
21121 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21122 * linux-low.h (struct process_info): Add th member.
21123 (thread_db_get_tls_address): New prototype.
21124 * remote-utils.c (decode_address): Make non-static.
21125 * server.c (handle_query): Handle qGetTLSAddr.
21126 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21127 * target.h (struct target_ops): Add get_tls_address.
21128 * thread-db.c (maybe_attach_thread): Save the thread handle.
21129 (thread_db_get_tls_address): New.
21131 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21133 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21134 (linux_resume_one_process): Take a siginfo_t *. Update all
21135 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21136 (struct pending_signals): Add a siginfo_t.
21137 (linux_wait_for_process): Always set last_status.
21138 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21139 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21140 * linux-low.h (struct process_info): Add last_status.
21142 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21144 * remote-utils.c (try_rle): New function.
21145 (putpkt_binary): Use it.
21147 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21149 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21150 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21151 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21152 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21153 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21156 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21158 * server.c (terminal_fd): New variable.
21159 (old_foreground_pgrp): Likewise.
21160 (restore_old_foreground_pgrp): New function.
21161 (start_inferior): Record the terminal file descriptor in terminal_fd
21162 and its original foreground group in old_foreground_pgrp. Register
21163 restore_old_foreground_pgrp with atexit().
21165 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21167 * server.c (handle_query): Correct qPart to qXfer.
21169 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21171 * configure.ac: Check for more headers which are missing on
21172 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21173 * configure.srv: Add Cygwin and mingw32.
21174 * remote-utils.c: Don't include headers unconditionally which
21175 are missing on mingw32. Include <winsock.h> for mingw32.
21176 (remote_open): Adjust for mingw32 support. Flush
21177 standard error after writing to it.
21178 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21179 (unblock_async_io, enable_async_io, disable_async_io)
21180 (readchar, getpkt): Update for Winsock support.
21181 (prepare_resume_reply): Expect a protocol signal number.
21182 * server.c: Disable <sys/wait.h> on mingw32.
21183 (start_inferior): Adjust for mingw32 support. Flush
21184 standard error after writing to it.
21185 (attach_inferior): Likewise. Use protocol signal
21187 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21189 * win32-i386-low.c: New file.
21190 * Makefile.in (XM_CLIBS): Set.
21191 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21192 (win32-i386-low.o): New dependency rule.
21193 * linux-low.c (linux_wait): Use target signal numbers.
21194 * target.h (struct target_ops): Doc fix.
21195 * server.h (target_signal_to_name): New prototype.
21196 * gdbreplay.c: Don't include headers unconditionally which
21197 are missing on mingw32. Include <winsock.h> for mingw32.
21198 (remote_close, remote_open): Adjust for Winsock support.
21199 * configure, config.in: Regenerated.
21201 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21203 * server.c (decode_xfer_read, write_qxfer_response): New.
21204 (handle_query): Take a packet length argument. Handle
21205 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21206 the qSupported response.
21207 (main): Update call to handle_query.
21209 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21211 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21212 (putpkt_binary): Renamed from putpkt and adjusted for binary
21214 (putpkt): New wrapper for putpkt_binary.
21215 (readchar): Don't mask off the high bit.
21216 (decode_X_packet): New function.
21217 * server.c (main): Call putpkt_binary if a handler sets the packet
21218 length. Save the length of the incoming packet. Handle 'X'.
21219 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21221 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21223 * server.c (handle_query): Handle qSupported.
21225 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21227 * remote-utils.c (all_symbols_looked_up): New variable.
21228 (look_up_one_symbol): Check it.
21229 * server.h (look_up_one_symbol): New declaration.
21230 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21232 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21234 * Makefile.in (linux-arm-low.o): Update dependencies.
21235 * linux-arm-low.c: Include "gdb_proc_service.h".
21236 (PTRACE_GET_THREAD_AREA): Define.
21237 (ps_get_thread_area): New function.
21239 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21241 * configure.srv (m68k*-*-uclinux*): New target.
21242 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21243 (linux_resume_one_process): Remove extraneous cast.
21244 (linux_read_offsets): New.
21245 (linux_target_op): Add linux_read_offsets on mmuless systems.
21246 * server.c (handle_query): Add qOffsets logic.
21247 * target.h (struct target_ops): Add read_offsets.
21249 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21251 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21252 (PTRACE_GET_THREAD_AREA): Define.
21253 (ps_get_thread_area): New function.
21254 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21255 (linux-x86-64-low.o): Update.
21257 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21259 * configure.ac: Remove checks for prfpregset_t.
21260 * gdb_proc_service.h: New file.
21261 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21262 new "gdb_proc_service.h".
21263 * proc-service.c: Likewise.
21264 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21265 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21266 * Makefile.in (gdb_proc_service_h): Updated.
21267 * configure, config.in: Regenerated.
21269 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21271 * remote-utils.c (prepare_resume_reply): Move declaration
21272 of gdb_id_from_wait to the top of the block.
21274 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21276 * linux-low.c (regsets_store_inferior_registers): Read the regset
21277 from the target before filling it.
21279 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21281 * server.c (attach_inferior): Return SIGTRAP for a successful
21284 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21286 * Makefile.in (OBS): Add version.o.
21287 (STAGESTUFF): Delete.
21288 (version.o): Add dependencies.
21289 (version.c): Replace rule.
21290 (clean): Remove version.c.
21291 * server.c (gdbserver_version): New.
21292 (gdbserver_usage): Use printf.
21293 (main): Handle --version and --help.
21294 * server.h (version, host_name): Add declarations.
21296 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21308 * linux-x86-64-low.c:
21310 * linux-s390-low.c:
21311 * linux-ppc64-low.c:
21313 * linux-mips-low.c:
21314 * linux-m68k-low.c:
21315 * linux-m32r-low.c:
21318 * linux-ia64-low.c:
21319 * linux-i386-low.c:
21320 * linux-crisv32-low.c:
21332 * gdbserver.1: Add (C) after Copyright. Update the FSF
21335 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21337 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21338 (arm_breakpoint_at): Recognize both breakpoints.
21339 (the_low_target): Use the correct breakpoint instruction.
21341 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21343 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21344 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21345 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21346 (the_low_target): Update.
21348 2005-10-25 Andreas Schwab <schwab@suse.de>
21350 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21352 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21353 (ia64_num_regs): Reduce to 462.
21355 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21357 * acinclude.m4: Correct quoting.
21358 * aclocal.m4: Regenerated.
21360 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21361 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21362 (thread_db_init): Call thread_db_err_str.
21363 * configure.ac: Check for TD_VERSION.
21364 * config.in, configure: Regenerated.
21366 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21368 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21370 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21372 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21373 is not available. Define HAVE_PTRACE_GETREGS if it is.
21374 * config.in, configure: Regenerated.
21375 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21376 * linux-i386-low.c, linux-m68k-low.c: Update to use
21377 HAVE_PTRACE_GETREGS.
21378 * linux-low.c (regsets_fetch_inferior_registers)
21379 (regsets_store_inferior_registers): Only return 0 if we processed
21381 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21382 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21384 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21386 * inferiors.c (struct thread_info): Add gdb_id.
21387 (add_thread): Add gdb_id argument.
21388 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21389 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21390 calls to add_thread.
21391 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21392 * server.c (handle_query): Use thread_to_gdb_id.
21393 (handle_v_cont, main): Use gdb_id_to_thread_id.
21394 * server.h (add_thread): Update prototype.
21395 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21398 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21400 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21401 left-padded registers.
21402 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21403 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21405 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21407 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21408 * configure: Regenerate.
21409 * config.in: Regenerate.
21410 * server.h (NEED_DECLARATION_STRERROR):
21411 Replace with !HAVE_DECL_STRERROR.
21413 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21415 * linux-low.c (linux_wait, linux_send_signal): Don't test
21416 an unsigned long variable for > 0 if it could be MAX_ULONG.
21417 * server.c (myresume): Likewise.
21418 * target.c (set_desired_inferior): Likewise.
21420 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21422 * configure.ac: Simplify and improve check for socklen_t.
21423 * configure, config.in: Regenerate.
21425 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21427 * acconfig.h: Remove.
21428 * configure.ac: Add a test for socklen_t. Use three-argument
21429 AC_DEFINE throughout.
21430 * config.in: Regenerated using autoheader 2.59.
21431 * configure: Regenerated.
21433 * gdbreplay.c (socklen_t): Provide a default.
21434 (remote_open): Use socklen_t.
21435 * remote-utils.c (socklen_t): Provide a default.
21436 (remote_open): Use socklen_t.
21437 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21440 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21442 * linux-low.c (linux_read_memory, linux_write_memory)
21443 (linux_read_auxv): Likewise.
21444 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21445 (check_mem_write): Likewise.
21446 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21448 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21449 (registers_from_string, register_data): Likewise.
21450 * server.c (handle_query, main): Likewise.
21451 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21452 (decode_M_packet): Likewise.
21453 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21454 * target.h (struct target_ops): Update read_memory, write_memory,
21456 (read_inferior_memory, write_inferior_memory): Update.
21457 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21458 to unsigned char *.
21459 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21460 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21461 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21462 linux-s390-low.c, linux-sh-low.c: Update for changes in
21463 read_inferior_memory and the_low_target->breakpoint.
21465 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21467 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21468 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21469 * configure.srv: Add powerpc64-*-linux*.
21470 * linux-ppc64-low.c: New file.
21472 2005-05-23 Orjan Friberg <orjanf@axis.com>
21474 * linux-cris-low.c: New file with support for CRIS.
21475 * linux-crisv32-low.c: Ditto for CRISv32.
21476 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21477 (clean): Add reg-cris.c and reg-crisv32.c.
21478 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21479 reg-crisv32.o, and reg-crisv32.c to make rules.
21480 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21481 recognized targets.
21483 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21485 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21486 of sizeof (PTRACE_XFER_TYPE).
21487 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21489 2005-05-12 Orjan Friberg <orjanf@axis.com>
21491 * target.h (struct target_ops): Add insert_watchpoint,
21492 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21493 pointers for hardware watchpoint support.
21494 * linux-low.h (struct linux_target_ops): Ditto.
21495 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21496 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21497 to linux_target_ops.
21498 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21500 * server.c (main): Recognize 'Z' and 'z' packets.
21502 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21504 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21505 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21506 (the_low_target): Add new members.
21508 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21510 * proc-service.c (ps_lgetregs): Search all_processes instead of
21513 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21515 * server.c (start_inferior): Change return type to int.
21516 (attach_inferior): Change sigptr to int *.
21517 (handle_v_cont, handle_v_requests): Change signal to int *.
21518 (main): Change signal to int.
21520 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21522 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21523 * configure.srv: Add m32r*-*-linux*.
21524 * linux-m32r-low.c: New file.
21526 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21528 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21530 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21532 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21533 Take unsigned long arguments for PIDs.
21534 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21535 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21536 (wait_for_sigstop, linux_resume_one_process)
21537 (regsets_fetch_inferior_registers, linux_send_signal)
21538 (linux_read_auxv): Likewise. Update the types of variables holding
21539 PIDs. Update format string specifiers.
21540 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21541 * remote-utils.c (prepare_resume_reply): Likewise.
21542 * server.c (cont_thread, general_thread, step_thread)
21543 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21545 (handle_query): Update format specifiers.
21546 (handle_v_cont, main): Use strtoul for thread IDs.
21547 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21548 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21549 (general_thread, step_thread, thread_from_wait)
21550 (old_thread_from_wait): Update.
21551 * target.h (struct thread_resume): Use unsigned long for THREAD.
21552 (struct target_ops): Use unsigned long for arguments to attach and
21555 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21557 * acinclude.m4: Include bfd/bfd.m4 directly.
21558 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21559 <agriffis@toolchain.org>.
21560 * aclocal.m4, configure: Regenerated.
21562 2005-01-07 Andrew Cagney <cagney@gnu.org>
21564 * configure.ac: Rename configure.in, require autoconf 2.59.
21565 * configure: Re-generate.
21567 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21569 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21570 LIBS when finished.
21571 * aclocal.m4: Regenerated.
21572 * configure: Regenerated.
21574 2004-11-21 Andreas Schwab <schwab@suse.de>
21576 * linux-m68k-low.c (m68k_num_gregs): Define.
21577 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21578 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21579 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21580 (m68k_breakpoint_at): New. Add to the_low_target.
21582 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21583 srv_linux_thread_db to yes.
21585 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21587 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21588 (ARCH_SET_FS): Likewise.
21589 (ARCH_GET_FS): Likewise.
21590 (ARCH_GET_GS): Likewise.
21592 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21594 * linux-i386-low.c (ps_get_thread_area): New.
21595 * linux-x86-64-low.c (ps_get_thread_area): New.
21596 * linux-low.c: Include <sys/syscall.h>.
21597 (linux_kill_one_process): Don't kill the first thread here.
21598 (linux_kill): Kill the first thread here.
21599 (kill_lwp): New function.
21600 (send_sigstop, linux_send_signal): Use it.
21601 * proc-service.c: Clean up #ifdefs.
21602 (fpregset_info): Delete.
21603 (ps_lgetregs): Update and enable implementation.
21604 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21606 * remote-utils.c (struct sym_cache, symbol_cache): New.
21607 (input_interrupt): Print a clearer message.
21608 (async_io_enabled): New variable.
21609 (enable_async_io, disable_async_io): Use it. Update comments.
21610 (look_up_one_symbol): Use the symbol cache.
21611 * thread-db.c (thread_db_look_up_symbols): New function.
21612 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21614 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21616 * configure.in: Test for -rdynamic.
21617 * configure: Regenerated.
21618 * Makefile (INTERNAL_LDFLAGS): New.
21619 (gdbserver, gdbreplay): Use it.
21621 2004-09-02 Andrew Cagney <cagney@gnu.org>
21623 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21625 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21627 * linux-low.c (linux_wait): Clear all_processes list also.
21629 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21631 * linux-low.c: Include <errno.h>. Remove extern declaration of
21634 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21636 * gdbreplay.c, server.h, utils.c: Update copyright years.
21638 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21640 * server.c (main): Print child status or termination signal from
21641 variable 'signal', not 'sig'.
21643 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21645 * linux-low.c (linux_read_memory): Change return type to
21646 int. Check for and return error from ptrace().
21647 * target.c (read_inferior_memory): Change return type to int. Pass
21648 back return status from the_target->read_memory().
21649 * target.h (struct target_ops): Adapt *read_memory() prototype.
21651 (read_inferior_memory): Adapt prototype.
21652 * server.c (main): Return an error packet if
21653 read_inferior_memory() returns an error.
21655 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21657 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21658 Unify with other clean targets.
21660 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21662 * server.c (handle_v_cont): Call set_desired_inferior.
21664 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21666 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21668 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21670 * linux-low.c (linux_wait): Unblock async I/O.
21671 (linux_resume): Block and enable async I/O.
21672 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21673 * server.h (block_async_io, unblock_async_io): Add prototypes.
21675 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21677 * remote-utils.c (remote_open): Print a status notice after
21678 opening a TCP port.
21679 * server.c (attach_inferior): Print a status notice after
21682 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21684 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21686 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21688 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21690 * server.c, target.h: Update copyright years.
21692 2004-02-25 Roland McGrath <roland@redhat.com>
21694 * target.h (struct target_ops): New member `read_auxv'.
21695 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21696 * linux-low.c (linux_read_auxv): New function.
21697 (linux_target_ops): Initialize `read_auxv' member to that.
21699 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21701 Committed by Jim Blandy <jimb@redhat.com>.
21703 * linux-s390-low.c (s390_num_regs): Update.
21704 (s390_regmap): Remove control registers. Use __s390x__ predefine
21705 instead of GPR_SIZE to distiguish s390 and s390x targets.
21707 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21709 * linux-low.c: Update copyright year.
21710 (check_removed_breakpoint): Clear pending_is_breakpoint.
21711 (linux_set_resume_request, linux_queue_one_thread)
21712 (resume_status_pending_p): New functions.
21713 (linux_continue_one_thread): Use process->resume.
21714 (linux_resume): Only resume threads if there are no pending events.
21715 * linux-low.h (struct process_info): Add resume request
21718 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21720 * regcache.c (new_register_cache): Clear the allocated register
21721 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21723 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21725 * linux-low.c (linux_resume): Take a struct thread_resume *
21727 (linux_wait): Update call.
21728 (resume_ptr): New static variable.
21729 (linux_continue_one_thread): Renamed from
21730 linux_continue_one_process. Use resume_ptr.
21731 (linux_resume): Use linux_continue_one_thread.
21732 * server.c (handle_v_cont, handle_v_requests): New functions.
21733 (myresume): New function.
21734 (main): Handle 'v' case.
21735 * target.h (struct thread_resume): New type.
21736 (struct target_ops): Change argument of "resume" to struct
21738 (myresume): Delete macro.
21740 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21742 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21743 (uninstall): Support DESTDIR.
21745 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21747 * configure.srv: Add xscale*linux copy of arm*linux entry.
21749 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21751 * linux-arm-low.c (arm_reinsert_addr): New function.
21752 (the_low_target): Add arm_reinsert_addr.
21754 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21756 * mem-break.c: Remove whitespace at end of file.
21758 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21760 * configure.in: Check whether we need to prototype strerror.
21761 * server.h: Optionally prototype strerror.
21762 * gdbreplay.c (perror_with_name): Use strerror.
21763 * linux-low.c (linux_attach_lwp): Use strerror.
21764 * utils.c (perror_with_name): Use strerror.
21765 * config.in, configure: Regenerated.
21767 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21769 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21770 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21772 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21774 * Makefile.in (SFILES): Update.
21775 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21776 low-sun3.c: Remove files.
21778 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21780 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21781 (linux_detach_one_process, linux_detach): New functions.
21782 (linux_target_ops): Add linux_detach.
21783 * server.c (main): Handle 'D' packet.
21784 * target.h (struct target_ops): Add "detach" member.
21785 (detach_inferior): Define.
21787 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21789 From Kelley Cook <kelleycook@wideopenwest.com>:
21790 * configure.srv: Accept i[34567]86 variants.
21792 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21794 * linux-low.c (linux_wait_for_event): Correct comment typos.
21795 (linux_resume_one_process): Call check_removed_breakpoint.
21796 (linux_send_signal): New function.
21797 (linux_target_ops): Add linux_send_signal.
21798 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21800 * target.h (struct target_ops): Add send_signal.
21802 2003-05-29 Jim Blandy <jimb@redhat.com>
21804 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21805 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21806 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21807 away part of the register's value.
21809 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21811 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21812 (linux_wait_for_event, linux_init_signals): Likewise.
21814 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21816 * configure.in: Check for stdlib.h.
21817 * configure: Regenerated.
21818 * config.in: Regenerated.
21820 2003-01-04 Andreas Schwab <schwab@suse.de>
21822 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21824 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21826 * Makefile.in: Remove obsolete code.
21828 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21830 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21831 defined(PT_FPR0_HI).
21833 2002-11-17 Stuart Hughes <seh@zee2.com>
21835 * linux-arm-low.c (arm_num_regs): Increase.
21836 (arm_regmap): Include status register.
21838 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21840 * linux-low.c (register_addr): Remove incorrect -1 check.
21842 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21844 * linux-low.c (linux_create_inferior): Call setpgid. Return
21846 (unstopped_p, linux_signal_pid): Remove.
21847 (linux_target_ops): Remove linux_signal_pid.
21848 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21849 global instead of target method.
21850 * target.h (struct target_ops): Remove signal_pid. Update comment
21851 for create_inferior.
21852 * server.c (signal_pid): New variable.
21853 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21854 gdbserver. Set the child to be the foreground process group.
21855 (attach_inferior): Set signal_pid.
21857 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21859 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21861 2002-08-20 Jim Blandy <jimb@redhat.com>
21863 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21866 2002-08-01 Andrew Cagney <cagney@redhat.com>
21868 * Makefile.in: Make chill references obsolete.
21870 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21872 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21873 * configure: Regenerate.
21874 * config.in: Regenerate.
21876 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21878 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21879 (perror_with_name, remote_close, remote_open, expect, play): Static.
21881 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21883 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21884 byte offsets instead of an array of indexes.
21885 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21887 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21889 * regcache.c: Add comment.
21891 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21893 * thread-db.c: New file.
21894 * proc-service.c: New file.
21895 * acinclude.m4: New file.
21896 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21897 proc-service.o, and thread-db.o.
21898 (linux-low.o): Add USE_THREAD_DB.
21899 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21900 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21901 * aclocal.m4: Regenerated.
21902 * config.in: Regenerated.
21903 * configure: Regenerated.
21904 * configure.in: Check for proc_service.h, sys/procfs.h,
21905 thread_db.h, and linux/elf.h headrs.
21906 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21907 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21908 Check for -lthread_db and thread support.
21909 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21910 PowerPC, and SuperH.
21911 * i387-fp.c: Constify arguments.
21912 * i387-fp.h: Likewise.
21913 * inferiors.c: (struct thread_info): Renamed from
21914 `struct inferior_info'. Remove PID member. Use generic inferior
21915 list header. All uses updated.
21916 (inferiors, signal_pid): Removed.
21917 (all_threads): New variable.
21918 (get_thread): Define.
21919 (add_inferior_to_list): New function.
21920 (for_each_inferior): New function.
21921 (change_inferior_id): New function.
21922 (add_inferior): Removed.
21923 (remove_inferior): New function.
21924 (add_thread): New function.
21925 (free_one_thread): New function.
21926 (remove_thread): New function.
21927 (clear_inferiors): Use for_each_inferior and free_one_thread.
21928 (find_inferior): New function.
21929 (find_inferior_id): New function.
21930 (inferior_target_data): Update argument type.
21931 (set_inferior_target_data): Likewise.
21932 (inferior_regcache_data): Likewise.
21933 (set_inferior_regcache_data): Likewise.
21934 * linux-low.c (linux_bp_reinsert): Remove.
21935 (all_processes, stopping_threads, using_thrads)
21936 (struct pending_signals, debug_threads, pid_of): New.
21937 (inferior_pid): Replace with macro.
21938 (struct inferior_linux_data): Remove.
21939 (get_stop_pc, add_process): New functions.
21940 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21941 Use add_process and add_thread.
21942 (linux_attach_lwp): New function, based on old linux_attach. Use
21943 add_process and add_thread. Set stop_expected for new threads.
21944 (linux_attach): New function.
21945 (linux_kill_one_process): New function.
21946 (linux_kill): Kill all LWPs.
21947 (linux_thread_alive): Use find_inferior_id.
21948 (check_removed_breakpoints, status_pending_p): New functions.
21949 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21950 Update. Use WNOHANG. Wait for cloned processes also. Update process
21951 struct for the found process.
21952 (linux_wait_for_event): New function.
21953 (linux_wait): Use it. Support LWPs.
21954 (send_sigstop, wait_for_sigstop, stop_all_processes)
21955 (linux_resume_one_process, linux_continue_one_process): New functions.
21956 (linux_resume): Support LWPs.
21957 (REGISTER_RAW_SIZE): Remove.
21958 (fetch_register): Use register_size instead. Call supply_register.
21959 (usr_store_inferior_registers): Likewise. Call collect_register.
21960 Fix recursive case.
21961 (regsets_fetch_inferior_registers): Improve error message.
21962 (regsets_store_inferior_registers): Add debugging.
21963 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21964 (unstopped_p, linux_signal_pid): New functions.
21965 (linux_target_ops): Add linux_signal_pid.
21966 (linux_init_signals): New function.
21967 (initialize_low): Call it. Initialize using_threads.
21968 * regcache.c (inferior_regcache_data): Add valid
21970 (get_regcache): Fetch registers lazily. Add fetch argument
21971 and update all callers.
21972 (regcache_invalidate_one, regcache_invalidate): New
21974 (new_register_cache): Renamed from create_register_cache.
21975 Return the new regcache.
21976 (free_register_cache): Change argument to a void *.
21977 (registers_to_string, registers_from_string): Call get_regcache
21978 with fetch flag set.
21979 (register_data): Make static. Pass fetch flag to get_regcache.
21980 (supply_register): Call get_regcache with fetch flag clear.
21981 (collect_register): Call get_regcache with fetch flag set.
21982 (collect_register_as_string): New function.
21983 * regcache.h: Update.
21984 * remote-utils.c (putpkt): Flush after debug output and use
21986 Handle input interrupts while waiting for an ACK.
21987 (input_interrupt): Use signal_pid method.
21988 (getpkt): Flush after debug output and use stderr.
21989 (outreg): Use collect_register_as_string.
21990 (new_thread_notify, dead_thread_notify): New functions.
21991 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21992 and general_thread.
21993 (look_up_one_symbol): Flush after debug output.
21994 * server.c (step_thread, server_waiting): New variables.
21995 (start_inferior): Don't use signal_pid. Update call to mywait.
21996 (attach_inferior): Update call to mywait.
21997 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21998 (main): Don't fetch/store registers explicitly. Use
21999 set_desired_inferior. Support proposed ``Hs'' packet. Update
22001 * server.h: Update.
22002 (struct inferior_list, struct_inferior_list_entry): New.
22003 * target.c (set_desired_inferior): New.
22004 (write_inferior_memory): Constify.
22005 (mywait): New function.
22006 * target.h: Update.
22007 (struct target_ops): New signal_pid method.
22008 (mywait): Removed macro, added prototype.
22010 * linux-low.h (regset_func): Removed.
22011 (regset_fill_func, regset_store_func): New.
22012 (enum regset_type): New.
22013 (struct regset_info): Add type field. Use new operation types.
22014 (struct linux_target_ops): stop_pc renamed to get_pc.
22015 Add decr_pc_after_break and breakpoint_at.
22016 (get_process, get_thread_proess, get_process_thread)
22017 (strut process_info, all_processes, linux_attach_lwp)
22018 (thread_db_init): New.
22020 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22021 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22022 (the_low_target): Add new members.
22023 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22024 (i386_store_fpxregset): Constify.
22025 (target_regsets): Add new kind identifier.
22026 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22027 (i386_set_pc): Add debugging.
22028 (i386_breakpoint_at): New function.
22029 (the_low_target): Add new members.
22030 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22031 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22032 (mips_breakpoint_at): New.
22033 (the_low_target): Add new members.
22034 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22035 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22036 (the_low_target): Add new members.
22037 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22038 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22039 (the_low_target): Add new members.
22040 * linux-x86-64-low.c (target_regsets): Add new kind
22043 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22045 From Martin Pool <mbp@samba.org>:
22046 * server.c (gdbserver_usage): New function.
22049 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22051 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22052 stop_at -> stop_pc.
22054 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22056 * Makefile.in: Remove obsolete code.
22058 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22060 * linux-low.c (regsets_fetch_inferior_registers),
22061 (regsets_store_inferior_registers): Removed cast to int from
22063 * regcache.h: Added declaration of struct inferior_info.
22065 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22067 * inferiors.c (struct inferior_info): Add regcache_data.
22068 (add_inferior): Call create_register_cache.
22069 (clear_inferiors): Call free_register_cache.
22070 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22071 * regcache.c (struct inferior_regcache_data): New.
22072 (registers): Remove.
22073 (get_regcache): New function.
22074 (create_register_cache, free_register_cache): New functions.
22075 (set_register_cache): Don't initialize the register cache here.
22076 (registers_to_string, registers_from_string, register_data): Call
22078 * regcache.h: Add prototypes.
22079 * server.h: Likewise.
22081 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22083 * mem-break.c: New file.
22084 * mem-break.h: New file.
22085 * Makefile.in: Add mem-break.o rule; update server.h
22087 * inferiors.c (struct inferior_info): Add target_data
22089 (clear_inferiors): Free target_data member if set.
22090 (inferior_target_data, set_inferior_target_data): New functions.
22091 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22092 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22093 * linux-low.c (linux_bp_reinsert): New variable.
22094 (struct inferior_linux_data): New.
22095 (linux_create_inferior): Use set_inferior_target_data.
22096 (linux_attach): Likewise. Call add_inferior.
22097 (linux_wait_for_one_inferior): New function.
22098 (linux_wait): Call it.
22099 (linux_write_memory): Add const.
22100 (initialize_low): Call set_breakpoint_data.
22101 * linux-low.h (struct linux_target_ops): Add breakpoint
22103 * server.c (attach_inferior): Remove extra add_inferior
22105 * server.h: Include mem-break.h. Update inferior.c
22107 * target.c (read_inferior_memory)
22108 (write_inferior_memory): New functions.
22109 * target.h (read_inferior_memory)
22110 (write_inferior_memory): Change macros to prototypes.
22111 (struct target_ops): Update comments. Add const to write_memory
22114 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22116 * linux-low.c (usr_store_inferior_registers): Support
22117 registers which are allowed to fail to store.
22118 * linux-low.h (linux_target_ops): Likewise.
22119 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22120 (ppc_cannot_store_register): FPSCR may not be storable.
22122 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22124 * server.h: Include <string.h> if HAVE_STRING_H.
22125 * ChangeLog: Correct paths in last ChangeLog entry.
22127 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22129 * linux-low.h: Remove obsolete prototypes.
22130 (struct linux_target_ops): New.
22131 (extern the_low_target): New.
22132 * linux-low.c (num_regs, regmap): Remove declarations.
22133 (register_addr): Use the_low_target explicitly.
22134 (fetch_register): Likewise.
22135 (usr_fetch_inferior_registers): Likewise.
22136 (usr_store_inferior_registers): Likewise.
22137 * linux-arm-low.c (num_regs): Remove.
22138 (arm_num_regs): Define.
22139 (arm_regmap): Renamed from regmap, made static.
22140 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22142 (arm_cannot_store_register): Renamed from cannot_store_register,
22144 (the_low_target): New.
22145 * linux-i386-low.c (num_regs): Remove.
22146 (i386_num_regs): Define.
22147 (i386_regmap): Renamed from regmap, made static.
22148 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22150 (i386_cannot_store_register): Renamed from cannot_store_register,
22152 (the_low_target): New.
22153 * linux-ia64-low.c (num_regs): Remove.
22154 (ia64_num_regs): Define.
22155 (ia64_regmap): Renamed from regmap, made static.
22156 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22158 (ia64_cannot_store_register): Renamed from cannot_store_register,
22160 (the_low_target): New.
22161 * linux-m68k-low.c (num_regs): Remove.
22162 (m68k_num_regs): Define.
22163 (m68k_regmap): Renamed from regmap, made static.
22164 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22166 (m68k_cannot_store_register): Renamed from cannot_store_register,
22168 (the_low_target): New.
22169 * linux-mips-low.c (num_regs): Remove.
22170 (mips_num_regs): Define.
22171 (mips_regmap): Renamed from regmap, made static.
22172 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22174 (mips_cannot_store_register): Renamed from cannot_store_register,
22176 (the_low_target): New.
22177 * linux-ppc-low.c (num_regs): Remove.
22178 (ppc_num_regs): Define.
22179 (ppc_regmap): Renamed from regmap, made static.
22180 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22182 (ppc_cannot_store_register): Renamed from cannot_store_register,
22184 (the_low_target): New.
22185 * linux-s390-low.c (num_regs): Remove.
22186 (s390_num_regs): Define.
22187 (s390_regmap): Renamed from regmap, made static.
22188 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22190 (s390_cannot_store_register): Renamed from cannot_store_register,
22192 (the_low_target): New.
22193 * linux-sh-low.c (num_regs): Remove.
22194 (sh_num_regs): Define.
22195 (sh_regmap): Renamed from regmap, made static.
22196 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22198 (sh_cannot_store_register): Renamed from cannot_store_register,
22200 (the_low_target): New.
22201 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22202 (the_low_target): New.
22204 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22206 * Makefile.in: Add stamp-h target.
22207 * configure.in: Create stamp-h.
22208 * configure: Regenerated.
22210 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22212 * inferiors.c: New file.
22213 * target.c: New file.
22214 * target.h: New file.
22215 * Makefile.in: Add target.o and inferiors.o. Update
22217 * linux-low.c (inferior_pid): New static variable,
22218 moved from server.c.
22219 (linux_create_inferior): Renamed from create_inferior.
22220 Call add_inferior. Return 0 on success instead of a PID.
22221 (linux_attach): Renamed from myattach.
22222 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22223 (linux_thread_alive): Renamed from mythread_alive.
22224 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22226 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22227 (regsets_store_inferior_registers): Correct error message.
22228 Add missing ``return 0''.
22229 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22230 (linux_store_registers): Renamed from store_inferior_registers.
22231 (linux_read_memory): Renamed from read_inferior_memory.
22232 (linux_write_memory): Renamed from write_inferior_memory.
22233 (linux_target_ops): New structure.
22234 (initialize_low): Call set_target_ops ().
22235 * remote-utils.c (unhexify): New function.
22236 (hexify): New function.
22237 (input_interrupt): Send signals to ``signal_pid''.
22238 * server.c (inferior_pid): Remove.
22239 (start_inferior): Update create_inferior call.
22240 (attach_inferior): Call add_inferior.
22241 (handle_query): New function.
22242 (main): Call handle_query for `q' packets.
22243 * server.h: Include "target.h". Remove obsolete prototypes.
22244 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22246 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22248 * Makefile.in: Add WARN_CFLAGS. Update configury
22250 * configure.in: Check for <string.h>
22251 * configure: Regenerate.
22252 * config.in: Regenerate.
22253 * gdbreplay.c: Include needed system headers.
22254 (remote_open): Remove strchr prototype.
22255 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22256 * regcache.c (supply_register): Change buf argument to const void *.
22257 (supply_register_by_name): Likewise.
22258 (collect_register): Change buf argument to void *.
22259 (collect_register_by_name): Likewise.
22260 * regcache.h: Add missing prototypes.
22261 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22262 * server.c (handle_query): New function.
22263 (attached): New static variable, moved out of main.
22264 (main): Quiet longjmp clobber warnings.
22265 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22266 * utils.c (error): Remove NORETURN.