1 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3 * Makefile.in (SFILES): linux-tile-low.cc.
4 * configure.srv: Remove tilegx case.
5 * linux-tile-low.cc: Remove.
7 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
10 * configure.srv: Remove m32r case.
11 * linux-m32r-low.cc: Remove.
13 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
15 * Makefile.in (SFILES): Remove linux-cris-low.c.
16 * configure.srv: Remove cris cases.
17 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
19 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
21 * Makefile.in (SFILES): Remove linux-bfin-low.c.
22 * configure.srv: Remove bfin case.
23 * linux-bfin-low.cc: Remove.
24 * linux-low.cc: Remove BFIN-conditional code.
26 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
28 * configure: Re-generate.
29 * configure.ac: Remove srv_qnx test.
30 * configure.srv: Remove nto case.
31 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
32 * remote-utils.c: Remove __QNX__-guarded code.
34 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
36 * configure: Re-generate.
37 * configure.ac: Remove srv_lynxos test.
38 * configure.srv: Remove lynxos cases.
39 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
42 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
44 * README: Fix a few outdated or incoherent things.
46 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
48 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
49 (win32_clear_inferiors): Use open_process_used.
50 (get_child_debug_event): Likewise.
52 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
55 * linux-low.cc (linux_process_target::create_inferior),
56 lynx-low.cc (lynx_process_target::create_inferior),
57 win32-low.cc (win32_process_target::create_inferior): Use
58 construct_inferior_arguments instead of stringify_argv
59 to get string representation which properly escapes
61 * server.cc (handle_v_run): Just pass empty program arg
62 as such, since any further processing is now handled via
63 construct_inferior_arguments.
65 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
67 * nto-low.cc (nto_process_target::create_inferior): Pass
68 argv to spawnp function as char **.
70 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
72 * server.cc (captured_main), (handle_v_run): No longer
73 insert extra NULL element to args vector.
75 2020-05-23 Pedro Alves <palves@redhat.com>
77 * gdb-safe-ctype.h: New.
79 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
81 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
82 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
83 (ia64_target::low_breakpoint_at): Ditto.
85 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
87 * win32-i386-low.cc (i386_supports_z_point_type): Handle
88 Z_PACKET_HW_BP z_type.
89 (i386_insert_point): Handle raw_bkpt_type type.
90 (i386_remove_point): Likewise.
92 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
94 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
96 * win32-arm-low.cc (arm_num_regs): New function.
97 (struct win32_target_ops): Use arm_num_regs.
98 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
100 (i386_get_thread_context): Likewise.
101 (i386_prepare_to_resume): Likewise.
102 (i386_thread_added): Likewise.
103 (i386_single_step): Likewise.
104 (i386_fetch_inferior_register): Likewise.
105 (i386_store_inferior_register): Likewise.
106 (i386_arch_setup): Likewise.
107 (i386_win32_num_regs): New function.
108 (struct win32_target_ops): Use i386_win32_num_regs.
109 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
111 (win32_require_context): Likewise.
112 (child_add_thread): Likewise.
113 (do_initial_child_stuff): Likewise.
114 (continue_one_thread): Likewise.
115 (win32_process_target::resume): Likewise.
116 (load_psapi): Likewise.
117 (win32_add_all_dlls): Likewise.
118 (maybe_adjust_pc): Likewise.
119 (win32_process_target::qxfer_siginfo): Likewise.
120 (initialize_low): Likewise.
121 * win32-low.h (struct win32_target_ops): Change num_regs to
124 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
126 * configure.ac: Remove check for fs_base/gs_base in
128 * configure: Re-generate.
129 * config.in: Re-generate.
130 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
131 x86_store_gregset): Adjust.
133 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
135 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
138 2020-04-16 Tom Tromey <tromey@adacore.com>
140 * win32-low.cc (windows_nat::handle_access_violation): New
143 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
145 * win32-low.cc (get_child_debug_event): Fix format string warning.
147 2020-04-13 Tom Tromey <tom@tromey.com>
149 * server.h (gdb_fildes_t): Remove typedef.
150 * remote-utils.c (remote_desc, list_desc): Now int.
151 (INVALID_DESCRIPTOR): Remove.
152 (gdb_connected, remote_close)
153 (check_remote_input_interrupt_request): Update.
154 * utils.h (pfildes): Don't declare.
155 * utils.c (pfildes): Remove.
157 2020-04-13 Tom Tromey <tom@tromey.com>
159 * server.h (handle_serial_event, handle_target_event): Update.
160 * server.c: Don't call initialize_event_loop.
161 (keep_processing_events): New global.
162 (handle_serial_event): Return void. Set keep_processing_events.
163 (handle_target_event): Return void.
164 (start_event_loop): Move from event-loop.c. Rewrite.
165 * remote-utils.c (handle_accept_event): Return void.
166 (reset_readchar): Use delete_timer.
167 (process_remaining): Return void.
168 (reschedule): Use create_timer.
169 * event-loop.h: Remove.
170 * event-loop.cc: Remove.
171 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
173 2020-04-13 Tom Tromey <tom@tromey.com>
175 * server.c (invoke_async_signal_handlers)
176 (check_async_event_handlers, flush_streams, gdb_select): New
179 2020-04-13 Tom Tromey <tom@tromey.com>
181 * configure: Rebuild.
182 * config.in: Rebuild.
184 2020-04-08 Tom Tromey <tromey@adacore.com>
187 * win32-low.c (child_continue): Call matching_pending_stop.
188 (get_child_debug_event): Call fetch_pending_stop. Push pending
191 2020-04-08 Tom Tromey <tromey@adacore.com>
193 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
194 (win32_process_target::supports_stopped_by_sw_breakpoint):
196 * win32-low.c (win32_supports_z_point_type): Always handle
198 (win32_insert_point): Call insert_memory_breakpoint when needed.
199 (win32_remove_point): Call remove_memory_breakpoint when needed.
200 (win32_process_target::stopped_by_sw_breakpoint)
201 (win32_process_target::supports_stopped_by_sw_breakpoint): New
203 (win32_target_ops): Update.
204 (maybe_adjust_pc): New function.
205 (win32_wait): Call maybe_adjust_pc.
207 2020-04-08 Tom Tromey <tromey@adacore.com>
209 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
211 * win32-i386-low.c (the_low_target): Update.
212 * win32-arm-low.c (the_low_target): Update.
214 2020-04-08 Tom Tromey <tromey@adacore.com>
216 * win32-low.h (win32_process_target::read_pc)
217 (win32_process_target::write_pc): Declare.
218 * win32-low.c (win32_process_target::read_pc)
219 (win32_process_target::write_pc): New methods.
220 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
222 (the_low_target): Update.
223 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
225 (the_low_target): Update.
227 2020-04-08 Tom Tromey <tromey@adacore.com>
229 * win32-low.c (win32_kill, get_child_debug_event): Use
230 wait_for_debug_event.
232 2020-04-08 Tom Tromey <tromey@adacore.com>
234 * win32-low.c (child_continue): Call continue_last_debug_event.
236 2020-04-08 Tom Tromey <tromey@adacore.com>
238 * win32-low.c (handle_exception): Remove.
239 (windows_nat::handle_ms_vc_exception): New function.
240 (get_child_debug_event): Add "continue_status" parameter.
242 (win32_wait): Update.
244 2020-04-08 Tom Tromey <tromey@adacore.com>
246 * win32-low.c (windows_nat::handle_load_dll): Rename from
247 handle_load_dll. No longer static.
248 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
251 2020-04-08 Tom Tromey <tromey@adacore.com>
253 * win32-low.c (handle_output_debug_string): Add parameter. Change
255 (win32_kill, get_child_debug_event): Update.
257 2020-04-08 Tom Tromey <tromey@adacore.com>
259 * win32-low.c (current_process_handle, current_process_id)
260 (main_thread_id, last_sig, current_event, siginfo_er): Move to
263 2020-04-08 Tom Tromey <tromey@adacore.com>
265 * win32-low.c (get_image_name): Remove.
266 (handle_load_dll): Update.
268 2020-04-08 Tom Tromey <tromey@adacore.com>
270 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
271 No longer static. Change parameters.
272 (child_add_thread, child_fetch_inferior_registers)
273 (child_store_inferior_registers, win32_resume)
274 (win32_get_tib_address): Update.
276 2020-04-08 Tom Tromey <tromey@adacore.com>
278 * win32-low.h (struct win32_target_ops): Use qualified names where
280 * win32-i386-low.c: Add "using namespace".
281 * win32-low.c: Add "using namespace".
282 * win32-arm-low.c: Add "using namespace".
284 2020-04-08 Tom Tromey <tromey@adacore.com>
286 * win32-low.c (delete_thread_info): Don't call CloseHandle.
288 2020-04-08 Tom Tromey <tromey@adacore.com>
290 * win32-low.c (win32_require_context, suspend_one_thread): Use
291 windows_thread_info::suspend.
292 (continue_one_thread): Use windows_thread_info::resume.
293 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
295 2020-04-08 Tom Tromey <tromey@adacore.com>
297 * win32-i386-low.c (update_debug_registers)
298 (i386_prepare_to_resume, i386_thread_added): Update.
300 2020-04-08 Tom Tromey <tromey@adacore.com>
302 * win32-low.c (child_add_thread): Use new.
303 (delete_thread_info): Use delete.
305 2020-04-08 Tom Tromey <tromey@adacore.com>
307 * win32-low.h (struct windows_thread_info): Remove.
309 2020-04-08 Tom Tromey <tromey@adacore.com>
311 * win32-low.h (struct windows_thread_info): Rename from
312 win32_thread_info. Remove typedef.
313 (struct win32_target_ops, win32_require_context): Update.
314 * win32-low.c (win32_get_thread_context)
315 (win32_set_thread_context, win32_prepare_to_resume)
316 (win32_require_context, thread_rec, child_add_thread)
317 (delete_thread_info, continue_one_thread)
318 (child_fetch_inferior_registers, child_store_inferior_registers)
319 (win32_resume, suspend_one_thread, win32_get_tib_address):
321 * win32-i386-low.c (update_debug_registers)
322 (win32_get_current_dr, i386_get_thread_context)
323 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
324 (i386_fetch_inferior_register, i386_store_inferior_register):
326 * win32-arm-low.c (arm_get_thread_context)
327 (arm_fetch_inferior_register, arm_store_inferior_register):
330 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
332 * linux-low.h (struct linux_target_ops): Remove.
333 (the_low_target): Remove.
334 * linux-x86-low.cc (the_low_target): Remove.
335 * linux-aarch64-low.cc (the_low_target): Ditto.
336 * linux-arm-low.cc (the_low_target): Ditto.
337 * linux-bfin-low.cc (the_low_target): Ditto.
338 * linux-cris-low.cc (the_low_target): Ditto.
339 * linux-crisv32-low.cc (the_low_target): Ditto.
340 * linux-ia64-low.cc (the_low_target): Ditto.
341 * linux-m32r-low.cc (the_low_target): Ditto.
342 * linux-m68k-low.cc (the_low_target): Ditto.
343 * linux-mips-low.cc (the_low_target): Ditto.
344 * linux-nios2-low.cc (the_low_target): Ditto.
345 * linux-ppc-low.cc (the_low_target): Ditto.
346 * linux-riscv-low.cc (the_low_target): Ditto.
347 * linux-s390-low.cc (the_low_target): Ditto.
348 * linux-sh-low.cc (the_low_target): Ditto.
349 * linux-sparc-low.cc (the_low_target): Ditto.
350 * linux-tic6x-low.cc (the_low_target): Ditto.
351 * linux-tile-low.cc (the_low_target): Ditto.
352 * linux-xtensa-low.cc (the_low_target): Ditto.
354 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
356 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
357 linux target define the op by overriding the declaration in
358 process_stratum_target.
360 * linux-low.h (struct linux_target_ops): Remove the op.
361 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
362 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
363 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
364 (x86_get_ipa_tdesc_idx): Turn into...
365 (x86_target::get_ipa_tdesc_idx): ...this.
366 (the_low_target): Remove the op field.
367 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
368 (ppc_get_ipa_tdesc_idx): Turn into...
369 (ppc_target::get_ipa_tdesc_idx): ...this.
370 (the_low_target): Remove the op field.
371 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
372 (s390_get_ipa_tdesc_idx): Turn into...
373 (s390_target::get_ipa_tdesc_idx): ...this.
374 (the_low_target): Remove the op field.
376 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378 Turn the 'get_syscall_trapinfo' linux target op into a method
379 of process_stratum_target.
381 * linux-low.h (struct linux_target_ops): Remove the op.
382 (class linux_process_target) <get_syscall_trapinfo>
383 <gdb_catch_this_syscall>
384 <low_supports_catch_syscall>
385 <low_get_syscall_trapinfo>: Declare.
386 * linux-low.cc (get_syscall_trapinfo): Turn into...
387 (linux_process_target::get_syscall_trapinfo): ...this.
388 (linux_process_target::low_get_syscall_trapinfo): Define.
389 (gdb_catch_this_syscall_p): Turn into...
390 (linux_process_target::gdb_catch_this_syscall): ...this.
391 (linux_process_target::low_supports_catch_syscall): Define.
393 Update the callers below.
395 (linux_process_target::wait_1)
396 (linux_process_target::supports_catch_syscall)
398 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
399 <low_get_syscall_trapinfo>: Declare.
400 (x86_target::low_supports_catch_syscall): Define.
401 (x86_get_syscall_trapinfo): Turn into...
402 (x86_target::low_get_syscall_trapinfo): ...this.
403 (the_low_target): Remove the op field.
404 * linux-aarch64-low.cc (class aarch64_target)
405 <low_supports_catch_syscall>
406 <low_get_syscall_trapinfo>: Declare.
407 (aarch64_target::low_supports_catch_syscall): Define.
408 (aarch64_get_syscall_trapinfo): Turn into...
409 (aarch64_target::low_get_syscall_trapinfo): ...this.
410 (the_low_target): Remove the op field.
411 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
412 <low_get_syscall_trapinfo>: Declare.
413 (arm_target::low_supports_catch_syscall): Define.
414 (arm_get_syscall_trapinfo): Turn into...
415 (arm_target::low_get_syscall_trapinfo): ...this.
416 (the_low_target): Remove the op field.
417 * linux-ppc-low.cc (the_low_target): Remove the op field.
418 * linux-s390-low.cc (the_low_target): Remove the op field.
420 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422 Remove the 'supports_hardware_single_step' linux target op and
423 override the process_stratum_target's op definition in
424 linux_process_target to return true.
426 * linux-low.h (struct linux_target_ops): Remove the op.
427 (class linux_process_target) <finish_step_over>
428 <maybe_hw_step>: Declare.
429 * linux-low.cc (can_hardware_single_step): Remove.
430 (maybe_hw_step): Turn into...
431 (linux_process_target::maybe_hw_step): ...this.
432 (finish_step_over): Turn into...
433 (linux_process_target::finish_step_over): ...this.
434 (linux_process_target::supports_hardware_single_step): Update
437 Update the callers below.
439 (linux_process_target::single_step)
440 (linux_process_target::resume_one_lwp_throw)
442 * linux-arm-low.cc (class arm_target)
443 <supports_hardware_single_step>: Declare.
444 (arm_supports_hardware_single_step): Turn into...
445 (arm_target::supports_hardware_single_step): ...this.
446 (the_low_target): Remove the op field.
447 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
448 (the_low_target): Remove the op field.
449 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
451 (the_low_target): Remove the op field.
452 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
453 (the_low_target): Remove the op field.
454 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
455 (the_low_target): Remove the op field.
456 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
457 (the_low_target): Remove the op field.
458 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
459 (the_low_target): Remove the op field.
460 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
461 (the_low_target): Remove the op field.
462 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
463 (the_low_target): Remove the op field.
464 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
465 (the_low_target): Remove the op field.
466 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
467 (the_low_target): Remove the op field.
468 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
469 (the_low_target): Remove the op field.
470 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
472 (the_low_target): Remove the op field.
474 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476 Turn the 'supports_range_stepping' linux target op into a method
477 of linux_process_target.
479 * linux-low.h (struct linux_target_ops): Remove the op.
480 (class linux_process_target) <low_supports_range_stepping>: Declare.
481 * linux-low.cc (linux_process_target::low_supports_range_stepping):
483 (linux_process_target::supports_range_stepping): Update the call
485 * linux-x86-low.cc (class x86_target)
486 <low_supports_range_stepping>: Declare.
487 (x86_supports_range_stepping): Turn into...
488 (x86_target::low_supports_range_stepping): ...this.
489 (the_low_target): Remove the op field.
490 * linux-aarch64-low.cc (class aarch64_target)
491 <low_supports_range_stepping>: Declare.
492 (aarch64_supports_range_stepping): Turn into...
493 (aarch64_target::low_supports_range_stepping): ...this.
494 (the_low_target): Remove the op field.
495 * linux-arm-low.cc (the_low_target): Remove the op field.
496 * linux-bfin-low.cc (the_low_target): Ditto.
497 * linux-crisv32-low.cc (the_low_target): Ditto.
498 * linux-m32r-low.cc (the_low_target): Ditto.
499 * linux-m68k-low.cc (the_low_target): Ditto.
500 * linux-ppc-low.cc (the_low_target): Ditto.
501 * linux-s390-low.cc (the_low_target): Ditto.
502 * linux-sh-low.cc (the_low_target): Ditto.
503 * linux-tic6x-low.cc (the_low_target): Ditto.
504 * linux-tile-low.cc (the_low_target): Ditto.
505 * linux-xtensa-low.cc (the_low_target): Ditto.
507 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
509 Remove the 'emit_ops' linux target ops and let the concrete
510 linux target define the op by overriding the declaration of
511 process_stratum_target.
513 * linux-low.h (struct linux_target_ops): Remove the op.
514 (class linux_process_target) <emit_ops>: Remove.
515 * linux-low.cc (linux_process_target::emit_ops): Remove.
516 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
517 (x86_emit_ops): Turn into...
518 (x86_target::emit_ops): ...this.
519 (the_low_target): Remove the op field.
520 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
521 (aarch64_emit_ops): Turn into...
522 (aarch64_target::emit_ops): ...this.
523 (the_low_target): Remove the op field.
524 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
525 (ppc_emit_ops): Turn into...
526 (ppc_target::emit_ops): ...this.
527 (the_low_target): Remove the op field.
528 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
529 (s390_emit_ops): Turn into...
530 (s390_target::emit_ops): ...this.
531 (the_low_target): Remove the op field.
532 * linux-arm-low.cc (the_low_target): Remove the op field.
533 * linux-bfin-low.cc (the_low_target): Ditto.
534 * linux-crisv32-low.cc (the_low_target): Ditto.
535 * linux-m32r-low.cc (the_low_target): Ditto.
536 * linux-m68k-low.cc (the_low_target): Ditto.
537 * linux-sh-low.cc (the_low_target): Ditto.
538 * linux-tic6x-low.cc (the_low_target): Ditto.
539 * linux-tile-low.cc (the_low_target): Ditto.
540 * linux-xtensa-low.cc (the_low_target): Ditto.
542 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544 Remove the 'install_fast_tracepoint_jump_pad' and
545 'get_min_fast_tracepoint_insn_len' linux target ops to let the
546 concrete linux target define the ops by overriding the declarations
547 of process_stratum_target.
549 * linux-low.h (struct linux_target_ops): Remove the ops.
550 (class linux_process_target) <supports_fast_tracepoints>
551 <install_fast_tracepoint_jump_pad>
552 <get_min_fast_tracepoint_insn_len>: Remove.
553 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
554 (linux_process_target::install_fast_tracepoint_jump_pad)
555 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
556 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
557 <install_fast_tracepoint_jump_pad>
558 <get_min_fast_tracepoint_insn_len>: Declare.
559 (x86_target::supports_fast_tracepoints): Define.
560 (x86_install_fast_tracepoint_jump_pad): Turn into...
561 (x86_target::install_fast_tracepoint_jump_pad): ...this.
562 (x86_get_min_fast_tracepoint_insn_len): Turn into...
563 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
564 (the_low_target): Remove the op fields.
565 * linux-aarch64-low.cc (class aarch64_target)
566 <supports_fast_tracepoints>
567 <install_fast_tracepoint_jump_pad>
568 <get_min_fast_tracepoint_insn_len>: Declare.
569 (aarch64_target::supports_fast_tracepoints): Define.
570 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
571 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
572 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
573 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
574 (the_low_target): Remove the op fields.
575 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
576 <install_fast_tracepoint_jump_pad>
577 <get_min_fast_tracepoint_insn_len>: Declare.
578 (ppc_target::supports_fast_tracepoints): Define.
579 (ppc_install_fast_tracepoint_jump_pad): Turn into...
580 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
581 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
582 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
583 (the_low_target): Remove the op fields.
584 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
585 <install_fast_tracepoint_jump_pad>
586 <get_min_fast_tracepoint_insn_len>: Declare.
587 (s390_target::supports_fast_tracepoints): Define.
588 (s390_install_fast_tracepoint_jump_pad): Turn into...
589 (s390_target::install_fast_tracepoint_jump_pad): ...this.
590 (s390_get_min_fast_tracepoint_insn_len): Turn into...
591 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
592 (the_low_target): Remove the op fields.
593 * linux-arm-low.cc (the_low_target): Remove the op fields.
594 * linux-bfin-low.cc (the_low_target): Ditto.
595 * linux-crisv32-low.cc (the_low_target): Ditto.
596 * linux-m32r-low.cc (the_low_target): Ditto.
597 * linux-m68k-low.cc (the_low_target): Ditto.
598 * linux-sh-low.cc (the_low_target): Ditto.
599 * linux-tic6x-low.cc (the_low_target): Ditto.
600 * linux-tile-low.cc (the_low_target): Ditto.
601 * linux-xtensa-low.cc (the_low_target): Ditto.
603 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
605 Turn the 'get_thread_area' linux target op into a method of
606 process_stratum_target.
608 * linux-low.h (struct linux_target_ops): Remove the op.
609 (class linux_process_target) <stuck_in_jump_pad>
610 <linux_fast_tracepoint_collecting>
611 <low_get_thread_area>: Declare.
612 * linux-low.cc (supports_fast_tracepoints): Remove.
613 (linux_fast_tracepoint_collecting): Turn into...
614 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
615 (linux_process_target::low_get_thread_area): Define.
616 (stuck_in_jump_pad_callback): Turn into...
617 (linux_process_target::stuck_in_jump_pad): ...this.
619 Update the caller below.
621 (linux_process_target::stabilize_threads)
623 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
625 (x86_get_thread_area): Turn into...
626 (x86_target::low_get_thread_area): ...this.
627 (the_low_target): Remove the op field.
628 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
630 (aarch64_get_thread_area): Turn into...
631 (aarch64_target::low_get_thread_area): ...this.
632 (the_low_target): Remove the op field.
633 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
635 (ppc_get_thread_area): Turn into...
636 (ppc_target::low_get_thread_area): ...this.
637 (the_low_target): Remove the op field.
638 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
640 (s390_get_thread_area): Turn into...
641 (s390_target::low_get_thread_area): ...this.
642 (the_low_target): Remove the op field.
643 * linux-arm-low.cc (the_low_target): Remove the op field.
644 * linux-bfin-low.cc (the_low_target): Ditto.
645 * linux-crisv32-low.cc (the_low_target): Ditto.
646 * linux-m32r-low.cc (the_low_target): Ditto.
647 * linux-m68k-low.cc (the_low_target): Ditto.
648 * linux-sh-low.cc (the_low_target): Ditto.
649 * linux-tic6x-low.cc (the_low_target): Ditto.
650 * linux-tile-low.cc (the_low_target): Ditto.
651 * linux-xtensa-low.cc (the_low_target): Ditto.
653 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655 Remote the 'supports_tracepoints' linux target op and let the
656 concrete linux target define it by overriding the op declared in
657 process_stratum_target.
659 * linux-low.h (struct linux_target_ops): Remove the op.
660 (class linux_process_target) <supports_tracepoints>: Remove.
661 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
662 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
664 (x86_supports_tracepoints): Turn into...
665 (x86_target::supports_tracepoints): ...this.
666 (the_low_target): Remove the op field.
667 * linux-aarch64-low.cc (class aarch64_target)
668 <supports_tracepoints>: Declare.
669 (aarch64_supports_tracepoints): Turn into...
670 (aarch64_target::supports_tracepoints): ...this.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
674 (ppc_supports_tracepoints): Turn into...
675 (ppc_target::supports_tracepoints): ...this.
676 (the_low_target): Remove the op field.
677 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
679 (s390_supports_tracepoints): Turn into...
680 (s390_target::supports_tracepoints): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
692 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Remove the 'process_qsupported' linux target op and let a concrete
695 linux target define the op by overriding the op declaration in
696 process_stratum_target.
698 * linux-low.h (struct linux_target_ops): Remove the op.
699 (class linux_process_target) <process_qsupported>: Remove.
700 * linux-low.cc (linux_process_target::process_qsupported): Remove.
701 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
702 (x86_linux_process_qsupported): Turn into...
703 (x86_target::process_qsupported): ...this.
704 (the_low_target): Remove the op field.
705 * linux-aarch64-low.cc (the_low_target): Remove the op
707 * linux-arm-low.cc (the_low_target): Ditto.
708 * linux-bfin-low.cc (the_low_target): Ditto.
709 * linux-crisv32-low.cc (the_low_target): Ditto.
710 * linux-m32r-low.cc (the_low_target): Ditto.
711 * linux-m68k-low.cc (the_low_target): Ditto.
712 * linux-ppc-low.cc (the_low_target): Ditto.
713 * linux-s390-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
719 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721 Turn the 'prepare_to_resume' linux target op into a method of
722 linux_process_target.
724 * linux-low.h (struct linux_target_ops): Remove the op.
725 (class linux_process_target) <low_prepare_to_resume>: Declare.
726 * linux-low.cc (linux_process_target::low_prepare_to_resume):
729 Update the callers below:
731 (linux_process_target::resume_one_lwp_throw)
732 (linux_process_target::low_prepare_to_resume)
734 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
736 (x86_target::low_prepare_to_resume): Define.
737 (the_low_target): Remove the op field.
738 * linux-aarch64-low.cc (class aarch64_target)
739 <low_prepare_to_resume>: Declare.
740 (aarch64_target::low_prepare_to_resume): Define.
741 (the_low_target): Remove the op field.
742 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
744 (arm_prepare_to_resume): Turn into...
745 (arm_target::low_prepare_to_resume): ...this.
746 (the_low_target): Remove the op field.
747 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
749 (mips_linux_prepare_to_resume): Turn into...
750 (mips_target::low_prepare_to_resume): ...this.
751 (the_low_target): Remove the op field.
752 * linux-bfin-low.cc (the_low_target): Remove the op field.
753 * linux-crisv32-low.cc (the_low_target): Ditto.
754 * linux-m32r-low.cc (the_low_target): Ditto.
755 * linux-m68k-low.cc (the_low_target): Ditto.
756 * linux-ppc-low.cc (the_low_target): Ditto.
757 * linux-s390-low.cc (the_low_target): Ditto.
758 * linux-sh-low.cc (the_low_target): Ditto.
759 * linux-tic6x-low.cc (the_low_target): Ditto.
760 * linux-tile-low.cc (the_low_target): Ditto.
761 * linux-xtensa-low.cc (the_low_target): Ditto.
763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
765 Turn the 'new_process', 'delete_process', 'new_thread',
766 'delete_thread', and 'new_fork' linux target ops into methods
767 of linux_process_target.
769 * linux-low.h (struct linux_target_ops): Remove the ops.
770 (class linux_process_target) <add_linux_process>
775 <check_zombie_leaders>
781 <low_new_fork>: Declare.
782 * linux-low.cc (delete_lwp): Turn into...
783 (linux_process_target::delete_lwp): ...this.
784 (linux_process_target::low_delete_thread): Define.
785 (linux_add_process): Turn into...
786 (linux_process_target::add_linux_process): ...this.
787 (linux_process_target::low_new_process): Define.
788 (linux_process_target::low_delete_process): Define.
789 (linux_process_target::low_new_fork): Define.
790 (add_lwp): Turn into...
791 (linux_process_target::add_lwp): ...this.
792 (linux_process_target::low_new_thread): Define.
793 (linux_attach_lwp): Turn into...
794 (linux_process_target::attach_lwp): ...this.
795 (linux_detach_one_lwp): Turn into...
796 (linux_process_target::detach_one_lwp): ...this.
797 (linux_detach_lwp_callback): Remove and inline...
798 (linux_process_target::detach): ...here.
799 (check_zombie_leaders): Turn into...
800 (linux_process_target::check_zombie_leaders): ...this.
801 (filter_exit_event): Turn into...
802 (linux_process_target::filter_exit_event): ...this.
804 Update the callers below.
806 (linux_process_target::handle_extended_wait)
807 (linux_process_target::create_inferior)
808 (attach_proc_task_lwp_callback)
809 (linux_process_target::attach)
810 (linux_process_target::detach)
811 (linux_process_target::mourn)
812 * thread-db.cc (attach_thread)
814 * linux-x86-low.cc (class x86_target) <low_new_process>
818 <low_new_fork>: Declare.
819 (x86_linux_new_process): Turn into...
820 (x86_target::low_new_process): ...this.
821 (x86_linux_delete_process): Turn into...
822 (x86_target::low_delete_process): ...this.
823 (x86_target::low_new_thread): Define.
824 (x86_target::low_delete_thread): Define.
825 (x86_linux_new_fork): Turn into...
826 (x86_target::low_new_fork): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
832 <low_new_fork>: Declare.
833 (aarch64_linux_new_process): Turn into...
834 (aarch64_target::low_new_process): ...this.
835 (aarch64_linux_delete_process): Turn into...
836 (aarch64_target::low_delete_process): ...this.
837 (aarch64_target::low_new_thread): Define.
838 (aarch64_target::low_delete_thread): Define.
839 (aarch64_linux_new_fork): Turn into...
840 (aarch64_target::low_new_fork): ...this.
841 (the_low_target): Remove the op fields.
842 * linux-arm-low.cc (class arm_target) <low_new_process>
846 <low_new_fork>: Declare.
847 (arm_new_process): Turn into...
848 (arm_target::low_new_process): ...this.
849 (arm_delete_process): Turn into...
850 (arm_target::low_delete_process): ...this.
851 (arm_new_thread): Turn into...
852 (arm_target::low_new_thread): ...this.
853 (arm_delete_thread): Turn into...
854 (arm_target::low_delete_thread): ...this.
855 (arm_new_fork): Turn into...
856 (arm_target::low_new_fork): ...this.
857 (the_low_target): Remove the op fields.
858 * linux-mips-low.cc (class mips_target) <low_new_process>
862 <low_new_fork>: Declare.
863 (mips_linux_new_process): Turn into...
864 (mips_target::low_new_process): ...this.
865 (mips_linux_delete_process): Turn into...
866 (mips_target::low_delete_process): ...this.
867 (mips_linux_new_thread): Turn into...
868 (mips_target::low_new_thread): ...this.
869 (mips_linux_delete_thread): Turn into...
870 (mips_target::low_delete_thread): ...this.
871 (mips_linux_new_fork): Turn into...
872 (mips_target::low_new_fork): ...this.
873 (the_low_target): Remove the op fields.
874 * linux-bfin-low.cc (the_low_target): Remove the op fields.
875 * linux-crisv32-low.cc (the_low_target): Ditto.
876 * linux-m32r-low.cc (the_low_target): Ditto.
877 * linux-m68k-low.cc (the_low_target): Ditto.
878 * linux-ppc-low.cc (the_low_target): Ditto.
879 * linux-s390-low.cc (the_low_target): Ditto.
880 * linux-sh-low.cc (the_low_target): Ditto.
881 * linux-tic6x-low.cc (the_low_target): Ditto.
882 * linux-tile-low.cc (the_low_target): Ditto.
883 * linux-xtensa-low.cc (the_low_target): Ditto.
885 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887 Turn the 'siginfo_fixup' linux target op into a method of
888 linux_process_target.
890 * linux-low.h (struct linux_target_ops): Remove the op.
891 (class linux_process_target) <siginfo_fixup>
892 <low_siginfo_fixup>: Declare.
893 * linux-low.cc (siginfo_fixup): Turn into...
894 (linux_process_target::siginfo_fixup): ...this.
895 (linux_process_target::low_siginfo_fixup): Define.
896 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
897 (x86_siginfo_fixup): Turn into...
898 (x86_target::low_siginfo_fixup): ...this.
899 (the_low_target): Remove the op field.
900 * linux-aarch64-low.cc (class aarch64_target):
901 <low_siginfo_fixup>: Declare.
902 (aarch64_linux_siginfo_fixup): Turn into...
903 (aarch64_target::low_siginfo_fixup): ...this.
904 (the_low_target): Remove the op field.
905 * linux-arm-low.cc (the_low_target): Remove the op field.
906 * linux-bfin-low.cc (the_low_target): Ditto.
907 * linux-crisv32-low.cc (the_low_target): Ditto.
908 * linux-m32r-low.cc (the_low_target): Ditto.
909 * linux-m68k-low.cc (the_low_target): Ditto.
910 * linux-mips-low.cc (the_low_target): Ditto.
911 * linux-ppc-low.cc (the_low_target): Ditto.
912 * linux-s390-low.cc (the_low_target): Ditto.
913 * linux-sh-low.cc (the_low_target): Ditto.
914 * linux-tic6x-low.cc (the_low_target): Ditto.
915 * linux-tile-low.cc (the_low_target): Ditto.
916 * linux-xtensa-low.cc (the_low_target): Ditto.
918 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
921 linux target ops into methods of linux_process_target.
923 * linux-low.h (struct linux_target_ops): Remove the ops.
924 (class linux_process_target) <low_collect_ptrace_register>
925 <low_store_ptrace_register>: Declare.
926 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
927 (linux_process_target::low_supply_ptrace_register): Define.
929 Update the callers below.
931 (linux_process_target::fetch_register)
932 (linux_process_target::store_register)
934 * linux-x86-low.cc (the_low_target): Remove the op fields.
935 * linux-aarch64-low.cc (the_low_target): Ditto.
936 * linux-arm-low.cc (the_low_target): Ditto.
937 * linux-bfin-low.cc (the_low_target): Ditto.
938 * linux-crisv32-low.cc (the_low_target): Ditto.
939 * linux-m32r-low.cc (the_low_target): Ditto.
940 * linux-m68k-low.cc (the_low_target): Ditto.
941 * linux-sh-low.cc (the_low_target): Ditto.
942 * linux-sparc-low.cc (the_low_target): Ditto.
943 * linux-tic6x-low.cc (the_low_target): Ditto.
944 * linux-tile-low.cc (the_low_target): Ditto.
945 * linux-xtensa-low.cc (the_low_target): Ditto.
946 * linux-mips-low.cc (class mips_target)
947 <low_collect_ptrace_register>
948 <low_supply_ptrace_register>: Declare.
949 (mips_collect_ptrace_register): Turn into ...
950 (mips_target::low_collect_ptrace_register): ...this.
951 (mips_supply_ptrace_register): Turn into...
952 (mips_target::low_supply_ptrace_register): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-ppc-low.cc (class ppc_target)
955 <low_collect_ptrace_register>
956 <low_supply_ptrace_register>: Declare.
957 (ppc_collect_ptrace_register): Turn into ...
958 (ppc_target::low_collect_ptrace_register): ...this.
959 (ppc_supply_ptrace_register): Turn into ...
960 (ppc_target::low_supply_ptrace_register): ...this.
961 (ppc_fill_gregset): Update for the calls to
962 low_collect_ptrace_register.
963 (the_low_target): Remove the op fields.
964 * linux-s390-low.cc (class s390_target)
965 <low_collect_ptrace_register>
966 <low_supply_ptrace_register>: Declare.
967 (s390_collect_ptrace_register): Turn into ...
968 (s390_target::low_collect_ptrace_register): ...this.
969 (s390_supply_ptrace_register): Turn into ...
970 (s390_target::low_supply_ptrace_register): ...this.
971 (s390_fill_gregset): Update for the calls to
972 low_collect_ptrace_register.
973 (the_low_target): Remove the op fields.
975 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
978 target ops into methods of linux_process_target.
980 * linux-low.h (struct linux_target_ops): Remove the ops.
981 (class linux_process_target) <check_stopped_by_watchpoint>
982 <low_stopped_by_watchpoint>
983 <low_stopped_data_address>: Declare.
984 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
985 (linux_process_target::check_stopped_by_watchpoint): ...this.
986 (linux_process_target::low_stopped_by_watchpoint): Define.
987 (linux_process_target::low_stopped_data_address): Define.
988 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
989 <low_stopped_data_address>: Declare.
990 (x86_stopped_by_watchpoint): Turn into...
991 (x86_target::low_stopped_by_watchpoint): ...this.
992 (x86_stopped_data_address): Turn into...
993 (x86_target::low_stopped_data_address): ...this.
994 (the_low_target): Remove the op fields.
995 * linux-aarch64-low.cc (class aarch64_target)
996 <low_stopped_by_watchpoint>
997 <low_stopped_data_address>: Declare.
998 (aarch64_stopped_by_watchpoint): Turn into...
999 (aarch64_target::low_stopped_by_watchpoint): ...this.
1000 (aarch64_stopped_data_address): Turn into...
1001 (aarch64_target::low_stopped_data_address): ...this.
1002 (the_low_target): Remove the op fields.
1003 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1004 <low_stopped_data_address>: Declare.
1005 (arm_stopped_by_watchpoint): Turn into...
1006 (arm_target::low_stopped_by_watchpoint): ...this.
1007 (arm_stopped_data_address): Turn into...
1008 (arm_target::low_stopped_data_address): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-crisv32-low.cc (class crisv32_target)
1011 <low_stopped_by_watchpoint>
1012 <low_stopped_data_address>: Declare.
1013 (cris_stopped_by_watchpoint): Turn into...
1014 (crisv32_target::low_stopped_by_watchpoint): ...this.
1015 (cris_stopped_data_address): Turn into...
1016 (crisv32_target::low_stopped_data_address): ...this.
1017 (the_low_target): Remove the op fields.
1018 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1019 <low_stopped_data_address>: Declare.
1020 (mips_stopped_by_watchpoint): Turn into...
1021 (mips_target::low_stopped_by_watchpoint): ...this.
1022 (mips_stopped_data_address): Turn into...
1023 (mips_target::low_stopped_data_address): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1026 * linux-m32r-low.cc (the_low_target): Ditto.
1027 * linux-m68k-low.cc (the_low_target): Ditto.
1028 * linux-ppc-low.cc (the_low_target): Ditto.
1029 * linux-s390-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-sparc-low.cc (the_low_target): Ditto.
1032 * linux-tic6x-low.cc (the_low_target): Ditto.
1033 * linux-tile-low.cc (the_low_target): Ditto.
1034 * linux-xtensa-low.cc (the_low_target): Ditto.
1036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038 Turn the 'insert_point' and 'remove_point' linux target ops into
1039 methods of linux_process_target.
1041 * linux-low.h (struct linux_target_ops): Remove the ops.
1042 (class linux_process_target) <low_insert_point>
1043 <low_remove_point>: Declare.
1044 * linux-low.cc (linux_process_target::low_insert_point)
1045 (linux_process_target::low_remove_point): Define.
1046 (linux_process_target::insert_point)
1047 (linux_process_target::remove_point): Update for calls to
1048 low_insert_point and low_remove_point.
1049 * linux-x86-low.cc (class x86_target) <low_insert_point>
1050 <low_remove_point>: Declare.
1051 (x86_insert_point): Turn into...
1052 (x86_target::low_insert_point): ...this.
1053 (x86_remove_point): Turn into...
1054 (x86_target::low_remove_point): ...this.
1055 (the_low_target): Remove the op fields.
1056 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1057 <low_remove_point>: Declare.
1058 (aarch64_insert_point): Turn into...
1059 (aarch64_target::low_insert_point): ...this.
1060 (aarch64_remove_point): Turn into...
1061 (aarch64_target::low_remove_point): ...this.
1062 (the_low_target): Remove the op fields.
1063 * linux-arm-low.cc (class arm_target) <low_insert_point>
1064 <low_remove_point>: Declare.
1065 (arm_insert_point): Turn into...
1066 (arm_target::low_insert_point): ...this.
1067 (arm_remove_point): Turn into...
1068 (arm_target::low_remove_point): ...this.
1069 (the_low_target): Remove the op fields.
1070 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1071 <low_remove_point>: Declare.
1072 (crisv32_insert_point): Turn into...
1073 (crisv32_target::low_insert_point): ...this.
1074 (crisv32_remove_point): Turn into...
1075 (crisv32_target::low_remove_point): ...this.
1076 (the_low_target): Remove the op fields.
1077 * linux-mips-low.cc (class mips_target) <low_insert_point>
1078 <low_remove_point>: Declare.
1079 (mips_insert_point): Turn into...
1080 (mips_target::low_insert_point): ...this.
1081 (mips_remove_point): Turn into...
1082 (mips_target::low_remove_point): ...this.
1083 (the_low_target): Remove the op fields.
1084 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1085 <low_remove_point>: Declare.
1086 (ppc_insert_point): Turn into...
1087 (ppc_target::low_insert_point): ...this.
1088 (ppc_remove_point): Turn into...
1089 (ppc_target::low_remove_point): ...this.
1090 (the_low_target): Remove the op fields.
1091 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1092 * linux-m32r-low.cc (the_low_target): Ditto.
1093 * linux-m68k-low.cc (the_low_target): Ditto.
1094 * linux-s390-low.cc (the_low_target): Ditto.
1095 * linux-sh-low.cc (the_low_target): Ditto.
1096 * linux-sparc-low.cc (the_low_target): Ditto.
1097 * linux-tic6x-low.cc (the_low_target): Ditto.
1098 * linux-tile-low.cc (the_low_target): Ditto.
1099 * linux-xtensa-low.cc (the_low_target): Ditto.
1101 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103 Remove the 'supports_z_point_type' linux target op and let the
1104 concrete linux target define it by overriding the op declared in
1105 process_stratum_target.
1107 * linux-low.cc (linux_process_target::supports_z_point_type):
1109 * linux-low.h (struct linux_target_ops): Remove the op.
1110 (class linux_process_target) <supports_z_point_type>: Remove.
1111 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1113 (x86_supports_z_point_type): Turn into...
1114 (x86_target::supports_z_point_type): ...this.
1115 (the_low_target): Remove the op field.
1116 * linux-aarch64-low.cc (class aarch64_target)
1117 <supports_z_point_type>: Declare.
1118 (aarch64_supports_z_point_type): Turn into...
1119 (aarch64_target::supports_z_point_type): ...this.
1120 (the_low_target): Remove the op field.
1121 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1123 (arm_supports_z_point_type): Turn into...
1124 (arm_target::supports_z_point_type): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-crisv32-low.cc (class crisv32_target)
1127 <supports_z_point_type>: Declare.
1128 (cris_supports_z_point_type): Turn into...
1129 (crisv32_target::supports_z_point_type): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1133 (mips_supports_z_point_type): Turn into...
1134 (mips_target::supports_z_point_type): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1138 (ppc_supports_z_point_type): Turn into...
1139 (ppc_target::supports_z_point_type): ...this.
1140 (the_low_target): Remove the op field.
1141 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1143 (s390_supports_z_point_type): Turn into...
1144 (s390_target::supports_z_point_type): ...this.
1145 (the_low_target): Remove the op field.
1146 * linux-bfin-low.cc (the_low_target): Remove the op field.
1147 * linux-m32r-low.cc (the_low_target): Ditto.
1148 * linux-m68k-low.cc (the_low_target): Ditto.
1149 * linux-sh-low.cc (the_low_target): Ditto.
1150 * linux-sparc-low.cc (the_low_target): Ditto.
1151 * linux-tic6x-low.cc (the_low_target): Ditto.
1152 * linux-tile-low.cc (the_low_target): Ditto.
1153 * linux-xtensa-low.cc (the_low_target): Ditto.
1155 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1157 Turn the 'breakpoint_at' linux target op into a method of
1158 linux_process_target.
1160 * linux-low.h (struct linux_target_ops): Remove the op.
1161 (class linux_process_target) <low_breakpoint_at>: Declare.
1163 Update the callers below:
1165 * linux-low.cc (linux_process_target::save_stop_reason)
1166 (linux_process_target::thread_still_has_status_pending)
1167 (linux_process_target::wait_1)
1169 * linux-x86-low.cc (class x86_target)
1170 <low_breakpoint_at>: Declare.
1171 (x86_breakpoint_at): Turn into...
1172 (x86_target::low_breakpoint_at): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-aarch64-low.cc (class aarch64_target)
1175 <low_breakpoint_at>: Declare.
1176 (aarch64_breakpoint_at): Turn into...
1177 (aarch64_target::low_breakpoint_at): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-arm-low.cc (class arm_target)
1180 <low_breakpoint_at>: Declare.
1181 (arm_target::low_breakpoint_at): Define.
1182 (the_low_target): Remove the op field.
1183 * linux-bfin-low.cc (class bfin_target)
1184 <low_breakpoint_at>: Declare.
1185 (bfin_breakpoint_at): Turn into...
1186 (bfin_target::low_breakpoint_at): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-cris-low.cc (class cris_target)
1189 <low_breakpoint_at>: Declare.
1190 (cris_breakpoint_at): Turn into...
1191 (cris_target::low_breakpoint_at): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-crisv32-low.cc (class crisv32_target)
1194 <low_breakpoint_at>: Declare.
1195 (crisv32_breakpoint_at): Turn into...
1196 (crisv32_target::low_breakpoint_at): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-ia64-low.cc (class ia64_target)
1199 <low_breakpoint_at>: Declare.
1200 (ia64_target::low_breakpoint_at): Define.
1201 * linux-m32r-low.cc (class m32r_target)
1202 <low_breakpoint_at>: Declare.
1203 (m32r_breakpoint_at): Turn into...
1204 (m32r_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-m68k-low.cc (class m68k_target)
1207 <low_breakpoint_at>: Declare.
1208 (m68k_breakpoint_at): Turn into...
1209 (m68k_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-mips-low.cc (class mips_target)
1212 <low_breakpoint_at>: Declare.
1213 (mips_breakpoint_at): Turn into...
1214 (mips_target::low_breakpoint_at): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-nios2-low.cc (class nios2_target)
1217 <low_breakpoint_at>: Declare.
1218 (nios2_breakpoint_at): Turn into...
1219 (nios2_target::low_breakpoint_at): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-ppc-low.cc (class ppc_target)
1222 <low_breakpoint_at>: Declare.
1223 (ppc_breakpoint_at): Turn into...
1224 (ppc_target::low_breakpoint_at): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-riscv-low.cc (class riscv_target)
1227 <low_breakpoint_at>: Declare.
1228 (riscv_breakpoint_at): Turn into...
1229 (riscv_target::low_breakpoint_at): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-s390-low.cc (class s390_target)
1232 <low_breakpoint_at>: Declare.
1233 (s390_breakpoint_at): Turn into...
1234 (s390_target::low_breakpoint_at): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-sh-low.cc (class sh_target)
1237 <low_breakpoint_at>: Declare.
1238 (sh_breakpoint_at): Turn into...
1239 (sh_target::low_breakpoint_at): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-sparc-low.cc (class sparc_target)
1242 <low_breakpoint_at>: Declare.
1243 (sparc_breakpoint_at): Turn into...
1244 (sparc_target::low_breakpoint_at): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-tic6x-low.cc (class tic6x_target)
1247 <low_breakpoint_at>: Declare.
1248 (tic6x_breakpoint_at): Turn into...
1249 (tic6x_target::low_breakpoint_at): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-tile-low.cc (class tile_target)
1252 <low_breakpoint_at>: Declare.
1253 (tile_breakpoint_at): Turn into...
1254 (tile_target::low_breakpoint_at): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-xtensa-low.cc (class xtensa_target)
1257 <low_breakpoint_at>: Declare.
1258 (xtensa_breakpoint_at): Turn into...
1259 (xtensa_target::low_breakpoint_at): ...this.
1260 (the_low_target): Remove the op field.
1262 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264 Turn the 'decr_pc_after_break' linux_target_ops field into
1265 a method of linux_process_target.
1267 * linux-low.h (struct linux_target_ops)
1268 <decr_pc_after_break>: Remove.
1269 (class linux_process_target) <low_decr_pc_after_break>: New method
1271 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1272 New method implementation.
1274 Update the users below.
1276 (linux_process_target::save_stop_reason)
1277 (linux_process_target::wait_1)
1278 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1280 (x86_target::low_decr_pc_after_break): New method implementation.
1281 (the_low_target): Remove the field.
1282 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1284 (bfin_target::low_decr_pc_after_break): New method implementation.
1285 (the_low_target): Remove the field.
1286 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1288 (m68k_target::low_decr_pc_after_break): New method implementation.
1289 (the_low_target): Remove the field.
1290 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1292 (s390_target::low_decr_pc_after_break): New method implementation.
1293 (the_low_target): Remove the field.
1294 * linux-aarch64-low.cc (the_low_target): Remove the field.
1295 * linux-arm-low.cc (the_low_target): Remove the field.
1296 * linux-cris-low.cc (the_low_target): Remove the field.
1297 * linux-crisv32-low.cc (the_low_target): Remove the field.
1298 * linux-m32r-low.cc (the_low_target): Remove the field.
1299 * linux-mips-low.cc (the_low_target): Remove the field.
1300 * linux-nios2-low.cc (the_low_target): Remove the field.
1301 * linux-ppc-low.cc (the_low_target): Remove the field.
1302 * linux-riscv-low.cc (the_low_target): Remove the field.
1303 * linux-sh-low.cc (the_low_target): Remove the field.
1304 * linux-sparc-low.cc (the_low_target): Remove the field.
1305 * linux-tic6x-low.cc (the_low_target): Remove the field.
1306 * linux-tile-low.cc (the_low_target): Remove the field.
1307 * linux-xtensa-low.cc (the_low_target): Remove the field.
1309 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1311 Remove the 'supports_software_single_step' linux target op and let
1312 the concrete linux target define it by overriding the op in
1313 process_stratum_target.
1314 Turn the 'get_next_pcs' linux target op into a method of
1315 linux_process_target.
1317 * linux-low.h (struct linux_target_ops): Remove the ops.
1318 (class linux_process_target) <supports_software_single_step>:
1320 <low_get_next_pcs>: Declare.
1321 * linux-low.cc (can_software_single_step): Remove.
1322 (linux_process_target::low_get_next_pcs): Define.
1323 (linux_process_target::supports_software_single_step): Remove.
1325 Update the callers below.
1327 (linux_process_target::handle_extended_wait)
1328 (linux_process_target::wait_1)
1329 (linux_process_target::install_software_single_step_breakpoints)
1330 (linux_process_target::single_step)
1331 (linux_process_target::thread_needs_step_over)
1332 (linux_process_target::proceed_one_lwp)
1333 (linux_process_target::supports_range_stepping)
1335 * linux-x86-low.cc (the_low_target): Remove the op field.
1336 * linux-aarch64-low.cc (the_low_target): Ditto.
1337 * linux-bfin-low.cc (the_low_target): Ditto.
1338 * linux-cris-low.cc (the_low_target): Ditto.
1339 * linux-crisv32-low.cc (the_low_target): Ditto.
1340 * linux-m32r-low.cc (the_low_target): Ditto.
1341 * linux-m68k-low.cc (the_low_target): Ditto.
1342 * linux-mips-low.cc (the_low_target): Ditto.
1343 * linux-nios2-low.cc (the_low_target): Ditto.
1344 * linux-ppc-low.cc (the_low_target): Ditto.
1345 * linux-riscv-low.cc (the_low_target): Ditto.
1346 * linux-s390-low.cc (the_low_target): Ditto.
1347 * linux-sh-low.cc (the_low_target): Ditto.
1348 * linux-sparc-low.cc (the_low_target): Ditto.
1349 * linux-tic6x-low.cc (the_low_target): Ditto.
1350 * linux-tile-low.cc (the_low_target): Ditto.
1351 * linux-xtensa-low.cc (the_low_target): Ditto.
1352 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1353 <supports_software_single_step>: Declare.
1354 (arm_target::supports_software_single_step): Define.
1355 (arm_gdbserver_get_next_pcs): Turn into...
1356 (arm_target::low_get_next_pcs): ...this.
1357 (the_low_target): Remove the op field.
1359 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1361 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1362 the concrete linux target define it by overriding the op
1363 in process_stratum_target.
1365 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1367 * linux-low.h (struct linux_target_ops): Remove the op.
1368 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1369 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1371 (x86_sw_breakpoint_from_kind): Turn into...
1372 (x86_target::sw_breakpoint_from_kind): ...this.
1373 (the_low_target): Remove the op field.
1374 * linux-aarch64-low.cc (class aarch64_target)
1375 <sw_breakpoint_from_kind>: Declare.
1376 (aarch64_sw_breakpoint_from_kind): Turn into...
1377 (aarch64_target::sw_breakpoint_from_kind): ...this.
1378 (the_low_target): Remove the op field.
1379 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1381 (arm_target::sw_breakpoint_from_kind): Define.
1382 (the_low_target): Remove the op field.
1383 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1385 (bfin_sw_breakpoint_from_kind): Turn into...
1386 (bfin_target::sw_breakpoint_from_kind): ...this.
1387 (the_low_target): Remove the op field.
1388 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1390 (cris_sw_breakpoint_from_kind): Turn into...
1391 (cris_target::sw_breakpoint_from_kind): ...this.
1392 (the_low_target): Remove the op field.
1393 * linux-crisv32-low.cc (class crisv32_target)
1394 <sw_breakpoint_from_kind>: Declare.
1395 (cris_sw_breakpoint_from_kind): Turn into...
1396 (crisv32_target::sw_breakpoint_from_kind): ...this.
1397 (the_low_target): Remove the op field.
1398 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1400 (ia64_target::sw_breakpoint_from_kind): Define.
1401 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1403 (m32r_sw_breakpoint_from_kind): Turn into...
1404 (m32r_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1408 (m68k_sw_breakpoint_from_kind): Turn into...
1409 (m68k_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1413 (mips_sw_breakpoint_from_kind): Turn into...
1414 (mips_target::sw_breakpoint_from_kind): ...this.
1415 (the_low_target): Remove the op field.
1416 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1418 (nios2_sw_breakpoint_from_kind): Turn into...
1419 (nios2_target::sw_breakpoint_from_kind): ...this.
1420 (the_low_target): Remove the op field.
1421 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1423 (ppc_sw_breakpoint_from_kind): Turn into...
1424 (ppc_target::sw_breakpoint_from_kind): ...this.
1425 (the_low_target): Remove the op field.
1426 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1428 (riscv_sw_breakpoint_from_kind): Turn into...
1429 (riscv_target::sw_breakpoint_from_kind): ...this.
1430 (the_low_target): Remove the op field.
1431 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1433 (s390_sw_breakpoint_from_kind): Turn into...
1434 (s390_target::sw_breakpoint_from_kind): ...this.
1435 (the_low_target): Remove the op field.
1436 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1438 (sh_sw_breakpoint_from_kind): Turn into...
1439 (sh_target::sw_breakpoint_from_kind): ...this.
1440 (the_low_target): Remove the op field.
1441 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1443 (sparc_sw_breakpoint_from_kind): Turn into...
1444 (sparc_target::sw_breakpoint_from_kind): ...this.
1445 (the_low_target): Remove the op field.
1446 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1448 (tic6x_sw_breakpoint_from_kind): Turn into...
1449 (tic6x_target::sw_breakpoint_from_kind): ...this.
1450 (the_low_target): Remove the op field.
1451 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1453 (tile_sw_breakpoint_from_kind): Turn into...
1454 (tile_target::sw_breakpoint_from_kind): ...this.
1455 (the_low_target): Remove the op field.
1456 * linux-xtensa-low.cc (class xtensa_target)
1457 <sw_breakpoint_from_kind>: Declare.
1458 (xtensa_sw_breakpoint_from_kind): Turn into...
1459 (xtensa_target::sw_breakpoint_from_kind): ...this.
1460 (the_low_target): Remove the op field.
1462 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1464 Remove the 'breakpoint_kind_from_pc' and
1465 'breakpoint_kind_from_current_state' linux target ops, and let the
1466 concrete linux target define them by overriding the ops of
1467 process_stratum_target.
1469 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1471 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1472 * linux-low.h (struct linux_target_ops): Remove ops.
1473 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1474 <breakpoint_kind_from_current_state>: Remove.
1475 * linux-x86-low.cc (the_low_target): Remove the op fields.
1476 * linux-bfin-low.cc (the_low_target): Ditto.
1477 * linux-cris-low.cc (the_low_target): Ditto.
1478 * linux-crisv32-low.cc (the_low_target): Ditto.
1479 * linux-m32r-low.cc (the_low_target): Ditto.
1480 * linux-m68k-low.cc (the_low_target): Ditto.
1481 * linux-mips-low.cc (the_low_target): Ditto.
1482 * linux-nios2-low.cc (the_low_target): Ditto.
1483 * linux-ppc-low.cc (the_low_target): Ditto.
1484 * linux-s390-low.cc (the_low_target): Ditto.
1485 * linux-sh-low.cc (the_low_target): Ditto.
1486 * linux-sparc-low.cc (the_low_target): Ditto.
1487 * linux-tic6x-low.cc (the_low_target): Ditto.
1488 * linux-tile-low.cc (the_low_target): Ditto.
1489 * linux-xtensa-low.cc (the_low_target): Ditto.
1490 * linux-aarch64-low.cc (class aarch64_target)
1491 <breakpoint_kind_from_pc>
1492 <breakpoint_kind_from_current_state>: Declare.
1493 (aarch64_breakpoint_kind_from_pc): Turn into...
1494 (aarch64_target::breakpoint_kind_from_pc): ...this.
1495 (aarch64_breakpoint_kind_from_current_state): Turn into...
1496 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1497 (the_low_target): Remove the op fields.
1498 * linux-arm-low.cc (class arm_target):
1499 <breakpoint_kind_from_pc>
1500 <breakpoint_kind_from_current_state>: Declare.
1501 (arm_target::breakpoint_kind_from_pc): Define.
1502 (arm_target::breakpoint_kind_from_current_state): Define.
1503 (the_low_target): Remove the op fields.
1504 * linux-riscv-low.cc (class riscv_target):
1505 <breakpoint_kind_from_pc>: Declare.
1506 (riscv_breakpoint_kind_from_pc): Turn into...
1507 (riscv_target::breakpoint_kind_from_pc): ...this.
1508 (the_low_target): Remove the op fields.
1510 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1513 of linux_process_target.
1515 * linux-low.h (struct linux_target_ops): Remove the ops.
1516 (class linux_process_target) <low_supports_breakpoints>
1518 <low_set_pc>: Declare.
1519 * linux-low.cc (supports_breakpoints): Turn into...
1520 (linux_process_target::low_supports_breakpoints): ...this.
1521 (linux_process_target::low_get_pc): Define.
1522 (linux_process_target::low_set_pc): Define.
1524 Update the callers below.
1526 (linux_process_target::get_pc)
1527 (linux_process_target::save_stop_reason)
1528 (linux_process_target::maybe_move_out_of_jump_pad)
1529 (linux_process_target::wait_1)
1530 (linux_process_target::resume_one_lwp_throw)
1531 (linux_process_target::resume)
1532 (linux_process_target::proceed_all_lwps)
1533 (linux_process_target::read_pc)
1534 (linux_process_target::write_pc)
1536 * linux-x86-low.cc (class linux_process_target)
1537 <low_supports_breakpoints>
1539 <low_set_pc>: Declare.
1540 (x86_target::low_supports_breakpoints): Define.
1541 (x86_get_pc): Turn into...
1542 (x86_target::low_get_pc): ...this.
1543 (x86_set_pc): Turn into...
1544 (x86_target::low_set_pc): ...this.
1545 (the_low_target): Remove the op fields.
1546 * linux-arm-low.cc (class arm_target)
1547 <low_supports_breakpoints>
1549 <low_set_pc>: Declare.
1550 (arm_target::low_supports_breakpoints)
1551 (arm_target::low_get_pc)
1552 (arm_target::low_set_pc): Define.
1553 (the_low_target): Remove the op fields.
1554 * linux-bfin-low.cc (class bfin_target)
1555 <low_supports_breakpoints>
1557 <low_set_pc>: Declare.
1558 (bfin_target::low_supports_breakpoints)
1559 (bfin_target::low_get_pc)
1560 (bfin_target::low_set_pc): Define.
1561 (the_low_target): Remove the op fields.
1562 * linux-cris-low.cc (class cris_target)
1563 <low_supports_breakpoints>
1565 <low_set_pc>: Declare.
1566 (cris_target::low_supports_breakpoints)
1567 (cris_target::low_get_pc)
1568 (cris_target::low_set_pc): Define.
1569 (the_low_target): Remove the op fields.
1570 * linux-crisv32-low.cc (class crisv32_target)
1571 <low_supports_breakpoints>
1573 <low_set_pc>: Declare.
1574 (crisv32_target::low_supports_breakpoints)
1575 (crisv32_target::low_get_pc)
1576 (crisv32_target::low_set_pc): Define.
1577 (the_low_target): Remove the op fields.
1578 * linux-m32r-low.cc (class m32r_target)
1579 <low_supports_breakpoints>
1581 <low_set_pc>: Declare.
1582 (m32r_target::low_supports_breakpoints)
1583 (m32r_target::low_get_pc)
1584 (m32r_target::low_set_pc): Define.
1585 (the_low_target): Remove the op fields.
1586 * linux-m68k-low.cc (class m68k_target)
1587 <low_supports_breakpoints>
1589 <low_set_pc>: Declare.
1590 (m68k_target::low_supports_breakpoints)
1591 (m68k_target::low_get_pc)
1592 (m68k_target::low_set_pc): Define.
1593 (the_low_target): Remove the op fields.
1594 * linux-nios2-low.cc (class nios2_target)
1595 <low_supports_breakpoints>
1597 <low_set_pc>: Declare.
1598 (nios2_target::low_supports_breakpoints)
1599 (nios2_target::low_get_pc)
1600 (nios2_target::low_set_pc): Define.
1601 (the_low_target): Remove the op fields.
1602 * linux-sh-low.cc (class sh_target)
1603 <low_supports_breakpoints>
1605 <low_set_pc>: Declare.
1606 (sh_target::low_supports_breakpoints)
1607 (sh_target::low_get_pc)
1608 (sh_target::low_set_pc): Define.
1609 (the_low_target): Remove the op fields.
1610 * linux-xtensa-low.cc (class xtensa_target)
1611 <low_supports_breakpoints>
1613 <low_set_pc>: Declare.
1614 (xtensa_target::low_supports_breakpoints)
1615 (xtensa_target::low_get_pc)
1616 (xtensa_target::low_set_pc): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-sparc-low.cc (class sparc_target)
1619 <low_supports_breakpoints>
1620 <low_get_pc>: Declare.
1621 (sparc_target::low_supports_breakpoints)
1622 (sparc_target::low_get_pc): Define.
1623 (the_low_target): Remove the op fields.
1624 * linux-tile-low.cc (class tile_target)
1625 <low_supports_breakpoints>
1627 <low_set_pc>: Declare.
1628 (tile_target::low_supports_breakpoints)
1629 (tile_target::low_get_pc)
1630 (tile_target::low_set_pc): Define.
1631 (the_low_target): Remove the op fields.
1632 * linux-aarch64-low.cc (class aarch64_target)
1633 <low_supports_breakpoints>
1635 <low_set_pc>: Declare.
1636 (aarch64_target::low_supports_breakpoints): Define.
1637 (aarch64_get_pc): Turn into...
1638 (aarch64_target::low_get_pc): ...this.
1639 (aarch64_set_pc): Turn into...
1640 (aarch64_target::low_set_pc): ...this.
1641 (the_low_target): Remove the op fields.
1642 * linux-mips-low.cc (class mips_target)
1643 <low_supports_breakpoints>
1645 <low_set_pc>: Declare.
1646 (mips_target::low_supports_breakpoints): Define.
1647 (mips_get_pc): Turn into...
1648 (mips_target::low_get_pc): ...this.
1649 (mips_set_pc): Turn into...
1650 (mips_target::low_set_pc): ...this.
1651 (the_low_target): Remove the op fields.
1652 * linux-ppc-low.cc (class ppc_target)
1653 <low_supports_breakpoints>
1655 <low_set_pc>: Declare.
1656 (ppc_target::low_supports_breakpoints): Define.
1657 (ppc_get_pc): Turn into...
1658 (ppc_target::low_get_pc): ...this.
1659 (ppc_set_pc): Turn into...
1660 (ppc_target::low_set_pc): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-riscv-low.cc (class riscv_target)
1663 <low_supports_breakpoints>
1665 <low_set_pc>: Declare.
1666 (riscv_target::low_supports_breakpoints): Define.
1667 (riscv_get_pc): Turn into...
1668 (riscv_target::low_get_pc): ...this.
1669 (riscv_set_pc): Turn into...
1670 (riscv_target::low_set_pc): ...this.
1671 (the_low_target): Remove the op fields.
1672 * linux-s390-low.cc (class s390_target)
1673 <low_supports_breakpoints>
1675 <low_set_pc>: Declare.
1676 (s390_target::low_supports_breakpoints): Define.
1677 (s390_get_pc): Turn into...
1678 (s390_target::low_get_pc): ...this.
1679 (s390_set_pc): Turn into...
1680 (s390_target::low_set_pc): ...this.
1681 (the_low_target): Remove the op fields.
1682 * linux-tic6x-low.cc (class tic6x_target)
1683 <low_supports_breakpoints>
1685 <low_set_pc>: Declare.
1686 (tic6x_target::low_supports_breakpoints): Define.
1687 (tic6x_get_pc): Turn into...
1688 (tic6x_target::low_get_pc): ...this.
1689 (tic6x_set_pc): Turn into...
1690 (tic6x_target::low_set_pc): ...this.
1691 (the_low_target): Remove the op fields.
1693 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1695 Turn some more static methods in linux-low into private methods
1696 of linux_process_target.
1698 * linux-low.cc (get_pc): Turn into...
1699 (linux_process_target::get_pc): ...this.
1700 (save_stop_reason): Turn into...
1701 (linux_process_target::save_stop_reason): ...this.
1702 (thread_still_has_status_pending_p): Turn into...
1703 (linux_process_target::thread_still_has_status_pending): ...this.
1704 (status_pending_p_callback): Turn into...
1705 (linux_process_target::status_pending_p_callback): ...this.
1706 (resume_stopped_resumed_lwps): Turn into...
1707 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1708 (install_software_single_step_breakpoints): Turn into...
1709 (linux_process_target::install_software_single_step_breakpoints):
1711 (single_step): Turn into...
1712 (linux_process_target::single_step): ...this.
1713 (linux_resume_one_lwp_throw): Turn into...
1714 (linux_process_target::resume_one_lwp_throw): ...this.
1715 (linux_resume_one_lwp): Turn into...
1716 (linux_process_target::resume_one_lwp): ...this.
1717 (resume_status_pending_p): Turn into...
1718 (linux_process_target::resume_status_pending): ...this.
1719 (need_step_over_p): Turn into...
1720 (linux_process_target::thread_needs_step_over): ...this.
1721 (linux_resume_one_thread): Turn into...
1722 (linux_process_target::resume_one_thread): ...this.
1723 (proceed_one_lwp): Turn into...
1724 (linux_process_target::proceed_one_lwp): ...this.
1725 (unsuspend_and_proceed_one_lwp): Turn into...
1726 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1728 Update the calls/references to the above functions below.
1730 (linux_process_target::handle_extended_wait)
1731 (linux_process_target::filter_event)
1732 (linux_process_target::wait_for_event_filtered)
1733 (linux_process_target::wait_1)
1734 (linux_process_target::move_out_of_jump_pad)
1735 (linux_process_target::start_step_over)
1736 (linux_process_target::resume)
1737 (linux_process_target::proceed_all_lwps)
1738 (regsets_store_inferior_registers)
1739 (linux_process_target::store_register)
1741 * linux-low.h (class linux_process_target)
1744 <thread_still_has_status_pending>
1745 <status_pending_p_callback>
1746 <resume_stopped_resumed_lwps>
1747 <install_software_single_step_breakpoints>
1749 <resume_one_lwp_throw>
1751 <resume_status_pending>
1752 <thread_needs_step_over>
1755 <unsuspend_and_proceed_one_lwp>: Declare.
1757 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1759 Turn the 'fetch_register' linux target op into a method of
1760 linux_process_target.
1762 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1763 (class linux_process_target) <low_fetch_register>: Declare.
1764 * linux-x86-low.cc (the_low_target)
1765 * linux-aarch64-low.cc (the_low_target)
1766 * linux-arm-low.cc (the_low_target)
1767 * linux-bfin-low.cc (the_low_target)
1768 * linux-cris-low.cc (the_low_target)
1769 * linux-crisv32-low.cc (the_low_target)
1770 * linux-m32r-low.cc (the_low_target)
1771 * linux-m68k-low.cc (the_low_target)
1772 * linux-nios2-low.cc (the_low_target)
1773 * linux-ppc-low.cc (the_low_target)
1774 * linux-s390-low.cc (the_low_target)
1775 * linux-sh-low.cc (the_low_target)
1776 * linux-sparc-low.cc (the_low_target)
1777 * linux-tic6x-low.cc (the_low_target)
1778 * linux-tile-low.cc (the_low_target)
1779 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1780 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1782 (ia64_fetch_register): Turn into...
1783 (ia64_target::low_fetch_register): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1787 (mips_fetch_register): Turn into...
1788 (mips_target::low_fetch_register): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1792 (riscv_fetch_register): Turn into...
1793 (riscv_target::low_fetch_register): ...this.
1794 (the_low_target): Remove the op field.
1796 Update the callers below.
1798 * linux-low.cc (linux_process_target::fetch_registers)
1799 (linux_process_target::low_fetch_register)
1801 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1803 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1804 linux target ops into methods of linux_process_target.
1806 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1807 (class linux_process_target) <fetch_register>
1809 <usr_fetch_inferior_registers>
1810 <usr_store_inferior_registers>
1811 <low_cannot_fetch_register>
1812 <low_cannot_fetch_register> Declare.
1813 * linux-low.cc (fetch_register): Turn into...
1814 (linux_process_target::fetch_register): ...this.
1815 (store_register): Turn into ...
1816 (linux_process_target::store_register): ...this.
1817 (usr_fetch_inferior_registers): Turn into...
1818 (linux_process_target::usr_fetch_inferior_registers): ...this.
1819 (usr_store_inferior_registers): Turn into...
1820 (linux_process_target::usr_store_inferior_registers): ...this.
1821 * linux-x86-low.cc (class x86_target)
1822 <low_cannot_fetch_register>
1823 <low_cannot_store_register>: Declare.
1824 (x86_cannot_store_register): Turn into...
1825 (x86_target::low_cannot_store_register): ...this.
1826 (x86_cannot_fetch_register): Turn into...
1827 (x86_target::low_cannot_fetch_register): ...this.
1828 (the_low_target): Remove the target op fields.
1829 * linux-aarch64-low.cc (class aarch64_target)
1830 <low_cannot_fetch_register>
1831 <low_cannot_store_register>: Declare.
1832 (aarch64_target::low_cannot_fetch_register)
1833 (aarch64_target::low_cannot_store_register): Define.
1834 (the_low_target): Remove the op fields.
1835 * linux-arm-low.cc (class arm_target)
1836 <low_cannot_fetch_register>
1837 <low_cannot_store_register>: Declare.
1838 (arm_cannot_fetch_register): Turn into...
1839 (arm_target::low_cannot_fetch_register): ...this.
1840 (arm_cannot_store_register): Turn into...
1841 (arm_target::low_cannot_store_register): ...this.
1842 (the_low_target): Remove the op fields.
1843 * linux-bfin-low.cc (class bfin_target)
1844 <low_cannot_fetch_register>
1845 <low_cannot_store_register>: Declare.
1846 (bfin_cannot_fetch_register): Turn into...
1847 (bfin_target::low_cannot_fetch_register): ...this.
1848 (bfin_cannot_store_register): Turn into...
1849 (bfin_target::low_cannot_store_register): ...this.
1850 (the_low_target): Remove the op fields.
1851 * linux-cris-low.cc (class cris_target)
1852 <low_cannot_fetch_register>
1853 <low_cannot_store_register>: Declare.
1854 (cris_cannot_fetch_register): Turn into...
1855 (cris_target::low_cannot_fetch_register): ...this.
1856 (cris_cannot_store_register): Turn into...
1857 (cris_target::low_cannot_store_register): ...this.
1858 (the_low_target): Remove the op fields.
1859 * linux-crisv32-low.cc (class crisv32_target)
1860 <low_cannot_fetch_register>
1861 <low_cannot_store_register>: Declare.
1862 (crisv32_target::low_cannot_fetch_register)
1863 (crisv32_target::low_cannot_store_register): Define.
1864 (the_low_target): Remove the op fields.
1865 * linux-ia64-low.cc (class ia64_target)
1866 <low_cannot_fetch_register>
1867 <low_cannot_store_register>: Declare.
1868 (ia64_cannot_fetch_register): Turn into...
1869 (ia64_target::low_cannot_fetch_register): ...this.
1870 (ia64_cannot_store_register): Turn into...
1871 (ia64_target::low_cannot_store_register): ...this.
1872 (the_low_target): Remove the op fields.
1873 * linux-m32r-low.cc (class m32r_target)
1874 <low_cannot_fetch_register>
1875 <low_cannot_store_register>: Declare.
1876 (m32r_cannot_fetch_register): Turn into...
1877 (m32r_target::low_cannot_fetch_register): ...this.
1878 (m32r_cannot_store_register): Turn into...
1879 (m32r_target::low_cannot_store_register): ...this.
1880 (the_low_target): Remove the op fields.
1881 * linux-m68k-low.cc (class m68k_target)
1882 <low_cannot_fetch_register>
1883 <low_cannot_store_register>: Declare.
1884 (m68k_cannot_fetch_register): Turn into...
1885 (m68k_target::low_cannot_fetch_register): ...this.
1886 (m68k_cannot_store_register): Turn into...
1887 (m68k_target::low_cannot_store_register): ...this.
1888 (the_low_target): Remove the op fields.
1889 * linux-mips-low.cc (class mips_target)
1890 <low_cannot_fetch_register>
1891 <low_cannot_store_register>: Declare.
1892 (mips_cannot_fetch_register): Turn into...
1893 (mips_target::low_cannot_fetch_register): ...this.
1894 (mips_cannot_store_register): Turn into...
1895 (mips_target::low_cannot_store_register): ...this.
1896 (get_usrregs_info): Inline at the call sites in
1897 low_cannot_fetch_register and low_cannot_store_register,
1899 (the_low_target): Remove the op fields.
1900 * linux-nios2-low.cc (class nios2_target)
1901 <low_cannot_fetch_register>
1902 <low_cannot_store_register>: Declare.
1903 (nios2_cannot_fetch_register): Turn into...
1904 (nios2_target::low_cannot_fetch_register): ...this.
1905 (nios2_cannot_store_register): Turn into...
1906 (nios2_target::low_cannot_store_register): ...this.
1907 (the_low_target): Remove the op fields.
1908 * linux-ppc-low.cc (class ppc_target)
1909 <low_cannot_fetch_register>
1910 <low_cannot_store_register>: Declare.
1911 (ppc_cannot_fetch_register): Turn into...
1912 (ppc_target::low_cannot_fetch_register): ...this.
1913 (ppc_cannot_store_register): Turn into...
1914 (ppc_target::low_cannot_store_register): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-riscv-low.cc (class riscv_target)
1917 <low_cannot_fetch_register>
1918 <low_cannot_store_register>: Declare.
1919 (riscv_target::low_cannot_fetch_register)
1920 (riscv_target::low_cannot_store_register): Define.
1921 (the_low_target): Remove the op fields.
1922 * linux-s390-low.cc (class s390_target)
1923 <low_cannot_fetch_register>
1924 <low_cannot_store_register>: Declare.
1925 (s390_cannot_fetch_register): Turn into...
1926 (s390_target::low_cannot_fetch_register): ...this.
1927 (s390_cannot_store_register): Turn into...
1928 (s390_target::low_cannot_store_register): ...this.
1929 (the_low_target): Remove the op fields.
1930 * linux-sh-low.cc (class sh_target)
1931 <low_cannot_fetch_register>
1932 <low_cannot_store_register>: Declare.
1933 (sh_cannot_fetch_register): Turn into...
1934 (sh_target::low_cannot_fetch_register): ...this.
1935 (sh_cannot_store_register): Turn into...
1936 (sh_target::low_cannot_store_register): ...this.
1937 (the_low_target): Remove the op fields.
1938 * linux-sparc-low.cc (class sparc_target)
1939 <low_cannot_fetch_register>
1940 <low_cannot_store_register>: Declare.
1941 (sparc_cannot_fetch_register): Turn into...
1942 (sparc_target::low_cannot_fetch_register): ...this.
1943 (sparc_cannot_store_register): Turn into...
1944 (sparc_target::low_cannot_store_register): ...this.
1945 (the_low_target): Remove the op fields.
1946 * linux-tic6x-low.cc (class tic6x_target)
1947 <low_cannot_fetch_register>
1948 <low_cannot_store_register>: Declare.
1949 (tic6x_cannot_fetch_register): Turn into...
1950 (tic6x_target::low_cannot_fetch_register): ...this.
1951 (tic6x_cannot_store_register): Turn into...
1952 (tic6x_target::low_cannot_store_register): ...this.
1953 (the_low_target): Remove the op fields.
1954 * linux-tile-low.cc (class tile_target)
1955 <low_cannot_fetch_register>
1956 <low_cannot_store_register>: Declare.
1957 (tile_cannot_fetch_register): Turn into...
1958 (tile_target::low_cannot_fetch_register): ...this.
1959 (tile_cannot_store_register): Turn into...
1960 (tile_target::low_cannot_store_register): ...this.
1961 (the_low_target): Remove the op fields.
1962 * linux-xtensa-low.cc (class xtensa_target)
1963 <low_cannot_fetch_register>
1964 <low_cannot_store_register>: Declare.
1965 (xtensa_target::low_cannot_fetch_register)
1966 (xtensa_target::low_cannot_store_register): Define.
1967 (the_low_target): Remove the op fields.
1969 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971 Turn the 'regs_info' linux target op into a method of
1972 linux_process_target.
1974 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1975 (class linux_process_target) <get_regs_info>: Define.
1977 Update the callers below.
1979 * linux-low.cc (linux_process_target::fetch_registers)
1980 (linux_process_target::store_registers)
1981 * proc-service.cc (gregset_info)
1983 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1984 (x86_linux_regs_info): Turn into ...
1985 (x86_target::get_regs_info): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1989 (aarch64_regs_info): Turn into ...
1990 (aarch64_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1993 (arm_regs_info): Turn into ...
1994 (arm_target::get_regs_info): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1997 (bfin_regs_info): Turn into ...
1998 (bfin_target::get_regs_info): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2001 (cris_regs_info): Turn into ...
2002 (cris_target::get_regs_info): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2006 (crisv32_regs_info): Turn into ...
2007 (crisv32_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2010 (ia64_regs_info): Turn into ...
2011 (ia64_target::get_regs_info): ...this.
2012 (the_low_target): Remove the op field.
2013 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2014 (m32r_regs_info): Turn into ...
2015 (m32r_target::get_regs_info): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2018 (m68k_regs_info): Turn into ...
2019 (m68k_target::get_regs_info): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2022 (mips_regs_info): Turn into ...
2023 (mips_target::get_regs_info): ...this.
2024 (the_low_target): Remove the op field.
2025 (get_usrregs_info): Update the call to the op.
2026 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2027 (nios2_regs_info): Turn into ...
2028 (nios2_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2031 (ppc_regs_info): Turn into ...
2032 (ppc_target::get_regs_info): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2035 (riscv_regs_info): Turn into ...
2036 (riscv_target::get_regs_info): ...this.
2037 (the_low_target): Remove the op field.
2038 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2039 (s390_regs_info): Turn into ...
2040 (s390_target::get_regs_info): ...this.
2041 (the_low_target): Remove the op field.
2042 (s390_collect_ptrace_register)
2043 (s390_supply_ptrace_register)
2044 (s390_fill_gregset): Update the call to the op.
2045 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2046 (sh_regs_info): Turn into ...
2047 (sh_target::get_regs_info): ...this.
2048 (the_low_target): Remove the op field.
2049 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2050 (sparc_regs_info): Turn into ...
2051 (sparc_target::get_regs_info): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2054 (tic6x_regs_info): Turn into ...
2055 (tic6x_target::get_regs_info): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2058 (tile_regs_info): Turn into ...
2059 (tile_target::get_regs_info): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2063 (xtensa_regs_info): Turn into ...
2064 (xtensa_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2067 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069 Turn the 'arch_setup' linux target op into a method of
2070 linux_process_target.
2072 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2073 (class linux_process_target) <arch_setup_thread>
2074 <low_arch_setup>: New declarations.
2075 * linux-low.cc (linux_arch_setup): Delete.
2076 (linux_arch_setup_thread): Turn into...
2077 (linux_process_target::arch_setup_thread): ... this.
2079 Update the callers below.
2081 (linux_process_target::handle_extended_wait)
2082 (linux_process_target::post_create_inferior)
2083 (linux_process_target::filter_event)
2085 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2087 (x86_linux_update_xmltarget): Turn into...
2088 (x86_target::update_xmltarget): ...this.
2089 (x86_linux_process_qsupported): Update the call to
2090 x86_linux_update_xmltarget.
2091 (x86_arch_setup): Turn into ...
2092 (x86_target::low_arch_setup): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2096 (aarch64_arch_setup): Turn into ...
2097 (aarch64_target::low_arch_setup): ...this.
2098 (the_low_target): Remove the op field.
2099 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2101 (arm_arch_setup): Turn into ...
2102 (arm_target::low_arch_setup): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2106 (bfin_arch_setup): Turn into ...
2107 (bfin_target::low_arch_setup): ...this.
2108 (the_low_target): Remove the op field.
2109 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2111 (cris_arch_setup): Turn into ...
2112 (cris_target::low_arch_setup): ...this.
2113 (the_low_target): Remove the op field.
2114 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2116 (crisv32_arch_setup): Turn into ...
2117 (crisv32_target::low_arch_setup): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2121 (ia64_arch_setup): Turn into ...
2122 (ia64_target::low_arch_setup): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2126 (m32r_arch_setup): Turn into ...
2127 (m32r_target::low_arch_setup): ...this.
2128 (the_low_target): Remove the op field.
2129 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2131 (m68k_arch_setup): Turn into ...
2132 (m68k_target::low_arch_setup): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2136 (mips_arch_setup): Turn into ...
2137 (mips_target::low_arch_setup): ...this.
2138 (the_low_target): Remove the op field.
2139 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2141 (nios2_arch_setup): Turn into ...
2142 (nios2_target::low_arch_setup): ...this.
2143 (the_low_target): Remove the op field.
2144 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2146 (ppc_arch_setup): Turn into ...
2147 (ppc_target::low_arch_setup): ...this.
2148 (the_low_target): Remove the op field.
2149 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2151 (riscv_arch_setup): Turn into ...
2152 (riscv_target::low_arch_setup): ...this.
2153 (the_low_target): Remove the op field.
2154 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2156 (s390_arch_setup): Turn into ...
2157 (s390_target::low_arch_setup): ...this.
2158 (the_low_target): Remove the op field.
2159 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2161 (sh_arch_setup): Turn into ...
2162 (sh_target::low_arch_setup): ...this.
2163 (the_low_target): Remove the op field.
2164 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2166 (sparc_arch_setup): Turn into ...
2167 (sparc_target::low_arch_setup): ...this.
2168 (the_low_target): Remove the op field.
2169 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2171 (tic6x_arch_setup): Turn into ...
2172 (tic6x_target::low_arch_setup): ...this.
2173 (the_low_target): Remove the op field.
2174 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2176 (tile_arch_setup): Turn into ...
2177 (tile_target::low_arch_setup): ...this.
2178 (the_low_target): Remove the op field.
2179 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2181 (xtensa_arch_setup): Turn into ...
2182 (xtensa_target::low_arch_setup): ...this.
2183 (the_low_target): Remove the op field.
2185 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2187 * linux-low.h (the_linux_target): New extern declaration.
2188 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2190 (the_linux_target): Remove.
2191 * linux-x86-low.cc (class x86_target): New class.
2192 (the_x86_target): New static object.
2193 (the_linux_target): Define as pointer to the_x86_target.
2194 * linux-aarch64-low.cc (class aarch64_target): New class.
2195 (the_aarch64_target): New static object.
2196 (the_linux_target): Define as pointer to the_aarch64_target.
2197 * linux-arm-low.cc (class arm_target): New class.
2198 (the_arm_target): New static object.
2199 (the_linux_target): Define as pointer to the_arm_target.
2200 * linux-bfin-low.cc (class bfin_target): New class.
2201 (the_bfin_target): New static object.
2202 (the_linux_target): Define as pointer to the_bfin_target.
2203 * linux-cris-low.cc (class cris_target): New class.
2204 (the_cris_target): New static object.
2205 (the_linux_target): Define as pointer to the_cris_target.
2206 * linux-crisv32-low.cc (class crisv32_target): New class.
2207 (the_crisv32_target): New static object.
2208 (the_linux_target): Define as pointer to the_crisv32_target.
2209 * linux-ia64-low.cc (class ia64_target): New class.
2210 (the_ia64_target): New static object.
2211 (the_linux_target): Define as pointer to the_ia64_target.
2212 * linux-m32r-low.cc (class m32r_target): New class.
2213 (the_m32r_target): New static object.
2214 (the_linux_target): Define as pointer to the_m32r_target.
2215 * linux-m68k-low.cc (class m68k_target): New class.
2216 (the_m68k_target): New static object.
2217 (the_linux_target): Define as pointer to the_m68k_target.
2218 * linux-mips-low.cc (class mips_target): New class.
2219 (the_mips_target): New static object.
2220 (the_linux_target): Define as pointer to the_mips_target.
2221 * linux-nios2-low.cc (class nios2_target): New class.
2222 (the_nios2_target): New static object.
2223 (the_linux_target): Define as pointer to the_nios2_target.
2224 * linux-ppc-low.cc (class ppc_target): New class.
2225 (the_ppc_target): New static object.
2226 (the_linux_target): Define as pointer to the_ppc_target.
2227 * linux-riscv-low.cc (class riscv_target): New class.
2228 (the_riscv_target): New static object.
2229 (the_linux_target): Define as pointer to the_riscv_target.
2230 * linux-s390-low.cc (class s390_target): New class.
2231 (the_s390_target): New static object.
2232 (the_linux_target): Define as pointer to the_s390_target.
2233 * linux-sh-low.cc (class sh_target): New class.
2234 (the_sh_target): New static object.
2235 (the_linux_target): Define as pointer to the_sh_target.
2236 * linux-sparc-low.cc (class sparc_target): New class.
2237 (the_sparc_target): New static object.
2238 (the_linux_target): Define as pointer to the_sparc_target.
2239 * linux-tic6x-low.cc (class tic6x_target): New class.
2240 (the_tic6x_target): New static object.
2241 (the_linux_target): Define as pointer to the_tic6x_target.
2242 * linux-tile-low.cc (class tile_target): New class.
2243 (the_tile_target): New static object.
2244 (the_linux_target): Define as pointer to the_tile_target.
2245 * linux-xtensa-low.cc (class xtensa_target): New class.
2246 (the_xtensa_target): New static object.
2247 (the_linux_target): Define as pointer to the_xtensa_target.
2249 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2251 Turn some static functions in linux-low.cc into private methods of
2252 linux_process_target.
2254 * linux-low.cc (handle_extended_wait): Turn into ...
2255 (linux_process_target::handle_extended_wait): ...this. Call
2256 'mourn' on 'this' object instead of 'the_target'.
2257 (maybe_move_out_of_jump_pad): Turn into...
2258 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2259 (linux_low_filter_event): Turn into...
2260 (linux_process_target::filter_event): ...this.
2261 (linux_wait_for_event_filtered): Turn into...
2262 (linux_process_target::wait_for_event_filtered): ...this.
2263 (linux_wait_for_event): Turn into...
2264 (linux_process_target::wait_for_event): ...this.
2265 (linux_wait_1): Turn into...
2266 (linux_process_target::wait_1): ...this.
2267 (wait_for_sigstop): Turn into...
2268 (linux_process_target::wait_for_sigstop): ...this.
2269 (move_out_of_jump_pad_callback): Turn into...
2270 (linux_process_target::move_out_of_jump_pad): ...this.
2271 (stop_all_lwps): Turn into...
2272 (linux_process_target::stop_all_lwps): ...this.
2273 (start_step_over): Turn into...
2274 (linux_process_target::start_step_over): ...this.
2275 (complete_ongoing_step_over): Turn into...
2276 (linux_process_target::complete_ongoing_step_over): ...this.
2277 (proceed_all_lwps): Turn into...
2278 (linux_process_target::proceed_all_lwps): ...this.
2279 (unstop_all_lwps): Turn into...
2280 (linux_process_target::unstop_all_lwps): ...this.
2282 * linux-low.h (class linux_process_target)
2283 <handle_extended_wait>
2284 <maybe_move_out_of_jump_pad>
2286 <wait_for_event_filtered>
2290 <move_out_of_jump_pad>
2293 <complete_ongoing_step_over>
2295 <unstop_all_lwps>: Declare.
2297 Update the callers below.
2299 * linux-low.cc (linux_process_target::attach): Update.
2300 (linux_process_target::stabilize_threads): Ditto.
2301 (linux_process_target::wait): Ditto.
2303 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2305 * linux-low.h (struct linux_target_ops): Update the comment for
2306 'cannot_store_register' to return 0 or 1.
2307 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2310 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2312 * config.in: Re-generate.
2313 * configure: Re-generate.
2315 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2317 * regcache.cc (find_register_by_number): Update.
2318 * tdesc.cc (init_target_desc): Likewise.
2319 * tdesc.h (target_desc::reg_defs): Likewise.
2321 2020-03-12 Tom Tromey <tom@tromey.com>
2323 * configure: Rebuild.
2324 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2325 (WIN32APILIBS): New subst.
2326 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2328 (gdbsupport/%.o): Remove target.
2329 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2330 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2331 (WIN32APILIBS): New variable.
2332 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2333 (gdbreplay$(EXEEXT)): Likewise.
2335 2020-03-12 Tom Tromey <tom@tromey.com>
2337 * config.in, configure: Rebuild.
2338 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2339 * acinclude.m4: Include gettext-sister.m4.
2340 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2342 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2343 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2345 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2347 * acinclude.m4: Update path to selftest.m4.
2349 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2351 * configure.ac: Don't source bfd/development.sh, move
2352 GDB_AC_COMMON higher.
2353 * configure: Re-generate.
2355 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2357 * configure: Re-generate.
2359 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2361 * configure: Re-generate.
2363 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2365 * .dir-locals.el: New file.
2367 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369 * .gitattributes: New file.
2371 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2373 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2374 reply into an S reply.
2375 * server.cc (disable_packet_T): New global.
2376 (captured_main): Set new global when appropriate.
2377 * server.h (disable_packet_T): Declare.
2379 2020-02-21 Tom Tromey <tom@tromey.com>
2381 * Makefile.in (mostlyclean): New target.
2383 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2385 * target.h (struct process_stratum_target): Remove.
2386 (class process_target): Rename to ...
2387 (class process_stratum_target): ... this.
2388 * linux-low.h (class linux_process_target): Derive from
2389 'process_stratum_target'.
2390 * linux-low.cc (linux_target_ops): Remove.
2391 (initialize_low): Set the_target to the singleton instance of
2392 linux_process_target.
2393 * lynx-low.h (class lynx_process_target): Derive from
2394 'process_stratum_target'.
2395 * lynx-low.cc (lynx_target_ops): Remove.
2396 (initialize_low): Set the_target to the singleton instance of
2397 lynx_process_target.
2398 * nto-low.h (class nto_process_target): Derive from
2399 'process_stratum_target'.
2400 * nto-low.cc (nto_target_ops): Remove.
2401 (initialize_low): Set the_target to the singleton instance of
2403 * win32-low.h (class win32_process_target): Derive from
2404 'process_stratum_target'.
2405 * win32-low.cc (win32_target_ops): Remove.
2406 (initialize_low): Set the_target to the singleton instance of
2407 win32_process_target.
2409 Replace 'the_target->pt' with 'the_target' in the uses below.
2411 * hostio.cc (hostio_error)
2416 * linux-aarch32-low.cc (arm_breakpoint_at)
2417 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2418 * linux-arm-low.cc (arm_sigreturn_next_pc)
2420 (arm_get_syscall_trapinfo)
2421 * linux-cris-low.cc (cris_breakpoint_at)
2422 * linux-crisv32-low.cc (cris_breakpoint_at)
2423 * linux-low.cc (handle_extended_wait)
2426 (linux_process_target::breakpoint_kind_from_pc)
2428 * linux-m32r-low.cc (m32r_breakpoint_at)
2429 * linux-mips-low.cc (mips_breakpoint_at)
2430 * linux-nios2-low.cc (nios2_breakpoint_at)
2431 * linux-ppc-low.cc (ppc_breakpoint_at)
2432 * linux-s390-low.cc (s390_get_hwcap)
2433 * linux-sh-low.cc (sh_breakpoint_at)
2434 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2435 (sparc_store_gregset_from_stack)
2436 (sparc_breakpoint_at)
2437 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2438 * linux-tile-low.cc (tile_breakpoint_at)
2439 * linux-x86-low.cc (x86_breakpoint_at)
2440 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2441 * mem-break.cc (bp_size)
2443 (insert_memory_breakpoint)
2444 (set_raw_breakpoint_at)
2445 (delete_raw_breakpoint)
2447 (uninsert_raw_breakpoint)
2448 (reinsert_raw_breakpoint)
2449 (validate_inserted_breakpoint)
2450 * regcache.cc (regcache_read_pc)
2452 * remote-utils.cc (putpkt_binary_1)
2455 (prepare_resume_reply)
2456 * server.cc (handle_general_set)
2459 (handle_qxfer_exec_file)
2460 (handle_qxfer_libraries_svr4)
2461 (handle_qxfer_osdata)
2462 (handle_qxfer_siginfo)
2463 (handle_qxfer_fdpic)
2467 (queue_stop_reply_callback)
2469 * target.cc (prepare_to_access_memory)
2470 (done_accessing_memory)
2471 (read_inferior_memory)
2472 (target_write_memory)
2473 (target_stop_and_wait)
2475 (target_mourn_inferior)
2476 (target_continue_no_signal)
2478 (target_supports_multi_process)
2481 (target_create_inferior)
2482 (target_post_create_inferior)
2484 (target_supports_fork_events)
2485 (target_supports_vfork_events)
2486 (target_supports_exec_events)
2487 (target_handle_new_gdb_connection)
2490 (fetch_inferior_registers)
2491 (store_inferior_registers)
2493 (target_supports_non_stop)
2495 (target_process_qsupported)
2496 (target_supports_catch_syscall)
2497 (target_get_ipa_tdesc_idx)
2498 (target_supports_tracepoints)
2499 (target_supports_fast_tracepoints)
2500 (target_get_min_fast_tracepoint_insn_len)
2501 (target_thread_stopped)
2503 (target_unpause_all)
2504 (target_stabilize_threads)
2505 (target_install_fast_tracepoint_jump_pad)
2507 (target_supports_disable_randomization)
2508 (target_supports_agent)
2509 (target_enable_btrace)
2510 (target_disable_btrace)
2511 (target_read_btrace)
2512 (target_read_btrace_conf)
2513 (target_supports_range_stepping)
2514 (target_supports_stopped_by_sw_breakpoint)
2515 (target_stopped_by_sw_breakpoint)
2516 (target_supports_stopped_by_hw_breakpoint)
2517 (target_supports_hardware_single_step)
2518 (target_stopped_by_hw_breakpoint)
2519 (target_breakpoint_kind_from_pc)
2520 (target_breakpoint_kind_from_current_state)
2521 (target_supports_software_single_step)
2522 (target_core_of_thread)
2523 (target_thread_name)
2524 (target_thread_handle)
2525 * win32-low.cc (do_initial_child_stuff)
2527 Rename target op default definitions listed below.
2529 * target.cc (process_target::post_create_inferior): Rename as ...
2530 (process_stratum_target::post_create_inferior): ... this.
2531 (process_target::prepare_to_access_memory): Rename as ...
2532 (process_stratum_target::prepare_to_access_memory): ... this.
2533 (process_target::done_accessing_memory): Rename as ...
2534 (process_stratum_target::done_accessing_memory): ... this.
2535 (process_target::look_up_symbols): Rename as ...
2536 (process_stratum_target::look_up_symbols): ... this.
2537 (process_target::supports_read_auxv): Rename as ...
2538 (process_stratum_target::supports_read_auxv): ... this.
2539 (process_target::read_auxv): Rename as ...
2540 (process_stratum_target::read_auxv): ... this.
2541 (process_target::supports_z_point_type): Rename as ...
2542 (process_stratum_target::supports_z_point_type): ... this.
2543 (process_target::insert_point): Rename as ...
2544 (process_stratum_target::insert_point): ... this.
2545 (process_target::remove_point): Rename as ...
2546 (process_stratum_target::remove_point): ... this.
2547 (process_target::stopped_by_sw_breakpoint): Rename as ...
2548 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2549 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2550 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2551 (process_target::stopped_by_hw_breakpoint): Rename as ...
2552 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2553 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2554 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2555 (process_target::supports_hardware_single_step): Rename as ...
2556 (process_stratum_target::supports_hardware_single_step): ... this.
2557 (process_target::stopped_by_watchpoint): Rename as ...
2558 (process_stratum_target::stopped_by_watchpoint): ... this.
2559 (process_target::stopped_data_address): Rename as ...
2560 (process_stratum_target::stopped_data_address): ... this.
2561 (process_target::supports_read_offsets): Rename as ...
2562 (process_stratum_target::supports_read_offsets): ... this.
2563 (process_target::read_offsets): Rename as ...
2564 (process_stratum_target::read_offsets): ... this.
2565 (process_target::supports_get_tls_address): Rename as ...
2566 (process_stratum_target::supports_get_tls_address): ... this.
2567 (process_target::get_tls_address): Rename as ...
2568 (process_stratum_target::get_tls_address): ... this.
2569 (process_target::hostio_last_error): Rename as ...
2570 (process_stratum_target::hostio_last_error): ... this.
2571 (process_target::supports_qxfer_osdata): Rename as ...
2572 (process_stratum_target::supports_qxfer_osdata): ... this.
2573 (process_target::qxfer_osdata): Rename as ...
2574 (process_stratum_target::qxfer_osdata): ... this.
2575 (process_target::supports_qxfer_siginfo): Rename as ...
2576 (process_stratum_target::supports_qxfer_siginfo): ... this.
2577 (process_target::qxfer_siginfo): Rename as ...
2578 (process_stratum_target::qxfer_siginfo): ... this.
2579 (process_target::supports_non_stop): Rename as ...
2580 (process_stratum_target::supports_non_stop): ... this.
2581 (process_target::async): Rename as ...
2582 (process_stratum_target::async): ... this.
2583 (process_target::start_non_stop): Rename as ...
2584 (process_stratum_target::start_non_stop): ... this.
2585 (process_target::supports_multi_process): Rename as ...
2586 (process_stratum_target::supports_multi_process): ... this.
2587 (process_target::supports_fork_events): Rename as ...
2588 (process_stratum_target::supports_fork_events): ... this.
2589 (process_target::supports_vfork_events): Rename as ...
2590 (process_stratum_target::supports_vfork_events): ... this.
2591 (process_target::supports_exec_events): Rename as ...
2592 (process_stratum_target::supports_exec_events): ... this.
2593 (process_target::handle_new_gdb_connection): Rename as ...
2594 (process_stratum_target::handle_new_gdb_connection): ... this.
2595 (process_target::handle_monitor_command): Rename as ...
2596 (process_stratum_target::handle_monitor_command): ... this.
2597 (process_target::core_of_thread): Rename as ...
2598 (process_stratum_target::core_of_thread): ... this.
2599 (process_target::supports_read_loadmap): Rename as ...
2600 (process_stratum_target::supports_read_loadmap): ... this.
2601 (process_target::read_loadmap): Rename as ...
2602 (process_stratum_target::read_loadmap): ... this.
2603 (process_target::process_qsupported): Rename as ...
2604 (process_stratum_target::process_qsupported): ... this.
2605 (process_target::supports_tracepoints): Rename as ...
2606 (process_stratum_target::supports_tracepoints): ... this.
2607 (process_target::read_pc): Rename as ...
2608 (process_stratum_target::read_pc): ... this.
2609 (process_target::write_pc): Rename as ...
2610 (process_stratum_target::write_pc): ... this.
2611 (process_target::supports_thread_stopped): Rename as ...
2612 (process_stratum_target::supports_thread_stopped): ... this.
2613 (process_target::thread_stopped): Rename as ...
2614 (process_stratum_target::thread_stopped): ... this.
2615 (process_target::supports_get_tib_address): Rename as ...
2616 (process_stratum_target::supports_get_tib_address): ... this.
2617 (process_target::get_tib_address): Rename as ...
2618 (process_stratum_target::get_tib_address): ... this.
2619 (process_target::pause_all): Rename as ...
2620 (process_stratum_target::pause_all): ... this.
2621 (process_target::unpause_all): Rename as ...
2622 (process_stratum_target::unpause_all): ... this.
2623 (process_target::stabilize_threads): Rename as ...
2624 (process_stratum_target::stabilize_threads): ... this.
2625 (process_target::supports_fast_tracepoints): Rename as ...
2626 (process_stratum_target::supports_fast_tracepoints): ... this.
2627 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2628 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2629 (process_target::emit_ops): Rename as ...
2630 (process_stratum_target::emit_ops): ... this.
2631 (process_target::supports_disable_randomization): Rename as ...
2632 (process_stratum_target::supports_disable_randomization): ... this.
2633 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2634 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2635 (process_target::qxfer_libraries_svr4): Rename as ...
2636 (process_stratum_target::qxfer_libraries_svr4): ... this.
2637 (process_target::supports_agent): Rename as ...
2638 (process_stratum_target::supports_agent): ... this.
2639 (process_target::enable_btrace): Rename as ...
2640 (process_stratum_target::enable_btrace): ... this.
2641 (process_target::disable_btrace): Rename as ...
2642 (process_stratum_target::disable_btrace): ... this.
2643 (process_target::read_btrace): Rename as ...
2644 (process_stratum_target::read_btrace): ... this.
2645 (process_target::read_btrace_conf): Rename as ...
2646 (process_stratum_target::read_btrace_conf): ... this.
2647 (process_target::supports_range_stepping): Rename as ...
2648 (process_stratum_target::supports_range_stepping): ... this.
2649 (process_target::supports_pid_to_exec_file): Rename as ...
2650 (process_stratum_target::supports_pid_to_exec_file): ... this.
2651 (process_target::pid_to_exec_file): Rename as ...
2652 (process_stratum_target::pid_to_exec_file): ... this.
2653 (process_target::supports_multifs): Rename as ...
2654 (process_stratum_target::supports_multifs): ... this.
2655 (process_target::multifs_open): Rename as ...
2656 (process_stratum_target::multifs_open): ... this.
2657 (process_target::multifs_unlink): Rename as ...
2658 (process_stratum_target::multifs_unlink): ... this.
2659 (process_target::multifs_readlink): Rename as ...
2660 (process_stratum_target::multifs_readlink): ... this.
2661 (process_target::breakpoint_kind_from_pc): Rename as ...
2662 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2663 (process_target::breakpoint_kind_from_current_state): Rename as ...
2664 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2665 (process_target::thread_name): Rename as ...
2666 (process_stratum_target::thread_name): ... this.
2667 (process_target::thread_handle): Rename as ...
2668 (process_stratum_target::thread_handle): ... this.
2669 (process_target::supports_software_single_step): Rename as ...
2670 (process_stratum_target::supports_software_single_step): ... this.
2671 (process_target::supports_catch_syscall): Rename as ...
2672 (process_stratum_target::supports_catch_syscall): ... this.
2673 (process_target::get_ipa_tdesc_idx): Rename as ...
2674 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2676 2020-02-20 Pedro Alves <palves@redhat.com>
2678 * target.cc (set_target_ops): Simply copy the given target pointer
2679 instead of creating a copy of the pointed object.
2681 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2683 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2686 * target.h (struct process_stratum_target): Remove the target op.
2687 (class process_target): Add the target op.
2688 (target_get_ipa_tdesc_idx): Update the macro.
2689 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2691 Update the derived classes and callers below.
2693 * linux-low.cc (linux_target_ops): Update.
2694 (linux_get_ipa_tdesc_idx): Turn into ...
2695 (linux_process_target::get_ipa_tdesc_idx): ... this.
2696 * linux-low.h (class linux_process_target): Update.
2697 * lynx-low.cc (lynx_target_ops): Update.
2698 * nto-low.cc (nto_target_ops): Update.
2699 * win32-low.cc (win32_target_ops): Update.
2701 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2703 Turn process_stratum_target's supports_catch_syscall op into a
2704 method of process_target.
2706 * target.h (struct process_stratum_target): Remove the target op.
2707 (class process_target): Add the target op.
2708 (target_supports_catch_syscall): Update the macro.
2709 * target.cc (process_target::supports_catch_syscall): Define.
2711 Update the derived classes and callers below.
2713 * linux-low.cc (linux_target_ops): Update.
2714 (linux_supports_catch_syscall): Turn into ...
2715 (linux_process_target::supports_catch_syscall): ... this.
2716 * linux-low.h (class linux_process_target): Update.
2717 * lynx-low.cc (lynx_target_ops): Update.
2718 * nto-low.cc (nto_target_ops): Update.
2719 * win32-low.cc (win32_target_ops): Update.
2721 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2723 Turn process_stratum_target's supports_software_single_step op
2724 into a method of process_target.
2726 * target.h (struct process_stratum_target): Remove the target op.
2727 (class process_target): Add the target op.
2728 (target_supports_software_single_step): Update the macro.
2729 * target.cc (process_target::supports_software_single_step): Define.
2731 Update the derived classes and callers below.
2733 * linux-low.cc (linux_target_ops): Update.
2734 (linux_supports_software_single_step): Turn into ...
2735 (linux_process_target::supports_software_single_step): ... this.
2736 * linux-low.h (class linux_process_target): Update.
2737 * lynx-low.cc (lynx_target_ops): Update.
2738 * nto-low.cc (nto_target_ops): Update.
2739 * win32-low.cc (win32_target_ops): Update.
2741 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2743 Turn process_stratum_target's thread_name and thread_handle ops
2744 into methods of process_target.
2746 * target.h (struct process_stratum_target): Remove the target ops.
2747 (class process_target): Add the target ops.
2748 (target_thread_name): Update the macro.
2749 (target_thread_handle): Update the macro.
2750 * target.cc (process_target::thread_name): Define.
2751 (process_target::thread_handle): Define.
2753 Update the derived classes and callers below.
2755 * linux-low.cc (linux_target_ops): Update.
2756 (linux_process_target::thread_name): Define.
2757 (linux_process_target::thread_handle): Define.
2758 * linux-low.h (class linux_process_target): Update.
2759 * lynx-low.cc (lynx_target_ops): Update.
2760 * nto-low.cc (nto_target_ops): Update.
2761 * win32-low.cc (win32_target_ops): Update.
2763 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765 Turn process_stratum_target's breakpoint_kind_from_pc,
2766 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2767 ops into methods of process_target.
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_breakpoint_kind_from_pc): Update the macro.
2772 (target_breakpoint_kind_from_current_state): Update the macro.
2773 (default_breakpoint_kind_from_pc): Remove declaration.
2774 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2775 (process_target::breakpoint_kind_from_pc): ... this.
2776 (process_target::breakpoint_kind_from_current_state): Define.
2778 Update the derived classes and callers below.
2780 * mem-break.cc (bp_size): Update.
2781 (bp_opcode): Update.
2782 * linux-low.cc (linux_target_ops): Update.
2783 (linux_wait_1): Update.
2784 (linux_breakpoint_kind_from_pc): Turn into ...
2785 (linux_process_target::breakpoint_kind_from_pc): ... this.
2786 (linux_sw_breakpoint_from_kind): Turn into ...
2787 (linux_process_target::sw_breakpoint_from_kind): ... this.
2788 (linux_breakpoint_kind_from_current_state): Turn into ...
2789 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2790 * linux-low.h (class linux_process_target): Update.
2791 * lynx-low.cc (lynx_target_ops): Update.
2792 (lynx_process_target::sw_breakpoint_from_kind): Define.
2793 * lynx-low.h (class lynx_process_target): Update.
2794 * nto-low.cc (nto_target_ops): Update.
2795 (nto_sw_breakpoint_from_kind): Turn into ...
2796 (nto_process_target::sw_breakpoint_from_kind): ... this.
2797 * nto-low.h (class nto_process_target): Update.
2798 * win32-low.cc (win32_target_ops): Update.
2799 (win32_sw_breakpoint_from_kind): Turn into ...
2800 (win32_process_target::sw_breakpoint_from_kind): ... this.
2801 * win32-low.h (class win32_process_target): Update.
2803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2805 Turn process_stratum_target's multifs_open, multifs_readlink,
2806 multifs_unlink ops into methods of process_target.
2808 * target.h (struct process_stratum_target): Remove the target ops.
2809 (class process_target): Add the target ops. Also add
2811 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2813 (process_target::supports_multifs): Define.
2814 (process_target::multifs_open): Define.
2815 (process_target::multifs_readlink): Define.
2816 (process_target::multifs_unlink): Define.
2818 Update the derived classes and callers below.
2820 * hostio.cc (handle_setfs): Update.
2821 (handle_open): Update.
2822 (handle_unlink): Update.
2823 (handle_readlink): Update.
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_process_target::supports_multifs): Define.
2826 (linux_process_target::multifs_open): Define.
2827 (linux_process_target::multifs_readlink): Define.
2828 (linux_process_target::multifs_unlink): Define.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 * nto-low.cc (nto_target_ops): Update.
2832 * win32-low.cc (win32_target_ops): Update.
2834 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836 Turn process_stratum_target's pid_to_exec_file op into a method
2839 * target.h (struct process_stratum_target): Remove the target op.
2840 (class process_target): Add the target op. Also add
2841 'supports_pid_to_exec_file'.
2842 * target.cc (process_target::pid_to_exec_file): Define.
2843 (process_target::supports_pid_to_exec_file): Define.
2845 Update the derived classes and callers below.
2847 * server.cc (handle_qxfer_exec_file): Update.
2848 (handle_query): Update.
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_process_target::supports_pid_to_exec_file): Define.
2851 (linux_process_target::pid_to_exec_file): Define.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2857 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2859 Turn process_stratum_target's supports_range_stepping op into a
2860 method of process_target.
2862 * target.h (struct process_stratum_target): Remove the target op.
2863 (class process_target): Add the target op.
2864 (target_supports_range_stepping): Update the macro.
2865 * target.cc (process_target::supports_range_stepping): Define.
2867 Update the derived classes and callers below.
2869 * linux-low.cc (linux_target_ops): Update.
2870 (linux_supports_range_stepping): Turn into ...
2871 (linux_process_target::supports_range_stepping): ... this.
2872 * linux-low.h (class linux_process_target): Update.
2873 * lynx-low.cc (lynx_target_ops): Update.
2874 * nto-low.cc (nto_target_ops): Update.
2875 * win32-low.cc (win32_target_ops): Update.
2877 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2879 Turn process_stratum_target's btrace-related ops (enable_btrace,
2880 disable_btrace, read_btrace, read_btrace_conf) into methods of
2883 * target.h (struct process_stratum_target): Remove the target ops.
2884 (class process_target): Add the target ops.
2885 (target_enable_btrace): Update.
2886 (target_disable_btrace): Update.
2887 (target_read_btrace): Update.
2888 (target_read_btrace_conf): Update.
2889 * target.cc (process_target::enable_btrace): Define.
2890 (process_target::disable_btrace): Define.
2891 (process_target::read_btrace): Define.
2892 (process_target::read_btrace_conf): Define.
2894 Update the derived classes and callers below.
2896 * linux-low.cc (linux_target_ops): Update.
2897 (linux_process_target:enable_btrace): Define as a wrapper around
2898 linux_enable_btrace.
2899 (linux_low_disable_btrace): Turn into ...
2900 (linux_process_target::disable_btrace): ... this.
2901 (linux_low_read_btrace): Turn into ...
2902 (linux_process_target::read_btrace): ... this.
2903 (linux_low_btrace_conf): Turn into ...
2904 (linux_process_target::read_btrace_conf): ... this.
2905 * linux-low.h (class linux_process_target): Update.
2906 * lynx-low.cc (lynx_target_ops): Update.
2907 * nto-low.cc (nto_target_ops): Update.
2908 * win32-low.cc (win32_target_ops): Update.
2910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912 Turn process_stratum_target's supports_agent op into a method of
2915 * target.h (struct process_stratum_target): Remove the target op.
2916 (class process_target): Add the target op.
2917 (target_supports_agent): Update the macro.
2918 * target.cc (process_target::supports_agent): Define.
2920 Update the derived classes and callers below.
2922 * linux-low.cc (linux_target_ops): Update.
2923 (linux_supports_agent): Turn into ...
2924 (linux_process_target::supports_agent): ... this.
2925 * linux-low.h (class linux_process_target): Update.
2926 * lynx-low.cc (lynx_target_ops): Update.
2927 * nto-low.cc (nto_target_ops): Update.
2928 * win32-low.cc (win32_target_ops): Update.
2930 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2932 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2933 method of process_target.
2935 * target.h (struct process_stratum_target): Remove the target op.
2936 (class process_target): Add the target op. Also add
2937 'supports_qxfer_libraries_svr4'.
2938 * target.cc (process_target::qxfer_libraries_svr4): Define.
2939 (process_target::supports_qxfer_libraries_svr4): Define.
2941 Update the derived classes and callers below.
2943 * server.cc (handle_qxfer_libraries_svr4): Update.
2944 (handle_query): Update.
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2947 (linux_qxfer_libraries_svr4): Turn into ...
2948 (linux_process_target::qxfer_libraries_svr4): ... this.
2949 * linux-low.h (class linux_process_target): Update.
2950 * lynx-low.cc (lynx_target_ops): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 * win32-low.cc (win32_target_ops): Update.
2954 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956 Turn process_stratum_target's supports_disable_randomization op
2957 into a method of process_target.
2959 * target.h (struct process_stratum_target): Remove the target op.
2960 (class process_target): Add the target op.
2961 (target_supports_disable_randomization): Update the macro.
2962 * target.cc (process_target::supports_disable_randomization): Define.
2964 Update the derived classes and callers below.
2966 * linux-low.cc (linux_target_ops): Update.
2967 (linux_supports_disable_randomization): Turn into ...
2968 (linux_process_target::supports_disable_randomization): ... this.
2969 * linux-low.h (class linux_process_target): Update.
2970 * lynx-low.cc (lynx_target_ops): Update.
2971 * nto-low.cc (nto_target_ops): Update.
2972 * win32-low.cc (win32_target_ops): Update.
2974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976 Turn process_stratum_target's emit_ops op into a method of
2979 * target.h (struct process_stratum_target): Remove the target op.
2980 (class process_target): Add the target op.
2981 (target_emit_ops): Update the macro.
2982 * target.cc (process_target::emit_ops): Define.
2984 Update the derived classes and callers below.
2986 * linux-low.cc (linux_target_ops): Update.
2987 (linux_emit_ops): Turn into ...
2988 (linux_process_target::emit_ops): ... this.
2989 * linux-low.h (class linux_process_target): Update.
2990 * lynx-low.cc (lynx_target_ops): Update.
2991 * nto-low.cc (nto_target_ops): Update.
2992 * win32-low.cc (win32_target_ops): Update.
2994 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2997 and get_min_fast_tracepoint_insn_len ops into methods of
3000 * target.h (struct process_stratum_target): Remove the target ops.
3001 (class process_target): Add the target ops. Also add
3002 'supports_fast_tracepoints'.
3003 (target_supports_fast_tracepoints): Update the macro.
3004 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3005 (install_fast_tracepoint_jump_pad): Update and rename the macro
3007 (target_install_fast_tracepoint_jump_pad): ... this.
3008 * target.cc (process_target::supports_fast_tracepoints): Define.
3009 (process_target::install_fast_tracepoint_jump_pad): Define.
3010 (process_target::get_min_fast_tracepoint_insn_len): Define.
3012 Update the derived classes and callers below.
3014 * tracepoint.cc (install_fast_tracepoint): Update.
3015 * linux-low.cc (linux_target_ops): Update.
3016 (linux_process_target::supports_fast_tracepoints): Define.
3017 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3018 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3019 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3020 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's stabilize_threads op into a
3029 method of process_target.
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3033 (target_stabilize_threads): Update the macro.
3034 * target.cc (process_target::stabilize_threads): Define.
3036 Update the derived classes and callers below.
3038 * server.cc (handle_status): Update.
3039 * tracepoint.cc (cmd_qtdp): Update.
3040 (cmd_qtstart): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_stabilize_threads): Turn into ...
3043 (linux_process_target::stabilize_threads): ... this.
3044 (linux_wait_1): Update.
3045 * linux-low.h (class linux_process_target): Update.
3046 * lynx-low.cc (lynx_target_ops): Update.
3047 * nto-low.cc (nto_target_ops): Update.
3048 * win32-low.cc (win32_target_ops): Update.
3050 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052 Turn process_stratum_target's pause_all and unpause_all ops
3053 into methods of process_target.
3055 * target.h (struct process_stratum_target): Remove the target ops.
3056 (class process_target): Add the target ops.
3057 (pause_all): Update the macro and rename to...
3058 (target_pause_all): ... this.
3059 (unpause_all): Update the macro and rename to...
3060 (target_unpause_all): ... this.
3061 * target.cc (process_target::pause_all): Define.
3062 (process_target::unpause_all): Define.
3064 Update the derived classes and callers below.
3066 * server.cc (handle_status): Update.
3067 * tracepoint.cc (clear_installed_tracepoints): Update.
3069 (cmd_qtstart): Update.
3070 (stop_tracing): Update.
3071 (cmd_qtstatus): Update.
3072 (upload_fast_traceframes): Update.
3073 (run_inferior_command): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_pause_all): Turn into ...
3076 (linux_process_target::pause_all): ... this.
3077 (linux_unpause_all): Turn into ...
3078 (linux_process_target::unpause_all): ... this.
3079 (linux_process_target::prepare_to_access_memory): Update.
3080 (linux_process_target::done_accessing_memory): Update.
3081 * linux-low.h (class linux_process_target): Update.
3082 * lynx-low.cc (lynx_target_ops): Update.
3083 * nto-low.cc (nto_target_ops): Update.
3084 * win32-low.cc (win32_target_ops): Update.
3086 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3088 Turn process_stratum_target's get_tib_address op into a method of
3091 * target.h (struct process_stratum_target): Remove the target op.
3092 (class process_target): Add the target op. Also add
3093 'supports_get_tib_address'.
3094 * target.cc (process_target::get_tib_address): Define.
3095 (process_target::supports_get_tib_address): Define.
3097 Update the derived classes and callers below.
3099 * server.cc (handle_query): Update.
3100 * linux-low.cc (win32_target_ops): Update.
3101 * lynx-low.cc (lynx_target_ops): Update.
3102 * nto-low.cc (nto_target_ops): Update.
3103 * win32-low.cc (win32_target_ops): Update.
3104 (win32_process_target::supports_get_tib_address): Define.
3105 (win32_get_tib_address): Turn into ...
3106 (win32_process_target::get_tib_address): ... this.
3107 * win32-low.h (class win32_process_target): Update.
3109 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3111 Turn process_stratum_target's thread_stopped op into a method of
3114 * target.h (struct process_stratum_target): Remove the target op.
3115 (class process_target): Add the target op. Also add
3116 'supports_thread_stopped'.
3117 (target_thread_stopped): Update the macro.
3118 * target.cc (process_target::thread_stopped): Define.
3119 (process_target::supports_thread_stopped): Define.
3120 (prepare_to_access_memory): Update.
3122 Update the derived classes and callers below.
3124 * server.cc (queue_stop_reply_callback): Update.
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_process_target::supports_thread_stopped): Define.
3127 (linux_thread_stopped): Turn into ...
3128 (linux_process_target::thread_stopped): ... this.
3129 * linux-low.h (class linux_process_target): Update.
3130 * lynx-low.cc (lynx_target_ops): Update.
3131 * nto-low.cc (nto_target_ops): Update.
3132 * win32-low.cc (win32_target_ops): Update.
3134 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136 Turn process_stratum_target's read_pc and write_pc ops into
3137 methods of process_target.
3139 * target.h (struct process_stratum_target): Remove the target ops.
3140 (class process_target): Add the target ops.
3141 * target.cc (process_target::read_pc): Define.
3142 (process_target::write_pc): Define.
3144 Update the derived classes and callers below.
3146 * regcache.cc (regcache_read_pc): Update.
3147 (regcache_write_pc): Update.
3148 * linux-low.cc (linux_target_ops): Update.
3149 (linux_read_pc): Turn into ...
3150 (linux_process_target::read_pc): ... this.
3151 (linux_write_pc): Turn into ...
3152 (linux_process_target::write_pc): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160 Turn process_stratum_target's supports_tracepoints op into a
3161 method of process_target.
3163 * target.h (struct process_stratum_target): Remove the target op.
3164 (class process_target): Add the target op.
3165 (target_supports_tracepoints): Update the macro.
3166 * target.cc (process_target::supports_tracepoints): Define.
3168 Update the derived classes and callers below.
3170 * linux-low.cc (linux_target_ops): Update.
3171 (linux_supports_tracepoints): Turn into ...
3172 (linux_process_target::supports_tracepoints): ... this.
3173 * linux-low.h (class linux_process_target): Update.
3174 * lynx-low.cc (lynx_target_ops): Update.
3175 * nto-low.cc (nto_target_ops): Update.
3176 * win32-low.cc (win32_target_ops): Update.
3178 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3180 Turn process_stratum_target's process_qsupported op into a method
3183 * target.h (struct process_stratum_target): Remove the target op.
3184 (class process_target): Add the target op.
3185 (target_process_qsupported): Update the macro.
3186 * target.cc (process_target::process_qsupported): Define.
3188 Update the derived classes and callers below.
3190 * linux-low.cc (linux_target_ops): Update.
3191 (linux_process_qsupported): Turn into ...
3192 (linux_process_target::process_qsupported): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 * win32-low.cc (win32_target_ops): Update.
3198 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3200 Turn process_stratum_target's read_loadmap op into a method of
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op. Also add
3205 'supports_read_loadmap'.
3206 * target.cc (process_target::read_loadmap): Define.
3207 (process_target::supports_read_loadmap): Define.
3209 Update the derived classes and callers below.
3211 * server.cc (handle_qxfer_fdpic): Update.
3212 (handle_query): Update.
3213 * linux-low.cc (linux_target_ops): Update.
3214 (linux_process_target::supports_read_loadmap): Define.
3215 (linux_read_loadmap): Turn into ...
3216 (linux_process_target::read_loadmap): ... this.
3217 * linux-low.h (class linux_process_target): Update.
3218 * lynx-low.cc (lynx_target_ops): Update.
3219 * nto-low.cc (nto_target_ops): Update.
3220 * win32-low.cc (win32_target_ops): Update.
3222 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3224 Turn process_stratum_target's core_of_thread op into a method of
3227 * target.h (struct process_stratum_target): Remove the target op.
3228 (class process_target): Add the target op.
3229 (target_core_of_thread): Update the macro.
3230 * target.cc (process_target::core_of_thread): Define.
3232 Update the derived classes and callers below.
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_process_target::core_of_thread): Define.
3236 * linux-low.h (class linux_process_target): Update.
3237 * lynx-low.cc (lynx_target_ops): Update.
3238 * nto-low.cc (nto_target_ops): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3241 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3243 Turn process_stratum_target's handle_monitor_command op into a
3244 method of process_target.
3246 * target.h (struct process_stratum_target): Remove the target op.
3247 (class process_target): Add the target op.
3248 (target_handle_monitor_command): Update the macro.
3249 * target.cc (process_target::handle_monitor_command): Define.
3251 Update the derived classes and callers below.
3253 * server.cc (handle_query): Update.
3254 * linux-low.cc (linux_target_ops): Update.
3255 (linux_process_target::handle_monitor_command): Define.
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 handle_new_gdb_connection op into a
3264 method of process_target.
3266 * target.h (struct process_stratum_target): Remove the target op.
3267 (class process_target): Add the target op.
3268 (target_handle_new_gdb_connection): Update the macro.
3269 * target.cc (process_target::handle_new_gdb_connection): Define.
3271 Update the derived classes and callers below.
3273 * linux-low.cc (linux_target_ops): Update.
3274 (linux_handle_new_gdb_connection): Turn into ...
3275 (linux_process_target::handle_new_gdb_connection): ... this.
3276 * linux-low.h (class linux_process_target): Update.
3277 * lynx-low.cc (lynx_target_ops): Update.
3278 * nto-low.cc (nto_target_ops): Update.
3279 * win32-low.cc (win32_target_ops): Update.
3281 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3283 Turn process_stratum_target's supports_fork_events,
3284 supports_vfork_events, and supports_exec_events ops into methods
3287 * target.h (struct process_stratum_target): Remove the target ops.
3288 (class process_target): Add the target ops.
3289 (target_supports_fork_events): Update the macro.
3290 (target_supports_vfork_events): Update the macro.
3291 (target_supports_exec_events): Update the macro.
3292 * target.cc (process_target::supports_fork_events): Define.
3293 (process_target::supports_vfork_events): Define.
3294 (process_target::supports_exec_events): Define.
3296 Update the derived classes and callers below.
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_supports_fork_events): Turn into ...
3300 (linux_process_target::supports_fork_events): ... this.
3301 (linux_supports_vfork_events): Turn into ...
3302 (linux_process_target::supports_vfork_events): ... this.
3303 (linux_supports_exec_events): Turn into ...
3304 (linux_process_target::supports_exec_events): ... this.
3305 * linux-low.h (class linux_process_target): Update.
3306 * lynx-low.cc (lynx_target_ops): Update.
3307 * nto-low.cc (nto_target_ops): Update.
3308 * win32-low.cc (win32_target_ops): Update.
3310 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312 Turn process_stratum_target's supports_multi_process op into a
3313 method of process_target.
3315 * target.h (struct process_stratum_target): Remove the target op.
3316 (class process_target): Add the target op.
3317 * target.cc (process_target::supports_multi_process): Define.
3318 (target_supports_multi_process): Update.
3320 Update the derived classes and callers below.
3322 * linux-low.cc (linux_target_ops): Update.
3323 (linux_supports_multi_process): Turn into ...
3324 (linux_process_target::supports_multi_process): ... this.
3325 * linux-low.h (class linux_process_target): Update.
3326 * lynx-low.cc (lynx_target_ops): Update.
3327 * nto-low.cc (nto_target_ops): Update.
3328 * win32-low.cc (win32_target_ops): Update.
3330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3332 Turn process_stratum_target's supports_non_stop, async, and
3333 start_non_stop ops into methods of process_target.
3335 * target.h (struct process_stratum_target): Remove the target ops.
3336 (class process_target): Add the target ops.
3337 (target_supports_non_stop): Update the macro.
3338 (target_async): Update the macro.
3339 (start_non_stop): Remove declaration.
3340 * target.cc (process_target::supports_non_stop): Define.
3341 (process_target::async): Define.
3342 (process_target::start_non_stop): Define.
3343 (start_non_stop): Remove.
3345 Update the derived classes and callers below.
3347 * server.cc (handle_qxfer_siginfo): Update.
3348 (handle_query): Update.
3349 * linux-low.cc (linux_target_ops): Update.
3350 (linux_supports_non_stop): Turn into ...
3351 (linux_process_target::supports_non_stop): ... this.
3352 (linux_async): Turn into ...
3353 (linux_process_target::async): ... this.
3354 (linux_start_non_stop): Turn into ...
3355 (linux_process_target::start_non_stop): ... this.
3356 * linux-low.h (class linux_process_target): Update.
3357 * lynx-low.cc (lynx_target_ops): Update.
3358 * nto-low.cc (nto_target_ops): Update.
3359 (nto_supports_non_stop): Remove; rely on the default behavior
3361 * win32-low.cc (win32_target_ops): Update.
3363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365 Turn process_stratum_target's qxfer_siginfo op into a method of
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op. Also add
3370 'supports_qxfer_siginfo'.
3371 * target.cc (process_target::qxfer_siginfo): Define.
3372 (process_target::supports_qxfer_siginfo): Define.
3374 Update the derived classes and callers below.
3376 * server.cc (handle_qxfer_siginfo): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_qxfer_siginfo): Define.
3380 (linux_xfer_siginfo): Turn into ...
3381 (linux_process_target::qxfer_siginfo): ... this.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3387 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3389 Turn process_stratum_target's qxfer_osdata op into a method of
3392 * target.h (struct process_stratum_target): Remove the target op.
3393 (class process_target): Add the target op. Also add
3394 'supports_qxfer_osdata'.
3395 * target.cc (process_target::qxfer_osdata): Define.
3396 (process_target::supports_qxfer_osdata): Define.
3398 Update the derived classes and callers below.
3400 * server.cc (handle_qxfer_osdata): Update.
3401 (handle_query): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_qxfer_osdata): Define.
3404 (linux_qxfer_osdata): Turn into ...
3405 (linux_process_target::qxfer_osdata): ... this.
3406 * linux-low.h (class linux_process_target): Update.
3407 * lynx-low.cc (lynx_target_ops): Update.
3408 * nto-low.cc (nto_target_ops): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3411 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413 Turn process_stratum_target's hostio_last_error op into a
3414 method of process_target.
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 * target.cc: Add "hostio.h" to includes.
3419 (process_target::hostio_last_error): Define.
3421 Update the derived classes and callers below.
3423 * hostio.cc (hostio_error): Update.
3424 * linux-low.cc: Remove "hostio.h" from includes.
3425 (linux_target_ops): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.h (class win32_process_target): Update.
3429 * win32-low.cc (win32_target_ops): Update.
3430 (wince_hostio_last_error): Turn into ...
3431 (win32_process_target::hostio_last_error): ... this.
3433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435 Turn process_stratum_target's get_tls_address op into a method of
3438 * target.h (struct process_stratum_target): Remove the target op.
3439 (class process_target): Add the target op. Also add
3440 'supports_get_tls_address'.
3441 * target.cc (process_target::get_tls_address): Define.
3442 (process_target::supports_get_tls_address): Define.
3444 Update the derived classes and callers below.
3446 * server.cc (handle_query): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_process_target::supports_get_tls_address): Define.
3449 (linux_process_target::get_tls_address): Define.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 * win32-low.cc (win32_target_ops): Update.
3455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457 Turn process_stratum_target's read_offsets op into a method of
3460 * target.h (struct process_stratum_target): Remove the target op.
3461 (class process_target): Add the target op. Also add
3462 'supports_read_offsets'.
3463 * target.cc (process_target::read_offsets): Define.
3464 (process_target::supports_read_offsets): Define.
3466 Update the derived classes and callers below.
3468 * server.cc (handle_query): Update.
3469 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3470 (linux_target_ops): Update.
3471 (linux_process_target::supports_read_offsets): Define.
3472 (linux_read_offsets): Turn into ...
3473 (linux_process_target::read_offsets): ... this.
3474 * linux-low.h (class linux_process_target): Update.
3475 * lynx-low.cc (lynx_target_ops): Update.
3476 * nto-low.cc (nto_target_ops): Update.
3477 * win32-low.cc (win32_target_ops): Update.
3479 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3481 Turn process_stratum_target's stopped_by_watchpoint and
3482 stopped_data_address ops into methods of process_target.
3484 * target.h (struct process_stratum_target): Remove the target ops.
3485 (class process_target): Add the target ops.
3486 * target.cc (process_target::stopped_by_watchpoint): Define.
3487 (process_target::stopped_data_address): Define.
3489 Update the derived classes and callers below.
3491 * remote-utils.cc (prepare_resume_reply): Update.
3492 * linux-low.cc (linux_target_ops): Update.
3493 (linux_stopped_by_watchpoint): Turn into ...
3494 (linux_process_target::stopped_by_watchpoint): ... this.
3495 (linux_stopped_data_address): Turn into ...
3496 (linux_process_target::stopped_data_address): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 (nto_stopped_by_watchpoint): Turn into ...
3501 (nto_process_target::stopped_by_watchpoint): ... this.
3502 (nto_stopped_data_address): Turn into ...
3503 (nto_process_target::stopped_data_address): ... this.
3504 * nto-low.h (class nto_process_target): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3506 (win32_stopped_by_watchpoint): Turn into ...
3507 (win32_process_target::stopped_by_watchpoint): ... this.
3508 (win32_stopped_data_address): Turn into ...
3509 (win32_process_target::stopped_data_address): ... this.
3510 * win32-low.h (class win32_process_target): Update.
3512 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514 Turn process_stratum_target's supports_hardware_single_step op into
3515 a method of process_target.
3517 * target.h (struct process_stratum_target): Remove the target op.
3518 (class process_target): Add the target op.
3519 (target_supports_hardware_single_step): Update the macro.
3520 (target_can_do_hardware_single_step): Remove declaration.
3521 * target.cc (process_target::supports_hardware_single_step): Define.
3522 (target_can_do_hardware_single_step): Remove.
3524 Update the derived classes and callers below.
3526 * linux-low.h (class linux_process_target): Update.
3527 * linux-low.cc (linux_target_ops): Update.
3528 (linux_supports_hardware_single_step): Turn into ...
3529 (linux_process_target::supports_hardware_single_step): ... this.
3530 * lynx-low.h (class lynx_process_target): Update.
3531 * lynx-low.cc (lynx_target_ops): Update.
3532 (lynx_process_target::supports_hardware_single_step): Define.
3533 * nto-low.h (class nto_process_target): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 (nto_process_target::supports_hardware_single_step): Define.
3536 * win32-low.h (class win32_process_target): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538 (win32_process_target::supports_hardware_single_step): Define.
3540 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3542 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3543 ops into methods of process_target.
3545 * target.h (struct process_stratum_target): Remove the target ops.
3546 (class process_target): Add the target ops.
3547 (target_stopped_by_hw_breakpoint): Update the macro.
3548 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3549 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3550 (process_target::supports_stopped_by_hw_breakpoint): Define.
3552 Update the derived classes and callers below.
3554 * linux-low.cc (linux_target_ops): Update.
3555 (linux_stopped_by_hw_breakpoint): Turn into ...
3556 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3557 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3558 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3559 * linux-low.h (class linux_process_target): Update.
3560 * lynx-low.cc (lynx_target_ops): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3564 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3566 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3567 ops into methods of process_target.
3569 * target.h (struct process_stratum_target): Remove the target ops.
3570 (class process_target): Add the target ops.
3571 (target_stopped_by_sw_breakpoint): Update the macro.
3572 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3573 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3574 (process_target::supports_stopped_by_sw_breakpoint): Define.
3576 Update the derived classes and callers below.
3578 * linux-low.cc (linux_target_ops): Update.
3579 (linux_stopped_by_sw_breakpoint): Turn into ...
3580 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3581 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3582 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3583 * linux-low.h (class linux_process_target): Update.
3584 * lynx-low.cc (lynx_target_ops): Update.
3585 * nto-low.cc (nto_target_ops): Update.
3586 * win32-low.cc (win32_target_ops): Update.
3588 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590 Turn process_stratum_target's insert_point and remove_point ops
3591 into methods of process_target.
3593 * target.h (struct process_stratum_target): Remove the target ops.
3594 (class process_target): Add the target ops.
3595 * target.cc (process_target::insert_point): Define.
3596 (process_target::remove_point): Define.
3598 Update the derived classes and callers below.
3600 * mem-break.cc (set_raw_breakpoint_at): Update.
3601 (delete_raw_breakpoint): Update.
3602 (uninsert_raw_breakpoint): Update.
3603 (reinsert_raw_breakpoint): Update.
3604 * linux-low.cc (linux_target_ops): Update.
3605 (linux_insert_point): Turn into ...
3606 (linux_process_target::insert_point): ... this.
3607 (linux_remove_point): Turn into ...
3608 (linux_process_target::remove_point): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 (nto_insert_point): Turn into ...
3613 (nto_process_target::insert_point): ... this.
3614 (nto_remove_point): Turn into ...
3615 (nto_process_target::remove_point): ... this.
3616 * nto-low.h (class nto_process_target): Update.
3617 * win32-low.cc (win32_target_ops): Update.
3618 (win32_insert_point): Turn into ...
3619 (win32_process_target::insert_point): ... this.
3620 (win32_remove_point): Turn into ...
3621 (win32_process_target::remove_point): ... this.
3622 * win32-low.h (class win32_process_target): Update.
3624 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626 Turn process_stratum_target's supports_z_point_type op into a
3627 method of process_target.
3629 * target.h (struct process_stratum_target): Remove the target op.
3630 (class process_target): Add the target op.
3631 * target.cc (process_target::supports_z_point_type): Define.
3633 Update the derived classes and callers below.
3635 * mem-break.cc (z_type_supported): Update.
3636 * linux-low.cc (linux_target_ops): Update.
3637 (linux_supports_z_point_type): Turn into ...
3638 (linux_process_target::supports_z_point_type): ... this.
3639 * linux-low.h (class linux_process_target): Update.
3640 * lynx-low.cc (lynx_target_ops): Update.
3641 * nto-low.cc (nto_target_ops): Update.
3642 (nto_supports_z_point_type): Turn into ...
3643 (nto_process_target::supports_z_point_type): ... this.
3644 * nto-low.h (class nto_process_target): Update.
3645 * win32-low.cc (win32_target_ops): Update.
3646 (win32_supports_z_point_type): Turn into ...
3647 (win32_process_target::supports_z_point_type): ... this.
3648 * win32-low.h (class win32_process_target): Update.
3650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3652 Turn process_stratum_target's read_auxv op into a method of
3655 * target.h (class process_stratum_target): Remove the target op.
3656 (struct process_target): Add the target op. Also add
3657 'supports_read_auxv'.
3658 * target.cc (process_target::read_auxv): Define.
3659 (process_target::supports_read_auxv): Define.
3661 Update the derived classes and callers below.
3663 * server.cc (handle_qxfer_auxv): Update.
3664 (handle_query): Update.
3665 * linux-low.cc (linux_target_ops): Update.
3666 (linux_process_target::supports_read_auxv): Define.
3667 (linux_read_auxv): Turn into ...
3668 (linux_process_target::read_auxv): ... this.
3669 * linux-low.h (class linux_process_target): Update.
3670 * lynx-low.cc (lynx_target_ops): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 (nto_process_target::supports_read_auxv): Define.
3673 (nto_read_auxv): Turn into ...
3674 (nto_process_target::read_auxv): ... this.
3675 * nto-low.h (class nto_process_target): Update.
3676 * win32-low.cc (win32_target_ops): Update.
3678 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3680 Turn process_stratum_target's request_interrupt op into a method of
3683 * target.h (struct process_stratum_target): Remove the target op.
3684 (class process_target): Add the target op.
3686 Update the derived classes and callers below.
3688 * remote-utils.cc (putpkt_binary_1): Update.
3689 (input_interrupt): Update.
3691 * server.cc (handle_v_requests): Update.
3692 * linux-low.cc (linux_target_ops): Update.
3693 (linux_request_interrupt): Turn into ...
3694 (linux_process_target::request_interrupt): ... this.
3695 * linux-low.h (class linux_process_target): Update.
3696 * lynx-low.cc (lynx_target_ops): Update.
3697 (lynx_request_interrupt): Turn into ...
3698 (lynx_process_target::request_interrupt): ... this.
3699 * lynx-low.h (class lynx_process_target): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 (nto_request_interrupt): Turn into ...
3702 (nto_process_target::request_interrupt): ... this.
3703 * nto-low.h (class nto_process_target): Update.
3704 * win32-low.cc (win32_target_ops): Update.
3705 (win32_request_interrupt): Turn into ...
3706 (win32_process_target::request_interrupt): ... this.
3707 * win32-low.h (class win32_process_target): Update.
3709 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711 Turn process_stratum_target's look_up_symbols op into a method of
3714 * target.h (struct process_stratum_target): Remove the target op.
3715 (class process_target): Add the target op.
3716 * target.cc (process_target::look_up_symbols): Define.
3718 Update the derived classes and callers below.
3720 * server.cc (handle_query): Update.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_look_up_symbols): Turn into ...
3723 (linux_process_target::look_up_symbols): ... this.
3724 * linux-low.h (class linux_process_target): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 * win32-low.cc (win32_target_ops): Update.
3729 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731 Turn process_stratum_target's read_memory and write_memory
3732 ops into methods of process_target.
3734 * target.h (struct process_stratum_target): Remove the target ops.
3735 (class process_target): Add the target ops.
3737 Update the derived classes and callers below.
3739 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3740 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3741 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3742 (arm_get_syscall_trapinfo): Update.
3743 * linux-cris-low.cc (cris_breakpoint_at): Update.
3744 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3745 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3746 * linux-mips-low.cc (mips_breakpoint_at): Update.
3747 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3748 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3749 * linux-sh-low.cc (sh_breakpoint_at): Update.
3750 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3751 (sparc_store_gregset_from_stack): Update.
3752 (sparc_breakpoint_at): Update.
3753 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3754 * linux-tile-low.cc (tile_breakpoint_at): Update.
3755 * linux-x86-low.cc (x86_breakpoint_at): Update.
3756 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3757 * mem-brea.cc (insert_memory_breakpoint): Update.
3758 (validate_inserted_breakpoint): Update.
3759 * target.cc (read_inferior_memory): Update.
3760 (target_write_memory): Update.
3761 * linux-low.cc (linux_target_ops): Update.
3762 (linux_read_memory): Make a wrapper around the read_memory target
3764 (linux_process_target::read_memory): Rename from linux_read_memory.
3765 (linux_write_memory): Turn into ...
3766 (linux_process_target::write_memory): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 (lynx_read_memory): Turn into ...
3770 (lynx_process_target::read_memory): ... this.
3771 (lynx_write_memory): Turn into ...
3772 (lynx_process_target::write_memory): ... this.
3773 * lynx-low.h (class lynx_process_target): Update.
3774 * nto-low.cc (nto_target_ops): Update.
3775 (nto_read_memory): Turn into ...
3776 (nto_process_target::read_memory): ... this.
3777 (nto_write_memory): Turn into ...
3778 (nto_process_target::write_memory): ... this.
3779 * nto-low.h (class nto_process_target): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3781 (win32_read_inferior_memory): Turn into ...
3782 (win32_process_target::read_memory): ... this.
3783 (win32_write_inferior_memory): Turn into ...
3784 (win32_process_target::write_memory): ... this.
3785 * win32-low.h (class win32_process_target): Update.
3787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789 Turn process_stratum_target's prepare_to_access_memory and
3790 done_accessing_memory ops into methods of process_target.
3792 * target.h (struct process_stratum_target): Remove the target ops.
3793 (class process_target): Add the target ops.
3794 * target.cc (process_target::prepare_to_access_memory): Define.
3795 (process_target::done_accessing_memory): Define.
3796 (prepare_to_access_memory): Update.
3797 (done_accessing_memory): Update.
3799 Update the derived classes and callers below.
3801 * linux-low.cc (linux_target_ops): Update.
3802 (linux_prepare_to_access_memory): Turn into ...
3803 (linux_process_target::prepare_to_access_memory): ... this.
3804 (linux_done_accessing_memory): Turn into ...
3805 (linux_process_target::done_accessing_memory): ... this.
3806 * linux-low.h (class linux_process_target): Update.
3807 * lynx-low.cc (lynx_target_ops): Update.
3808 * nto-low.cc (nto_target_ops): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3811 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813 Turn process_stratum_target's fetch_registers and store_registers
3814 ops into methods of process_target.
3816 * target.h (struct process_stratum_target): Remove the target ops.
3817 (class process_target): Add the target ops.
3818 (fetch_inferior_registers): Update the macro.
3819 (store_inferior_registers): Update the macro.
3821 Update the derived classes and callers below.
3823 * linux-low.cc (linux_target_ops): Update.
3824 (linux_fetch_registers): Turn into ...
3825 (linux_process_target::fetch_registers): ... this.
3826 (linux_store_registers): Turn into ...
3827 (linux_process_target::store_registers): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 (lynx_fetch_registers): Turn into ...
3831 (lynx_process_target::fetch_registers): ... this.
3832 (lynx_store_registers): Turn into ...
3833 (lynx_process_target::store_registers): ... this.
3834 * lynx-low.h (class lynx_process_target): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 (nto_fetch_registers): Turn into ...
3837 (nto_process_target::fetch_registers): ... this.
3838 (nto_store_registers): Turn into ...
3839 (nto_process_target::store_registers): ... this.
3840 * nto-low.h (class nto_process_target): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842 (win32_fetch_inferior_registers): Turn into ...
3843 (win32_process_target::fetch_registers): ... this.
3844 (win32_store_inferior_registers): Turn into ...
3845 (win32_process_target::store_registers): ... this.
3846 * win32-low.h (class win32_process_target): Update.
3848 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3850 Turn process_stratum_target's wait op into a method of
3853 * target.h (struct process_stratum_target): Remove the target op.
3854 (class process_target): Add the target op.
3856 Update the derived classes and callers below.
3858 * target.cc (target_wait): Update.
3859 * linux-low.cc (linux_target_ops): Update.
3860 (linux_wait): Turn into ...
3861 (linux_process_target::wait): ... this.
3862 * linux-low.h (class linux_process_target): Update.
3863 * lynx-low.cc (lynx_target_ops): Update.
3864 (lynx_wait): Turn into ...
3865 (lynx_process_target::wait): ... this.
3866 * lynx-low.h (class lynx_process_target): Update.
3867 * nto-low.cc (nto_target_ops): Update.
3868 (nto_wait): Turn into ...
3869 (nto_process_target::wait): ... this.
3870 * nto-low.h (class nto_process_target): Update.
3871 * win32-low.cc (win32_target_ops): Update.
3872 (win32_wait): Turn into ...
3873 (win32_process_target::wait): ... this.
3874 (do_initial_child_stuff): Update.
3875 * win32-low.h (class win32_process_target): Update.
3877 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3879 Turn process_stratum_target's resume op into a method of
3882 * target.h (struct process_stratum_target): Remove the target op.
3883 (class process_target): Add the target op.
3885 Update the derived classes and callers below.
3887 * server.cc (resume): Update.
3888 * target.cc (target_stop_and_wait): Update.
3889 (target_continue_no_signal): Update.
3890 (target_continue): Update.
3891 * linux-low.cc (linux_target_ops): Update.
3892 (linux_resume): Turn into ...
3893 (linux_process_target::resume): ... this.
3894 * linux-low.h (class linux_process_target): Update.
3895 * lynx-low.cc (lynx_target_ops): Update.
3896 (lynx_resume): Turn into ...
3897 (lynx_process_target::resume): ... this.
3898 * lynx-low.h (class lynx_process_target): Update.
3899 * nto-low.cc (nto_target_ops): Update.
3900 (nto_resume): Turn into ...
3901 (nto_process_target::resume): ... this.
3902 * nto-low.h (class nto_process_target): Update.
3903 * win32-low.cc (win32_target_ops): Update.
3904 (win32_resume): Turn into ...
3905 (win32_process_target::resume): ... this.
3906 (win32_process_target::detach): Update.
3907 (do_initial_child_stuff): Update.
3908 * win32-low.h (class win32_process_target): Update.
3910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912 Turn process_stratum_target's thread_alive op into a method of
3915 * target.h (struct process_stratum_target): Remove the target op.
3916 (class process_target): Add the target op.
3917 (mythread_alive): Update the macro.
3919 Update the derived classes and callers below.
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_thread_alive): Turn into ...
3923 (linux_process_target::thread_alive): ... this.
3924 (wait_for_sigstop): Update.
3925 * linux-low.h (class linux_process_target): Update.
3926 * lynx-low.cc (lynx_target_ops): Update.
3927 (lynx_thread_alive): Turn into ...
3928 (lynx_process_target::thread_alive): ... this.
3929 * lynx-low.h (class lynx_process_target): Update.
3930 * nto-low.cc (nto_target_ops): Update.
3931 (nto_thread_alive): Turn into ...
3932 (nto_process_target::thread_alive): ... this.
3933 * nto-low.h (class nto_process_target): Update.
3934 * win32-low.cc (win32_target_ops): Update.
3935 (win32_thread_alive): Turn into ...
3936 (win32_process_target::thread_alive): ... this.
3937 * win32-low.h (class win32_process_target): Update.
3939 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3941 Turn process_stratum_target's join op into a method of
3944 * target.h (struct process_stratum_target): Remove the target op.
3945 (class process_target): Add the target op.
3946 (join_inferior): Update the macro.
3948 Update the derived classes and callers below.
3950 * linux-low.cc (linux_target_ops): Update.
3951 (linux_join): Turn into ...
3952 (linux_process_target::join): ... this.
3953 * linux-low.h (class linux_process_target): Update.
3954 * lynx-low.cc (lynx_target_ops): Update.
3955 (lynx_join): Turn into ...
3956 (lynx_process_target::join): ... this.
3957 * lynx-low.h (class lynx_process_target): Update.
3958 * nto-low.cc (nto_target_ops): Update.
3959 (nto_process_target::join): Define.
3960 * nto-low.h (class nto_process_target): Update.
3961 * win32-low.cc (win32_target_ops): Update.
3962 (win32_join): Turn into ...
3963 (win32_process_target::join): ... this.
3964 * win32-low.h (class win32_process_target): Update.
3966 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3968 Turn process_stratum_target's mourn op into a method of
3971 * target.h (struct process_stratum_target): Remove the target op.
3972 (class process_target): Add the target op.
3974 Update the derived classes and callers below.
3976 * target.cc (target_mourn_inferior): Update.
3977 * linux-low.cc (linux_target_ops): Update.
3978 (linux_mourn): Turn into ...
3979 (linux_process_target::mourn): ... this.
3980 (handle_extended_wait): Update.
3981 (linux_process_target::kill): Update.
3982 (linux_process_target::detach): Update.
3983 * linux-low.h (class linux_process_target): Update.
3984 * lynx-low.cc (lynx_target_ops): Update.
3985 (lynx_mourn): Turn into ...
3986 (lynx_process_target::mourn): ... this.
3987 * lynx-low.h (class lynx_process_target): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 (nto_mourn): Turn into ...
3990 (nto_process_target::mourn): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_mourn): Turn into ...
3994 (win32_process_target::mourn): ... this.
3995 * win32-low.h (class win32_process_target): Update.
3997 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999 Turn process_stratum_target's detach op into a method of
4002 * target.h (struct process_stratum_target): Remove the target op.
4003 (class process_target): Add the target op.
4004 (detach_inferior): Update the macro.
4006 Update the derived classes and callers below.
4008 * linux-low.cc (linux_target_ops): Update.
4009 (linux_detach): Turn into ...
4010 (linux_process_target::detach): ... this.
4011 * linux-low.h (class linux_process_target): Update.
4012 * lynx-low.cc (lynx_target_ops): Update.
4013 (lynx_detach): Turn into ...
4014 (lynx_process_target::detach): ... this.
4015 * lynx-low.h (class lynx_process_target): Update.
4016 * nto-low.cc (nto_target_ops): Update.
4017 (nto_detach): Turn into ...
4018 (nto_process_target::detach): ... this.
4019 * nto-low.h (class nto_process_target): Update.
4020 * win32-low.cc (win32_target_ops): Update.
4021 (win32_detach): Turn into ...
4022 (win32_process_target::detach): ... this.
4023 * win32-low.h (class win32_process_target): Update.
4025 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4027 Turn process_stratum_target's kill op into a method of
4030 * target.h (struct process_stratum_target): Remove the target op.
4031 (class process_target): Add the target op.
4033 Update the derived classes and callers below.
4035 * target.cc (kill_inferior): Update.
4036 * linux-low.cc (linux_target_ops): Update.
4037 (linux_kill): Turn into ...
4038 (linux_process_target::kill): ... this.
4039 * linux-low.h (class linux_process_target): Update.
4040 * lynx-low.cc (lynx_target_ops): Update.
4041 (lynx_kill): Turn into ...
4042 (lynx_process_target::kill): ... this.
4043 * lynx-low.h (class lynx_process_target): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 (nto_kill): Turn into ...
4046 (nto_process_target::kill): ... this.
4047 * nto-low.h (class nto_process_target): Update.
4048 * win32-low.cc (win32_target_ops): Update.
4049 (win32_kill): Turn into ...
4050 (win32_process_target::kill): ... this.
4051 * win32-low.h (class win32_process_target): Update.
4053 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055 Turn process_stratum_target's attach op into a method of
4058 * target.h (struct process_stratum_target): Remove the target op.
4059 (class process_target): Add the target op.
4060 (myattach): Update the macro.
4062 Update the derived classes and callers below.
4064 * linux-low.cc (linux_target_ops): Update.
4065 (linux_attach): Turn into ...
4066 (linux_process_target::attach): ... this.
4067 * linux-low.h (class linux_process_target): Update.
4068 * lynx-low.cc (lynx_target_ops): Update.
4069 (lynx_attach): Turn into ...
4070 (lynx_process_target::attach): ... this.
4071 * lynx-low.h (class lynx_process_target): Update.
4072 * nto-low.cc (nto_target_ops): Update.
4073 (nto_attach): Turn into ...
4074 (nto_process_target::attach): ... this.
4075 * nto-low.h (class nto_process_target): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077 (win32_attach): Turn into ...
4078 (win32_process_target::attach): ... this.
4079 * win32-low.h (class win32_process_target): Update.
4081 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4083 Turn process_stratum_target's post_create_inferior op into a method
4086 * target.h (struct process_stratum_target): Remove the target op.
4087 (class process_target): Add the target op.
4088 (target_post_create_inferior): Update the macro.
4089 * target.cc (process_target::post_create_inferior): Define.
4091 Update the derived classes and callers below.
4093 * linux-low.cc (linux_target_ops): Update.
4094 (linux_post_create_inferior): Turn into ...
4095 (linux_process_target::post_create_inferior): ... this.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 * nto-low.cc (nto_target_ops): Update.
4099 * win32-low.cc (win32_target_ops): Update.
4101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4103 Turn process_stratum_target's create_inferior op into a method of
4106 * target.h (struct process_stratum_target): Remove the target op.
4107 (class process_target): Add the target op.
4108 (create_inferior): Rename the macro to ...
4109 (target_create_inferior): ... this.
4111 Update the derived classes and callers below.
4113 * server.cc (handle_v_run): Update.
4114 (captured_main): Update.
4115 (process_serial_event): Update.
4116 * linux-low.cc (linux_target_ops): Update.
4117 (linux_create_inferior): Turn into ...
4118 (linux_process_target::create_inferior): ... this.
4119 * linux-low.h (class linux_process_target): Update.
4120 * lynx-low.cc (lynx_target_ops): Update.
4121 (lynx_create_inferior): Turn into ...
4122 (lynx_process_target::create_inferior): ... this.
4123 * lynx-low.h (class lynx_process_target): Update.
4124 * nto-low.cc (nto_target_ops): Update.
4125 (nto_create_inferior): Turn into ...
4126 (nto_process_target::create_inferior): ... this.
4127 * nto-low.h (class nto_process_target): Update.
4128 * win32-low.cc (win32_target_ops): Update.
4129 (win32_create_inferior): Turn into ...
4130 (win32_process_target::create_inferior): ... this.
4131 * win32-low.h (class win32_process_target): Update.
4133 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4135 * target.h (class process_target): New class definition.
4136 (struct process_stratum_target) <pt>: New field with type
4138 * linux-low.h (class linux_process_target): Define as a derived
4139 class of 'process_target'.
4140 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4142 * lynx-low.h (class lynx_process_target): Define as a derived
4143 class of 'process_target'.
4144 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4146 * nto-low.h (class nto_process_target): Define as a derived
4147 class of 'process_target'.
4148 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4150 * win32-low.h (class win32_process_target): Define as a derived
4151 class of 'process_target'.
4152 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4155 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4157 * configure: Regenerate.
4159 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4160 Andrew Burgess <andrew.burgess@embecosm.com>
4162 * linux-riscv-low.cc: New file.
4163 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4164 and nat/riscv-linux-tdesc.c.
4165 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4166 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4169 2020-02-14 Tom Tromey <tom@tromey.com>
4171 * acinclude.m4: Don't include acx_configure_dir.m4.
4172 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4173 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4174 (all, install-only, uninstall, clean-info, clean)
4175 (maintainer-clean): Don't recurse.
4176 (subdir_do, all-lib): Remove.
4177 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4179 (generated_files): Update.
4180 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4181 * configure: Rebuild.
4182 * configure.ac: Don't configure gnulib or libiberty.
4185 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4187 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4188 preparing the command line for CreateProcess.
4189 (win32_create_inferior): Reflect the program name in debugging
4190 output that shows the process and its command line.
4192 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4194 * Makefile.in: Rename source files from .c to .cc.
4195 * %.c: Rename to %.cc.
4196 * configure.ac: Rename server.c to server.cc.
4197 * configure: Re-generate.
4199 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4201 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4203 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4205 * win32-low.c (win32_create_inferior): Set signal_pid.
4207 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4208 Pedro Alves <palves@redhat.com>
4210 Skip building gdbserver in a cross-configuration.
4211 * configure.srv: Set $gdbserver_host depending on whether $target
4212 is $host. Use $gdbserver_host instead of $host.
4214 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4216 * configure: Re-generate.
4218 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4220 * configure: Re-generate.
4222 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4224 * acinclude.m4: Update warning.m4 path.
4226 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4228 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4229 (handle_exception): Set siginfo_er.
4230 (win32_xfer_siginfo): New function.
4232 2020-02-07 Tom Tromey <tom@tromey.com>
4233 Pedro Alves <palves@redhat.com>
4235 * README: Update build documentation.
4236 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4238 * configure.ac: Update paths.
4239 * configure: Rebuild.
4240 * acinclude.m4: Update paths.
4241 * Makefile.in: Update include paths.
4242 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4243 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4244 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4245 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4246 (%-generated.c): Update paths.
4247 * Move entire directory from ../gdb/gdbserver.
4249 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4251 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4253 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4255 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4256 assignment instead of srv_linux_obj.
4258 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4260 * server.c (handle_qxfer_libraries): Write segment-address with
4263 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4265 * Makefile.in (install-strip): New target.
4266 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4267 * aclocal.m4: Regenerate.
4268 * configure: Regenerate.
4269 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4271 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4273 * Makefile.in (SFILES): Adjust paths to point to real files.
4274 (OBS): Move waitstatus.o to target/waitstatus.o.
4275 (TAGS): Transform paths appropriately.
4277 (nat/%.o): ... this pattern rule.
4279 (target/%.o): ... this pattern rule.
4280 * configure.srv: Adjust paths throughout to include nat/ prefix
4281 with the revant files.
4282 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4283 * configure: Regenerate.
4285 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4287 * Makefile.in (TAGS): Remove config files from the recipe.
4289 2020-01-14 Tom Tromey <tom@tromey.com>
4291 * configure: Rebuild.
4292 * configure.ac: Remove any checks that were added to common.m4.
4293 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4296 2020-01-14 Tom Tromey <tom@tromey.com>
4298 * server.h: Include config.h.
4299 * gdbreplay.c: Include config.h.
4300 * configure: Rebuild.
4301 * configure.ac: Don't source common.host.
4302 * acinclude.m4: Update path.
4303 * Makefile.in (INCSUPPORT): New variable.
4304 (INCLUDE_CFLAGS): Add INCSUPPORT.
4305 (SFILES): Update paths.
4306 (version-generated.c): Update path to create-version.sh.
4307 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4309 2020-01-14 Tom Tromey <tom@tromey.com>
4311 * configure.ac (LIBS): Use WIN32APILIBS.
4312 (USE_WIN32API): Don't define.
4313 * configure: Rebuild.
4315 2020-01-14 Tom Tromey <tom@tromey.com>
4317 * configure: Rebuild.
4319 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4321 * Makefile.in (%-generated.c): Remove rule for files from
4324 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4326 * configure: Re-generate.
4328 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4330 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4332 * tracepoint.c (stop_tracing, flush_trace_buffer,
4333 about_to_request_buffer_space, get_trace_state_variable_value,
4334 set_trace_state_variable_value, gdb_collect): Add declaration.
4336 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4338 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4339 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4340 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4341 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4342 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4345 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4347 * inferiors.c: Include gdbsupport/common-inferior.h.
4349 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4351 * hostio-errno.c: Include hostio.h.
4353 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4355 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4358 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4360 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4361 * linux-arm-tdesc.h: Include arch/arm.h.
4363 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4365 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4367 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4369 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4370 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4372 2020-01-10 Pedro Alves <palves@redhat.com>
4374 * fork-child.c (post_fork_inferior): Pass target down to
4376 * inferiors.c (switch_to_thread): Add process_stratum_target
4378 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4379 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4380 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4381 * remote-utils.c (prepare_resume_reply): Pass the target to
4383 * target.c (the_target): Now a process_stratum_target.
4384 (done_accessing_memory): Pass the target to switch_to_thread.
4385 (set_target_ops): Ajust to use process_stratum_target.
4386 * target.h (struct target_ops): Rename to ...
4387 (struct process_stratum_target): ... this.
4388 (the_target, set_target_ops): Adjust.
4389 (prepare_to_access_memory): Adjust comment.
4390 * win32-low.c (child_xfer_memory): Adjust to use
4391 process_stratum_target.
4392 (win32_target_ops): Now a process_stratum_target.
4394 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4395 Pedro Alves <palves@redhat.com>
4397 * win32-low.c (get_child_debug_event): Extract the fatal exception
4398 from the exit status and convert to the equivalent Posix signal
4400 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4401 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4403 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4405 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4407 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4409 * server.c (gdbserver_version): Change copyright year to 2020.
4410 * gdbreplay.c (gdbreplay_version): Likewise.
4412 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4414 * configure: Regenerate.
4415 * configure.ac: Quote variable arguments of test.
4417 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4419 * Makefile.in: Fix build with GNU Make 3.81
4421 2019-12-16 Tom Tromey <tromey@adacore.com>
4423 * server.c (get_exec_file): Constify result.
4425 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4427 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4428 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4429 * config.in: Regenerate.
4430 * configure: Regenerate.
4431 * configure.ac: Don't check for strerror.
4432 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4433 Call safe_strerror instead of strerror.
4434 * server.h (strerror): Remove this now-unnecessary declaration.
4435 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4437 (gdb_agent_helper_thread): Likewise.
4438 * utils.c (perror_with_name): Likewise.
4440 2019-11-26 Tom Tromey <tom@tromey.com>
4442 * configure, config.in: Rebuild.
4444 2019-11-26 Tom Tromey <tom@tromey.com>
4446 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4447 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4449 * configure, config.in: Rebuild.
4451 2019-11-26 Tom Tromey <tom@tromey.com>
4453 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4454 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4455 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4456 * acinclude.m4: Include ax_pthread.m4.
4457 * config.in, configure: Rebuild.
4459 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4461 * debug.c (debug_set_output): Call safe_strerror instead of
4463 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4464 (linux_kill_one_lwp): Likewise.
4465 (linux_detach_one_lwp): Likewise.
4466 (linux_wait_for_event_filtered): Likewise.
4467 (store_register): Likewise.
4468 * lynx-low.c (lynx_attach): Likewise.
4469 * mem-break.c (insert_memory_breakpoint): Likewise.
4470 (remove_memory_breakpoint): Likewise.
4471 (delete_fast_tracepoint_jump): Likewise.
4472 (set_fast_tracepoint_jump): Likewise.
4473 (uninsert_fast_tracepoint_jumps_at): Likewise.
4474 (reinsert_fast_tracepoint_jumps_at): Likewise.
4475 * nto-low.c (nto_xfer_memory): Likewise.
4476 (nto_resume): Likewise.
4478 2019-11-20 Luis Machado <luis.machado@linaro.org>
4480 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4481 instead of register count.
4482 * tdesc.c (tdesc_contains_feature): New function.
4483 * tdesc.h (tdesc_contains_feature): New prototype.
4485 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4487 * Makefile.in: Add safe-strerror.c.
4488 * configure: Regenerate.
4489 * configure.ac: Don't source common.host.
4491 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4493 * config.in: Regenerate.
4494 * configure: Regenerate.
4496 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4498 * ax.c (ax_printf): Handle size_t_arg.
4500 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4502 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4503 * mi/mi-main.c (output_cores): Likewise.
4504 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4505 (linux_xfer_osdata_modules): Likewise.
4506 * remote.c (register_remote_support_xml): Likewise.
4507 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4508 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4510 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4512 * configure: Regenerate.
4513 * configure.ac: Remove check for strerror_r.
4515 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4517 * config.in: Regenerate.
4518 * configure: Regenerate.
4519 * configure.ac: Also check for strerror_r.
4521 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4523 * ax.h (debug_agent): Remove duplicate declaration.
4525 2019-10-26 Tom de Vries <tdevries@suse.de>
4527 * linux-aarch64-low.c: Fix typos in comments.
4528 * linux-arm-low.c: Same.
4529 * linux-low.c: Same.
4530 * linux-ppc-low.c: Same.
4531 * proc-service.c: Same.
4534 * tracepoint.c: Same.
4535 * win32-low.c: Same.
4537 2019-10-25 Tom Tromey <tromey@adacore.com>
4539 * utils.c (xstrdup): Remove.
4541 2019-10-23 Tom Tromey <tom@tromey.com>
4543 * configure, config.in: Rebuild.
4545 2019-10-23 Tom Tromey <tom@tromey.com>
4547 * configure: Rebuild.
4548 * acinclude.m4: Use m4_include, not sinclude.
4550 2019-10-17 Tom Tromey <tromey@adacore.com>
4552 * configure: Rebuild.
4553 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4554 in AC_CONFIG_FILES invocation.
4555 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4558 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4560 * server.c: Include xml-builtin.h.
4561 (get_xml_features): Don't declare xml_builtins here.
4563 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4565 * Makefile.in: Remove references to vec-ipa.o.
4567 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4569 * Makefile.in: Remove references to vec.c.
4571 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4573 * server.c (server_waiting): Change to bool.
4574 (extended_protocol): Likewise.
4575 (response_needed): Likewise.
4576 (exit_requested): Likewise.
4577 (run_once): Likewise.
4578 (report_no_resumed): Likewise.
4579 (non_stop): Likewise.
4580 (disable_packet_vCont): Likewise.
4581 (disable_packet_Tthread): Likewise.
4582 (disable_packet_qC): Likewise.
4583 (disable_packet_qfThreadInfo): Likewise.
4584 (handle_general_set): Update.
4585 (handle_detach): Update.
4586 (handle_monitor_command): Update.
4587 (handle_query): Update.
4588 (captured_main): Update.
4589 (process_serial_event): Update.
4590 * server.h (server_waiting): Change to bool.
4591 (disable_packet_vCont): Likewise.
4592 (disable_packet_Tthread): Likewise.
4593 (disable_packet_qC): Likewise.
4594 (disable_packet_qfThreadInfo): Likewise.
4595 (run_once): Likewise.
4596 (non_stop): Likewise.
4597 * target.c (target_stop_and_wait): Update.
4599 2019-10-02 Tom Tromey <tromey@adacore.com>
4601 * Makefile.in (SFILES): Add common-inferior.c.
4602 (OBS): Add common-inferior.o.
4603 * server.c (startup_with_shell): Don't define.
4605 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4607 * linux-low.c (linux_low_read_btrace): Update for change to
4610 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4612 * debug.c (debug_threads): Remove comment in favor of the header.
4613 * debug.h (using_threads): Add declaration.
4614 (debug_threads): Add comment.
4615 * linux-aarch64-low.c: Include debug.h and remove declaration of
4617 * nto-low.c: Likewise.
4618 * remote-utils.c: Likewise.
4619 * thread-db.c: Likewise.
4621 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4623 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4624 and powerpc-cell64l-ipa.o.
4625 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4626 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4627 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4630 * spu-low.c: Remove file.
4632 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4633 (parse_spufs_run): Remove.
4634 (ppc_get_pc): Remove Cell/B.E. support.
4635 (ppc_set_pc): Likewise.
4636 (ppc_breakpoint_at): Likewise.
4637 (ppc_arch_setup): Likewise.
4638 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4639 tdesc_powerpc_cell32l.
4640 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4641 or init_registers_powerpc_cell32l.
4642 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4643 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4644 or init_registers_powerpc_cell32l.
4645 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4646 (init_registers_powerpc_cell32l): Remove prototype.
4647 (init_registers_powerpc_cell64l): Likewise.
4649 * target.h (struct target_ops): Remove qxfer_spu member.
4650 * server.c (handle_qxfer_spu): Remove.
4651 (qxfer_packets): Remove entry for "spu".
4652 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4653 * linux-low.c (SPUFS_MAGIC): Remove.
4654 (spu_enumerate_spu_ids): Remove.
4655 (linux_qxfer_spu): Remove.
4656 (linux_target_ops): Remove qxfer_spu member.
4657 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4658 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4659 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4661 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4663 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4664 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4665 * config.in: Regenerate.
4666 * configure: Regenerate.
4668 2019-08-15 Tom Tromey <tromey@adacore.com>
4670 * target.c (target_write_memory): Use gdb::byte_vector.
4672 2019-08-15 Tom Tromey <tromey@adacore.com>
4674 * tracepoint.c (write_inferior_data_pointer)
4675 (write_inferior_integer, write_inferior_int8)
4676 (write_inferior_uinteger, m_tracepoint_action_download)
4677 (r_tracepoint_action_download, x_tracepoint_action_download)
4678 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4679 (download_agent_expr, download_tracepoint_1)
4680 (download_trace_state_variables, upload_fast_traceframes): Update.
4681 * server.c (gdb_write_memory): Update.
4682 * remote-utils.c (relocate_instruction): Update.
4683 * proc-service.c (ps_pdwrite): Update.
4684 * mem-break.c (remove_memory_breakpoint)
4685 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4686 (uninsert_fast_tracepoint_jumps_at)
4687 (reinsert_fast_tracepoint_jumps_at): Update.
4688 * linux-x86-low.c (append_insns)
4689 (i386_install_fast_tracepoint_jump_pad)
4690 (amd64_write_goto_address, i386_write_goto_address): Update.
4691 * linux-s390-low.c (append_insns, s390_write_goto_address):
4693 * linux-ppc-low.c (ppc_relocate_instruction)
4694 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4695 (ppc_write_goto_address): Update.
4696 * linux-aarch64-low.c (append_insns): Update.
4697 * target.h (struct target_ops): Update.
4698 (write_inferior_memory): Don't declare.
4699 * target.c (target_write_memory): Rename from
4700 write_inferior_memory. Remove old target_write_memory.
4702 2019-08-15 Tom Tromey <tromey@adacore.com>
4704 * target.c (write_inferior_memory): Use std::vector.
4706 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4709 * configure.ac: Drop enable-libmcheck support.
4710 * configure, config.in: Rebuild.
4711 * acinclude.m4: Don't include it.
4713 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4715 * configure.srv: Remove Arm xml files.
4717 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4719 * configure.srv: Add new files. Remove xml generated files.
4720 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4722 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4723 * linux-aarch32-tdesc.c: New file.
4724 * linux-aarch32-tdesc.h: New file.
4725 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4726 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4727 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4728 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4729 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4730 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4731 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4732 (arm_read_description): Call arm_linux_read_description.
4733 (initialize_low_arch): Don't init registers.
4734 * linux-arm-tdesc.c: New file.
4735 * linux-arm-tdesc.h: New file.
4737 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4739 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4740 Move counter inside for.
4741 (arm_read_description): Check ptrace earlier.
4742 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4744 2019-07-09 Tom Tromey <tom@tromey.com>
4746 * configure: Rebuild.
4747 * configure.ac: Change common to gdbsupport.
4748 * acinclude.m4: Change common to gdbsupport.
4749 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4750 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4751 common to gdbsupport.
4752 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4753 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4754 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4755 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4756 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4757 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4758 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4759 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4760 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4761 common to gdbsupport.
4763 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4765 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4767 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4769 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4771 * configure.srv: Remove legacy xml.
4772 * linux-aarch64-low.c (initialize_low_arch): Remove
4773 initialize_low_tdesc call.
4774 * linux-aarch64-tdesc-selftest.c: Remove file.
4775 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4776 * linux-x86-low.c (initialize_low_arch): Remove
4777 initialize_low_tdesc call.
4778 * linux-x86-tdesc-selftest.c: Remove file.
4779 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4781 2019-06-20 Tom de Vries <tdevries@suse.de>
4783 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4784 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4786 2019-06-19 Tom de Vries <tdevries@suse.de>
4788 * debug.h (debug_write): Change return type to ssize_t.
4789 * debug.c (debug_write): Same.
4791 2019-06-14 Tom Tromey <tom@tromey.com>
4793 * configure.ac: Use new path to gnulib.
4794 * configure: Rebuild.
4795 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4798 2019-06-11 Tom Tromey <tom@tromey.com>
4800 * Makefile.in (SFILES): Add alloc.c.
4802 (IPA_OBJS): Add alloc-ipa.o.
4803 (alloc-ipa.o): New target.
4804 (%.o: ../%.c): New pattern rule.
4806 2019-06-10 Tom Tromey <tromey@adacore.com>
4808 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4809 end warning with a newline.
4810 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4812 * thread-db.c (attach_thread): Don't end warning with a newline.
4813 (thread_db_notice_clone): Likewise.
4814 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4816 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4817 end warning with a newline.
4819 2019-06-04 Pedro Alves <palves@redhat.com>
4821 * server.c (captured_main): Use make_unique_xstrdup.
4823 2019-06-02 Tom Tromey <tom@tromey.com>
4825 * gdbreplay.c (fromhex): Remove.
4826 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4828 2019-05-29 Tom Tromey <tromey@adacore.com>
4830 * configure: Rebuild.
4832 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4834 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4835 sign extension code on 32-bit builds.
4837 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4840 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4842 2019-04-19 Tom Tromey <tom@tromey.com>
4844 * server.c (struct vstop_notif): Derive from notif_event.
4846 (queue_stop_reply): Update.
4847 (remove_all_on_match_ptid): Change type. Rewrite.
4848 (discard_queued_stop_replies): Rewrite.
4849 (in_queued_stop_replies_ptid): Change type.
4850 (in_queued_stop_replies): Rewrite.
4851 (notif_stop): Update.
4852 (queue_stop_reply_callback): Update.
4853 (captured_main): Don't call initialize_notif.
4854 (push_stop_notification): Update.
4855 * notif.c (notif_write_event, handle_notif_ack)
4856 (notif_event_enque, notif_push): Update.
4857 (notif_event_xfree, initialize_notif): Remove.
4858 * notif.h (struct notif_event): Include <list>, not
4860 (struct notif_server) <queue>: Now a std::list.
4861 (notif_event_p): Remove typedef.
4862 (initialize_notif): Don't declare.
4863 (struct notif_event): Add virtual destructor.
4865 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4867 * ax.c (ax_vdebug): Call debug_printf.
4868 * debug.c (debug_write): New function.
4869 * debug.h (debug_write): New declaration.
4870 * linux-low.c (sigchld_handler): Call debug_write.
4872 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4874 * debug.c (debug_set_output): New function.
4875 (debug_vprintf): Send output to debug_file.
4876 (debug_flush): Likewise.
4877 * debug.h (debug_set_output): New declaration.
4878 * server.c (handle_monitor_command): Add debug-file option.
4879 (captured_main): Likewise.
4881 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4883 * debug.c (remote_debug): Add definition.
4884 * debug.h (remote_debug): Add declaration.
4885 * hostio.c (remote_debug): Remove declaration.
4886 * remote-utils.c (struct ui_file): Likewise.
4887 (remote_debug): Likewise.
4888 * remote-utils.h (remote_debug): Likewise,
4889 * server.c (remote_debug): Remove definition.
4891 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4893 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4894 when using a 64-bit gdbserver.
4896 2019-04-09 Tom Tromey <tromey@adacore.com>
4898 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4900 2019-04-08 Tom Tromey <tom@tromey.com>
4902 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4904 (linux_resume_one_lwp): Likewise.
4906 2019-04-08 Tom Tromey <tom@tromey.com>
4908 * gdbreplay.c: Update.
4909 * linux-low.c: Update.
4912 2019-04-08 Tom Tromey <tom@tromey.com>
4914 * server.c: Use C++ exception handling.
4915 * linux-low.c: Use C++ exception handling.
4916 * gdbreplay.c: Use C++ exception handling.
4918 2019-04-08 Tom Tromey <tom@tromey.com>
4920 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4921 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4922 (captured_main, main): Update.
4923 * gdbreplay.c (main): Update.
4925 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4927 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4928 value in argument pointer, return 1 if the entry is found and 0
4929 otherwise. Move comment.
4930 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4931 * linux-low.h (linux_get_auxv): Declare.
4932 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4934 2019-04-05 Tom Tromey <tromey@adacore.com>
4936 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4939 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4941 * linux-low.c (AT_HWCAP2): Add define if not already included.
4943 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4945 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4946 (aarch64_arch_setup): Call linux_get_hwcap.
4947 * linux-arm-low.c (arm_get_hwcap): Remove function.
4948 (arm_read_description): Call linux_get_hwcap.
4949 * linux-low.c (linux_get_auxv): New function.
4950 (linux_get_hwcap): Likewise.
4951 (linux_get_hwcap2): Likewise.
4952 * linux-low.h (linux_get_hwcap): New declaration.
4953 (linux_get_hwcap2): Likewise.
4954 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4955 (ppc_arch_setup): Call linux_get_hwcap.
4956 * linux-s390-low.c (s390_get_hwcap): Remove function.
4957 (s390_arch_setup): Call linux_get_hwcap.
4959 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4960 Jiong Wang <jiong.wang@arm.com>
4962 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4963 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4965 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4967 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4968 Jiong Wang <jiong.wang@arm.com>
4970 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4971 (aarch64_get_hwcap): New function.
4972 (aarch64_arch_setup): Read APIA hwcap.
4974 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4975 Jiong Wang <jiong.wang@arm.com>
4977 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4978 (initialize_low_tracepoint): Likewise.
4979 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4980 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4981 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4982 (aarch64_linux_read_description): Likewise.
4983 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4985 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4987 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4988 i386_create_target_description for 'segments' parameter.
4989 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4990 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4991 * win32-i386-low.c (i386_arch_setup): Likewise.
4993 2019-03-12 Tom Tromey <tromey@adacore.com>
4995 * linux-low.c (iterate_over_lwps): Update.
4997 2019-03-06 Tom Tromey <tom@tromey.com>
4999 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5000 (captured_main): Use SCOPE_EXIT.
5002 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5004 * configure.srv: Use '$enable_unittest' instead of '$development'
5005 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5008 2019-02-27 Tom Tromey <tromey@adacore.com>
5010 * gdbreplay.c (logchar): Handle \r\n.
5012 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5014 * linux-low.c (linux_attach): Add process before lwp.
5015 * server.c (attach_inferior): Check if already attached.
5017 2019-02-07 Tom Tromey <tom@tromey.com>
5019 * x86-tdesc.h: Rename include guard.
5020 * x86-low.h: Add include guard.
5021 * wincecompat.h: Rename include guard.
5022 * win32-low.h: Add include guard.
5023 * utils.h: Rename include guard.
5024 * tracepoint.h: Rename include guard.
5025 * tdesc.h: Rename include guard.
5026 * target.h: Rename include guard.
5027 * server.h: Rename include guard.
5028 * remote-utils.h: Rename include guard.
5029 * regcache.h: Rename include guard.
5030 * nto-low.h: Rename include guard.
5031 * notif.h: Add include guard.
5032 * mem-break.h: Rename include guard.
5033 * lynx-low.h: Add include guard.
5034 * linux-x86-tdesc.h: Add include guard.
5035 * linux-s390-tdesc.h: Add include guard.
5036 * linux-ppc-tdesc-init.h: Add include guard.
5037 * linux-low.h: Add include guard.
5038 * linux-aarch64-tdesc.h: Add include guard.
5039 * linux-aarch32-low.h: Add include guard.
5040 * inferiors.h: Rename include guard.
5041 * i387-fp.h: Rename include guard.
5042 * hostio.h: Rename include guard.
5043 * gdbthread.h: Rename include guard.
5044 * gdb_proc_service.h: Rename include guard.
5045 * event-loop.h: Rename include guard.
5046 * dll.h: Rename include guard.
5047 * debug.h: Rename include guard.
5048 * ax.h: Rename include guard.
5050 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5053 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5054 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5056 2019-01-25 Tom Tromey <tom@tromey.com>
5058 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5060 2019-01-25 Tom Tromey <tom@tromey.com>
5062 * win32-low.c: Fix common/ includes.
5063 * win32-i386-low.c: Fix common/ includes.
5064 * tracepoint.c: Fix common/ includes.
5065 * thread-db.c: Fix common/ includes.
5066 * target.h: Fix common/ includes.
5067 * symbol.c: Fix common/ includes.
5068 * spu-low.c: Fix common/ includes.
5069 * server.h: Fix common/ includes.
5070 * server.c: Fix common/ includes.
5071 * remote-utils.c: Fix common/ includes.
5072 * regcache.h: Fix common/ includes.
5073 * regcache.c: Fix common/ includes.
5074 * nto-x86-low.c: Fix common/ includes.
5075 * notif.h: Fix common/ includes.
5076 * mem-break.h: Fix common/ includes.
5077 * lynx-low.c: Fix common/ includes.
5078 * lynx-i386-low.c: Fix common/ includes.
5079 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5080 * linux-x86-low.c: Fix common/ includes.
5081 * linux-low.c: Fix common/ includes.
5082 * inferiors.h: Fix common/ includes.
5083 * i387-fp.c: Fix common/ includes.
5084 * hostio.c: Fix common/ includes.
5085 * hostio-errno.c: Fix common/ includes.
5086 * gdbthread.h: Fix common/ includes.
5087 * gdbreplay.c: Fix common/ includes.
5088 * fork-child.c: Fix common/ includes.
5089 * event-loop.c: Fix common/ includes.
5091 (enum gdb_agent_op): Fix common/ includes.
5093 2019-01-21 Tom Tromey <tom@tromey.com>
5095 * tracepoint.c: Fix includes.
5096 * remote-utils.c: Fix includes.
5097 * linux-x86-low.c: Fix includes.
5099 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5101 * gdbreplay.c (gdbreplay_version): Update copyright year in
5103 * server.c (gdbserver_version): Likewise.
5105 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5107 * linux-low.c (add_lwp): Switch ordering.
5109 2018-11-29 Tom Tromey <tom@tromey.com>
5111 * win32-low.c (win32_join): Take pid, not process.
5112 * target.h (struct target_ops) <join>: Change argument type.
5113 (join_inferior): Change argument name.
5114 * spu-low.c (spu_join): Take pid, not process.
5115 * server.c (handle_detach): Preserve pid before destroying
5117 * lynx-low.c (lynx_join): Take pid, not process.
5118 * linux-low.c (linux_join): Take pid, not process.
5120 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5122 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5123 (aarch64_cannot_fetch_register): Likewise.
5124 (struct linux_target_ops): Update references.
5126 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5128 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5130 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5132 * configure.srv (ipa_ppc_linux_regobj): Add
5133 powerpc-isa207-htm-vsx32l-ipa.o and
5134 powerpc-isa207-htm-vsx64l-ipa.o.
5135 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5136 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5137 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5138 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5139 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5140 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5141 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5142 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5143 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5144 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5145 (init_registers_powerpc_isa207_htm_vsx32l)
5146 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5147 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5148 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5149 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5150 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5151 (ppc_store_tm_ctarregset): New functions.
5152 (ppc_regsets): Add entries for HTM regsets.
5153 (ppc_arch_setup): Set htm in features struct when needed. Set
5154 sizes for the HTM regsets.
5155 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5156 (initialize_low_arch): Call
5157 init_registers_powerpc_isa207_htm_vsx32l and
5158 init_registers_powerpc_isa207_htm_vsx64l.
5159 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5160 PPC_TDESC_ISA207_HTM_VSX.
5161 (initialize_low_tracepoint): Call
5162 init_registers_powerpc_isa207_htm_vsx32l and
5163 init_registers_powerpc_isa207_htm_vsx64l.
5165 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5167 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5168 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5169 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5170 (ppc_store_pmuregset): New functions.
5171 (ppc_regsets): Add entries for ebb and pmu regsets.
5172 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5173 pmu regsets are available. Set sizes for these regsets.
5175 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5177 * configure.srv (ipa_ppc_linux_regobj): Add
5178 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5179 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5180 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5181 rs6000/powerpc-isa207-vsx32l.xml, and
5182 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5183 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5184 <PPC_TDESC_ISA207_VSX>: New enum value.
5185 (init_registers_powerpc_isa207_vsx32l): Declare.
5186 (init_registers_powerpc_isa207_vsx64l): Declare.
5187 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5188 (ppc_store_tarregset): New function.
5189 (ppc_regsets): Add entry for the TAR regset.
5190 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5191 size for the TAR regsets.
5192 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5193 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5194 and init_registers_powerpc_isa207_vsx64l.
5195 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5196 (initialize_low_tracepoint): Call
5197 init_registers_powerpc_isa207_vsx32l and
5198 init_registers_powerpc_isa207_vsx64l.
5200 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5201 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5203 * configure.srv (ipa_ppc_linux_regobj): Add
5204 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5205 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5206 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5207 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5208 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5209 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5210 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5211 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5212 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5213 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5214 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5215 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5216 (ppc_hwcap): Add comment.
5217 (ppc_hwcap2): New global.
5218 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5219 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5220 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5221 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5222 when needed. Set sizes for the the DSCR and PPR regsets.
5223 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5224 (initialize_low_arch): Call
5225 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5226 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5227 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5228 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5229 (initialize_low_tracepoint): Call
5230 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5231 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5233 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5235 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5237 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5238 Simon Marchi <simark@simark.ca>
5240 * acinclude.m4: Include "../selftest.m4".
5241 * configure: Regenerate.
5242 * configure.ac: Use "GDB_AC_SELFTEST".
5243 * configure.srv: Use "$enable_unittests" instead of
5244 "$development" when checking whether unit tests have been
5246 * server.c (captured_main): Update message informing that
5247 selftests have been disabled.
5249 2018-10-04 Tom Tromey <tom@tromey.com>
5251 * configure: Rebuild.
5253 2018-10-04 Tom Tromey <tom@tromey.com>
5255 * server.c (handle_status): Rename inner "thread".
5256 (process_serial_event): Declare "res" in 'm' case.
5257 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5258 (iterate_over_lwps): Rename inner "thread".
5259 (linux_qxfer_libraries_svr4): Rename inner "len".
5260 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5262 2018-10-01 Gary Benson <gbenson@redhat.com>
5264 * gdb_proc_service.h: Moved common code to
5265 common/gdb_proc_service.h.
5267 2018-10-01 Gary Benson <gbenson@redhat.com>
5269 * gdb_proc_service.h: Synchronize comments and whitespace with
5270 GDB's version of this file.
5272 2018-09-25 Tom Tromey <tom@tromey.com>
5274 * configure: Rebuild.
5275 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5277 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5279 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5280 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5281 ($(IPA_LIB)): Sort IPA_OBJS.
5283 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5285 * Makefile.in: Remove references to $(ADD_DEPS).
5287 2018-09-16 Tom Tromey <tom@tromey.com>
5289 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5291 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5294 2018-09-05 Tom Tromey <tom@tromey.com>
5296 * configure: Rebuild.
5298 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5301 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5303 2018-08-27 Tom Tromey <tom@tromey.com>
5306 * configure: Rebuild.
5308 2018-08-27 Tom Tromey <tom@tromey.com>
5310 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5311 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5312 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5313 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5314 (s390x_emit_stack_adjust): Add casts to unsigned char.
5316 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5320 * server.h (struct client_state) <disable_randomization>:
5323 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5325 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5327 (mips_supply_ptrace_register): Likewise.
5329 2018-07-22 Tom Tromey <tom@tromey.com>
5331 * configure: Rebuild.
5333 2018-07-22 Tom Tromey <tom@tromey.com>
5335 * win32-low.c (win32_create_inferior): Remove unused variables.
5336 * gdbreplay.c (remote_open): Remove unused variable.
5337 * remote-utils.c (remote_prepare): Remove unused variable.
5338 * x86-tdesc.h (X86_TDESC_H): Define.
5339 (amd64_expedite_regs): Define conditionally.
5340 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5341 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5342 * remote-utils.c (readchar): Remove unused variable.
5344 2018-07-13 Pedro Alves <palves@redhat.com>
5346 * linux-low.c (linux_kill): Change parameter to process_info
5347 pointer instead of pid. Adjust.
5348 * lynx-low.c (lynx_kill): Likewise.
5349 * nto-low.c (nto_kill): Likewise.
5350 * spu-low.c (spu_kill): Likewise.
5351 * win32-low.c (win32_kill): Likewise.
5352 * server.c (handle_v_kill, kill_inferior_callback)
5353 (detach_or_kill_for_exit): Adjust.
5354 * target.c (kill_inferior): Change parameter to process_info
5355 pointer instead of pid. Adjust.
5356 * target.h (struct target_ops) <kill>: Change parameter to
5357 process_info pointer instead of pid. Adjust all implementations
5359 (kill_inferior): Likewise.
5361 2018-07-13 Pedro Alves <palves@redhat.com>
5363 * linux-low.c (linux_detach, linux_join): Change parameter to
5364 process_info pointer instead of pid. Adjust.
5365 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5366 * nto-low.c (nto_detach): Likewise.
5367 * spu-low.c (spu_detach, spu_join): Likewise.
5368 * win32-low.c (win32_detach, win32_join): Likewise.
5369 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5370 * target.h (struct target_ops) <detach, join>: Change parameter to
5371 process_info pointer instead of pid. Adjust all implementations
5373 (detach_inferior, join_inferior): Rename 'pid' parameter to
5376 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5377 Jan Kratochvil <jan.kratochvil@redhat.com>
5378 Paul Fertser <fercerpav@gmail.com>
5379 Tsutomu Seki <sekiriki@gmail.com>
5381 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5382 (OBS): Add 'common/netstuff.o'.
5383 (GDBREPLAY_OBS): Likewise.
5384 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5385 (remote_open): Implement support for IPv6
5387 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5389 (handle_accept_event): Accept connections from IPv6 sources.
5390 (remote_prepare): Handle IPv6-style hostnames; implement
5391 support for IPv6 connections.
5392 (remote_open): Implement support for printing connections from
5395 2018-07-11 Pedro Alves <palves@redhat.com>
5398 * mem-break.c (any_persistent_commands): Add process_info
5399 parameter and use it instead of relying on the current process.
5400 Change return type to bool.
5401 * mem-break.h (any_persistent_commands): Add process_info
5402 parameter and change return type to bool.
5403 * server.c (handle_detach): Remove require_running_or_return call.
5404 Look up the process_info for the process we're about to detach.
5405 If not found, return back error to GDB. Adjust
5406 any_persistent_commands call to pass down a process pointer.
5408 2018-07-11 Pedro Alves <palves@redhat.com>
5410 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5411 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5412 instead of collect_register_by_name.
5413 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5414 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5416 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5417 Pedro Alves <palves@redhat.com>
5419 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5421 2018-07-03 Tom Tromey <tom@tromey.com>
5423 * linux-low.c: Update.
5424 * lynx-low.c: Update.
5425 * mem-break.c: Update.
5426 * nto-low.c: Update.
5427 * remote-utils.c: Update.
5429 * spu-low.c: Update.
5431 * win32-low.c: Update.
5433 2018-07-03 Tom Tromey <tom@tromey.com>
5437 2018-07-03 Tom Tromey <tom@tromey.com>
5439 * linux-low.c: Update.
5441 2018-07-03 Tom Tromey <tom@tromey.com>
5445 2018-07-03 Tom Tromey <tom@tromey.com>
5447 * linux-low.c: Update.
5448 * linux-mips-low.c: Update.
5449 * lynx-low.c: Update.
5450 * nto-low.c: Update.
5451 * remote-utils.c: Update.
5453 * spu-low.c: Update.
5455 * thread-db.c: Update.
5457 2018-07-03 Tom Tromey <tom@tromey.com>
5459 * linux-low.c: Update.
5460 * linux-mips-low.c: Update.
5461 * lynx-low.c: Update.
5462 * mem-break.c: Update.
5463 * nto-low.c: Update.
5464 * remote-utils.c: Update.
5466 * spu-low.c: Update.
5468 * tracepoint.c: Update.
5470 2018-07-03 Tom Tromey <tom@tromey.com>
5472 * linux-low.c: Update.
5473 * linux-ppc-low.c: Update.
5474 * linux-x86-low.c: Update.
5475 * proc-service.c: Update.
5477 * spu-low.c: Update.
5478 * thread-db.c: Update.
5479 * win32-low.c: Update.
5481 2018-07-03 Tom Tromey <tom@tromey.com>
5483 * linux-low.c: Update.
5484 * lynx-low.c: Update.
5485 * nto-low.c: Update.
5486 * remote-utils.c: Update.
5487 * spu-low.c: Update.
5488 * thread-db.c: Update.
5489 * win32-low.c: Update.
5491 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5493 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5494 parameter in call to 'amd64_create_target_description'.
5496 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5498 * x86-tdesc.h: Remove executable permission flag.
5500 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5502 * configure.ac: Remove AC_PREREQ, add missing quoting.
5503 * configure: Re-generate.
5504 * config.in: Re-generate.
5505 * aclocal.m4: Re-generate.
5507 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5509 * tracepoint.h (current_traceframe): Remove declaration.
5511 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5513 * linux-aarch64-low.c (is_sve_tdesc): New function.
5514 (aarch64_sve_regs_copy_to_regcache): Likewise.
5515 (aarch64_sve_regs_copy_from_regcache): Likewise.
5516 (aarch64_regs_info): Add SVE checks.
5517 (initialize_low_arch): Initialize SVE.
5519 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5521 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5523 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5525 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5526 (initialize_low_tracepoint): Likewise
5527 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5528 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5530 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5532 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5534 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5536 * server.h (PBUFSIZ): Increase size
5538 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5540 * regcache.c (regcache::raw_compare): New function.
5541 * regcache.h (regcache::raw_compare): New declaration.
5543 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5545 * regcache.c (new_register_cache): Use new.
5546 (free_register_cache): Use delete.
5547 (register_data): Use const.
5548 (supply_register): Move body inside regcache.
5549 (regcache::raw_supply): New override function.
5550 (collect_register): Move body inside regcache.
5551 (regcache::raw_collect): New override function.
5552 (regcache::get_register_status): New override function.
5553 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5555 2018-06-09 Tom Tromey <tom@tromey.com>
5557 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5559 (event_queue): Use std::queue.
5560 (gdb_event_xfree): Remove.
5561 (initialize_event_loop, process_event, wait_for_event): Update.
5563 2018-06-08 Stan Cox <scox@redhat.com>
5565 * win32-low.c (win32_create_inferior): last_ptid and last_status
5566 moved to client_state.
5568 2018-06-08 Pedro Alves <palves@redhat.com>
5570 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5571 common/common-exceptions.o, common/common-utils.o,
5572 common/errors.o, common/print-utils.o and utils.o.
5573 * gdbreplay.c: Include "common-defs.h" instead of the two
5574 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5575 string.h or alloca.h.
5576 (perror_with_name): Delete.
5577 (remote_open): Use xstrdup instead of strdup.
5578 (main): Rename to ...
5579 (captured_main): ... this.
5582 2018-06-08 Tom Tromey <tom@tromey.com>
5584 * linux-low.c (linux_low_read_btrace): Update.
5586 2018-06-04 Stan Cox <scox@redhat.com>
5588 * server.h (struct client_state): New.
5589 * server.c (cont_thread, general_thread, multi_process)
5590 (report_fork_events, report_vfork_events, report_exec_events)
5591 (report_thread_events, swbreak_feature, hwbreak_feature)
5592 (vCont_supported, disable_randomization, pass_signals)
5593 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5594 Moved to client_state.
5595 * remote-utils.c (remote_debug, noack_mode)
5596 (transport_is_reliable): Moved to client_state.
5597 * tracepoint.c (current_traceframe): Moved to client_state.
5600 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5601 linux-low.c, remote-utils.h, target.c: Use client_state.
5603 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5605 * configure.srv: Add new c/h file.
5607 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5609 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5612 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5614 * gdb.arch/mips-fpregset-core.exp: New test.
5615 * gdb.arch/mips-fpregset-core.c: New test source.
5617 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5620 * hostio.c (require_int): Do not report overflow for integers
5621 between 0xfffffff and 0x7fffffff.
5623 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5625 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5626 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5627 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5629 (the_low_target): Wire them.
5631 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5633 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5634 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5635 mode. Call collect_register_by_name with vscr using
5636 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5637 (ppc_store_vrregset): Add and set vscr_offset variable as in
5638 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5641 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5643 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5644 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5645 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5647 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5649 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5650 (ppc_store_vsxregset): Likewise.
5651 (ppc_fill_vrregset): Likewise.
5652 (ppc_store_vrregset): Likewise.
5653 (ppc_fill_evrregset): Likewise.
5654 (ppc_store_evrregset): Likewise.
5655 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5656 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5659 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5661 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5662 wordsize of the inferior. Call ppc_linux_target_wordsize.
5664 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5666 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5667 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5668 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5669 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5670 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5671 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5672 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5673 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5674 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5675 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5676 (tdesc_powerpc_e500l): Remove.
5677 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5678 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5679 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5680 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5682 (ppc_arch_setup): Remove target description matching code. Fill a
5683 ppc_linux_features struct and call ppc_linux_match_description
5686 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5688 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5689 width of the requested register exceeds the width of the
5691 (mips_cannot_store_register): Likewise.
5693 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5695 * linux-mips-low.c (mips_fetch_register): New function. Update
5697 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5698 (the_low_target): Wire `mips_fetch_register'.
5700 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5702 * lynx-i386-low.c (LYNXOS_178): New macro.
5703 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5704 the layout on LynxOS-178.
5705 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5706 handle floating point registers that are not supported by
5709 2018-05-10 Tom Tromey <tom@tromey.com>
5711 * configure: Rebuild.
5713 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5716 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5717 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5718 Use it to set the expedite_regs field in the given tdesc.
5719 * x86-tdesc.h: New file.
5720 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5721 Adjust following the addition of the new expedite_regs parameter
5722 to init_target_desc.
5723 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5724 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5725 (i386_linux_read_description, amd64_linux_read_description):
5726 Adjust following the addition of the new expedite_regs parameter
5727 to init_target_desc.
5728 * lynx-i386-low.c: #include "x86-tdesc.h".
5729 (lynx_i386_arch_setup): Adjust following the addition of the new
5730 expedite_regs parameter to init_target_desc.
5731 * nto-x86-low.c: #include "x86-tdesc.h".
5732 (nto_x86_arch_setup): Adjust following the addition of the new
5733 expedite_regs parameter to init_target_desc.
5734 * win32-i386-low.c: #include "x86-tdesc.h".
5735 (i386_arch_setup): Adjust following the addition of the new
5736 expedite_regs parameter to init_target_desc.
5738 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5741 * win32-low.c (win32_create_inferior): Add call to my_wait
5742 setting last_status global.
5744 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5747 * win32-low.c (create_process): Only call gdb_tilde_expand if
5748 inferior_cwd is not NULL.
5750 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5752 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5753 registers to the cache if their values have changed.
5754 (i387_xsave_to_cache): Provide default values for x87 control
5755 registers when these features are available, but disabled.
5756 * regcache.c (supply_register_by_name_zeroed): New function.
5757 * regcache.h (supply_register_by_name_zeroed): Declare new
5760 2018-05-07 Tom Tromey <tom@tromey.com>
5762 * configure: Rebuild.
5764 2018-05-04 Tom Tromey <tom@tromey.com>
5766 * configure: Rebuild.
5768 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5769 Pedro Alves <palves@redhat.com>
5771 * linux-aarch64-low.c (aarch64_stopped_data_address):
5774 2018-04-27 Tom Tromey <tom@tromey.com>
5776 * configure: Rebuild.
5778 2018-04-23 Tom Tromey <tom@tromey.com>
5780 * configure: Rebuild.
5782 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5784 * Makefile.in (depcomp): Add "..".
5785 (all_deps_files): New and use it.
5787 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5789 * configure.srv (aarch64*-*-linux*): Don't include xml.
5790 (i[34567]86-*-cygwin*): Likewise.
5791 (i[34567]86-*-linux*): Likewise.
5792 (i[34567]86-*-lynxos*): Likewise.
5793 (i[34567]86-*-mingw32ce*): Likewise.
5794 (i[34567]86-*-mingw*): Likewise.
5795 (i[34567]86-*-nto*): Likewise.
5796 (tic6x-*-uclinux): Likewise.
5797 (x86_64-*-linux*): Likewise.
5798 (x86_64-*-mingw*): Likewise.
5799 (x86_64-*-cygwin*): Likewise.
5801 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5803 * tdesc.c: Remove xml parameter.
5805 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5807 * server.c (get_features_xml): Remove cast.
5808 * tdesc.c (void target_desc::accept): Fill in function.
5809 (tdesc_get_features_xml): Remove old xml creation.
5810 (print_xml_feature::visit_pre): Add xml vistor.
5811 * tdesc.h (struct target_desc): Make xmltarget mutable.
5812 (tdesc_get_features_xml): Remove declaration.
5814 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5816 * tdesc.c (tdesc_architecture_name): Add new function.
5817 (tdesc_osabi_name): Likewise.
5818 (tdesc_get_features_xml): Use new functions.
5820 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5822 * tdesc.c (tdesc_create_flags): Remove.
5823 (tdesc_add_flag): Likewise.
5824 (tdesc_named_type): Likewise.
5825 (tdesc_create_union): Likewise.
5826 (tdesc_create_struct): Likewise.
5827 (tdesc_create_vector): Likewise.
5828 (tdesc_add_bitfield): Likewise.
5829 (tdesc_add_field): Likewise.
5830 (tdesc_set_struct_size): Likewise.
5832 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5834 * tdesc.c (~target_desc): Remove implictly deleted items.
5835 (init_target_desc): Iterate all features.
5836 (tdesc_get_features_xml): Use vector.
5837 (tdesc_create_feature): Create feature.
5838 * tdesc.h (tdesc_feature) Remove
5839 (target_desc): Add features.
5841 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5843 * Makefile.in: Add common/tdesc.c
5844 * tdesc.c (init_target_desc): init all reg_defs from register
5846 (tdesc_create_reg): Create tdesc_reg.
5847 * tdesc.h (tdesc_feature): Add register vector.
5849 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5851 * tdesc.h (struct target_desc) <features>: Change type to
5852 std::vector<std::string>.
5853 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5855 (tdesc_get_features_xml): Likewise.
5856 (tdesc_create_feature): Likewise.
5858 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5860 * regcache.c (find_register_by_number): Return a ref.
5861 (find_regno): Use references.
5862 (register_size): Likewise.
5863 (register_data): Likewise.
5864 * tdesc.c (target_desc::~target_desc): Remove free calls.
5865 (target_desc::operator==): Use std::vector compare.
5866 (init_target_desc): Use reference.
5867 (tdesc_create_reg): Use reg constructors.
5868 * tdesc.h (struct target_desc): Replace pointer with object.
5870 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5872 * regcache.c (find_register_by_number): Make static.
5873 (find_regno): Use find_register_by_number
5874 * regcache.h (struct reg): Remove declaration.
5876 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5878 * tdesc.c (target_desc::~target_desc): Move to here.
5879 (target_desc::operator==): Likewise.
5880 * tdesc.h (target_desc::~target_desc): Move from here.
5881 (target_desc::operator==): Likewise.
5883 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5885 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5887 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5889 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5891 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5892 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5893 and init_registers_s390_gs_linux64.
5895 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5897 * linux-s390-low.c (s390_fill_gs): Remove function.
5898 (s390_fill_gsbc): Remove function.
5899 (s390_regsets): Set fill functions for the guarded storage regsets
5902 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5904 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5905 the word size. Add comment.
5906 (s390_get_wordsize): New function.
5907 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5908 pswm with it. Instead, use s390_get_wordsize to determine the
5909 word size first and derive the correct tdesc from that directly.
5911 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5913 * Makefile.in: Include silent-rules.mk.
5914 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5915 (COMPILE): Add ECHO_CXX.
5916 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5917 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5918 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5919 (version-generated.c): Add ECHO_GEN.
5920 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5921 (IPAGENT_COMPILE): Add ECHO_CXX.
5922 (%-generated.c): Add ECHO_REGDAT.
5924 2018-03-14 Tom Tromey <tom@tromey.com>
5927 * ax.c (ax_printf): Special case for NULL.
5929 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5931 * linux-low.c (linux_qxfer_libraries_svr4): Use
5932 xml_escape_text_append.
5934 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5936 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5938 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5940 * server.c (handle_general_set): Remove unnecessary xstrdup.
5942 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5944 * server.c (parse_debug_format_options): Adjust to
5945 delim_string_to_char_ptr_vec changes.
5946 * thread-db.c (thread_db_load_search): Adjust to
5947 dirnames_to_char_ptr_vec changes.
5949 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5951 * target.h (target_enable_btrace, target_disable_btrace)
5952 (target_read_btrace, target_read_btrace_conf): Turn macro into
5953 inline function. Throw error if target method is not defined.
5954 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5955 check for btrace target method. Be prepared to handle exceptions
5956 from btrace target methods.
5958 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5960 * server.c (captured_main): Change order of error message printed
5961 when the current working directory cannot be found.
5963 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5965 * server.c: Include "filenames.h" and "pathstuff.h".
5966 (program_name): Delete variable.
5967 (program_path): New anonymous class.
5968 (get_exec_wrapper): Use "program_path" instead of
5970 (handle_v_run): Likewise.
5971 (captured_main): Likewise.
5972 (process_serial_event): Likewise.
5974 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5976 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5977 (OBJS): Add "pathstuff.o".
5978 * server.c (current_directory): New global variable.
5979 (captured_main): Initialize "current_directory".
5981 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5983 * tdesc.c: Use common/tdesc.h.
5984 * tdesc.h: Likewise.
5986 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5987 Simon Marchi <simon.marchi@ericsson.com>
5989 * Makefile.in: Switch order of make rules.
5991 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5993 * Makefile.in: Add common directory in build.
5994 * configure.ac: Add common reference.
5995 * configure: Regenerate.
5997 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5999 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6000 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6001 * spu-low.c (spu_target_ops): Likewise.
6002 * win32-low.c (win32_target_ops): Likewise.
6003 * server.c (supported_btrace_packets): Report packets unconditionally.
6004 * target.h (target_ops) <supports_btrace>: Remove.
6005 (target_supports_btrace): Remove.
6007 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6009 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6010 (handle_btrace_disable): Change return type to void. Use exceptions
6012 (handle_btrace_general_set): Catch exception and copy message to
6015 2018-02-08 Tom Tromey <tom@tromey.com>
6017 * linux-low.c (install_software_single_step_breakpoints): Use
6018 make_scoped_restore.
6019 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6020 (do_restore_current_thread_cleanup): Remove.
6021 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6024 2018-02-08 Tom Tromey <tom@tromey.com>
6026 * mem-break.c (set_raw_breakpoint_at): Use
6027 gdb::unique_xmalloc_ptr.
6029 2018-01-30 Pedro Alves <palves@redhat.com>
6032 * target.c (target_terminal::terminal_state): Rename to ...
6033 (target_terminal::m_terminal_state): ... this.
6035 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6037 * linux-low.c (handle_extended_wait): Surround call to
6038 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6040 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6042 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6043 linux_ptrace_attach_fail_reason_string now returning an
6045 (linux_attach): Likewise.
6046 * thread-db.c (attach_thread): Likewise.
6048 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6051 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6052 checking for fs_base/gs_base fields in struct user_regs_struct.
6053 * configure: Regenerate.
6055 2018-01-16 Yao Qi <yao.qi@linaro.org>
6058 * linux-low.c (fetch_register): Call supply_register instead of
6061 2018-01-08 Yao Qi <yao.qi@linaro.org>
6062 Simon Marchi <simon.marchi@ericsson.com>
6064 * Makefile.in (OBS): Remove selftest.o.
6065 * configure.ac: Set srv_selftest_objs if $development is true.
6066 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6067 * configure: Re-generated.
6068 * server.c (captured_main): Wrap variable selftest_filter with
6071 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6073 * server.c (parse_debug_format_options): Return std::string.
6074 (handle_monitor_command, captured_main): Adjust.
6076 2018-01-05 Pedro Alves <palves@redhat.com>
6079 * server.c (captured_main): Pass quiet=false to
6080 save_original_signals_state.
6082 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6084 * gdbreplay.c (gdbreplay_version): Update copyright year in
6086 * server.c (gdbserver_version): Likewise.
6088 2017-12-08 Tom Tromey <tom@tromey.com>
6090 * ax.c (ax_printf): Update.
6092 2017-12-07 Yao Qi <yao.qi@linaro.org>
6094 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6095 aarch64_linux_read_description.
6096 * linux-amd64-ipa.c (idx2mask): New array.
6097 (get_ipa_tdesc): Move idx2mask out.
6098 (initialize_low_tracepoint): Initialize target descriptions.
6099 * linux-i386-ipa.c (idx2mask): New array.
6100 (get_ipa_tdesc): Move idx2mask out.
6101 (initialize_low_tracepoint): Initialize target descriptions.
6103 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6105 * tdesc.c (struct tdesc_type): Change return type.
6106 (tdesc_add_flag): Change parameter type.
6107 (tdesc_add_bitfield): Likewise.
6108 (tdesc_add_field): Likewise.
6109 (tdesc_set_struct_size): Likewise.
6111 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6113 * regcache.c (registers_to_string): Remove unused variable.
6115 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6117 * inferiors.c (for_each_inferior_with_data): Remove.
6118 * inferiors.h (for_each_inferior_with_data): Remove.
6119 * server.c (handle_qxfer_threads_worker): Change parameter type.
6120 (handle_qxfer_threads_proper): Use for_each_thread.
6122 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6124 * inferiors.c (for_each_inferior): Remove.
6125 (clear_inferiors): Use for_each_thread.
6126 * inferiors.h (for_each_inferior): Remove.
6127 * linux-low.c (linux_wait_for_event_filtered): Use
6129 (linux_stabilize_threads): Likewise.
6130 * regcache.c (regcache_release): Likewise.
6131 * server.c (gdb_wants_all_threads_stopped): Likewise.
6132 (clear_pending_status_callback): Remove.
6133 (handle_status): Use for_each_thread.
6134 (captured_main): Likewise.
6135 * win32-low.c (child_init_thread_list): Likewise.
6136 (win32_clear_inferiors): Likewise.
6137 (fake_breakpoint_event): Likewise.
6139 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6141 * inferiors.h (find_inferior): Remove.
6142 * inferiors.c (find_inferior): Remove.
6144 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6146 * linux-low.c (resume_status_pending_p): Update comment.
6147 (need_step_over_p): Update comment.
6149 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6151 * linux-low.c (proceed_one_lwp): Return void, change parameter
6153 (unsuspend_and_proceed_one_lwp): Likewise.
6154 (proceed_all_lwps): Use for_each_thread.
6155 (unstop_all_lwps): Likewise.
6157 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6159 * linux-low.c (linux_resume_one_thread): Return void, take
6161 (linux_resume): Use for_each_thread.
6163 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6165 * linux-low.c (send_sigstop_callback): Return void, change
6166 parameter type. Rename to...
6167 (send_sigstop): ... this.
6168 (suspend_and_send_sigstop_callback): Return void, change parameter
6170 (suspend_and_send_sigstop): ... this.
6171 (stop_all_lwps): Use for_each_thread.
6173 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6175 * linux-low.c (lwp_running): Return bool, remove unused
6177 (linux_stabilize_threads): Use find_thread.
6179 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6181 * linux-low.c (select_singlestep_lwp_callback): Remove.
6182 (count_events_callback): Remove.
6183 (select_event_lwp_callback): Remove.
6184 (select_event_lwp): Use find_thread/for_each_thread.
6186 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6188 * linux-low.c (not_stopped_callback): Return bool, take filter
6190 (linux_wait_for_event_filtered): Use find_thread.
6191 (linux_wait_1): Likewise.
6193 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6195 * linux-low.c (same_lwp): Remove.
6196 (find_lwp_pid): Use find_thread.
6198 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6200 * linux-low.c (delete_lwp_callback): Remove.
6201 (linux_mourn): Use for_each_thread.
6203 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6205 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6206 args parameter, don't check for pid.
6207 (linux_detach): Use for_each_thread.
6209 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6211 * linux-low.c (struct counter): Remove.
6212 (second_thread_of_pid_p): Remove.
6213 (last_thread_of_process_p): Use find_thread.
6215 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217 * inferiors.c (find_inferior_in_random): Remove.
6218 * inferiors.h (find_inferior_in_random): Remove.
6219 * linux-low.c (status_pending_p_callback): Return bool, accept
6220 parameter ptid directly.
6221 (linux_wait_for_event_filtered): Use find_thread_in_random.
6222 (linux_wait_1): Likewise.
6224 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6226 * inferiors.c (find_inferior_id): Remove.
6227 (find_thread_ptid): Move implemention from find_inferior_id to
6229 * inferiors.h (find_inferior_id): Remove.
6230 * server.c (handle_status): Use find_thread_ptid.
6231 (process_serial_event): Likewise.
6232 * thread-db.c (find_one_thread): Likewise.
6233 (thread_db_thread_handle): Likewise.
6234 * win32-low.c (thread_rec): Likewise.
6235 (child_delete_thread): Likewise.
6236 (win32_thread_alive): Likewise.
6237 (get_child_debug_event): Likewise.
6239 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6241 * linux-mips-low.c (update_watch_registers_callback): Return
6242 void, remove pid_p parameter, don't check for pid.
6243 (mips_insert_point, mips_remove_point): Use for_each_thread.
6245 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6247 * lynx.low (lynx_delete_thread_callback): Remove.
6248 (lynx_mourn): Use for_each_thread.
6250 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6252 * regcache.c (regcache_invalidate_one): Remove.
6253 (regcache_invalidate_pid): use for_each_thread.
6255 2017-11-26 Tom Tromey <tom@tromey.com>
6257 * linux-low.c (linux_create_inferior): Update.
6259 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6261 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6263 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6265 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6266 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6267 * linux-aarch64-tdesc-selftest.c: New file.
6268 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6270 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6272 * configure.srv: Add new file.
6273 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6274 * linux-aarch64-tdesc-selftest.c: New file.
6275 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6277 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6279 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6280 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6281 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6283 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6285 * configure.srv: Add new files.
6286 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6287 aarch64_linux_read_description.
6288 * linux-aarch64-low.c (aarch64_linux_read_description):
6289 Merge with aarch64_arch_setup.
6290 (aarch64_arch_setup): Call aarch64_linux_read_description.
6291 * linux-aarch64-tdesc.c: New file.
6292 * linux-aarch64-tdesc.h: New file.
6294 2017-11-24 Yao Qi <yao.qi@linaro.org>
6296 * configure.srv: Set $srv_regobj for tic6x-linux.
6297 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6298 (tic6x_read_description): Move some code to tic6x_arch_setup.
6299 (tic6x_tdesc_test): New function.
6300 (initialize_low_arch): Call selftests::register_test.
6302 2017-11-22 Yao Qi <yao.qi@linaro.org>
6304 * remote-utils.c (prepare_resume_reply): Use memcpy.
6306 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6308 * linux-low.c (kill_one_lwp_callback): Return void, take
6309 argument directly, don't filter on pid.
6310 (linux_kill): Use for_each_thread.
6312 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6314 * linux-low.c (need_step_over_p): Return bool, remove dummy
6316 (linux_resume, proceed_all_lwps): Use find_thread.
6318 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6320 * linux-low.c (resume_status_pending_p): Return bool, remove
6322 (linux_resume): Use find_thread.
6324 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6326 * linux-low.c (struct thread_resume_array): Remove.
6327 (linux_set_resume_request): Return void, take arguments
6329 (linux_resume): Use for_each_thread.
6331 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6333 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6334 return bool, remove data argument.
6335 (linux_stabilize_threads): Use find_thread.
6337 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6339 * linux-low.c (unsuspend_one_lwp): Remove.
6340 (unsuspend_all_lwps): Use for_each_thread, inline code from
6343 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6345 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6346 * linux-low.c (struct iterate_over_lwps_args): Remove.
6347 (iterate_over_lwps_filter): Remove.
6348 (iterate_over_lwps): Use find_thread.
6350 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6352 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6353 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6354 code from reset_lwp_ptrace_options_callback.
6356 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6358 * linux-arm-low.c (struct update_registers_data): Remove.
6359 (update_registers_callback): Return void, take arguments
6360 directly, don't check thread's pid.
6361 (arm_insert_point, arm_remove_point): Use for_each_thread.
6363 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6365 * win32-low.c (continue_one_thread): Return void, take argument
6367 (child_continue): Use for_each_thread.
6369 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6371 * win32-i386-low.c (update_debug_registers_callback): Rename
6373 (update_debug_registers): ... this, return void, remove pid_p arg.
6374 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6376 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6378 * inferiors.h (struct process_info): Add constructor, initialize
6380 <syscalls_to_catch>: Change type to std::vector<int>.
6381 * inferiors.c (add_process): Allocate process_info with new.
6382 (remove_process): Free process_info with delete.
6383 * linux-low.c (handle_extended_wait): Adjust.
6384 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6385 * server.c (handle_general_set): Adjust.
6387 2017-11-16 Pedro Alves <palves@redhat.com>
6389 * remote-utils.c (remote_close): Block SIGIO signals instead of
6390 uninstalling the SIGIO handler.
6392 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6394 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6396 2017-11-16 Yao Qi <yao.qi@linaro.org>
6398 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6399 (tic6x_store_gregset): Likewise.
6400 (tic6x_usrregs_info): Move it up.
6402 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6404 * Makefile.in: Update arch rules.
6405 * configure.srv: Explicitly mark arch/ files.
6407 2017-11-13 Andreas Schwab <schwab@suse.de>
6409 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6411 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6413 2017-11-06 Pedro Alves <palves@redhat.com>
6415 * config.in, configure: Regenerate.
6417 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6419 * target.c (struct thread_search): Remove.
6420 (thread_search_callback): Remove.
6421 (prepare_to_access_memory): Use for_each_thread instead of
6422 find_inferior. Inline code from thread_search_callback.
6424 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6426 * server.c (struct visit_actioned_threads_data): Remove.
6427 (visit_actioned_threads): Change prototype to take arguments
6429 (resume): Use find_thread instead of find_inferior.
6431 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6433 * server.c (queue_stop_reply_callback): Change prototype, return
6435 (find_status_pending_thread_callback): Remove.
6436 (handle_status): Replace find_inferior with find_thread and
6439 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6441 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6443 (aarch64_store_gregset): Likewise.
6444 (aarch64_fill_fpregset): Likewise.
6445 (aarch64_store_fpregset): Likewise.
6447 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6449 * gdbthread.h (find_thread, for_each_thread): New functions.
6450 * inferiors.c (thread_of_pid): Remove.
6451 (find_any_thread_of_pid): Use find_thread.
6452 * linux-low.c (num_lwps): Use for_each_thread.
6454 2017-10-17 Yao Qi <yao.qi@linaro.org>
6456 * Makefile.in: Remove one rule.
6457 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6459 2017-10-17 Yao Qi <yao.qi@linaro.org>
6461 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6462 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6464 2017-10-17 Yao Qi <yao.qi@linaro.org>
6466 * configure.srv: Rename arm.o with arch/arm.o.
6468 2017-10-17 Yao Qi <yao.qi@linaro.org>
6470 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6471 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6472 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6473 (arch-i386.o, arch-amd64.o): Remove rules.
6474 (arch/%.o): New rule.
6475 Update POSTCOMPILE and COMPILE.pre.
6476 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6477 * configure: Re-generated.
6478 * configure.srv: Replace arch-i386.o with arch/i386.o.
6479 Replace arch-amd64.o with arch/amd64.o.
6481 2017-10-16 Yao Qi <yao.qi@linaro.org>
6483 * configure: Regenerated.
6485 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6487 * inferiors.h: (struct inferior_list): Remove.
6488 (struct inferior_list_entry); Remove.
6489 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6490 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6491 get_first_inferior): Remove.
6492 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6493 find_inferior_id, find_inferior_in_random): Change signature.
6494 * inferiors.c (all_threads): Change type to
6495 std::list<thread_info *>.
6496 (get_thread): Remove macro.
6497 (find_inferior, find_inferior_id): Change signature, implement
6499 (find_inferior_in_random): Change signature, implement using
6500 find_thread_in_random.
6501 (for_each_inferior, for_each_inferior_with_data): Change
6502 signature, implement using for_each_thread.
6503 (add_inferior_to_list, remove_inferior): Remove.
6504 (add_thread, get_first_thread, thread_of_pid,
6505 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6506 (get_first_inferior, one_inferior_p, clear_inferior_list):
6508 (clear_inferiors, get_thread_process): Update.
6509 * gdbthread.h: Include <list>.
6510 (struct thread_info) <entry>: Remove field.
6512 (all_threads): Change type to std::list<thread_info *>.
6513 (get_first_inferior): Add doc.
6514 (find_thread, for_each_thread, find_thread_in_random): New
6516 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6517 * linux-arm-low.c (update_registers_callback): Update.
6518 * linux-low.c (second_thread_of_pid_p): Update.
6519 (kill_one_lwp_callback, linux_detach_lwp_callback,
6520 delete_lwp_callback, status_pending_p_callback, same_lwp,
6521 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6522 iterate_over_lwps, not_stopped_callback,
6523 resume_stopped_resumed_lwps, count_events_callback,
6524 select_singlestep_lwp_callback, select_event_lwp_callback,
6525 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6526 suspend_and_send_sigstop_callback, wait_for_sigstop,
6527 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6528 lwp_running, linux_set_resume_request, resume_status_pending_p,
6529 need_step_over_p, start_step_over, linux_resume_one_thread,
6530 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6531 reset_lwp_ptrace_options_callback): Update.
6532 * linux-mips-low.c (update_watch_registers_callback): Update.
6533 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6535 (free_register_cache_thread_one): Remove.
6536 (regcache_release): Update.
6537 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6538 handle_qxfer_threads_worker): Update.
6539 (handle_query): Update, use list iterator.
6540 (visit_actioned_threads, handle_pending_status,
6541 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6542 clear_pending_status_callback, set_pending_status_callback,
6543 find_status_pending_thread_callback, handle_status,
6544 process_serial_event): Update.
6545 * target.c (thread_search_callback): Update.
6546 * thread-db.c (thread_db_get_tls_address): Update.
6547 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6549 * win32-i386-low.c (update_debug_registers_callback): Update.
6550 * win32-low.c (delete_thread_info, child_delete_thread,
6551 continue_one_thread, suspend_one_thread,
6552 get_child_debug_event): Adjust.
6554 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6556 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6557 * inferiors.h: Include <list>.
6558 (struct process_info) <entry>: Remove field.
6560 (pid_of): Change macro to function.
6561 (ptid_of, lwpid_of): Remove macro.
6562 (all_processes): Change type to std::list<process_info *>.
6563 (ALL_PROCESSES): Remove macro.
6564 (for_each_process, find_process): New function.
6565 * inferiors.c (all_processes): Change type to
6566 std::list<process_info *>.
6567 (find_thread_process): Adjust.
6568 (add_process): Likewise.
6569 (remove_process): Likewise.
6570 (find_process_pid): Likewise.
6571 (get_first_process): Likewise.
6572 (started_inferior_callback): Remove.
6573 (have_started_inferiors_p): Adjust.
6574 (attached_inferior_callback): Remove.
6575 (have_attached_inferiors_p): Adjust.
6576 * linux-low.c (check_zombie_leaders): Likewise.
6577 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6578 (x86_linux_update_xmltarget): Adjust.
6579 * server.c (handle_query): Likewise.
6580 (gdb_reattached_process): Remove.
6581 (handle_status): Adjust.
6582 (kill_inferior_callback): Likewise.
6583 (detach_or_kill_inferior): Remove.
6584 (print_started_pid): Likewise.
6585 (print_attached_pid): Likewise.
6586 (detach_or_kill_for_exit): Update.
6587 (process_serial_event): Likewise.
6588 * linux-arm-low.c (arm_new_fork): Likewise.
6590 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6592 * dll.h: Include <list>.
6593 (struct dll_info): Add constructor.
6594 <entry>: Remove field.
6595 (all_dlls): Change type to std::list<dll_info>.
6596 * dll.c: Include <algorithm>.
6597 (get_dll): Remove macro.
6598 (all_dlls): Change type to std::list<dll_info *>.
6599 (free_one_dll): Remove.
6600 (match_dll): Likewise.
6601 (loaded_dll): Adjust.
6602 (unloaded_dll): Adjust to all_dlls type change, use
6603 std::find_if. Inline code from match_dll.
6604 (clear_dlls): Adjust to all_dlls type change.
6605 * server.c (emit_dll_description): Remove.
6606 (handle_qxfer_libraries): Adjust to all_dlls type change,
6607 integrate emit_dll_description's functionality.
6609 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6611 * linux-low.h (struct linux_target_ops) <delete_process>: New
6613 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6614 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6615 (struct linux_target_ops): Add delete_process callback.
6616 * linux-arm-low.c (arm_delete_process): New.
6617 (struct linux_target_ops): Add delete_process callback.
6618 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6619 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6620 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6621 * linux-mips-low.c (mips_linux_delete_process): New.
6622 (struct linux_target_ops): Add delete_process callback.
6623 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6624 * linux-s390-low.c (struct linux_target_ops): Likewise.
6625 * linux-sh-low.c (struct linux_target_ops): Likewise.
6626 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6627 * linux-tile-low.c (struct linux_target_ops): Likewise.
6628 * linux-x86-low.c (x86_linux_delete_process): New.
6629 (struct linux_target_ops): Add delete_process callback.
6630 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6632 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6634 * linux-aarch64-low.c (the_low_target): Add thread delete
6636 * linux-arm-low.c (arm_delete_thread): New function.
6637 (the_low_target): Add thread delete callback.
6638 * linux-bfin-low.c (the_low_target): Likewise.
6639 * linux-crisv32-low.c (the_low_target): Likewise.
6640 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6642 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6644 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6645 * linux-mips-low.c (mips_linux_delete_thread): New function.
6646 (the_low_target): Add thread delete callback.
6647 * linux-ppc-low.c (the_low_target): Likewise.
6648 * linux-s390-low.c (the_low_target): Likewise.
6649 * linux-sh-low.c (the_low_target): Likewise.
6650 * linux-tic6x-low.c (the_low_target): Likewise.
6651 * linux-tile-low.c (the_low_target): Likewise.
6652 * linux-x86-low.c (the_low_target): Likewise.
6653 * linux-xtensa-low.c (the_low_target): Likewise.
6655 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6657 * win32-low.c: Include "common-inferior.h".
6659 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6661 * inferiors.c (set_inferior_cwd): New function.
6662 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6663 (handle_query): Inform that QSetWorkingDir is supported.
6664 * win32-low.c (create_process): Pass the inferior's cwd to
6667 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6669 * inferiors.c (current_inferior_cwd): New global variable.
6670 (get_inferior_cwd): New function.
6671 * inferiors.h (struct process_info) <cwd>: New field.
6673 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6675 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6676 (OBS): Add gdb_tilde_expand.o.
6678 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6680 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6681 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6683 2017-09-29 Pedro Alves <palves@redhat.com>
6685 * ax.c (gdb_parse_agent_expr): Constify.
6686 * ax.h (gdb_parse_agent_expr): Constify.
6687 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6689 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6690 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6691 * remote-utils.h (read_ptid): Constify.
6692 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6693 (process_point_options, process_serial_event): Constify.
6694 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6695 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6696 (cmd_qtbuffer): Constify.
6698 2017-09-29 Pedro Alves <palves@redhat.com>
6700 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6703 2017-09-29 Pedro Alves <palves@redhat.com>
6705 * linux-low.c (handle_extended_wait): Pass parent thread instead
6706 of process to thread_db_notice_clone.
6707 * linux-low.h (thread_db_notice_clone): Replace parent process
6708 parameter with parent thread parameter.
6709 * thread-db.c (find_one_thread): Add comment.
6710 (thread_db_notice_clone): Replace parent process parameter with
6711 parent thread parameter. Temporarily switch to the parent thread.
6713 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6715 * gdbthread.h: Include "common-gdbthread.h".
6716 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6717 "if" when validating the ptid.
6718 * remote-utils.c: Include "gdbthread.h".
6719 (prepare_resume_reply): Use "switch_to_thread".
6720 * target.c (done_accessing_memory): Likewise.
6722 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6724 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6725 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6726 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6727 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6728 s390x-gs-linux64-ipa.o to ipa_obj.
6729 * linux-s390-low.c (HWCAP_S390_GS): New define.
6730 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6732 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6733 (s390_arch_setup): Check for guarded-storage support and choose
6735 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6736 init_registers_s390x_gs_linux64.
6737 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6739 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6740 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6742 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6744 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6746 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6748 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6749 (thread_db_thread_handle): Declare.
6750 * linux-low.c (linux_target_ops): Initialize thread_handle.
6751 * server.c (handle_qxfer_threads_worker): Add support for
6753 * target.h (struct target_ops): Add new function pointer,
6755 (target_thread_handle): Define.
6756 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6758 (thread_db_thread_handle): New function.
6760 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6762 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6763 * linux-low.h (thread_db_notice_clone): Declare.
6764 * thread-db.c (thread_db_notice_clone): New function.
6766 2017-09-21 Pedro Alves <palves@redhat.com>
6768 * server.c (gdb_read_memory, handle_status, process_serial_event)
6769 (handle_serial_event, handle_target_event): Adjust to
6770 set_desired_thread prototype change.
6771 * target.c (set_desired_thread): Remove 'use_general' parameter
6773 * target.h (set_desired_thread): Remove 'use_general' parameter.
6775 2017-09-20 Tom Tromey <tom@tromey.com>
6777 * target.c (target_terminal::terminal_state): Define.
6778 (target_terminal::init): Rename from target_terminal_init.
6779 (target_terminal::inferior): Rename from
6780 target_terminal_inferior.
6781 (target_terminal::ours): Rename from target_terminal_ours.
6782 (target_terminal::ours_for_output, target_terminal::info): New.
6784 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6786 * server.c (accumulate_file_name_length): Remove.
6787 (emit_dll_description): Adjust to std::string change.
6788 (handle_qxfer_libraries): Use std::string to hold document.
6790 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6792 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6793 return type of xml_escape_text.
6794 * server.c (emit_dll_description): Likewise.
6796 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6798 * server.c (captured_main): Accept argument for --selftest.
6799 Update run_tests call.
6800 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6801 when registering selftests.
6803 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6805 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6806 instead of "VEC" for "target_desc.reg_defs".
6807 (regcache_cpy): Likewise.
6808 (registers_to_string): Likewise.
6809 (registers_from_string): Likewise.
6810 (find_regno): Likewise.
6811 (supply_regblock): Likewise.
6812 (regcache_raw_read_unsigned): Likewise.
6813 * tdesc.c (init_target_desc): Likewise.
6814 (tdesc_create_reg): Likewise.
6815 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6816 (struct target_desc) <reg_defs>: Convert to "std::vector".
6817 (target_desc): Do not initialize "reg_defs".
6818 (~target_desc): Update code to use "std::vector" instead of "VEC"
6819 for "target_desc.reg_defs".
6820 (operator==): Likewise.
6822 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6824 * inferiors.h (thread_to_gdb_id): Remove.
6825 * inferiors.c (thread_to_gdb_id): Remove.
6826 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6827 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6828 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6830 * nto-low.c (nto_fetch_registers, nto_store_registers,
6831 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6833 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6835 * inferiors.h (gdb_id_to_thread_id): Remove.
6836 * inferiors.c (gdb_id_to_thread_id): Remove.
6837 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6838 removal. Move pid declaration closer to where it's used.
6840 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6842 * server.c (handle_detach): New function.
6843 (process_serial_event): Move code out, call handle_detach.
6845 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6847 * server.c (require_running): Rename to ...
6848 (require_running_or_return): ... this ...
6849 (require_running_or_break): ... and this.
6850 (handle_query, process_serial_event): Adjust.
6852 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6854 * linux-low.c (linux_set_resume_request): Remove unused
6857 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6859 * server.c (first_thread_of): Remove.
6860 (process_serial_event): Replace usage of first_thread_of with
6861 find_any_thread_of_pid.
6862 * tracepoint.c (same_process_p): Remove.
6863 (gdb_agent_about_to_close): Replace usage of same_process_p with
6864 find_any_thread_of_pid.
6865 * linux-x86-low.c (same_process_callback): Remove.
6866 (x86_arch_setup_process_callback): Replace usage of
6867 same_process_callback with find_any_thread_of_pid.
6868 * thread-db.c (any_thread_of): Remove.
6869 (switch_to_process): Replace usage of any_thread_of with
6870 find_any_thread_of_pid.
6871 * inferiors.c (thread_pid_matches_callback): Remove.
6872 (find_thread_process): Adjust to use find_any_thread_of_pid.
6874 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6876 * regcache.c (get_thread_regcache): Guard calls to "memset"
6879 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6881 * linux-low.c (handle_extended_wait): Use
6882 "allocate_target_description" instead of "XNEW".
6883 * linux-x86-low.c (initialize_low_arch): Likewise.
6885 2017-09-05 Yao Qi <yao.qi@linaro.org>
6887 * configure.srv (srv_i386_regobj): Remove.
6888 (srv_amd64_regobj): Remove.
6889 (srv_regobj): Set it to "" for x86 non-linux targets.
6890 * linux-x86-tdesc.c (i386_linux_read_description):
6891 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6892 (init_registers_i386): Remove the declaration.
6893 (tdesc_i386): Remove the declaration.
6894 (lynx_i386_arch_setup): Call i386_create_target_description.
6895 * nto-x86-low.c: Likewise.
6896 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6897 [!__x86_64__]: include arch/i386.h.
6898 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6900 2017-09-05 Yao Qi <yao.qi@linaro.org>
6902 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6903 i386/amd64-XXX-linux from it.
6905 2017-09-05 Yao Qi <yao.qi@linaro.org>
6907 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6909 (ipa_amd64_linux_regobj): Remove.
6910 (ipa_x32_linux_regobj): Remove.
6912 2017-09-05 Yao Qi <yao.qi@linaro.org>
6914 * Makefile.in (arch-amd64.o): New rule.
6915 * configure.srv: Append arch-amd64.o.
6916 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6917 (get_ipa_tdesc): Call amd64_linux_read_description.
6918 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6919 and init_registers_amd64_XXX.
6920 * linux-x86-low.c (x86_linux_read_description): Call
6921 amd64_linux_read_description.
6922 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6923 (initialize_low_arch): Don't call init_registers_x32_XXX and
6924 init_registers_amd64_XXX.
6925 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6926 and tdesc_amd64_XXX.
6927 [__x86_64__] (amd64_tdesc_test): New function.
6928 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6929 and init_registers_amd64_XXX.
6930 * linux-x86-tdesc.c: Include arch/amd64.h.
6931 (xcr0_to_tdesc_idx): New function.
6932 (i386_linux_read_description): New function.
6933 (amd64_get_ipa_tdesc_idx): New function.
6934 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6935 (amd64_get_ipa_tdesc): Declare.
6937 2017-09-05 Yao Qi <yao.qi@linaro.org>
6939 * configure.srv (srv_i386_linux_xmlfiles): Remove
6940 i386/i386-XXX-linux.xml from it.
6942 2017-09-05 Yao Qi <yao.qi@linaro.org>
6944 * configure.srv: Set srv_i386_linux_regobj empty if $development
6946 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6947 initialize_low_tdesc.
6948 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6949 with #if initialize_low_tdesc.
6950 * linux-x86-tdesc-selftest.c: New file.
6951 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6953 2017-09-05 Yao Qi <yao.qi@linaro.org>
6955 * Makefile.in (arch-i386.o): New rule.
6956 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6957 (x86_64-*-linux*): Likewise.
6958 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6959 include arch/i386.h.
6960 (i386_linux_read_description): Remove code and call
6961 i386_create_target_description.
6962 * tdesc.c (allocate_target_description): New function.
6963 * tdesc.h (set_tdesc_architecture): Remove declaration.
6964 (set_tdesc_osabi): Likewise.
6966 2017-09-05 Yao Qi <yao.qi@linaro.org>
6968 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6969 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6970 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6972 * server.c (get_features_xml): Call tdesc_get_features_xml.
6973 * tdesc.c (set_tdesc_architecture): New function.
6974 (set_tdesc_osabi): New function.
6975 (tdesc_get_features_xml): New function.
6976 (tdesc_create_feature): Add an argument.
6977 * tdesc.h (struct target_desc) <features>: New field.
6978 <arch, osabi>: New field.
6979 (~target_desc): xfree features, arch, and osabi.
6980 (target_desc::oerator==): Don't compare .xmltarget.
6981 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6982 (set_tdesc_osabi): Likewise.
6983 (tdesc_get_features_xml): Likewise.
6985 2017-09-05 Yao Qi <yao.qi@linaro.org>
6987 * linux-x86-tdesc.c: Include selftest.h.
6988 (i386_tdesc_test): New function.
6989 (initialize_low_tdesc): Call selftests::register_test.
6990 * tdesc.h: Include regdef.h.
6991 (target_desc): Override operator == and !=.
6993 2017-09-05 Yao Qi <yao.qi@linaro.org>
6995 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6996 (ipa_obj): Likewise.
6997 * linux-i386-ipa.c: Include common/x86-xstate.h
6998 (get_ipa_tdesc): Call i386_linux_read_description.
6999 (initialize_low_tracepoint): Don't call init_registers_XXX
7000 functions, call initialize_low_tdesc instead.
7001 * linux-x86-low.c (x86_linux_read_description): Call
7002 i386_linux_read_description.
7003 (initialize_low_arch): Don't call init_registers_i386_XXX
7004 functions, call initialize_low_tdesc.
7005 * linux-x86-tdesc.c: New file.
7006 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7007 (i386_get_ipa_tdesc_idx): Declare.
7008 (i386_get_ipa_tdesc): Declare.
7009 (initialize_low_tdesc): Declare.
7011 2017-09-05 Yao Qi <yao.qi@linaro.org>
7013 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7016 2017-09-05 Yao Qi <yao.qi@linaro.org>
7018 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7019 * regcache.c (get_thread_regcache): Use VEC_length.
7020 (init_register_cache): Likewise.
7021 (regcache_cpy): Likewise.
7022 (registers_to_string): Iterate reg_defs via VEC_iterate.
7023 (find_regno): Likewise.
7024 (find_register_by_number): Use VEC_index.
7025 (register_size): Call find_register_by_number.
7026 (register_data): Call find_register_by_number.
7027 (supply_regblock): Use VEC_length.
7028 (regcache_raw_read_unsigned): Likewise.
7029 * tdesc.c (init_target_desc): Iterate reg_defs via
7031 (default_description): Update initializer.
7032 (copy_target_description): Don't update field num_registers.
7033 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7034 <num_registers>: Remove.
7036 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7038 * Makefile.in (.SECONDARY): Define target.
7040 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7042 * linux-low.c (linux_wait_1): Adjust.
7043 * server.c (queue_stop_reply_callback): Adjust.
7045 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7047 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7048 QEnvironmentUnset and QEnvironmentReset packets.
7049 (handle_query): Inform remote that QEnvironmentHexEncoded,
7050 QEnvironmentUnset and QEnvironmentReset are supported.
7052 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7054 * inferiors.h (inferior_target_data): Rename to ...
7055 (thread_target_data): ... this.
7056 (inferior_regcache_data): Rename to ...
7057 (thread_regcache_data): ... this.
7058 (set_inferior_regcache_data): Rename to ...
7059 (set_thread_regcache_data): ... this.
7060 * inferiors.c (inferior_target_data): Rename to ...
7061 (thread_target_data): ... this.
7062 (inferior_regcache_data): Rename to ...
7063 (thread_regcache_data): ... this.
7064 (set_inferior_regcache_data): Rename to ...
7065 (set_thread_regcache_data): ... this.
7066 (free_one_thread): Update.
7067 * linux-low.h (get_thread_lwp): Update.
7068 * regcache.c (get_thread_regcache): Update.
7069 (regcache_invalidate_thread): Update.
7070 (free_register_cache_thread): Update.
7071 * win32-i386-low.c (update_debug_registers_callback): Update.
7072 (win32_get_current_dr): Update.
7073 * win32-low.c (thread_rec): Update.
7074 (delete_thread_info): Update.
7075 (continue_one_thread): Update.
7076 (suspend_one_thread): Update.
7078 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7080 * inferiors.c (set_inferior_target_data): Remove.
7081 * inferiors.h (set_inferior_target_data): Remove.
7083 2017-08-18 Yao Qi <yao.qi@linaro.org>
7085 * Makefile.in (OBS): Add selftest.o.
7086 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7087 * configure, config.in: Re-generated.
7088 * server.c: Include common/sefltest.h.
7089 (captured_main): Handle option --selftest.
7091 2017-08-09 Yao Qi <yao.qi@linaro.org>
7093 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7094 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7095 i386-avx-mpx.o and i386-mmx.o.
7096 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7097 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7098 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7099 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7100 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7101 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7102 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7103 i386/amd64-avx-mpx.xml.
7105 2017-08-09 Yao Qi <yao.qi@linaro.org>
7107 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7108 and x32-avx-avx512.o.
7109 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7110 i386/x32-avx-avx512.xml.
7112 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7114 * tracepoint.h (enum class fast_tpoint_collect_result): New
7116 (fast_tracepoint_collecting): Change return type to
7117 fast_tpoint_collect_result.
7118 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7119 * linux-low.h: Include tracepoint.h.
7120 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7121 fast_tpoint_collect_result.
7122 * linux-low.c (handle_tracepoints): Adjust.
7123 (linux_fast_tracepoint_collecting): Change return type to
7124 fast_tpoint_collect_result.
7125 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7126 linux_wait_1, stuck_in_jump_pad_callback,
7127 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7128 proceed_one_lwp): Adjust to type change.
7130 2017-07-10 Yao Qi <yao.qi@linaro.org>
7132 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7134 2017-06-29 Yao Qi <yao.qi@linaro.org>
7136 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7138 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7140 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7142 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7144 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7146 * linux-low.c (linux_create_inferior): Adjust code to access the
7147 environment information via 'gdb_environ' class.
7148 * lynx-low.c (lynx_create_inferior): Likewise.
7149 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7150 (get_environ): Return a pointer to 'our_environ'.
7151 (captured_main): Initialize 'our_environ'.
7152 * server.h (get_environ): Adjust prototype.
7153 * spu-low.c (spu_create_inferior): Adjust code to access the
7154 environment information via 'gdb_environ' class.
7156 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7158 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7159 usage of "register" keyword.
7161 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7163 * configure: Re-generate.
7165 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7167 * configure: Re-generate.
7169 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7171 * Makefile.in (COMPILE.pre): Add "-x c++".
7173 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7175 * fork-child.c: Conditionally include <signal.h>.
7177 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7179 * server.c (handle_general_set): Handle new packet
7180 "QStartupWithShell".
7181 (handle_query): Add "QStartupWithShell" to the list of supported
7183 (gdbserver_usage): Add help text explaining the
7184 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7186 (captured_main): Recognize and act upon the presence of the new
7189 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7190 Pedro Alves <palves@redhat.com>
7192 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7193 * configure: Regenerate.
7194 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7196 (i[34567]86-*-lynxos*): Likewise.
7197 (spu*-*-*): Likewise.
7198 * fork-child.c: New file.
7199 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7201 (linux_ptrace_fun): New function.
7202 (linux_create_inferior): Adjust function prototype to reflect
7203 change on "target.h". Adjust function code to use
7205 (linux_request_interrupt): Delete "signal_pid".
7206 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7207 (lynx_ptrace_fun): New function.
7208 (lynx_create_inferior): Adjust function prototype to reflect
7209 change on "target.h". Adjust function code to use
7211 * nto-low.c (nto_create_inferior): Adjust function prototype and
7212 code to reflect change on "target.h". Update comments.
7213 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7214 "common-terminal.h" and "environ.h".
7215 (terminal_fd): Moved to fork-child.c.
7216 (old_foreground_pgrp): Likewise.
7217 (restore_old_foreground_pgrp): Likewise.
7218 (last_status): Make it global.
7219 (last_ptid): Likewise.
7220 (our_environ): New variable.
7221 (startup_with_shell): Likewise.
7222 (program_name): Likewise.
7223 (program_argv): Rename to...
7224 (program_args): ...this.
7225 (wrapper_argv): New variable.
7226 (start_inferior): Delete function.
7227 (get_exec_wrapper): New function.
7228 (get_exec_file): Likewise.
7229 (get_environ): Likewise.
7230 (prefork_hook): Likewise.
7231 (post_fork_inferior): Likewise.
7232 (postfork_hook): Likewise.
7233 (postfork_child_hook): Likewise.
7234 (handle_v_run): Update code to deal with arguments coming from the
7235 remote host. Update calls from "start_inferior" to
7237 (captured_main): Likewise. Initialize environment variable. Call
7239 * server.h (post_fork_inferior): New prototype.
7240 (get_environ): Likewise.
7241 (last_status): Declare.
7242 (last_ptid): Likewise.
7243 (signal_pid): Likewise.
7244 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7245 (spu_ptrace_fun): New function.
7246 (spu_create_inferior): Adjust function prototype to reflect change
7247 on "target.h". Adjust function code to use "fork_inferior".
7248 * target.c (target_terminal_init): New function.
7249 (target_terminal_inferior): Likewise.
7250 (target_terminal_ours): Likewise.
7251 * target.h: Include <vector>.
7252 (struct target_ops) <create_inferior>: Update prototype.
7253 (create_inferior): Update macro.
7254 * utils.c (gdb_flush_out_err): New function.
7255 * win32-low.c (win32_create_inferior): Adjust function prototype
7256 and code to reflect change on "target.h".
7258 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7260 * inferiors.c (switch_to_thread): New function.
7262 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7264 * Makefile.in (SFILE): Add "common/job-control.c".
7265 (OBS): Add "job-control.o".
7267 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7269 * Makefile: Remove "@host_makefile_frag@".
7271 2017-05-05 Pedro Alves <palves@redhat.com>
7273 * configure: Regenerate.
7275 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7277 * configure: Regenerate.
7279 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7281 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7282 software_single_step change of return type to
7283 std::vector<CORE_ADDR>.
7284 * linux-low.c (install_software_single_step_breakpoints):
7286 * linux-low.h (install_software_single_step_breakpoints):
7289 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7291 * remote-utils.c: Include "gdb_termios.h" instead of
7293 * terminal.h: Delete file.
7295 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7297 * server.c: Include <vector>.
7298 <program_argv, wrapper_argv>: Convert to std::vector.
7299 (start_inferior): Rewrite function to use C++.
7300 (handle_v_run): Likewise. Update code that calculates the argv
7301 based on the vRun packet; use C++.
7302 (captured_main): Likewise.
7304 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7306 * server.c (handle_v_cont): Initialize thread_resume::thread
7309 2017-04-05 Pedro Alves <palves@redhat.com>
7311 * configure: Regenerate.
7313 2017-04-05 Pedro Alves <palves@redhat.com>
7315 * gdbreplay.c (sync_error): Constify.
7316 * linux-x86-low.c (push_opcode): Constify.
7318 2017-04-05 Pedro Alves <palves@redhat.com>
7320 * win32-low.c (get_child_debug_event)
7321 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7322 Report TARGET_WAITKIND_SPURIOUS instead.
7324 2017-04-05 Pedro Alves <palves@redhat.com>
7326 * remote-utils.c (remote_prepare, remote_open): Constify.
7327 * remote-utils.h (remote_prepare, remote_open): Constify.
7328 * server.c (captured_main): Constify 'port' handling.
7330 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7332 * Makefile.in (clean): Clear .deps.
7334 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7336 * .gitignore: Remove generated files, replace with wildcard.
7337 * (clean): Replace removal of generated files with wildcard.
7338 (version.c): Replace with...
7339 (version-generated.c): ...this.
7340 (xml-builtin.c): Replace with...
7341 (xml-builtin-generated.c): ...this.
7342 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7343 (%.c: *regformats*): Replace with...
7344 (%-generated.c: *regformats*): ...this.
7346 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7348 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7349 (xtensa_fill_gregset): Call collect_register_by_name for
7351 (xtensa_store_gregset): Call supply_register_by_name for
7354 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7356 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7357 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7358 (xtensa_store_gregset): Call supply_register for all registers in
7359 a0_regnum..a0_regnum + C0_NREGS range.
7361 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7363 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7364 (ax-ipa.o: ax.c): Remove.
7365 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7366 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7367 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7368 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7369 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7371 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7373 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7374 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7375 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7376 (errors-ipa.o: ../common/errors.c): Remove.
7377 (format-ipa.o: ../common/format.c): Remove.
7378 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7380 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7382 * Makefile.in (%-ipa.o: %.c): New rule.
7383 (tracepoint-ipa.o: tracepoint.c): Remove.
7384 (utils-ipa.o: utils.c): Remove.
7385 (remote-utils-ipa.o: remote-utils.c): Remove.
7386 (regcache-ipa.o: regcache.c): Remove.
7387 (i386-linux-ipa.o: i386-linux.c): Remove.
7388 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7389 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7390 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7391 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7392 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7393 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7394 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7395 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7396 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7397 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7398 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7399 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7400 (aarch64-ipa.o: aarch64.c): Remove.
7401 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7402 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7403 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7404 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7405 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7406 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7407 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7408 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7409 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7410 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7411 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7412 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7413 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7414 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7415 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7416 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7417 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7418 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7419 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7420 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7421 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7422 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7423 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7424 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7425 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7426 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7427 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7428 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7429 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7430 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7431 (tdesc-ipa.o: tdesc.c): Remove.
7432 (x32-linux-ipa.o: x32-linux.c): Remove.
7433 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7434 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7436 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7438 * Makefile.in (%.o: ../arch/%.c): New rule.
7439 (arm.o: ../arch/arm.c): Remove.
7440 (arm-linux.o: ../arch/arm-linux.c): Remove.
7441 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7442 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7444 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7446 * Makefile.in (%.o: ../nat/%.c): New rule.
7447 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7448 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7449 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7450 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7451 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7452 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7453 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7454 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7455 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7456 (linux-personality.o: ../nat/linux-personality.c): Remove.
7457 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7458 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7459 (x86-linux.o: ../nat/x86-linux.c): Remove.
7460 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7461 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7463 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7465 * Makefile.in (%.o: ../common/%.c): New rule.
7466 (signals.o: ../common/signals.c): Remove.
7467 (print-utils.o: ../common/print-utils.c): Remove.
7468 (rsp-low.o: ../common/rsp-low.c): Remove.
7469 (common-utils.o: ../common/common-utils.c): Remove.
7470 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7471 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7472 (vec.o: ../common/vec.c): Remove.
7473 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7474 (xml-utils.o: ../common/xml-utils.c): Remove.
7475 (ptid.o: ../common/ptid.c): Remove.
7476 (buffer.o: ../common/buffer.c): Remove.
7477 (format.o: ../common/format.c): Remove.
7478 (filestuff.o: ../common/filestuff.c): Remove.
7479 (agent.o: ../common/agent.c): Remove.
7480 (errors.o: ../common/errors.c): Remove.
7481 (environ.o: ../common/environ.c): Remove.
7482 (common-debug.o: ../common/common-debug.c): Remove.
7483 (cleanups.o: ../common/cleanups.c): Remove.
7484 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7485 (fileio.o: ../common/fileio.c): Remove.
7486 (common-regcache.o: ../common/common-regcache.c): Remove.
7487 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7488 (new-op.o: ../common/new-op.c): Remove.
7489 (btrace-common.o: ../common/btrace-common.c): Remove.
7491 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7493 * Makefile.in (%.o: ../target/%.c): New rule.
7494 (waitstatus.o: ../target/waitstatus.c): Remove.
7496 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7499 (%.c: ../regformats/%.dat,
7500 (%.c: ../regformats/arm/%.dat,
7501 (%.c: ../regformats/i386/%.dat,
7502 (%.c: ../regformats/rs6000/%.dat): New rules.
7503 (aarch64.c): Remove.
7504 (reg-arm.c): Remove.
7505 (arm-with-iwmmxt.c): Remove.
7506 (arm-with-vfpv2.c): Remove.
7507 (arm-with-vfpv3.c): Remove.
7508 (arm-with-neon.c): Remove.
7509 (reg-bfin.c): Remove.
7510 (reg-cris.c): Remove.
7511 (reg-crisv32.c): Remove.
7513 (i386-linux.c): Remove.
7514 (i386-avx.c): Remove.
7515 (i386-avx-linux.c): Remove.
7516 (i386-avx-avx512.c): Remove.
7517 (i386-avx-avx512-linux.c): Remove.
7518 (i386-mpx.c): Remove.
7519 (i386-mpx-linux.c): Remove.
7520 (i386-avx-mpx-avx512-pku.c): Remove.
7521 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7522 (i386-avx-mpx.c): Remove.
7523 (i386-avx-mpx-linux.c): Remove.
7524 (i386-mmx.c): Remove.
7525 (i386-mmx-linux.c): Remove.
7526 (reg-ia64.c): Remove.
7527 (reg-m32r.c): Remove.
7528 (reg-m68k.c): Remove.
7530 (mips-linux.c): Remove.
7531 (mips-dsp-linux.c): Remove.
7532 (mips64-linux.c): Remove.
7533 (mips64-dsp-linux.c): Remove.
7534 (nios2-linux.c): Remove.
7535 (powerpc-32.c): Remove.
7536 (powerpc-32l.c): Remove.
7537 (powerpc-altivec32l.c): Remove.
7538 (powerpc-cell32l.c): Remove.
7539 (powerpc-vsx32l.c): Remove.
7540 (powerpc-isa205-32l.c): Remove.
7541 (powerpc-isa205-altivec32l.c): Remove.
7542 (powerpc-isa205-vsx32l.c): Remove.
7543 (powerpc-e500l.c): Remove.
7544 (powerpc-64l.c): Remove.
7545 (powerpc-altivec64l.c): Remove.
7546 (powerpc-cell64l.c): Remove.
7547 (powerpc-vsx64l.c): Remove.
7548 (powerpc-isa205-64l.c): Remove.
7549 (powerpc-isa205-altivec64l.c): Remove.
7550 (powerpc-isa205-vsx64l.c): Remove.
7551 (s390-linux32.c): Remove.
7552 (s390-linux32v1.c): Remove.
7553 (s390-linux32v2.c): Remove.
7554 (s390-linux64.c): Remove.
7555 (s390-linux64v1.c): Remove.
7556 (s390-linux64v2.c): Remove.
7557 (s390-te-linux64.c): Remove.
7558 (s390-vx-linux64.c): Remove.
7559 (s390-tevx-linux64.c): Remove.
7560 (s390x-linux64.c): Remove.
7561 (s390x-linux64v1.c): Remove.
7562 (s390x-linux64v2.c): Remove.
7563 (s390x-te-linux64.c): Remove.
7564 (s390x-vx-linux64.c): Remove.
7565 (s390x-tevx-linux64.c): Remove.
7566 (tic6x-c64xp-linux.c): Remove.
7567 (tic6x-c64x-linux.c): Remove.
7568 (tic6x-c62x-linux.c): Remove.
7570 (reg-sparc64.c): Remove.
7571 (reg-spu.c): Remove.
7573 (amd64-linux.c): Remove.
7574 (amd64-avx.c): Remove.
7575 (amd64-avx-linux.c): Remove.
7576 (amd64-avx-avx512.c): Remove.
7577 (amd64-avx-avx512-linux.c): Remove.
7578 (amd64-mpx.c): Remove.
7579 (amd64-mpx-linux.c): Remove.
7580 (amd64-avx-mpx-avx512-pku.c): Remove.
7581 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7582 (amd64-avx-mpx.c): Remove.
7583 (amd64-avx-mpx-linux.c): Remove.
7585 (x32-linux.c): Remove.
7586 (x32-avx.c): Remove.
7587 (x32-avx-linux.c): Remove.
7588 (x32-avx-avx512.c): Remove.
7589 (x32-avx-avx512-linux.c): Remove.
7590 (reg-xtensa.c): Remove.
7591 (reg-tilegx.c): Remove.
7592 (reg-tilegx32.c): Remove.
7594 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7596 * Makefile.in (SFILES): Add "common/environ.c".
7597 (OBJS): Add "common/environ.h".
7599 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7601 * configure.ac: Check if the fs_base and gs_base members of
7602 `struct user_regs_struct' exist.
7603 * config.in: Regenerated.
7604 * configure: Likewise.
7606 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7608 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7610 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7611 (get_next_pcs_syscall_next_pc): Likewise.
7613 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7615 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7616 * nto-x86-low.c: Likewise.
7618 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7620 * Makefile.in: Include disable-implicit-rules.mk.
7622 2016-11-23 Pedro Alves <palves@redhat.com>
7624 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7625 (debug_vprintf): Use std::chrono::steady_clock instead of
7626 gettimeofday. Use '.' instead of ':'.
7627 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7628 (get_timestamp): Use std::chrono::steady_clock instead of
7631 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7633 * Makefile.in: Fix whitespace formatting.
7635 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7637 * Makefile.in (SFILES, OBS): Flatten list and order
7640 2016-11-23 Pedro Alves <palves@redhat.com>
7642 * event-loop.c (handle_file_event): Use warning.
7643 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7644 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7647 2016-11-23 Pedro Alves <palves@redhat.com>
7649 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7651 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7652 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7653 debug_printf and debug_flush for debug output.
7654 * server.c (handle_general_set): Likewise.
7655 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7658 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7660 * Makefile.in (.c.o): Replace rule with ...
7661 (%.o: %.c): ... this one.
7663 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7665 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7666 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7668 * configure.ac: Remove checks for the make program.
7669 * configure: Re-generate.
7671 2016-10-28 Pedro Alves <palves@redhat.com>
7673 * Makefile.in (CXX_DIALECT): Get from configure.
7674 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7675 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7676 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7677 * config.in: Regenerate.
7678 * configure: Regenerate.
7680 2016-10-27 Yao Qi <yao.qi@linaro.org>
7682 * linux-low.c (linux_supports_range_stepping): Return true if
7683 can_software_single_step return true.
7685 2016-10-27 Yao Qi <yao.qi@linaro.org>
7687 * inferiors.c (find_inferior_in_random): New function.
7688 * inferiors.h (find_inferior_in_random): Declare.
7689 * linux-low.c (linux_wait_for_event_filtered): Call
7690 find_inferior_in_random instead of find_inferior.
7692 2016-10-27 Yao Qi <yao.qi@linaro.org>
7694 * linux-low.c (linux_wait_1): If single-step breakpoints are
7695 inserted, remove them.
7697 2016-10-26 Pedro Alves <palves@redhat.com>
7699 * linux-low.c (handle_extended_wait): Link parent/child fork
7701 (linux_wait_1): Unlink them.
7702 (linux_set_resume_request): Ignore resume requests for
7703 already-resumed and unhandled fork child threads.
7704 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7705 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7707 (handle_v_requests) <vCont>: Don't call require_running.
7708 * server.h (in_queued_stop_replies): New declaration.
7710 2016-10-24 Yao Qi <yao.qi@linaro.org>
7713 * linux-aarch64-low.c (append_insns): Cast the return value to
7716 2016-10-10 Yao Qi <yao.qi@linaro.org>
7718 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7720 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7722 * target.c (target_supports_multi_process): New function, moved
7724 * target.h (target_supports_multi_process): ... here. Remove
7727 2016-10-05 Tom Tromey <tom@tromey.com>
7730 * tracepoint.c (handle_tracepoint_bkpts): Check
7731 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7733 2016-10-05 Yao Qi <yao.qi@linaro.org>
7735 * configure.srv: Update the path of arm-*.xml files.
7737 2016-10-05 Terry Guo <terry.guo@arm.com>
7738 Yao Qi <yao.qi@linaro.org>
7740 * Makefile.in: Adjust the path of rules.
7741 * configure.srv: Update the path of xml files.
7742 * regformats/arm-with-iwmmxt.dat: Regenerated.
7743 * regformats/arm-with-neon.dat: Likewise.
7744 * regformats/arm-with-vfpv2.dat: Likewise.
7745 * regformats/arm-with-vfpv3.dat Likewise.
7747 2016-09-30 Yao Qi <yao.qi@linaro.org>
7750 * target.c (target_stop_and_wait): Don't call
7751 target_continue_no_signal, use resume_stop instead.
7753 2016-09-26 Yao Qi <yao.qi@linaro.org>
7755 * linux-low.c (linux_wait_1): Call debug_exit.
7757 2016-09-23 Pedro Alves <palves@redhat.com>
7759 * Makefile.in (SFILES): Add common/new-op.c.
7760 (OBS): Add common/new-op.o.
7761 (new-op.o): New rule.
7763 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7765 * .gitinore: Ignore more files.
7767 2016-09-21 Yao Qi <yao.qi@linaro.org>
7769 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7772 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7774 * server.c (start_inferior): Call target_mourn_inferior instead of
7775 mourn_inferior; pass ptid_t argument to it.
7777 (handle_target_event): Likewise.
7778 * target.c (target_mourn_inferior): New function.
7779 * target.h (mourn_inferior): Delete macro.
7781 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7783 * linux-low.c (lwp_is_stepping): New function.
7785 2016-09-06 Carl Love <cel@us.ibm.com>
7787 * server.c (start_inferior): Fixed comment, requested comment change
7788 didn't get updated correctly. Removed reference to ptrace () call as
7789 it is only true on Linux systems.
7791 2016-09-06 Carl Love <cel@us.ibm.com>
7793 * server.c (start_inferior): Do not call
7794 function target_post_create_inferior () if the
7795 inferior process has already exited.
7797 2016-09-05 Pedro Alves <palves@redhat.com>
7799 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7800 (COMPILE.pre, CC_LD): Use CXX directly.
7801 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7802 * acinclude.m4: Don't include build-with-cxx.m4.
7803 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7804 * configure: Regenerate.
7806 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7809 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7810 call writing data to own_buf.
7812 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7814 * target.c (mywait): Call target_wait instead of
7816 (target_wait): New function.
7818 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7820 * server.c (start_inferior): New variable 'ptid'. Replace calls
7821 to the_target->resume by target_continue{,_no_signal}, depending
7823 * target.c (target_stop_and_wait): Call target_continue_no_signal
7824 instead of the_target->resume.
7825 (target_continue): New function.
7827 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7829 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7831 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7834 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7836 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7837 * linux-arm-low.c (ps_get_thread_area): Likewise.
7838 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7839 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7840 * linux-mips-low.c (ps_get_thread_area): Likewise.
7841 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7842 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7843 * linux-x86-low.c (ps_get_thread_area): Likewise.
7844 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7846 2016-08-19 Pedro Alves <palves@redhat.com>
7848 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7850 2016-08-19 Pedro Alves <palves@redhat.com>
7852 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7853 comment. Use memcpy instead of casting through unsigned long.
7855 2016-08-19 Pedro Alves <palves@redhat.com>
7857 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7858 allocating around 0x80000000.
7860 2016-08-19 Pedro Alves <palves@redhat.com>
7863 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7864 (x32-avx512-linux-ipa.o): New rules.
7865 * configure.ac (x86_64-*-linux*): New x32 check.
7866 * configure.srv (ipa_x32_linux_regobj): New.
7867 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7868 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7870 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7872 * configure: Regenerate.
7874 2016-08-09 Pedro Alves <palves@redhat.com>
7877 * Makefile.in (OBS): Add signals-state-save-restore.o.
7878 (signals-state-save-restore.o): New rule.
7879 * config.in: Regenerate.
7880 * configure: Regenerate.
7881 * linux-low.c: Include "signals-state-save-restore.h".
7882 (linux_create_inferior): Call
7883 restore_original_signals_state.
7884 * server.c: Include "dispositions-save-restore.h".
7885 (captured_main): Call save_original_signals_state.
7887 2016-08-05 Pedro Alves <palves@redhat.com>
7889 * configure: Regenerate.
7891 2016-08-04 Yao Qi <yao.qi@linaro.org>
7893 * linux-low.c (regsets_fetch_inferior_registers): Check
7894 errno is ESRCH or not.
7896 2016-08-02 Yao Qi <yao.qi@linaro.org>
7898 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7899 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7900 (thread_db_load_search): Update.
7901 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7902 td_ta_set_event and td_ta_event_getmsg.
7904 2016-07-26 Pedro Alves <palves@redhat.com>
7907 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7908 of unsigned long for 64-bit registers and use uint32_t instead of
7909 unsigned int for 32-bit registers.
7911 2016-07-26 Pedro Alves <palves@redhat.com>
7913 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7916 2016-07-21 Tom Tromey <tom@tromey.com>
7918 * configure: Rebuild.
7920 2016-07-21 Yao Qi <yao.qi@linaro.org>
7922 * mem-break.c (find_gdb_breakpoint): Cast bp to
7923 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7925 2016-07-21 Yao Qi <yao.qi@linaro.org>
7927 * server.c (handle_v_requests): Support s and S actions
7928 if target_supports_software_single_step return true.
7930 2016-07-21 Yao Qi <yao.qi@linaro.org>
7932 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7933 is resume_step, call maybe_hw_step.
7934 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7936 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7938 (proceed_one_lwp): If resume request is resume_step, install
7939 reinsert breakpoints and call maybe_hw_step.
7941 2016-07-21 Yao Qi <yao.qi@linaro.org>
7943 * linux-low.c (proceed_one_lwp): Declare.
7944 (linux_resume_one_thread): Remove local variable 'step'.
7945 Lift code enqueue signal. Call proceed_one_lwp instead of
7946 linux_resume_one_lwp.
7948 2016-07-21 Yao Qi <yao.qi@linaro.org>
7950 * linux-low.c (linux_resume_one_thread): Call
7951 enqueue_pending_signal.
7953 2016-07-21 Yao Qi <yao.qi@linaro.org>
7955 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7956 * inferiors.c (do_restore_current_thread_cleanup): New function.
7957 (make_cleanup_restore_current_thread): Likewise.
7958 * linux-low.c (install_software_single_step_breakpoints): Call
7959 make_cleanup_restore_current_thread. Switch current_thread to
7962 2016-07-21 Yao Qi <yao.qi@linaro.org>
7964 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7965 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7966 (clone_one_breakpoint): Likewise.
7967 (delete_reinsert_breakpoints): Change parameter to thread.
7969 (has_reinsert_breakpoints): Likewise.
7970 (uninsert_reinsert_breakpoints): Likewise.
7971 (reinsert_reinsert_breakpoints): Likewise.
7972 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7973 (delete_reinsert_breakpoints): Likewise.
7974 (reinsert_reinsert_breakpoints): Likewise.
7975 (uninsert_reinsert_breakpoints): Likewise.
7976 (has_reinsert_breakpoints): Likewise.
7978 2016-07-21 Yao Qi <yao.qi@linaro.org>
7980 * inferiors.c (get_thread_process): Make parameter const.
7981 * inferiors.h (get_thread_process): Update declaration.
7982 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7983 Add new parameters child_thread and parent_thread. Callers
7985 * mem-break.h (clone_all_breakpoints): Update declaration.
7987 2016-07-21 Yao Qi <yao.qi@linaro.org>
7989 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7990 <command_list, handler>: Remove.
7991 (struct gdb_breakpoint): New.
7992 (struct other_breakpoint): New.
7993 (struct reinsert_breakpoint): New.
7994 (is_gdb_breakpoint): New function.
7995 (any_persistent_commands): Update command_list if
7996 is_gdb_breakpoint returns true.
7997 (set_breakpoint): Create breakpoints according to their types.
7998 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7999 (set_gdb_breakpoint_1): Likewise.
8000 (set_gdb_breakpoint): Likewise.
8001 (clear_breakpoint_conditions): Change parameter type to
8002 'struct gdb_breakpoint *'.
8003 (clear_breakpoint_commands): Likewise.
8004 (clear_breakpoint_conditions_and_commands): Likewise.
8005 (add_condition_to_breakpoint): Likewise.
8006 (add_breakpoint_condition): Likewise.
8007 (add_commands_to_breakpoint): Likewise.
8008 (check_breakpoints): Check other_breakpoint.
8009 (clone_one_breakpoint): Clone breakpopint according to its type.
8010 * mem-break.h (struct gdb_breakpoint): Declare.
8011 (set_gdb_breakpoint): Update declaration.
8012 (clear_breakpoint_conditions_and_commands): Likewise.
8013 (add_breakpoint_condition): Likewise.
8014 (add_breakpoint_commands): Likewise.
8015 * server.c (process_point_options): Change parameter type to
8016 'struct gdb_breakpoint *'.
8018 2016-07-21 Yao Qi <yao.qi@linaro.org>
8020 * mem-break.c (set_breakpoint_at): Rename it to ...
8021 (set_breakpoint_type_at): ... it.
8022 (set_breakpoint_at): Call set_breakpoint_type_at.
8023 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8024 * mem-break.h (set_breakpoint_at): Update comments.
8026 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8028 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8030 (nios2_store_gregset): Likewise.
8032 2016-07-01 Pedro Alves <palves@redhat.com>
8033 Antoine Tremblay <antoine.tremblay@ericsson.com>
8035 * linux-low.c: Change interface to take the target lwp_info
8036 pointer directly and return void. Handle detaching from a zombie
8038 (linux_detach_lwp_callback): New function.
8039 (linux_detach): Detach from the leader thread after detaching from
8042 2016-06-28 Yao Qi <yao.qi@linaro.org>
8044 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8045 for variable new_offset.
8046 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8047 (aarch64_ftrace_insn_reloc_cb): Likewise.
8048 (aarch64_ftrace_insn_reloc_tb): Likewise.
8049 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8050 PRIx64 instead of PRIx32.
8052 2016-06-28 Yao Qi <yao.qi@linaro.org>
8054 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8055 (the_low_target): Install arm_get_syscall_trapinfo.
8057 2016-06-28 Yao Qi <yao.qi@linaro.org>
8059 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8061 (the_low_target): Install aarch64_get_syscall_trapinfo.
8063 2016-06-28 Yao Qi <yao.qi@linaro.org>
8065 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8067 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8068 Remove parameter sysno.
8069 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8072 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8074 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8075 (s390_emit_ne_goto): Likewise.
8076 (s390_emit_lt_goto): Likewise.
8077 (s390_emit_le_goto): Likewise.
8078 (s390_emit_gt_goto): Likewise.
8079 (s390_emit_ge_goto): Likewise.
8080 (s390x_emit_eq_goto): Likewise.
8081 (s390x_emit_ne_goto): Likewise.
8082 (s390x_emit_lt_goto): Likewise.
8083 (s390x_emit_le_goto): Likewise.
8084 (s390x_emit_gt_goto): Likewise.
8085 (s390x_emit_ge_goto): Likewise.
8086 (s390_emit_ops_impl): Mark variable static.
8087 (s390x_emit_ops): Likewise.
8089 2016-06-17 Yao Qi <yao.qi@linaro.org>
8091 * linux-low.c (handle_extended_wait): Call
8092 uninsert_reinsert_breakpoints for the parent process. Remove
8093 reinsert breakpoints from the child process. Reinsert them to
8094 the parent process when vfork is done.
8095 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8096 (reinsert_reinsert_breakpoints): New function.
8097 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8098 (reinsert_reinsert_breakpoints): Declare.
8100 2016-06-17 Yao Qi <yao.qi@linaro.org>
8102 * linux-low.c (handle_extended_wait): If the parent is doing
8103 step-over, remove the reinsert breakpoints from the forked child.
8105 2016-06-17 Yao Qi <yao.qi@linaro.org>
8107 * linux-low.c (unsuspend_all_lwps): Declare.
8108 (linux_low_filter_event): If thread exited, call finish_step_over.
8109 If step-over is finished, unsuspend other threads.
8111 2016-06-17 Yao Qi <yao.qi@linaro.org>
8113 * linux-low.c (linux_resume_one_lwp_throw): Assert
8114 has_reinsert_breakpoints returns false.
8115 * mem-break.c (delete_disabled_breakpoints): Assert
8116 bp type isn't reinsert_breakpoint.
8118 2016-06-17 Yao Qi <yao.qi@linaro.org>
8120 * linux-low.c (maybe_hw_step): New function.
8121 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8122 (finish_step_over): Switch current_thread to lwp temporarily,
8123 and assert has_reinsert_breakpoints returns true.
8124 (proceed_one_lwp): Call maybe_hw_step.
8125 * mem-break.c (has_reinsert_breakpoints): New function.
8126 * mem-break.h (has_reinsert_breakpoints): Declare.
8128 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8130 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8132 2016-05-17 Yao Qi <yao.qi@linaro.org>
8134 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8135 instead of find_inferior.
8137 2016-05-05 Yao Qi <yao.qi@linaro.org>
8139 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8140 Initialize res to zero.
8142 2016-05-05 Yao Qi <yao.qi@linaro.org>
8144 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8147 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8149 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8150 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8151 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8153 2016-04-28 Par Olsson <par.olsson@windriver.com>
8154 Simon Marchi <simon.marchi@ericsson.com>
8156 * tracepoint.c (write_inferior_int8): New function.
8157 (cmd_qtenable_disable): Write enable flag using
8158 write_inferior_int8.
8160 2016-04-25 Yao Qi <yao.qi@linaro.org>
8162 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8163 (need_step_over_p): Return zero if the LWP has pending signals
8164 can be delivered on software single step target.
8166 2016-04-25 Yao Qi <yao.qi@linaro.org>
8168 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8169 return instead of error.
8171 2016-04-22 Yao Qi <yao.qi@linaro.org>
8173 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8176 2016-04-22 Yao Qi <yao.qi@linaro.org>
8178 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8179 signal when stepping over breakpoint with software single
8182 2016-04-21 Pedro Alves <palves@redhat.com>
8184 * linux-s390-low.c (s390_collect_ptrace_register)
8185 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8187 (s390_check_regset): Use void * instead of gdb_byte *.
8189 2016-04-20 Pedro Alves <palves@redhat.com>
8191 * configure: Renegerate.
8193 2016-04-20 Yao Qi <yao.qi@linaro.org>
8195 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8196 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8198 (arm_store_gregset): Likewise.
8200 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8202 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8203 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8204 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8205 (amd64-avx-mpx-linux.c): New rules.
8206 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8207 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8208 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8209 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8210 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8211 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8212 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8213 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8214 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8215 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8216 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8217 * linux-x86-low.c (x86_linux_read_description): Add case for
8218 X86_XSTATE_AVX_MPX_MASK.
8219 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8220 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8221 init_registers_i386_avx_mpx_linux.
8222 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8223 (initialize_low_tracepoint): Call
8224 init_registers_i386_avx_mpx_linux.
8225 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8226 (initialize_low_tracepoint): Call
8227 init_registers_amd64_avx_mpx_linux.
8228 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8229 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8230 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8233 2016-04-18 Pedro Alves <palves@redhat.com>
8235 * configure: Regenerate.
8237 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8239 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8240 (aarch64_emit_sub): Likewise.
8242 2016-04-12 Pedro Alves <palves@redhat.com>
8244 * utils.c (prepare_to_throw_exception): Delete.
8246 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8248 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8250 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8252 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8254 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8256 * linux-aarch64-ipa.c: Add <elf.h> include.
8257 * linux-ppc-ipa.c: Add <elf.h> include.
8258 * linux-s390-ipa.c: Add <elf.h> include.
8260 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8262 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8263 (get_raw_reg_ptr): Likewise.
8264 (get_trace_state_variable_value_ptr): Likewise.
8265 (set_trace_state_variable_value_ptr): Likewise.
8266 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8269 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8270 Marcin Kościelnicki <koriakin@0x04.net>
8273 * linux-ppc-low.c (emit_insns): New function.
8274 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8275 (ppc_emit_prologue): New function.
8276 (ppc_emit_epilogue): New function.
8277 (ppc_emit_add): New function.
8278 (ppc_emit_sub): New function.
8279 (ppc_emit_mul): New function.
8280 (ppc_emit_lsh): New function.
8281 (ppc_emit_rsh_signed): New function.
8282 (ppc_emit_rsh_unsigned): New function.
8283 (ppc_emit_ext): New function.
8284 (ppc_emit_zero_ext): New function.
8285 (ppc_emit_log_not): New function.
8286 (ppc_emit_bit_and): New function.
8287 (ppc_emit_bit_or): New function.
8288 (ppc_emit_bit_xor): New function.
8289 (ppc_emit_bit_not): New function.
8290 (ppc_emit_equal): New function.
8291 (ppc_emit_less_signed): New function.
8292 (ppc_emit_less_unsigned): New function.
8293 (ppc_emit_ref): New function.
8294 (ppc_emit_const): New function.
8295 (ppc_emit_reg): New function.
8296 (ppc_emit_pop): New function.
8297 (ppc_emit_stack_flush): New function.
8298 (ppc_emit_swap): New function.
8299 (ppc_emit_stack_adjust): New function.
8300 (ppc_emit_call): New function.
8301 (ppc_emit_int_call_1): New function.
8302 (ppc_emit_void_call_2): New function.
8303 (ppc_emit_if_goto): New function.
8304 (ppc_emit_goto): New function.
8305 (ppc_emit_eq_goto): New function.
8306 (ppc_emit_ne_goto): New function.
8307 (ppc_emit_lt_goto): New function.
8308 (ppc_emit_le_goto): New function.
8309 (ppc_emit_gt_goto): New function.
8310 (ppc_emit_ge_goto): New function.
8311 (ppc_write_goto_address): New function.
8312 (ppc_emit_ops_impl): New static variable.
8313 (ppc64v1_emit_prologue): New function.
8314 (ppc64v2_emit_prologue): New function.
8315 (ppc64_emit_epilogue): New function.
8316 (ppc64_emit_add): New function.
8317 (ppc64_emit_sub): New function.
8318 (ppc64_emit_mul): New function.
8319 (ppc64_emit_lsh): New function.
8320 (ppc64_emit_rsh_signed): New function.
8321 (ppc64_emit_rsh_unsigned): New function.
8322 (ppc64_emit_ext): New function.
8323 (ppc64_emit_zero_ext): New function.
8324 (ppc64_emit_log_not): New function.
8325 (ppc64_emit_bit_and): New function.
8326 (ppc64_emit_bit_or): New function.
8327 (ppc64_emit_bit_xor): New function.
8328 (ppc64_emit_bit_not): New function.
8329 (ppc64_emit_equal): New function.
8330 (ppc64_emit_less_signed): New function.
8331 (ppc64_emit_less_unsigned): New function.
8332 (ppc64_emit_ref): New function.
8333 (ppc64_emit_const): New function.
8334 (ppc64v1_emit_reg): New function.
8335 (ppc64v2_emit_reg): New function.
8336 (ppc64_emit_pop): New function.
8337 (ppc64_emit_stack_flush): New function.
8338 (ppc64_emit_swap): New function.
8339 (ppc64v1_emit_call): New function.
8340 (ppc64v2_emit_call): New function.
8341 (ppc64v1_emit_int_call_1): New function.
8342 (ppc64v2_emit_int_call_1): New function.
8343 (ppc64v1_emit_void_call_2): New function.
8344 (ppc64v2_emit_void_call_2): New function.
8345 (ppc64_emit_if_goto): New function.
8346 (ppc64_emit_eq_goto): New function.
8347 (ppc64_emit_ne_goto): New function.
8348 (ppc64_emit_lt_goto): New function.
8349 (ppc64_emit_le_goto): New function.
8350 (ppc64_emit_gt_goto): New function.
8351 (ppc64_emit_ge_goto): New function.
8352 (ppc64v1_emit_ops_impl): New static variable.
8353 (ppc64v2_emit_ops_impl): New static variable.
8354 (ppc_emit_ops): New function.
8355 (linux_low_target): Wire in ppc_emit_ops.
8357 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8358 Marcin Kościelnicki <koriakin@0x04.net>
8361 * Makefile.in: Add powerpc-*-ipa.o
8362 * configure.srv: Add ipa_obj for powerpc*-linux.
8363 * linux-ppc-ipa.c: New file.
8364 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8366 (PPC_FIELD): New macro.
8367 (PPC_SEXT): New macro.
8368 (PPC_OP6): New macro.
8369 (PPC_BO): New macro.
8370 (PPC_LI): New macro.
8371 (PPC_BD): New macro.
8372 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8373 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8374 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8375 (ppc_get_thread_area): New function.
8376 (is_elfv2_inferior): New function.
8377 (gen_ds_form): New function.
8378 (GEN_STD): New macro.
8379 (GEN_STDU): New macro.
8380 (GEN_LD): New macro.
8381 (GEN_LDU): New macro.
8382 (gen_d_form): New function.
8383 (GEN_ADDI): New macro.
8384 (GEN_ADDIS): New macro.
8385 (GEN_LI): New macro.
8386 (GEN_LIS): New macro.
8387 (GEN_ORI): New macro.
8388 (GEN_ORIS): New macro.
8389 (GEN_LWZ): New macro.
8390 (GEN_STW): New macro.
8391 (GEN_STWU): New macro.
8392 (gen_xfx_form): New function.
8393 (GEN_MFSPR): New macro.
8394 (GEN_MTSPR): New macro.
8395 (GEN_MFCR): New macro.
8396 (GEN_MTCR): New macro.
8397 (GEN_SYNC): New macro.
8398 (GEN_LWSYNC): New macro.
8399 (gen_x_form): New function.
8400 (GEN_OR): New macro.
8401 (GEN_MR): New macro.
8402 (GEN_LWARX): New macro.
8403 (GEN_STWCX): New macro.
8404 (GEN_CMPW): New macro.
8405 (gen_md_form): New function.
8406 (GEN_RLDICL): New macro.
8407 (GEN_RLDICR): New macro.
8408 (gen_i_form): New function.
8410 (GEN_BL): New macro.
8411 (gen_b_form): New function.
8412 (GEN_BNE): New macro.
8413 (GEN_LOAD): New macro.
8414 (GEN_STORE): New macro.
8415 (gen_limm): New function.
8416 (gen_atomic_xchg): New function.
8417 (gen_call): New function.
8418 (ppc_relocate_instruction): New function.
8419 (ppc_install_fast_tracepoint_jump_pad): New function.
8420 (ppc_get_min_fast_tracepoint_insn_len): New function.
8421 (ppc_get_ipa_tdesc_idx): New function.
8422 (the_low_target): Wire in the new functions.
8423 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8425 * linux-ppc-tdesc.h: New file.
8427 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8429 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8430 (alloc_jump_pad_buffer): New function.
8431 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8432 (alloc_jump_pad_buffer): New function.
8433 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8434 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8435 (alloc_jump_pad_buffer): New function.
8436 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8437 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8438 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8439 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8441 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8443 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8444 * linux-amd64-ipa.c: Likewise.
8445 * linux-i386-ipa.c: Likewise.
8446 * linux-s390-ipa.c: Likewise.
8447 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8448 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8449 set_trace_state_variable_value_ptr.
8450 (struct ipa_sym_addresses): Likewise.
8451 (symbol_list): Likewise.
8452 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8453 accessing gdb_collect directly.
8454 (gdb_collect_ptr_type): New typedef.
8455 (get_raw_reg_ptr_type): New typedef.
8456 (get_trace_state_variable_value_ptr_type): New typedef.
8457 (set_trace_state_variable_value_ptr_type): New typedef.
8458 (gdb_collect_ptr): New global.
8459 (get_raw_reg_ptr): New global.
8460 (get_trace_state_variable_value_ptr): New global.
8461 (set_trace_state_variable_value_ptr): New global.
8462 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8463 accessing get_raw_reg directly.
8464 (get_get_tsv_func_addr): Likewise for
8465 get_trace_state_variable_value_ptr.
8466 (get_set_tsv_func_addr): Likewise for
8467 set_trace_state_variable_value_ptr.
8468 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8470 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8472 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8474 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8476 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8478 (relocate_instruction): Remove own_buf.
8479 * server.c (own_buf): Make global.
8480 (handle_v_requests): Make global.
8481 * server.h (own_buf): New declaration.
8482 (handle_v_requests): New prototype.
8484 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8487 * linux-s390-low.c (add_insns): New function.
8488 (s390_emit_prologue): New function.
8489 (s390_emit_epilogue): New function.
8490 (s390_emit_add): New function.
8491 (s390_emit_sub): New function.
8492 (s390_emit_mul): New function.
8493 (s390_emit_lsh): New function.
8494 (s390_emit_rsh_signed): New function.
8495 (s390_emit_rsh_unsigned): New function.
8496 (s390_emit_ext): New function.
8497 (s390_emit_log_not): New function.
8498 (s390_emit_bit_and): New function.
8499 (s390_emit_bit_or): New function.
8500 (s390_emit_bit_xor): New function.
8501 (s390_emit_bit_not): New function.
8502 (s390_emit_equal): New function.
8503 (s390_emit_less_signed): New function.
8504 (s390_emit_less_unsigned): New function.
8505 (s390_emit_ref): New function.
8506 (s390_emit_if_goto): New function.
8507 (s390_emit_goto): New function.
8508 (s390_write_goto_address): New function.
8509 (s390_emit_litpool): New function.
8510 (s390_emit_const): New function.
8511 (s390_emit_call): New function.
8512 (s390_emit_reg): New function.
8513 (s390_emit_pop): New function.
8514 (s390_emit_stack_flush): New function.
8515 (s390_emit_zero_ext): New function.
8516 (s390_emit_swap): New function.
8517 (s390_emit_stack_adjust): New function.
8518 (s390_emit_set_r2): New function.
8519 (s390_emit_int_call_1): New function.
8520 (s390_emit_void_call_2): New function.
8521 (s390_emit_eq_goto): New function.
8522 (s390_emit_ne_goto): New function.
8523 (s390_emit_lt_goto): New function.
8524 (s390_emit_le_goto): New function.
8525 (s390_emit_gt_goto): New function.
8526 (s390_emit_ge_goto): New function.
8527 (s390x_emit_prologue): New function.
8528 (s390x_emit_epilogue): New function.
8529 (s390x_emit_add): New function.
8530 (s390x_emit_sub): New function.
8531 (s390x_emit_mul): New function.
8532 (s390x_emit_lsh): New function.
8533 (s390x_emit_rsh_signed): New function.
8534 (s390x_emit_rsh_unsigned): New function.
8535 (s390x_emit_ext): New function.
8536 (s390x_emit_log_not): New function.
8537 (s390x_emit_bit_and): New function.
8538 (s390x_emit_bit_or): New function.
8539 (s390x_emit_bit_xor): New function.
8540 (s390x_emit_bit_not): New function.
8541 (s390x_emit_equal): New function.
8542 (s390x_emit_less_signed): New function.
8543 (s390x_emit_less_unsigned): New function.
8544 (s390x_emit_ref): New function.
8545 (s390x_emit_if_goto): New function.
8546 (s390x_emit_const): New function.
8547 (s390x_emit_call): New function.
8548 (s390x_emit_reg): New function.
8549 (s390x_emit_pop): New function.
8550 (s390x_emit_stack_flush): New function.
8551 (s390x_emit_zero_ext): New function.
8552 (s390x_emit_swap): New function.
8553 (s390x_emit_stack_adjust): New function.
8554 (s390x_emit_int_call_1): New function.
8555 (s390x_emit_void_call_2): New function.
8556 (s390x_emit_eq_goto): New function.
8557 (s390x_emit_ne_goto): New function.
8558 (s390x_emit_lt_goto): New function.
8559 (s390x_emit_le_goto): New function.
8560 (s390x_emit_gt_goto): New function.
8561 (s390x_emit_ge_goto): New function.
8562 (s390_emit_ops): New function.
8563 (struct linux_target_ops): Fill in emit_ops hook.
8565 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8568 * Makefile.in: Add s390 IPA files.
8569 * configure.srv: Build IPA for s390.
8570 * linux-s390-ipa.c: New file.
8571 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8572 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8573 (tdesc_s390_linux32): Likewise.
8574 (init_registers_s390_linux32v1): Likewise.
8575 (tdesc_s390_linux32v1): Likewise.
8576 (init_registers_s390_linux32v2): Likewise.
8577 (tdesc_s390_linux32v2): Likewise.
8578 (init_registers_s390_linux64): Likewise.
8579 (tdesc_s390_linux64): Likewise.
8580 (init_registers_s390_linux64v1): Likewise.
8581 (tdesc_s390_linux64v1): Likewise.
8582 (init_registers_s390_linux64v2): Likewise.
8583 (tdesc_s390_linux64v2): Likewise.
8584 (init_registers_s390_te_linux64): Likewise.
8585 (tdesc_s390_te_linux64): Likewise.
8586 (init_registers_s390_vx_linux64): Likewise.
8587 (tdesc_s390_vx_linux64): Likewise.
8588 (init_registers_s390_tevx_linux64): Likewise.
8589 (tdesc_s390_tevx_linux64): Likewise.
8590 (init_registers_s390x_linux64): Likewise.
8591 (tdesc_s390x_linux64): Likewise.
8592 (init_registers_s390x_linux64v1): Likewise.
8593 (tdesc_s390x_linux64v1): Likewise.
8594 (init_registers_s390x_linux64v2): Likewise.
8595 (tdesc_s390x_linux64v2): Likewise.
8596 (init_registers_s390x_te_linux64): Likewise.
8597 (tdesc_s390x_te_linux64): Likewise.
8598 (init_registers_s390x_vx_linux64): Likewise.
8599 (tdesc_s390x_vx_linux64): Likewise.
8600 (init_registers_s390x_tevx_linux64): Likewise.
8601 (tdesc_s390x_tevx_linux64): Likewise.
8602 (have_hwcap_s390_vx): New static variable.
8603 (s390_arch_setup): Fill have_hwcap_s390_vx.
8604 (s390_get_thread_area): New function.
8605 (s390_ft_entry_gpr_esa): New const.
8606 (s390_ft_entry_gpr_zarch): New const.
8607 (s390_ft_entry_misc): New const.
8608 (s390_ft_entry_fr): New const.
8609 (s390_ft_entry_vr): New const.
8610 (s390_ft_main_31): New const.
8611 (s390_ft_main_64): New const.
8612 (s390_ft_exit_fr): New const.
8613 (s390_ft_exit_vr): New const.
8614 (s390_ft_exit_misc): New const.
8615 (s390_ft_exit_gpr_esa): New const.
8616 (s390_ft_exit_gpr_zarch): New const.
8617 (append_insns): New function.
8618 (s390_relocate_instruction): New function.
8619 (s390_install_fast_tracepoint_jump_pad): New function.
8620 (s390_get_min_fast_tracepoint_insn_len): New function.
8621 (s390_get_ipa_tdesc_idx): New function.
8622 (struct linux_target_ops): Wire in the above functions.
8623 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8624 * linux-s390-tdesc.h: New file.
8626 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8628 * linux-s390-low.c (s390_supports_tracepoints): New function.
8629 (struct linux_target_ops): Fill supports_tracepoints hook.
8631 2016-03-18 Yao Qi <yao.qi@linaro.org>
8633 * linux-low.c (lwp_signal_can_be_delivered): New function.
8634 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8636 2016-03-18 Yao Qi <yao.qi@linaro.org>
8638 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8639 0 if signal is enqueued. Remove 'signal' from one debugging
8640 message. Move one debugging message to some lines below.
8641 Remove code setting 'signal' to 0.
8643 2016-03-18 Yao Qi <yao.qi@linaro.org>
8645 * linux-low.c (linux_low_filter_event): Remove redundant
8646 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8648 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8650 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8651 (struct linux_target_ops): Wire in the above.
8653 2016-03-03 Yao Qi <yao.qi@linaro.org>
8655 * linux-low.c: Update comments to start_step_over.
8657 2016-03-03 Yao Qi <yao.qi@linaro.org>
8660 * linux-low.c (handle_extended_wait): Set child suspended
8661 if event_lwp->bp_reinsert isn't zero.
8663 2016-03-02 Yao Qi <yao.qi@linaro.org>
8665 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8666 enqueue_pending_signal.
8668 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8670 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8673 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8675 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8676 (s390_regmap_3264) [!__s390x__]: New global.
8677 (s390_collect_ptrace_register): Skip map entries containing -1.
8678 (s390_supply_ptrace_register): Ditto.
8679 (s390_fill_gprs_high): New function.
8680 (s390_store_gprs_high): New function.
8681 (s390_regsets): Add NT_S390_HIGH_GPRS.
8682 (s390_get_hwcap): Enable on 31-bit.
8683 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8684 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8685 Detect NT_S390_HIGH_GPRS.
8686 (s390_usrregs_info_3264): Enable on 31-bit.
8687 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8688 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8690 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8693 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8694 * configure.srv: Ditto.
8695 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8696 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8697 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8698 (init_registers_amd64_linux): Remove prototype.
8699 (tdesc_amd64_linux): Remove declaration.
8700 (get_ipa_tdesc): New function.
8701 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8702 initialize remaining tdescs.
8703 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8704 (init_registers_i386_linux): Remove prototype.
8705 (tdesc_i386_linux): Remove declaration.
8706 (get_ipa_tdesc): New function.
8707 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8708 initialize remaining tdescs.
8709 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8710 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8711 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8712 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8713 (x86_get_ipa_tdesc_idx): New function.
8714 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8715 * linux-x86-tdesc.h: New file.
8716 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8717 (target_get_ipa_tdesc_idx): New macro.
8718 * tracepoint.c (ipa_tdesc_idx): New macro.
8719 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8720 (symbol_list): Add ipa_tdesc_idx.
8721 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8722 (ipa_tdesc): Remove.
8723 (ipa_tdesc_idx): New variable.
8724 (get_context_regcache): Use get_ipa_tdesc.
8725 (gdb_collect): Ditto.
8727 * tracepoint.h (get_ipa_tdesc): New prototype.
8728 (ipa_tdesc): Remove.
8730 2016-02-24 Pedro Alves <palves@redhat.com>
8732 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8733 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8734 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8735 Factor out common code between the USE_SIGTRAP_SIGINFO and
8736 !USE_SIGTRAP_SIGINFO blocks.
8737 (linux_low_filter_event): Call save_stop_reason instead of
8738 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8740 (linux_wait_1): Update comments.
8742 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8744 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8745 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8746 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8747 ppc_insert_point, ppc_remove_point.
8749 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8751 * linux-s390-low.c (s390_supports_z_point_type): New function.
8752 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8754 2016-02-16 Yao Qi <yao.qi@linaro.org>
8756 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8757 PC. Get pc from regcache_read_pc.
8759 2016-02-12 Yao Qi <yao.qi@linaro.org>
8761 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8762 or linux_get_pc_32bit.
8763 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8765 2016-02-12 Yao Qi <yao.qi@linaro.org>
8767 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8768 arm_linux_get_next_pcs_fixup.
8770 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8772 * tracepoint.c (x_tracepoint_action_download): Change
8773 write_inferior_data_ptr to write_inferior_data_pointer.
8774 (cmd_qtstart): Likewise.
8775 (write_inferior_data_ptr): Remove.
8776 (download_agent_expr): Change write_inferior_data_ptr to
8777 write_inferior_data_pointer.
8778 (download_tracepoint_1): Likewise.
8779 (download_tracepoint): Likewise.
8780 (download_trace_state_variables): Likewise.
8782 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8783 Marcin Kościelnicki <koriakin@0x04.net>
8785 * tracepoint.c (struct tracepoint_action_ops): Remove.
8786 (struct tracepoint_action): Remove ops.
8787 (m_tracepoint_action_download, r_tracepoint_action_download)
8788 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8789 size and offset accordingly.
8790 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8791 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8792 (tracepoint_action_send, tracepoint_action_download): New functions.
8793 Helpers for trace action handlers.
8794 (add_tracepoint_action): Remove setup actions ops.
8795 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8797 2016-02-10 Yao Qi <yao.qi@linaro.org>
8799 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8801 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8803 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8805 * configure: Regenerate.
8807 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8809 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8810 void * to gdb_byte *.
8811 * linux-low.c (siginfo_fixup): Likewise.
8812 (linux_xfer_siginfo): Likewise.
8813 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8815 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8817 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8819 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8821 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8823 * linux-x86-low.c [__x86_64__]: Include
8824 "nat/amd64-linux-siginfo.h".
8825 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8826 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8827 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8828 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8829 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8830 (cpt_si_fd, si_timerid, si_overrun): Move from
8831 nat/amd64-linux-siginfo.c.
8832 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8834 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8836 * server.c (skip_to_semicolon): Remove.
8837 (process_point_options): Use strchrnul instead of
8840 2016-01-26 Yao Qi <yao.qi@linaro.org>
8842 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8843 * linux-low.c (install_software_single_step_breakpoints): Don't
8844 call regcache_read_pc.
8845 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8848 2016-01-26 Yao Qi <yao.qi@linaro.org>
8850 * linux-low.c (install_software_single_step_breakpoints): Call
8851 regcache_read_pc instead of get_pc.
8853 2016-01-26 Yao Qi <yao.qi@linaro.org>
8855 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8856 (unblock_async_io): Rename to ...
8857 (block_unblock_async_io): ... it. New function.
8858 (enable_async_io): Don't install SIGIO handler. Unblock it
8860 (disable_async_io): Don't ignore SIGIO. Block it instead.
8861 (initialize_async_io): Install SIGIO handler. Don't call
8864 2016-01-26 Yao Qi <yao.qi@linaro.org>
8866 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8867 first character is '\003', call *the_target->request_interrupt.
8869 2016-01-25 Yao Qi <yao.qi@linaro.org>
8871 * remote-utils.c (new_thread_notify): Remove.
8872 (dead_thread_notify): Likewise.
8873 * remote-utils.h (new_thread_notify): Remove declaration.
8874 (dead_thread_notify): Likewise.
8876 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8878 * gdb.trace/pending.exp: Fix expected message on continue.
8880 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8882 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8883 it works properly on big-endian machines where sizeof (CORE_ADDR)
8886 2016-01-21 Pedro Alves <palves@redhat.com>
8888 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8889 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8890 * configure: Regenerate.
8892 2016-01-21 Yao Qi <yao.qi@linaro.org>
8894 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8895 is_thumb and set it according to CPSR saved on the stack.
8896 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8897 arm_sigreturn_next_pc.
8899 2016-01-18 Yao Qi <yao.qi@linaro.org>
8901 * linux-low.c (linux_set_pc_64bit): New function.
8902 (linux_get_pc_64bit): New function.
8903 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8905 * linux-sparc-low.c (debug_threads): Remove declaration.
8906 (sparc_get_pc): Remove.
8907 (the_low_target): Use linux_get_pc_64bit instead of
8909 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8910 (the_low_target): Use linux_get_pc_64bit and
8913 2016-01-18 Yao Qi <yao.qi@linaro.org>
8915 * linux-arm-low.c (debug_threads): Remove declaration.
8916 (arm_get_pc, arm_set_pc): Remove.
8917 (the_low_target): Use linux_get_pc_32bit and
8919 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8920 (the_low_target): Use linux_get_pc_32bit and
8922 * linux-cris-low.c (debug_threads): Remove declaration.
8923 (cris_get_pc, cris_set_pc,): Remove.
8924 (the_low_target): Use linux_get_pc_32bit and
8926 * linux-crisv32-low.c (debug_threads): Remove declaration.
8927 (cris_get_pc, cris_set_pc): Remove.
8928 (the_low_target): Use linux_get_pc_32bit and
8930 * linux-low.c: Include inttypes.h.
8931 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8932 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8933 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8934 (the_low_target): Use linux_get_pc_32bit and
8936 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8937 (the_low_target): Use linux_get_pc_32bit and
8939 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8940 (the_low_target): Use linux_get_pc_32bit and
8942 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8943 (the_low_target): Use linux_get_pc_32bit and
8945 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8946 (the_low_target): Use linux_get_pc_32bit and
8949 2016-01-18 Gary Benson <gbenson@redhat.com>
8951 * configure.ac (AC_FUNC_FORK): New check.
8952 * config.in: Regenerate.
8953 * configure: Likewise.
8955 2016-01-14 Yao Qi <yao.qi@linaro.org>
8957 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8958 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8959 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8960 arm_get_next_pcs_ctor.
8962 2016-01-12 Josh Stone <jistone@redhat.com>
8963 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8965 * inferiors.h: Include "gdb_vecs.h".
8966 (struct process_info): Add syscalls_to_catch.
8967 * inferiors.c (remove_process): Free syscalls_to_catch.
8968 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8969 syscall_return stops.
8970 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8971 * server.c (handle_general_set): Handle QCatchSyscalls.
8972 (handle_query): Report support for QCatchSyscalls.
8973 * target.h (struct target_ops): Add supports_catch_syscall.
8974 (target_supports_catch_syscall): New macro.
8975 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8976 (struct lwp_info): Add syscall_state.
8977 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8978 Maintain syscall_state and syscalls_to_catch across exec.
8979 (get_syscall_trapinfo): New function, proxy to the_low_target.
8980 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8981 (linux_low_filter_event): Toggle syscall_state entry/return for
8982 syscall traps, and set it ignored for all others.
8983 (gdb_catching_syscalls_p): New function.
8984 (gdb_catch_this_syscall_p): New function.
8985 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8986 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8987 (linux_supports_catch_syscall): New function.
8988 (linux_target_ops): Install it.
8989 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8990 (the_low_target): Install it.
8992 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8994 * acinclude.m4: Include new ../warning.m4 file.
8995 * configure: Regenerated.
8996 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8998 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9000 * ax.c (is_goto_target): Mark static.
9001 * linux-low.c (register_addr): Likewise.
9002 (linux_fetch_registers, linux_store_registers): Likewise.
9003 * mem-break.c (any_persistent_commands): Fix old prototype.
9004 (add_commands_to_breakpoint): Mark static.
9005 * regcache.c (find_register_by_name): Delete unused func.
9006 * remote-utils.c (hex_or_minus_one): Mark static.
9007 * server.c (monitor_show_help): Mark static.
9008 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9009 handle_v_requests): Likewise.
9011 2016-01-12 Pedro Alves <palves@redhat.com>
9013 Remove use of the registered trademark symbol throughout.
9015 2016-01-08 Yao Qi <yao.qi@linaro.org>
9017 * remote-utils.c (getpkt): If c is '\003', call target hook
9020 2016-01-06 Yao Qi <yao.qi@linaro.org>
9022 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9023 linux-aarch32-low.c.
9024 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9025 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9026 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9027 (thumb2_breakpoint): Declare.
9028 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9029 linux-aarch32-low.h.
9030 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9031 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9032 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9034 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9036 * gdbreplay.c (gdbreplay_version): Change copyright year in
9038 * server.c (gdbserver_version): Likewise.
9040 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9042 * server.c (crc32_table): Delete.
9043 (crc32): Use libiberty's xcrc32 function.
9045 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9047 * lynx-low.c (lynx_delete_thread_callback): New function.
9048 (lynx_mourn): Properly delete our process and all of its
9049 threads. Remove call to clear_inferiors.
9051 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9053 * target.c (thread_search_callback): Add check that
9054 the thread_stopped target callback is not NULL before
9057 2015-12-21 Yao Qi <yao.qi@linaro.org>
9059 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9062 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9064 * server.c (handle_query): Call target_supports_software_single_step.
9066 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9068 * linux-low.c (single_step): New function.
9069 (linux_resume_one_lwp_throw): Call single_step.
9070 (start_step_over): Likewise.
9072 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9074 * Makefile.in (SFILES): Append arch/arm-linux.c,
9075 arch/arm-get-next-pcs.c.
9076 (arm-linux.o): New rule.
9077 (arm-get-next-pcs.o): New rule.
9078 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9080 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9081 to linux-aarch32-low.c.
9082 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9083 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9084 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9085 (thumb2_breakpoint_len): Likewise.
9086 (arm_is_thumb_mode): Make non-static.
9087 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9088 from linux-aarch32-low.c.
9089 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9090 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9091 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9092 (thumb2_breakpoint_len): Likewise.
9093 (arm_is_thumb_mode): New declaration.
9094 * linux-arm-low.c: Include arch/arm-linux.h
9095 aarch/arm-get-next-pcs.h, sys/syscall.h.
9096 (get_next_pcs_ops): New struct.
9097 (get_next_pcs_addr_bits_remove): New function.
9098 (get_next_pcs_is_thumb): New function.
9099 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9100 (arm_sigreturn_next_pc): Likewise.
9101 (get_next_pcs_syscall_next_pc): Likewise.
9102 (arm_gdbserver_get_next_pcs): Likewise.
9103 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9105 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9106 * server.h: Include gdb_vecs.h.
9108 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9110 * Makefile.in (SFILES): Append common/common-regcache.c.
9111 (OBS): Append common-regcache.o.
9112 (common-regcache.o): New rule.
9113 * regcache.c (init_register_cache): Initialize cache to
9115 (regcache_raw_read_unsigned): New function.
9116 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9117 register_status enum.
9119 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9121 * linux-aarch64-low.c (the_low_targets): Rename
9122 breakpoint_reinsert_addr to get_next_pcs.
9123 * linux-arm-low.c (the_low_targets): Likewise.
9124 * linux-bfin-low.c (the_low_targets): Likewise.
9125 * linux-cris-low.c (the_low_targets): Likewise.
9126 * linux-crisv32-low.c (the_low_targets): Likewise.
9127 * linux-low.c (can_software_single_step): Likewise.
9128 (install_software_single_step_breakpoints): New function.
9129 (start_step_over): Use install_software_single_step_breakpoints.
9130 * linux-low.h: New CORE_ADDR vector.
9131 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9133 * linux-mips-low.c (the_low_targets): Likewise.
9134 * linux-nios2-low.c (the_low_targets): Likewise.
9135 * linux-sparc-low.c (the_low_targets): Likewise.
9137 2015-12-17 Pedro Alves <palves@redhat.com>
9139 * linux-low.c (linux_kill_one_lwp): Remove references to
9141 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9143 (linux_init_signals): Delete.
9144 (initialize_low): Adjust.
9145 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9147 2015-12-16 Pedro Alves <palves@redhat.com>
9149 * configure.ac (compiler warning flags): When testing a
9150 -Wno-foo option, check whether -Wfoo works instead.
9151 * configure: Regenerate.
9153 2015-12-11 Don Breazeal <donb@codesourcery.com>
9155 * server.c (process_serial_event): Don't exit from gdbserver
9156 in remote mode if there are still active inferiors.
9158 2015-12-11 Yao Qi <yao.qi@linaro.org>
9160 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9161 arm_breakpoint_at if the process is 32-bit.
9163 2015-12-11 Yao Qi <yao.qi@linaro.org>
9165 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9168 2015-12-07 Yao Qi <yao.qi@linaro.org>
9170 * configure.srv: Append arm.o to srv_tgtobj for
9171 aarch64*-*-linux* target.
9172 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9173 from linux-arm-low.c.
9174 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9175 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9176 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9177 (thumb2_breakpoint_len): Likewise.
9178 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9179 (arm_breakpoint_kinds): Likewise.
9180 (arm_breakpoint_kind_from_pc): Likewise.
9181 (arm_sw_breakpoint_from_kind): Likewise.
9182 (arm_breakpoint_kind_from_current_state): Likewise.
9183 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9184 (arm_sw_breakpoint_from_kind): Declare.
9185 (arm_breakpoint_kind_from_current_state): Declare.
9186 (arm_breakpoint_at): Declare.
9187 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9188 arm_sw_breakpoint_from_kind if process is 32-bit.
9189 (aarch64_breakpoint_kind_from_pc): New function.
9190 (aarch64_breakpoint_kind_from_current_state): New function.
9191 (the_low_target): Initialize fields breakpoint_kind_from_pc
9192 and breakpoint_kind_from_current_state.
9193 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9194 linux-aarch32-low.c.
9195 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9196 (arm_breakpoint, arm_breakpoint_len): Likewise.
9197 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9198 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9199 (arm_is_thumb_mode): Likewise.
9200 (arm_breakpoint_at): Likewise.
9201 (arm_breakpoint_kind_from_pc): Likewise.
9202 (arm_sw_breakpoint_from_kind): Likewise.
9203 (arm_breakpoint_kind_from_current_state): Likewise.
9206 2015-08-04 Yao Qi <yao.qi@linaro.org>
9208 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9209 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9210 * server.c (extended_protocol): Remove "static".
9211 * server.h (extended_protocol): Declare it.
9213 2015-12-04 Josh Stone <jistone@redhat.com>
9215 * target.h (struct target_ops) <arch_setup>: Rename to ...
9216 (struct target_ops) <post_create_inferior>: ... this.
9217 (target_arch_setup): Rename to ...
9218 (target_post_create_inferior): ... this, calling post_create_inferior.
9219 * server.c (start_inferior): Update target_arch_setup calls to
9220 target_post_create_inferior.
9221 * linux-low.c (linux_low_ptrace_options): Forward declare.
9222 (linux_arch_setup): Update its comment for general use.
9223 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9224 (struct linux_target_ops): Use linux_post_create_inferior.
9225 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9226 to post_create_inferior.
9227 * nto-low.c (struct nto_target_ops): Likewise.
9228 * spu-low.c (struct spu_target_ops): Likewise.
9229 * win32-low.c (struct win32_target_ops): Likewise.
9231 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9233 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9235 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9237 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9238 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9239 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9240 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9241 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9242 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9243 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9244 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9245 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9246 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9247 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9248 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9250 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9252 * linux-low.c (linux_look_up_symbols): Don't call
9253 linux_supports_traceclone.
9254 * linux-low.h (thread_db_init): Remove use_events argument.
9255 * thread-db.c (thread_db_use_event): Remove global variable.
9256 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9257 (struct thread_db) <td_create_bp>: Remove field.
9258 (thread_db_create_event): Remove function.
9259 (thread_db_enable_reporting): Likewise.
9260 (find_one_thread): Don't check for thread_db_use_events.
9261 (attach_thread): Likewise.
9262 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9263 (try_thread_db_load_1): Don't check for thread_db_use_events.
9264 (thread_db_init): Remove use_events argument and thread events
9266 (remove_thread_event_breakpoints): Remove function.
9267 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9269 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9271 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9273 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9274 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9275 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9276 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9277 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9279 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9281 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9282 * linux-low.c (can_hardware_single_step): Use
9283 supports_hardware_single_step.
9284 (can_software_single_step): New function.
9285 (start_step_over): Call can_software_single_step.
9286 (linux_supports_hardware_single_step): New function.
9287 (struct target_ops) <supports_software_single_step>: Initialize.
9288 * linux-low.h (struct linux_target_ops)
9289 <supports_hardware_single_step>: Initialize.
9290 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9291 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9292 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9293 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9294 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9295 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9296 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9297 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9298 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9299 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9301 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9302 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9304 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9305 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9306 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9308 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9309 * target.h (struct target_ops): <supports_software_single_step>:
9311 (target_supports_software_single_step): New macro.
9313 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9315 * linux-low.c (linux_wait_1): Fix pc advance condition.
9316 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9317 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9319 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9321 * linux-arm-low.c (arm_is_thumb_mode): New function.
9322 (arm_breakpoint_at): Use arm_is_thumb_mode.
9323 (arm_breakpoint_kind_from_current_state): New function.
9324 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9326 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9327 (linux_breakpoint_kind_from_current_state): New function.
9328 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9329 * linux-low.h (struct linux_target_ops)
9330 <breakpoint_kind_from_current_state>: New field.
9331 * target.h (struct target_ops): Likewise.
9332 (target_breakpoint_kind_from_current_state): New macro.
9334 2015-11-30 Pedro Alves <palves@redhat.com>
9336 * linux-low.c (linux_resume): Wake up the event loop before
9339 2015-11-30 Pedro Alves <palves@redhat.com>
9341 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9343 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9345 * target.c (struct thread_search): New structure.
9346 (thread_search_callback): New function.
9347 (prev_general_thread): New global.
9348 (prepare_to_access_memory, done_accessing_memory): New functions.
9349 * target.h (prepare_to_access_memory, done_accessing_memory):
9350 Replace macros with function declarations.
9352 2015-11-30 Pedro Alves <palves@redhat.com>
9355 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9356 report TARGET_WAITKIND_NO_RESUMED.
9357 * remote-utils.c (prepare_resume_reply): Handle
9358 TARGET_WAITKIND_NO_RESUMED.
9359 * server.c (report_no_resumed): New global.
9360 (handle_query) <qSupported>: Handle "no-resumed+". Report
9361 "no-resumed+" support.
9362 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9363 return error if the client doesn't support no-resumed events.
9364 (push_stop_notification): New function.
9365 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9366 events if the client supports them.
9368 2015-11-30 Pedro Alves <palves@redhat.com>
9370 * linux-low.c (thread_still_has_status_pending_p): Don't check
9372 (lwp_resumed): New function.
9373 (status_pending_p_callback): Return early if the LWP is not
9374 supposed to be resumed.
9376 2015-11-30 Pedro Alves <palves@redhat.com>
9378 * linux-low.c (handle_extended_wait): Assert that the LWP's
9379 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9380 thread create events, leave the new child's status pending.
9381 (linux_low_filter_event): If GDB wants to hear about thread exit
9382 events, leave the LWP marked dead and don't delete it.
9383 (linux_wait_for_event_filtered): Don't check for thread exit.
9384 (filter_exit_event): New function.
9385 (linux_wait_1): Use it, when returning an exit event.
9386 (linux_resume_one_lwp_throw): Assert that the LWP's
9387 waitstatus is TARGET_WAITKIND_IGNORE.
9388 * remote-utils.c (prepare_resume_reply): Handle
9389 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9390 * server.c (report_thread_events): New global.
9391 (handle_general_set): Handle QThreadEvents.
9392 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9393 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9394 TARGET_WAITKIND_THREAD_EXITED.
9395 * server.h (report_thread_events): Declare.
9397 2015-11-30 Pedro Alves <palves@redhat.com>
9399 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9400 the thread's last_resume_kind was resume_stop.
9402 2015-11-30 Pedro Alves <palves@redhat.com>
9404 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9407 2015-11-30 Pedro Alves <palves@redhat.com>
9409 * server.c (handle_v_requests): Handle vCtrlC.
9411 2015-11-30 Pedro Alves <palves@redhat.com>
9413 * gdbthread.h (find_any_thread_of_pid): Declare.
9414 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9416 * server.c (handle_query): If current_thread is NULL, look for
9417 another thread of the selected process.
9419 2015-11-26 Daniel Colascione <dancol@dancol.org>
9420 Simon Marchi <simon.marchi@ericsson.com>
9422 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9423 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9425 * target.h (struct target_ops) <thread_name>: New field.
9426 (target_thread_name): New macro.
9428 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9430 * regcache.h (regcache_invalidate_pid): Add declaration.
9431 * regcache.c (regcache_invalidate_pid): New function, extracted
9432 from regcache_invalidate.
9433 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9434 Add trivial documentation comment.
9435 * lynx-low.c: Use regcache_invalidate_pid instead of
9436 regcache_invalidate.
9438 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9440 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9441 and Elf64_auxv_t if the target is Android.
9443 2015-11-22 Doug Evans <xdje42@gmail.com>
9445 * target.h: #include <sys/types.h>.
9447 2015-11-19 Pedro Alves <palves@redhat.com>
9449 * linux-low.c (linux_process_qsupported): Change prototype.
9451 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9453 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9454 and adjust to loop over all features.
9455 * server.c (handle_query) <qSupported>: Adjust to call
9456 target_process_qsupported once, passing it a vector of unprocessed
9458 * target.h (struct target_ops) <process_qsupported>: Change
9460 (target_process_qsupported): Adjust.
9462 2015-11-19 Pedro Alves <palves@redhat.com>
9464 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9466 * configure: Regenerate.
9468 2015-11-19 Pedro Alves <palves@redhat.com>
9470 * configure: Regenerate.
9472 2015-11-19 Yao Qi <yao.qi@linaro.org>
9474 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9477 2015-11-19 Yao Qi <yao.qi@linaro.org>
9479 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9480 (struct aarch64_operand): Move enum out.
9482 2015-11-19 Yao Qi <yao.qi@linaro.org>
9484 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9485 struct user_fpsimd_state *.
9486 (aarch64_store_fpregset): Likewise.
9488 2015-11-19 Yao Qi <yao.qi@linaro.org>
9490 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9491 struct user_pt_regs *.
9492 (aarch64_store_gregset): Likewise.
9494 2015-11-18 Pedro Alves <palves@redhat.com>
9496 * Makefile.in (all_object_files): Add $IPA_OBJS.
9498 2015-11-17 Pedro Alves <palves@redhat.com>
9500 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9501 GDB_SIGNAL_0 and gdb_signal_to_string.
9503 2015-11-17 Pedro Alves <palves@redhat.com>
9505 * win32-low.c (handle_output_debug_string): Remove parameter.
9506 (win32_kill): Remove our_status local and adjust call to
9507 handle_output_debug_string.
9508 (get_child_debug_event): Adjust call to
9509 handle_output_debug_string.
9511 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9513 * linux-mips-low.c (mips_fill_gregset): Add cast.
9514 (mips_store_gregset): Likewise.
9515 (mips_fill_fpregset): Likewise.
9516 (mips_store_fpregset): Likewise.
9518 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9520 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9523 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9525 * linux-mips-low.c (mips_linux_new_thread): Change type of
9526 watch_type to enum target_hw_bp_type.
9528 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9530 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9531 Change return type to arm_hwbp_type.
9533 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9535 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9536 (arm_store_gregset): Likewise.
9537 * linux-arm-low.c (arm_get_hwcap): Likewise.
9538 (arm_read_description): Likewise.
9540 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9542 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9544 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9546 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9547 (ppc_fill_vsxregset): Likewise.
9548 (ppc_store_vsxregset): Likewise.
9549 (ppc_fill_vrregset): Likewise.
9550 (ppc_store_vrregset): Likewise.
9551 (ppc_fill_evrregset): Likewise.
9552 (ppc_store_evrregset): Likewise.
9554 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9556 * linux-ppc-low.c (ppc_usrregs_info): Remove
9557 forward-declaration.
9558 (ppc_arch_setup): Move lower in file.
9560 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9562 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9563 (ps_pdwrite): Likewise.
9565 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9567 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9568 to after assert checks.
9570 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9572 * proc-service.c (ps_pdread): Add/adjust casts.
9573 (ps_pdwrite): Add/adjust casts.
9575 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9577 * server.c (handle_search_memory_1): Cast return value of
9580 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9582 * server.c (write_qxfer_response): Change type of data to
9585 2015-10-29 Pedro Alves <palves@redhat.com>
9587 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9589 2015-10-29 Pedro Alves <palves@redhat.com>
9591 * tracepoint.c (clear_installed_tracepoints): Add casts.
9593 2015-10-29 Pedro Alves <palves@redhat.com>
9595 * server.c (handle_v_cont, process_serial_event): Add enum
9596 gdb_signal casts to signal parsing code.
9598 2015-10-29 Pedro Alves <palves@redhat.com>
9600 * linux-low.h (NULL_REGSET): Define.
9601 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9602 * linux-arm-low.c (arm_regsets): Likewise.
9603 * linux-crisv32-low.c (cris_regsets): Likewise.
9604 * linux-m68k-low.c (m68k_regsets): Likewise.
9605 * linux-mips-low.c (mips_regsets): Likewise.
9606 * linux-nios2-low.c (nios2_regsets): Likewise.
9607 * linux-ppc-low.c (ppc_regsets): Likewise.
9608 * linux-s390-low.c (s390_regsets): Likewise.
9609 * linux-sh-low.c (sh_regsets): Likewise.
9610 * linux-sparc-low.c (sparc_regsets): Likewise.
9611 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9612 * linux-tile-low.c (tile_regsets): Likewise.
9613 * linux-x86-low.c (x86_regsets): Likewise.
9614 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9616 2015-10-29 Pedro Alves <palves@redhat.com>
9618 * linux-low.h (NULL_REGSET): Define.
9619 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9620 * linux-arm-low.c (arm_regsets): Likewise.
9621 * linux-crisv32-low.c (cris_regsets): Likewise.
9622 * linux-m68k-low.c (m68k_regsets): Likewise.
9623 * linux-mips-low.c (mips_regsets): Likewise.
9624 * linux-nios2-low.c (nios2_regsets): Likewise.
9625 * linux-ppc-low.c (ppc_regsets): Likewise.
9626 * linux-s390-low.c (s390_regsets): Likewise.
9627 * linux-sh-low.c (sh_regsets): Likewise.
9628 * linux-sparc-low.c (sparc_regsets): Likewise.
9629 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9630 * linux-tile-low.c (tile_regsets): Likewise.
9631 * linux-x86-low.c (x86_regsets): Likewise.
9632 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9634 2015-10-26 Doug Evans <dje@google.com>
9636 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9638 2015-10-26 Doug Evans <dje@google.com>
9640 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9642 2015-10-26 Doug Evans <dje@google.com>
9644 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9646 (attach_thread, find_new_threads_callback): Ditto.
9648 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9650 * mem-break.h (set_breakpoint_data): Remove.
9652 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9654 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9655 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9656 (initialize_low): Remove set_breakpoint_data call.
9657 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9658 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9659 (initialize_low): Remove set_breakpoint_data call.
9660 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9661 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9662 (initialize_low): Remove set_breakpoint_data call.
9664 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9666 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9667 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9668 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9669 * target.h (target_breakpoint_kind_from_pc): New macro.
9671 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9673 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9674 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9675 the default breakpoint kind.
9677 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9679 * linux-arm-low.c (arm_supports_z_point_type): Add software
9682 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9684 * linux-arm-low.c: Refactor breakpoint definitions.
9685 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9686 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9688 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9690 * Makefile.in: Add arm.c/o.
9691 * configure.srv: Likewise.
9692 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9693 (arm_breakpoint_kind_from_pc): New function.
9694 (arm_sw_breakpoint_from_kind): Return proper kind.
9695 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9697 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9701 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9702 (struct raw_breakpoint) <size>: Remove.
9703 (struct raw_breakpoint) <kind>: Add.
9704 (bp_size): New function.
9705 (bp_opcode): Likewise.
9706 (find_raw_breakpoint_at): Adjust for kind.
9707 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9708 (remove_memory_breakpoint): Adjust for kind call bp_size.
9709 (set_raw_breakpoint_at): Adjust for kind.
9710 (set_breakpoint): Likewise.
9711 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9712 (delete_raw_breakpoint): Adjust for kind.
9713 (delete_breakpoint): Likewise.
9714 (find_gdb_breakpoint): Likewise.
9715 (set_gdb_breakpoint_1): Likewise.
9716 (set_gdb_breakpoint): Likewise.
9717 (delete_gdb_breakpoint_1): Likewise.
9718 (delete_gdb_breakpoint): Likewise.
9719 (uninsert_raw_breakpoint): Likewise.
9720 (reinsert_raw_breakpoint): Likewise.
9721 (set_breakpoint_data): Remove.
9722 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9723 (check_mem_read): Adjust for kind call bp_size.
9724 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9725 (clone_one_breakpoint): Adjust for kind.
9726 * mem-break.h (set_gdb_breakpoint): Likewise.
9727 (delete_gdb_breakpoint): Likewise.
9728 * server.c (process_serial_event): Likewise.
9730 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9733 (struct linux_target_ops) <breakpoint>: Remove.
9734 (struct linux_target_ops) <breakpoint_len>: Remove.
9735 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9736 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9738 (arm_sw_breakpoint_from_kind): New function.
9739 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9740 (struct linux_target_ops) <breakpoint>: Remove.
9741 (struct linux_target_ops) <breakpoint_len>: Remove.
9742 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9743 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9744 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9745 (struct linux_target_ops) <breakpoint>: Remove.
9746 (struct linux_target_ops) <breakpoint_len>: Remove.
9747 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9748 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9749 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9750 (struct linux_target_ops) <breakpoint>: Remove.
9751 (struct linux_target_ops) <breakpoint_len>: Remove.
9752 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9753 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9754 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9755 and sw_breakpoint_from_kind to increment the pc.
9756 (linux_breakpoint_kind_from_pc): New function.
9757 (linux_sw_breakpoint_from_kind): New function.
9758 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9759 (initialize_low): Call breakpoint_kind_from_pc and
9760 sw_breakpoint_from_kind to replace breakpoint_data/len.
9761 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9763 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9764 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9765 (struct linux_target_ops) <breakpoint>: Remove.
9766 (struct linux_target_ops) <breakpoint_len>: Remove.
9767 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9768 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9769 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9770 (struct linux_target_ops) <breakpoint>: Remove.
9771 (struct linux_target_ops) <breakpoint_len>: Remove.
9772 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9773 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9774 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9775 (struct linux_target_ops) <breakpoint>: Remove.
9776 (struct linux_target_ops) <breakpoint_len>: Remove.
9777 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9778 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9779 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9780 (struct linux_target_ops) <breakpoint>: Remove.
9781 (struct linux_target_ops) <breakpoint_len>: Remove.
9782 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9783 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9784 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9785 (struct linux_target_ops) <breakpoint>: Remove.
9786 (struct linux_target_ops) <breakpoint_len>: Remove.
9787 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9788 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9789 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9790 (struct linux_target_ops) <breakpoint>: Remove.
9791 (struct linux_target_ops) <breakpoint_len>: Remove.
9792 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9793 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9794 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9795 (struct linux_target_ops) <breakpoint>: Remove.
9796 (struct linux_target_ops) <breakpoint_len>: Remove.
9797 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9798 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9799 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9800 (struct linux_target_ops) <breakpoint>: Remove.
9801 (struct linux_target_ops) <breakpoint_len>: Remove.
9802 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9803 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9804 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9805 (struct linux_target_ops) <breakpoint>: Remove.
9806 (struct linux_target_ops) <breakpoint_len>: Remove.
9807 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9808 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9809 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9810 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9811 (struct linux_target_ops) <breakpoint>: Remove.
9812 (struct linux_target_ops) <breakpoint_len>: Remove.
9813 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9814 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9815 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9816 (struct linux_target_ops) <breakpoint>: Remove.
9817 (struct linux_target_ops) <breakpoint_len>: Remove.
9818 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9819 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9821 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9823 * linux-cris-low.c (cris_get_pc): Remove void arg.
9825 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9827 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9830 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9832 * inferiors.c (thread_pid_matches_callback): New function.
9833 (find_thread_process): New function.
9834 (remove_thread): Reset current_thread.
9835 (remove_process): Assert threads have been removed first.
9837 2015-10-15 Yao Qi <yao.qi@linaro.org>
9839 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9841 (aarch64_remove_point): Likewise.
9842 * regcache.c (regcache_register_size): New function.
9844 2015-10-12 Yao Qi <yao.qi@linaro.org>
9846 * linux-aarch64-low.c: Update all callers as emit_load_store
9847 is renamed to aarch64_emit_load_store.
9849 2015-10-12 Yao Qi <yao.qi@linaro.org>
9851 * linux-aarch64-low.c: Update all callers of function renaming
9852 from emit_insn to aarch64_emit_insn.
9854 2015-10-12 Yao Qi <yao.qi@linaro.org>
9856 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9857 arch/aarch64-insn.h.
9858 (struct aarch64_memory_operand): Likewise.
9860 (emit_insn): Move to arch/aarch64-insn.c.
9861 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9862 (emit_load_store): Move to arch/aarch64-insn.c.
9863 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9864 (can_encode_int32): Remove.
9866 2015-10-12 Yao Qi <yao.qi@linaro.org>
9868 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9869 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9870 (aarch64_relocate_instruction): Likewise.
9871 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9872 (struct aarch64_insn_visitor): Likewise.
9874 2015-10-12 Yao Qi <yao.qi@linaro.org>
9876 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9877 (struct aarch64_insn_visitor): New.
9878 (struct aarch64_insn_relocation_data): New.
9879 (aarch64_ftrace_insn_reloc_b): New function.
9880 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9881 (aarch64_ftrace_insn_reloc_cb): Likewise.
9882 (aarch64_ftrace_insn_reloc_tb): Likewise.
9883 (aarch64_ftrace_insn_reloc_adr): Likewise.
9884 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9885 (aarch64_ftrace_insn_reloc_others): Likewise.
9887 (aarch64_relocate_instruction): Use visitor.
9889 2015-10-12 Yao Qi <yao.qi@linaro.org>
9891 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9892 int. Add argument buf.
9893 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9894 aarch64_relocate_instruction.
9896 2015-10-12 Yao Qi <yao.qi@linaro.org>
9898 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9899 argument insn. Remove local variable insn. Don't call
9901 (aarch64_install_fast_tracepoint_jump_pad): Call
9904 2015-09-30 Yao Qi <yao.qi@linaro.org>
9906 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9907 (emit_load_store_pair): Likewise.
9909 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9911 * dll.c (match_dll): Add cast(s).
9912 (unloaded_dll): Likewise.
9913 * linux-low.c (second_thread_of_pid_p): Likewise.
9914 (delete_lwp_callback): Likewise.
9915 (count_events_callback): Likewise.
9916 (select_event_lwp_callback): Likewise.
9917 (linux_set_resume_request): Likewise.
9918 * server.c (accumulate_file_name_length): Likewise.
9919 (emit_dll_description): Likewise.
9920 (handle_qxfer_threads_worker): Likewise.
9921 (visit_actioned_threads): Likewise.
9922 * thread-db.c (any_thread_of): Likewise.
9923 * tracepoint.c (same_process_p): Likewise.
9924 (match_blocktype): Likewise.
9925 (build_traceframe_info_xml): Likewise.
9927 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9929 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9931 (gdb_unparse_agent_expr): Likewise.
9932 * hostio.c (require_data): Likewise.
9933 (handle_pread): Likewise.
9934 * linux-low.c (disable_regset): Likewise.
9935 (fetch_register): Likewise.
9936 (store_register): Likewise.
9937 (get_dynamic): Likewise.
9938 (linux_qxfer_libraries_svr4): Likewise.
9939 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9940 (set_fast_tracepoint_jump): Likewise.
9941 (uninsert_fast_tracepoint_jumps_at): Likewise.
9942 (reinsert_fast_tracepoint_jumps_at): Likewise.
9943 (validate_inserted_breakpoint): Likewise.
9944 (clone_agent_expr): Likewise.
9945 * regcache.c (init_register_cache): Likewise.
9946 * remote-utils.c (putpkt_binary_1): Likewise.
9947 (decode_M_packet): Likewise.
9948 (decode_X_packet): Likewise.
9949 (look_up_one_symbol): Likewise.
9950 (relocate_instruction): Likewise.
9951 (monitor_output): Likewise.
9952 * server.c (handle_search_memory): Likewise.
9953 (handle_qxfer_exec_file): Likewise.
9954 (handle_qxfer_libraries): Likewise.
9955 (handle_qxfer): Likewise.
9956 (handle_query): Likewise.
9957 (handle_v_cont): Likewise.
9958 (handle_v_run): Likewise.
9959 (captured_main): Likewise.
9960 * target.c (write_inferior_memory): Likewise.
9961 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9962 * tracepoint.c (init_trace_buffer): Likewise.
9963 (add_tracepoint_action): Likewise.
9964 (add_traceframe): Likewise.
9965 (add_traceframe_block): Likewise.
9966 (cmd_qtdpsrc): Likewise.
9967 (cmd_qtdv): Likewise.
9968 (cmd_qtstatus): Likewise.
9969 (response_source): Likewise.
9970 (response_tsv): Likewise.
9971 (cmd_qtnotes): Likewise.
9972 (gdb_collect): Likewise.
9973 (initialize_tracepoint): Likewise.
9975 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9977 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9978 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9979 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9981 (enum aarch64_condition_codes): New enum.
9982 (w0): New static global.
9985 (struct aarch64_memory_operand) <type>: New
9986 MEMORY_OPERAND_POSTINDEX type.
9987 (postindex_memory_operand): New helper function.
9988 (emit_ret): New function.
9989 (emit_load_store_pair): New function, factored out of emit_stp
9990 with support for MEMORY_OPERAND_POSTINDEX.
9991 (emit_stp): Rewrite using emit_load_store_pair.
9992 (emit_ldp): New function.
9993 (emit_load_store): Likewise.
9994 (emit_ldr): Mention post-index instruction in comment.
9995 (emit_ldrh): New function.
9996 (emit_ldrb): New function.
9997 (emit_ldrsw): Mention post-index instruction in comment.
9998 (emit_str): Likewise.
9999 (emit_subs): New function.
10000 (emit_cmp): Likewise.
10001 (emit_and): Likewise.
10002 (emit_orr): Likewise.
10003 (emit_orn): Likewise.
10004 (emit_eor): Likewise.
10005 (emit_mvn): Likewise.
10006 (emit_lslv): Likewise.
10007 (emit_lsrv): Likewise.
10008 (emit_asrv): Likewise.
10009 (emit_mul): Likewise.
10010 (emit_sbfm): Likewise.
10011 (emit_sbfx): Likewise.
10012 (emit_ubfm): Likewise.
10013 (emit_ubfx): Likewise.
10014 (emit_csinc): Likewise.
10015 (emit_cset): Likewise.
10016 (emit_nop): Likewise.
10017 (emit_ops_insns): New helper function.
10018 (emit_pop): Likewise.
10019 (emit_push): Likewise.
10020 (aarch64_emit_prologue): New function.
10021 (aarch64_emit_epilogue): Likewise.
10022 (aarch64_emit_add): Likewise.
10023 (aarch64_emit_sub): Likewise.
10024 (aarch64_emit_mul): Likewise.
10025 (aarch64_emit_lsh): Likewise.
10026 (aarch64_emit_rsh_signed): Likewise.
10027 (aarch64_emit_rsh_unsigned): Likewise.
10028 (aarch64_emit_ext): Likewise.
10029 (aarch64_emit_log_not): Likewise.
10030 (aarch64_emit_bit_and): Likewise.
10031 (aarch64_emit_bit_or): Likewise.
10032 (aarch64_emit_bit_xor): Likewise.
10033 (aarch64_emit_bit_not): Likewise.
10034 (aarch64_emit_equal): Likewise.
10035 (aarch64_emit_less_signed): Likewise.
10036 (aarch64_emit_less_unsigned): Likewise.
10037 (aarch64_emit_ref): Likewise.
10038 (aarch64_emit_if_goto): Likewise.
10039 (aarch64_emit_goto): Likewise.
10040 (aarch64_write_goto_address): Likewise.
10041 (aarch64_emit_const): Likewise.
10042 (aarch64_emit_call): Likewise.
10043 (aarch64_emit_reg): Likewise.
10044 (aarch64_emit_pop): Likewise.
10045 (aarch64_emit_stack_flush): Likewise.
10046 (aarch64_emit_zero_ext): Likewise.
10047 (aarch64_emit_swap): Likewise.
10048 (aarch64_emit_stack_adjust): Likewise.
10049 (aarch64_emit_int_call_1): Likewise.
10050 (aarch64_emit_void_call_2): Likewise.
10051 (aarch64_emit_eq_goto): Likewise.
10052 (aarch64_emit_ne_goto): Likewise.
10053 (aarch64_emit_lt_goto): Likewise.
10054 (aarch64_emit_le_goto): Likewise.
10055 (aarch64_emit_gt_goto): Likewise.
10056 (aarch64_emit_ge_got): Likewise.
10057 (aarch64_emit_ops_impl): New static global variable.
10058 (aarch64_emit_ops): New target function, return
10059 &aarch64_emit_ops_impl.
10060 (struct linux_target_ops): Install it.
10062 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10064 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10065 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10067 * linux-aarch64-ipa.c: New file.
10068 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10070 (aarch64_get_thread_area): New target method.
10071 (extract_signed_bitfield): New helper function.
10072 (aarch64_decode_ldr_literal): New function.
10073 (enum aarch64_opcodes): New enum.
10074 (struct aarch64_register): New struct.
10075 (struct aarch64_operand): New struct.
10076 (x0): New static global.
10085 (aarch64_register): New helper function.
10086 (register_operand): Likewise.
10087 (immediate_operand): Likewise.
10088 (struct aarch64_memory_operand): New struct.
10089 (offset_memory_operand): New helper function.
10090 (preindex_memory_operand): Likewise.
10091 (enum aarch64_system_control_registers): New enum.
10092 (ENCODE): New macro.
10093 (emit_insn): New helper function.
10094 (emit_b): New function.
10095 (emit_bcond): Likewise.
10096 (emit_cb): Likewise.
10097 (emit_tb): Likewise.
10098 (emit_blr): Likewise.
10099 (emit_stp): Likewise.
10100 (emit_ldp_q_offset): Likewise.
10101 (emit_stp_q_offset): Likewise.
10102 (emit_load_store): Likewise.
10103 (emit_ldr): Likewise.
10104 (emit_ldrsw): Likewise.
10105 (emit_str): Likewise.
10106 (emit_ldaxr): Likewise.
10107 (emit_stxr): Likewise.
10108 (emit_stlr): Likewise.
10109 (emit_data_processing_reg): Likewise.
10110 (emit_data_processing): Likewise.
10111 (emit_add): Likewise.
10112 (emit_sub): Likewise.
10113 (emit_mov): Likewise.
10114 (emit_movk): Likewise.
10115 (emit_mov_addr): Likewise.
10116 (emit_mrs): Likewise.
10117 (emit_msr): Likewise.
10118 (emit_sevl): Likewise.
10119 (emit_wfe): Likewise.
10120 (append_insns): Likewise.
10121 (can_encode_int32_in): New helper function.
10122 (aarch64_relocate_instruction): New function.
10123 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10124 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10125 (struct linux_target_ops): Install aarch64_get_thread_area,
10126 aarch64_install_fast_tracepoint_jump_pad and
10127 aarch64_get_min_fast_tracepoint_insn_len.
10129 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10131 * Makefile.in (aarch64-insn.o): New rule.
10132 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10134 2015-09-21 Yao Qi <yao.qi@linaro.org>
10136 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10138 2015-09-21 Yao Qi <yao.qi@linaro.org>
10140 * tracepoint.c (max_jump_pad_size): Remove.
10142 2015-09-18 Yao Qi <yao.qi@linaro.org>
10144 * linux-aarch64-low.c: Don't include sys/uio.h.
10145 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10147 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10149 * tracepoint.c (eval_result_type): Change prototype.
10150 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10152 2015-09-15 Pedro Alves <palves@redhat.com>
10154 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10155 Check whether to report exec events instead of checking whether
10156 multiprocess is enabled.
10158 2015-09-15 Pedro Alves <palves@redhat.com>
10161 * remote-utils.c (prepare_resume_reply): Merge
10162 TARGET_WAITKIND_VFORK_DONE switch case with the
10163 TARGET_WAITKIND_FORKED case.
10165 2015-09-15 Yao Qi <yao.qi@linaro.org>
10167 * server.c (handle_query): Check string comparison using
10168 "else if" instead of "if".
10170 2015-09-15 Yao Qi <yao.qi@linaro.org>
10172 * server.c (vCont_supported): New global variable.
10173 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10174 matches. Append ";vContSupported+" to own_buf.
10175 (handle_v_requests): Append ";s;S" to own_buf if target supports
10176 hardware single step or vCont_supported is false.
10177 (capture_main): Set vCont_supported to zero.
10179 2015-09-15 Yao Qi <yao.qi@linaro.org>
10181 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10183 (linux_supports_hardware_single_step): ... New function.
10184 (linux_target_ops): Update.
10185 * lynx-low.c (lynx_target_ops): Set field
10186 supports_hardware_single_step to target_can_do_hardware_single_step.
10187 * nto-low.c (nto_target_ops): Likewise.
10188 * spu-low.c (spu_target_ops): Likewise.
10189 * win32-low.c (win32_target_ops): Likewise.
10190 * target.c (target_can_do_hardware_single_step): New function.
10191 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10192 Remove. <supports_hardware_single_step>: New field.
10193 (target_supports_conditional_breakpoints): Remove.
10194 (target_supports_hardware_single_step): New macro.
10195 (target_can_do_hardware_single_step): Declare.
10196 * server.c (handle_query): Use target_supports_hardware_single_step
10197 instead of target_supports_conditional_breakpoints.
10199 2015-09-15 Yao Qi <yao.qi@linaro.org>
10201 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10203 (struct linux_target_ops the_low_target): Install
10204 aarch64_linux_siginfo_fixup.
10206 2015-09-11 Don Breazeal <donb@codesourcery.com>
10207 Luis Machado <lgustavo@codesourcery.com>
10209 * linux-low.c (linux_mourn): Static declaration.
10210 (linux_arch_setup): Move in front of
10211 handle_extended_wait.
10212 (linux_arch_setup_thread): New function.
10213 (handle_extended_wait): Handle exec events. Call
10214 linux_arch_setup_thread. Make event_lwp argument a
10215 pointer-to-a-pointer.
10216 (check_zombie_leaders): Do not check stopped threads.
10217 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10218 (linux_low_filter_event): Add lwp and thread for exec'ing
10219 non-leader thread if leader thread has been deleted.
10220 Refactor code into linux_arch_setup_thread and call it.
10221 Pass child lwp pointer by reference to handle_extended_wait.
10222 (linux_wait_for_event_filtered): Update comment.
10223 (linux_wait_1): Prevent clobbering exec event status.
10224 (linux_supports_exec_events): New function.
10225 (linux_target_ops) <supports_exec_events>: Initialize new member.
10226 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10228 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10229 * server.c (report_exec_events): New global variable.
10230 (handle_query): Handle qSupported query for exec-events feature.
10231 (captured_main): Initialize report_exec_events.
10232 * server.h (report_exec_events): Declare new global variable.
10233 * target.h (struct target_ops) <supports_exec_events>: New
10235 (target_supports_exec_events): New macro.
10236 * win32-low.c (win32_target_ops) <supports_exec_events>:
10237 Initialize new member.
10239 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10241 * linux-low.c (linux_low_enable_btrace): Remove.
10242 (linux_target_ops): Replace linux_low_enable_btrace with
10243 linux_enable_btrace.
10245 2015-09-03 Yao Qi <yao.qi@linaro.org>
10247 * linux-aarch64-low.c (aarch64_insert_point): Call
10248 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10251 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10253 * linux-low.c (check_stopped_by_breakpoint): Use
10254 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10256 2015-08-27 Pedro Alves <palves@redhat.com>
10258 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10260 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10262 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10263 the XNEW-family equivalent.
10264 (compile_bytecodes): Likewise.
10265 * dll.c (loaded_dll): Likewise.
10266 * event-loop.c (append_callback_event): Likewise.
10267 (create_file_handler): Likewise.
10268 (create_file_event): Likewise.
10269 * hostio.c (handle_open): Likewise.
10270 * inferiors.c (add_thread): Likewise.
10271 (add_process): Likewise.
10272 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10273 * linux-arm-low.c (arm_new_process): Likewise.
10274 (arm_new_thread): Likewise.
10275 * linux-low.c (add_to_pid_list): Likewise.
10276 (linux_add_process): Likewise.
10277 (handle_extended_wait): Likewise.
10278 (add_lwp): Likewise.
10279 (enqueue_one_deferred_signal): Likewise.
10280 (enqueue_pending_signal): Likewise.
10281 (linux_resume_one_lwp_throw): Likewise.
10282 (linux_resume_one_thread): Likewise.
10283 (linux_read_memory): Likewise.
10284 (linux_write_memory): Likewise.
10285 * linux-mips-low.c (mips_linux_new_process): Likewise.
10286 (mips_linux_new_thread): Likewise.
10287 (mips_add_watchpoint): Likewise.
10288 * linux-x86-low.c (initialize_low_arch): Likewise.
10289 * lynx-low.c (lynx_add_process): Likewise.
10290 * mem-break.c (set_raw_breakpoint_at): Likewise.
10291 (set_breakpoint): Likewise.
10292 (add_condition_to_breakpoint): Likewise.
10293 (add_commands_to_breakpoint): Likewise.
10294 (clone_agent_expr): Likewise.
10295 (clone_one_breakpoint): Likewise.
10296 * regcache.c (new_register_cache): Likewise.
10297 * remote-utils.c (look_up_one_symbol): Likewise.
10298 * server.c (queue_stop_reply): Likewise.
10299 (start_inferior): Likewise.
10300 (queue_stop_reply_callback): Likewise.
10301 (handle_target_event): Likewise.
10302 * spu-low.c (fetch_ppc_memory): Likewise.
10303 (store_ppc_memory): Likewise.
10304 * target.c (set_target_ops): Likewise.
10305 * thread-db.c (thread_db_load_search): Likewise.
10306 (try_thread_db_load_1): Likewise.
10307 * tracepoint.c (add_tracepoint): Likewise.
10308 (add_tracepoint_action): Likewise.
10309 (create_trace_state_variable): Likewise.
10310 (cmd_qtdpsrc): Likewise.
10311 (cmd_qtro): Likewise.
10312 (add_while_stepping_state): Likewise.
10313 * win32-low.c (child_add_thread): Likewise.
10314 (get_image_name): Likewise.
10316 2015-08-25 Yao Qi <yao.qi@linaro.org>
10318 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10320 2015-08-25 Yao Qi <yao.qi@linaro.org>
10322 * Makefile.in (aarch64-linux.o): New rule.
10323 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10325 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10326 (aarch64_init_debug_reg_state): Make it extern.
10327 (aarch64_linux_prepare_to_resume): Remove.
10329 2015-08-25 Yao Qi <yao.qi@linaro.org>
10331 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10332 lwp_arch_private_info and ptid_of_lwp.
10334 2015-08-25 Yao Qi <yao.qi@linaro.org>
10336 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10337 Find proc_info by find_process_pid. All callers updated.
10339 2015-08-25 Yao Qi <yao.qi@linaro.org>
10341 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10343 (debug_reg_change_callback): Remove.
10344 (aarch64_notify_debug_reg_change): Remove.
10346 2015-08-25 Yao Qi <yao.qi@linaro.org>
10348 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10349 Call current_lwp_ptid.
10351 2015-08-25 Yao Qi <yao.qi@linaro.org>
10353 * linux-aarch64-low.c (debug_reg_change_callback): Use
10356 2015-08-25 Yao Qi <yao.qi@linaro.org>
10358 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10360 2015-08-25 Yao Qi <yao.qi@linaro.org>
10362 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10364 2015-08-25 Yao Qi <yao.qi@linaro.org>
10366 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10369 2015-08-25 Yao Qi <yao.qi@linaro.org>
10371 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10373 (debug_reg_change_callback): Remove argument entry and add argument
10374 lwp. Remove local variable thread. Don't print thread id in the
10375 debugging output. Don't check whether pid of thread equals to pid.
10376 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10377 iterate_over_lwps instead find_inferior.
10379 2015-08-24 Pedro Alves <palves@redhat.com>
10381 * inferiors.c (get_first_process): New function.
10382 * inferiors.h (get_first_process): New declaration.
10383 * remote-utils.c (read_ptid): Default to the first process in the
10384 list, instead of to the current thread's process.
10386 2015-08-24 Pedro Alves <palves@redhat.com>
10388 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10389 * event-loop.c: Likewise.
10390 * remote-utils.c: Likewise.
10391 * tracepoint.c: Likewise.
10393 2015-08-24 Pedro Alves <palves@redhat.com>
10395 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10398 2015-08-21 Pedro Alves <palves@redhat.com>
10400 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10401 instead of literal 1.
10403 2015-08-21 Pedro Alves <palves@redhat.com>
10405 * tdesc.c (default_description): Explicitly zero-initialize.
10407 2015-08-21 Pedro Alves <palves@redhat.com>
10410 * inferiors.c (remove_thread): Discard any pending stop reply for
10412 * server.c (remove_all_on_match_pid): Rename to ...
10413 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10415 (discard_queued_stop_replies): Change parameter to a ptid. Now
10417 (handle_v_kill, kill_inferior_callback, captured_main)
10418 (process_serial_event): Adjust.
10419 * server.h (discard_queued_stop_replies): Declare.
10421 2015-08-21 Pedro Alves <palves@redhat.com>
10423 * linux-low.c (wait_for_sigstop): Always switch to no thread
10424 selected if the previously current thread dies.
10425 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10426 process instead of the current thread's.
10427 * remote-utils.c (input_interrupt): Don't check if there's no
10429 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10430 current thread to the general thread fails, error out.
10431 (handle_qxfer_auxv, handle_qxfer_libraries)
10432 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10433 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10434 (handle_query): Check if there's a thread selected instead of
10435 checking whether there's any thread in the thread list.
10436 (handle_qxfer_threads, handle_qxfer_btrace)
10437 (handle_qxfer_btrace_conf): Don't error out early if there's no
10438 thread in the thread list.
10439 (handle_v_cont, myresume): Don't set the current thread to the
10441 (process_serial_event) <Hg handling>: Also set thread_id if the
10442 previous general thread is still alive.
10443 (process_serial_event) <g/G handling>: If setting the current
10444 thread to the general thread fails, error out.
10445 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10446 thread's lwp instead of the current thread's.
10447 * target.c (set_desired_thread): If the desired thread was not
10448 found, leave the current thread pointing to NULL. Return an int
10449 (boolean) indicating success.
10450 * target.h (set_desired_thread): Change return type to int.
10452 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10454 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10455 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10457 (ps_get_thread_area): New function.
10459 2015-08-19 Gary Benson <gbenson@redhat.com>
10461 * hostio.c (handle_pread): Do not attempt to read more data
10462 than hostio_reply_with_data can fit in a packet.
10464 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10466 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10468 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10470 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10472 2015-08-06 Pedro Alves <palves@redhat.com>
10474 * tracepoint.c (expr_eval_result): Now an int.
10476 2015-08-06 Pedro Alves <palves@redhat.com>
10478 * gdbthread.h (struct regcache): Forward declare.
10479 (struct thread_info) <regcache_data>: Now a struct regcache
10481 * inferiors.c (inferior_regcache_data)
10482 (set_inferior_regcache_data): Now work with struct regcache
10484 * inferiors.h (struct regcache): Forward declare.
10485 (inferior_regcache_data, set_inferior_regcache_data): Now work
10486 with struct regcache pointers.
10487 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10488 (free_register_cache_thread): Remove struct regcache pointer
10491 2015-08-06 Pedro Alves <palves@redhat.com>
10493 * server.c (captured_main): On error, print the exception message
10494 to stderr, and if run_once is set, throw a quit.
10496 2015-08-06 Pedro Alves <palves@redhat.com>
10498 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10499 the current thread.
10501 2015-08-06 Pedro Alves <palves@redhat.com>
10503 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10504 reading beyond the passed in buffer length.
10506 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10508 * tracepoint.c (symbol_list) <required>: Remove.
10510 2015-08-06 Pedro Alves <palves@redhat.com>
10512 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10513 count if stopping and suspending threads.
10514 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10515 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10516 (linux_detach): Complete an ongoing step-over.
10517 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10519 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10520 (linux_wait_1): If passing a signal to the inferior after
10521 finishing a step-over, unsuspend and re-resume all lwps. If we
10522 see a single-step event but the thread should be continuing, don't
10523 pass the trap to gdb.
10524 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10525 internal_error instead of gdb_assert.
10526 (enqueue_pending_signal): New function.
10527 (check_ptrace_stopped_lwp_gone): Add debug output.
10528 (start_step_over): Use internal_error instead of gdb_assert.
10529 (complete_ongoing_step_over): New function.
10530 (linux_resume_one_thread): Don't resume a suspended thread.
10531 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10534 2015-08-06 Pedro Alves <palves@redhat.com>
10536 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10537 (linux_thread_alive): Use lwp_is_marked_dead.
10538 (extended_event_reported): Delete.
10539 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10540 instead of extended_event_reported.
10541 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10543 (lwp_is_marked_dead): New function.
10544 (lwp_running): Use lwp_is_marked_dead.
10545 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10548 2015-08-06 Pedro Alves <palves@redhat.com>
10550 * linux-low.c (linux_wait_1): Move fork event output out of the
10551 !report_to_gdb check. Pass event_child->waitstatus to
10552 target_waitstatus_to_string instead of ourstatus.
10554 2015-08-04 Yao Qi <yao.qi@linaro.org>
10556 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10557 if current_thread is 32 bit.
10559 2015-08-04 Yao Qi <yao.qi@linaro.org>
10561 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10562 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10563 * server.c (extended_protocol): Remove "static".
10564 * server.h (extended_protocol): Declare it.
10566 2015-08-04 Yao Qi <yao.qi@linaro.org>
10568 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10569 both aarch64 and aarch32.
10570 (aarch64_set_pc): Likewise.
10572 2015-08-04 Yao Qi <yao.qi@linaro.org>
10574 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10575 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10576 arm-with-neon.xml to srv_xmlfiles.
10577 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10578 (is_64bit_tdesc): New function.
10579 (aarch64_linux_read_description): New function.
10580 (aarch64_arch_setup): Call aarch64_linux_read_description.
10581 (regs_info): Rename to regs_info_aarch64.
10582 (aarch64_regs_info): Return right regs_info.
10583 (initialize_low_arch): Call initialize_low_arch_aarch32.
10585 2015-08-04 Yao Qi <yao.qi@linaro.org>
10587 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10588 * linux-aarch32-low.c: New file.
10589 * linux-aarch32-low.h: New file.
10590 * linux-arm-low.c (arm_fill_gregset): Move it to
10591 linux-aarch32-low.c.
10592 (arm_store_gregset): Likewise.
10593 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10594 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10595 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10596 (regs_info): Rename to regs_info_arm.
10597 (arm_regs_info): Return regs_info_aarch32 if
10598 have_ptrace_getregset is 1 and target description is
10599 arm_with_neon or arm_with_vfpv3.
10600 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10601 Call initialize_low_arch_aarch32 instead.
10603 2015-08-04 Yao Qi <yao.qi@linaro.org>
10605 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10606 * linux-low.c: ... here.
10607 * linux-low.h (have_ptrace_getregset): Declare it.
10609 2015-08-04 Pedro Alves <palves@redhat.com>
10611 * thread-db.c (struct thread_db): Use new typedefs.
10612 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10614 (disable_thread_event_reporting): Cast result of dlsym to
10615 destination function pointer type.
10616 (thread_db_mourn): Use td_ta_delete_ftype.
10618 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10620 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10622 (CDX_BREAKPOINT): Define for R2.
10623 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10624 (the_low_target): Add comments.
10626 2015-07-30 Yao Qi <yao.qi@linaro.org>
10628 * linux-arm-low.c (arm_hwcap): Remove it.
10629 (arm_read_description): New local variable arm_hwcap. Don't
10630 set arm_hwcap to zero.
10632 2015-07-30 Yao Qi <yao.qi@linaro.org>
10634 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10635 Use regcache->tdesc instead.
10636 (arm_store_wmmxregset): Likewise.
10637 (arm_fill_vfpregset): Likewise.
10638 (arm_store_vfpregset): Likewise.
10640 2015-07-30 Yao Qi <yao.qi@linaro.org>
10642 * linux-arm-low.c: Include arch/arm.h.
10643 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10644 (arm_store_gregset): Likewise.
10646 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10648 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10649 ptrace's 4th parameter.
10651 2015-07-27 Yao Qi <yao.qi@linaro.org>
10653 * configure.srv (case aarch64*-*-linux*): Don't set
10656 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10658 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10660 * linux-arm-low.c: Likewise.
10661 * linux-cris-low.c: Likewise.
10662 * linux-crisv32-low.c: Likewise.
10663 * linux-low.c: Likewise.
10664 * linux-m68k-low.c: Likewise.
10665 * linux-mips-low.c: Likewise.
10666 * linux-nios2-low.c: Likewise.
10667 * linux-s390-low.c: Likewise.
10668 * linux-sparc-low.c: Likewise.
10669 * linux-tic6x-low.c: Likewise.
10670 * linux-tile-low.c: Likewise.
10671 * linux-x86-low.c: Likewise.
10673 2015-07-24 Pedro Alves <palves@redhat.com>
10675 * config.in: Regenerate.
10676 * configure: Regenerate.
10678 2015-07-24 Pedro Alves <palves@redhat.com>
10680 * acinclude.m4: Include ../ptrace.m4.
10681 * configure.ac: Call GDB_AC_PTRACE.
10682 * config.in, configure: Regenerate.
10684 2015-07-24 Yao Qi <yao.qi@linaro.org>
10686 * linux-low.c (linux_create_inferior): Remove setting to
10687 proc->priv->new_inferior.
10688 (linux_attach): Likewise.
10689 (linux_low_filter_event): Likewise.
10690 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10692 2015-07-24 Yao Qi <yao.qi@linaro.org>
10694 * linux-low.c (linux_arch_setup): New function.
10695 (linux_low_filter_event): If proc->tdesc is NULL and
10696 proc->attached is true, call the_low_target.arch_setup.
10697 Otherwise, keep status pending, and return.
10698 (linux_resume_one_lwp_throw): Don't call get_pc if
10699 thread->while_stepping isn't NULL. Don't call
10700 get_thread_regcache if proc->tdesc is NULL.
10701 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10702 (linux_target_ops): Install arch_setup.
10703 * server.c (start_inferior): Call the_target->arch_setup.
10704 * target.h (struct target_ops) <arch_setup>: New field.
10705 (target_arch_setup): New marco.
10706 * lynx-low.c (lynx_target_ops): Update.
10707 * nto-low.c (nto_target_ops): Update.
10708 * spu-low.c (spu_target_ops): Update.
10709 * win32-low.c (win32_target_ops): Update.
10711 2015-07-24 Yao Qi <yao.qi@linaro.org>
10713 * linux-low.c (linux_add_process): Don't set
10714 proc->priv->new_inferior.
10715 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10716 (linux_attach): Likewise.
10718 2015-07-24 Yao Qi <yao.qi@linaro.org>
10720 * server.c (start_inferior): Code refactor.
10722 2015-07-24 Yao Qi <yao.qi@linaro.org>
10724 * server.c (process_serial_event): Set general_thread.
10726 2015-07-21 Yao Qi <yao.qi@linaro.org>
10728 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10729 aarch64_linux_get_debug_reg_capacity.
10731 2015-07-17 Yao Qi <yao.qi@linaro.org>
10733 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10734 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10735 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10736 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10737 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10738 (AARCH64_HWP_ALIGNMENT): Likewise.
10739 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10740 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10741 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10742 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10743 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10744 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10745 (struct aarch64_debug_reg_state): Likewise.
10746 (struct arch_lwp_info): Likewise.
10747 (aarch64_align_watchpoint): Likewise.
10748 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10749 (aarch64_watchpoint_length): Likewise.
10750 (aarch64_point_encode_ctrl_reg): Likewise
10751 (aarch64_point_is_aligned): Likewise.
10752 (aarch64_align_watchpoint): Likewise.
10753 (aarch64_linux_set_debug_regs):
10754 (aarch64_dr_state_insert_one_point): Likewise.
10755 (aarch64_dr_state_remove_one_point): Likewise.
10756 (aarch64_handle_breakpoint): Likewise.
10757 (aarch64_handle_aligned_watchpoint): Likewise.
10758 (aarch64_handle_unaligned_watchpoint): Likewise.
10759 (aarch64_handle_watchpoint): Likewise.
10761 2015-07-17 Yao Qi <yao.qi@linaro.org>
10763 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10764 and don't aarch64_get_debug_reg_state. All callers update.
10765 (aarch64_handle_aligned_watchpoint): Likewise.
10766 (aarch64_handle_unaligned_watchpoint): Likewise.
10767 (aarch64_handle_watchpoint): Likewise.
10768 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10769 (aarch64_remove_point): Likewise.
10771 2015-07-17 Yao Qi <yao.qi@linaro.org>
10773 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10775 (aarch64_handle_unaligned_watchpoint): Likewise.
10777 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10779 Revert the previous 3 commits:
10780 Move gdb_regex* to common/
10781 Move linux_find_memory_regions_full & co.
10782 gdbserver build-id attribute generator
10784 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10785 Jan Kratochvil <jan.kratochvil@redhat.com>
10787 gdbserver build-id attribute generator.
10788 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10789 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10790 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10792 (get_dynamic): Use find_pdhr to traverse program headers.
10793 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10794 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10795 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10796 (get_hex_build_id): New.
10797 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10798 to reply XML document.
10800 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10801 Jan Kratochvil <jan.kratochvil@redhat.com>
10803 * target.c: Include target/target-utils.h and fcntl.h.
10804 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10805 (target_fileio_read_stralloc): New functions.
10807 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10809 * Makefile.in (OBS): Add gdb_regex.o.
10810 (gdb_regex.o): New.
10811 * config.in: Rebuilt.
10812 * configure: Rebuilt.
10814 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10815 Jan Kratochvil <jan.kratochvil@redhat.com>
10817 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10818 * Makefile.in (OBS): Add target-utils.o.
10819 (linux-maps.o, target-utils.o): New.
10820 * configure.srv (srv_linux_obj): Add linux-maps.o.
10822 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10824 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10825 function, return 1.
10826 (the_low_target): Install it.
10828 2015-07-14 Pedro Alves <palves@redhat.com>
10830 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10831 Instead, ignore ECHILD, and throw an error for other errnos.
10833 2015-07-10 Pedro Alves <palves@redhat.com>
10835 * event-loop.c (struct callback_event) <data>: Change type to
10836 gdb_client_data instance instead of gdb_client_data pointer.
10837 (append_callback_event): Adjust.
10839 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10841 * linux-aarch64-low.c: Add comments for each linux_target_ops
10842 method. Remove comments already covered in target_ops and
10843 linux_target_ops definitions.
10844 (the_low_target): Add comments for each unimplemented method.
10846 2015-07-09 Yao Qi <yao.qi@linaro.org>
10848 * linux-aarch64-low.c (aarch64_regmap): Remove.
10849 (aarch64_usrregs_info): Remove.
10850 (regs_info): Set field usrregs to NULL.
10852 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10854 * linux-low.c: Include "rsp-low.h"
10855 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10856 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10857 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10858 (handle_btrace_enable_pt): New.
10859 (handle_btrace_general_set): Support "pt".
10860 (handle_btrace_conf_general_set): Support "pt:size".
10862 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10864 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10867 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10869 * linux-aarch64-low.c: Remove comment about endianness.
10870 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10871 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10874 2015-06-24 Gary Benson <gbenson@redhat.com>
10876 * linux-i386-ipa.c (stdint.h): Do not include.
10877 * lynx-i386-low.c (stdint.h): Likewise.
10878 * lynx-ppc-low.c (stdint.h): Likewise.
10879 * mem-break.c (stdint.h): Likewise.
10880 * thread-db.c (stdint.h): Likewise.
10881 * tracepoint.c (stdint.h): Likewise.
10882 * win32-low.c (stdint.h): Likewise.
10884 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10886 * server.c (write_qxfer_response): Update call to
10887 remote_escape_output.
10889 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10890 Jan Kratochvil <jan.kratochvil@redhat.com>
10892 Merge multiple hex conversions.
10893 * gdbreplay.c (tohex): Rename to 'fromhex'.
10894 (logchar): Use fromhex.
10896 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10898 * server.c (handle_qxfer_libraries): Set `version' attribute for
10901 2015-06-10 Gary Benson <gbenson@redhat.com>
10903 * target.h (struct target_ops) <multifs_open>: New field.
10904 <multifs_unlink>: Likewise.
10905 <multifs_readlink>: Likewise.
10906 * linux-low.c (nat/linux-namespaces.h): New include.
10907 (linux_target_ops): Initialize the_target->multifs_open,
10908 the_target->multifs_unlink and the_target->multifs_readlink.
10909 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10910 * hostio.c (hostio_fs_pid): New static variable.
10911 (hostio_handle_new_gdb_connection): New function.
10912 (handle_setfs): Likewise.
10913 (handle_open): Use the_target->multifs_open as appropriate.
10914 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10915 (handle_readlink): Use the_target->multifs_readlink as
10917 (handle_vFile): Handle vFile:setfs packets.
10918 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10919 after target_handle_new_gdb_connection.
10921 2015-06-10 Gary Benson <gbenson@redhat.com>
10923 * configure.ac (AC_CHECK_FUNCS): Add setns.
10924 * config.in: Regenerate.
10925 * configure: Likewise.
10926 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10927 (linux-namespaces.o): New rule.
10928 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10930 2015-06-09 Gary Benson <gbenson@redhat.com>
10932 * hostio.c (handle_open): Process mode argument with
10933 fileio_to_host_mode.
10935 2015-06-01 Yao Qi <yao.qi@linaro.org>
10937 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10938 * linux-x86-low.c: Likewise.
10940 2015-05-28 Don Breazeal <donb@codesourcery.com>
10942 * linux-low.c (handle_extended_wait): Initialize
10943 thread_info.last_resume_kind for new fork children.
10945 2015-05-15 Pedro Alves <palves@redhat.com>
10947 * target.h (target_handle_new_gdb_connection): Rewrite using if
10948 wrapped in do/while.
10950 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10952 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10953 * configure, config.in: Regenerate.
10954 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10957 2015-05-12 Don Breazeal <donb@codesourcery.com>
10959 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10960 PTRACE_EVENT_VFORK_DONE.
10961 (linux_low_ptrace_options, extended_event_reported): Add vfork
10963 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10964 and "vforkdone" for RSP 'T' Stop Reply Packet.
10965 * server.h (report_vfork_events): Declare
10968 2015-05-12 Don Breazeal <donb@codesourcery.com>
10970 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10971 (the_low_target) <new_fork>: Initialize new member.
10972 * linux-arm-low.c (arm_new_fork): New function.
10973 (the_low_target) <new_fork>: Initialize new member.
10974 * linux-low.c (handle_extended_wait): Call new target function
10976 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10977 * linux-mips-low.c (mips_add_watchpoint): New function
10978 extracted from mips_insert_point.
10979 (the_low_target) <new_fork>: Initialize new member.
10980 (mips_linux_new_fork): New function.
10981 (mips_insert_point): Call mips_add_watchpoint.
10982 * linux-x86-low.c (x86_linux_new_fork): New function.
10983 (the_low_target) <new_fork>: Initialize new member.
10985 2015-05-12 Don Breazeal <donb@codesourcery.com>
10987 * linux-low.c (handle_extended_wait): Implement return value,
10988 rename argument 'event_child' to 'event_lwp', handle
10989 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10990 (linux_low_ptrace_options): New function.
10991 (linux_low_filter_event): Call linux_low_ptrace_options,
10992 use different argument fo linux_enable_event_reporting,
10993 use return value from handle_extended_wait.
10994 (extended_event_reported): New function.
10995 (linux_wait_1): Call extended_event_reported and set
10996 status to report fork events.
10997 (linux_write_memory): Add pid to debug message.
10998 (reset_lwp_ptrace_options_callback): New function.
10999 (linux_handle_new_gdb_connection): New function.
11000 (linux_target_ops): Initialize new structure member.
11001 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11002 * lynx-low.c: Initialize new structure member.
11003 * remote-utils.c (prepare_resume_reply): Implement stop reason
11004 "fork" for "T" stop message.
11005 * server.c (handle_query): Call handle_new_gdb_connection.
11006 * server.h (report_fork_events): Declare global flag.
11007 * target.h (struct target_ops) <handle_new_gdb_connection>:
11009 (target_handle_new_gdb_connection): New macro.
11010 * win32-low.c: Initialize new structure member.
11012 2015-05-12 Don Breazeal <donb@codesourcery.com>
11014 * mem-break.c (APPEND_TO_LIST): Define macro.
11015 (clone_agent_expr): New function.
11016 (clone_one_breakpoint): New function.
11017 (clone_all_breakpoints): New function.
11018 * mem-break.h: Declare new functions.
11020 2015-05-12 Don Breazeal <donb@codesourcery.com>
11022 * linux-low.c (linux_supports_fork_events): New function.
11023 (linux_supports_vfork_events): New function.
11024 (linux_target_ops): Initialize new structure members.
11025 (initialize_low): Call linux_check_ptrace_features.
11026 * lynx-low.c (lynx_target_ops): Initialize new structure
11028 * server.c (report_fork_events, report_vfork_events):
11030 (handle_query): Add new features to qSupported packet and
11032 (captured_main): Initialize new global variables.
11033 * target.h (struct target_ops) <supports_fork_events>:
11035 <supports_vfork_events>: New member.
11036 (target_supports_fork_events): New macro.
11037 (target_supports_vfork_events): New macro.
11038 * win32-low.c (win32_target_ops): Initialize new structure
11041 2015-05-12 Gary Benson <gbenson@redhat.com>
11043 * server.c (handle_qxfer_exec_file): Use current process
11046 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11048 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11049 Remove HAVE_PTRACE_GETREGS conditionals.
11050 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11051 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11053 2015-05-08 Yao Qi <yao.qi@linaro.org>
11055 * linux-low.c (linux_supports_conditional_breakpoints): New
11057 (linux_target_ops): Install new target method.
11058 * lynx-low.c (lynx_target_ops): Install NULL hook for
11059 supports_conditional_breakpoints.
11060 * nto-low.c (nto_target_ops): Likewise.
11061 * spu-low.c (spu_target_ops): Likewise.
11062 * win32-low.c (win32_target_ops): Likewise.
11063 * server.c (handle_query): Check
11064 target_supports_conditional_breakpoints.
11065 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11067 (target_supports_conditional_breakpoints): New macro.
11069 2015-05-06 Pedro Alves <palves@redhat.com>
11072 * server.c (start_inferior): If the process exits, mourn it.
11074 2015-04-21 Gary Benson <gbenson@redhat.com>
11076 * hostio.c (fileio_open_flags_to_host): Factored out to
11077 fileio_to_host_openflags in common/fileio.c. Single use
11080 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11082 * linux-xtensa-low.c (xtensa_fill_gregset)
11083 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11086 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11088 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11089 (regs_info): Replace usrregs pointer with NULL.
11091 2015-04-17 Gary Benson <gbenson@redhat.com>
11093 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11094 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11095 * server.c (handle_qxfer_exec_file): New function.
11096 (qxfer_packets): Add exec-file entry.
11097 (handle_query): Report qXfer:exec-file:read as supported packet.
11099 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11101 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11103 2015-04-09 Gary Benson <gbenson@redhat.com>
11105 * hostio-errno.c (errno_to_fileio_error): Remove function.
11106 Update caller to use remote_fileio_to_fio_error.
11108 2015-04-09 Yao Qi <yao.qi@linaro.org>
11110 * linux-low.c (linux_insert_point): Call
11111 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11112 (linux_remove_point): Call remove_memory_breakpoint if type is
11114 * linux-x86-low.c (x86_insert_point): Don't call
11115 insert_memory_breakpoint.
11116 (x86_remove_point): Don't call remove_memory_breakpoint.
11118 2015-04-01 Pedro Alves <palves@redhat.com>
11119 Cleber Rosa <crosa@redhat.com>
11121 * server.c (gdbserver_usage): Reorganize and extend the usage
11124 2015-03-24 Pedro Alves <palves@redhat.com>
11126 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11127 output. Also dump TRAP_TRACE.
11128 (linux_low_filter_event): In debug output, distinguish a
11129 resume_stop SIGSTOP from a delayed SIGSTOP.
11131 2015-03-24 Gary Benson <gbenson@redhat.com>
11133 * linux-x86-low.c (x86_linux_new_thread): Moved to
11135 (x86_linux_prepare_to_resume): Likewise.
11137 2015-03-24 Gary Benson <gbenson@redhat.com>
11139 * Makefile.in (x86-linux-dregs.o): New rule.
11140 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11141 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11142 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11143 (x86_linux_dr_get): Likewise.
11144 (x86_linux_dr_set): Likewise.
11145 (update_debug_registers_callback): Likewise.
11146 (x86_linux_dr_set_addr): Likewise.
11147 (x86_linux_dr_get_addr): Likewise.
11148 (x86_linux_dr_set_control): Likewise.
11149 (x86_linux_dr_get_control): Likewise.
11150 (x86_linux_dr_get_status): Likewise.
11151 (x86_linux_update_debug_registers): Likewise.
11153 2015-03-24 Gary Benson <gbenson@redhat.com>
11155 * linux-x86-low.c (x86_linux_update_debug_registers):
11156 New function, factored out from...
11157 (x86_linux_prepare_to_resume): ...this.
11159 2015-03-24 Gary Benson <gbenson@redhat.com>
11161 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11162 (x86_linux_dr_set): Likewise.
11163 (update_debug_registers_callback): Likewise.
11164 (x86_linux_dr_set_addr): Likewise.
11165 (x86_linux_dr_get_addr): Likewise.
11166 (x86_linux_dr_set_control): Likewise.
11167 (x86_linux_dr_get_control): Likewise.
11168 (x86_linux_dr_get_status): Likewise.
11169 (x86_linux_prepare_to_resume): Likewise.
11171 2015-03-24 Gary Benson <gbenson@redhat.com>
11173 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11174 Use perror_with_name. Pass string through gettext.
11175 (x86_linux_dr_set): Likewise.
11177 2015-03-24 Gary Benson <gbenson@redhat.com>
11179 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11180 (x86_linux_dr_set_addr): ...this.
11181 (x86_dr_low_get_addr): Rename to...
11182 (x86_linux_dr_get_addr): ...this.
11183 (x86_dr_low_set_control): Rename to...
11184 (x86_linux_dr_set_control): ...this.
11185 (x86_dr_low_get_control): Rename to...
11186 (x86_linux_dr_get_control): ...this.
11187 (x86_dr_low_get_status): Rename to...
11188 (x86_linux_dr_get_status): ...this.
11189 (x86_dr_low): Update with new function names.
11191 2015-03-24 Gary Benson <gbenson@redhat.com>
11193 * Makefile.in (x86-linux.o): New rule.
11194 * configure.srv: Add x86-linux.o to relevant targets.
11195 * linux-low.c (lwp_set_arch_private_info): New function.
11196 (lwp_arch_private_info): Likewise.
11197 * linux-x86-low.c: Include nat/x86-linux.h.
11198 (arch_lwp_info): Removed structure.
11199 (update_debug_registers_callback):
11200 Use lwp_set_debug_registers_changed.
11201 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11202 and lwp_set_debug_registers_changed.
11203 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11205 2015-03-24 Gary Benson <gbenson@redhat.com>
11207 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11208 * linux-arm-low.c (arm_new_thread): Likewise.
11209 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11210 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11211 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11212 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11214 2015-03-24 Gary Benson <gbenson@redhat.com>
11216 * linux-low.c (ptid_of_lwp): New function.
11217 (lwp_is_stopped): Likewise.
11218 (lwp_stop_reason): Likewise.
11219 * linux-x86-low.c (update_debug_registers_callback):
11220 Use lwp_is_stopped.
11221 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11224 2015-03-24 Gary Benson <gbenson@redhat.com>
11226 * linux-low.h (linux_stop_lwp): Remove declaration.
11228 2015-03-24 Gary Benson <gbenson@redhat.com>
11230 * linux-low.h: Include nat/linux-nat.h.
11231 * linux-low.c (iterate_over_lwps_args): New structure.
11232 (iterate_over_lwps_filter): New function.
11233 (iterate_over_lwps): Likewise.
11234 * linux-x86-low.c (update_debug_registers_callback):
11235 Update signature to what iterate_over_lwps expects.
11236 Remove PID check that iterate_over_lwps now performs.
11237 (x86_dr_low_set_addr): Use iterate_over_lwps.
11238 (x86_dr_low_set_control): Likewise.
11240 2015-03-24 Gary Benson <gbenson@redhat.com>
11242 * linux-x86-low.c (x86_debug_reg_state): New function.
11243 (x86_linux_prepare_to_resume): Use the above.
11245 2015-03-24 Gary Benson <gbenson@redhat.com>
11247 * linux-low.c (current_lwp_ptid): New function.
11248 * linux-x86-low.c: Include nat/linux-nat.h.
11249 (x86_dr_low_get_addr): Use current_lwp_ptid.
11250 (x86_dr_low_get_control): Likewise.
11251 (x86_dr_low_get_status): Likewise.
11253 2015-03-20 Pedro Alves <palves@redhat.com>
11255 * tracepoint.c (cmd_qtstatus): Make "str" const.
11257 2015-03-20 Pedro Alves <palves@redhat.com>
11259 * server.c (handle_general_set): Make "req_str" const.
11261 2015-03-19 Pedro Alves <palves@redhat.com>
11263 * linux-low.c (linux_resume_one_lwp): Rename to ...
11264 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11265 instead call perror_with_name.
11266 (check_ptrace_stopped_lwp_gone): New function.
11267 (linux_resume_one_lwp): Reimplement as wrapper around
11268 linux_resume_one_lwp_throw that swallows errors if the LWP is
11271 2015-03-19 Pedro Alves <palves@redhat.com>
11273 * linux-low.c (count_events_callback, select_event_lwp_callback):
11274 No longer check whether the thread has resume_stop as last resume
11277 2015-03-19 Pedro Alves <palves@redhat.com>
11279 * linux-low.c (count_events_callback, select_event_lwp_callback):
11280 Use the lwp's status_pending_p field, not the thread's.
11282 2015-03-19 Pedro Alves <palves@redhat.com>
11284 * linux-low.c (select_event_lwp_callback): Update comments to
11285 no longer mention SIGTRAP.
11287 2015-03-18 Gary Benson <gbenson@redhat.com>
11289 * server.c (handle_query): Do not report vFile:fstat as supported.
11291 2015-03-11 Gary Benson <gbenson@redhat.com>
11293 * hostio.c (sys/types.h): New include.
11294 (sys/stat.h): Likewise.
11295 (common-remote-fileio.h): Likewise.
11296 (handle_fstat): New function.
11297 (handle_vFile): Handle vFile:fstat packets.
11299 2015-03-11 Gary Benson <gbenson@redhat.com>
11301 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11302 struct stat.st_blocks and struct stat.st_blksize.
11303 * configure: Regenerate.
11304 * config.in: Likewise.
11305 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11306 (OBS): Add common-remote-fileio.o.
11307 (common-remote-fileio.o): New rule.
11309 2015-03-09 Pedro Alves <palves@redhat.com>
11311 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11312 'struct sockaddr' pointer in 'accept' call.
11314 2015-03-09 Pedro Alves <palves@redhat.com>
11317 2015-03-07 Pedro Alves <palves@redhat.com>
11318 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11319 or <winsock2.h> here. Instead include "gdb_socket.h".
11320 (remote_open): Use union gdb_sockaddr_u.
11321 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11322 or <winsock2.h> here. Instead include "gdb_socket.h".
11323 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11324 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11326 (init_named_socket, gdb_agent_helper_thread): Use union
11329 2015-03-07 Pedro Alves <palves@redhat.com>
11331 * configure.ac (build_warnings): Move
11332 -Wdeclaration-after-statement to the C-specific set.
11333 * configure: Regenerate.
11335 2015-03-07 Pedro Alves <palves@redhat.com>
11337 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11338 or <winsock2.h> here. Instead include "gdb_socket.h".
11339 (remote_open): Use union gdb_sockaddr_u.
11340 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11341 or <winsock2.h> here. Instead include "gdb_socket.h".
11342 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11343 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11345 (init_named_socket, gdb_agent_helper_thread): Use union
11348 2015-03-07 Pedro Alves <palves@redhat.com>
11350 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11353 2015-03-06 Yao Qi <yao.qi@linaro.org>
11355 * linux-aarch64-low.c (aarch64_insert_point): Use
11356 show_debug_regs as a boolean.
11357 (aarch64_remove_point): Likewise.
11359 2015-03-05 Pedro Alves <palves@redhat.com>
11361 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11362 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11363 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11364 * nto-low.c (nto_target_ops): Likewise.
11365 * spu-low.c (spu_target_ops): Likewise.
11366 * win32-low.c (win32_target_ops): Likewise.
11368 2015-03-04 Pedro Alves <palves@redhat.com>
11370 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11371 Decide whether a breakpoint triggered based on the SIGTRAP's
11373 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11374 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11375 (linux_low_filter_event): Check for breakpoints before checking
11377 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11379 (linux_stopped_by_sw_breakpoint)
11380 (linux_supports_stopped_by_sw_breakpoint)
11381 (linux_stopped_by_hw_breakpoint)
11382 (linux_supports_stopped_by_hw_breakpoint): New functions.
11383 (linux_target_ops): Install new target methods.
11385 2015-03-04 Pedro Alves <palves@redhat.com>
11387 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11388 * server.c (swbreak_feature, hwbreak_feature): New globals.
11389 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11390 (captured_main): Clear swbreak_feature and hwbreak_feature.
11391 * server.h (swbreak_feature, hwbreak_feature): Declare.
11392 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11393 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11394 supports_stopped_by_hw_breakpoint>: New fields.
11395 (target_supports_stopped_by_sw_breakpoint)
11396 (target_stopped_by_sw_breakpoint)
11397 (target_supports_stopped_by_hw_breakpoint)
11398 (target_stopped_by_hw_breakpoint): Declare.
11400 2015-03-04 Pedro Alves <palves@redhat.com>
11402 enum lwp_stop_reason -> enum target_stop_reason
11403 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11404 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11405 (linux_wait_1, stuck_in_jump_pad_callback)
11406 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11407 (linux_stopped_by_watchpoint):
11408 * linux-low.h (enum lwp_stop_reason): Delete.
11409 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11410 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11412 2015-03-04 Yao Qi <yao.qi@linaro.org>
11414 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11416 2015-03-03 Gary Benson <gbenson@redhat.com>
11418 * hostio.c (handle_vFile): Fix prefix lengths.
11420 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11422 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11425 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11427 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11428 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11429 (clean): Add "rm -f" for above C files.
11430 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11431 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11432 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11433 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11434 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11435 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11436 (init_registers_s390x_vx_linux64)
11437 (init_registers_s390x_tevx_linux64)
11438 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11439 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11441 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11442 (s390_store_vxrs_high): New functions.
11443 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11445 (s390_arch_setup): Add logic for selecting one of the new target
11446 descriptions. Activate the new vector regsets if applicable.
11447 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11448 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11449 and init_registers_s390x_tevx_linux64.
11451 2015-03-01 Pedro Alves <palves@redhat.com>
11453 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11456 2015-02-27 Pedro Alves <palves@redhat.com>
11458 * linux-x86-low.c (u_debugreg_offset): New function.
11459 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11461 2015-02-27 Pedro Alves <palves@redhat.com>
11463 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11464 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11465 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11466 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11467 (ps_lsetfpregs, ps_getpid)
11468 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11469 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11470 (ps_lsetxregs, ps_plog): Declare.
11472 2015-02-27 Pedro Alves <palves@redhat.com>
11474 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11475 IP_AGENT_EXPORT_FUNC.
11476 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11477 IP_AGENT_EXPORT_FUNC.
11478 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11479 (IP_AGENT_EXPORT): Delete.
11480 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11481 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11482 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11483 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11484 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11485 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11486 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11487 (traceframe_read_count, traceframe_write_count)
11488 (traceframes_created, trace_state_variables, get_raw_reg)
11489 (get_trace_state_variable_value, set_trace_state_variable_value)
11490 (ust_loaded, helper_thread_id, cmd_buf): Use
11491 IPA_SYM_EXPORTED_NAME.
11492 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11493 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11494 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11495 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11496 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11497 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11498 EXTERN_C_PUSH/EXTERN_C_POP.
11499 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11500 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11501 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11502 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11503 (traceframe_write_count, traceframe_read_count)
11504 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11505 (about_to_request_buffer_space, get_trace_state_variable_value)
11506 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11507 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11508 EXTERN_C_PUSH/EXTERN_C_POP.
11509 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11510 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11511 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11512 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11513 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11514 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11515 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11516 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11518 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11519 (IP_AGENT_EXPORT_VAR_DECL): Define.
11520 (tracing): Declare.
11521 (gdb_agent_get_raw_reg): Declare.
11523 2015-02-27 Tom Tromey <tromey@redhat.com>
11524 Pedro Alves <palves@redhat.com>
11526 Rename symbols whose names are reserved C++ keywords throughout.
11528 2015-02-27 Pedro Alves <palves@redhat.com>
11530 * Makefile.in (COMPILER): New, get it from autoconf.
11531 (CXX): Get from autoconf instead.
11532 (COMPILE.pre): Use COMPILER.
11533 (CC-LD): Rename to ...
11534 (CC_LD): ... this. Use COMPILER.
11535 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11536 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11537 * acinclude.m4: Include build-with-cxx.m4.
11538 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11539 Disable -Werror by default if building in C++ mode.
11540 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11541 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11542 the C++ compiler. Save/restore CXXFLAGS too.
11543 * configure: Regenerate.
11545 2015-02-27 Pedro Alves <palves@redhat.com>
11547 * acinclude.m4: Include libiberty.m4.
11548 * configure.ac: Call libiberty_INIT.
11549 * config.in, configure: Regenerate.
11551 2015-02-26 Pedro Alves <palves@redhat.com>
11553 * linux-low.c (linux_wait_1): When incrementing the PC past a
11554 program breakpoint always use the_low_target.breakpoint_len as
11555 increment, rather than the maximum between that and
11556 the_low_target.decr_pc_after_break.
11558 2015-02-23 Pedro Alves <palves@redhat.com>
11560 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11561 thread was doing a step-over; always adjust the PC if
11562 we stepped over a permanent breakpoint.
11563 (linux_wait_1): If we stepped over breakpoint that was on top of a
11564 permanent breakpoint, manually advance the PC past it.
11566 2015-02-23 Pedro Alves <palves@redhat.com>
11568 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11570 (x86_fill_gregset, x86_store_gregset): Use it when handling
11573 2015-02-20 Pedro Alves <palves@redhat.com>
11575 * thread-db.c: Include "nat/linux-procfs.h".
11576 (thread_db_init): Skip listing new threads if the kernel supports
11577 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11579 2015-02-20 Pedro Alves <palves@redhat.com>
11581 * linux-low.c (status_pending_p_callback): Use ptid_match.
11583 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11585 PR breakpoints/16812
11586 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11587 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11588 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11590 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11592 PR breakpoints/15956
11593 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11595 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11597 * linux-low.c (linux_low_btrace_conf): Print size.
11598 * server.c (handle_btrace_conf_general_set): New.
11599 (hanle_general_set): Call handle_btrace_conf_general_set.
11600 (handle_query): Report Qbtrace-conf:bts:size as supported.
11602 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11604 * linux-low.c (linux_low_enable_btrace): Update parameters.
11605 (linux_low_btrace_conf): New.
11606 (linux_target_ops)<to_btrace_conf>: Initialize.
11607 * server.c (current_btrace_conf): New.
11608 (handle_btrace_enable): Rename to ...
11609 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11610 to target_enable_btrace. Update comment. Update users.
11611 (handle_qxfer_btrace_conf): New.
11612 (qxfer_packets): Add btrace-conf entry.
11613 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11614 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11615 (target_ops)<read_btrace_conf>: New.
11616 (target_enable_btrace): Update parameters.
11617 (target_read_btrace_conf): New.
11619 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11621 * server.c (handle_btrace_general_set): Remove call to
11622 target_supports_btrace.
11623 (supported_btrace_packets): New.
11624 (handle_query): Call supported_btrace_packets.
11625 * target.h: include btrace-common.h.
11626 (btrace_target_info): Removed.
11627 (supports_btrace, target_supports_btrace): Update parameters.
11629 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11631 * Makefile.in (SFILES): Add common/btrace-common.c.
11632 (OBS): Add common/btrace-common.o.
11633 (btrace-common.o): Add build rules.
11634 * linux-low: Include btrace-common.h.
11635 (linux_low_read_btrace): Use struct btrace_data. Call
11636 btrace_data_init and btrace_data_fini.
11638 2015-02-06 Pedro Alves <palves@redhat.com>
11640 * thread-db.c (find_new_threads_callback): Add debug output.
11642 2015-02-04 Pedro Alves <palves@redhat.com>
11644 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11645 (resume_stopped_resumed_lwps): New function.
11646 (linux_wait_for_event_filtered): Use it.
11648 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11650 * Makefile.in (SFILES): Add linux-personality.c.
11651 (linux-personality.o): New rule.
11652 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11653 list of objects to be built.
11654 * linux-low.c: Include nat/linux-personality.h.
11655 (linux_create_inferior): Remove code to disable address space
11656 randomization (moved to ../nat/linux-personality.c). Create
11657 cleanup to disable address space randomization.
11659 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11661 * Makefile.in (posix-strerror.o): New rule.
11662 (mingw-strerror.o): Likewise.
11663 * configure: Regenerated.
11664 * configure.ac: Source file ../common/common.host. Initialize new
11665 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11667 2015-01-14 Yao Qi <yao@codesourcery.com>
11669 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11670 (ppc-linux.o): New rule.
11671 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11672 * configure.ac: AC_CHECK_FUNCS(getauxval).
11673 * config.in: Re-generated.
11674 * configure: Re-generated.
11675 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11676 ppc64_64bit_inferior_p
11678 2015-01-14 Yao Qi <yao@codesourcery.com>
11680 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11681 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11682 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11683 (PT_ORIG_R3, PT_TRAP): Likewise.
11684 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11685 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11686 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11688 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11690 * i387-fp.c (i387_cache_to_xsave): In look over
11691 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11692 zmmh_low_space field by use of zmmh_high_space.
11694 2015-01-09 Pedro Alves <palves@redhat.com>
11696 * linux-low.c (step_over_bkpt): Move higher up in the file.
11697 (handle_extended_wait): Don't store the stop_pc here.
11698 (get_stop_pc): Adjust comments and rename to ...
11699 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11700 stopped for a software breakpoint or hardware breakpoint.
11701 (thread_still_has_status_pending_p): New function.
11702 (status_pending_p_callback): Use
11703 thread_still_has_status_pending_p. If the event is no longer
11704 interesting, resume the LWP.
11705 (handle_tracepoints): Add assert.
11706 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11707 (wstatus_maybe_breakpoint): New function.
11708 (cancel_breakpoint): Delete function.
11709 (check_stopped_by_watchpoint): New function, factored out from
11710 linux_low_filter_event.
11711 (lp_status_maybe_breakpoint): Delete function.
11712 (linux_low_filter_event): Remove filter_ptid argument.
11713 Leave thread group exits pending here. Store the LWP's stop PC.
11714 Always leave events pending.
11715 (linux_wait_for_event_filtered): Pull all events out of the
11716 kernel, and leave them all pending.
11717 (count_events_callback, select_event_lwp_callback): Consider all
11719 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11720 (select_event_lwp): Only give preference to the stepping LWP in
11721 all-stop mode. Adjust comments.
11722 (ignore_event): New function.
11723 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11724 references to cancel_breakpoints. Adjust to renames. Also give
11725 equal priority to all LWPs that have had events in non-stop mode.
11726 If reporting a software breakpoint event, unadjust the LWP's PC.
11727 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11728 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11730 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11731 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11732 (linux_stopped_by_watchpoint): Adjust.
11733 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11734 * linux-low.h (enum lwp_stop_reason): New.
11735 (struct lwp_info) <stop_pc>: Adjust comment.
11736 <stopped_by_watchpoint>: Delete field.
11737 <stop_reason>: New field.
11738 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11739 * mem-break.c (software_breakpoint_inserted_here)
11740 (hardware_breakpoint_inserted_here): New function.
11741 * mem-break.h (software_breakpoint_inserted_here)
11742 (hardware_breakpoint_inserted_here): Declare.
11743 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11744 (cancel_breakpoints): Delete.
11745 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11746 (upload_fast_traceframes): Remove references to
11747 cancel_breakpoints.
11749 2015-01-09 Pedro Alves <palves@redhat.com>
11751 * thread-db.c (find_new_threads_callback): Ignore thread if the
11752 kernel thread ID is -1.
11754 2015-01-09 Pedro Alves <palves@redhat.com>
11756 * linux-low.c (linux_attach_fail_reason_string): Move to
11757 nat/linux-ptrace.c, and rename.
11758 (linux_attach_lwp): Update comment.
11759 (attach_proc_task_lwp_callback): New function.
11760 (linux_attach): Adjust to rename and use
11761 linux_proc_attach_tgid_threads.
11762 (linux_attach_fail_reason_string): Delete declaration.
11764 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11766 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11767 * server.c (gdbserver_version): Likewise.
11769 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11771 * remote-utils.c: Include ctype.h.
11772 (input_interrupt): Explicitly handle the case when the char
11773 received is the NUL byte. Improve the printing of non-ASCII
11776 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11778 * linux-low.c (linux_low_filter_event): Update call to
11779 linux_enable_event_reporting following the addition of
11780 a new parameter to that function.
11782 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11785 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11786 (AARCH64_FPCR_REGNO): Likewise.
11787 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11788 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11789 (aarch64_store_fpregset): Likewise.
11791 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11793 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11794 Remove FIXME comment about assumption about N.
11796 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11798 * configure.ac: If large-file support is disabled in GDBserver,
11799 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11800 * configure: Regenerate.
11802 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11804 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11805 warning upon ENODATA from ptrace.
11806 * linux-s390-low.c (s390_store_tdb): New.
11807 (s390_regsets): Add regset for NT_S390_TDB.
11809 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11811 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11812 without a fill_function.
11813 * linux-s390-low.c (s390_fill_last_break): Remove.
11814 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11815 (s390_arch_setup): Use regset's size instead of fill_function for
11816 loop end condition.
11818 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11820 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11821 the regset's store function when ptrace returned an error.
11822 * regcache.c (get_thread_regcache): Invalidate register cache
11823 before fetching inferior's registers.
11825 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11827 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11828 while-loop as for-loop.
11829 (regsets_store_inferior_registers): Likewise.
11831 2014-11-28 Yao Qi <yao@codesourcery.com>
11833 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11834 * config.in, configure: Re-generate.
11835 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11838 2014-11-21 Yao Qi <yao@codesourcery.com>
11840 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11841 (AC_CHECK_HEADERS): Remove malloc.h.
11842 * configure: Re-generated.
11843 * config.in: Re-generated.
11844 * server.h: Don't include alloca.h and malloc.h.
11845 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11846 Don't include malloc.h.
11848 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11850 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11851 corresponding ERRNO check in same block.
11853 2014-11-12 Pedro Alves <palves@redhat.com>
11855 * server.c (cont_thread): Update comment.
11856 (start_inferior, attach_inferior): No longer clear cont_thread.
11857 (handle_v_cont): No longer set cont_thread.
11858 (captured_main): Clear cont_thread each time a GDB connects.
11860 2014-11-12 Pedro Alves <palves@redhat.com>
11862 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11863 thread, and don't resume all threads if the Hc thread has exited.
11865 2014-11-12 Pedro Alves <palves@redhat.com>
11867 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11868 the process group instead of to a specific LWP.
11870 2014-10-15 Pedro Alves <palves@redhat.com>
11873 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11875 (arm_set_thread_context): Delete.
11876 (the_low_target): Adjust.
11877 * win32-i386-low.c (debug_registers_changed)
11878 (debug_registers_used): Delete.
11879 (update_debug_registers_callback): New function.
11880 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11881 needing to update their debug registers.
11882 (win32_get_current_dr): New function.
11883 (x86_dr_low_get_addr, x86_dr_low_get_control)
11884 (x86_dr_low_get_status): Fetch the debug register from the thread
11886 (i386_initial_stuff): Adjust.
11887 (i386_get_thread_context): Remove current_event parameter. Don't
11888 clear debug_registers_changed nor copy DR values to
11890 (i386_set_thread_context): Delete.
11891 (i386_prepare_to_resume): New function.
11892 (i386_thread_added): Mark the thread as needing to update irs
11894 (the_low_target): Remove i386_set_thread_context and install
11895 i386_prepare_to_resume.
11896 * win32-low.c (win32_get_thread_context): Adjust.
11897 (win32_set_thread_context): Use SetThreadContext
11899 (win32_prepare_to_resume): New function.
11900 (win32_require_context): New function, factored out from ...
11901 (thread_rec): ... this.
11902 (continue_one_thread): Call win32_prepare_to_resume on each thread
11903 we're about to continue.
11904 (win32_resume): Call win32_prepare_to_resume on the event thread.
11905 * win32-low.h (struct win32_thread_info)
11906 <debug_registers_changed>: New field.
11907 (struct win32_target_ops): Change prototype of set_thread_context,
11908 delete set_thread_context and add prepare_to_resume.
11909 (win32_require_context): New declaration.
11911 2014-10-08 Gary Benson <gbenson@redhat.com>
11913 * server.h: Do not include common-exceptions.h.
11915 2014-10-08 Gary Benson <gbenson@redhat.com>
11917 * server.h: Do not include cleanups.h.
11919 2014-09-30 James Hogan <james.hogan@imgtec.com>
11921 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11922 mips64-dsp-linux.c.
11924 2014-09-23 Yao Qi <yao@codesourcery.com>
11926 * linux-low.c (lp_status_maybe_breakpoint): New function.
11927 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11928 (count_events_callback): Likewise.
11929 (select_event_lwp_callback): Likewise.
11930 (cancel_breakpoints_callback): Likewise.
11932 2014-09-19 Don Breazeal <donb@codesourcery.com>
11934 * linux-low.c (handle_extended_wait): Call
11935 linux_ptrace_get_extended_event.
11936 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11937 linux_is_extended_waitstatus.
11939 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11941 * Makefile.in (CPPFLAGS): Define.
11942 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11943 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11945 2014-09-16 Gary Benson <gbenson@redhat.com>
11947 * inferiors.h (current_inferior): Renamed as...
11948 (current_thread): New variable. All uses updated.
11949 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11950 (maybe_move_out_of_jump_pad): Likewise.
11951 (cancel_breakpoint): Likewise.
11952 (linux_low_filter_event): Likewise.
11953 (wait_for_sigstop): Likewise.
11954 (linux_resume_one_lwp): Likewise.
11955 (need_step_over_p): Likewise.
11956 (start_step_over): Likewise.
11957 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11958 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11959 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11960 and save_inferior as saved_thread.
11961 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11963 (regcache_invalidate_thread): Likewise.
11964 * remote-utils.c (prepare_resume_reply): Likewise.
11965 * thread-db.c (thread_db_get_tls_address): Likewise.
11966 (disable_thread_event_reporting): Likewise.
11967 (remove_thread_event_breakpoints): Likewise.
11968 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11970 * target.h (set_desired_inferior): Renamed as...
11971 (set_desired_thread): New declaration. All uses updated.
11972 * server.c (myresume): Updated comment to reference thread instead
11974 (handle_serial_event): Likewise.
11975 (handle_target_event): Likewise.
11977 2014-09-12 Tom Tromey <tromey@redhat.com>
11978 Gary Benson <gbenson@redhat.com>
11980 * regcache.h: Include common-regcache.h.
11981 (regcache_read_pc): Don't declare.
11982 * regcache.c (get_thread_regcache_for_ptid): New function.
11984 2014-09-11 Tom Tromey <tromey@redhat.com>
11985 Gary Benson <gbenson@redhat.com>
11987 * symbol.c: New file.
11988 * Makefile.in (SFILES): Add symbol.c.
11989 (OBS): Add symbol.o.
11991 2014-09-11 Gary Benson <gbenson@redhat.com>
11993 * target.c (target_stop_ptid, target_continue_ptid): New
11996 2014-09-11 Tom Tromey <tromey@redhat.com>
11997 Gary Benson <gbenson@redhat.com>
11999 * target.h: Include target/target.h.
12000 * target.c (target_read_memory, target_read_uint32)
12001 (target_write_memory): New functions.
12003 2014-09-11 Gary Benson <gbenson@redhat.com>
12005 * server.h (debug_hw_points): Don't declare.
12006 * server.c (debug_hw_points): Don't define. Replace all uses
12007 with show_debug_regs.
12008 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12009 all uses with show_debug_regs.
12011 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12013 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12014 endianness into account.
12015 (ppc_supply_ptrace_register): Likewise.
12017 2014-09-03 James Hogan <james.hogan@imgtec.com>
12019 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12020 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12022 2014-09-03 Gary Benson <gbenson@redhat.com>
12024 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12025 ALL_DEBUG_ADDRESS_REGISTERS.
12027 2014-09-02 Gary Benson <gbenson@redhat.com>
12029 * i386-low.h: Renamed as...
12030 * x86-low.h: New file. All type, function and variable name
12031 prefixes changed from "i386_" to "x86_". All references updated.
12032 * i386-low.c: Renamed as...
12033 * x86-low.c: New file. All type, function and variable name
12034 prefixes changed from "i386_" to "x86_". All references updated.
12036 2014-09-02 Gary Benson <gbenson@redhat.com>
12038 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12039 (x86_linux_new_thread): Likewise.
12041 2014-08-29 Gary Benson <gbenson@redhat.com>
12043 * server.h (setjmp.h): Do not include.
12044 (toplevel): Do not declare.
12045 (common-exceptions.h): Include.
12046 (cleanups.h): Likewise.
12047 * server.c (toplevel): Do not define.
12048 (exit_code): New static global.
12049 (detach_or_kill_for_exit_cleanup): New function.
12050 (main): New function. Original main renamed to...
12051 (captured_main): New function.
12052 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12054 2014-08-29 Gary Benson <gbenson@redhat.com>
12056 * Makefile.in (SFILES): Add common/common-exceptions.c.
12057 (OBS): Add common-exceptions.o.
12058 (common-exceptions.o): New rule.
12059 * utils.c (prepare_to_throw_exception): New function.
12061 2014-08-29 Gary Benson <gbenson@redhat.com>
12063 * config.in: Regenerate.
12064 * configure: Likewise.
12066 2014-08-29 Gary Benson <gbenson@redhat.com>
12068 * Makefile.in (SFILES): Add common/cleanups.c.
12070 (cleanups.o): New rule.
12072 2014-08-29 Gary Benson <gbenson@redhat.com>
12074 * utils.c (internal_vwarning): New function.
12076 2014-08-28 Gary Benson <gbenson@redhat.com>
12078 * utils.h (fatal): Remove declaration.
12079 * utils.c (fatal): Remove function.
12081 2014-08-28 Gary Benson <gbenson@redhat.com>
12083 * tracepoint.c (gdb_agent_init): Replace fatal with
12085 (initialize_tracepoint): Likewise.
12087 2014-08-28 Gary Benson <gbenson@redhat.com>
12089 * remote-utils.c (remote_prepare): Replace fatal with error.
12091 2014-08-28 Gary Benson <gbenson@redhat.com>
12093 * linux-low.c (linux_async): Replace fatal with warning.
12094 Tidy up and return.
12095 (linux_start_non_stop): Return -1 if linux_async failed.
12097 2014-08-28 Gary Benson <gbenson@redhat.com>
12099 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12101 (i386_dr_low_get_addr): Remove vague comment.
12102 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12105 2014-08-28 Gary Benson <gbenson@redhat.com>
12107 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12108 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12110 (linux_resume_one_lwp): Likewise.
12111 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12113 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12114 with internal_error.
12115 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12116 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12117 (find_register_by_name): Replace fatal with internal_error.
12118 (find_regno): Likewise.
12119 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12120 * thread-db.c (thread_db_create_event): Likewise.
12121 (thread_db_load_search): Likewise.
12122 (try_thread_db_load_1): Likewise.
12123 * tracepoint.c (get_jump_space_head): Replace fatal with
12125 (claim_trampoline_space): Likewise.
12126 (have_fast_tracepoint_trampoline_buffer): Likewise.
12127 (cmd_qtstart): Likewise.
12128 (stop_tracing): Likewise.
12129 (fast_tracepoint_collecting): Likewise.
12130 (target_malloc): Likewise.
12131 (download_tracepoint): Likewise.
12132 (download_trace_state_variables): Replace check with gdb_assert.
12133 (upload_fast_traceframes): Replace fatal with internal_error.
12135 2014-08-19 Tom Tromey <tromey@redhat.com>
12136 Gary Benson <gbenson@redhat.com>
12138 * Makefile.in (SFILES): Add common/common-debug.c.
12139 (OBS): Add common-debug.o.
12140 (common-debug.o): New rule.
12141 * debug.h (debug_printf): Don't declare.
12142 * debug.c (debug_printf): Renamed and rewritten as...
12143 (debug_vprintf): New function.
12145 2014-08-19 Gary Benson <gbenson@redhat.com>
12147 * utils.h: Do not include print-utils.h.
12149 2014-08-19 Tom Tromey <tromey@redhat.com>
12150 Gary Benson <gbenson@redhat.com>
12152 * server.h: Add static assertion.
12153 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12155 2014-08-19 Tom Tromey <tromey@redhat.com>
12156 Gary Benson <gbenson@redhat.com>
12158 * Makefile.in (SFILES): Add common/errors.c.
12159 (OBS): Add errors.o.
12160 (IPA_OBS): Add errors-ipa.o.
12161 (errors.o): New rule.
12162 (errors-ipa.o): Likewise.
12163 * utils.h (perror_with_name, error, warning): Don't declare.
12164 * utils.c (warning): Renamed and rewritten as...
12165 (vwarning): New function.
12166 (error): Renamed and rewritten as...
12167 (verror): New function.
12168 (internal_error): Renamed and rewritten as...
12169 (internal_verror): New function.
12171 2014-08-07 Gary Benson <gbenson@redhat.com>
12173 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12174 * configure: Regenerate.
12175 * config.in: Likewise.
12176 * server.h: Do not include errno.h.
12177 * event-loop.c: Likewise.
12178 * hostio-errno.c: Likewise.
12179 * linux-low.c: Likewise.
12180 * remote-utils.c: Likewise.
12181 * spu-low.c: Likewise.
12182 * utils.c: Likewise.
12183 * gdbreplay.c: Unconditionally include errno.h.
12185 2014-08-07 Gary Benson <gbenson@redhat.com>
12187 * server.h: Do not include string.h.
12188 * event-loop.c: Likewise.
12189 * linux-low.c: Likewise.
12190 * regcache.c: Likewise.
12191 * remote-utils.c: Likewise.
12192 * spu-low.c: Likewise.
12193 * utils.c: Likewise.
12195 2014-08-07 Gary Benson <gbenson@redhat.com>
12197 * server.h: Do not include gdb_assert.h.
12199 2014-08-07 Gary Benson <gbenson@redhat.com>
12201 * server.h: Do not include common-utils.h.
12203 2014-08-07 Gary Benson <gbenson@redhat.com>
12205 * server.h: Do not include ptid.h.
12206 * notif.h: Likewise.
12208 2014-08-07 Gary Benson <gbenson@redhat.com>
12210 * server.h: Do not include gdb_locale.h.
12212 2014-08-07 Gary Benson <gbenson@redhat.com>
12214 * server.h: Do not include gdb/signals.h.
12215 * win32-low.c: Likewise.
12217 2014-08-07 Gary Benson <gbenson@redhat.com>
12219 * server.h: Do not include pathmax.h.
12221 2014-08-07 Gary Benson <gbenson@redhat.com>
12223 * server.h: Do not include libiberty.h.
12224 * linux-bfin-low.c: Likewise.
12226 2014-08-07 Gary Benson <gbenson@redhat.com>
12228 * server.h: Do not include ansidecl.h.
12230 2014-08-07 Gary Benson <gbenson@redhat.com>
12232 * linux-x86-low.c: Do not include stddef.h.
12233 * lynx-ppc-low.c: Likewise.
12234 * tracepoint.c: Likewise.
12236 2014-08-07 Gary Benson <gbenson@redhat.com>
12238 * server.h: Do not include stdarg.h.
12239 * nto-low.c: Likewise.
12241 2014-08-07 Gary Benson <gbenson@redhat.com>
12243 * server.h: Do not include stdlib.h.
12244 * inferiors.c: Likewise.
12245 * linux-low.c: Likewise.
12246 * regcache.c: Likewise.
12247 * spu-low.c: Likewise.
12248 * tracepoint.c: Likewise.
12249 * utils.c: Likewise.
12251 2014-08-07 Gary Benson <gbenson@redhat.com>
12253 * server.h: Do not include stdio.h.
12254 * linux-low.c: Likewise.
12255 * remote-utils.c: Likewise.
12256 * spu-low.c: Likewise.
12257 * utils.c: Likewise.
12258 * wincecompat.c: Likewise.
12260 2014-08-06 Gary Benson <gbenson@redhat.com>
12262 * regcache.c (init_register_cache): Move conditionals inside if.
12264 2014-08-06 Gary Benson <gbenson@redhat.com>
12266 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12268 2014-07-31 Gary Benson <gbenson@redhat.com>
12270 * ax.h: Do not include server.h.
12271 * gdbthread.h: Likewise.
12272 * lynx-low.h: Likewise.
12273 * notif.h: Likewise.
12275 2014-07-30 Gary Benson <gbenson@redhat.com>
12277 * server.h: Include common-defs.h.
12278 Do not include config.h or build-gnulib-gdbserver/config.h.
12280 2014-07-30 Gary Benson <gbenson@redhat.com>
12282 * hostio-errno.c: Move server.h to top of includes list.
12283 * inferiors.c: Likewise.
12284 * linux-x86-low.c: Likewise.
12285 * notif.c: Include server.h.
12287 2014-07-24 Tom Tromey <tromey@redhat.com>
12288 Gary Benson <gbenson@redhat.com>
12290 * server.h (CORE_ADDR): Now unsigned.
12292 2014-07-16 Pedro Alves <palves@redhat.com>
12294 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12296 2014-07-15 Pedro Alves <palves@redhat.com>
12298 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12301 2014-07-11 Pedro Alves <palves@redhat.com>
12303 * linux-low.c (kill_wait_lwp): New function, based on
12304 kill_one_lwp_callback, but use my_waitpid directly.
12305 (kill_one_lwp_callback, linux_kill): Use it.
12307 2014-06-23 Pedro Alves <palves@redhat.com>
12309 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12310 before setting DR0..DR3.
12312 2014-06-20 Gary Benson <gbenson@redhat.com>
12314 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12315 * configure: Regenerated.
12316 * config.in: Likewise.
12318 2014-06-20 Gary Benson <gbenson@redhat.com>
12320 * Makefile.in (SFILES): Update locations for files moved
12321 from common to nat.
12322 (object file files): Reordered.
12324 2014-06-20 Gary Benson <gbenson@redhat.com>
12326 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12327 (i386_dr_low_set_addr): Likewise.
12328 (i386_dr_low_get_addr): Likewise.
12329 (i386_dr_low_can_set_control): Likewise.
12330 (i386_dr_low_set_control): Likewise.
12331 (i386_dr_low_get_control): Likewise.
12332 (i386_dr_low_get_status): Likewise.
12333 (i386_get_debug_register_length): Likewise.
12334 * linux-x86-low.c (i386_dr_low_set_addr):
12335 Changed signature. Made static.
12336 (i386_dr_low_get_addr): Likewise.
12337 (i386_dr_low_set_control): Likewise.
12338 (i386_dr_low_get_control): Likewise.
12339 (i386_dr_low_get_status): Likewise.
12340 (i386_dr_low): New global variable.
12341 * win32-i386-low.c (i386_dr_low_set_addr):
12342 Changed signature. Made static.
12343 (i386_dr_low_get_addr): Likewise.
12344 (i386_dr_low_set_control): Likewise.
12345 (i386_dr_low_get_control): Likewise.
12346 (i386_dr_low_get_status): Likewise.
12347 (i386_dr_low): New global variable.
12349 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12351 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12352 * Makefile.in (AR, AR_FLAGS): Define.
12353 * configure: Regenerate.
12355 2014-06-19 Gary Benson <gbenson@redhat.com>
12357 * Makefile.in (i386-dregs.o): New rule.
12358 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12359 * i386-low.c (target.h): Remove include.
12360 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12361 (DR_CONTROL_SHIFT): Likewise.
12362 (DR_CONTROL_SIZE): Likewise.
12363 (DR_RW_EXECUTE): Likewise.
12364 (DR_RW_WRITE): Likewise.
12365 (DR_RW_READ): Likewise.
12366 (DR_RW_IORW): Likewise.
12367 (DR_LEN_1): Likewise.
12368 (DR_LEN_2): Likewise.
12369 (DR_LEN_4): Likewise.
12370 (DR_LEN_8): Likewise.
12371 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12372 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12373 (DR_ENABLE_SIZE): Likewise.
12374 (DR_LOCAL_SLOWDOWN): Likewise.
12375 (DR_GLOBAL_SLOWDOWN): Likewise.
12376 (DR_CONTROL_RESERVED): Likewise.
12377 (I386_DR_CONTROL_MASK): Likewise.
12378 (I386_DR_VACANT): Likewise.
12379 (I386_DR_LOCAL_ENABLE): Likewise.
12380 (I386_DR_GLOBAL_ENABLE): Likewise.
12381 (I386_DR_DISABLE): Likewise.
12382 (I386_DR_SET_RW_LEN): Likewise.
12383 (I386_DR_GET_RW_LEN): Likewise.
12384 (I386_DR_WATCH_HIT): Likewise.
12385 (i386_wp_op_t): Likewise.
12386 (i386_show_dr): Likewise.
12387 (i386_length_and_rw_bits): Likewise.
12388 (i386_insert_aligned_watchpoint): Likewise.
12389 (i386_remove_aligned_watchpoint): Likewise.
12390 (i386_handle_nonaligned_watchpoint): Likewise.
12391 i386_update_inferior_debug_regs(): Likewise.
12392 (i386_dr_insert_watchpoint): Likewise.
12393 (i386_dr_remove_watchpoint): Likewise.
12394 (i386_dr_region_ok_for_watchpoint): Likewise.
12395 (i386_dr_stopped_data_address): Likewise.
12396 (i386_dr_stopped_by_watchpoint): Likewise.
12398 2014-06-19 Gary Benson <gbenson@redhat.com>
12400 * i386-low.c (i386_dr_show): Renamed to
12401 i386_show_dr and made static. All uses updated.
12402 (i386_dr_length_and_rw_bits): Renamed to
12403 i386_length_and_rw_bits and made static.
12405 (i386_dr_insert_aligned_watchpoint): Renamed to
12406 i386_insert_aligned_watchpoint and made static.
12408 (i386_dr_remove_aligned_watchpoint): Renamed to
12409 i386_remove_aligned_watchpoint and made static.
12411 (i386_dr_update_inferior_debug_regs): Renamed to
12412 i386_update_inferior_debug_regs and made static.
12415 2014-06-18 Gary Benson <gbenson@redhat.com>
12417 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12418 (i386_dr_low_can_set_control): Likewise.
12419 (i386_get_debug_register_length): Likewise.
12420 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12421 (i386_dr_low_can_set_control): Likewise.
12422 (i386_get_debug_register_length): Likewise.
12424 2014-06-17 Gary Benson <gbenson@redhat.com>
12426 * i386-low.h (i386-dregs.h): New include.
12427 (DR_FIRSTADDR): Now in i386-dregs.h.
12428 (DR_LASTADDR): Likewise.
12429 (DR_NADDR): Likewise.
12430 (DR_STATUS): Likewise.
12431 (DR_CONTROL): Likewise.
12432 (i386_debug_reg_state): Likewise.
12433 (i386_dr_insert_watchpoint): Likewise.
12434 (i386_dr_remove_watchpoint): Likewise.
12435 (i386_dr_region_ok_for_watchpoint): Likewise.
12436 (i386_dr_stopped_data_address): Likewise.
12437 (i386_dr_stopped_by_watchpoint): Likewise.
12438 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12440 2014-06-18 Gary Benson <gbenson@redhat.com>
12442 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12443 i386_dr_insert_watchpoint.
12444 (i386_low_remove_watchpoint): Renamed to
12445 i386_dr_remove_watchpoint.
12446 (i386_low_region_ok_for_watchpoint): Renamed to
12447 i386_dr_region_ok_for_watchpoint.
12448 (i386_low_stopped_data_address): Renamed to
12449 i386_dr_stopped_data_address.
12450 (i386_low_stopped_by_watchpoint): Renamed to
12451 i386_dr_stopped_by_watchpoint.
12452 * i386-low.c (i386_show_dr): Renamed to
12453 i386_dr_show and made nonstatic. All uses updated.
12454 (i386_length_and_rw_bits): Renamed to
12455 i386_dr_length_and_rw_bits and made nonstatic.
12457 (i386_insert_aligned_watchpoint): Renamed to
12458 i386_dr_insert_aligned_watchpoint and made nonstatic.
12460 (i386_remove_aligned_watchpoint): Renamed to
12461 i386_dr_remove_aligned_watchpoint and made nonstatic.
12463 (i386_update_inferior_debug_regs): Renamed to
12464 i386_dr_update_inferior_debug_regs and made nonstatic.
12466 (i386_low_insert_watchpoint): Renamed to
12467 i386_dr_insert_watchpoint. All uses updated.
12468 (i386_low_remove_watchpoint): Renamed to
12469 i386_dr_remove_watchpoint. All uses updated.
12470 (i386_low_region_ok_for_watchpoint): Renamed to
12471 i386_dr_region_ok_for_watchpoint. All uses updated.
12472 (i386_low_stopped_data_address): Renamed to
12473 i386_dr_stopped_data_address. All uses updated.
12474 (i386_low_stopped_by_watchpoint): Renamed to
12475 i386_dr_stopped_by_watchpoint. All uses updated.
12477 2014-06-18 Gary Benson <gbenson@redhat.com>
12479 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12480 (i386_dr_low_can_set_control): Likewise.
12481 (i386_insert_aligned_watchpoint): New check.
12483 2014-06-18 Gary Benson <gbenson@redhat.com>
12485 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12488 2014-06-18 Gary Benson <gbenson@redhat.com>
12490 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12491 instead of fatal and error.
12492 (i386_handle_nonaligned_watchpoint): Likewise.
12494 2014-06-18 Gary Benson <gbenson@redhat.com>
12496 * i386-low.c (i386_get_debug_register_length): New macro.
12497 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12498 (i386_show_dr): Use debug_printf instead of fprintf. Use
12499 phex to format values.
12501 2014-06-18 Gary Benson <gbenson@redhat.com>
12503 * i386-low.h: Comment changes.
12504 * i386-low.c: Likewise.
12506 2014-06-18 Gary Benson <gbenson@redhat.com>
12508 * i386-low.c: Whitespace changes.
12510 2014-06-12 Tom Tromey <tromey@redhat.com>
12512 * utils.c (freeargv): Remove.
12514 2014-06-12 Tom Tromey <tromey@redhat.com>
12516 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12517 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12518 (parse_debug_format_options): Likewise.
12519 (gdbserver_usage): Likewise.
12520 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12521 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12522 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12524 ($(LIBGNU)): Depend on libiberty.
12525 (all-lib): Recurse into all subdirs.
12526 (install-only): Invoke "install" target in subdirs.
12527 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12529 * configure: Rebuild.
12530 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12531 for vasprintf, vsnprintf, or gettimeofday.
12532 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12535 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12537 * development.sh: Delete.
12538 * Makefile.in (config.status): Adjust dependency on development.sh.
12539 * configure.ac: Adjust development.sh source call.
12540 * configure: Regenerate.
12542 2014-06-02 Pedro Alves <palves@redhat.com>
12544 * ax.c (gdb_free_agent_expr): New function.
12545 * ax.h (gdb_free_agent_expr): New declaration.
12546 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12548 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12550 (clear_breakpoint_conditions_and_commands): New function.
12551 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12552 (clear_breakpoint_conditions_and_commands): New declaration.
12554 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12556 * linux-aarch64-low.c (asm/ptrace.h): Include.
12558 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12560 Fix TLS access for -static -pthread.
12561 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12562 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12563 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12565 2014-05-20 Pedro Alves <palves@redhat.com>
12567 * linux-aarch64-low.c (aarch64_insert_point)
12568 (aarch64_remove_point): No longer check whether the type is
12569 supported here. Adjust to new interface.
12570 (the_low_target): Install aarch64_supports_z_point_type as
12571 supports_z_point_type method.
12572 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12573 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12574 instead of a Z packet char. Adjust.
12575 (arm_supports_z_point_type): New function.
12576 (arm_insert_point, arm_remove_point): Adjust to new interface.
12577 (the_low_target): Install arm_supports_z_point_type.
12578 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12579 (cris_insert_point, cris_remove_point): Adjust to new interface.
12580 Don't check whether the type is supported here.
12581 (the_low_target): Install cris_supports_z_point_type.
12582 * linux-low.c (linux_supports_z_point_type): New function.
12583 (linux_insert_point, linux_remove_point): Adjust to new interface.
12584 * linux-low.h (struct linux_target_ops) <insert_point,
12585 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12586 raw_breakpoint pointer parameter.
12587 <supports_z_point_type>: New method.
12588 * linux-mips-low.c (mips_supports_z_point_type): New function.
12589 (mips_insert_point, mips_remove_point): Adjust to new interface.
12590 Use mips_supports_z_point_type.
12591 (the_low_target): Install mips_supports_z_point_type.
12592 * linux-ppc-low.c (the_low_target): Install NULL as
12593 supports_z_point_type method.
12594 * linux-s390-low.c (the_low_target): Install NULL as
12595 supports_z_point_type method.
12596 * linux-sparc-low.c (the_low_target): Install NULL as
12597 supports_z_point_type method.
12598 * linux-x86-low.c (x86_supports_z_point_type): New function.
12599 (x86_insert_point): Adjust to new insert_point interface. Use
12600 insert_memory_breakpoint. Adjust to new
12601 i386_low_insert_watchpoint interface.
12602 (x86_remove_point): Adjust to remove_point interface. Use
12603 remove_memory_breakpoint. Adjust to new
12604 i386_low_remove_watchpoint interface.
12605 (the_low_target): Install x86_supports_z_point_type.
12606 * lynx-low.c (lynx_target_ops): Install NULL as
12607 supports_z_point_type callback.
12608 * nto-low.c (nto_supports_z_point_type): New.
12609 (nto_insert_point, nto_remove_point): Adjust to new interface.
12610 (nto_target_ops): Install nto_supports_z_point_type.
12611 * mem-break.c: Adjust intro comment.
12612 (struct raw_breakpoint) <raw_type, size>: New fields.
12613 <inserted>: Update comment.
12614 <shlib_disabled>: Delete field.
12615 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12616 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12617 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12618 (raw_bkpt_type_to_target_hw_bp_type): New function.
12619 (find_enabled_raw_code_breakpoint_at): New function.
12620 (find_raw_breakpoint_at): New type and size parameters. Use them.
12621 (insert_memory_breakpoint): New function, based off
12622 set_raw_breakpoint_at.
12623 (remove_memory_breakpoint): New function.
12624 (set_raw_breakpoint_at): Reimplement.
12625 (set_breakpoint): New, based on set_breakpoint_at.
12626 (set_breakpoint_at): Reimplement.
12627 (delete_raw_breakpoint): Go through the_target->remove_point
12628 instead of assuming memory breakpoints.
12629 (find_gdb_breakpoint_at): Delete.
12630 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12631 (find_gdb_breakpoint): New function.
12632 (set_gdb_breakpoint_at): Delete.
12633 (z_type_supported): New function.
12634 (set_gdb_breakpoint_1): New function, loosely based off
12635 set_gdb_breakpoint_at.
12636 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12637 (delete_gdb_breakpoint_at): Delete.
12638 (delete_gdb_breakpoint_1): New function, loosely based off
12639 delete_gdb_breakpoint_at.
12640 (delete_gdb_breakpoint): New function.
12641 (clear_gdb_breakpoint_conditions): Rename to ...
12642 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12644 (add_condition_to_breakpoint): Make static.
12645 (add_breakpoint_condition): Take a struct breakpoint pointer
12646 instead of an address. Adjust.
12647 (gdb_condition_true_at_breakpoint): Rename to ...
12648 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12650 (gdb_condition_true_at_breakpoint): Reimplement.
12651 (add_breakpoint_commands): Take a struct breakpoint pointer
12652 instead of an address. Adjust.
12653 (gdb_no_commands_at_breakpoint): Rename to ...
12654 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12655 parameter. Return true if no breakpoint was found. Change debug
12657 (gdb_no_commands_at_breakpoint): Reimplement.
12658 (run_breakpoint_commands): Rename to ...
12659 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12660 and change return type to boolean.
12661 (run_breakpoint_commands): New function.
12662 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12663 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12664 breakpoint. Go through the_target->remove_point instead of
12665 assuming memory breakpoint.
12666 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12667 software and hardware breakpoints.
12668 (reinsert_raw_breakpoint): Go through the_target->insert_point
12669 instead of assuming memory breakpoint.
12670 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12671 software and hardware breakpoints.
12672 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12673 Check both software and hardware breakpoints.
12674 (validate_inserted_breakpoint): Assert the breakpoint is a
12675 software breakpoint. Set the inserted flag to -1 instead of
12676 setting shlib_disabled.
12677 (delete_disabled_breakpoints): Adjust.
12678 (validate_breakpoints): Only validate software breakpoints.
12679 Adjust to inserted flag change.
12680 (check_mem_read, check_mem_write): Skip breakpoint types other
12681 than software breakpoints. Adjust to inserted flag change.
12682 * mem-break.h (enum raw_bkpt_type): New enum.
12683 (raw_breakpoint, struct process_info): Forward declare.
12684 (Z_packet_to_target_hw_bp_type): Delete declaration.
12685 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12686 (set_gdb_breakpoint, delete_gdb_breakpoint)
12687 (clear_breakpoint_conditions): New declarations.
12688 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12689 (breakpoint_inserted_here): Update comment.
12690 (add_breakpoint_condition, add_breakpoint_commands): Replace
12691 address parameter with a breakpoint pointer parameter.
12692 (gdb_breakpoint_here): Update comment.
12693 (delete_gdb_breakpoint_at): Delete.
12694 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12695 * server.c (process_point_options): Take a struct breakpoint
12696 pointer instead of an address. Adjust.
12697 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12698 delete_gdb_breakpoint.
12699 * spu-low.c (spu_target_ops): Install NULL as
12700 supports_z_point_type method.
12701 * target.h: Include mem-break.h.
12702 (struct target_ops) <prepare_to_access_memory>: Update comment.
12703 <supports_z_point_type>: New field.
12704 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12705 instead of a char. Also take a raw breakpoint pointer.
12706 * win32-arm-low.c (the_low_target): Install NULL as
12707 supports_z_point_type.
12708 * win32-i386-low.c (i386_supports_z_point_type): New function.
12709 (i386_insert_point, i386_remove_point): Adjust to new interface.
12710 (the_low_target): Install i386_supports_z_point_type.
12711 * win32-low.c (win32_supports_z_point_type): New function.
12712 (win32_insert_point, win32_remove_point): Adjust to new interface.
12713 (win32_target_ops): Install win32_supports_z_point_type.
12714 * win32-low.h (struct win32_target_ops):
12715 <supports_z_point_type>: New method.
12716 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12717 instead of a char. Also take a raw breakpoint pointer.
12719 2014-05-20 Pedro Alves <palves@redhat.com>
12721 * mem-break.h: Include break-common.h.
12722 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12723 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12724 (Z_packet_to_target_hw_bp_type): New declaration.
12725 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12726 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12727 (Z_PACKET_ACCESS_WP): Delete macros.
12728 (Z_packet_to_hw_type): Delete function.
12729 * i386-low.h: Don't include break-common.h here.
12730 (Z_packet_to_hw_type): Delete declaration.
12731 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12732 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12733 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12734 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12735 * linux-aarch64-low.c: Don't include break-common.h here.
12736 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12737 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12738 (Z_packet_to_target_hw_bp_type): Delete function.
12739 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12741 (mips_insert_point, mips_remove_point): Use
12742 Z_packet_to_target_hw_bp_type.
12744 2014-05-20 Pedro Alves <palves@redhat.com>
12746 * linux-aarch64-low.c: Include break-common.h.
12747 (enum target_point_type): Delete.
12748 (Z_packet_to_point_type): Rename to ...
12749 (Z_packet_to_target_hw_bp_type): ... this, and return a
12750 target_hw_bp_type instead.
12751 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12752 instead of an enum target_point_type.
12753 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12755 (aarch64_dr_state_insert_one_point)
12756 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12757 (aarch64_handle_aligned_watchpoint)
12758 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12759 Take an enum target_hw_bp_type instead of an enum
12761 (aarch64_supports_z_point_type): New function.
12762 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12763 use Z_packet_to_target_hw_bp_type.
12765 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12767 * configure.ac: Only use -Werror by default when DEVELOPMENT
12769 * configure: Regenerate.
12771 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12773 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12774 * linux-x86-low.c (X86_64_USER_REGS): New.
12775 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12777 2014-04-28 Yao Qi <yao@codesourcery.com>
12779 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12782 2014-04-25 Pedro Alves <palves@redhat.com>
12785 * linux-low.c (linux_attach_fail_reason_string): New function.
12786 (linux_attach_lwp): Delete.
12787 (linux_attach_lwp_1): Rename to ...
12788 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12789 argument. Remove "initial" parameter. Return int instead of
12790 void. Don't error or warn here.
12791 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12792 failure to attach to the tgid. Call warning when failing to
12794 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12795 argument. Remove "initial" parameter. Return int instead of
12796 void. Don't error or warn here.
12797 (linux_attach_fail_reason_string): New declaration.
12798 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12799 interface change. Use linux_attach_fail_reason_string.
12801 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12802 Walfred Tedeschi <walfred.tedeschi@intel.com>
12804 * Makefile.in: Added rules to handle new files
12805 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12806 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12807 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12808 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12809 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12810 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12811 x32-avx512-linux.o.
12812 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12813 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12814 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12815 i386/x32-avx512.xml.
12816 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12817 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12818 i386/x32-avx512-linux.xml.
12819 * i387-fp.c (num_avx512_k_registers): New constant for number
12821 (num_avx512_zmmh_low_registers): New constant for number of
12822 lower ZMM registers (0-15).
12823 (num_avx512_zmmh_high_registers): New constant for number of
12824 higher ZMM registers (16-31).
12825 (num_avx512_ymmh_registers): New contant for number of higher
12826 YMM registers (ymm16-31 added by avx521 on x86_64).
12827 (num_avx512_xmm_registers): New constant for number of higher
12828 XMM registers (xmm16-31 added by AVX512 on x86_64).
12829 (struct i387_xsave): Add space for AVX512 registers.
12830 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12831 Add code to handle AVX512 registers.
12832 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12833 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12834 prototypei from generated file.
12835 (tdesc_amd64_avx512_linux): Likewise.
12836 (init_registers_x32_avx512_linux): Likewise.
12837 (tdesc_x32_avx512_linux): Likewise.
12838 (init_registers_i386_avx512_linux): Likewise.
12839 (tdesc_i386_avx512_linux): Likewise.
12840 (x86_64_regmap): Add AVX512 registers.
12841 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12843 (initialize_low_arch): Add code to initialize AVX512 registers.
12845 2014-04-23 Pedro Alves <palves@redhat.com>
12847 * mem-break.c (find_gdb_breakpoint_at): Make static.
12848 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12850 2014-04-23 Pedro Alves <palves@redhat.com>
12852 * i386-low.c: Don't include break-common.h here.
12853 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12854 prototype to take target_hw_bp_type as argument instead of a Z
12856 * i386-low.h: Include break-common.h here.
12857 (Z_packet_to_hw_type): Declare.
12858 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12860 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12861 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12862 (x86_remove_point): Convert the packet number to a
12863 target_hw_bp_type before calling i386_low_remove_watchpoint.
12864 * win32-i386-low.c (i386_insert_point): Convert the packet number
12865 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12866 (i386_remove_point): Convert the packet number to a
12867 target_hw_bp_type before calling i386_low_remove_watchpoint.
12869 2014-04-23 Pedro Alves <palves@redhat.com>
12871 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12873 2014-04-10 Pedro Alves <palves@redhat.com>
12875 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12876 Check if the condition or command is NULL before checking if the
12877 breakpoint is known. On success, return true.
12878 * mem-break.h (add_breakpoint_condition): Document return.
12879 (add_breakpoint_commands): Add describing comment.
12880 * server.c (skip_to_semicolon): New function.
12881 (process_point_options): Use it.
12883 2014-04-09 Pedro Alves <palves@redhat.com>
12885 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12888 2014-02-27 Pedro Alves <palves@redhat.com>
12891 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12893 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12895 (last_thread_of_process_p): Take a PID argument instead of a
12897 (linux_wait_for_lwp): Delete.
12898 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12900 (linux_low_filter_event): New function, party factored out from
12901 linux_wait_for_event.
12902 (linux_wait_for_event): Rename to ...
12903 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12904 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12905 sigsuspend. Check for zombie leaders.
12906 (linux_wait_for_event): Reimplement as wrapper around
12907 linux_wait_for_event_filtered.
12908 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12909 a normal or signal exit is seen, it's the whole process exiting.
12910 (wait_for_sigstop): No longer a for_each_inferior callback.
12911 Rewrite on top of linux_wait_for_event_filtered.
12912 (stop_all_lwps): Call wait_for_sigstop directly.
12913 * server.c (resume, handle_target_event): Handle
12914 TARGET_WAITKIND_NO_RESUMED.
12916 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12918 * win32-low.c (psapi_get_dll_name,
12919 * win32_CreateToolhelp32Snapshot): Delete.
12920 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12921 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12923 (handle_load_dll): Add function description.
12924 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12926 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12928 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12930 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12931 base address when calling win32_add_one_solib.
12932 (handle_load_dll): Delete local variable load_addr.
12933 Remove 0x1000 offset applied to DLL base address when calling
12934 win32_add_one_solib.
12935 (handle_unload_dll): Add comment.
12937 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12939 * win32-low.c (win32_add_all_dlls): Renames
12940 win32_ensure_ntdll_loaded. Rewrite function documentation.
12941 Adjust implementation to always load all DLLs.
12942 Add 0x1000 offset to DLL base address when calling
12943 win32_add_one_solib.
12944 (child_initialization_done): New static global.
12945 (do_initial_child_stuff): Set child_initialization_done to
12946 zero during child initialization, and 1 after. Replace call
12947 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12949 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12950 (handle_unload_dll): Add function documentation.
12951 (get_child_debug_event): Ignore load and unload DLL events
12952 during child initialization.
12954 2014-02-20 Doug Evans <dje@google.com>
12956 Remove global all_lwps.
12957 * inferiors.h (ptid_of): Move here from linux-low.h.
12958 (pid_of, lwpid_of): Ditto.
12959 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12960 parameter is a struct thread_info * now.
12961 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12962 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12963 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12965 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12966 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12967 * linux-arm-low.c (update_registers_callback): Update, "entry"
12968 parameter is a struct thread_info * now.
12969 Fetch lwpid from current_inferior directly.
12970 (arm_insert_point): Pass &all_threads to find_inferior instead of
12972 (arm_remove_point): Ditto.
12973 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12974 (arm_prepare_to_resume): Fetch pid from thread.
12975 (arm_read_description): Fetch lwpid from current_inferior directly.
12976 * linux-low.c (all_lwps): Delete.
12977 (delete_lwp): Delete call to remove_inferior.
12978 (handle_extended_wait): Fetch lwpid from thread.
12979 (add_lwp): Don't set lwp->entry.id. Remove call to
12980 add_inferior_to_list.
12981 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12982 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12983 (kill_one_lwp_callback): Ditto.
12984 (linux_kill): Don't dereference NULL pointer.
12985 Fetch ptid,lwpid from thread.
12986 (get_detach_signal): Fetch ptid from thread.
12987 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12988 Simplify call to regcache_invalidate_thread.
12989 (delete_lwp_callback): Update, "entry" parameter is a
12990 struct thread_info * now. Fetch pid from thread.
12991 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12992 (status_pending_p_callback): Update, "entry" parameter is a
12993 struct thread_info * now. Fetch ptid from thread.
12994 (find_lwp_pid): Update, "entry" parameter is a
12995 struct thread_info * now.
12996 (linux_wait_for_lwp): Fetch pid from thread.
12997 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12998 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12999 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13000 (dequeue_one_deferred_signal): Ditto.
13001 (cancel_breakpoint): Fetch ptid from current_inferior.
13002 (linux_wait_for_event): Pass &all_threads to find_inferior,
13003 not &all_lwps. Fetch ptid, lwpid from thread.
13004 (count_events_callback): Update, "entry" parameter is a
13005 struct thread_info * now.
13006 (select_singlestep_lwp_callback): Ditto.
13007 (select_event_lwp_callback): Ditto.
13008 (cancel_breakpoints_callback): Ditto.
13009 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13011 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13012 (unsuspend_one_lwp): Update, "entry" parameter is a
13013 struct thread_info * now.
13014 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13016 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13017 Fetch lwpid from thread, not lwp.
13018 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13019 Pass &all_threads to find_inferior, not &all_lwps.
13020 (send_sigstop): Fetch lwpid from thread, not lwp.
13021 (send_sigstop_callback): Update, "entry" parameter is a
13022 struct thread_info * now.
13023 (suspend_and_send_sigstop_callback): Ditto.
13024 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13025 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13026 struct thread_info * now.
13027 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13029 (lwp_running): Update, "entry" parameter is a
13030 struct thread_info * now.
13031 (stop_all_lwps): Fetch ptid from thread.
13032 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13033 (linux_resume_one_lwp): Fetch lwpid from thread.
13034 (linux_set_resume_request): Update, "entry" parameter is a
13035 struct thread_info * now. Fetch pid, lwpid from thread.
13036 (resume_status_pending_p): Update, "entry" parameter is a
13037 struct thread_info * now.
13038 (need_step_over_p): Ditto. Fetch lwpid from thread.
13039 (start_step_over): Fetch lwpid from thread.
13040 (linux_resume_one_thread): Update, "entry" parameter is a
13041 struct thread_info * now. Fetch lwpid from thread.
13042 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13043 (proceed_one_lwp): Update, "entry" parameter is a
13044 struct thread_info * now. Fetch lwpid from thread.
13045 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13046 struct thread_info * now.
13047 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13048 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13049 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13051 (regsets_store_inferior_registers): Ditto.
13052 (fetch_register, store_register): Ditto.
13053 (linux_read_memory, linux_write_memory): Ditto.
13054 (linux_request_interrupt): Ditto.
13055 (linux_read_auxv): Ditto.
13056 (linux_xfer_siginfo): Ditto.
13057 (linux_qxfer_spu): Ditto.
13058 (linux_qxfer_libraries_svr4): Ditto.
13059 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13060 moved to inferiors.h.
13062 (get_thread_lwp): Update.
13063 (struct lwp_info): Delete member "entry". Simplify comment for
13065 (all_lwps): Delete.
13066 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13067 current_inferior directly.
13068 (update_watch_registers_callback): Update, "entry" parameter is a
13069 struct thread_info * now. Fetch pid from thread.
13070 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13071 (mips_insert_point): Fetch lwpid from current_inferior.
13072 Pass &all_threads to find_inferior, not &all_lwps.
13073 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13074 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13076 (mips_stopped_data_address): Ditto.
13077 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13079 * linux-tile-low.c (tile_arch_setup): Ditto.
13080 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13081 (update_debug_registers_callback): Update, "entry" parameter is a
13082 struct thread_info * now. Fetch pid from thread.
13083 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13084 Pass &all_threads to find_inferior, not &all_lwps.
13085 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13086 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13087 Pass &all_threads to find_inferior, not &all_lwps.
13088 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13089 (i386_dr_low_get_status): Ditto.
13090 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13091 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13092 (x86_linux_read_description): Ditto.
13093 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13095 2014-02-20 Doug Evans <dje@google.com>
13097 * inferiors.c (get_first_inferior): Fix buglet.
13099 2014-02-19 Doug Evans <dje@google.com>
13101 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13102 * inferiors.c (add_thread): Change result type to struct thread_info *.
13103 All callers updated.
13104 (add_lwp): Call add_thread here instead of in callers.
13105 All callers updated.
13106 * linux-low.h (get_lwp_thread): Rewrite.
13107 (struct lwp_info): New member "thread".
13109 2014-02-19 Doug Evans <dje@google.com>
13111 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13112 All callers updated.
13114 2014-02-19 Doug Evans <dje@google.com>
13116 * inferiors.c (add_thread): Fix whitespace.
13118 2014-02-19 Doug Evans <dje@google.com>
13120 * dll.c (clear_dlls): Replace accessing list implemention details
13122 * gdbthread.h (get_first_thread): Declare.
13123 * inferiors.c (for_each_inferior_with_data): New function.
13124 (get_first_thread): New function.
13125 (find_thread_ptid): Simplify.
13126 (get_first_inferior): New function.
13127 (clear_list): Delete.
13128 (one_inferior_p): New function.
13129 (clear_inferior_list): New function.
13130 (clear_inferiors): Update.
13131 * inferiors.h (for_each_inferior_with_data): Declare.
13132 (clear_inferior_list): Declare.
13133 (one_inferior_p): Declare.
13134 (get_first_inferior): Declare.
13135 * linux-low.c (linux_wait_for_event): Replace accessing list
13136 implemention details with API function.
13137 * server.c (target_running): Ditto.
13138 (accumulate_file_name_length): New function.
13139 (emit_dll_description): New function.
13140 (handle_qxfer_libraries): Replace accessing list implemention
13141 details with API function.
13142 (handle_qxfer_threads_worker): New function.
13143 (handle_qxfer_threads_proper): Replace accessing list implemention
13144 details with API function.
13145 (handle_query): Ditto.
13146 (visit_actioned_threads_callback_ftype): New typedef.
13147 (visit_actioned_threads_data): New struct.
13148 (visit_actioned_threads): Rewrite to be find_inferior callback.
13149 (resume): Call find_inferior.
13150 (handle_status): Replace accessing list implemention
13151 details with API function.
13152 (process_serial_event): Replace accessing list implemention details
13154 * target.c (set_desired_inferior): Replace accessing list implemention
13155 details with API function.
13156 * tracepoint.c (same_process_p): New function.
13157 (gdb_agent_about_to_close): Replace accessing list implemention
13158 details with API function.
13159 * win32-low.c (child_delete_thread): Replace accessing list
13160 implemention details with API function.
13161 (match_dll_by_basename): New function.
13162 (dll_is_loaded_by_basename): New function.
13163 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13164 details call to dll_is_loaded_by_basename.
13166 2014-02-19 Doug Evans <dje@google.com>
13168 * dll.h (struct dll_info): Add comment.
13169 * gdbthread.h (struct thread_info): Add comment.
13170 (current_ptid): Simplify.
13171 * inferiors.c (add_process): Update.
13172 (remove_process): Update.
13173 * inferiors.h (struct process_info): Rename member "head" to "entry".
13174 * linux-low.c (delete_lwp): Update.
13176 (last_thread_of_process_p): Update.
13177 (kill_one_lwp_callback, linux_kill): Update.
13178 (status_pending_p_callback): Update.
13179 (wait_for_sigstop): Update. Simplify read of ptid.
13180 (start_step_over): Update.
13181 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13182 (get_lwp_thread): Update.
13183 (struct lwp_info): Rename member "head" to "entry".
13184 * regcache.h (inferior_list_entry): Delete.
13185 * server.c (kill_inferior_callback): Update.
13186 (detach_or_kill_inferior_callback): Update.
13187 (print_started_pid): Update.
13188 (print_attached_pid): Update.
13189 (process_serial_event): Simplify read of ptid.
13190 * thread-db.c (thread_db_create_event): Update.
13191 (thread_db_get_tls_address): Update.
13192 * win32-low.c (current_inferior_ptid): Simplify.
13194 2014-02-19 Tom Tromey <tromey@redhat.com>
13196 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13198 (target_supports_btrace): Update.
13200 2014-02-14 Yao Qi <yao@codesourcery.com>
13202 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13203 (rsp-low-ipa.o): New target.
13205 2014-02-12 Tom Tromey <tromey@redhat.com>
13207 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13208 convert_ascii_to_int.
13209 * regcache.c (registers_to_string): Likewise.
13210 * remote-utils.c (decode_M_packet): Likewise.
13211 * server.c (process_serial_event): Likewise.
13213 2014-02-12 Tom Tromey <tromey@redhat.com>
13215 * server.c (handle_query, handle_v_run): Use hex2bin, not
13217 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13219 2014-02-12 Tom Tromey <tromey@redhat.com>
13221 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13222 convert_int_to_ascii.
13223 * regcache.c (registers_to_string, collect_register_as_string):
13225 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13227 * server.c (process_serial_event): Likewise.
13228 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13229 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13231 2014-02-12 Tom Tromey <tromey@redhat.com>
13233 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13234 bin2hex, not hexify.
13235 * tracepoint.c (cmd_qtstatus): Likewise.
13237 2014-02-12 Tom Tromey <tromey@redhat.com>
13239 * remote-utils.c (monitor_output): Pass explicit length to
13242 2014-02-12 Tom Tromey <tromey@redhat.com>
13244 * tracepoint.c: Include rsp-low.h.
13245 * server.c: Include rsp-low.h.
13246 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13247 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13249 * remote-utils.c: Include rsp-low.h.
13250 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13251 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13252 (convert_int_to_ascii, convert_ascii_to_int): Move to
13254 * regcache.c: Include rsp-low.h.
13255 * ax.c: Include rsp-low.h.
13256 * Makefile.in (SFILES): Add common/rsp-low.c.
13257 (OBS): Add rsp-low.o.
13258 (rsp-low.o): New target.
13260 2014-02-12 Tom Tromey <tromey@redhat.com>
13262 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13263 Include print-utils.h.
13264 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13265 (plongest, thirty_two, phex_nz): Remove.
13266 * Makefile.in (SFILES): Add common/print-utils.c.
13267 (OBS): Add print-utils.o.
13268 (print-utils-ipa.o): New target.
13269 (print-utils.o): New target.
13270 (IPA_OBJS): Add print-utils-ipa.o.
13272 2014-02-06 Tom Tromey <tromey@redhat.com>
13274 * Makefile.in (SFILES): Fix indentation.
13276 2014-02-05 Doug Evans <dje@google.com>
13278 * linux-low.c (linux_wait_for_event): Improve comment.
13279 (linux_wait_1): Keep current_inferior in sync with event_child.
13281 2014-01-22 Doug Evans <dje@google.com>
13283 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13285 2014-01-22 Doug Evans <dje@google.com>
13287 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13288 * configure: Regenerate.
13289 * config.in: Regenerate.
13290 * Makefile.in (SFILES): Add debug.c.
13291 (OBS): Add debug.o.
13292 * debug.c: New file.
13293 * debug.h: New file.
13294 * linux-aarch64-low.c (*): Update all debugging printfs to use
13295 debug_printf instead of fprintf.
13296 * linux-arm-low.c (*): Ditto.
13297 * linux-cris-low.c (*): Ditto.
13298 * linux-crisv32-low.c (*): Ditto.
13299 * linux-m32r-low.c (*): Ditto.
13300 * linux-sparc-low.c (*): Ditto.
13301 * linux-x86.c (*): Ditto.
13302 * linux-low.c (*): Ditto.
13303 (linux_wait_1): Add calls to debug_enter, debug_exit.
13304 (linux_wait): Remove redundant debugging printf.
13305 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13306 (linux_resume, unstop_all_lwps): Ditto.
13307 * mem-break.c (*): Update all debugging printfs to use
13308 debug_printf instead of fprintf.
13309 * remote-utils.c (*): Ditto.
13310 * thread-db.c (*): Ditto.
13311 * server.c #include <ctype.h>, "gdb_vecs.h".
13312 (debug_threads): Moved to debug.c.
13313 (*): Update all debugging printfs to use debug_printf instead of
13315 (start_inferior): Replace call to fflush with call to debug_flush.
13316 (monitor_show_help): Mention set debug-format.
13317 (parse_debug_format_options): New function.
13318 (handle_monitor_command): Handle "monitor set debug-format".
13319 (gdbserver_usage): Mention --debug-format.
13320 (main): Parse --debug-format.
13321 * server.h (debug_threads): Declaration moved to debug.h.
13322 #include "debug.h".
13323 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13324 trace_debug_1 that uses debug_printf.
13325 (tracepoint_look_up_symbols): Update all debugging printfs to use
13326 debug_printf instead of fprintf.
13328 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13330 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13333 2014-01-17 Pedro Alves <palves@redhat.com>
13336 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13337 defined after including gdb_proc_service.h.
13339 2014-01-16 Doug Evans <dje@google.com>
13341 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13342 (match_dll): Use it.
13344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13346 * target.h (target_ops) <read_btrace>: Change parameters and
13347 return type to allow error reporting.
13348 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13349 trace reading errors on.
13350 * linux-low.c (linux_low_read_btrace): Pass trace reading
13352 (linux_low_disable_btrace): New.
13354 2014-01-15 Doug Evans <dje@google.com>
13356 * inferiors.c (thread_id_to_gdb_id): Delete.
13357 * inferiors.h (thread_id_to_gdb_id): Delete.
13359 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13361 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13362 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13365 2014-01-08 Pedro Alves <palves@redhat.com>
13367 * server.c (handle_status): Don't discard previous queued stop
13368 replies or thread's pending status here.
13369 (main) <disconnection>: Do it here instead.
13371 2014-01-08 Pedro Alves <palves@redhat.com>
13373 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13374 * server.c (visit_actioned_threads, handle_pending_status): New
13376 (handle_v_cont): Factor out parts to ...
13377 (resume): ... this new function. If in all-stop, and a thread
13378 being resumed has a pending status, report it without actually
13380 (myresume): Adjust to use the new 'resume' function.
13381 (clear_pending_status_callback, set_pending_status_callback)
13382 (find_status_pending_thread_callback): New functions.
13383 (handle_status): Handle the case of multiple threads having
13384 interesting statuses to report. Report threads' real last signal
13385 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13386 with an interesting thread to report the status for, instead of
13387 always reporting the status of the first thread.
13389 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13391 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13392 * gdbreplay.c (gdbreplay_version): Likewise.
13394 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13396 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13397 iov.iov_len with the real length in use.
13399 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13401 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13402 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13403 for all targets that use win32-low.c.
13404 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13405 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13407 2013-12-13 Pedro Alves <palves@redhat.com>
13409 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13410 if equal to TARGET_WAITKIND_LOADED.
13411 * win32-low.c (cached_status): New static global.
13412 (win32_wait): Add declaration.
13413 (do_initial_child_stuff): Flush all initial pending debug events
13414 up to the initial breakpoint.
13415 (win32_wait): If CACHED_STATUS was set, return that instead
13416 of doing a real wait. Remove the code resuming the execution
13417 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13418 during the initial phase. Also remove the code changing
13419 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13420 TARGET_WAITKIND_STOPPED.
13422 2013-12-11 Yao Qi <yao@codesourcery.com>
13424 * notif.c (handle_notif_ack): Return 0 if no notification
13427 2013-11-20 Doug Evans <dje@google.com>
13429 * linux-low.c (linux_set_resume_request): Fix comment.
13431 2013-11-20 Doug Evans <dje@google.com>
13433 * linux-low.c (resume_status_pending_p): Tweak comment.
13435 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13437 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13438 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13439 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13440 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13441 (srv_amd64_regobj): Add amd64-mpx.o.
13442 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13443 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13444 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13445 * i387-fp.c (num_pl_bnd_register) Added constant.
13446 (num_pl_bnd_cfg_registers) Added constant.
13447 (struct i387_xsave) Added reserved area and MPX fields.
13448 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13449 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13451 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13452 (init_registers_amd64_mpx_linux): Declare new function.
13453 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13454 (x86_64_regmap): Add MPX registers.
13455 (x86_linux_read_description): Add MPX case.
13456 (initialize_low_arch): Initialize MPX targets.
13458 2013-11-18 Tom Tromey <tromey@redhat.com>
13460 * configure: Rebuild.
13461 * configure.ac: Don't check for stdlib.h.
13462 * gdbreplay.c: Unconditionally include stdlib.h.
13464 2013-11-18 Tom Tromey <tromey@redhat.com>
13466 * config.in: Rebuild.
13467 * configure: Rebuild.
13468 * configure.ac: Don't use AC_HEADER_DIRENT.
13470 2013-11-18 Tom Tromey <tromey@redhat.com>
13472 * server.h: Don't check HAVE_STRING_H.
13473 * gdbreplay.c: Don't check HAVE_STRING_H.
13474 * configure: Rebuild.
13476 2013-11-18 Tom Tromey <tromey@redhat.com>
13478 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13481 2013-11-08 Tom Tromey <tromey@redhat.com>
13483 * configure, config.in: Rebuild.
13484 * configure.ac: Remove unused configury.
13486 2013-11-08 Tom Tromey <tromey@redhat.com>
13488 * acinclude.m4: Include common.m4, codeset.m4.
13489 * configure, config.in: Rebuild.
13490 * configure.ac: Use GDB_AC_COMMON.
13492 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13494 * linux-s390-low.c (HWCAP_S390_TE): New define.
13495 (s390_arch_setup): Consider the TE field in the HWCAP for
13496 determining 'have_regset_tdb'.
13498 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13501 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13504 2013-10-02 Pedro Alves <palves@redhat.com>
13506 * server.c (process_serial_event): Don't output "GDBserver
13507 exiting" if GDB is connected through stdio.
13508 * target.c (mywait): Likewise, be silent if GDB is connected
13511 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13513 * lynx-low.c (lynx_add_threads_after_attach): New function.
13514 (lynx_attach): Remove call to add_thread. Add call to
13515 lynx_add_threads_after_attach instead.
13517 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13519 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13520 * config.in, configure: Regenerated.
13522 2013-09-18 Yao Qi <yao@codesourcery.com>
13525 * server.c (start_inferior): Clear 'resume_info'.
13527 2013-09-16 Jiong Wang <jiwang@tilera.com>
13529 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13532 2013-09-16 Jiong Wang <jiwang@tilera.com>
13534 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13535 linux-tile-low.o to srv_tgtobj.
13537 2013-09-16 Will Newton <will.newton@linaro.org>
13539 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13542 2013-09-06 Pedro Alves <palves@redhat.com>
13544 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13545 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13546 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13547 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13548 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13549 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13551 2013-09-06 Pedro Alves <palves@redhat.com>
13553 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13554 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13556 2013-09-06 Pedro Alves <palves@redhat.com>
13558 * linux-amd64-ipa.c: Include tracepoint.h.
13559 * linux-i386-ipa.c: Include tracepoint.h.
13561 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13563 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13564 (ps_get_thread_area): New function.
13566 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13568 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13569 (initialize_low_arch): Call init_registers_crisv32 rather than
13570 init_register_crisv32.
13572 2013-09-05 Pedro Alves <palves@redhat.com>
13574 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13576 * hostio.h: ... this new file.
13577 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13578 win32-low.c: Include hostio.h.
13580 2013-09-05 Pedro Alves <palves@redhat.com>
13582 * server.h (gdb_client_data, handler_func, callback_handler_func)
13583 (delete_file_handler, add_file_handler, append_callback_event)
13584 (delete_callback_event, start_event_loop, initialize_event_loop):
13585 Move to event-loop.h and include it.
13586 * event-loop.h: New file.
13588 2013-09-05 Pedro Alves <palves@redhat.com>
13590 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13591 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13592 (loaded_dll, unloaded_dll): Move to ...
13593 * dll.h: ... this new file.
13594 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13596 2013-09-05 Pedro Alves <palves@redhat.com>
13598 * server.h (current_process, get_thread_process, all_processes)
13599 (add_inferior_to_list, for_each_inferior, current_inferior)
13600 (remove_inferior, add_process, remove_process, find_process_pid)
13601 (have_started_inferiors_p, have_attached_inferiors_p)
13602 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13603 (clear_inferiors, find_inferior, find_inferior_id)
13604 (inferior_target_data, set_inferior_target_data)
13605 (inferior_regcache_data, set_inferior_regcache_data): Move to
13606 inferiors.h, and include it.
13607 * inferiors.h: New file.
13609 2013-09-05 Pedro Alves <palves@redhat.com>
13611 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13615 2013-09-05 Pedro Alves <palves@redhat.com>
13617 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13619 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13620 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13621 (handle_tracepoint_general_set, handle_tracepoint_query)
13622 (tracepoint_finished_step, tracepoint_was_hit)
13623 (release_while_stepping_state_list, current_traceframe)
13624 (in_readonly_region, traceframe_read_mem)
13625 (fetch_traceframe_registers, traceframe_read_sdata)
13626 (traceframe_read_info, struct fast_tpoint_collect_status)
13627 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13628 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13629 (supply_fast_tracepoint_registers)
13630 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13631 (ipa_tdesc, claim_trampoline_space)
13632 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13633 (agent_mem_read, agent_get_trace_state_variable_value)
13634 (agent_set_trace_state_variable_value, agent_tsv_read)
13635 (agent_mem_read_string, get_raw_reg_func_addr)
13636 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13637 * tracepoint.h: ... this new file.
13639 2013-09-05 Pedro Alves <palves@redhat.com>
13641 * server.h (perror_with_name, error, fatal, warning, paddress)
13642 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13644 * utils.h: New file.
13646 2013-09-05 Pedro Alves <palves@redhat.com>
13648 * server.h (remote_debug, noack_mode, transport_is_reliable)
13649 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13650 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13651 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13652 (write_enn, initialize_async_io, enable_async_io)
13653 (disable_async_io, check_remote_input_interrupt_request)
13654 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13655 (dead_thread_notify, prepare_resume_reply)
13656 (decode_address_to_semicolon, decode_address, decode_m_packet)
13657 (decode_M_packet, decode_X_packet, decode_xfer_write)
13658 (decode_search_memory_packet, unhexify, hexify)
13659 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13660 (look_up_one_symbol, relocate_instruction)
13661 (monitor_output): Move to remote-utils.h, and include it.
13662 * remote-utils.h: New file.
13664 2013-09-05 Pedro Alves <palves@redhat.com>
13666 * server.h (_): Delete.
13668 2013-09-02 Pedro Alves <palves@redhat.com>
13670 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13671 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13673 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13675 2013-09-02 Pierre Muller <muller@sourceware.org>
13677 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13678 or WriteProcessMemory complete successfully and handle
13679 ERROR_PARTIAL_COPY error.
13681 2013-09-02 Pedro Alves <palves@redhat.com>
13683 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13684 error instead of EIO.
13686 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13689 * linux-low.c: Include filestuff.h.
13690 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13691 * lynx-low.c: Include filestuff.h.
13692 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13693 * server.c: Include filestuff.h.
13694 (main): Call notice_open_fds.
13695 * spu-low.c: Include filestuff.h.
13696 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13698 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13700 * Makefile.in: Explain why ../target and ../nat are not
13701 listed as include file search paths.
13702 (linux-waitpid.o): New object file rule.
13703 * configure.srv (srv_native_linux_obj): New variable.
13704 Replace all occurrences of linux native object files with
13705 $srv_native_linux_obj.
13706 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13707 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13708 (linux_enable_event_reporting): Remove declaration.
13709 (my_waitpid): Moved to common/linux-waitpid.c.
13710 (linux_wait_for_event): Pass ptid when calling
13711 linux_enable_event_reporting.
13712 (linux_supports_tracefork_flag): Remove.
13713 (linux_enable_event_reporting): Likewise.
13714 (linux_tracefork_grandchild): Remove.
13715 (STACK_SIZE): Moved to common/linux-ptrace.c.
13716 (linux_tracefork_child): Remove.
13717 (linux_test_for_tracefork): Remove.
13718 (linux_look_up_symbols): Call linux_supports_traceclone.
13719 (initialize_low): Remove call to linux_test_for_tracefork.
13720 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13721 common/linux-ptrace.h.
13722 (PTRACE_TYPE_ARG4): Likewise.
13723 Include linux-ptrace.h.
13725 2013-08-21 Pedro Alves <palves@redhat.com>
13727 * config.in: Renegerate.
13729 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13731 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13732 (SFILES): Remove $(srcdir)/common/target-common.c and
13733 add $(srcdir)/target/waitstatus.c.
13734 (OBS): Remove target-common.o and add waitstatus.o.
13735 (server_h): Remove $(srcdir)/../common/target-common.h and
13736 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13737 and $(srcdir)/../target/waitstatus.h.
13738 (target-common.o): Remove.
13739 (waitstatus.o): New target object file.
13740 * target.h: Do not include target-common.h and
13741 include target/resume.h, target/wait.h and
13742 target/waitstatus.h.
13744 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13746 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13747 to PTRACE_TYPE_ARG3.
13748 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13749 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13751 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13752 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13754 2013-07-27 Jie Zhang <jie@codesourcery.com>
13755 Daniel Jacobowitz <dan@codesourcery.com>
13756 Yao Qi <yao@codesourcery.com>
13758 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13759 (mips-linux-watch.o): New rule.
13760 (mips_linux_watch_h): New variable.
13761 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13763 * linux-mips-low.c: Include mips-linux-watch.h.
13764 (struct arch_process_info, struct arch_lwp_info): New.
13765 (update_watch_registers_callback): New function.
13766 (mips_linux_new_process, mips_linux_new_thread) New functions.
13767 (mips_linux_prepare_to_resume, mips_insert_point): New
13769 (mips_remove_point, mips_stopped_by_watchpoint): New
13771 (rsp_bp_type_to_target_hw_bp_type): New function.
13772 (mips_stopped_data_address): New function.
13773 (the_low_target): Add watchpoint support functions.
13775 2013-07-27 Yao Qi <yao@codesourcery.com>
13777 * i386-low.c: Include break-common.h.
13778 (enum target_hw_bp_type): Remove.
13780 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13782 * Makefile.in (SFILES): /common/target-common.c.
13783 (OBS): Add target-common.o.
13784 (server_h): Add $(srcdir)/../common/target-common.h.
13785 (target-common.o): New target.
13786 * server.c (queue_stop_reply_callback): Free
13787 status string after use.
13788 * target.c (target_waitstatus_to_string): Remove.
13789 * target.h: Include target-common.h.
13790 (resume_kind): Likewise.
13791 (target_waitkind): Likewise.
13792 (target_waitstatus): Likewise.
13793 (TARGET_WNOHANG): Likewise.
13795 2013-07-04 Yao Qi <yao@codesourcery.com>
13797 * Makefile.in (host_alias): Use @host_noncanonical@.
13798 (target_alias): Use @target_noncanonical@.
13799 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13800 ACX_NONCANONICAL_HOST.
13801 * configure: Regenerated.
13804 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13806 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13807 * configure: Rebuild.
13808 * Makefile.in (version_host, version_target): Get from configure.
13809 (version.c): Use $(version_host) and $(version_target).
13811 2013-07-03 Pedro Alves <palves@redhat.com>
13813 * Makefile.in (config.status): Depend on development.sh.
13814 * acinclude.m4: Include libmcheck.m4.
13815 * configure: Regenerate.
13817 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13819 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13820 attribute inside the parentheses.
13821 (winapi_DebugSetProcessKillOnExit): Ditto.
13822 (winapi_DebugBreakProcess): Ditto.
13823 (winapi_GenerateConsoleCtrlEvent): Ditto.
13825 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13827 * notif.h (notif_event): Add a dummy member to avoid compiler
13830 2013-07-01 Pedro Alves <palves@redhat.com>
13832 * hostio.c (HOSTIO_PATH_MAX): Define.
13833 (require_filename, handle_open, handle_unlink, handle_readlink):
13836 2013-07-01 Pedro Alves <palves@redhat.com>
13838 * server.h: Include "pathmax.h".
13839 * linux-low.c: Don't include sys/param.h.
13840 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13842 * win32-low.c: Don't include sys/param.h.
13843 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13845 2013-07-01 Pedro Alves <palves@redhat.com>
13847 * event-loop.c: Don't check HAVE_UNISTD_H before including
13849 * gdbreplay.c: Likewise.
13850 * remote-utils.c: Likewise.
13851 * server.c: Likewise.
13852 * configure.ac: Don't check for unistd.h.
13853 * configure: Regenerate.
13855 2013-06-28 Tom Tromey <tromey@redhat.com>
13857 * Makefile.in (version.c): Use version.in, not
13860 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13862 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13863 * configure: Rebuild.
13864 * Makefile.in (version_host, version_target): Get from configure.
13865 (version.c): Use $(version_host) and $(version_target).
13867 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13869 Fix trace-status to output user name without trailing colon.
13870 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13872 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13874 Fix trace-status to output proper start-time and stop-time.
13875 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13876 output start time and stop time in hex as gdb expects.
13878 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13880 * tracepoint.c (build_traceframe_info_xml): Output trace state
13881 variables present in the trace buffer.
13883 2013-06-24 Tom Tromey <tromey@redhat.com>
13885 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13887 (version.o): Remove.
13888 * gdbreplay.c: Include version.h.
13889 (version, host_name): Don't declare.
13890 * server.h: Include version.h.
13891 (version, host_name): Don't declare.
13893 2013-06-12 Pedro Alves <palves@redhat.com>
13895 * linux-x86-low.c (linux_is_elf64): Delete global.
13896 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13897 with local linux_pid_exe_is_elf_64_file use.
13899 2013-06-11 Pedro Alves <palves@redhat.com>
13901 * linux-low.c (regset_disabled, disable_regset): New functions.
13902 (regsets_fetch_inferior_registers)
13903 (regsets_store_inferior_registers): Use them.
13904 (initialize_regsets_info); Don't allocate the disabled_regsets
13906 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13909 2013-06-11 Pedro Alves <palves@redhat.com>
13911 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13914 2013-06-11 Pedro Alves <palves@redhat.com>
13916 * linux-x86-low.c (initialize_low_arch): Call
13917 init_registers_x32_avx_linux.
13919 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13921 Fix compatibility with Android Bionic.
13922 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13925 2013-06-07 Pedro Alves <palves@redhat.com>
13928 * Makefile.in (OBS): Add tdesc.o.
13929 (IPA_OBJS): Add tdesc-ipa.o.
13930 (tdesc-ipa.o): New rule.
13931 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13933 * linux-low.c (new_inferior): Delete.
13934 (disabled_regsets, num_regsets): Delete.
13935 (linux_add_process): Adjust to set the new per-process
13937 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13938 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13939 was a stop. When calling arch_setup, switch the current inferior
13940 to the thread that got an event.
13941 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13942 (regsets_fetch_inferior_registers)
13943 (regsets_store_inferior_registers): New regsets_info parameter.
13945 (linux_register_in_regsets): New regs_info parameter. Adjust to
13947 (register_addr, fetch_register, store_register): New usrregs_info
13948 parameter. Adjust to use it.
13949 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13950 parameter regs_info. Adjust to use it.
13951 (linux_fetch_registers): Get the current inferior's regs_info, and
13953 (linux_store_registers): Ditto.
13954 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13955 (initialize_low): Don't initialize the target_regsets here. Call
13956 initialize_low_arch.
13957 * linux-low.h (target_regsets): Delete declaration.
13958 (struct regsets_info): New.
13959 (struct usrregs_info): New.
13960 (struct regs_info): New.
13961 (struct process_info_private) <new_inferior>: New field.
13962 (struct linux_target_ops): Delete the num_regs, regmap, and
13963 regset_bitmap fields. New field regs_info.
13964 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13965 * i387-fp.c (num_xmm_registers): Delete.
13966 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13967 calls to new interface.
13968 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13969 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13970 Infer the number of xmm registers from the regcache's target
13972 * i387-fp.h (num_xmm_registers): Delete.
13973 * inferiors.c (add_thread): Don't install the thread's regcache
13975 * proc-service.c (gregset_info): Fetch the current inferior's
13976 regs_info. Adjust to use it.
13977 * regcache.c: Include tdesc.h.
13978 (register_bytes, reg_defs, num_registers)
13979 (gdbserver_expedite_regs): Delete.
13980 (get_thread_regcache): If the thread doesn't have a regcache yet,
13981 create one, instead of aborting gdbserver.
13982 (regcache_invalidate_one): Rename to ...
13983 (regcache_invalidate_thread): ... this.
13984 (regcache_invalidate_one): New.
13985 (regcache_invalidate): Only invalidate registers of the current
13987 (init_register_cache): Add target_desc parameter, and use it.
13988 (new_register_cache): Ditto. Assert the target description has a
13989 non zero registers_size.
13990 (regcache_cpy): Add assertions. Adjust.
13991 (realloc_register_cache, set_register_cache): Delete.
13992 (registers_to_string, registers_from_string): Adjust.
13993 (find_register_by_name, find_regno, find_register_by_number)
13994 (register_cache_size): Add target_desc parameter, and use it.
13995 (free_register_cache_thread, free_register_cache_thread_one)
13996 (regcache_release, register_cache_size): New.
13997 (register_size): Add target_desc parameter, and use it.
13998 (register_data, supply_register, supply_register_zeroed)
13999 (supply_regblock, supply_register_by_name, collect_register)
14000 (collect_register_as_string, collect_register_by_name): Adjust.
14001 * regcache.h (struct target_desc): Forward declare.
14002 (struct regcache) <tdesc>: New field.
14003 (init_register_cache, new_register_cache): Add target_desc
14005 (regcache_invalidate_thread): Declare.
14006 (regcache_invalidate_one): Delete declaration.
14007 (regcache_release): Declare.
14008 (find_register_by_number, register_cache_size, register_size)
14009 (find_regno): Add target_desc parameter.
14010 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14012 * remote-utils.c: Include tdesc.h.
14013 (outreg, prepare_resume_reply): Adjust.
14014 * server.c: Include tdesc.h.
14015 (gdbserver_xmltarget): Delete declaration.
14016 (get_features_xml, process_serial_event): Adjust.
14017 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14019 (struct process_info) <tdesc>: New field.
14020 (ipa_tdesc): Declare.
14021 * tdesc.c: New file.
14022 * tdesc.h: New file.
14023 * tracepoint.c: Include tdesc.h.
14024 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14025 (get_context_regcache): Adjust to pass ipa_tdesc down.
14026 (do_action_at_tracepoint): Adjust to get the register cache size
14027 from the context regcache's description.
14028 (traceframe_walk_blocks): Adjust to get the register cache size
14029 from the current trace frame's description.
14030 (traceframe_get_pc): Adjust to get current trace frame's
14031 description and pass it down.
14032 (gdb_collect): Adjust to get the register cache size from the
14034 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14035 (gdbserver_xmltarget): Delete.
14036 (initialize_low_tracepoint): Set the ipa's target description.
14037 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14038 (initialize_low_tracepoint): Set the ipa's target description.
14039 * linux-x86-low.c: Include tdesc.h.
14040 [__x86_64__] (is_64bit_tdesc): New.
14041 (ps_get_thread_area, x86_get_thread_area): Use it.
14042 (i386_cannot_store_register): Rename to ...
14043 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14044 (i386_cannot_fetch_register): Rename to ...
14045 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14046 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14048 (target_regsets): Rename to ...
14049 (x86_regsets): ... this.
14050 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14052 (x86_siginfo_fixup): Use is_64bit_tdesc.
14053 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14054 (tdesc_x32_avx_linux, tdesc_x32_linux)
14055 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14057 (x86_linux_update_xmltarget): Delete.
14058 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14059 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14060 (AMD64_LINUX_USER64_CS): New.
14061 (x86_linux_read_description): New, based on
14062 x86_linux_update_xmltarget.
14063 (same_process_callback): New.
14064 (x86_arch_setup_process_callback): New.
14065 (x86_linux_update_xmltarget): New.
14066 (x86_regsets_info): New.
14067 (amd64_linux_regs_info): New.
14068 (i386_linux_usrregs_info): New.
14069 (i386_linux_regs_info): New.
14070 (x86_linux_regs_info): New.
14071 (x86_arch_setup): Reimplement.
14072 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14073 (x86_emit_ops): Ditto.
14074 (the_low_target): Adjust. Install x86_linux_regs_info,
14075 x86_cannot_fetch_register, and x86_cannot_store_register.
14076 (initialize_low_arch): New.
14077 * linux-ia64-low.c (tdesc_ia64): Declare.
14078 (ia64_fetch_register): Adjust.
14079 (ia64_usrregs_info, regs_info): New globals.
14080 (ia64_regs_info): New function.
14081 (the_low_target): Adjust.
14082 (initialize_low_arch): New function.
14083 * linux-sparc-low.c (tdesc_sparc64): Declare.
14084 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14086 (sparc_arch_setup): New function.
14087 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14088 (the_low_target): Adjust.
14089 (initialize_low_arch): New function.
14090 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14091 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14092 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14093 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14094 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14095 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14096 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14097 (tdesc_powerpc_isa205_vsx64l): Declare.
14098 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14099 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14100 (ppc_set_pc, ppc_get_hwcap): Adjust.
14101 (ppc_usrregs_info): Forward declare.
14102 (!__powerpc64__) ppc_regmap_adjusted: New global.
14103 (ppc_arch_setup): Adjust to the current process'es target
14105 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14106 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14107 (ppc_store_evrregset): Adjust.
14108 (target_regsets): Rename to ...
14109 (ppc_regsets): ... this, and make static.
14110 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14111 (ppc_regs_info): New function.
14112 (the_low_target): Adjust.
14113 (initialize_low_arch): New function.
14114 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14115 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14116 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14117 (tdesc_s390x_linux64v2): Declare.
14118 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14119 (s390_fill_gregset, s390_store_last_break): Adjust.
14120 (target_regsets): Rename to ...
14121 (s390_regsets): ... this, and make static.
14122 (s390_get_pc, s390_set_pc): Adjust.
14123 (s390_get_hwcap): New target_desc parameter, and use it.
14124 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14125 (s390_arch_setup): Adjust to set the current process'es target
14126 description. Don't adjust the regmap.
14127 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14128 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14129 (regs_info_3264): New globals.
14130 (s390_regs_info): New function.
14131 (the_low_target): Adjust.
14132 (initialize_low_arch): New function.
14133 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14134 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14135 [__mips64] (init_registers_mips_linux)
14136 (init_registers_mips_dsp_linux): Delete defines.
14137 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14138 (have_dsp): New global.
14139 (mips_read_description): New, based on mips_arch_setup.
14140 (mips_arch_setup): Reimplement.
14141 (get_usrregs_info): New function.
14142 (mips_cannot_fetch_register, mips_cannot_store_register)
14143 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14144 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14145 (target_regsets): Rename to ...
14146 (mips_regsets): ... this, and make static.
14147 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14148 (dsp_regs_info, regs_info): New globals.
14149 (mips_regs_info): New function.
14150 (the_low_target): Adjust.
14151 (initialize_low_arch): New function.
14152 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14153 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14155 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14156 (arm_read_description): New, with bits factored from
14158 (arm_arch_setup): Reimplement.
14159 (target_regsets): Rename to ...
14160 (arm_regsets): ... this, and make static.
14161 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14162 (arm_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-m68k-low.c (tdesc_m68k): Declare.
14166 (target_regsets): Rename to ...
14167 (m68k_regsets): ... this, and make static.
14168 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14169 (m68k_regs_info): New function.
14170 (m68k_arch_setup): New function.
14171 (the_low_target): Adjust.
14172 (initialize_low_arch): New function.
14173 * linux-sh-low.c (tdesc_sharch): Declare.
14174 (target_regsets): Rename to ...
14175 (sh_regsets): ... this, and make static.
14176 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14177 (sh_regs_info, sh_arch_setup): New functions.
14178 (the_low_target): Adjust.
14179 (initialize_low_arch): New function.
14180 * linux-bfin-low.c (tdesc_bfin): Declare.
14181 (bfin_arch_setup): New function.
14182 (bfin_usrregs_info, regs_info): New globals.
14183 (bfin_regs_info): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-cris-low.c (tdesc_cris): Declare.
14187 (cris_arch_setup): New function.
14188 (cris_usrregs_info, regs_info): New globals.
14189 (cris_regs_info): New function.
14190 (the_low_target): Adjust.
14191 (initialize_low_arch): New function.
14192 * linux-cris-low.c (tdesc_crisv32): Declare.
14193 (cris_arch_setup): New function.
14194 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14195 (cris_regs_info): New function.
14196 (the_low_target): Adjust.
14197 (initialize_low_arch): New function.
14198 * linux-m32r-low.c (tdesc_m32r): Declare.
14199 (m32r_arch_setup): New function.
14200 (m32r_usrregs_info, regs_info): New globals.
14201 (m32r_regs_info): Adjust.
14202 (initialize_low_arch): New function.
14203 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14204 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14205 (tic6x_usrregs_info): Forward declare.
14206 (tic6x_read_description): New function, based on ...
14207 (tic6x_arch_setup): ... this. Reimplement.
14208 (target_regsets): Rename to ...
14209 (tic6x_regsets): ... this, and make static.
14210 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14211 (tic6x_regs_info): New function.
14212 (the_low_target): Adjust.
14213 (initialize_low_arch): New function.
14214 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14215 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14216 (target_regsets): Rename to ...
14217 (xtensa_regsets): ... this, and make static.
14218 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14220 (xtensa_arch_setup, xtensa_regs_info): New functions.
14221 (the_low_target): Adjust.
14222 (initialize_low_arch): New function.
14223 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14224 (nios2_arch_setup): Set the current process'es tdesc.
14225 (target_regsets): Rename to ...
14226 (nios2_regsets): ... this.
14227 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14228 (nios2_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14232 (aarch64_arch_setup): Set the current process'es tdesc.
14233 (target_regsets): Rename to ...
14234 (aarch64_regsets): ... this.
14235 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14236 (aarch64_regs_info): New function.
14237 (the_low_target): Adjust.
14238 (initialize_low_arch): New function.
14239 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14241 (target_regsets): Rename to ...
14242 (tile_regsets): ... this.
14243 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14244 (tile_regs_info): New function.
14245 (tile_arch_setup): Set the current process'es tdesc.
14246 (the_low_target): Adjust.
14247 (initialize_low_arch): New function.
14248 * spu-low.c (tdesc_spu): Declare.
14249 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14250 * win32-arm-low.c (tdesc_arm): Declare.
14251 (arm_arch_setup): New function.
14252 (the_low_target): Install arm_arch_setup instead of
14253 init_registers_arm.
14254 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14255 (init_windows_x86): Rename to ...
14256 (i386_arch_setup): ... this. Set `win32_tdesc'.
14257 (the_low_target): Adjust.
14258 * win32-low.c (win32_tdesc): New global.
14259 (child_add_thread): Don't create the thread cache here.
14260 (do_initial_child_stuff): Set the new process'es tdesc.
14261 * win32-low.h (struct target_desc): Forward declare.
14262 (win32_tdesc): Declare.
14263 * lynx-i386-low.c (tdesc_i386): Declare global.
14264 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14265 * lynx-low.c (lynx_tdesc): New global.
14266 (lynx_add_process): Set the new process'es tdesc.
14267 * lynx-low.h (struct target_desc): Forward declare.
14268 (lynx_tdesc): Declare global.
14269 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14270 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14271 * nto-low.c (nto_tdesc): New global.
14272 (do_attach): Set the new process'es tdesc.
14273 * nto-low.h (struct target_desc): Forward declare.
14274 (nto_tdesc): Declare.
14275 * nto-x86-low.c (tdesc_i386): Declare.
14276 (nto_x86_arch_setup): Set `nto_tdesc'.
14278 2013-06-04 Gary Benson <gbenson@redhat.com>
14280 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14281 to qSupported response when appropriate.
14282 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14283 with nonzero-length annex.
14284 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14285 arguments supplied in annex.
14287 2013-05-31 Doug Evans <dje@google.com>
14290 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14291 64 bits in 64-cross-32 environment.
14293 2013-05-28 Pedro Alves <palves@redhat.com>
14295 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14296 (aarch64-without-fpu.c): Delete rule.
14297 * configure.srv (aarch64*-*-linux*): Remove references to
14298 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14299 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14302 2013-05-24 Pedro Alves <palves@redhat.com>
14304 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14305 instead of strchr/decode_address. Error if the range isn't split
14306 with a ','. Don't assume there's be a ':' in the action.
14308 2013-05-23 Yao Qi <yao@codesourcery.com>
14309 Pedro Alves <palves@redhat.com>
14311 * linux-low.c (lwp_in_step_range): New function.
14312 (linux_wait_1): If the thread was range stepping and stopped
14313 outside the stepping range, report the stop to GDB. Otherwise,
14314 continue stepping. Add range stepping debug output.
14315 (linux_set_resume_request): Copy the step range from the resume
14316 request to the lwp.
14317 (linux_supports_range_stepping): New.
14318 (linux_target_ops) <supports_range_stepping>: Set to
14319 linux_supports_range_stepping.
14320 * linux-low.h (struct linux_target_ops)
14321 <supports_range_stepping>: New field.
14322 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14323 * linux-x86-low.c (x86_supports_range_stepping): New.
14324 (the_low_target) <supports_range_stepping>: Set to
14325 x86_supports_range_stepping.
14326 * server.c (handle_v_cont): Handle 'r' action.
14327 (handle_v_requests): Append ";r" if the target supports range
14329 * target.h (struct thread_resume) <step_range_start,
14330 step_range_end>: New fields.
14331 (struct target_ops) <supports_range_stepping>:
14333 (target_supports_range_stepping): New macro.
14335 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14337 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14338 confusion in comment.
14340 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14342 * lynx-low.c (struct process_info_private): New type.
14343 (lynx_add_process): New function.
14344 (lynx_create_inferior, lynx_attach): Replace calls to
14345 add_process by calls to lynx_add_process.
14346 (lynx_resume): If PTID is null, then try using
14347 current_process()->private->last_wait_event_ptid.
14349 (lynx_clear_inferiors): Delete. The contents of that function
14350 has been inlined in lynx_mourn;
14351 (lynx_wait_1): Save the ptid in the process's private data.
14352 (lynx_mourn): Free the process' private data. Replace call
14353 to lynx_clear_inferiors by call to clear_inferiors.
14355 2013-05-17 Yao Qi <yao@codesourcery.com>
14357 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14360 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14362 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14363 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14364 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14365 PT_TEXT_END_ADDR guards. Update comments.
14366 (linux_target_op) <read_offsets>: Conditionally define to
14367 linux_read_offsets if the target is UCLIBC and if it defines
14368 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14370 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14371 Andrew Jenner <andrew@codesourcery.com>
14373 * Makefile.in (SFILES): Add linux-nios2-low.c.
14374 (clean): Add action to delete nios2-linux.c.
14375 (nios2-linux.c): New rule.
14376 * configure.srv: Add nios2*-*-linux*.
14377 * linux-nios2-low.c: New.
14379 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14381 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14383 2013-04-25 Hui Zhu <hui@codesourcery.com>
14386 * ax.c (ax_printf): Add fflush.
14388 2013-04-22 Tom Tromey <tromey@redhat.com>
14390 * Makefile.in (SFILES): Add filestuff.c.
14391 (OBS): Add filestuff.o.
14392 (filestuff.o): New target.
14393 * config.in, configure: Rebuild.
14394 * configure.ac: Check for fdwalk, pipe2.
14396 2013-04-17 Pedro Alves <palves@redhat.com>
14398 * configure.ac (USE_THREAD_DB): Delete variable.
14399 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14400 Don't AC_SUBST USE_THREAD_DB.
14401 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14402 * config.in, configure: Regenerate.
14404 2013-04-16 Pedro Alves <palves@redhat.com>
14406 * linux-low.h (struct lwp_info) <thread_known>: Move under
14407 the USE_THREAD_DB #ifdef.
14409 2013-04-16 Pedro Alves <palves@redhat.com>
14411 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14412 (linux-low.o): Delete rule.
14413 * linux-low.h: Always include "gdb_thread_db.h" instead of
14414 conditionally including thread_db.h.
14415 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14418 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14420 * Makefile.in (install-only): Fix make install regression.
14422 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14424 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14425 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14427 * gdbserver.1: Remove.
14429 2013-03-22 Pedro Alves <palves@redhat.com>
14431 * linux-low.c (handle_extended_wait): Don't call
14432 linux_enable_event_reporting.
14434 2013-03-15 Tony Theodore <tonyt@logyst.com>
14437 * Makefile.in (SHELL): Use @SHELL@.
14439 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14441 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14444 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14446 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14447 Remove extraneous NULL element.
14449 2013-03-13 Yao Qi <yao@codesourcery.com>
14451 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14452 'V' block in trace frame.
14454 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14456 * target.h (struct target_ops): Add btrace ops.
14457 (target_supports_btrace): New macro.
14458 (target_enable_btrace): New macro.
14459 (target_disable_btrace): New macro.
14460 (target_read_btrace): New macro.
14461 * gdbthread.h (struct thread_info): Add btrace field.
14462 * server.c: Include btrace-common.h.
14463 (handle_btrace_general_set): New function.
14464 (handle_btrace_enable): New function.
14465 (handle_btrace_disable): New function.
14466 (handle_general_set): Call handle_btrace_general_set.
14467 (handle_qxfer_btrace): New function.
14468 (struct qxfer qxfer_packets[]): Add btrace entry.
14469 * inferiors.c (remove_thread): Disable btrace.
14470 * linux-low: Include linux-btrace.h.
14471 (linux_low_enable_btrace): New function.
14472 (linux_low_read_btrace): New function.
14473 (linux_target_ops): Add btrace ops.
14474 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14475 Add srv_linux_btrace=yes.
14476 (x86_64-*-linux*): Add linux-btrace.o.
14477 Add srv_linux_btrace=yes.
14478 * configure.ac: Define HAVE_LINUX_BTRACE.
14479 * config.in: Regenerated.
14480 * configure: Regenerated.
14482 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14484 * server.c (handle_qxfer): Preserve error message if -3 is
14486 (qxfer): Document the -3 return value.
14488 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14490 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14491 (linux_btrace_h): New variable.
14492 (linux-btrace.o): New rule.
14494 2013-03-08 Stan Shebs <stan@codesourcery.com>
14495 Hafiz Abid Qadeer <abidh@codesourcery.com>
14497 * tracepoint.c (trace_buffer_size): New global.
14498 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14499 (init_trace_buffer): Change to one-argument function. Allocate
14500 trace buffer memory.
14501 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14502 handle QTBuffer:size packet.
14503 (cmd_bigqtbuffer_size): New function.
14504 (initialize_tracepoint): Call init_trace_buffer with
14505 DEFAULT_TRACE_BUFFER_SIZE.
14506 * server.c (handle_query): Add QTBuffer:size in the
14509 2013-03-07 Yao Qi <yao@codesourcery.com>
14511 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14512 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14514 (cmd_qtsp): Adjust condition. Do post increment.
14515 Set cur_action and cur_step_action back to 0.
14517 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14520 * linux-low.c (linux_write_memory): Return early success if LEN is
14523 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14525 * configure.srv: Add x86_64-*-cygwin* as target.
14527 2013-02-28 Tom Tromey <tromey@redhat.com>
14529 * configure.ac: Invoke AC_SYS_LARGEFILE.
14530 * configure, config.in: Rebuild.
14532 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14534 * win32-low.c: Throughout, fix format strings and casts of
14535 printf-like functions to avoid type related warnings on all
14537 (get_child_debug_event): Print dwDebugEventCode as hex since
14538 that's how it's usually documented.
14540 2013-02-28 Yao Qi <yao@codesourcery.com>
14542 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14545 2013-02-27 Jiong Wang <jiwang@tilera.com>
14547 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14548 (reg-tilegx32.c): New rule.
14549 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14550 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14551 different register info initializer according to elf class.
14552 (init_registers_tilgx32): New function. The tilegx32 register info
14554 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14555 (tile_store_gregset): Likewise.
14557 2013-02-27 Yao Qi <yao@codesourcery.com>
14559 * server.c (process_point_options): Print debug message when
14560 debug_threads is true.
14562 2013-02-26 Yao Qi <yao@codesourcery.com>
14564 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14566 2013-02-19 Pedro Alves <palves@redhat.com>
14567 Kai Tietz <ktietz@redhat.com>
14571 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14572 instead of strtoul to extract address from packet.
14573 (process_serial_event) <'z'>: Likewise.
14575 2013-02-18 Yao Qi <yao@codesourcery.com>
14577 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14579 2013-02-14 Pedro Alves <palves@redhat.com>
14583 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14584 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14586 2013-02-14 Pedro Alves <palves@redhat.com>
14588 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14590 2013-02-14 Pedro Alves <palves@redhat.com>
14592 * tracepoint.c (save_string): Delete.
14593 (add_tracepoint_action): Use savestring instead of save_string.
14595 2013-02-12 Pedro Alves <palves@redhat.com>
14597 * linux-xtensa-low.c: Ditto.
14598 * xtensa-xtregs.c: Ditto.
14600 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14602 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14605 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14607 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14608 aarch64_num_wp_regs and aarch64_num_bp_regs to
14609 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14611 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14613 * linux-aarch64-low.c (ps_get_thread_area): Replace
14614 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14616 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14617 Marcus Shawcroft <marcus.shawcroft@arm.com>
14618 Nigel Stephens <nigel.stephens@arm.com>
14619 Yufeng Zhang <yufeng.zhang@arm.com>
14621 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14622 (aarch64.c, aarch64-without-fpu.c): New targets.
14623 * configure.srv (aarch64*-*-linux*): New.
14624 * linux-aarch64-low.c: New file.
14626 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14628 * linux-low.c (handle_extended_wait, linux_create_inferior)
14629 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14630 (dequeue_one_deferred_signal, linux_resume_one_thread)
14631 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14632 (linux_tracefork_grandchild, linux_test_for_tracefork)
14633 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14634 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14635 where the argument is 0.
14637 2013-01-25 Yao Qi <yao@codesourcery.com>
14639 * event-loop.c: Include "queue.h".
14640 (gdb_event_p): New typedef.
14641 (struct gdb_event) <next_event>: Remove.
14642 (event_queue): Change to QUEUE(gdb_event_p).
14643 (async_queue_event): Remove.
14644 (gdb_event_xfree): New.
14645 (initialize_event_loop): New.
14646 (process_event): Use API from QUEUE.
14647 (wait_for_event): Likewise.
14648 * server.c (main): Call initialize_event_loop.
14649 * server.h (initialize_event_loop): Declare.
14651 2013-01-18 Yao Qi <yao@codesourcery.com>
14653 * ax.h (struct eval_agent_expr_context): New.
14654 (gdb_eval_agent_expr): Update declaration.
14655 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14656 TFRAME. Add new argument CTX.
14657 * server.h (struct eval_agent_expr_context): Declare.
14658 (agent_mem_read, agent_tsv_read): Update declaration.
14659 (agent_mem_read_string): Likewise.
14660 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14661 (add_traceframe_block): Add new argument TPOINT.
14662 Increase TPOINT->traceframe_usage.
14663 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14664 eval_tracepoint_agent_expr.
14665 (condition_true_at_tracepoint): Likewise.
14666 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14667 (agent_mem_read_string, agent_tsv_read): Likewise.
14669 2013-01-16 Yao Qi <yao@codesourcery.com>
14671 * linux-low.c (linux_resume_one_lwp): Don't check
14672 'lwp->bp_reinsert != 0'.
14674 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14675 Pedro Alves <palves@redhat.com>
14677 * lynx-low.c (ptrace_request_to_str): Define a temporary
14678 macro and use it to simplify this function's implementation.
14680 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14682 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14685 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14687 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14689 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14691 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14693 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14695 * lynx-low.c (lynx_resume): Use the resume_info parameter
14696 to determine the ptid for the lynx_ptrace call, unless
14697 it is equal to minus_one_ptid, in which case we use the
14698 ptid of the current_inferior.
14699 (lynx_wait_1): After having received a thread create/exit
14700 event, resume the inferior's execution using the signaling
14701 thread's ptid, rather than the old ptid.
14703 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14705 * lynx-low.c (lynx_resume): Delete variable ret.
14707 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14709 * gdbreplay.c (gdbreplay_version): Update copyright year.
14710 * server.c (gdbserver_version): Likewise.
14712 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14714 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14717 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14719 * lynx-low.c (ptrace_request_to_str): Add handling for
14720 PTRACE_GETTRACESIG.
14722 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14724 * lynx-low.c (lynx_attach): Delete variable new_process.
14726 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14728 * lynx-low.c (lynx_create_inferior): Delete variable
14731 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14733 * lynx-low.c (ptrace_request_to_str): Do not handle
14734 PTRACE_GETTHREADLIST if this macro does not exist.
14736 2012-12-15 Yao Qi <yao@codesourcery.com>
14738 * Makefile.in (OBS): Add notif.o.
14739 * notif.c, notif.h: New.
14740 * server.c: Include "notif.h".
14741 (struct vstop_notif) <next>: Remove.
14743 (queue_stop_reply): Update.
14744 (push_event, send_next_stop_reply): Remove.
14745 (discard_queued_stop_replies): Update.
14746 (notif_stop): New variable.
14747 (handle_v_stopped): Remove.
14748 (handle_v_requests): Don't call handle_v_stopped. Call
14749 handle_ack_notif instead.
14750 (queue_stop_reply_callback): Call notif_event_enque instead
14751 of queue_stop_reply.
14752 (handle_status): Don't call send_next_stop_reply, call
14753 notif_write_event instead.
14754 (kill_inferior_callback): Likewise.
14755 (detach_or_kill_inferior_callback): Likewise.
14756 (main): Call initialize_notif.
14757 (process_serial_event): Call QUEUE_is_empty.
14758 (handle_target_event): Call notif_push instead of push event.
14759 * server.h (push_event): Remove declaration.
14761 2012-12-10 Tom Tromey <tromey@redhat.com>
14763 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14764 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14767 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14768 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14769 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14770 (amd64-linux-ipa.o, ax.o): Rewrite.
14771 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14772 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14773 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14774 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14775 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14776 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14777 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14778 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14779 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14780 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14781 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14782 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14783 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14784 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14785 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14786 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14787 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14788 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14789 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14790 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14791 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14792 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14793 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14794 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14795 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14796 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14797 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14798 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14799 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14800 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14801 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14802 (reg-tilegx.o): Remove.
14803 (all_object_files): New macro.
14804 Include .deps files.
14805 * aclocal.m4, configure: Rebuild.
14806 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14807 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14808 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14810 2012-12-05 Tom Tromey <tromey@redhat.com>
14813 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14815 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14817 * configure.ac: Check for linux/perf_event.h.
14818 * config.in: Regenerated.
14819 * configure: Regenerated.
14821 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14823 * hostio.c (handle_readlink): Decrease buffer size
14824 parameter passed to readlink by one byte.
14826 2012-11-26 Yao Qi <yao@codesourcery.com>
14828 * configure.ac (build_warnings): Append '-Wempty-body'.
14829 * configure: Regenerated.
14830 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14833 2012-11-15 Pierre Muller <muller@sourceware.org>
14835 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14836 * config.in: Regenerate.
14837 * configure: Regenerate.
14838 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14839 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14840 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14841 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14843 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14844 instead of <sys/wait.h> header.
14845 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14847 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14849 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14850 (various make rules): Remove -DGDBSERVER
14852 2012-11-09 Yao Qi <yao@codesourcery.com>
14854 * spu-low.c (current_ptid): Move it to ..
14855 * gdbthread.h: ... here. New.
14856 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14857 * server.c (myresume, process_serial_event): Likewise.
14858 * thread-db.c (thread_db_find_new_threads): Likewise.
14859 * tracepoint.c (run_inferior_command): Likewise.
14861 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14863 * server.c (handle_search_memory_1): Include access length in
14866 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14868 * linux-crisv32-low.c: Fix compile errors.
14870 2012-09-04 Yao Qi <yao@codesourcery.com>
14872 * tracepoint.c (cmd_qtsv): Adjust debug message.
14873 Don't check CUR_TPOINT.
14875 2012-08-28 Yao Qi <yao@codesourcery.com>
14877 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14878 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14879 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14880 Remove declarations of xmalloc, xreallloc, xstrdup and
14882 * Makefile.in (libiberty_h): New.
14883 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14884 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14886 2012-08-23 Yao Qi <yao@codesourcery.com>
14888 * server.h: Remove declaration of 'xsnprintf'.
14890 2012-08-22 Keith Seitz <keiths@redhat.com>
14892 * server.h: Include build-gnulib-gbserver/config.h.
14893 * gdbreplay.c: Likewise.
14895 2012-08-08 Doug Evans <dje@google.com>
14897 * Makefile.in (SFILES): Add gdb_vecs.c.
14898 (OBS): Add gdb_vecs.o.
14899 (gdb_vecs_h, host_defs_h): New variables.
14900 (thread-db.o): Add $(gdb_vecs_h) dependency.
14901 (gdb_vecs.o): New rule.
14902 * thread-db.c: #include "gdb_vecs.h".
14903 (thread_db_load_search): Use a vector to iterate over path elements.
14904 Handle text appearing after "$pdir".
14906 * configure.ac: Add check for strstr.
14907 * config.in: Regenerate.
14908 * configure: Regenerate.
14910 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14912 * hostio.c (handle_pread): If pread fails, fall back to attempting
14914 (handle_pwrite): Likewise for pwrite.
14916 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14918 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14919 between unsupported TYPE and unimplementable ADDR/LEN combination.
14920 (arm_insert_point): Act on new return value.
14922 2012-07-31 Pedro Alves <palves@redhat.com>
14924 * server.c (process_point_options): Only skip tokens if we find
14925 one that is unrecognized. Don't treat 'X' specially while
14926 skipping unrecognized tokens.
14928 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14930 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14931 to 4-byte-align HW breakpoint addresses for Thumb.
14933 2012-07-27 Yao Qi <yao@codesourcery.com>
14937 * server.h: Declare gdb_agent_about_to_close.
14938 * target.c (kill_inferior): Include "agent.h".
14939 New. Send command 'kill'.
14940 * target.h (kill_inferior): Removed macro.
14941 * tracepoint.c (gdb_agent_about_to_close): New.
14942 (gdb_agent_helper_thread): Handle command 'close'.
14943 Wait endlessly until the inferior stops.
14944 Install gdb_agent_remove_socket to atexit hook.
14945 (agent_socket_name): New static variable.
14946 (gdb_agent_socket_init): Replace local variable 'name' with
14947 'agent_socket_name'.
14948 (gdb_agent_remove_socket): New.
14950 2012-07-27 Yao Qi <yao@codesourcery.com>
14952 * server.c (process_point_options): Stop at 'X' when parsing.
14954 2012-07-19 Michael Eager <eager@eagercon.com>
14956 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14958 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14959 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14960 hardware breakpoint.
14962 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14964 * gdbserver/linux-low.c (initialize_low): Call
14965 linux_ptrace_init_warnings.
14967 2012-07-02 Doug Evans <dje@google.com>
14969 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14972 2012-07-02 Stan Shebs <stan@codesourcery.com>
14974 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14975 (ax.o): Add it to build rule.
14977 (OBS): Add format.o.
14978 (IPA_OBS): Add format.o.
14979 * server.c (handle_query): Claim support for breakpoint commands.
14980 (process_point_options): Add command case.
14981 (process_serial_event): Leave running if there are printfs in
14983 * mem-break.h (any_persistent_commands): Declare.
14984 (add_breakpoint_commands): Declare.
14985 (gdb_no_commands_at_breakpoint): Declare.
14986 (run_breakpoint_commands): Declare.
14987 * mem-break.c (struct point_command_list): New struct.
14988 (struct breakpoint): New field command_list.
14989 (any_persistent_commands): New function.
14990 (add_commands_to_breakpoint): New function.
14991 (add_breakpoint_commands): New function.
14992 (gdb_no_commands_at_breakpoint): New function.
14993 (run_breakpoint_commands): New function.
14994 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14996 * ax.c: Include format.h.
14997 (ax_printf): New function.
14998 (gdb_eval_agent_expr): Add printf opcode.
15000 2012-06-13 Yao Qi <yao@codesourcery.com>
15002 * server.c (start_inferior): Remove duplicated writes to fields
15003 'last_resume_kind' and 'last_status' of 'current_inferior'.
15005 2012-06-12 Yao Qi <yao@codesourcery.com>
15006 Pedro Alves <palves@redhat.com>
15008 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15010 * server.c (handle_v_cont): Extend comment.
15012 2012-06-11 Yao Qi <yao@codesourcery.com>
15014 * linux-low.c (linux_attach): Add 'static'.
15016 2012-06-06 Yao Qi <yao@codesourcery.com>
15018 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15020 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15022 Fix gcc -flto compilation warning.
15023 * server.c (main): Make variable multi_mode and attach volatile.
15025 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15027 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15028 if the platform doesn't know about it.
15030 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15032 * Makefile.in (SFILES): Add linux-tile-low.c.
15033 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15034 * configure.srv: Handle tilegx-*-linux*.
15035 * linux-tile-low.c: New file.
15037 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15039 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15041 2012-05-24 Pedro Alves <palves@redhat.com>
15045 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15047 2012-05-24 Pedro Alves <palves@redhat.com>
15051 Replace target_signal with gdb_signal throughout.
15053 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15055 * linux-low.c (linux_store_registers): Avoid the copying sequence
15056 when no data has been retrieved by ptrace.
15058 2012-05-22 Will Deacon <will.deacon@arm.com>
15060 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15061 Include asm/ptrace.h.
15062 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15065 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15067 * linux-low.c (linux_store_registers): Don't re-retrieve data
15068 with ptrace that has already been obtained from /proc. Always
15069 copy any data retrieved with ptrace to the buffer supplied.
15071 2012-05-11 Yao Qi <yao@codesourcery.com>
15072 Pedro Alves <palves@redhat.com>
15074 * linux-low.c (enum stopping_threads_kind): New.
15075 (stopping_threads): Change type to `enum stopping_threads_kind'.
15076 (handle_extended_wait): If stopping and suspending threads, leave
15077 the new_lwp suspended too.
15078 (linux_wait_for_event): Adjust.
15079 (stop_all_lwps): Set `stopping_threads' to
15080 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15081 whether we're suspending threads or just stopping them. Assert no
15084 2012-04-29 Yao Qi <yao@codesourcery.com>
15086 * server.h: Move some code to ...
15087 * gdbthread.h: ... here. New.
15088 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15089 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15090 (nto-low.o, win32-low.o): Likewise.
15091 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15092 * regcache.c, remote-utils.c, server.c: Likewise.
15093 * target.c, tracepoint.c, win32-low.c: Likewise.
15095 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15097 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15098 (PTRACE_ARG4_TYPE): Likewise.
15099 (PTRACE_XFER_TYPE): Likewise.
15100 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15101 ptrace to PTRACE_ARG3_TYPE.
15102 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15103 (PTRACE_ARG4_TYPE): Likewise.
15104 (PTRACE_XFER_TYPE): Likewise.
15105 (linux_detach_one_lwp): Cast fourth argument of
15106 ptrace to long then PTRACE_ARG4_TYPE.
15107 (regsets_fetch_inferior_registers): Cast third argument of
15108 ptrace to long then PTRACE_ARG3_TYPE.
15109 (regsets_store_inferior_registers): Likewise.
15111 2012-04-20 Pedro Alves <palves@redhat.com>
15113 * configure: Regenerate.
15115 2012-04-19 Pedro Alves <palves@redhat.com>
15117 * Makefile.in (GNULIB_BUILDDIR): New.
15118 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15119 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15120 (all, install-only, uninstall, clean-info, all-lib, clean): No
15121 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15122 (maintainer-clean realclean distclean): Use subdir_do.
15124 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15125 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15126 * acinclude.m4: Include acx_configure_dir.m4.
15127 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15128 calls. Call AC_PROG_RANLIB. Configure gnulib using
15131 (GNULIB_STDINT_H): Adjust.
15132 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15133 * gdbreplay.c: Include build-gnulib/config.h.
15134 * server.h: Likewise.
15135 * aclocal.m4: Regenerate.
15136 * config.in: Regenerate.
15137 * configure: Regenerate.
15139 2012-04-19 Pedro Alves <palves@redhat.com>
15141 * Makefile.in (LIBGNU, INCGNU): Adjust.
15142 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15143 (all, install-only, uninstall, clean-info, all-lib, clean)
15144 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15145 * configure.ac: Adjust AC_OUTPUT output.
15146 * aclocal.m4: Regenerate.
15147 * configure: Regenerate.
15149 2012-04-19 Pedro Alves <palves@redhat.com>
15151 * Makefile.in (generated_files): New.
15152 (server_h): Remove the explicit dependency on config.h, and depend
15153 on $generated_files.
15155 2012-04-19 Pedro Alves <palves@redhat.com>
15157 * Makefile.in (INCGNU): Add -Ignulib.
15159 2012-04-19 Pedro Alves <palves@redhat.com>
15161 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15162 (INCGNU): ... this, and spell out -I here.
15163 (GNULIB_LIB): Rename to ...
15164 (LIBGNU): ... this.
15165 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15167 2012-04-19 Pedro Alves <palves@redhat.com>
15169 * config.in: Regenerate.
15171 2012-04-19 Pedro Alves <palves@redhat.com>
15173 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15174 * server.h (memmem): Remove declaration.
15175 * config.in: Regenerate.
15176 * configure: Regenerate.
15178 2012-04-19 Yao Qi <yao@codesourcery.com>
15180 * Makefile.in (SFILES): Add common/vec.c.
15184 2012-04-19 Yao Qi <yao@codesourcery.com>
15186 * remote-utils.c (prepare_resume_reply): Replace with macro
15187 target_core_of_thread.
15188 * server.c (handle_qxfer_threads_proper): Likewise.
15189 * target.h (traget_core_of_thread): New macro.
15191 2012-04-18 Pedro Alves <palves@redhat.com>
15193 * aclocal.m4: Regenerate.
15194 * configure: Regenerate.
15196 2012-04-16 Yao Qi <yao@codesourcery.com>
15198 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15199 duplicated on address.
15201 2012-04-16 Yao Qi <yao@codesourcery.com>
15203 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15204 (struct tracepoint_action_ops) <send>: New field.
15205 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15206 (agent_expr_send, x_tracepoint_action_send): New.
15207 (l_tracepoint_action_send): New.
15208 (cmd_qtdp): Download and install tracepoint
15209 according to `use_agent'.
15210 (run_inferior_command): Add one more parameter `len'.
15212 (tracepoint_send_agent): New.
15213 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15215 2012-04-16 Yao Qi <yao@codesourcery.com>
15217 * tracepoint.c (download_tracepoints): Moved to ...
15218 (cmd_qtstart): ... here.
15220 2012-04-14 Yao Qi <yao@codesourcery.com>
15222 * tracepoint.c: Include inttypes.h.
15223 (struct collect_memory_action): Use sized types.
15224 (struct tracepoint): Likewise.
15225 (cmd_qtdp, stop_tracing): Update print specifiers.
15226 (cmd_qtp, response_tracepoint): Likewise.
15227 (collect_data_at_tracepoint): Likewise.
15228 (collect_data_at_step): Likewise.
15230 2012-04-14 Yao Qi <yao@codesourcery.com>
15232 Import gnulib module inttypes.
15233 * aclocal.m4, config.in, configure: Regenerated.
15235 2012-04-14 Yao Qi <yao@codesourcery.com>
15237 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15238 Makefile and config.status at last.
15240 2012-04-13 Yao Qi <yao@codesourcery.com>
15242 * tracepoint.c: Include stdint.h unconditionally.
15244 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15246 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15247 on BFD_HAVE_SYS_PROCFS_TYPE.
15248 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15249 * configure: Regenerate.
15250 * config.in: Likewise.
15252 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15254 * Makefile.in (clean): Also remove x32.c x32-linux.c
15255 x32-avx.c x32-avx-linux.c.
15256 (x32.o): New target.
15258 (x32-linux.o): Likewise.
15259 (x32-linux.c): Likewise.
15260 (x32-avx.o): Likewise.
15261 (x32-avx.c): Likewise.
15262 (x32-avx-linux.o): Likewise.
15263 (x32-avx-linux.c): Likewise.
15265 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15266 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15267 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15268 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15269 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15270 i386/x32-avx-linux.xml.
15272 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15273 (init_registers_x32_avx_linux): Likwise.
15274 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15275 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15277 2012-04-13 Pedro Alves <palves@redhat.com>
15279 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15280 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15281 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15282 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15285 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15287 * linux-x86-low.c (compat_x32_clock_t): New.
15288 (compat_x32_siginfo_t): Likewise.
15289 (compat_x32_siginfo_from_siginfo): Likewise.
15290 (siginfo_from_compat_x32_siginfo): Likewise.
15291 (linux_is_elf64): Likewise.
15292 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15293 and siginfo_from_compat_x32_siginfo for x32.
15294 (x86_arch_setup): Set linux_is_elf64.
15296 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15299 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15301 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15302 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15303 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15304 compatible with process.
15306 2012-04-12 Yao Qi <yao@codesourcery.com>
15308 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15309 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15310 (install-only, install-info, clean): Handle sub dir gnulib.
15311 (all-lib, am--refresh): New targets.
15312 (memmem.o): Remove target.
15313 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15314 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15315 (AC_REPLACE_FUNCS): Remove memmem.
15316 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15317 (AC_OUTPUT): Generate Makefile in gnulib/.
15318 * aclocal.m4, config.in, configure: Regenerated.
15320 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15322 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15324 2012-04-05 Pedro Alves <palves@redhat.com>
15326 -Werror=strict-aliasing
15328 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15331 2012-04-04 Pedro Alves <palves@redhat.com>
15333 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15334 (sparc_store_gregset_from_stack, sparc_store_gregset)
15335 (sparc_breakpoint_at): Fix formatting.
15337 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15339 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15341 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15342 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15343 * config.in: Regenerate.
15344 * configure: Likewise.
15346 2012-03-29 Pedro Alves <palves@redhat.com>
15348 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15349 Correct ptrace arguments.
15351 2012-03-28 Pedro Alves <palves@redhat.com>
15353 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15354 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15355 (IA64_FR1_REGNUM): New defines.
15356 (ia64_fetch_register): New.
15357 (the_low_target): Install it.
15358 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15360 * linux-low.c (linux_fetch_registers): Try the
15361 the_low_target.fetch_register hook first.
15363 * linux-arm-low.c (the_low_target): Adjust.
15364 * linux-bfin-low.c (the_low_target): Adjust.
15365 * linux-cris-low.c (the_low_target): Adjust.
15366 * linux-crisv32-low.c (the_low_target): Adjust.
15367 * linux-m32r-low.c (the_low_target): Adjust.
15368 * linux-m68k-low.c (the_low_target): Adjust.
15369 * linux-mips-low.c (the_low_target): Adjust.
15370 * linux-ppc-low.c (the_low_target): Adjust.
15371 * linux-s390-low.c (the_low_target): Adjust.
15372 * linux-sh-low.c (the_low_target): Adjust.
15373 * linux-sparc-low.c (the_low_target): Adjust.
15374 * linux-tic6x-low.c (the_low_target): Adjust.
15375 * linux-x86-low.c (the_low_target): Adjust.
15376 * linux-xtensa-low.c (the_low_target): Adjust.
15378 2012-03-26 Pedro Alves <palves@redhat.com>
15380 * server.c (handle_qxfer_libraries): Don't bail early if
15381 the_target->qxfer_libraries_svr4 is not NULL.
15383 2012-03-26 Pedro Alves <palves@redhat.com>
15385 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15387 2012-03-23 Pedro Alves <palves@redhat.com>
15389 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15390 "library-list-svr4" element's start tag when the the DSO list is
15393 2012-03-23 Pedro Alves <palves@redhat.com>
15395 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15396 a variable whose type size is the same as the inferior's pointer
15399 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15401 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15403 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15404 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15405 * linux-low.h: Include <signal.h>.
15406 (struct siginfo): Remove forward declaration.
15407 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15410 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15412 * .gitignore: Ignore more files.
15414 2012-03-19 Pedro Alves <palves@redhat.com>
15415 Jan Kratochvil <jan.kratochvil@redhat.com>
15417 * server.c (cont_thread, general_thread): Add describing comments.
15418 (start_inferior): Clear `cont_thread'.
15419 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15422 2012-03-15 Yao Qi <yao@codesourcery.com>
15424 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15426 (cmd_qtdp): ... here.
15428 2012-03-15 Yao Qi <yao@codesourcery.com>
15430 * tracepoint.c (struct tracepoint_action_ops): New.
15431 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15432 (m_tracepoint_action_download): New.
15433 (r_tracepoint_action_download): New.
15434 (x_tracepoint_action_download): New.
15435 (l_tracepoint_action_download): New.
15436 (add_tracepoint_action): Install `action->ops' according type.
15437 (download_tracepoint_1): Move code `download' function pointer
15438 of various tracepoint_action_ops.
15440 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15442 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15443 linux_ptrace_attach_warnings.
15445 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15447 * Makefile.in (linux-ptrace.o): New.
15448 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15449 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15450 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15451 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15452 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15454 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15456 2012-03-08 Yao Qi <yao@codesourcery.com>
15457 Pedro Alves <palves@redhat.com>
15459 Fix PR server/13392.
15460 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15461 offset of JMP insn.
15462 * tracepoint.c (remove_tracepoint): New.
15463 (cmd_qtdp): Call remove_tracepoint when failed to install.
15465 2012-03-07 Pedro Alves <palves@redhat.com>
15467 * linux-low.c (get_detach_signal): New.
15468 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15469 Pass on pending signals to PTRACE_DETACH. Check the result of the
15471 * server.c (program_signals, program_signals_p): New.
15472 (handle_general_set): Handle QProgramSignals.
15473 * server.h (program_signals, program_signals_p): Declare.
15475 2012-03-05 Pedro Alves <palves@redhat.com>
15476 Jan Kratochvil <jan.kratochvil@redhat.com>
15478 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15481 2012-03-03 Yao Qi <yao@codesourcery.com>
15483 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15484 agent_look_up_symbols.
15486 2012-03-03 Yao Qi <yao@codesourcery.com>
15488 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15489 (linux-x86-low.o): Likewise.
15490 * server.h: Remove in_process_agent_loaded.
15491 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15495 2012-03-03 Yao Qi <yao@codesourcery.com>
15497 * tracepoint.c (gdb_agent_capability): New global.
15498 (in_process_agent_loaded_ust): Renamed to
15499 `in_process_agent_supports_ust'.
15501 (in_process_agent_supports_ust): Call agent_capability_check.
15502 (clear_installed_tracepoints): Assert that agent supports
15505 2012-03-03 Yao Qi <yao@codesourcery.com>
15507 * linux-low.c (linux_supports_agent): New.
15508 (linux_target_ops): Initialize field `supports_agent' with
15509 linux_supports_agent.
15510 * target.h (struct target_ops) <supports_agent>: New.
15511 (target_supports_agent): New macro.
15512 * server.c (handle_general_set): Handle packet 'QAgent'.
15513 (handle_query): Send `QAgent+'.
15514 * Makefile.in (server.o): Depends on agent.h.
15516 2012-03-03 Yao Qi <yao@codesourcery.com>
15518 * Makefile.in (OBS): Add agent.o.
15519 Add new rule for agent.o.
15520 Track dependence of tracepoint.c on agent.h.
15521 * tracepoint.c (run_inferior_command_1):
15522 (run_inferior_command): Call agent_run_command.
15523 (gdb_ust_connect_sync_socket): Deleted. Move it to
15525 (resume_thread, stop_thread): Likewise.
15526 (gdb_ust_socket_init): Renamed to ...
15527 (gdb_agent_socket_init): ... New.
15528 (gdb_ust_thread): Renamed to ...
15529 (gdb_agent_helper_thread): ... New.
15530 (gdb_ust_init): Move some code to ...
15531 (gdb_agent_init): ... here. New.
15532 [HAVE_UST]: Call gdb_ust_init.
15533 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15534 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15535 * config.in, configure: Regenerated.
15537 2012-03-02 Pedro Alves <palves@redhat.com>
15539 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15540 * linux-low.c (struct simple_pid_list): New.
15541 (stopped_pids): New a struct simple_pid_list pointer.
15542 (add_to_pid_list, pull_pid_from_list): New.
15543 (handle_extended_wait): Don't assume the first signal new children
15544 report is SIGSTOP. Adjust call to pull_pid_from_list.
15545 (linux_wait_for_lwp): Adjust.
15547 2012-03-02 Yao Qi <yao@codesourcery.com>
15549 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15552 2012-03-02 Yao Qi <yao@codesourcery.com>
15554 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15555 `stop_pc' and `tpoint'. Update caller.
15557 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15559 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15560 * linux-low.c (use_linux_regsets): New macro.
15561 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15562 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15563 (linux_register_in_regsets): New function.
15564 (usr_fetch_inferior_registers): Skip registers covered by
15566 (usr_store_inferior_registers): Likewise.
15567 (usr_fetch_inferior_registers): New macro.
15568 (usr_store_inferior_registers): Likewise.
15569 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15570 (linux_store_registers): Likewise.
15571 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15573 (init_registers_mips64_dsp_linux): Likewise.
15574 (init_registers_mips_linux): New macro.
15575 (init_registers_mips_dsp_linux): Likewise.
15576 (mips_dsp_num_regs): Likewise.
15577 (DSP_BASE, DSP_CONTROL): New fallback macros.
15578 (mips_base_regs): New macro.
15579 (mips_regmap): Use it. Fix the size.
15580 (mips_dsp_regmap): New variable.
15581 (mips_dsp_regset_bitmap): Likewise.
15582 (mips_arch_setup): New function.
15583 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15585 (mips_cannot_store_register): Likewise.
15586 (the_low_target): Update .arch_setup, .num_regs and .regmap
15587 initializers. Add .regset_bitmap initializer.
15588 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15590 * linux-bfin-low.c (the_low_target): Likewise.
15591 * linux-cris-low.c (the_low_target): Likewise.
15592 * linux-crisv32-low.c (the_low_target): Likewise.
15593 * linux-ia64-low.c (the_low_target): Likewise.
15594 * linux-m32r-low.c (the_low_target): Likewise.
15595 * linux-m68k-low.c (the_low_target): Likewise.
15596 * linux-ppc-low.c (the_low_target): Likewise.
15597 * linux-s390-low.c (the_low_target): Likewise.
15598 * linux-sh-low.c (the_low_target): Likewise.
15599 * linux-sparc-low.c (the_low_target): Likewise.
15600 * linux-tic6x-low.c (the_low_target): Likewise.
15601 * linux-x86-low.c (the_low_target): Likewise.
15602 * linux-xtensa-low.c (the_low_target): Likewise.
15603 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15604 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15605 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15607 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15608 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15610 2012-02-29 Yao Qi <yao@codesourcery.com>
15611 Pedro Alves <palves@redhat.com>
15613 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15614 `step_over_finished' is true.
15616 2012-02-27 Pedro Alves <palves@redhat.com>
15618 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15619 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15621 2012-02-27 Pedro Alves <palves@redhat.com>
15624 * linux-low.c (pid_is_stopped): New.
15625 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15627 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15629 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15632 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15634 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15636 2012-02-24 Luis Machado <lgustavo@codesourcery>
15638 * server.c (handle_query): Advertise support for target-side
15639 breakpoint condition evaluation.
15640 (process_point_options): New function.
15641 (process_serial_event): When inserting a breakpoint, check for
15642 a target-side condition that should be evaluated.
15644 * mem-break.c: Include regcache.h and ax.h.
15645 (point_cond_list_t): New data structure.
15646 (breakpoint) <cond_list>: New field.
15647 (find_gdb_breakpoint_at): Make non-static.
15648 (delete_gdb_breakpoint_at): Clear any target-side
15650 (clear_gdb_breakpoint_conditions): New function.
15651 (add_condition_to_breakpoint): Likewise.
15652 (add_breakpoint_condition): Likewise.
15653 (gdb_condition_true_at_breakpoint): Likewise.
15654 (gdb_breakpoint_here): Return result directly instead
15655 of going through a local variable.
15657 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15658 (clear_gdb_breakpoint_conditions): Likewise.
15659 (add_breakpoint_condition): Likewise.
15660 (gdb_condition_true_at_breakpoint): Likewise.
15662 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15663 (need_step_over_p): Take target-side breakpoint condition into
15666 2012-02-24 Luis Machado <lgustavo@codesourcery>
15668 * server.h: Include tracepoint.h.
15669 (agent_mem_read, agent_get_trace_state_variable_value,
15670 agent_set_trace_state_variable_value,
15671 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15672 get_set_tsv_func_addr): New prototypes.
15674 * ax.h: New include file.
15675 * ax.c: New source file.
15677 * tracepoint.c: Include ax.h.
15678 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15679 agent_expr, eval_result_type): Move to ax.h.
15680 (parse_agent_expr): Rename to ...
15681 (gdb_parse_agent_expr): ... this, make it non-static and move
15683 (unparse_agent_expr) Rename to ...
15684 (gdb_unparse_agent_expr): ... this, make it non-static and move
15686 (eval_agent_expr): Rename to ...
15687 (eval_tracepoint_agent_expr): ... this.
15688 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15689 forward declarations.
15690 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15691 (agent_get_trace_state_variable_value): New function.
15692 (agent_set_trace_state_variable_value): New function.
15693 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15694 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15695 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15696 (condition_true_at_tracepoint): Likewise.
15697 (parse_agent_expr): Rename to ...
15698 (gdb_parse_agent_expr): ... this and move to ax.c.
15699 (unparse_agent_expr): Rename to ...
15700 (gdb_unparse_agent_expr): ... this and move to ax.c.
15701 (gdb_agent_op_name): Move to ax.c.
15702 (eval_agent_expr): Rename to ...
15703 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15705 (eval_tracepoint_agent_expr): New function.
15706 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15708 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15710 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15711 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15712 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15713 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15714 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15715 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15716 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15717 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15718 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15719 (compile_bytecodes): Remove forward declaration.
15720 (is_goto_target): Move to ax.c.
15721 (compile_bytecodes): Move to ax.c and call
15722 agent_get_trace_state_variable_value (...) and
15723 agent_set_trace_state_variable_value (...).
15725 * Makefile.in: Update ax.c and IPA dependencies.
15727 2012-02-24 Pedro Alves <palves@redhat.com>
15729 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15730 (cmd_bigqtbuffer_circular): ... this. Only handle
15731 'QTBuffer:circular:'.
15732 (handle_tracepoint_general_set): Adjust.
15734 2012-02-16 Yao Qi <yao@codesourcery.com>
15736 * inferiors.c: Move code to ...
15737 * dll.c: .... here. New.
15738 * server.h: Declare clear_dlls.
15739 * Makefile.in (SFILES): Add dll.c.
15743 2012-02-11 Yao Qi <yao@codesourcery.com>
15745 * server.c: (handle_monitor_command): Add a new parameter
15747 (handle_query): Update caller.
15749 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15751 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15752 * configure, config.in: Regenerate.
15753 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15756 2012-02-02 Pedro Alves <palves@redhat.com>
15758 Try SIGKILL first, then PTRACE_KILL.
15759 * linux-low.c (linux_kill_one_lwp): New.
15760 (linux_kill_one_lwp): Rename to ...
15761 (kill_one_lwp_callback): ... this. Use the new
15762 linux_kill_one_lwp.
15764 2012-02-02 Pedro Alves <palves@redhat.com>
15766 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15769 2012-01-27 Pedro Alves <palves@redhat.com>
15771 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15772 (elf_64_file_p): Make static.
15773 (linux_pid_exe_is_elf_64_file): New.
15774 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15775 Delete declarations.
15776 (linux_pid_exe_is_elf_64_file): Declare.
15777 * linux-x86-low.c (x86_arch_setup): Use
15778 linux_pid_exe_is_elf_64_file.
15780 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15782 * linux-low.c (linux_wait_for_event_1): Rename to ...
15783 (linux_wait_for_event): ... here and merge it with former
15784 linux_wait_for_event - new variable wait_ptid, use it.
15785 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15787 2012-01-23 Pedro Alves <palves@redhat.com>
15789 * server.c (main): Avoid yet another case of infinite loop while
15790 detaching/killing after a longjmp.
15792 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15795 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15797 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15799 * hostio.c (handle_readlink): New function.
15800 (handle_vFile): Call it to handle "vFile:readlink" packets.
15802 2012-01-20 Pedro Alves <palves@redhat.com>
15803 Ulrich Weigand <ulrich.weigand@linaro.org>
15805 * server.c (handle_v_requests): Only support vAttach and vRun to
15806 start multiple processes when in extended protocol mode.
15808 2012-01-17 Pedro Alves <palves@redhat.com>
15810 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15811 memalign plus mprotect to allocate the scratch buffer.
15813 2012-01-13 Pedro Alves <palves@redhat.com>
15815 * server.c (attach_inferior): Clear `cont_thread'.
15817 2012-01-13 Pedro Alves <palves@redhat.com>
15819 * server.c (main): Avoid infinite loop while detaching/killing
15822 2012-01-09 Doug Evans <dje@google.com>
15824 * server.c (start_inferior): Set last_ptid in --wrapper case.
15826 2012-01-06 Yao Qi <yao@codesourcery.com>
15828 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15830 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15832 2012-01-04 Yao Qi <yao@codesourcery.com>
15834 * tracepoint.c (cmd_qtdp): Print debug message
15835 for static tracepoint.
15837 2012-01-04 Yao Qi <yao@codesourcery.com>
15839 * tracepoint.c (trace_vdebug): Differentiate debug message
15840 between gdbserver and IPA.
15842 2012-01-03 Yao Qi <yao@codesourcery.com>
15844 * tracepoint.c (tracepoint_was_hit): Don't collect for
15847 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15849 * terminal.h: Reformat copyright header.
15851 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15853 * server.c (gdbserver_version): Update copyright year.
15854 * gdbreplay.c (gdbreplay_version): Likewise.
15856 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15858 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15861 2011-12-18 Hui Zhu <teawater@gmail.com>
15862 * linux-low.c (linux_create_inferior): Save return value to ret.
15864 2011-12-18 Hui Zhu <teawater@gmail.com>
15866 * linux-low.c (linux_create_inferior): Save return value to ret.
15868 2011-12-16 Doug Evans <dje@google.com>
15870 * linux-low.c (linux_create_inferior): If stdio connection,
15871 redirect stdin from /dev/null, stdout to stderr.
15872 * remote-utils.c (remote_is_stdio): New static global.
15873 (remote_connection_is_stdio): New function.
15874 (remote_prepare): Handle stdio connection.
15875 (remote_open): Ditto.
15876 (remote_close): Don't close stdin for stdio connections.
15877 (read_prim,write_prim): New functions. Replace all calls to
15878 read/write to these.
15879 * server.c (main): Watch for "-" argument. Move call to
15880 remote_prepare before start_inferior.
15881 * server.h (STDIO_CONNECTION_NAME): New macro.
15882 (remote_connection_is_stdio): Declare.
15884 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15885 in debugging output.
15887 2011-12-15 Yao Qi <yao@codesourcery.com>
15889 * tracepoint.c: Include sys/syscall.h.
15890 (gdb_ust_thread): Remove preprocessor conditional.
15892 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15894 * linux-low.c (linux_detach_one_lwp): Call
15895 the_low_target.prepare_to_resume before detaching.
15897 2011-12-14 Yao Qi <yao@codesourcery.com>
15899 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15902 2011-12-14 Yao Qi <yao@codesourcery.com>
15904 * i386-low.c (i386_low_stopped_data_address): Initialize local
15905 variable `control'.
15907 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15911 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15912 DR_CONTROL unless necessary. Extend comments.
15913 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15914 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15916 2011-12-13 Yao Qi <yao@codesourcery.com>
15918 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15920 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15922 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15924 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15925 Print new debug message for such case.
15927 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15929 Fix overlapping memcpy.
15930 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15931 the read_inferior_memory transfer.
15932 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15933 write_inferior_memory transfer.
15934 (set_fast_tracepoint_jump): New variable buf. Use it for the
15935 read_inferior_memory and write_inferior_memory transfers.
15936 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15937 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15938 Use it for the write_inferior_memory transfer.
15939 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15942 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15944 * linux-low.c (fetch_register, store_register): Make code
15945 consistent, fix formatting.
15947 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15949 * linux-low.c (usr_store_inferior_registers): Factor out code
15950 to handle individual registers into...
15951 (store_register): ... this new function.
15953 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15955 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15956 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15957 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15958 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15959 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15960 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15961 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15962 (srv_xmlfiles): Add new XML files.
15964 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15966 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15967 (init_registers_s390_linux32v1): Add prototype.
15968 (init_registers_s390_linux32v2): Likewise.
15969 (init_registers_s390_linux64v1): Likewise.
15970 (init_registers_s390_linux64v2): Likewise.
15971 (init_registers_s390x_linux64v1): Likewise.
15972 (init_registers_s390x_linux64v2): Likewise.
15973 (s390_num_regs): Increment to 52.
15974 (s390_regmap): Add orig_r2 register.
15975 (s390_num_regs_3264): Increment to 68.
15976 (s390_regmap_3264): Add orig_r2 register.
15977 (s390_collect_ptrace_register): Handle orig_r2 register.
15978 (s390_supply_ptrace_register): Likewise.
15979 (s390_fill_last_break): New function.
15980 (s390_store_last_break): Likewise.
15981 (s390_fill_system_call): New function.
15982 (s390_store_system_call): Likewise.
15983 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15985 (s390_check_regset): New function.
15986 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15987 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15988 Update target_regsets for available register sets.
15990 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15991 Jan Kratochvil <jan.kratochvil@redhat.com>
15993 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15994 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15996 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15997 * linux-low.h (struct process_info_private): New member r_debug.
15998 * server.c (handle_qxfer_libraries): Call
15999 the_target->qxfer_libraries_svr4.
16000 (handle_qxfer_libraries_svr4): New function.
16001 (qxfer_packets): New entry "libraries-svr4".
16002 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16003 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16004 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16005 PACKET_qXfer_libraries_svr4.
16007 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16009 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16010 PSW address/mask between 8-byte and 16-byte formats.
16011 (s390_supply_ptrace_register): Likewise.
16012 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16013 basic addressing mode bit.
16015 2011-11-24 Stan Shebs <stan@codesourcery.com>
16017 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16019 2011-11-17 Stan Shebs <stan@codesourcery.com>
16021 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16022 (tracing_start_time): New global.
16023 (tracing_stop_time): New global.
16024 (tracing_user_name): New global.
16025 (tracing_notes): New global.
16026 (tracing_stop_note): New global.
16027 (cmd_qtstart): Set traceframe_usage, start_time.
16028 (stop_tracing): Set stop_time.
16029 (cmd_qtstatus): Report additional status.
16030 (cmd_qtp): New function.
16031 (handle_tracepoint_query): Call it.
16032 (cmd_qtnotes): New function.
16033 (handle_tracepoint_general_set): Call it.
16034 (get_timestamp): Rename from tsv_get_timestamp.
16036 2011-11-14 Stan Shebs <stan@codesourcery.com>
16037 Kwok Cheung Yeung <kcy@codesourcery.com>
16039 * linux-x86-low.c (small_jump_insn): New.
16040 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16041 trampoline and error message, build a trampoline and issue a small
16042 jump instruction to it.
16043 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16044 trampoline and error message.
16045 (x86_get_min_fast_tracepoint_insn_len): New.
16046 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16047 * linux-low.h (struct linux_target_ops): Add arguments to
16048 install_fast_tracepoint_jump_pad operation, add new operation.
16049 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16051 (linux_get_min_fast_tracepoint_insn_len): New function.
16052 (linux_target_op): Add new operation.
16053 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16054 (gdb_trampoline_buffer_end): Ditto.
16055 (gdb_trampoline_buffer_error): Ditto.
16056 (struct ipa_sym_addresses): Add fields for new IPA variables.
16057 (symbol_list): Add entries for new IPA variables.
16058 (struct tracepoint): Add fields to hold the address range of the
16059 trampoline used by the tracepoint.
16060 (trampoline_buffer_head): New static variable.
16061 (trampoline_buffer_tail): Ditto.
16062 (claim_trampoline_space): New function.
16063 (have_fast_tracepoint_trampoline_buffer): New function.
16064 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16066 (install_fast_tracepoint): Ditto, also add error buffer argument.
16067 (cmd_qtminftpilen): New function.
16068 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16069 (fast_tracepoint_from_trampoline_address): New function.
16070 (fast_tracepoint_collecting): Handle trampoline as part of jump
16072 (set_trampoline_buffer_space): New function.
16073 (initialize_tracepoint): Initialize new IPA variables.
16074 * target.h (struct target_ops): Add arguments to
16075 install_fast_tracepoint_jump_pad operation, add new
16076 get_min_fast_tracepoint_insn_len operation.
16077 (target_get_min_fast_tracepoint_insn_len): New.
16078 (install_fast_tracepoint_jump_pad): Add arguments.
16079 * server.h (IPA_BUFSIZ): Define.
16080 * linux-i386-ipa.c: Include extra header files.
16081 (initialize_fast_tracepoint_trampoline_buffer): New function.
16082 (initialize_low_tracepoint): Call it.
16083 * server.h (set_trampoline_buffer_space): Declare.
16084 (claim_trampoline_space): Ditto.
16085 (have_fast_tracepoint_trampoline_buffer): Ditto.
16087 2011-11-14 Yao Qi <yao@codesourcery.com>
16089 * server.c (handle_query): Handle InstallInTrace for qSupported.
16090 * tracepoint.c (add_tracepoint): Sort list.
16091 (install_tracepoint, download_tracepoint): New.
16092 (cmd_qtdp): Call them to install and download tracepoints.
16093 (sort_tracepoints): Removed.
16094 (cmd_qtstart): Update.
16096 2011-11-14 Yao Qi <yao@codesourcery.com>
16098 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16099 * mem-break.h: Declare.
16100 * tracepoint.c (cmd_qtstart): Move some code to ...
16101 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16103 (download_tracepoints): Move some code to ...
16104 (download_tracepoint_1): ... here. New.
16106 2011-11-08 Yao Qi <yao@codesourcery.com>
16108 * remote-utils.c (relocate_instruction): A comment fix.
16110 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16112 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16113 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16114 dr_status_mirror and dr_control_mirror from debug_reg_state.
16115 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16116 (i386_initial_stuff): Remove use of deleted globals.
16117 (i386_get_thread_context, i386_set_thread_context,
16118 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16119 from debug_reg_state.
16121 2011-11-05 Yao Qi <yao@codesourcery.com>
16123 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16124 address as TPOINT's.
16126 2011-11-02 Stan Shebs <stan@codesourcery.com>
16128 * tracepoint.c (agent_mem_read_string): New function.
16129 (eval_agent_expr): Call it for tracenz.
16130 * server.c (handle_query): Report support for tracenz.
16132 2011-11-02 Yao Qi <yao@codesourcery.com>
16134 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16136 2011-11-02 Yao Qi <yao@codesourcery.com>
16138 * target.h: Fix a typo in comment.
16140 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16142 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16143 clobber the breakpoints' shadows with fast tracepoint jumps.
16144 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16145 * target.c (write_inferior_memory): Also pass MYADDR down to
16148 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16150 * configure.ac: Check support for personality routine.
16151 * configure: Regenerate.
16152 * config.in: Likewise.
16153 * linux-low.c: Include <sys/personality.h>.
16154 Define ADDR_NO_RANDOMIZE if necessary.
16155 (linux_create_inferior): Disable address space randomization when
16156 forking inferior, if requested.
16157 (linux_supports_disable_randomization): New function.
16158 (linux_target_ops): Install it.
16159 * server.h (disable_randomization): Declare.
16160 * server.c (disable_randomization): New global variable.
16161 (handle_general_set): Handle QDisableRandomization.
16162 (handle_query): Likewise for qSupported.
16163 (main): Support --disable-randomization and --no-disable-randomization
16164 command line arguments.
16165 * target.h (struct target_ops): Add supports_disable_randomization.
16166 (target_supports_disable_randomization): New macro.
16168 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16170 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16172 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16173 [!PT_GETDSBT] (target_loadmap): New definition.
16174 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16175 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16176 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16177 and PT_GETDSBT to LINUX_LOADMAP.
16178 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16179 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16181 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16183 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16184 (arm_linux_hwbp_cap): New static variable.
16185 (arm_linux_get_hwbp_cap): Replace by ...
16186 (arm_linux_init_hwbp_cap): ... this new function.
16187 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16188 (arm_linux_get_hw_watchpoint_count): Likewise.
16189 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16190 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16191 (arm_prepare_to_resume): Use perror_with_name instead of error.
16193 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16195 * linux-arm-low.c: Include <signal.h>.
16196 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16197 (struct arm_linux_hwbp_cap): New data type.
16198 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16199 (struct arm_linux_hw_breakpoint): New data type.
16200 (MAX_BPTS, MAX_WPTS): Define.
16201 (struct arch_process_info, struct arch_lwp_info): New data types.
16202 (arm_linux_get_hwbp_cap): New function.
16203 (arm_linux_get_hw_breakpoint_count): Likewise.
16204 (arm_linux_get_hw_watchpoint_count): Likewise.
16205 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16206 (arm_hwbp_control_initialize): Likewise.
16207 (arm_hwbp_control_is_enabled): Likewise.
16208 (arm_hwbp_control_is_initialized): Likewise.
16209 (arm_hwbp_control_disable): Likewise.
16210 (arm_linux_hw_breakpoint_equal): Likewise.
16211 (arm_linux_hw_point_initialize): Likewise.
16212 (struct update_registers_data): New data structure.
16213 (update_registers_callback: New function.
16214 (arm_insert_point): Likewise.
16215 (arm_remove_point): Likewise.
16216 (arm_stopped_by_watchpoint): Likewise.
16217 (arm_stopped_data_address): Likewise.
16218 (arm_new_process): Likewise.
16219 (arm_new_thread): Likewise.
16220 (arm_prepare_to_resume): Likewise.
16221 (the_low_target): Register arm_insert_point, arm_remove_point,
16222 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16223 arm_new_thread, and arm_prepare_to_resume.
16225 2011-09-15 Stan Shebs <stan@codesourcery.com>
16227 * server.h (struct emit_ops): Add compare-goto fields.
16228 * tracepoint.c (gdb_agent_op_sizes): New table.
16229 (emit_eq_goto): New function.
16230 (emit_ne_goto): New function.
16231 (emit_lt_goto): New function.
16232 (emit_le_goto): New function.
16233 (emit_gt_goto): New function.
16234 (emit_ge_goto): New function.
16235 (is_goto_target): New function.
16236 (compile_bytecodes): Recognize special cases of compare-goto
16237 combinations and call specialized emitters for them.
16238 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16239 (amd64_emit_ne_goto): New function.
16240 (amd64_emit_lt_goto): New function.
16241 (amd64_emit_le_goto): New function.
16242 (amd64_emit_gt_goto): New function.
16243 (amd64_emit_ge_goto): New function.
16244 (amd64_emit_ops): Add the new functions.
16245 (i386_emit_eq_goto): New function.
16246 (i386_emit_ne_goto): New function.
16247 (i386_emit_lt_goto): New function.
16248 (i386_emit_le_goto): New function.
16249 (i386_emit_gt_goto): New function.
16250 (i386_emit_ge_goto): New function.
16251 (i386_emit_ops): Add the new functions.
16253 2011-09-08 Stan Shebs <stan@codesourcery.com>
16255 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16256 (i386_emit_epilogue): Restore %ebx.
16258 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16260 * server.c (step_thread): Remove definition.
16261 (process_serial_event): Don't handle Hs.
16262 * server.h (step_thread): Remove declaration.
16263 * target.c (set_desired_inferior): Remove use of step_thread.
16265 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16267 * linux-low.c: Include linux-procfs.h.
16268 (linux_attach_lwp_1): Update comments.
16269 (linux_attach): Scan for existing threads when attaching to a
16270 process that is the tgid.
16271 * Makefile.in: Update dependencies.
16273 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16275 * configure.srv: Add linux-procfs.o dependencies.
16277 2011-08-14 Yao Qi <yao@codesourcery.com>
16279 * target.h (struct target_ops): Fix indent.
16280 * win32-low.c (win32_target_ops): Fix comment.
16282 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16283 Yao Qi <yao@codesourcery.com>
16285 * Makefile.in (clean): Remove tic6x-*.c files.
16286 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16287 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16288 (tic6x-c64xp-linux.c): Likewise.
16289 * configure.srv: Add support for tic6x-*-uclinux.
16290 * linux-tic6x-low.c: New.
16291 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16293 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16294 Yao Qi <yao@codesourcery.com>
16296 * target.h (struct target_ops): Add read_loadmap.
16297 * linux-low.c (struct target_loadseg): New type.
16298 (struct target_loadmap): New type.
16299 (linux_read_loadmap): New function.
16300 (linux_target_ops): Add linux_read_loadmap.
16301 * server.c (handle_query): Support qXfer:fdpic:read packet.
16302 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16305 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16307 * win32-low.c: Include <stdint.h>.
16309 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16311 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16312 to the inferior here.
16313 (i386_remove_aligned_watchpoint): Ditto.
16314 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16315 fit part of the watchpoint in the debug registers.
16316 (i386_update_inferior_debug_regs): New.
16317 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16318 registers, and only update the inferior on success.
16319 (i386_low_remove_watchpoint): Ditto.
16321 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16323 * linux-low.c (compare_ints, unique, list_threads, show_process,
16324 linux_core_of_thread): Delete.
16325 (linux_target_ops): Change linux_core_of_thread to
16326 linux_common_core_of_thread.
16327 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16328 * utils.c (malloc_failure): Change type of argument.
16329 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16330 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16331 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16332 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16333 (IPA_OBJS): Add common-utils-ipa.o.
16334 (ptid_h, linux_osdata_h): New macros.
16335 (server_h): Add common/common-utils.h, common/xml-utils.h,
16336 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16338 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16339 ptid.o, buffer.o): New rules.
16340 (linux-low.o): Add common/linux-osdata.h as a dependency.
16341 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16342 * configure.ac: Add AC_HEADER_DIRENT check.
16343 * config.in: Regenerate.
16344 * configure: Regenerate.
16345 * remote-utils.c (xml_escape_text): Delete.
16346 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16347 buffer_xml_printf): Move to common/buffer.c.
16348 * server.c (main): Remove call to initialize_inferiors.
16349 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16350 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16351 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16352 internal_error, gdb_assert, gdb_assert_fail): Delete.
16353 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16354 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16356 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16357 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16358 initialize_inferiors): Delete.
16360 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16362 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16365 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16367 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16369 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16371 2011-05-26 Yao Qi <yao@codesourcery.com>
16373 * Makefile.in (thread-db.o): Track dependence to
16374 common/gdb_thread_db.h.
16375 * thread-db.c: include gdb_thread_db.h from right place.
16377 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16379 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16380 __FILE__ and __LINE__ to internal_error.
16382 2011-05-13 Doug Evans <dje@google.com>
16384 * thread-db.c (try_thread_db_load_from_sdir): New function.
16385 (try_thread_db_load_from_dir): New function.
16386 (thread_db_load_search): Handle $sdir, ignore $pdir.
16387 Remove trying of system directories if search of
16388 libthread-db-search-path fails, that is now done via $sdir.
16390 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16392 * server.c (handle_query): Add EnableDisableTracepoints to the list
16393 of supported features.
16394 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16396 (cmd_qtenable_disable): New.
16397 (cmd_qtstart): Install tracepoints even if disabled.
16398 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16399 receiving a QTEnable or QTDisable packet.
16400 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16401 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16403 (gdb_probe): Skip data collection if static tracepoint is disabled.
16405 2011-05-10 Doug Evans <dje@google.com>
16407 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16409 2011-05-04 Doug Evans <dje@google.com>
16411 * linux-low.c (linux_join): Skip process lookup.
16412 * spu-low.c (spu_join): Ditto.
16413 * server.c (join_inferiors_callback): Delete.
16414 (process_serial_event): For 'D' packet (detach) call join_inferior
16417 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16419 * README: Don't mention xscale*-*-linux*.
16420 * configure.srv (xscale*-*-linux*): Don't handle target.
16422 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16424 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16426 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16427 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16428 (i386_emit_void_call_2): Likewise.
16430 2011-04-26 Yao Qi <yao@codesourcery.com>
16432 * linux-low.c: Move common macros to linux-ptrace.h.
16433 Include linux-ptrace.h.
16434 * Makefile.in (linux_ptrace_h): New.
16435 (linux-low.o): Depends on linux-ptrace.h.
16437 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16439 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16440 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16441 (remote_prepare): New function with most of the TCP code from ...
16442 (remote_open): ... here. Detect PORT here unconditionally. Move also
16443 setting transport_is_reliable.
16444 * server.c (run_once): New variable.
16445 (gdbserver_usage): Document it.
16446 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16447 the first run if RUN_ONCE.
16448 * server.h (run_once, remote_prepare): New declarations.
16450 2011-04-19 Tom Tromey <tromey@redhat.com>
16452 * win32-low.c (handle_load_dll): Remove duplicate "the".
16454 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16456 Remove support for old Cygwin 1.5 versions.
16457 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16458 function to avoid warning.
16459 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16462 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16464 * gdbserver/server.h (Macro _): Define it if not available.
16466 2011-03-14 Michael Snyder <msnyder@vmware.com>
16468 * hostio.c (handle_close): Remove unnecessary null test.
16470 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16472 * Makefile.in (maintainer-clean realclean distclean): Remove
16473 "make ... subdir_do" command.
16475 2011-03-10 Michael Snyder <msnyder@vmware.com>
16477 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16479 * server.c (handle_v_run): Free alloced buffer on early return.
16481 2011-03-09 Yao Qi <yao@codesourcery.com>
16484 2011-03-04 Yao Qi <yao@codesourcery.com>
16486 * Makefile.in: Remove GNU make feature --directory.
16488 2011-03-05 Yao Qi <yao@codesourcery.com>
16490 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16491 (subdir_do): New make target. Copied from gdb/Makefile.
16492 (maintainer-clean, realclean, distclean, clean): Call corresponding
16493 make targets in common/Makefile.
16495 2011-02-11 Yao Qi <yao@codesourcery.com>
16497 * configure.ac: Call AC_PROG_RANLIB.
16498 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16499 * configure: Regenerate.
16501 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16503 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16505 2011-03-06 Yao Qi <yao@codesourcery.com>
16507 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16509 2011-03-05 Yao Qi <yao@codesourcery.com>
16511 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16512 (subdir_do): New make target. Copied from gdb/Makefile.
16513 (maintainer-clean, realclean, distclean, clean): Call corresponding
16514 make targets in common/Makefile.
16516 2011-03-04 Yao Qi <yao@codesourcery.com>
16518 * Makefile.in: Remove GNU make feature --directory.
16520 2011-03-04 Michael Snyder <msnyder@vmware.com>
16522 * server.c (queue_stop_reply): Call xmalloc not malloc.
16524 2011-03-02 Michael Snyder <msnyder@vmware.com>
16526 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16528 2011-02-28 Michael Snyder <msnyder@vmware.com>
16530 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16531 (cmd_qtframe): Ditto.
16532 (cmd_qtbuffer): Ditto.
16533 (cmd_bigqtbuffer): Ditto.
16535 * utils.c (decimal2str): Initialize 'width' to nine, then
16536 don't mess with it.
16538 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16540 * hostio.c (require_data): Free *data, not data.
16542 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16544 * hostio.c (require_data): Use free, not xfree.
16546 2011-02-27 Michael Snyder <msnyder@vmware.com>
16548 * server.c (handle_query): Discard unused value.
16550 * hostio.c (require_data): Free malloc memory before returning
16553 2011-02-26 Michael Snyder <msnyder@vmware.com>
16555 * linux-low.c (list_threads): Call closedir for dirent.
16557 2011-02-27 Michael Snyder <msnyder@vmware.com>
16559 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16560 a case statement falls through.
16562 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16564 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16567 2011-02-26 Michael Snyder <msnyder@vmware.com>
16569 * utils.c (decimal2str): Eliminate dead code and dead param.
16570 (pulongest): Drop dead param from call to decimal2str.
16573 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16575 Revert the following patch (not approved yet):
16576 2011-02-21 Hui Zhu <teawater@gmail.com>
16577 * tracepoint.c (tp_printf): New function.
16578 (eval_agent_expr): Handle gdb_agent_op_printf.
16580 2011-02-21 Hui Zhu <teawater@gmail.com>
16582 * tracepoint.c (tp_printf): New function.
16583 (eval_agent_expr): Handle gdb_agent_op_printf.
16585 2011-02-18 Tom Tromey <tromey@redhat.com>
16587 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16588 (tracepoint.o): Likewise.
16589 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16590 (gdb_agent_op_names): Likewise.
16592 2011-02-18 Tom Tromey <tromey@redhat.com>
16594 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16595 gdb_agent_op_rot>: New constants.
16596 (gdb_agent_op_names): Add pick and roll.
16597 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16600 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16602 * aclocal.m4: Regenerated with aclocal-1.11.1.
16604 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16606 * server.c (handle_qxfer_traceframe_info): New.
16607 (qxfer_packets): Register "traceframe-info".
16608 (handle_query): Report support for qXfer:traceframe-info:read+.
16609 * tracepoint.c (match_blocktype): New.
16610 (traceframe_find_block_type): Rename to ...
16611 (traceframe_walk_blocks): ... this. Add callback filter argument,
16613 (traceframe_find_block_type): New, reimplemented on top of
16614 traceframe_walk_blocks.
16615 (build_traceframe_info_xml): New.
16616 (traceframe_read_info): New.
16617 * server.h (traceframe_read_info): Declare.
16619 2011-02-11 Yao Qi <yao@codesourcery.com>
16621 * configure.ac: Call AC_PROG_RANLIB.
16622 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16623 * configure: Regenerate.
16625 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16627 * server.c (gdb_read_memory): Change return semantics to allow
16629 (handle_search_memory_1): Adjust.
16630 (process_serial_event) <'m' packet>: Handle partial transfers.
16631 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16633 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16635 * regcache.c (init_register_cache): Initialize
16636 regcache->register_status.
16637 (free_register_cache): Release regcache->register_status.
16638 (regcache_cpy): Copy register_status.
16639 (registers_to_string): Print 'x's for unavailable registers.
16640 (supply_register): Mark the register's status valid or
16641 unavailable, depending on whether a buffer was passed in or not.
16642 (supply_register_zeroed): New.
16643 (supply_regblock): Mark the registers' status valid or
16644 unavailable, depending on whether a buffer was passed in or not.
16645 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16646 (struct regcache): New `register_status' field.
16647 (supply_register_zeroed): Declare.
16648 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16649 supply_register_zeroed, rather than passing a NULL buffer to
16651 * tracepoint.c (fetch_traceframe_registers): Update comment.
16653 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16655 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16658 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16660 * server.h (decode_xfer_write): Change prototype.
16661 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16662 and don't extract the annex here.
16663 * server.c (decode_xfer_read): Remove `annex' parameter,
16664 and don't extract the annex here.
16665 (decode_xfer): New.
16666 (struct qxfer): New.
16667 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16668 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16669 (handle_qxfer_statictrace): New functions, abstracted out from
16670 handle_query, and made to use the struct qxfer interface.
16671 (handle_threads_qxfer_proper): Rename to ...
16672 (handle_qxfer_threads_proper): ... this.
16673 (handle_threads_qxfer): Rename to ...
16674 (handle_qxfer_threads): ... this. Adjust.
16675 (qxfer_packets): New array.
16676 (handle_qxfer): New function.
16677 (handle_query): Use handle_qxfer.
16679 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16681 * gdbreplay.c: Shorten lines of >= 80 columns.
16682 * linux-low.c: Ditto.
16683 * linux-ppc-low.c: Ditto.
16684 * linux-s390-low.c: Ditto.
16685 * linux-sparc-low.c: Ditto.
16686 * linux-x86-low.c: Ditto.
16687 * linux-xtensa-low.c: Ditto.
16688 * mem-break.c: Ditto.
16689 * nto-low.c: Ditto.
16690 * regcache.h: Ditto.
16691 * remote-utils.c: Ditto.
16694 * thread-db.c: Ditto.
16695 * tracepoint.c: Ditto.
16697 * win32-low.h: Ditto.
16699 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16701 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16704 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16706 * server.c (gdbserver_version): Update copyright year in version
16708 * gdbreplay.c (gdbreplay_version): Ditto.
16710 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16712 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16713 * linux-bfin-low.c: New file.
16714 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16715 PT_DATA_ADDR for BFIN targets.
16716 * Makefile.in (SFILES): Add linux-bfin-low.c.
16717 (clean): Remove reg-bfin.c.
16718 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16719 * README: Mention supported Blackfin targets.
16721 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16723 * .gitignore: New file.
16725 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16727 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16729 2010-10-22 Jie Zhang <jie@codesourcery.com>
16731 * Makefile.in: Add FLAGS_TO_PASS variable.
16732 (install): Remove dependency of install-only and recursively
16733 invoke make for install-only.
16735 2010-10-04 Doug Evans <dje@google.com>
16737 * Makefile.in (uninstall): Use $(DESTDIR).
16739 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16743 * linux-x86-low.c (compat_siginfo_from_siginfo)
16744 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16745 si_code is < 0. Check for si_code == SI_TIMER before checking for
16748 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16750 * lynx-i386-low.c: New file.
16751 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16753 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16755 * lynx-low.c (ptrace_request_to_str): Remove handling for
16756 request values that have been removed in LynxOS 5.x.
16758 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16760 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16763 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16765 * configure.ac: Add --enable-inprocess-agent option.
16766 * configure: Rebuilt.
16768 2010-09-06 Yao Qi <yao@codesourcery.com>
16770 * linux-low.c (linux_kill): Remove unused variable.
16771 (linux_stabilize_threads): Likewise.
16772 * server.c (start_inferior): Likewise.
16773 (queue_stop_reply_callback): Likewise.
16774 * tracepoint.c (do_action_at_tracepoint): Likewise.
16776 2010-09-06 Yao Qi <yao@codesourcery.com>
16778 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16781 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16783 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16785 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16787 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16790 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16792 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16793 gdbserver/lynx-ppc-low.c: New files.
16794 * Makefile.in (lynx_low_h): New variable.
16795 (lynx-low.o, lynx-ppc-low.o): New rules.
16796 * configure.ac: On LynxOS, link with -lnetinet.
16797 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16798 * configure: regenerate.
16800 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16802 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16803 * configure.ac: Add check for vasprintf and vsnprintf.
16804 * configure, config.in: Regenerate.
16805 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16807 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16809 * gdbreplay.c: Move include of alloca.h up, next to include of
16811 * server.h: Add include of malloc.h.
16812 * mem-break.c: Remove include of malloc.h.
16813 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16815 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16817 * Makefile.in (memmem.o): Build with -Wno-error.
16819 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16821 * utils.c (xsnprintf): Make non-static.
16822 * server.h: Add xsnprintf declaration.
16823 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16824 replace calls to snprintf by calls to xsnprintf throughout.
16826 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16828 * configure.ac: Add configure check for alloca.
16829 * configure, config.in: Regenerate.
16830 * server.h: Include alloca.h if it exists.
16831 * gdbreplay.c: Include alloca.h if it exists.
16833 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16835 * linux-low.c (__SIGRTMIN): Define if not already defined.
16836 (linux_create_inferior): Check for __ANDROID__ rather than
16838 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16839 are already deferred.
16840 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16841 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16842 stopped and already has a pending signal to report.
16843 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16844 a pending signal to report or is moving out of a jump pad.
16845 (linux_init_signals): Check for __ANDROID__ rather than
16848 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16850 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16851 debug_threads check. Avoid a linear search when not doing debug
16854 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16856 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16857 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16858 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16859 (process_event): Change local fd's type to gdb_fildes_t.
16860 (create_file_handler): Adjust prototype.
16861 (delete_file_handler): Adjust prototype.
16862 (handle_file_event): Adjust prototype. Use pfildes.
16863 (create_file_event): Adjsut prototype.
16864 * remote-utils.c (remote_desc, listen_desc): Change type to
16866 * server.h: New gdb_fildes_t typedef.
16867 [USE_WIN32API]: Include winsock2.h.
16868 (delete_file_handler, add_file_handler): Adjust prototypes.
16869 (pfildes): Declare.
16870 * utils.c (pfildes): New.
16872 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16874 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16875 * configure: Regenerate.
16877 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16879 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16880 (linux_done_accessing_memory): ... this.
16881 (linux_target_ops): Adjust.
16882 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16883 * nto-low.c (nto_target_ops): Adjust comment.
16884 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16885 * spu-low.c (spu_target_ops): Adjust comment.
16886 * target.h (target_ops): Rename unprepare_to_access_memory field
16887 to done_accessing_memory.
16888 (unprepare_to_access_memory): Rename to ...
16889 (done_accessing_memory): ... this.
16891 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16893 * linux-low.c (linux_prepare_to_access_memory): New.
16894 (linux_unprepare_to_access_memory): New.
16895 (linux_target_ops): Install them.
16896 * server.c (read_memory): Rename to ...
16897 (gdb_read_memory): ... this. Use
16898 prepare_to_access_memory/prepare_to_access_memory.
16899 (write_memory): Rename to ...
16900 (gdb_write_memory): ... this. Use
16901 prepare_to_access_memory/prepare_to_access_memory.
16902 (handle_search_memory_1): Adjust.
16903 (process_serial_event): Adjust.
16904 * target.h (struct target_ops): New fields
16905 prepare_to_access_memory and unprepare_to_access_memory.
16906 (prepare_to_access_memory, unprepare_to_access_memory): New.
16907 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16908 prepare_to_access_memory/prepare_to_access_memory.
16909 * nto-low.c (nto_target_ops): Adjust.
16910 * spu-low.c (spu_target_ops): Adjust.
16911 * win32-low.c (win32_target_ops): Adjust.
16913 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16915 * Makefile.in (WARN_CFLAGS): Get it from configure.
16916 (WERROR_CFLAGS): New.
16917 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16918 * configure.ac: Introduce --enable-werror, which adds -Werror to
16919 the compiler command line. Enabled by default. Disable with
16920 --disable-werror. Add -Wdeclaration-after-statement
16921 Wpointer-arith and -Wformat-nonliteral to warning flags.
16922 * configure: Regenerate.
16924 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16926 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16928 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16930 * gdbreplay.c (remote_error): New.
16932 (expect): Use gdbchar. Check for error reading from GDB.
16933 Clarify sync error output.
16934 (play): Check for errors writing to GDB.
16935 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16936 * remote-utils.c (getpkt): Check for errors writing to the remote
16939 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16941 * linux-low.c (linux_wait_1): Move non-debugging code out of
16942 `debug_threads' control.
16944 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16946 * linux-low.c (linux_wait_1): Don't set last_status here.
16947 * server.c (push_event, queue_stop_reply_callback): Assert we're
16948 not pushing a TARGET_WAITKIND_IGNORE event.
16949 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16950 (myresume, handle_target_event): Set the thread's last_resume_kind
16951 and last_status from the target returned status.
16953 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16957 * linux-x86-low.c (update_debug_registers_callback): New.
16958 (i386_dr_low_set_addr): Use it.
16959 (i386_dr_low_get_addr): New.
16960 (i386_dr_low_set_control): Use update_debug_registers_callback.
16961 (i386_dr_low_get_control): New.
16962 (i386_dr_low_get_status): Adjust.
16963 * linux-low.c (linux_stop_lwp): New.
16964 * linux-low.h (linux_stop_lwp): Declare.
16966 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16967 argument instead of a i386_debug_reg_state.
16968 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16969 a i386_debug_reg_state.
16970 (i386_insert_aligned_watchpoint): Adjust.
16971 (i386_remove_aligned_watchpoint): Adjust.
16972 (i386_low_stopped_data_address): Read the debug registers from the
16973 inferior instead of from the mirrors.
16974 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16975 (i386_dr_low_get_addr): Declare.
16976 (i386_dr_low_get_control): Declare.
16977 (i386_dr_low_get_status): Change prototype.
16979 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16980 (i386_dr_low_get_addr): New.
16981 (i386_dr_low_get_control): New.
16982 (i386_dr_low_get_status): Adjust prototype. Return
16984 (i386_initial_stuff): Clear dr_status_mirror and
16986 (i386_get_thread_context): Adjust.
16987 (i386_set_thread_context): Adjust.
16988 (i386_thread_added): Adjust.
16990 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16992 * linux-low.h (linux_thread_area): Delete declaration.
16994 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16996 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16997 after its termination.
16999 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17001 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17002 (gdb_wants_all_stopped): Delete.
17003 (linux_wait_1): Don't call them.
17004 * server.c (handle_v_cont): Tag all threads as want-stopped.
17005 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17006 stopped as "client-wants-stopped".
17008 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17010 * Makefile.in (signals_h): New.
17011 (server_h): Depend on it.
17012 (server.o): Don't depend on $(signals_def).
17013 (signals.o): Depend on $(signals_def).
17015 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17017 * Makefile.in (signals_def): New.
17018 (server_h): Append include/gdb/signals.h and signals_def.
17019 (server.o): Append signals_def.
17021 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17023 * server.c (handle_target_event): Use target_signal_to_host for
17024 resume_info.sig initialization.
17025 * target.h (struct thread_resume) <sig>: New comment.
17027 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17029 * server.c (handle_query): strcpy() the returned string from paddress()
17030 instead of sprintf().
17031 * utils.c (paddress): Return phex_nz().
17033 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17035 * server.c (handle_v_cont): Call mourn_inferior if process
17037 (myresume): Likewise.
17039 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17041 Static tracepoints, and integration with UST.
17043 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17044 * mem-break.c (uninsert_all_breakpoints)
17045 (reinsert_all_breakpoints): New.
17046 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17047 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17048 (gdb_agent_ust_loaded, helper_thread_id)
17049 (gdb_agent_helper_thread_id): New macros.
17050 (struct ipa_sym_addresses): Add addr_ust_loaded,
17051 addr_helper_thread_id, addr_cmd_buf.
17052 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17053 (in_process_agent_loaded_ust): New.
17054 (write_e_ust_not_loaded): New.
17055 (maybe_write_ipa_ust_not_loaded): New.
17056 (struct collect_static_trace_data_action): New.
17057 (enum tracepoint_type) <static_tracepoint>: New.
17058 (struct tracepoint) <handle>: Mention static tracepoints.
17059 (struct static_tracepoint_ctx): New.
17060 (CMD_BUF_SIZE): New.
17061 (add_tracepoint_action): Handle static tracepoint actions.
17062 (unprobe_marker_at): New.
17063 (clear_installed_tracepoints): Handle static tracepoints.
17064 (cmd_qtdp): Handle static tracepoints.
17065 (probe_marker_at): New.
17066 (cmd_qtstart): Handle static tracepoints.
17067 (response_tracepoint): Handle static tracepoints.
17068 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17069 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17070 (get_context_regcache): Handle static tracepoints.
17071 (do_action_at_tracepoint): Handle static tracepoint actions.
17072 (traceframe_find_block_type): Handle static trace data blocks.
17073 (traceframe_read_sdata): New.
17074 (download_tracepoints): Download static tracepoint actions.
17075 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17076 (GDB_PROBE_NAME): New.
17078 (GET_UST_SYM): New.
17081 (ust_marker_to_static_tracepoint): New.
17083 (collect_ust_data_at_tracepoint): New.
17084 (gdb_ust_probe): New.
17085 (UNIX_PATH_MAX, SOCK_DIR): New.
17086 (gdb_ust_connect_sync_socket): New.
17087 (resume_thread, stop_thread): New.
17088 (run_inferior_command): New.
17089 (init_named_socket): New.
17090 (gdb_ust_socket_init): New.
17091 (cstr_to_hexstr): New.
17093 (first_marker, next_marker): New.
17094 (response_ust_marker): New.
17095 (cmd_qtfstm, cmd_qtsstm): New.
17096 (unprobe_marker_at, probe_marker_at): New.
17097 (cmd_qtstmat, gdb_ust_thread): New.
17098 (gdb_ust_init): New.
17099 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17100 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17101 (ST_REGENTRY): New.
17102 (x86_64_st_collect_regmap): New.
17103 (X86_64_NUM_ST_COLLECT_GREGS): New.
17104 (AMD64_RIP_REGNUM): New.
17105 (supply_static_tracepoint_registers): New.
17106 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17107 (ST_REGENTRY): New.
17108 (i386_st_collect_regmap): New.
17109 (i386_NUM_ST_COLLECT_GREGS): New.
17110 (supply_static_tracepoint_registers): New.
17111 * server.c (handle_query): Handle qXfer:statictrace:read.
17112 <qSupported>: Report support for StaticTracepoints, and
17113 qXfer:statictrace:read features.
17114 * server.h (traceframe_read_sdata)
17115 (supply_static_tracepoint_registers): Declare.
17116 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17117 (unpack_varlen_hex): Include in IPA build.
17118 * Makefile.in (ustlibs, ustinc): New.
17119 (IPA_OBJS): Add remote-utils-ipa.o.
17120 ($(IPA_LIB)): Link -ldl and -lpthread.
17122 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17123 * config.in, configure: Regenerate.
17125 2010-06-20 Ian Lance Taylor <iant@google.com>
17126 Pedro Alves <pedro@codesourcery.com>
17128 * linux-x86-low.c (always_true): Delete.
17129 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17130 trying to fool the compiler with always_true.
17132 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17134 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17135 conditions in gdbserver.
17137 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17139 * spu-low.c (spu_read_memory): Wrap around local store limit.
17140 (spu_write_memory): Likewise.
17142 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17144 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17145 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17147 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17149 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17150 uses with LONGEST uses.
17152 2010-06-14 Stan Shebs <stan@codesourcery.com>
17153 Pedro Alves <pedro@codesourcery.com>
17157 * linux-x86-low.c: Include limits.h.
17159 (always_true): New.
17162 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17163 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17164 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17165 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17166 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17167 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17168 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17169 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17170 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17171 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17172 (amd64_emit_void_call_2): New.
17173 (amd64_emit_ops): New.
17174 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17175 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17176 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17177 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17178 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17179 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17180 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17181 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17182 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17183 (i386_emit_stack_adjust, i386_emit_int_call_1)
17184 (i386_emit_void_call_2): New.
17185 (i386_emit_ops): New.
17186 (x86_emit_ops): New.
17187 (the_low_target): Install x86_emit_ops.
17188 * server.h (struct emit_ops): New.
17189 (get_raw_reg_func_addr): Declare.
17190 (current_insn_ptr, emit_error): Declare.
17191 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17192 (set_trace_state_variable_value): New defines.
17193 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17194 addr_get_trace_state_variable_value and
17195 addr_set_trace_state_variable_value.
17196 (symbol_list): New fields for get_raw_reg,
17197 get_trace_state_variable_value and set_trace_state_variable_value.
17198 (condfn): New typedef.
17199 (struct tracepoint): New field `compiled_cond'.
17200 (do_action_at_tracepoint): Clear compiled_cond.
17201 (get_trace_state_variable_value, set_trace_state_variable_value):
17203 (condition_true_at_tracepoint): If there's a compiled condition,
17205 (current_insn_ptr, emit_error): New globals.
17206 (struct bytecode_address): New.
17207 (get_raw_reg_func_addr): New.
17208 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17209 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17210 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17211 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17212 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17213 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17214 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17215 (compile_tracepoint_condition, compile_bytecodes): New.
17216 * target.h (emit_ops): Forward declare.
17217 (struct target_ops): New field emit_ops.
17218 (target_emit_ops): New.
17219 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17220 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17221 * linux-low.c (linux_emit_ops): New.
17222 (linux_target_ops): Install it.
17223 * linux-low.h (struct linux_target_ops): New field emit_ops.
17225 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17227 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17228 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17230 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17231 Stan Shebs <stan@codesourcery.com>
17233 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17234 (all): Depend on $(extra_libraries).
17235 (install-only): Install the IPA.
17236 (IPA_OBJS, IPA_LIB): New.
17237 (clean): Remove the IPA lib.
17238 (IPAGENT_CFLAGS): New.
17239 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17240 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17241 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17242 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17243 * configure.ac: Check for atomic builtins support in the compiler.
17244 (IPA_DEPFILES, extra_libraries): Define.
17245 * configure.srv (ipa_obj): Add description.
17246 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17247 (i[34567]86-*-linux*): Set ipa_obj.
17248 (x86_64-*-linux*): Set ipa_obj.
17249 * linux-low.c (stabilizing_threads): New.
17250 (supports_fast_tracepoints): New.
17251 (linux_detach): Stabilize threads before detaching.
17252 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17253 the lwp is either not stabilizing, or is moving out of a jump pad.
17254 (linux_fast_tracepoint_collecting): New.
17255 (maybe_move_out_of_jump_pad): New.
17256 (enqueue_one_deferred_signal): New.
17257 (dequeue_one_deferred_signal): New.
17258 (linux_wait_for_event_1): If moving out of a jump pad, defer
17259 pending signals to later.
17260 (linux_stabilize_threads): New.
17261 (linux_wait_1): Check if threads need moving out of jump pads, and
17263 (stuck_in_jump_pad_callback): New.
17264 (move_out_of_jump_pad_callback): New.
17265 (lwp_running): New.
17266 (linux_resume_one_lwp): Handle moving out of jump pads.
17267 (linux_set_resume_request): Dequeue deferred signals.
17268 (need_step_over_p): Also step over fast tracepoint jumps.
17269 (start_step_over): Also uninsert fast tracepoint jumps.
17270 (finish_step_over): Also reinsert fast tracepoint jumps.
17271 (linux_install_fast_tracepoint_jump): New.
17272 (linux_target_ops): Install linux_stabilize_threads and
17273 linux_install_fast_tracepoint_jump_pad.
17274 * linux-low.h (linux_target_ops) <get_thread_area,
17275 install_fast_tracepoint_jump_pad>: New fields.
17276 (struct lwp_info) <collecting_fast_tracepoint,
17277 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17278 (linux_get_thread_area): Declare.
17279 * linux-x86-low.c (jump_insn): New.
17280 (x86_get_thread_area): New.
17281 (append_insns): New.
17282 (push_opcode): New.
17283 (amd64_install_fast_tracepoint_jump_pad): New.
17284 (i386_install_fast_tracepoint_jump_pad): New.
17285 (x86_install_fast_tracepoint_jump_pad): New.
17286 (the_low_target): Install x86_get_thread_area and
17287 x86_install_fast_tracepoint_jump_pad.
17288 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17289 (struct fast_tracepoint_jump): New.
17290 (fast_tracepoint_jump_insn): New.
17291 (fast_tracepoint_jump_shadow): New.
17292 (find_fast_tracepoint_jump_at): New.
17293 (fast_tracepoint_jump_here): New.
17294 (delete_fast_tracepoint_jump): New.
17295 (set_fast_tracepoint_jump): New.
17296 (uninsert_fast_tracepoint_jumps_at): New.
17297 (reinsert_fast_tracepoint_jumps_at): New.
17298 (set_breakpoint_at): Use write_inferior_memory.
17299 (uninsert_raw_breakpoint): Use write_inferior_memory.
17300 (check_mem_read): Mask out fast tracepoint jumps.
17301 (check_mem_write): Mask out fast tracepoint jumps.
17302 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17303 (set_fast_tracepoint_jump): Declare.
17304 (delete_fast_tracepoint_jump)
17305 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17306 (reinsert_fast_tracepoint_jumps_at): Declare.
17307 * regcache.c: Don't compile many functions when building the
17308 in-process agent library.
17309 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17310 the register buffer in the heap.
17311 (free_register_cache): If the register buffer isn't owned by the
17312 regcache, don't free it.
17313 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17314 pre-existing register caches.
17315 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17317 (convert_ascii_to_int): : Constify `from' parameter type.
17318 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17319 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17320 the needed buffer in-place.
17321 (relocate_instruction): New.
17322 * server.c (handle_query) <qSymbols>: If the target supports
17323 tracepoints, give it a chance of looking up symbols. Report
17324 support for fast tracepoints.
17325 (handle_status): Stabilize threads.
17326 (process_serial_event): Adjust.
17327 * server.h (struct fast_tracepoint_jump): Forward declare.
17328 (struct process_info) <fast_tracepoint_jumps>: New field.
17329 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17330 (decode_X_packet, decode_M_packet): Adjust.
17331 (relocate_instruction): Declare.
17332 (in_process_agent_loaded): Declare.
17333 (tracepoint_look_up_symbols): Declare.
17334 (struct fast_tpoint_collect_status): Declare.
17335 (fast_tracepoint_collecting): Declare.
17336 (force_unlock_trace_buffer): Declare.
17337 (handle_tracepoint_bkpts): Declare.
17338 (initialize_low_tracepoint)
17339 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17340 * target.h (struct target_ops) <stabilize_threads,
17341 install_fast_tracepoint_jump_pad>: New fields.
17342 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17343 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17344 [HAVE_STDINT_H]: Include stdint.h.
17345 (trace_debug_1): Rename to ...
17346 (trace_vdebug): ... this.
17347 (trace_debug): Rename to ...
17348 (trace_debug_1): ... this. Add `level' parameter.
17349 (trace_debug): New.
17350 (ATTR_USED, ATTR_NOINLINE): New.
17351 (IP_AGENT_EXPORT): New.
17352 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17353 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17354 (about_to_request_buffer_space, trace_buffer_is_full)
17355 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17356 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17357 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17358 (traceframe_write_count, traceframes_created)
17359 (trace_state_variables)
17360 New renaming defines.
17361 (struct ipa_sym_addresses): New.
17362 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17363 (symbol_list): New.
17364 (ipa_sym_addrs): New.
17365 (all_tracepoint_symbols_looked_up): New.
17366 (in_process_agent_loaded): New.
17367 (write_e_ipa_not_loaded): New.
17368 (maybe_write_ipa_not_loaded): New.
17369 (tracepoint_look_up_symbols): New.
17370 (debug_threads) [IN_PROCESS_AGENT]: New.
17371 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17372 (UNKNOWN_SIDE_EFFECTS): New.
17373 (stop_tracing): New.
17374 (flush_trace_buffer): New.
17375 (stop_tracing_bkpt): New.
17376 (flush_trace_buffer_bkpt): New.
17377 (read_inferior_integer): New.
17378 (read_inferior_uinteger): New.
17379 (read_inferior_data_pointer): New.
17380 (write_inferior_data_pointer): New.
17381 (write_inferior_integer): New.
17382 (write_inferior_uinteger): New.
17383 (struct collect_static_trace_data_action): Delete.
17384 (enum tracepoint_type): New.
17385 (struct tracepoint) <type>: New field `type'.
17386 <actions_str, step_actions, step_actions_str>: Only include in
17388 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17389 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17390 (tracepoints): Use IP_AGENT_EXPORT.
17391 (last_tracepoint): Don't include in the IPA.
17392 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17393 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17394 (alloced_trace_state_variables): New.
17395 (trace_state_variables): Use IP_AGENT_EXPORT.
17396 (traceframe_t): Delete unused variable.
17397 (circular_trace_buffer): Don't include in the IPA.
17398 (trace_buffer_start): Delete.
17399 (struct trace_buffer_control): New.
17400 (trace_buffer_free): Delete.
17401 (struct ipa_trace_buffer_control): New.
17402 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17403 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17405 (trace_buffer_ctrl): New.
17406 (TRACE_BUFFER_CTRL_CURR): New.
17407 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17408 Reimplement as macros.
17409 (trace_buffer_wrap): Delete.
17410 (traceframe_write_count, traceframe_read_count)
17411 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17412 (struct tracepoint_hit_ctx) <type>: New field.
17413 (struct fast_tracepoint_ctx): New.
17414 (memory_barrier): New.
17416 (record_tracepoint_error): Update atomically in the IPA.
17417 (clear_inferior_trace_buffer): New.
17418 (about_to_request_buffer_space): New.
17419 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17420 updating the same buffer.
17421 (add_tracepoint): Default the tracepoint's type to trap
17422 tracepoint, and orig_size to -1.
17423 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17424 internal variables.
17425 (create_trace_state_variable): New parameter `gdb'. Handle it.
17426 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17427 (cmd_qtdp): Handle fast tracepoints.
17428 (cmd_qtdv): Adjust.
17429 (max_jump_pad_size): New.
17430 (gdb_jump_pad_head): New.
17431 (get_jump_space_head): New.
17432 (claim_jump_space): New.
17433 (sort_tracepoints): New.
17434 (MAX_JUMP_SIZE): New.
17435 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17437 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17438 support. Upload fast traceframes, and delete internal IPA
17440 (stop_tracing_handler): New.
17441 (flush_trace_buffer_handler): New.
17442 (cmd_qtstop): Upload fast tracepoints.
17443 (response_tracepoint): Handle fast tracepoints.
17444 (tracepoint_finished_step): Upload fast traceframes. Set the
17445 tracepoint hit context's tracepoint type.
17446 (handle_tracepoint_bkpts): New.
17447 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17448 type. Add comment about fast tracepoints.
17449 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17450 non-existing action_str field.
17451 (get_context_regcache): Handle fast tracepoints.
17452 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17454 (fast_tracepoint_from_jump_pad_address): New.
17455 (fast_tracepoint_from_ipa_tpoint_address): New.
17456 (collecting_t): New.
17457 (force_unlock_trace_buffer): New.
17458 (fast_tracepoint_collecting): New.
17460 (gdb_collect): New.
17461 (write_inferior_data_ptr): New.
17462 (target_tp_heap): New.
17463 (target_malloc): New.
17464 (download_agent_expr): New.
17466 (download_tracepoints): New.
17467 (download_trace_state_variables): New.
17468 (upload_fast_traceframes): New.
17469 (IPA_FIRST_TRACEFRAME): New.
17470 (IPA_NEXT_TRACEFRAME_1): New.
17471 (IPA_NEXT_TRACEFRAME): New.
17472 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17473 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17474 (gdb_jump_pad_buffer_end): New.
17475 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17476 (initialize_tracepoint): Adjust.
17477 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17478 buffer. Initialize the low module.
17479 * utils.c (PREFIX, TOOLNAME): New.
17480 (malloc_failure): Use PREFIX.
17481 (error): In the IPA, an error causes an exit.
17482 (fatal, warning): Use PREFIX.
17483 (internal_error): Use TOOLNAME.
17484 (NUMCELLS): Increase to 10.
17485 * configure, config.in: Regenerate.
17487 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17489 * server.c (handle_query) <qSupported>: Do two passes over the
17490 qSupported string to avoid nesting strtok.
17492 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17494 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17496 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17497 -Wl,--dynamic-list.
17498 * configure: Regenerate.
17499 * proc-service.list: New.
17501 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17503 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17506 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17508 * gdbreplay.c (remote_open): Check error return from socket() call by
17509 its equality to -1 not by it being negative.
17510 * remote-utils.c (remote_open): Likewise.
17512 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17514 * config.h: Regenerate.
17516 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17518 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17519 doesn't provide PTRACE_GET_THREAD_AREA.
17521 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17523 * linux-m68k-low.c: Include <asm/ptrace.h>
17524 (ps_get_thread_area): Implement.
17526 2010-05-03 Doug Evans <dje@google.com>
17528 * event-loop.c (struct callback_event): New struct.
17529 (callback_list): New global.
17530 (append_callback_event, delete_callback_event): New functions.
17531 (process_callback): New function.
17532 (start_event_loop): Call it.
17533 * remote-utils.c (NOT_SCHEDULED): Define.
17534 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17535 moved out of readchar.
17536 (readchar): Rewrite. Call reschedule before returning.
17537 (reset_readchar): New function.
17538 (remote_close): Call it.
17539 (process_remaining, reschedule): New functions.
17540 * server.h (callback_handler_func): New typedef.
17541 (append_callback_event, delete_callback_event): Declare.
17543 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17545 * proc-service.c (ps_pglobal_lookup): Use
17546 thread_db_look_up_one_symbol.
17547 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17548 parameter. Use it instead of all_symbols_looked_up.
17549 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17551 (all_symbols_looked_up): Don't declare.
17552 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17553 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17555 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17556 Set all_symbols_looked_up here.
17557 (thread_db_look_up_one_symbol): New.
17558 (thread_db_get_tls_address): Adjust.
17559 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17560 thread_db object on the heap, and tentatively set it in the
17562 (thread_db_init): Don't set all_symbols_looked_up here.
17563 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17565 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17567 * linux-low.c (linux_kill, linux_detach): Adjust.
17568 (status_pending_p_callback): Remove redundant statement. Check
17569 for !TARGET_WAITIKIND_IGNORE, instead of
17570 TARGET_WAITKIND_STOPPED.
17571 (handle_tracepoints): Make sure LWP is locked. Adjust.
17572 (linux_wait_for_event_1): Adjust.
17573 (linux_cancel_breakpoints): New.
17574 (unsuspend_one_lwp): New.
17575 (unsuspend_all_lwps): New.
17576 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17577 (send_sigstop_callback): Change return type to int, add new
17578 `except' parameter and handle it.
17579 (suspend_and_send_sigstop_callback): New.
17580 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17581 pass them down. If SUSPEND, also increment the lwp's suspend
17583 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17584 (need_step_over_p): Don't consider suspended LWPs.
17585 (start_step_over): Adjust.
17586 (proceed_one_lwp): Change return type to int, add new `except'
17587 parameter and handle it.
17588 (unsuspend_and_proceed_one_lwp): New.
17589 (proceed_all_lwps): Use find_inferior instead of
17591 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17592 also decrement the suspend count of LWPs. Pass `except' down,
17593 instead of hacking its suspend count.
17594 (linux_pause_all): Add `freeze' parameter. Adjust.
17595 (linux_unpause_all): New.
17596 (linux_target_ops): Install linux_unpause_all.
17597 * server.c (handle_status): Adjust.
17598 * target.h (struct target_ops): New fields `unpause_all' and
17599 `cancel_breakpoints'. Add new parameter to `pause_all'.
17600 (pause_all): Add new `freeze' parameter.
17601 (unpause_all): New.
17602 (cancel_breakpoints): New.
17603 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17604 cancel breakpoints.
17605 (cmd_qtstart): Pause threads.
17606 (stop_tracing): Pause threads, and cancel breakpoints.
17607 * win32-low.c (win32_target_ops): Adjust.
17609 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17611 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17612 the inferior right away from here...
17613 (linux_wait_1): ... to here, and adjust to check the thread's
17614 last_resume_kind instead of the lwp's step or stop_expected flags.
17616 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17618 * README: Use consistent `GDB' and `GDBserver' spellings.
17620 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17622 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17623 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17624 (linux_detach_one_lwp): Assume the lwp is stopped.
17625 (any_thread_of): Delete.
17626 (linux_detach): Stop all lwps here. Don't blindly delete all
17628 (delete_lwp_callback): New.
17629 (linux_mourn): Delete all lwps of the process that is gone.
17630 (linux_wait_1): Don't delete the last lwp of the process here.
17631 * mem-break.h (mark_breakpoints_out): Declare.
17632 * mem-break.c (mark_breakpoints_out): New.
17633 (free_all_breakpoints): Use it.
17634 * server.c (handle_target_event): If the process is gone, mark
17636 * thread-db.c (struct thread_db) <create_bp>: New field.
17637 (thread_db_enable_reporting): Fix prototype. Store a thread event
17638 breakpoint reference in the thread_db struct.
17639 (thread_db_load_search): Clear the thread_db object.
17640 (try_thread_db_load_1): Ditto.
17641 (switch_to_process): New.
17642 (disable_thread_event_reporting): Use it.
17643 (remove_thread_event_breakpoints): New.
17644 (thread_db_detach, thread_db_mourn): Use it.
17646 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17648 * linux-low.c (linux_enable_event_reporting): New.
17649 (linux_wait_for_event_1, handle_extended_wait): Use it.
17651 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17653 * linux-low.c (linux_kill_one_lwp, linux_kill)
17654 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17655 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17656 SIGSTOP even if the LWP is stopped.
17657 (send_sigstop_callback): New.
17658 (stop_all_lwps): Use send_sigstop_callback instead.
17659 (linux_resume_one_thread): Adjust.
17660 (proceed_one_lwp): Still proceed an LWP that the client has
17661 requested to stop, if we haven't reported it as stopped yet. Make
17662 sure that LWPs the client want stopped, have a pending SIGSTOP.
17664 2010-04-26 Doug Evans <dje@google.com>
17666 * server.c (handle_general_set): Make static.
17668 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17669 Print received char after testing for error/eof instead of before.
17670 (input_interrupt): Tweak comment.
17672 2010-04-23 Doug Evans <dje@google.com>
17674 * server.c (start_inferior): Print inferior argv if --debug.
17676 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17678 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17679 * nto-x86-low.c: Include server.h
17681 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17683 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17684 be consistent with other sources of this directory.
17685 (init_registers_amd64): Correct name of source file of this function
17688 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17690 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17691 64-bit executables.
17693 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17695 * win32-i386-low.c: Add 64-bit support.
17696 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17697 (init_registers_amd64): Declare.
17698 (mappings): Add 64-bit version of array.
17699 (init_windows_x86): New function.
17700 (the_low_target): Change init_arch field to init_windows_x86.
17702 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17704 * win32-low.c: Adapt to support also 64-bit architecture.
17705 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17706 (get_image_name): Use SIZE_T type for local variable `done'.
17707 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17708 (toolhelp_get_dll_name): Idem.
17709 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17710 Use uintptr_t typecast to avoid warning.
17711 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17712 (handle_exception): Use phex_nz to avoid warning.
17713 (win32_wait): Remove unused local variable `process'.
17715 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17717 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17720 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17722 * configure.ac: Use `ws2_32' library for srv_mingw.
17723 * configure: Regenerate.
17724 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17725 * remote-utils.c: Likewise.
17727 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17729 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17730 if __x86_64__ is defined.
17732 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17734 * configure: Regenerate.
17736 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17738 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17739 * target.h (target_ops): New get_tib_address field.
17740 * win32-low.h (win32_thread_info): Add thread_local_base field.
17741 * win32-low.c (child_add_thread): Add tlb argument.
17742 Set thread_local_base field to TLB.
17743 (get_child_debug_event): Adapt to child_add_thread change.
17744 (win32_get_tib_address): New function.
17745 (win32_target_ops): Set get_tib_address field to
17746 win32_get_tib_address.
17747 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17749 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17751 * linux-low.c (linux_mourn): Also remove the process.
17752 * server.c (handle_target_event): Don't remove the process here.
17753 * nto-low.c (nto_mourn): New.
17754 (nto_target_ops): Install it.
17755 * spu-low.c (spu_mourn): New.
17756 (spu_target_ops): Install it.
17757 * win32-low.c (win32_mourn): New.
17758 (win32_target_ops): Install it.
17760 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17762 * server.h (buffer_xml_printf): Remove redundant `;'.
17764 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17766 * regcache.c (set_register_cache): Invalidate regcaches before
17767 changing the register cache layout.
17768 (regcache_invalidate_one): Allow a NULL regcache.
17769 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17770 regcaches before changing the register cache layout or the target
17773 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17775 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17776 variable warning on Linux/x86-64.
17778 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17780 GDBserver disconnected tracing support.
17782 * linux-low.c (linux_remove_process): Delete.
17783 (add_lwp): Don't set last_resume_kind here.
17784 (linux_kill): Use `mourn'.
17785 (linux_detach): Use `thread_db_detach', and `mourn'.
17786 (linux_mourn): New.
17787 (linux_attach_lwp_1): Adjust comment.
17788 (linux_attach): last_resume_kind moved the thread_info; adjust.
17789 (status_pending_p_callback): Adjust.
17790 (linux_wait_for_event_1): Adjust.
17791 (count_events_callback, select_singlestep_lwp_callback)
17792 (select_event_lwp_callback, cancel_breakpoints_callback)
17793 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17794 (proceed_one_lwp): Adjust.
17795 (linux_async): Add debug output.
17796 (linux_thread_stopped): New.
17797 (linux_pause_all): New.
17798 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17800 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17801 (thread_db_free): Delete declaration.
17802 (thread_db_detach, thread_db_mourn): Declare.
17803 * thread-db.c (thread_db_init): Use thread_db_mourn.
17804 (thread_db_free): Delete, split in two.
17805 (disable_thread_event_reporting): New.
17806 (thread_db_detach): New.
17807 (thread_db_mourn): New.
17809 * server.h (struct thread_info) <last_resume_kind>: New field.
17810 <attached>: Add comment.
17811 <gdb_detached>: New field.
17812 (handler_func): Change return type to int.
17813 (handle_serial_event, handle_target_event): Ditto.
17814 (gdb_connected): Declare.
17816 (disconnected_tracing): Declare.
17817 (stop_tracing): Declare.
17819 * server.c (handle_query) <qSupported>: Report support for
17820 disconnected tracing.
17821 (queue_stop_reply_callback): Account for running threads.
17822 (gdb_wants_thread_stopped): New.
17823 (gdb_wants_all_threads_stopped): New.
17824 (gdb_reattached_process): New.
17825 (handle_status): Clear the `gdb_detached' flag of all processes.
17826 In all-stop, stop all threads.
17827 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17828 (process_serial_event): If the remote connection breaks, or if an
17829 exit was forced with "monitor exit", force an event loop exit.
17830 Handle disconnected tracing on detach.
17831 (handle_serial_event): Adjust.
17832 (handle_target_event): If GDB isn't connected, forward events back
17833 to the inferior, unless the last process exited, in which case,
17834 exit gdbserver. Adjust interface.
17836 * remote-utils.c (remote_open): Don't block in accept. Instead
17837 register an event loop source on the listen socket file
17838 descriptor. Refactor bits into ...
17839 (listen_desc): ... this new global.
17840 (gdb_connected): ... this new function.
17841 (enable_async_notification): ... this new function.
17842 (handle_accept_event): ... this new function.
17843 (remote_close): Clear remote_desc.
17845 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17847 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17849 (mourn_inferior): Define.
17850 (target_process_qsupported): Avoid the dangling else problem.
17851 (thread_stopped): Define.
17852 (pause_all): Define.
17853 (target_waitstatus_to_string): Declare.
17854 * target.c (target_waitstatus_to_string): New.
17856 * tracepoint.c (tracing): Make extern.
17857 (disconnected_tracing): New.
17858 (stop_tracing): Make extern. Handle tracing stops due to GDB
17860 (cmd_qtdisconnected): New.
17861 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17862 (handle_tracepoint_general_set): Handle QTDisconnected.
17864 * event-loop.c (event_handler_func): Change return type to int.
17865 (process_event): Bail out if the event handler wants the event
17867 (handle_file_event): Ditto.
17868 (start_event_loop): Bail out if the event handler wants the event
17871 * nto-low.c (nto_target_ops): Adjust.
17872 * spu-low.c (spu_wait): Don't remove the process here.
17873 (spu_target_ops): Adjust.
17874 * win32-low.c (win32_wait): Don't remove the process here.
17875 (win32_target_ops): Adjust.
17877 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17879 * regcache.c (realloc_register_cache): Invalidate inferior's
17880 regcache before recreating it.
17882 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17884 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17886 2010-04-09 Stan Shebs <stan@codesourcery.com>
17887 Pedro Alves <pedro@codesourcery.com>
17889 * server.h (LONGEST): New.
17890 (struct thread_info) <while_stepping>: New field.
17891 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17893 (initialize_tracepoint, handle_tracepoint_general_set)
17894 (handle_tracepoint_query, tracepoint_finished_step)
17895 (tracepoint_was_hit, release_while_stepping_state_list):
17896 (current_traceframe): Declare.
17897 * server.c (handle_general_set): Handle tracepoint packets.
17898 (read_memory): New.
17899 (write_memory): New.
17900 (handle_search_memory_1): Use read_memory.
17901 (handle_query): Report support for conditional tracepoints, trace
17902 state variables, and tracepoint sources. Handle tracepoint
17904 (main): Initialize the tracepoints module.
17905 (process_serial_event): Handle traceframe reads/writes.
17907 * linux-low.c (handle_tracepoints): New.
17908 (linux_wait_1): Call it.
17909 (linux_resume_one_lwp): Handle while-stepping.
17910 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17911 (linux_target_ops): Install them.
17912 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17914 * linux-x86-low.c (x86_supports_tracepoints): New.
17915 (the_low_target). Install it.
17917 * mem-break.h (delete_breakpoint): Declare.
17918 * mem-break.c (delete_breakpoint): Make external.
17920 * target.h (struct target_ops): Add `supports_tracepoints',
17921 `read_pc', and `write_pc' fields.
17922 (target_supports_tracepoints): Define.
17923 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17926 * regcache.h (struct regcache) <registers_owned>: New field.
17927 (init_register_cache, regcache_cpy): Declare.
17928 (regcache_read_pc, regcache_write_pc): Declare.
17929 (register_cache_size): Declare.
17930 (supply_regblock): Declare.
17931 * regcache.c (init_register_cache): New.
17932 (new_register_cache): Use it.
17933 (regcache_cpy): New.
17934 (register_cache_size): New.
17935 (supply_regblock): New.
17936 (regcache_read_pc, regcache_write_pc): New.
17938 * tracepoint.c: New.
17940 * Makefile.in (OBS): Add tracepoint.o.
17941 (tracepoint.o): New rule.
17943 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17945 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17947 (i386-mmx.c): Likewise.
17948 (i386-mmx-linux.o): Likewise.
17949 (i386-mmx-linux.c): Likewise.
17951 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17952 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17953 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17954 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17956 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17957 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17958 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17960 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17962 * Makefile.in (clean): Updated.
17964 (i386-avx.c): Likewise.
17965 (i386-avx-linux.o): Likewise.
17966 (i386-avx-linux.c): Likewise.
17967 (amd64-avx.o): Likewise.
17968 (amd64-avx.c): Likewise.
17969 (amd64-avx-linux.o): Likewise.
17970 (amd64-avx-linux.c): Likewise.
17972 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17973 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17974 (srv_amd64_regobj): Add amd64-avx.o.
17975 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17976 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17977 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17978 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17979 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17980 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17981 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17983 * i387-fp.c: Include "i386-xstate.h".
17985 (i387_cache_to_xsave): Likewise.
17986 (i387_xsave_to_cache): Likewise.
17987 (x86_xcr0): Likewise.
17989 * i387-fp.h (i387_cache_to_xsave): Likewise.
17990 (i387_xsave_to_cache): Likewise.
17991 (x86_xcr0): Likewise.
17993 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17994 * linux-crisv32-low.c (target_regsets): Likewise.
17995 * linux-m68k-low.c (target_regsets): Likewise.
17996 * linux-mips-low.c (target_regsets): Likewise.
17997 * linux-ppc-low.c (target_regsets): Likewise.
17998 * linux-s390-low.c (target_regsets): Likewise.
17999 * linux-sh-low.c (target_regsets): Likewise.
18000 * linux-sparc-low.c (target_regsets): Likewise.
18001 * linux-xtensa-low.c (target_regsets): Likewise.
18003 * linux-low.c: Include <sys/uio.h>.
18004 (regsets_fetch_inferior_registers): Support nt_type.
18005 (regsets_store_inferior_registers): Likewise.
18006 (linux_process_qsupported): New.
18007 (linux_target_ops): Add linux_process_qsupported.
18009 * linux-low.h (regset_info): Add nt_type.
18010 (linux_target_ops): Add process_qsupported.
18012 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18014 (init_registers_i386_avx_linux): New.
18015 (init_registers_amd64_avx_linux): Likewise.
18016 (xmltarget_i386_linux_no_xml): Likewise.
18017 (xmltarget_amd64_linux_no_xml): Likewise.
18018 (PTRACE_GETREGSET): Likewise.
18019 (PTRACE_SETREGSET): Likewise.
18020 (x86_fill_xstateregset): Likewise.
18021 (x86_store_xstateregset): Likewise.
18022 (use_xml): Likewise.
18023 (x86_linux_update_xmltarget): Likewise.
18024 (x86_linux_process_qsupported): Likewise.
18025 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18026 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18027 init_registers_i386_linux here. Call
18028 x86_linux_update_xmltarget.
18029 (the_low_target): Add x86_linux_process_qsupported.
18031 * server.c (handle_query): Call target_process_qsupported.
18033 * target.h (target_ops): Add process_qsupported.
18034 (target_process_qsupported): New.
18036 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18038 * inferiors.c (add_thread): Set last_status kind to
18039 TARGET_WAITKIND_IGNORE.
18040 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18041 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18042 (linux_wait_1): Move `thread' local definition to block that uses
18043 it. Don't NULL initialize `event_child'.
18044 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18045 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18046 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18048 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18050 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18051 an extended waitstatus, or by a watchpoint.
18052 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18053 thread was stepping or has been stopped by a watchpoint.
18055 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18057 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18058 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18059 of another, then delete the previous, and validate all
18061 (validate_inserted_breakpoint): New.
18062 (delete_disabled_breakpoints): New.
18063 (validate_breakpoints): New.
18064 (check_mem_read): Validate breakpoints before trusting their
18065 shadow. Delete disabled breakpoints.
18066 (check_mem_write): Validate breakpoints before trusting they
18067 should be inserted. Delete disabled breakpoints.
18068 * mem-break.h (validate_breakpoints):
18069 * server.c (handle_query): Validate breakpoints when we see a
18072 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18074 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18075 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18076 if we could tell there's a GDB breakpoint at stop_pc.
18077 (need_step_over_p): Don't do a step over if we find a GDB
18078 breakpoint at the resume PC.
18080 * mem-break.c (struct raw_breakpoint): New.
18081 (enum bkpt_type): New type `gdb_breakpoint'.
18082 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18083 fields. New field `raw'.
18084 (find_raw_breakpoint_at): New.
18085 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18086 breakpoint instead.
18087 (set_breakpoint_at): Adjust.
18088 (delete_raw_breakpoint): New.
18089 (release_breakpoint): New.
18090 (delete_breakpoint): Rename to...
18091 (delete_breakpoint_1): ... this. Add proc parameter. Use
18092 release_breakpoint. Return ENOENT.
18093 (delete_breakpoint): Reimplement.
18094 (find_breakpoint_at): Delete.
18095 (find_gdb_breakpoint_at): New.
18096 (delete_breakpoint_at): Delete.
18097 (set_gdb_breakpoint_at): New.
18098 (delete_gdb_breakpoint_at): New.
18099 (gdb_breakpoint_here): New.
18100 (set_reinsert_breakpoint): Use release_breakpoint.
18101 (uninsert_breakpoint): Rename to ...
18102 (uninsert_raw_breakpoint): ... this.
18103 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18104 (reinsert_raw_breakpoint): Change parameter type to
18106 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18108 (check_breakpoints): Adjust. Use release_breakpoint.
18109 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18110 (breakpoint_inserted_here): Ditto.
18111 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18112 Don't trust the breakpoint's shadow if it is not inserted.
18113 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18114 (delete_all_breakpoints): Adjust.
18115 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18116 use delete_breakpoint_1.
18118 * mem-break.h (breakpoints_supported): Delete declaration.
18119 (set_gdb_breakpoint_at): Declare.
18120 (gdb_breakpoint_here): Declare.
18121 (delete_breakpoint_at): Delete.
18122 (delete_gdb_breakpoint_at): Declare.
18124 * server.h (struct raw_breakpoint): Forward declare.
18125 (struct process_info): New field `raw_breakpoints'.
18127 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18130 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18132 * linux-low.c (status_pending_p_callback): Fix comment.
18133 (linux_wait_for_event_1): Move most of the internal breakpoint
18134 handling from here...
18135 (linux_wait_1): ... to here.
18136 (count_events_callback): New.
18137 (select_singlestep_lwp_callback): New.
18138 (select_event_lwp_callback): New.
18139 (cancel_breakpoints_callback): New.
18140 (select_event_lwp): New.
18141 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18142 priority to all LWPs that have had events that should be reported
18143 to the client. Cancel breakpoints when about to reporting the
18144 event to the client, not while stopping lwps. No longer cancel
18145 finished single-steps here.
18146 (cancel_finished_single_step): Delete.
18147 (cancel_finished_single_steps): Delete.
18149 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18151 * mem-break.c (enum bkpt_type): New.
18152 (struct breakpoint): New field `type'.
18153 (set_breakpoint_at): Change return type to struct breakpoint
18154 pointer. Set type to `other_breakpoint' by default.
18155 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18156 in the breakpoint list.
18157 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18158 (reinsert_breakpoint): Rename to ...
18159 (reinsert_raw_breakpoint): ... this.
18160 (reinsert_breakpoints_at): Adjust.
18161 * mem-break.h (struct breakpoint): Declare.
18162 (set_breakpoint_at): Change return type to struct breakpoint
18165 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18167 * server.c (handle_query): Assign, not compare.
18169 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18171 Teach linux gdbserver to step-over-breakpoints.
18173 * linux-low.c (can_hardware_single_step): New.
18174 (supports_breakpoints): New.
18175 (handle_extended_wait): If stopping threads, read the stop pc of
18176 the new cloned LWP.
18178 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18179 low target doesn't support retrieving the PC.
18180 (add_lwp): Set last_resume_kind to resume_continue.
18181 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18182 (linux_attach): Don't clear stop_expected. Set the lwp's
18183 last_resume_kind to resume_stop.
18184 (linux_detach_one_lwp): Don't check for removed breakpoints.
18185 (check_removed_breakpoint): Delete.
18186 (status_pending_p): Rename to ...
18187 (status_pending_p_callback): ... this. Don't check for removed
18188 breakpoints. Don't consider threads that are stopped from GDB's
18190 (linux_wait_for_lwp): Always read the stop_pc here.
18191 (cancel_breakpoint): New.
18192 (step_over_bkpt): New global.
18193 (linux_wait_for_event_1): Implement stepping over breakpoints.
18194 (gdb_wants_lwp_stopped): New.
18195 (gdb_wants_all_stopped): New.
18196 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18197 single-step traps here. Store the thread's last reported target
18199 (send_sigstop): Don't clear stop_expected. Always set it,
18201 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18202 (cancel_finished_single_step): New.
18203 (cancel_finished_single_steps): New.
18204 (wait_for_sigstop): Don't cancel finished single-step traps here.
18205 (linux_resume_one_lwp): Don't check for removed breakpoints.
18206 Don't set `step' on non-hardware step archs.
18207 (linux_set_resume_request): Ignore resume_stop requests if already
18208 stopping or stopped. Set the lwp's last_resume_kind.
18209 (resume_status_pending_p): Don't check for removed breakpoints.
18210 (need_step_over_p): New.
18211 (start_step_over): New.
18212 (finish_step_over): New.
18213 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18214 requests. Clear the thread's last reported target waitstatus.
18215 Don't use the `suspended' flag. Don't consider pending breakpoints.
18216 (linux_resume): Start a step-over if necessary.
18217 (proceed_one_lwp): New.
18218 (proceed_all_lwps): New.
18219 (unstop_all_lwps): New.
18220 * linux-low.h (struct lwp_info): Rewrite comment for the
18221 `suspended' flag. Add the `stop_pc' field. Delete the
18222 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18223 Add `'last_resume_kind' and `need_step_over' fields.
18224 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18225 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18226 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18227 (set_raw_breakpoint_at): New.
18228 (set_breakpoint_at): Rewrite to use it.
18229 (reinsert_breakpoint_handler): Delete.
18230 (set_reinsert_breakpoint): New.
18231 (reinsert_breakpoint_by_bp): Delete.
18232 (delete_reinsert_breakpoints): New.
18233 (uninsert_breakpoint): Rewrite.
18234 (uninsert_breakpoints_at): New.
18235 (reinsert_breakpoint): Rewrite.
18236 (reinsert_breakpoints_at): New.
18237 (check_breakpoints): Rewrite.
18238 (breakpoint_here): New.
18239 (breakpoint_inserted_here): New.
18240 (check_mem_read): Adjust.
18241 * mem-break.h (breakpoints_supported, breakpoint_here)
18242 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18243 (reinsert_breakpoint_by_bp): Delete declaration.
18244 (delete_reinsert_breakpoints): Declare.
18245 (reinsert_breakpoint): Delete declaration.
18246 (reinsert_breakpoints_at): Declare.
18247 (uninsert_breakpoint): Delete declaration.
18248 (uninsert_breakpoints_at): Declare.
18249 (check_breakpoints): Adjust prototype.
18250 * server.h: Adjust include order.
18251 (struct thread_info): Declare here. Add a `last_status' field.
18253 2010-03-23 Michael Snyder <msnyder@vmware.com>
18255 * server.c (crc32): New function.
18256 (handle_query): Add handling for 'qCRC:' request.
18258 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18260 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18261 lwp had been stopped by a watchpoint.
18263 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18265 * server.h (internal_error): Declare.
18266 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18267 * utils.c (internal_error): New function.
18269 2010-03-15 Andreas Schwab <schwab@redhat.com>
18271 * configure.srv: Fix typo setting srv_regobj.
18273 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18275 * linux-low.c (fetch_register): Avoid passing a non string literal
18277 (usr_store_inferior_registers): Ditto.
18279 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18281 * linux-low.c (linux_write_memory): Bail out early if peeking
18284 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18286 * linux-low.h (struct lwp_info): New fields
18287 `stopped_by_watchpoint' and `stopped_data_address'.
18288 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18289 here, and cache them in the lwp object.
18290 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18292 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18294 (linux_stopped_by_watchpoint): Rewrite.
18295 (linux_stopped_data_address): Rewrite.
18297 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18299 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18300 switching the current inferior, not before.
18302 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18304 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18305 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18306 i386-linux.c and amd64-linux.c.
18307 (reg-i386.o): Removed.
18308 (reg-i386.c): Likewise.
18309 (reg-i386-linux.o): Likewise.
18310 (reg-i386-linux.c): Likewise.
18311 (reg-x86-64.o): Likewise.
18312 (reg-x86-64.c): Likewise.
18313 (reg-x86-64-linux.o): Likewise.
18314 (reg-x86-64-linux.c): Likewise.
18316 (i386.c): Likewise.
18317 (i386-linux.o): Likewise.
18318 (i386-linux.c): Likewise.
18319 (amd64.o): Likewise.
18320 (amd64.c): Likewise.
18321 (amd64-linux.o): Likewise.
18322 (amd64-linux.c): Likewise.
18324 * configure.srv (srv_i386_regobj): New.
18325 (srv_i386_linux_regobj): Likewise.
18326 (srv_amd64_regobj): Likewise.
18327 (srv_amd64_linux_regobj): Likewise.
18328 (srv_i386_32bit_xmlfiles): Likewise.
18329 (srv_i386_64bit_xmlfiles): Likewise.
18330 (srv_i386_xmlfiles): Likewise.
18331 (srv_amd64_xmlfiles): Likewise.
18332 (srv_i386_linux_xmlfiles): Likewise.
18333 (srv_amd64_linux_xmlfiles): Likewise.
18334 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18335 srv_xmlfiles to $srv_i386_xmlfiles.
18336 (i[34567]86-*-mingw32ce*): Likewise.
18337 (i[34567]86-*-mingw*): Likewise.
18338 (i[34567]86-*-nto*): Likewise.
18339 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18340 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18341 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18342 (x86_64-*-linux*): Likewise.
18344 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18345 (init_registers_amd64_linux): New.
18346 (x86_arch_setup): Replace init_registers_x86_64_linux with
18347 init_registers_amd64_linux.
18349 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18351 * configure.ac: Check for libdl. If it is not available link against
18352 static libthread_db.
18353 * configure: Regenerate.
18355 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18359 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18360 handing a read watchpoint.
18361 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18363 2010-02-12 Doug Evans <dje@google.com>
18365 * linux-low.c (linux_supports_tracefork_flag): Document.
18366 (linux_look_up_symbols): Add comment.
18368 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18370 * regcache.c (supply_register): Clear regcache if buf is NULL.
18372 2010-02-02 Nicolas Roche <roche@sourceware.org>
18373 Joel Brobecker <brobecker@adacore.com>
18375 * inferiors.c (find_inferior): Add function documentation.
18376 (unloaded_dll): Handle the case where the unloaded dll has not
18377 been previously registered in the dll list.
18379 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18381 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18382 (thumb2_breakpoint): New.
18383 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18385 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18387 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18388 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18391 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18393 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18395 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18397 * linux-s390-low.c (s390_collect_ptrace_register)
18398 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18400 2010-01-21 Doug Evans <dje@google.com>
18402 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18403 (PTRACE_ARG4_TYPE): New macro.
18404 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18405 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18406 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18407 (usr_store_inferior_registers): Ditto.
18408 (linux_read_memory, linux_write_memory): Ditto.
18409 (linux_test_for_tracefork): Ditto.
18411 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18412 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18414 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18416 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18419 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18421 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18422 prototype to take a regcache. Adjust.
18424 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18426 * regcache.h (struct thread_info): Forward declare.
18427 (struct regcache): New.
18428 (new_register_cache): Adjust prototype.
18429 (get_thread_regcache): Declare.
18430 (free_register_cache): Adjust prototype.
18431 (registers_to_string, registers_from_string): Ditto.
18432 (supply_register, supply_register_by_name, collect_register)
18433 (collect_register_as_string, collect_register_by_name): Ditto.
18434 * regcache.c (struct inferior_regcache_data): Delete.
18435 (get_regcache): Rename to ...
18436 (get_thread_regcache): ... this. Adjust. Switch inferior before
18437 fetching registers.
18438 (regcache_invalidate_one): Adjust.
18439 (regcache_invalidate): Fix prototype.
18440 (new_register_cache): Return the new register cache.
18441 (free_register_cache): Change prototype.
18442 (realloc_register_cache): Adjust.
18443 (registers_to_string): Change prototype to take a regcache. Adjust.
18444 (registers_from_string): Ditto.
18445 (register_data): Ditto.
18446 (supply_register): Ditto.
18447 (supply_register_by_name): Ditto.
18448 (collect_register): Ditto.
18449 (collect_register_as_string): Ditto.
18450 (collect_register_by_name): Ditto.
18451 * server.c (process_serial_event): Adjust.
18452 * linux-low.h (regset_fill_func, regset_store_func): Change
18454 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18456 * linux-low.c (get_stop_pc): Adjust.
18457 (check_removed_breakpoint): Adjust.
18458 (linux_wait_for_event): Adjust.
18459 (linux_resume_one_lwp): Adjust.
18460 (fetch_register): Add regcache parameter. Adjust.
18461 (usr_store_inferior_registers): Ditto.
18462 (regsets_fetch_inferior_registers): Ditto.
18463 (regsets_store_inferior_registers): Ditto.
18464 (linux_fetch_registers, linux_store_registers): Ditto.
18465 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18467 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18469 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18470 prototype to take a regcache.
18471 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18472 * remote-utils.c (convert_ascii_to_int, outreg)
18473 (prepare_resume_reply): Change prototype to take a regcache.
18475 * target.h (struct target_ops) <fetch_registers, store_registers>:
18476 Change prototype to take a regcache.
18477 (fetch_inferior_registers, store_inferior_registers): Change
18478 prototype to take a regcache. Adjust.
18479 * proc-service.c (ps_lgetregs): Adjust.
18480 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18481 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18482 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18483 take a regcache. Adjust.
18484 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18485 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18486 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18487 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18488 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18489 (cris_cannot_fetch_register):
18490 (cris_breakpoint_at): Change prototype to take a regcache.
18492 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18493 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18494 to take a regcache. Adjust.
18495 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18497 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18498 take a regcache. Adjust.
18499 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18500 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18501 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18502 * linux-mips-low.c (mips_get_pc):
18503 (mips_set_pc): Change prototype to take a regcache. Adjust.
18504 (mips_reinsert_addr): Adjust.
18505 (mips_collect_register): Change prototype to take a regcache.
18507 (mips_supply_register):
18508 (mips_collect_register_32bit, mips_supply_register_32bit)
18509 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18510 (mips_store_fpregset): Ditto.
18511 * linux-ppc-low.c (ppc_supply_ptrace_register)
18512 (ppc_supply_ptrace_register): Ditto.
18513 (parse_spufs_run): Adjust.
18514 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18515 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18516 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18517 take a regcache. Adjust.
18518 * linux-s390-low.c (s390_collect_ptrace_register)
18519 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18520 (s390_set_pc): Change prototype to take a regcache. Adjust.
18521 (s390_arch_setup): Adjust.
18522 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18523 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18524 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18525 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18526 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18528 (sparc_breakpoint_at): Adjust.
18529 * linux-xtensa-low.c (xtensa_fill_gregset):
18530 (xtensa_store_gregset):
18531 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18532 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18533 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18534 prototype to take a regcache. Adjust.
18535 * win32-arm-low.c (arm_fetch_inferior_register)
18536 (arm_store_inferior_register): Change prototype to take a
18538 * win32-i386-low.c (i386_fetch_inferior_register)
18539 (i386_store_inferior_register): Change prototype to take a
18541 * win32-low.c (child_fetch_inferior_registers)
18542 (child_store_inferior_registers): Change prototype to take a
18544 (win32_wait): Adjust.
18545 (win32_fetch_inferior_registers): Change prototype to take a
18547 (win32_store_inferior_registers): Adjust.
18548 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18549 store_inferior_register>: Change prototype to take a regcache.
18551 2010-01-20 Doug Evans <dje@google.com>
18553 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18555 (linux_wait_for_event1, linux_init_signals): Ditto.
18556 (W_STOPCODE): Provide definition if missing.
18558 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18560 * linux-low.c (linux_core_of_thread): New.
18561 (compare_ints, show_process, list_threads): New.
18562 (linux_qxfer_osdata): Report threads and cores.
18563 (linux_target_op): Register linux_core_of_thread.
18564 * remote-utils.c (prepare_resume_reply): Report the core.
18565 (buffer_xml_printf): Support %d specifier.
18566 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18568 (handle_query): Handle qXfer:threads. Announce availability
18570 * target.h (struct target_ops): New field core_of_thread.
18572 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18574 * Makefile.in (clean): Remove new generated files.
18575 (reg-s390.o, reg-s390.c): Remove rules.
18576 (reg-s390x.o, reg-s390x.c): Likewise.
18577 (s390-linux32.o, s390-linux32.c): Add rules.
18578 (s390-linux64.o, s390-linux64.c): Likewise.
18579 (s390x-linux64.o, s390x-linux64.c): Likewise.
18580 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18581 * linux-s390-low.c: Include <elf.h>.
18582 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18583 (init_registers_s390): Remove prototype.
18584 (init_registers_s390x): Likewise.
18585 (init_registers_s390_linux32): Add prototype.
18586 (init_registers_s390_linux64): Likewise.
18587 (init_registers_s390x_linux64): Likewise.
18588 (s390_num_regs_3264): New define.
18589 (s390_regmap_3264): New global variable.
18590 (s390_cannot_fetch_register): Remove obsolete check.
18591 (s390_cannot_store_register): Likewise.
18592 (s390_collect_ptrace_register): Handle upper/lower register halves.
18593 (s390_supply_ptrace_register): Likewise.
18594 (s390_fill_gregset): Update to register number changes.
18595 (s390_get_hwcap): New routine.
18596 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18597 Install appropriate regmap and register set.
18599 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18601 * server.c (gdbserver_version): Update copyright year to 2010.
18602 * gdbreplay.c (gdbreplay_version): Likewise.
18604 2009-12-28 Doug Evans <dje@google.com>
18606 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18607 elf/external.h. Include <elf.h> instead but only if necessary.
18609 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18611 * linux-low.c (linux_remove_process): Remove `detaching'
18612 parameter. Don't release/detach from thread_db here.
18613 (linux_kill): Release/detach from thread_db here, ...
18614 (linux_detach): ... and here, before actually detaching.
18615 (linux_wait_1): ... and here, when a process exits.
18616 * thread-db.c (any_thread_of): New.
18617 (thread_db_free): Switch the current inferior to a thread of the
18620 2009-12-21 Doug Evans <dje@google.com>
18622 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18624 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18625 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18626 warning ifndef __NR_tkill. Move setting of errno there too.
18627 Delete unnecessary resetting of errno after syscall.
18628 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18630 * configure.ac: Check for dladdr.
18631 * config.in: Regenerate.
18632 * configure: Regenerate.
18633 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18634 (try_thread_db_load): Update.
18636 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18638 2009-12-18 Doug Evans <dje@google.com>
18640 * event-loop.c: Include unistd.h if it exists.
18642 * linux-low.c (my_waitpid): Move definition away from being in
18643 between linux_tracefork_child/linux_test_for_tracefork.
18645 * gdb_proc_service.h (psaddr_t): Fix type.
18646 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18647 signature to match glibc.
18649 2009-12-16 Doug Evans <dje@google.com>
18651 * linux-low.c (linux_read_memory): Fix argument to read.
18653 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18655 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18656 events, don't leave current_inferior pointing at null.
18658 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18660 * win32-low.c (LOG): Delete.
18661 (OUTMSG): Output to stderr.
18662 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18663 on compile time LOG macro.
18664 (win32_wait): Fix debug output.
18666 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18668 * win32-low.c (win32_add_one_solib): If the dll name is
18669 "ntdll.dll", prepend the system directory to the dll path.
18671 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18673 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18675 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18676 Vladimir Prus <vladimir@codesourcery.com>
18678 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18679 * configure.ac: Check for __mcoldfire__ and set
18680 gdb_cv_m68k_is_coldfire.
18681 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18682 reg-cf.o and reg-m68k.o.
18683 * configure: Regenerated.
18685 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18687 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18688 Pass it to thread_db_free.
18689 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18690 proper `detaching' argument to linux_remove_process.
18691 * linux-low.h (thread_db_free): Add `detaching' parameter.
18692 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18694 (thread_db_free): Add `detaching' parameter. Only
18695 call td_ta_clear_event if detaching from process.
18697 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18699 * thread-db.c (thread_db_free): Fix typo.
18701 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18704 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18706 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18708 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18709 with an i686 compiler.
18710 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18712 * configure: Rebuilt.
18714 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18718 * server.c (handle_search_memory_1): Correct read_addr initialization
18719 in loop for searching subsequent chunks.
18721 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18723 * configure.ac: New --with-libthread-db option.
18724 * thread-db.c: Allow direct dependence on libthread_db.
18725 (thread_db_free): Adjust.
18726 * config.in: Regenerate.
18727 * configure: Likewise.
18729 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18732 * thread-db.c (attach_thread): New function.
18733 (maybe_attach_thread): Return success/failure.
18734 (find_new_threads_callback): Adjust.
18735 (thread_db_find_new_threads): Loop until no new threads.
18737 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18739 * proc-service.c (ps_lgetregs): Formatting.
18741 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18743 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18744 * configure.ac: Adjust.
18745 * linux-low.h (struct process_info_private): Move members to struct
18747 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18748 * linux-low.c (linux_remove_process): Adjust.
18749 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18750 * server.c (handle_query): Move code ...
18751 (handle_monitor_command): ... here. New function.
18752 * target.h (struct target_ops): New member.
18753 * thread-db.c (struct thread_db): New.
18754 (libthread_db_search_path): New variable.
18755 (thread_db_create_event, thread_db_enable_reporting)
18756 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18757 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18758 (try_thread_db_load_1, dladdr_to_soname): New functions.
18759 (try_thread_db_load, thread_db_load_search): New functions.
18760 (thread_db_init): Search for libthread_db.
18761 (thread_db_free): New function.
18762 (thread_db_handle_monitor_command): Likewise.
18763 * config.in: Regenerate.
18764 * configure: Regenerate.
18766 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18768 * spu-low.c (spu_kill): Wait for inferior to terminate.
18769 Call clear_inferiors.
18770 (spu_detach): Call clear_inferiors.
18772 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18774 * aclocal.m4: Regenerate.
18775 * config.in: Likewise.
18776 * configure: Likewise.
18778 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18780 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18781 (parse_spufs_run): New function.
18782 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18783 (ppc_breakpoint_at): Handle SPU breakpoints.
18785 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18787 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18788 (SPUFS_MAGIC): Define.
18789 (spu_enumerate_spu_ids): New function.
18790 (linux_qxfer_spu): New function.
18791 (linux_target_ops): Install linux_qxfer_spu.
18793 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18795 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18796 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18797 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18798 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18799 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18800 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18801 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18802 (init_registers_powerpc_cell32l): Add prototype.
18803 (init_registers_powerpc_cell64l): Likewise.
18804 (ppc_arch_setup): Detect Cell/B.E. architecture.
18806 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18808 * Makefile.in (datarootdir): New variable.
18810 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18812 * linux-low.c (linux_write_memory): Update debugging output.
18813 * Makefile.in (clean): Add new descriptions.
18814 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18815 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18816 * configure.srv: Add new files for arm*-*-linux*.
18817 * linux-arm-low.c: Add new declarations.
18818 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18819 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18820 (HWCAP_VFPv3D16): New.
18821 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18822 instead of __IWMMXT__.
18823 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18824 (arm_arch_setup): New.
18825 (target_regsets): Remove #ifdef. Add VFP regset.
18826 (the_low_target): Use arm_arch_setup.
18828 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18830 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18831 the main thread again.
18833 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18835 Adding Neutrino gdbserver.
18836 * configure: Regenerated.
18837 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18838 * configure.srv (i[34567]86-*-nto*): New target.
18839 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18840 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18841 (nto_comctrl) [__QNX__]: New function.
18842 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18844 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18846 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18849 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18850 Pedro Alves <pedro@codesourcery.com>
18852 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18853 don't support CONTEXT_EXTENDED_REGISTERS.
18854 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18855 (the_low_target): Install them.
18856 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18857 failing with ERROR_PIPE_NOT_CONNECTED.
18859 2009-06-30 Doug Evans <dje@google.com>
18860 Pierre Muller <muller@ics.u-strasbg.fr>
18862 Add h/w watchpoint support to x86-linux, win32-i386.
18863 * Makefile.in (SFILES): Add i386-low.c
18864 (i386_low_h): Define.
18865 (i386-low.o): Add dependencies.
18866 (linux-x86-low.o): Add i386-low.h dependency.
18867 (win32-i386-low.o): Ditto.
18868 * i386-low.c: New file.
18869 * i386-low.h: New file.
18870 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18871 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18872 * linux-low.c (linux_add_process): Initialize arch_private.
18873 (linux_remove_process): Free arch_private.
18874 (add_lwp): Initialize arch_private.
18875 (delete_lwp): Free arch_private.
18876 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18878 * linux-low.h (process_info_private): New member arch_private.
18879 (lwp_info): New member arch_private.
18880 (linux_target_ops): New members new_process, new_thread,
18882 (ptid_of): New macro.
18883 * linux-x86-low.c: Include stddef.h, i386-low.h.
18884 (arch_process_info): New struct.
18885 (arch_lwp_info): New struct.
18886 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18887 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18888 (i386_dr_low_get_status): New function.
18889 (x86_insert_point, x86_remove_point): New functions.
18890 (x86_stopped_by_watchpoint): New function.
18891 (x86_stopped_data_address): New function.
18892 (x86_linux_new_process, x86_linux_new_thread): New functions.
18893 (x86_linux_prepare_to_resume): New function.
18894 (the_low_target): Add entries for insert_point, remove_point,
18895 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18897 * server.c (debug_hw_points): New global.
18898 (monitor_show_help): Document set debug-hw-points.
18899 (handle_query): Process "set debug-hw-points".
18900 * server.h (debug_hw_points): Declare.
18901 (paddress): Declare.
18902 * utils.c (NUMCELLS, CELLSIZE): New macros.
18903 (get_sell, xsnprintf, paddress): New functions.
18904 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18905 remove_point, stopped_by_watchpoint, stopped_data_address.
18906 * win32-i386-low.c: Include i386-low.h.
18907 (debug_reg_state): Replaces dr.
18908 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18909 (i386_dr_low_get_status): New function.
18910 (i386_insert_point, i386_remove_point): New functions.
18911 (i386_stopped_by_watchpoint): New function.
18912 (i386_stopped_data_address): New function.
18913 (i386_initial_stuff): Update.
18914 (get_thread_context,set_thread_context,i386_thread_added): Update.
18915 (the_low_target): Add entries for insert_point,
18916 remove_point, stopped_by_watchpoint, stopped_data_address.
18917 * win32-low.c (win32_insert_watchpoint): New function.
18918 (win32_remove_watchpoint): New function.
18919 (win32_stopped_by_watchpoint): New function.
18920 (win32_stopped_data_address): New function.
18921 (win32_target_ops): Add entries for insert_watchpoint,
18922 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18923 * win32-low.h (win32_target_ops): New members insert_point,
18924 remove_point, stopped_by_watchpoint, stopped_data_address.
18926 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18928 * server.c (process_serial_event): Re-return unsupported, not
18929 error, if the type isn't recognized. Re-allow supporting only
18930 insert or remove packets. Also call require_running for
18931 breakpoints. Add missing break statement to default case. Tidy.
18932 * target.h (struct target_ops): Rename insert_watchpoint to
18933 insert_point, and remove_watchpoint to remove_point.
18935 * linux-low.h (struct linux_target_ops): Likewise.
18936 * linux-low.c (linux_insert_watchpoint): Rename to ...
18937 (linux_insert_point): ... this. Adjust.
18938 (linux_remove_watchpoint): Rename to ...
18939 (linux_remove_point): ... this. Adjust.
18940 (linux_target_ops): Adjust.
18941 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18942 (cris_insert_point): ... this.
18943 (cris_remove_watchpoint): Rename to ...
18944 (cris_remove_point): ... this.
18945 (the_low_target): Adjust.
18947 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18949 * server.c (handle_v_kill): Pass signal_pid to
18950 kill_inferior if multi_process is zero.
18952 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18954 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18955 * target.h (target_ops): Comment for *_watchpoint to make it clear
18956 the functions can get types '0' and '1'.
18958 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18960 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18961 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18962 * regcache.c (get_regcache): Likewise.
18963 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18964 * win32-low.c (child_fetch_inferior_registers): Remove check for
18967 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18968 Pedro Alves <pedro@codesourcery.com>
18970 * target.h (struct target_ops) <supports_multi_process>: New
18972 (target_supports_multi_process): New.
18973 * server.c (handle_query): Even if GDB reports support, only
18974 enable multi-process if the target also supports it. Report
18975 multi-process support only if the target backend supports it.
18976 * linux-low.c (linux_supports_multi_process): New function.
18977 (linux_target_ops): Install it as target_supports_multi_process
18980 2009-05-24 Doug Evans <dje@google.com>
18982 Global renaming of find_thread_pid to find_thread_ptid.
18983 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18984 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18985 All callers updated.
18987 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18988 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18991 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18992 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18993 (linux_resume_one_lwp): Ditto.
18995 2009-05-23 Doug Evans <dje@google.com>
18997 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18998 from struct inferior_list_entry * to struct lwp_info *.
18999 All callers updated.
19001 2009-05-13 Doug Evans <dje@google.com>
19003 * linux-x86-low.c: Don't include assert.h.
19004 (x86_siginfo_fixup): Use fatal, not assert.
19005 (x86_arch_setup): Fix comment.
19007 2009-05-12 Doug Evans <dje@google.com>
19009 Biarch support for i386/amd64 gdbserver.
19010 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19011 Add linux-x86-low.c.
19012 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19013 (linux-x86-low.o): Add.
19014 * linux-x86-64-low.c: Delete.
19015 * linux-i386-low.c: Delete.
19016 * linux-x86-low.c: New file.
19017 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19019 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19021 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19022 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19023 (linux_child_pid_to_exec_file): New function.
19024 (elf_64_header_p, elf_64_file_p): New functions.
19025 (siginfo_fixup): New function.
19026 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19027 give target a chance to convert layout.
19028 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19029 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19031 2009-05-07 Doug Evans <dje@google.com>
19033 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19034 (regsets_store_inferior_registers): Ditto.
19036 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19040 * linux-low.c (must_set_ptrace_flags): Delete.
19041 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19043 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19044 `lwp->must_set_ptrace_flags' instead.
19045 (linux_wait_for_event_1): Set ptrace options here.
19046 (linux_wait_1): ... not here.
19048 2009-04-30 Doug Evans <dje@google.com>
19050 * inferiors.c (started_inferior_callback): New function.
19051 (attached_inferior_callback): New function.
19052 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19053 * server.c (print_started_pid, print_attached_pid): New functions.
19054 (detach_or_kill_for_exit): New function.
19055 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19056 * server.h (have_started_inferiors_p): Declare.
19057 (have_attached_inferiors_p): Declare.
19059 * inferiors.c (remove_process): Fix memory leak, free process.
19060 * linux-low.c (linux_remove_process): New function.
19061 (linux_kill): Call it instead of remove_process.
19062 (linux_detach, linux_wait_1): Ditto.
19064 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19066 * configure.srv: Add x86 Windows CE target.
19068 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19070 * inferiors.c (get_thread_process): Make global.
19071 * server.h (get_thread_process): Add prototype.
19072 * thread-db.c (find_one_thread): Use get_thread_process
19073 instead of current_process.
19074 (thread_db_get_tls_address): Do not crash if called when
19075 thread layer is not yet initialized.
19077 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19079 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19080 * spu-low.c (current_tid): Rename to ...
19081 (current_ptid): ... this.
19082 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19083 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19084 ptid_get_lwp (current_ptid) instead of current_tid.
19085 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19086 instead of current_tid. Use find_process_pid to verify pid
19087 argument is valid. Pass proper argument to remove_process.
19088 (spu_thread_alive): Compare current_ptid instead of current_tid.
19089 (spu_resume): Likewise.
19091 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19093 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19096 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19098 Implement the multiprocess extensions, and add linux multiprocess
19101 * server.h (ULONGEST): Declare.
19102 (struct ptid, ptid_t): New.
19103 (minus_one_ptid, null_ptid): Declare.
19104 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19105 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19106 (struct inferior_list_entry): Change `id' type from unsigned from
19108 (struct sym_cache, struct breakpoint, struct
19109 process_info_private): Forward declare.
19110 (struct process_info): Declare.
19111 (current_process): Declare.
19112 (all_processes): Declare.
19113 (initialize_inferiors): Declare.
19114 (add_thread): Adjust to use ptid_t.
19115 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19116 (add_process, remove_process, find_thread_pid): Declare.
19117 (find_inferior_id): Adjust to use ptid_t.
19118 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19119 (multi_process): Declare.
19120 (push_event): Adjust to use ptid_t.
19121 (read_ptid, write_ptid): Declare.
19122 (prepare_resume_reply): Adjust to use ptid_t.
19123 (clear_symbol_cache): Declare.
19124 * inferiors.c (all_processes): New.
19125 (null_ptid, minus_one_ptid): New.
19126 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19127 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19128 (add_thread): Change unsigned long to ptid. Remove gdb_id
19130 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19131 (gdb_id_to_thread): Rename to ...
19132 (find_thread_pid): ... this. Change unsigned long to ptid.
19133 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19134 (loaded_dll, pull_pid_from_list): Adjust.
19135 (add_process, remove_process, find_process_pid)
19136 (get_thread_process, current_process, initialize_inferiors): New.
19137 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19138 (struct target_waitstatus) <related_pid>: Ditto.
19139 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19140 return type to int.
19141 (struct target_ops) <join>: Add `pid' argument.
19142 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19143 (struct target_ops) <wait>: Add `ptid' field. Change return type
19145 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19146 (mywait): Add `ptid' argument. Change return type to ptid_t.
19147 (target_pid_to_str): Declare.
19148 * target.c (set_desired_inferior): Adjust to use ptids.
19149 (mywait): Add new `ptid' argument. Adjust.
19150 (target_pid_to_str): New.
19151 * mem-break.h (free_all_breakpoints): Declare.
19152 * mem-break.c (breakpoints): Delelete.
19153 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19154 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19155 to use per-process breakpoint list.
19156 (free_all_breakpoints): New.
19157 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19158 (symbol_cache, all_symbols_looked_up): Delete.
19160 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19162 (prepare_resume_reply): Change ptid argument's type from unsigned
19163 long to ptid_t. Adjust. Implement W;process and X;process.
19164 (free_sym_cache, clear_symbol_cache): New.
19165 (look_up_one_symbol): Adjust to per-process symbol cache. *
19166 * server.c (cont_thread, general_thread, step_thread): Change type
19168 (attached): Delete.
19169 (multi_process): New.
19170 (last_ptid): Change type to ptid_t.
19171 (struct vstop_notif) <ptid>: Change type to ptid_t.
19172 (queue_stop_reply, push_event): Change `ptid' argument's type to
19174 (discard_queued_stop_replies): Add `pid' argument.
19175 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19176 changes. Don't reference the `attached' global.
19177 (attach_inferior): Adjust to mywait interface changes.
19178 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19179 features. Handle and report "multiprocess+". Handle
19181 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19183 (handle_v_kill): New.
19184 (handle_v_stopped): Adjust to use target_pid_to_str.
19185 (handle_v_requests): Allow multiple attaches and runs when
19186 multiprocess extensions are in effect. Handle "vKill".
19187 (myresume): Adjust to use ptids.
19188 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19189 (handle_status): Adjust to discard_queued_stop_replies interface
19191 (first_thread_of, kill_inferior_callback)
19192 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19193 (main): Call initialize_inferiors. Adjust to use ptids, killing
19194 and detaching from all inferiors. Handle multiprocess packet
19196 * linux-low.h: Include gdb_proc_service.h.
19197 (struct process_info_private): New.
19198 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19199 <lwpid_of>: Use ptid_get_lwp.
19200 (get_lwp_thread): Adjust.
19201 (struct lwp_info): Add `dead' member.
19202 (find_lwp_pid): Declare.
19203 * linux-low.c (thread_db_active): Delete.
19204 (new_inferior): Adjust comment.
19205 (inferior_pid): Delete.
19206 (linux_add_process): New.
19207 (handle_extended_wait): Adjust.
19208 (add_lwp): Change unsigned long to ptid.
19209 (linux_create_inferior): Add process to processes table. Adjust
19210 to use ptids. Don't set new_inferior here.
19211 (linux_attach_lwp): Rename to ...
19212 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19213 it. Adjust to use ptids.
19214 (linux_attach_lwp): New.
19215 (linux_attach): Add process to processes table. Don't set
19217 (struct counter): New.
19218 (second_thread_of_pid_p, last_thread_of_process_p): New.
19219 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19220 multiple processes.
19221 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19222 processes. Remove process from process table.
19223 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19224 to multiple processes.
19225 (any_thread_of): New.
19226 (linux_detach): Add `pid' argument, and handle it. Remove process
19227 from processes table.
19228 (linux_join): Add `pid' argument. Handle it.
19229 (linux_thread_alive): Change unsighed long argument to ptid_t.
19230 Consider dead lwps as not being alive.
19231 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19232 threads we're not interested in.
19233 (same_lwp, find_lwp_pid): New.
19234 (linux_wait_for_lwp): Change `pid' argument's type from int to
19236 (linux_wait_for_event): Rename to ...
19237 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19238 from int to ptid_t. Adjust.
19239 (linux_wait_for_event): New.
19240 (linux_wait_1): Add `ptid' argument. Change return type to
19241 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19242 that exit from the process table.
19243 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19245 (mark_lwp_dead): New.
19246 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19247 stopping all threads, mark its main lwp as dead.
19248 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19250 (fetch_register, usr_store_inferior_registers)
19251 (regsets_fetch_inferior_registers)
19252 (regsets_store_inferior_registers, linux_read_memory)
19253 (linux_write_memory): Inline `inferior_pid'.
19254 (linux_look_up_symbols): Adjust to use per-process
19255 `thread_db_active'.
19256 (linux_request_interrupt): Adjust to use ptids.
19257 (linux_read_auxv): Inline `inferior_pid'.
19258 (initialize_low): Don't reference thread_db_active.
19259 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19260 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19261 (ps_getpid): Return the pid of the current inferior.
19262 * thread-db.c (proc_handle, thread_agent): Delete.
19263 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19265 (find_one_thread): Change argument type to ptid_t. Adjust to
19267 (maybe_attach_thread): Adjust to per-process data and ptids.
19268 (thread_db_find_new_threads): Ditto.
19269 (thread_db_init): Ditto.
19270 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19271 processes table. Adjust to use ptids.
19272 (spu_kill, spu_detach): Adjust interface. Remove process from
19274 (spu_join, spu_thread_alive): Adjust interface.
19275 (spu_wait): Adjust interface. Remove process from processes
19276 table. Adjust to use ptids.
19277 * win32-low.c (current_inferior_tid): Delete.
19278 (current_inferior_ptid): New.
19279 (debug_event_ptid): New.
19280 (thread_rec): Take a ptid. Adjust.
19281 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19282 (child_delete_thread): Ditto.
19283 (do_initial_child_stuff): Add `attached' argument. Add process to
19285 (child_fetch_inferior_registers, child_store_inferior_registers):
19287 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19288 (win32_attach): Pass 1 to do_initial_child_stuff.
19289 (win32_kill): Adjust interface. Remove process from processes
19291 (win32_detach): Ditto.
19292 (win32_join): Adjust interface.
19293 (win32_thread_alive): Take a ptid.
19294 (win32_resume): Adjust to use ptids.
19295 (get_child_debug_event): Ditto.
19296 (win32_wait): Adjust interface. Remove exiting process from
19299 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19301 Non-stop mode support.
19303 * server.h (non_stop): Declare.
19304 (gdb_client_data, handler_func): Declare.
19305 (delete_file_handler, add_file_handler, start_event_loop):
19307 (handle_serial_event, handle_target_event, push_event)
19308 (putpkt_notif): Declare.
19309 * target.h (enum resume_kind): New.
19310 (struct thread_resume): Replace `step' field by `kind' field.
19311 (TARGET_WNOHANG): Define.
19312 (struct target_ops) <wait>: Add `options' argument.
19313 <supports_non_stop, async, start_non_stop>: New fields.
19314 (target_supports_non_stop, target_async): New.
19315 (start_non_stop): Declare.
19316 (mywait): Add `options' argument.
19317 * target.c (mywait): Add `options' argument. Print child exit
19318 notifications here.
19319 (start_non_stop): New.
19320 * server.c (non_stop, own_buf, mem_buf): New globals.
19321 (struct vstop_notif): New.
19322 (notif_queue): New global.
19323 (queue_stop_reply, push_event, discard_queued_stop_replies)
19324 (send_next_stop_reply): New.
19325 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19327 (attach_inferior): In non-stop mode, don't wait for the target
19329 (handle_general_set): Handle QNonStop.
19330 (handle_query): When handling qC, return the current general
19331 thread, instead of the first thread of the list.
19332 (handle_query): If the backend supports non-stop mode, include
19333 QNonStop+ in the qSupported query response.
19334 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19336 (handle_v_attach, handle_v_run): Handle non-stop mode.
19337 (handle_v_stopped): New.
19338 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19339 (myresume): Adjust to use resume_kind. Handle non-stop.
19340 (queue_stop_reply_callback): New.
19341 (handle_status): Handle non-stop mode.
19342 (main): Clear non_stop flag on reconnection. Use the event-loop.
19343 Refactor serial protocol handling from here ...
19344 (process_serial_event): ... to this new function. When GDB
19345 selects any thread, select one here. In non-stop mode, wait until
19346 GDB acks all pending events before exiting.
19347 (handle_serial_event, handle_target_event): New.
19348 * remote-utils.c (remote_open): Install remote_desc in the event
19350 (remote_close): Remove remote_desc from the event loop.
19351 (putpkt_binary): Rename to...
19352 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19353 (putpkt_binary): New as wrapper around putpkt_binary_1.
19354 (putpkt_notif): New.
19355 (prepare_resume_reply): In non-stop mode, don't change the
19357 * event-loop.c: New.
19358 * Makefile.in (OBJ): Add event-loop.o.
19359 (event-loop.o): New rule.
19361 * linux-low.h (pid_of): Moved here.
19363 (get_lwp_thread): Use lwpid_of.
19364 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19365 * linux-low.c (pid_of): Delete.
19366 (inferior_pid): Use lwpid_of.
19367 (linux_event_pipe): New.
19368 (target_is_async_p): New.
19370 (handle_extended_wait): Use lwpid_of.
19371 (add_lwp): Don't set lwpid field.
19372 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19373 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19374 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19375 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19376 first. Adjust to linux_wait_for_event interface changes. Use
19378 (linux_detach): Don't delete the main lwp here.
19379 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19380 (status_pending_p): Don't consider explicitly suspended lwps.
19381 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19382 pointer. Add OPTIONS argument. Change return type to int. Use
19383 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19384 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19385 pointer. Add status pointer argument. Return a pid instead of a
19386 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19387 changes. In non-stop mode, don't switch to a random thread.
19388 (linux_wait): Rename to...
19389 (linux_wait_1): ... this. Add target_options argument, and handle
19390 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19391 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19392 clean exit and signal exit code. Don't stop all threads in
19393 non-stop mode. In all-stop mode, only stop all threads when
19394 reporting a stop to GDB. Handle explicit thread stop requests.
19395 (async_file_flush, async_file_mark): New.
19397 (send_sigstop): Use lwpid_of.
19398 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19399 interface changes. In non-stop mode, don't switch to a random
19401 (linux_resume_one_lwp): Use lwpid_of.
19402 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19403 (linux_resume_one_thread): ... this. Handle resume_stop. In
19404 non-stop mode, don't look for pending flag in all threads.
19405 (resume_status_pending_p): Don't consider explicitly suspended
19407 (my_waitpid): Reimplement. Emulate __WALL.
19408 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19410 (sigchld_handler, linux_supports_non_stop, linux_async)
19411 (linux_start_non_stop): New.
19412 (linux_target_ops): Register linux_supports_non_stop, linux_async
19413 and linux_start_non_stop.
19414 (initialize_low): Install SIGCHLD handler.
19415 * thread-db.c (thread_db_create_event, find_one_thread)
19416 (thread_db_get_tls_address): Use lwpid_of.
19417 * win32-low.c (win32_detach): Adjust to use resume_kind.
19418 (win32_wait): Add `options' argument.
19419 * spu-low.c (spu_resume): Adjust to use resume_kind.
19420 (spu_wait): Add `options' argument.
19422 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19424 Decouple target code from remote protocol.
19426 * target.h (enum target_waitkind): New.
19427 (struct target_waitstatus): New.
19428 (struct target_ops) <wait>: Return an unsigned long. Take a
19429 target_waitstatus pointer instead of a char pointer.
19430 (mywait): Likewise.
19431 * target.c (mywait): Change prototype to return an unsigned long.
19432 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19433 * server.h (thread_from_wait, old_thread_from_wait): Delete
19435 (prepare_resume_reply): Change prototype to take a
19437 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19438 (last_status, last_ptid): New.
19439 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19440 pid instead of a signal.
19441 (attach_inferior): Remove "status" and "signal" parameters.
19443 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19445 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19446 (handle_v_requests, myresume): Remove "status" and "signal"
19447 parameters. Adjust.
19448 (handle_status): New.
19449 (main): Delete local `status'. Adjust.
19450 * remote-utils.c: Include target.h.
19451 (prepare_resume_reply): Change prototype to take a
19452 target_waitstatus. Adjust.
19454 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19456 * spu-low.c (spu_wait): Adjust.
19457 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19459 (win32_wait): Adjust.
19461 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19463 * target.h (struct thread_resume): Delete leave_stopped member.
19464 (struct target_ops): Add a `n' argument to the `resume' callback.
19465 * server.c (start_inferior): Adjust.
19466 (handle_v_cont, myresume): Adjust.
19467 * linux-low.c (check_removed_breakpoint): Adjust to resume
19468 interface change, and to removed leave_stopped field.
19469 (resume_ptr): Delete.
19470 (struct thread_resume_array): New.
19471 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19472 resume interface change.
19473 (linux_continue_one_thread, linux_queue_one_thread)
19474 (resume_status_pending_p): Check if the resume field is NULL
19475 instead of checking the leave_stopped member.
19476 (linux_resume): Adjust to the target resume interface change.
19477 * spu-low.c (spu_resume): Adjust to the target resume interface
19479 * win32-low.c (win32_detach, win32_resume): Ditto.
19481 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19483 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19485 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19487 (linux_continue_one_thread): Only preserve the stepping flag if
19488 there's a pending breakpoint.
19490 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19492 * server.c (main): After the inferior having exited, call
19493 remote_close before exiting gdbserver.
19495 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19497 Fix size of FPSCR in Power 7 processors.
19498 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19499 (PPC_FEATURE_HAS_DFP): New #define.
19500 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19503 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19505 * server.c (handle_query) Whitespace and formatting.
19507 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19509 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19510 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19511 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19512 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19513 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19514 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19515 Makefile.in, configure.ac: Fix whitespace throughout.
19516 * configure: Regenerate.
19518 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19520 * inferiors.c (find_inferior): Make it safe for the callback
19521 function to delete the currently iterated inferior.
19523 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19525 * Makefile.in (linuw_low_h): Move higher.
19526 (thread-db.o): Depend on $(linux_low_h).
19528 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19530 Rename "process" to "lwp" throughout.
19532 * linux-low.c (all_processes): Rename to...
19533 (all_lwps): ... this.
19534 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19535 (add_process): Rename to ...
19536 (add_lwp): ... this. Adjust.
19537 (linux_create_inferior): Adjust.
19538 (linux_attach_lwp): Adjust.
19539 (linux_attach): Adjust.
19540 (linux_kill_one_process): Rename to ...
19541 (linux_kill_one_lwp): ... this. Adjust.
19542 (linux_kill): Adjust.
19543 (linux_detach_one_process): Rename to ...
19544 (linux_detach_one_lwp): ... this. Adjust.
19545 (linux_detach): Adjust.
19546 (check_removed_breakpoint): Adjust.
19547 (status_pending_p): Adjust.
19548 (linux_wait_for_process): Rename to ...
19549 (linux_wait_for_lwp): ... this. Adjust.
19550 (linux_wait_for_event): Adjust.
19551 (send_sigstop): Adjust.
19552 (wait_for_sigstop): Adjust.
19553 (stop_all_processes): Rename to ...
19554 (stop_all_lwps): ... this.
19555 (linux_resume_one_process): Rename to ...
19556 (linux_resume_one_lwp): ... this. Adjust.
19557 (linux_set_resume_request, linux_continue_one_thread)
19558 (linux_queue_one_thread, resume_status_pending_p)
19559 (usr_store_inferior_registers, regsets_store_inferior_registers)
19560 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19562 * linux-low.h (get_process): Rename to ...
19563 (get_lwp): ... this. Adjust.
19564 (get_thread_process): Rename to ...
19565 (get_thread_lwp): ... this. Adjust.
19566 (get_process_thread): Rename to ...
19567 (get_lwp_thread): ... this. Adjust.
19568 (struct process_info): Rename to ...
19569 (struct lwp_info): ... this.
19570 (all_processes): Rename to ...
19571 (all_lwps): ... this.
19572 * proc-service.c (ps_lgetregs): Adjust.
19573 * thread-db.c (thread_db_create_event, find_one_thread)
19574 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19576 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19578 * server.c (handle_query): Handle "qAttached".
19580 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19582 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19583 GPLv3, update license URL.
19585 2009-03-01 Doug Evans <dje@google.com>
19587 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19588 (server_h): Add gdb_signals.h.
19589 (signals.o): Update.
19590 * server.h (target_signal_from_host,target_signal_to_host_p)
19591 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19593 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19595 * remote-utils.c (getpkt): Also generate remote-debug
19596 information if noack_mode is set.
19598 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19600 * server.c (handle_query): Report qXfer:siginfo:read and
19601 qXfer:siginfo:write as supported and handle them.
19602 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19603 * linux-low.c (linux_xfer_siginfo): New.
19604 (linux_target_ops): Set it.
19606 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19608 * server.c (gdbserver_usage): Mention --remote-debug.
19609 (main): Accept '--remote-debug' switch.
19611 2009-01-18 Doug Evans <dje@google.com>
19613 * regcache.c (new_register_cache): No need to check result of xcalloc.
19614 * server.c (handle_search_memory): Back out calls to xmalloc,
19615 result is checked and error is returned to user upon failure.
19616 (handle_query): Ditto. Add more checks for result of malloc.
19617 (handle_v_cont): Check result of malloc, report error back to
19619 (handle_v_run): Ditto. Call freeargv.
19620 * server.h (freeargv): Declare.
19621 * utils.c (freeargv): New fn.
19623 2009-01-15 Doug Evans <dje@google.com>
19625 * gdbreplay.c (perror_with_name): Make arg const char *.
19626 * server.h (target_signal_to_name): Make return type const char *.
19627 * thread-db.c (thread_db_err_str): Make return type const char *.
19628 * utils.c (perror_with_name): Make arg const char *.
19630 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19632 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19633 when handling a EXIT_PROCESS_DEBUG_EVENT.
19635 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19637 * gdbreplay.c (gdbreplay_version): Update copyright year.
19638 * server.c (gdbserver_version): Likewise.
19640 2009-01-05 Doug Evans <dje@google.com>
19642 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19643 (handle_extended_wait): Improve comment.
19645 2008-12-13 Doug Evans <dje@google.com>
19647 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19648 * server.h (ATTR_MALLOC): New macro.
19649 (xmalloc,xcalloc,xstrdup): Declare.
19650 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19651 * inferiors.c: Ditto.
19652 * linux-low.c: Ditto.
19653 * mem-break.c: Ditto.
19654 * regcache.c: Ditto.
19655 * remote-utils.c: Ditto.
19658 * win32-low.c: Ditto.
19660 2008-12-12 Doug Evans <dje@google.com>
19662 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19663 in debugging printf.
19665 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19667 2008-12-09 Doug Evans <dje@google.com>
19669 * linux-low.h (struct process_info): Delete member tid, unused.
19670 * thread-db.c (find_one_thread): Update.
19671 (maybe_attach_thread): Update.
19673 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19675 * target.h (struct target_ops): Add qxfer_osdata member.
19676 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19678 (linux_qxfer_osdata): New functions.
19679 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19681 * server.c (handle_query): Handle "qXfer:osdata:read:".
19682 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19683 (buffer_xml_printf): New functions.
19684 * server.h (struct buffer): New.
19685 (buffer_grow_str, buffer_grow_str0): New macros.
19686 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19687 (buffer_xml_printf): Declare.
19689 2008-11-24 Doug Evans <dje@google.com>
19691 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19693 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19695 * server.c (handle_v_run): Always use the supplied argument list.
19697 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19699 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19700 (xtensa_regmap_table): Add entry for scompare1.
19702 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19704 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19705 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19706 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19707 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19708 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19709 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19710 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19711 XML target descriptions.
19712 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19713 when inferior is running on an ISA 2.05 or later processor. Add
19714 special case to return offset for full 64-bit slot of FPSCR when
19717 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19719 * Makefile.in (SFILES, clean): Added sparc64 files.
19720 (reg-sparc64.o, reg-sparc64.c): New.
19721 * configure.srv (sparc*-*-linux*): New configuration.
19722 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19723 syscall arguments for SPARC.
19724 (regsets_store_inferior_registers): Likewise.
19725 * linux-sparc-low.c: New file.
19727 2008-10-21 Doug Evans <dje@google.com>
19729 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19730 (READLINE_DIR,READLINE_DEP): Delete.
19731 (INTERNAL_CFLAGS): Update.
19732 (LINTFLAGS): Update.
19734 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19736 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19737 whole argv from the last run, not just argv[0].
19739 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19741 * regcache.c (new_register_cache): Return NULL if the register
19742 cache size isn't known yet.
19743 (free_register_cache): Avoid dereferencing a NULL regcache.
19745 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19747 * configure.srv: Merge MIPS and MIPS64.
19749 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19751 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19753 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19755 * Makefile.in: Add required vsx dependencies.
19757 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19758 Declare init_registers_powerpc_vsx32l.
19759 Declare init_registers_powerpc_vsx64l.
19760 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19761 (ppc_arch_setup): Check for VSX in hwcap.
19762 (ppc_fill_vsxregset): New function.
19763 (ppc_store_vsxregset): New function.
19764 Add new VSX entry in regset_info target_regsets.
19766 * configure.srv: Add new VSX dependencies.
19768 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19770 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19771 (remote_open): Set or clear transport_is_reliable.
19772 (putpkt_binary): Don't expect acks in noack mode.
19773 (getpkt): Don't send ack/nac in noack mode.
19774 * server.c (handle_general_set): Handle QStartNoAckMode.
19775 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19777 (main): Reset noack_mode on every connection.
19778 * server.h (noack_mode): Declare.
19780 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19782 * Makefile.in (GDBREPLAY_OBS): New variable.
19783 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19785 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19786 Daniel Jacobowitz <dan@codesourcery.com>
19788 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19789 (usr_store_inferior_registers): Likewise.
19790 (regsets_store_inferior_registers): Likewise.
19792 2008-07-31 Rolf Jansen <rj@surtec.com>
19793 Pedro Alves <pedro@codesourcery.com>
19795 * configure.ac: Check for memmem declaration.
19796 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19797 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19798 (disable_packet_qfThreadInfo): Unconditionally compile.
19799 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19800 * configure, config.in: Regenerate.
19802 2008-07-28 Doug Kwan <dougkwan@google.com>
19804 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19805 (linux_write_memory): Remove declaration of errno.
19807 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19809 * linux-low.c (handle_extended_wait): Do not use "status"
19810 variable uninitialized.
19812 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19814 * server.c (handle_v_attach): Inhibit reporting dll changes.
19816 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19818 * remote-utils.c (prepare_resume_reply): If requested, don't
19819 output "thread:TID" in the T stop reply.
19821 * server.c (disable_packet_vCont, disable_packet_Tthread)
19822 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19823 (handle_query): If requested, disable support for qC, qfThreadInfo
19825 (handle_v_requests): If requested, disable support for vCont.
19826 (gdbserver_show_disableable): New.
19827 (main): Handle --disable-packet and --disable-packet=LIST.
19829 * server.h (disable_packet_vCont, disable_packet_Tthread)
19830 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19832 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19834 * server.c (gdbserver_usage): Mention --version.
19836 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19838 * Makefile.in (gdbreplay.o): New rule.
19840 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19842 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19843 message, not gdbserver.
19845 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19846 Nathan Sidwell <nathan@codesourcery.com>
19847 Joseph Myers <joseph@codesourcery.com>
19849 * acinclude.m4: Include ../../config/acx.m4.
19850 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19851 * configure, config.in: Regenerate.
19852 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19853 * server.c (gdbserver_version): Print PKGVERSION.
19854 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19855 (main): Adjust gdbserver_usage calls.
19856 * gdbreplay.c (version, host_name): Add declarations.
19857 (gdbreplay_version, gdbreplay_usage): New.
19858 (main): Accept --version and --help options.
19860 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19862 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19863 (arm_breakpoint_at): Handle Thumb.
19864 (the_low_target): Add comment.
19866 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19868 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19870 2008-05-09 Doug Evans <dje@google.com>
19872 * server.h (decode_search_memory_packet): Declare.
19873 * remote-utils.c (decode_search_memory_packet): New fn.
19874 * server.c (handle_search_memory_1): New fn.
19875 (handle_search_memory): New fn.
19876 (handle_query): Process qSearch:memory packets.
19878 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19880 * regcache.c (registers_length): Remove.
19881 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19882 full register packet.
19883 * regcache.h (registers_length): Remove prototype.
19884 * server.h (PBUFSIZ): Define to 16384.
19886 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19888 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19889 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19890 powerpc-64l.o, and powerpc-altivec64l.o.
19891 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19892 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19893 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19894 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19895 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19898 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19899 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19900 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19901 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19902 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19903 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19904 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19905 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19906 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19907 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19910 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19911 (init_registers_powerpc_32l): ... this new prototype.
19912 (init_registers_powerpc_32): Remove, replace by ...
19913 (init_registers_powerpc_altivec32l): ... this new prototype.
19914 (init_registers_powerpc_e500): Remove, replace by ...
19915 (init_registers_powerpc_e500l): ... this new prototype.
19916 (init_registers_ppc64): Remove, replace by ...
19917 (init_registers_powerpc_64l): ... this new prototype.
19918 (init_registers_powerpc_64): Remove, replace by ...
19919 (init_registers_powerpc_altivec64l): ... this new prototype.
19920 (ppc_num_regs): Set to 73.
19921 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19922 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19923 (ppc_cannot_store_register): Handle orig_r3 and trap.
19924 (ppc_arch_setup): Update init_registers_... calls.
19925 (ppc_fill_gregset): Handle orig_r3 and trap.
19927 * inferiors.c (clear_inferiors): Reset current_inferior.
19929 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19931 * acinclude.m4: Add override.m4.
19932 * configure: Regenerate.
19934 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19936 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19937 initial call to init_register_ppc64.
19939 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19941 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19942 single powerpc*-*-linux* case.
19943 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19945 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19947 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19948 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19950 * linux-ppc-low.c: Include <elf.h>.
19951 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19952 (ppc_hwcap): New global variable.
19953 (ppc_regmap): Remove __SPE__ #ifdef sections.
19954 (ppc_regmap_e500): New global variable.
19955 (ppc_cannot_store_register): Update __SPE__ special case.
19956 (ppc_get_hwcap): New function.
19957 (ppc_arch_setup): Use it to determine whether inferior supports
19958 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19959 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19960 Do not access registers if target does not support AltiVec.
19961 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19962 Do not access registers if target does not support SPE.
19963 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19965 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19967 * linux-low.c (disabled_regsets, num_regsets): New.
19968 (use_regsets_p): Delete.
19969 (linux_wait_for_process): Clear disabled_regsets.
19970 (regsets_fetch_inferior_registers): Check and set it.
19971 (regsets_store_inferior_registers): Likewise.
19972 (linux_fetch_registers, linux_store_registers): Do not use
19974 (initialize_low): Allocate disabled_regsets.
19976 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19978 * Makefile.in (LIBOBJS): New.
19979 (OBS): Use LIBOBJS.
19980 (memmem.o): New rule.
19981 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19982 * configure: Regenerated.
19984 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19986 * server.c (handle_query): Never return "unsupported" for
19987 qXfer:features:read queries.
19989 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19991 * server.c (get_features_xml): Fix inverted condition.
19992 (handle_query): Always support qXfer:feature:read.
19994 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19996 * server.c (wrapper_argv): New.
19997 (start_inferior): Handle wrapper_argv. If set, expect an extra
19999 (gdbserver_usage): Document --wrapper.
20000 (main): Parse --wrapper.
20002 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20004 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20005 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20006 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20007 (ppc_set_pc): Likewise.
20008 (ppc_arch_setup): New function.
20009 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20010 of collect_register.
20011 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20013 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20015 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20016 instead of linux-ppc64-low.o.
20017 * linux-ppc64-low.c: Remove file.
20018 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20019 (linux-ppc64-low.o): Remove rule.
20021 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20022 (init_registers_powerpc_64): Likewise.
20023 (ppc_regmap): Conditionally define depending on __powerpc64__.
20024 (ppc_cannot_store_register): Do not special-case "fpscr" when
20025 compiled on __powerpc64__.
20026 (ppc_collect_ptrace_register): New function.
20027 (ppc_supply_ptrace_register): New function.
20028 (ppc_breakpoint): Change type to "unsigned int".
20029 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20030 (the_low_target): Conditionally provide initializers for the
20031 arch_setup member depending on __powerpc64__. Install
20032 collect_ptrace_register and supply_ptrace_register members.
20034 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20036 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20037 * server.c (gdbserver_xmltarget): Define.
20038 (get_features_xml): Use it to replace "target.xml" and arch_string.
20040 * configure.srv: Remove srv_xmltarget. Add XML files that were
20041 mentioned there to srv_xmlfiles instead. Remove conditional tests
20042 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20043 srv_xmlfiles and srv_regobj to include all possible choices.
20044 * configure.ac (srv_xmltarget): Remove.
20045 (srv_xmlfiles): Do not add "target.xml".
20046 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20047 checks for supplementary target information.
20048 * configure: Regenerate.
20049 * Makefile.in (XML_TARGET): Remove.
20050 (target.xml): Remove rule.
20051 (clean): Do not clean up target.xml.
20052 (.PRECIOUS): Do not mention target.xml.
20054 * target.h (struct target_ops): Remove arch_string member.
20055 * linux-low.c (linux_arch_string): Remove.
20056 (linux_target_ops): Remove arch_string initializer.
20057 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20058 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20059 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20060 * spu-low.c (spu_arch_string): Remove.
20061 (spu_target_ops): Remove arch_string initializer.
20062 * win32-low.c (win32_arch_string): Remove.
20063 (win32_target_ops): Remove arch_string initializer.
20064 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20065 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20066 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20068 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20070 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20071 by collect_ptrace_register and supply_ptrace_register hooks.
20072 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20073 instead of checking for the_low_target.left_pad_xfer.
20074 (usr_store_inferior_registers): Use collect_ptrace_register callback
20075 instead of checking for the_low_target.left_pad_xfer.
20077 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20078 (s390_supply_ptrace_register): Likewise.
20079 (s390_fill_gregset): Call s390_collect_ptrace_register.
20080 (the_low_target): Update.
20082 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20083 (ppc_supply_ptrace_register): Likewise.
20084 (the_low_target): Update.
20086 * linux-i386-low.c (the_low_target): Update.
20087 * linux-x86-64-low.c (the_low_target): Update.
20089 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20091 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20092 reg-s390.o and reg-s390x.o.
20094 * linux-low.c (new_inferior): New global variable.
20095 (linux_create_inferior, linux_attach): Set it.
20096 (linux_wait_for_process): Call the_low_target.arch_setup after the
20097 target has stopped for the first time.
20098 (initialize_low): Do not call the_low_target.arch_setup.
20100 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20101 (s390_set_pc): Likewise.
20102 (s390_arch_setup): New function.
20103 (the_low_target): Use s390_arch_setup as arch_setup routine.
20105 * regcache.c (realloc_register_cache): New function.
20106 (set_register_cache): Call it for each existing regcache.
20108 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20110 * server.h (init_registers): Remove prototype.
20112 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20113 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20114 instead of init_registers ().
20115 * linux-arm-low.c (init_registers_arm): Add prototype.
20116 (init_registers_arm_with_iwmmxt): Likewise.
20117 (the_low_target): Add initializer for arch_setup field.
20118 * linux-cris-low.c (init_registers_cris): Add prototype.
20119 (the_low_target): Add initializer for arch_setup field.
20120 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20121 (the_low_target): Add initializer for arch_setup field.
20122 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20123 (the_low_target): Add initializer for arch_setup field.
20124 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20125 (the_low_target): Add initializer for arch_setup field.
20126 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20127 (the_low_target): Add initializer for arch_setup field.
20128 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20129 (the_low_target): Add initializer for arch_setup field.
20130 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20131 (init_registers_mips64_linux): Likewise.
20132 (the_low_target): Add initializer for arch_setup field.
20133 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20134 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20135 (the_low_target): Add initializer for arch_setup field.
20136 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20137 (init_registers_powerpc_64): Likewise.
20138 (the_low_target): Add initializer for arch_setup field.
20139 * linux-s390-low.c (init_registers_s390): Add prototype.
20140 (init_registers_s390x): Likewise.
20141 (the_low_target): Add initializer for arch_setup field.
20142 * linux-sh-low.c (init_registers_sh): Add prototype.
20143 (the_low_target): Add initializer for arch_setup field.
20144 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20145 (the_low_target): Add initializer for arch_setup field.
20146 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20147 (the_low_target): Add initializer for arch_setup field.
20149 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20150 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20151 instead of init_registers ().
20152 * win32-arm-low.c (init_registers_arm): Add prototype.
20153 (the_low_target): Add initializer for arch_setup field.
20154 * win32-i386-low.c (init_registers_i386): Add prototype.
20155 (the_low_target): Add initializer for arch_setup field.
20157 * spu-low.c (init_registers_spu): Add prototype.
20158 (initialize_low): Call initialie_registers_spu () instead of
20159 initialize_registers ().
20161 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20163 * server.c (handle_v_requests): When handling the vRun and vAttach
20164 packets, if already debugging a process, don't kill it. Return an
20167 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20169 * server.c (handle_query): Correct length check.
20171 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20173 * win32-low.c (do_initial_child_stuff): Add process handle
20174 parameter. Set current_process_handle and current_process_id from the
20175 parameters. Clear globals.
20176 (win32_create_inferior): Don't set current_process_handle and
20177 current_process_id here. Instead pass them on the call to
20178 do_initial_child_stuff.
20179 (win32_attach): Likewise.
20180 (win32_clear_inferiors): New.
20181 (win32_kill): Don't close the current process handle or the
20182 current thread handle here. Instead call win32_clear_inferiors.
20183 (win32_detach): Don't open a new handle to the process. Call
20184 win32_clear_inferiors.
20185 (win32_join): Don't rely on current_process_handle; open a new
20186 handle using the process id.
20187 (win32_wait): Call win32_clear_inferiors when the inferior process
20190 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20192 * server.c (monitor_show_help): Add "exit".
20194 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20196 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20197 (clean): Add reg-xtensa.c.
20198 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20199 * configure.srv (xtensa*-*-linux*) New target.
20200 * linux-xtensa-low.c: New.
20201 * xtensa-xtregs.c: New.
20203 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20205 * hostio.c: Don't include errno.h.
20206 (errno_to_fileio_errno): Move to hostio-errno.
20207 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20208 error number outputting to the target->hostio_last_error callback.
20209 (hostio_packet_error): Use FILEIO_EINVAL directly.
20210 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20211 calls to hostio_error.
20212 * hostio-errno.c: New.
20213 * server.h (hostio_last_error_from_errno): Declare.
20214 * target.h (target_ops): Add hostio_last_error member.
20215 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20216 as hostio_last_error handler.
20217 * spu-low.c (spu_target_ops): Likewise.
20218 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20219 (wince_hostio_last_error): New functions.
20220 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20221 as hostio_last_error handler.
20222 (win32_target_ops) [!_WIN32_WCE]: Register
20223 hostio_last_error_from_errno as hostio_last_error handler.
20224 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20225 (hostio-errno.o): New rule.
20226 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20227 * configure.srv (srv_hostio_err_objs): New variable. Default to
20229 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20230 * configure: Regenerate.
20232 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20234 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20235 (linux_kill, linux_detach): Clean up the process list.
20236 * remote-utils.c (remote_open): Improve port number parsing.
20237 (putpkt_binary, input_interrupt): Only send interrupts if the target
20239 * server.c (extended_protocol): Make static.
20240 (attached): Define earlier.
20241 (exit_requested, response_needed, program_argv): New variables.
20242 (target_running): New.
20243 (start_inferior): Clear attached here.
20244 (attach_inferior): Set attached here.
20245 (require_running): Define.
20246 (handle_query): Use require_running and target_running. Implement
20248 (handle_v_attach, handle_v_run): New.
20249 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20250 (gdbserver_usage): Update.
20251 (main): Redo argument parsing. Handle --debug and --multi. Handle
20252 --attach along with other options or after the port. Save
20253 program_argv. Support no initial program. Resynchronize
20254 communication with GDB after an error. Handle "monitor exit".
20255 Use require_running and target_running. Always allow the extended
20256 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20257 restart in extended mode.
20258 * README: Refer to the GDB manual. Update --attach usage.
20260 2007-12-20 Andreas Schwab <schwab@suse.de>
20262 * linux-low.c (STACK_SIZE): Define.
20263 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20264 (linux_test_for_tracefork): Likewise.
20266 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20268 * linux-low.c (linux_wait_for_event): Update messages. Do not
20269 reinsert auto-delete breakpoints.
20270 * mem-break.c (struct breakpoint): Change return type of handler to
20272 (set_breakpoint_at): Update handler type.
20273 (reinsert_breakpoint_handler): Return 1 instead of calling
20275 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20277 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20278 * mem-break.h (set_breakpoint_at): Update handler type.
20279 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20280 * win32-low.c (auto_delete_breakpoint): New.
20281 (get_child_debug_event): Use it.
20283 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20285 * configure.ac: Check for pread and pwrite.
20286 * hostio.c (handle_pread): Fall back to lseek and read.
20287 (handle_pwrite): Fall back to lseek and write.
20288 * config.in, configure: Regenerated.
20290 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20292 * server.c (myresume): Add own_buf argument.
20293 (main): Update calls.
20295 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20297 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20298 * remote-utils.c (remote_open): Do not call disable_async_io.
20299 (block_async_io): Delete.
20300 (unblock_async_io): Make static.
20301 (initialize_async_io): New.
20302 * server.c (handle_v_cont): Handle async I/O here.
20303 (myresume): Likewise. Move other common resume tasks here...
20304 (main): ... from here. Call initialize_async_io. Disable async
20305 I/O before the main loop.
20306 * server.h (initialize_async_io): Declare.
20307 (block_async_io, unblock_async_io): Delete prototypes.
20308 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20310 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20312 * remote-utils.c (readchar): Allow binary data in received messages.
20314 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20316 * win32-low.c (attaching): New global.
20317 (win32_create_inferior): Clear the `attaching' global.
20318 (win32_attach): Set the `attaching' global.
20319 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20320 attaching. Only set a breakpoint at the entry point if not
20323 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20325 * server.c (main): Don't report dll events on the initial
20326 connection on attaches.
20328 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20330 * server.c (main): Relax numerical bases supported for the pid of
20331 the --attach command line argument.
20333 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20335 * win32-low.c (win32_attach): Call OpenProcess before
20336 DebugActiveProcess, not after. Add last error output to error
20339 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20341 * win32-low.c (win32_get_thread_context)
20342 (win32_set_thread_context): New functions.
20343 (thread_rec): Use win32_get_thread_context.
20344 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20345 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20348 2007-12-03 Leo Zayas
20349 Pedro Alves <pedro_alves@portugalmail.pt>
20351 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20353 (child_add_thread): Minor cleanup.
20354 (child_continue): Resume artificially suspended threads before
20355 calling ContinueDebugEvent.
20356 (suspend_one_thread): New.
20357 (fake_breakpoint_event): New.
20358 (get_child_debug_event): Change return type to int. Check here if
20359 gdb sent an interrupt request. If a soft interrupt was requested,
20360 fake a breakpoint event. Return 0 if there is no event to handle,
20362 (win32_wait): Don't check here if gdb sent an interrupt request.
20363 Ensure there is a valid event to handle.
20364 (win32_request_interrupt): Add soft interruption method as last
20367 2007-12-03 Leo Zayas
20368 Pedro Alves <pedro_alves@portugalmail.pt>
20370 * win32-low.h (win32_thread_info): Add descriptions to the
20371 structure members. Replace `suspend_count' counter by a
20373 * win32-low.c (thread_rec): Update condition of when to get the
20374 context from the inferior. Rely on ContextFlags being set if it
20375 has already been retrieved. Only suspend the inferior thread if
20376 we haven't already. Warn if that fails.
20377 (continue_one_thread): s/suspend_count/suspended/. Only call
20378 ResumeThread once. Warn if that fails.
20380 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20382 * win32-low.c (win32_wait): Don't read from the inferior when it
20383 has already exited.
20385 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20387 * Makefile.in (win32_low_h): New variable.
20388 (win32-low.o): Add dependency on $(win32_low_h).
20389 (win32-arm-low.o, win32-i386-low.o): New rules.
20391 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20393 * hostio.c: Correct copyright year.
20395 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20397 * Makefile.in (OBS): Add hostio.o.
20398 (hostio.o): New rule.
20399 * server.h (handle_vFile): Declare.
20400 * hostio.c: New file.
20401 * server.c (handle_v_requests): Take packet_len and new_packet_len
20402 for binary packets. Call handle_vFile.
20403 (main): Update call to handle_v_requests.
20405 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20407 * linux-low.c: Include <sched.h>.
20409 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20411 * linux-low.c (linux_tracefork_grandchild): New.
20412 (linux_tracefork_child): Use clone.
20413 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20415 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20417 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20419 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20421 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20423 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20425 * inferiors.c (change_inferior_id): Delete.
20426 (add_pid_to_list, pull_pid_from_list): New.
20427 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20428 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20429 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20430 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20431 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20432 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20433 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20434 (using_threads): Always set to 1.
20435 (handle_extended_wait): New.
20436 (add_process): Do not set TID.
20437 (linux_create_inferior): Set must_set_ptrace_flags.
20438 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20439 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20440 (linux_thread_alive): Rename TID argument to LWPID.
20441 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20442 (linux_wait_for_event): Do not use TID or check using_threads. Update
20443 call to dead_thread_notify. Call handle_extended_wait.
20444 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20445 (send_sigstop): Delete sigstop_sent.
20446 (wait_for_sigstop): Avoid TID.
20447 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20448 (linux_test_for_tracefork): New.
20449 (linux_lookup_signals): Use thread_db_active and
20450 linux_supports_tracefork_flag.
20451 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20452 * linux-low.h (get_process_thread): Avoid TID.
20453 (struct process_ifo): Move thread_known and tid to the end. Remove
20455 (linux_attach_lwp, thread_db_init): Update prototypes.
20456 * server.h (change_inferior_id): Delete prototype.
20457 (add_pid_to_list, pull_pid_from_list): New prototypes.
20458 * thread-db.c (thread_db_use_events): New.
20459 (find_first_thread): Rename to...
20460 (find_one_thread): ...this. Update callers and messages. Do not
20461 call fatal. Check thread_db_use_events. Do not call
20462 change_inferior_id or new_thread_notify.
20463 (maybe_attach_thread): Update. Do not call new_thread_notify.
20464 (thread_db_init): Set thread_db_use_events. Check use_events.
20465 * utils.c (fatal, warning): Correct message prefix.
20467 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20469 * Makefile.in (clean): Remove new files.
20470 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20471 (powerpc-64.o, powerpc-64.c): New rules.
20472 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20473 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20475 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20477 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20478 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20479 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20480 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20481 (target_regsets): Add AltiVec and SPE register sets.
20482 * configure.ac: Check for AltiVec and SPE.
20483 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20484 (ppc_fill_vrregset, ppc_store_vrregset): New.
20485 (target_regsets): Add AltiVec register set.
20486 * configure: Regenerated.
20488 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20490 * linux-low.c (O_LARGEFILE): Define.
20491 (linux_read_memory): Use /proc/PID/mem.
20492 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20493 * configure, config.in: Regenerated.
20495 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20497 * linux-low.c (linux_wait_for_event): Do not pass signals while
20500 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20502 * win32-low.c (create_process): New.
20503 (win32_create_inferior): Use create_process instead of
20504 CreateProcess. If create_process failed retry appending an ".exe"
20505 suffix. Store the GetLastError result immediatelly after
20506 create_process calls and use it on the call to error.
20508 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20510 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20512 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20514 * configure.ac: Switch license to GPLv3.
20516 2007-08-01 Michael Snyder <msnyder@access-company.com>
20518 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20520 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20522 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20524 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20525 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20526 CloseToolhelp32Snapshot.
20527 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20528 CloseToolhelp32Snapshot.
20530 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20532 * server.c (main): Check for inferior exit before main loop.
20534 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20536 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20537 instead of on tmp_desc.
20539 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20540 Daniel Jacobowitz <dan@codesourcery.com>
20542 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20543 (add_thread): Minor cleanups.
20544 (clear_inferiors): Move lower in the file. Clear the DLL
20546 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20547 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20548 (xml_escape_text): New.
20549 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20551 (handle_v_cont): Report errors.
20552 (gdbserver_version): Update.
20553 (main): Correct size of own_buf. Do not report initial DLL events.
20554 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20555 (unloaded_dll, xml_escape_text): New.
20556 * win32-low.c (enum target_waitkind): Update comments.
20557 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20558 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20559 (win32_EnumProcessModules, win32_GetModuleInformation)
20560 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20561 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20562 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20563 (win32_Module32First, win32_Module32Next, load_toolhelp)
20564 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20565 (get_child_debug_event): Handle DLL events.
20566 (win32_wait): Likewise.
20568 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20570 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20571 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20573 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20575 * win32-low.c (handle_output_debug_string): Ignore event if not
20578 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20580 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20582 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20584 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20586 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20588 * inferiors.c (change_inferior_id): Add comment.
20589 * linux-low.c (check_removed_breakpoint): Add an early
20590 prototype. Improve debug output.
20591 (linux_attach): Doc update.
20592 (linux_detach_one_process, linux_detach): Clean up before releasing
20594 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20595 * linux-low.h (struct process_info): Doc improvement.
20596 * mem-break.c (delete_all_breakpoints): New.
20597 * mem-break.h (delete_all_breakpoints): New prototype.
20598 * thread-db.c (find_first_thread): New.
20599 (thread_db_create_event): Call it instead of
20600 thread_db_find_new_threads. Clean up unused variables.
20601 (maybe_attach_thread): Remove first thread handling.
20602 (thread_db_find_new_threads): Use find_first_thread.
20603 (thread_db_get_tls_address): Likewise.
20605 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20607 * thread-db.c (thread_db_find_new_threads): Add prototype.
20608 (thread_db_create_event): Check for the main thread before adding
20610 (maybe_attach_thread): Only enable event reporting if TID == 0.
20611 (thread_db_get_tls_address): Check for new threads.
20613 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20615 * linux-low.c (linux_create_inferior): Try execv before execvp.
20616 * spu-low.c (spu_create_inferior): Likewise.
20618 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20620 * linux-low.c (linux_create_inferior): Change execv to execvp.
20621 * spu-low.c (spu_create_inferior): Likewies.
20623 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20625 * Makefile.in (clean): Clean new files instead of deleted ones.
20626 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20627 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20629 * configure.srv: Specify XML files and new regformats for MIPS and
20631 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20632 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20633 an entry for the restart register.
20634 (mips_cannot_fetch_register, mips_cannot_store_register)
20635 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20636 register names to match the XML descriptions.
20637 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20638 restart register instead of $0.
20640 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20641 Markus Deuling <deuling@de.ibm.com>
20643 * remote-utils.c (decode_xfer_write): New function.
20644 * server.h (decode_xfer_write): Add prototype.
20645 * server.c (handle_query): Add PACKET_LEN argument. Support
20646 qXfer:spu:read and qXfer:spu:write packets.
20647 (main): Pass packet_len to handle_query.
20648 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20649 * target.h (target_ops): Add qxfer_spu.
20651 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20653 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20654 accessing non-seekable spufs files.
20656 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20658 * server.c (handle_query): Add reply for qC packet.
20660 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20661 Leo Zayas <lerele@champenstudios@com>
20663 * server.h (check_remote_input_interrupt_request): New function.
20664 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20665 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20666 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20667 (check_remote_input_interrupt_request): New function.
20668 * server.h (check_remote_input_interrupt_request): Declare.
20669 * win32-low.c (winapi_DebugBreakProcess,
20670 winapi_GenerateConsoleCtrlEvent): New typedefs.
20671 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20673 (win32_wait): Check for remote interrupt request
20674 with check_remote_input_interrupt_request.
20675 (win32_request_interrupt): New function.
20676 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20678 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20680 * win32-low.c (debug_registers_changed,
20681 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20682 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20683 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20684 (thread_rec): Get context using the low target.
20685 (child_add_thread): Call thread_added on the low target,
20686 which does the same thing.
20688 (do_initial_child_stuff): Remove debug registers references.
20689 Set context using the low target. Resume threads after
20690 setting the contexts.
20691 (child_continue): Remove dead variable. Remove debug
20692 registers references.
20693 (child_fetch_inferior_registers): Go through the low target.
20694 (do_child_store_inferior_registers): Remove.
20695 (child_store_inferior_registers): Go through the low target.
20696 (win32_resume): Remove debug registers references.
20697 Set context using the low target.
20698 (handle_exception): Change return type to void. Don't record
20699 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20700 first chance exception.
20701 (get_child_debug_event): Change return type to void. Remove
20702 goto loop. Always return after waiting for debug event.
20703 (win32_wait): Convert to switch statement. Handle spurious
20706 * win32-i386-low.c (debug_registers_changed,
20707 debug_registers_used): New.
20708 (initial_stuff): Rename to ...
20709 (i386_initial_stuff): ... this. Clear debug registers
20711 (store_debug_registers): Delete.
20712 (i386_get_thread_context): New.
20713 (load_debug_registers): Delete.
20714 (i386_set_thread_context): New.
20715 (i386_thread_added): New.
20716 (single_step): Rename to ...
20717 (i386_single_step): ... this.
20718 (do_fetch_inferior_registers): Rename to ...
20719 (i386_fetch_inferior_register): ... this.
20720 (i386_store_inferior_register): New.
20721 (the_low_target): Adapt to new interface.
20723 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20724 (arm_get_thread_context): New.
20725 (arm_set_thread_context): New.
20727 (do_fetch_inferior_registers): Rename to ...
20728 (arm_fetch_inferior_register): ... this.
20729 (arm_store_inferior_register): New.
20730 (arm_wince_breakpoint): Reimplement as unsigned long.
20731 (arm_wince_breakpoint_len): Define.
20732 (the_low_target): Adapt to new interface.
20734 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20735 load_debug_registers. Add get_thread_context, set_thread_context,
20736 thread_added and store_inferior_register. Rename
20737 fetch_inferior_registers to fetch_inferior_register.
20738 (regptr): Remove declaration.
20740 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20742 * linux-low.c (linux_detach): Change return type to int. Return 0.
20743 * spu-low.c (spu_detach): Likewise.
20745 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20747 * target.h (target_ops): Change return type of detach to int.
20749 (join_inferior): New.
20750 * server.c (main): Don't skip detach support on mingw32.
20751 If the inferior doesn't support detaching return error.
20752 Call join_inferior instead of using waitpid.
20753 * linux-low.c (linux_join): New.
20754 (linux_target_op): Add linux_join.
20755 * spu-low.c (spu_join): New.
20756 (spu_target_ops): Add spu_join.
20757 * win32-low.c (win32_detach): Adapt to new interface.
20758 Reopen current_process_handle before detaching. Issue a child
20759 resume before detaching.
20761 (win32_target_op): Add win32_join.
20763 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20765 * win32-low.c (win32-attach): Fix return value.
20766 * target.h (target_ops): Describe ATTACH return values.
20768 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20770 * win32-low.c (GETPROCADDRESS): Define.
20771 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20772 (winapi_DebugSetProcessKillOnExit): Likewise.
20773 (win32_create_inferior): Force usage of ansi CreateProcessA.
20774 (win32_attach): Use GETPROCADDRESS.
20775 (win32_detach): Likewise.
20777 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20779 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20781 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20783 * win32-low.c: Commit leftover changes from 2007-03-29.
20785 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20787 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20788 fields short instead of int. Add explicit padding.
20789 (i387_cache_to_fsave): Remove unnecessary casts.
20790 (i387_fsave_to_cache): Doc fix.
20791 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20793 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20795 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20796 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20798 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20800 * configure.srv (arm*-*-mingw32ce*): Move near the other
20803 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20805 * configure.ac: Add errno checking.
20806 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20807 sys/file.h and malloc.h.
20808 (AC_CHECK_DECLS): Add perror.
20809 (srv_mingwce): Handle.
20810 * configure.srv (i[34567]86-*-cygwin*): Add
20811 win32-i386-low.o to srv_tgtobj.
20812 (i[34567]86-*-mingw*): Likewise.
20813 (arm*-*-mingw32ce*): Add case.
20814 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20815 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20816 [__MINGW32CE__] (strerror): New function.
20817 [__MINGW32CE__] (errno): Define to GetLastError.
20818 [__MINGW32CE__] (COUNTOF): New macro.
20819 (remote_open): Remove extra close call.
20820 * mem-break.c (delete_breakpoint_at): New function.
20821 * mem-break.h (delete_breakpoint_at): Declare.
20822 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20823 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20824 [USE_WIN32API] (read, write): Add char* casts.
20825 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20826 * server.h: Include wincecompat.h on Windows CE.
20827 [HAVE_ERRNO_H]: Check.
20828 (perror): Declare if not declared.
20829 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20830 (perror_with_name): Remove errno declaration.
20831 * wincecompat.h: New.
20832 * wincecompat.c: New.
20833 * win32-low.h: New.
20834 * win32-arm-low.c: New.
20835 * win32-i386-low.c: New.
20836 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20837 (OUTMSG2): Make it safe.
20839 (COUNTOF): New macro.
20840 (NUM_REGS): Get it from the low target.
20841 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20842 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20843 (thread_rec): Let low target handle debug registers.
20844 (child_add_thread): Likewise.
20845 (child_init_thread_list): Likewise.
20846 (continue_one_thread): Likewise.
20848 (do_child_fetch_inferior_registers): Move to ...
20849 * win32-i386-low.c: ... here, and rename to ...
20850 (do_fetch_inferior_registers): ... this.
20851 * win32-low.c (child_fetch_inferior_registers):
20852 Go through the low target.
20853 (do_child_store_inferior_registers): Use regptr.
20854 (strwinerror): New function.
20855 (win32_create_inferior): Handle Windows CE.
20856 Use strwinerror instead of strerror on Windows error
20857 codes. Add program to the error output.
20858 Don't close the main thread handle on Windows CE.
20859 (win32_attach): Use coredll.dll on Windows CE.
20860 (win32_kill): Close current process and current
20862 (win32_detach): Use coredll.dll on Windows CE.
20863 (win32_resume): Let low target handle debug registers, and
20865 (handle_exception): Add/Remove initial breakpoint. Avoid
20866 non-existant WSTOPSIG on Windows CE.
20867 (win32_read_inferior_memory): Cast to remove warning.
20868 (win32_arch_string): Go through the low target.
20869 (initialize_low): Call set_breakpoint_data with the low
20870 target's breakpoint.
20871 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20872 FOP_REGNUM, mappings): Move to ...
20873 * win32-i386-low.c: ... here.
20874 * win32-low.c (win32_thread_info): Move to ...
20875 * win32-low.h: ... here.
20876 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20877 win32-arm-low.c and wincecompat.c.
20878 (all:): Add $EXEEXT.
20879 (install-only:): Likewise.
20880 (gdbserver:): Likewise.
20881 (gdbreplay:): Likewise.
20882 * config.in: Regenerate.
20883 * configure: Regenerate.
20885 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20887 * win32-low.c: Rename typedef thread_info to
20888 win32_thread_info throughout.
20890 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20892 * win32-i386-low.c: Rename to ...
20893 * win32-low.c: ... this.
20894 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20895 * Makefile.in: Likewise.
20897 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20899 * remote-utils.c (monitor_output): Constify msg parameter.
20900 * server.h (monitor_output): Likewise.
20901 * win32-i386-low.c (handle_output_debug_string): New.
20902 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20903 handle_output_debug_string.
20904 (get_child_debug_event): Likewise.
20906 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20908 * server.c (main): Correct strtoul check.
20910 2007-03-27 Jon Ringle <jon@ringle.org>
20912 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20914 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20916 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20918 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20920 * terminal.h: Check HAVE_SGTTY_H.
20922 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20924 * remote-utils.c (remote_open): Print out the assigned port number.
20926 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20928 * remote-utils.c (monitor_output): New function.
20929 * server.c (debug_threads): Define here.
20930 (monitor_show_help): New function.
20931 (handle_query): Handle qRcmd.
20932 (main): Do not handle 'd' packet.
20933 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20934 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20937 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20939 * Makefile.in (EXEEXT): New.
20940 (clean): Use $(EXEEXT).
20942 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20944 * target.h (target_ops): Rename send_signal to request_interrupt,
20945 and remove enum target_signal parameter.
20946 * linux-low.c (linux_request_interrupt): Rename from
20947 linux_send_signal, and always send SIGINT.
20948 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20949 and always send SIGINT.
20950 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20952 (input_interrupt): Likewise.
20954 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20956 * server.c (get_features_xml): Check if target implemented
20958 * win32-i386-low.c (win32_arch_string): New.
20959 (win32_target_ops): Add win32_arch_string as arch_string member.
20961 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20963 * spu-low.c (spu_arch_string): New.
20964 (spu_target_ops): Add spu_arch_string.
20966 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20968 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20969 * configure.ac: Do not check for terminal.h.
20970 * configure, config.in: Regenerated.
20972 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20974 * Makefile.in (OBS): Add $(XML_BUILTIN).
20975 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20977 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20978 (arm-with-iwmmxt.c): New.
20979 * config.in, configure: Regenerate.
20980 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20981 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20982 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20983 (arm*-*-linux*): Add iWMMXt and regset support.
20984 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20985 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20986 (arm_store_wmmxregset, target_regsets): New.
20987 * server.c (get_features_xml): Take annex argument. Check builtin
20989 (handle_query): Handle multiple annexes.
20991 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20993 * remote-utils.c [USE_WIN32API] (read, write): Define.
20994 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20997 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20999 * linux-i386-low.c (the_low_target): Set arch_string.
21000 * linux-x86-64-low.c (the_low_target): Likewise.
21001 * linux-low.c (linux_arch_string): New.
21002 (linux_target_ops): Add it.
21003 * linux-low.h (struct linux_target_ops): Add arch_string.
21004 * server.c (write_qxfer_response): Use const void * for DATA.
21005 (get_features_xml): New.
21006 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21007 * target.h (struct target_ops): Add arch_string method.
21009 2007-01-03 Denis Pilat <denis.pilat@st.com>
21010 Daniel Jacobowitz <dan@codesourcery.com>
21012 * linux-low.c (linux_kill): Handle being called with no threads.
21013 * win32-i386-low.c (win32_kill): Likewise.
21014 (get_child_debug_event): Clear current_process_handle.
21016 2006-12-30 Denis PILAT <denis.pilat@st.com>
21017 Daniel Jacobowitz <dan@codesourcery.com>
21019 * remote-utils.c (remote_open): Check the type of specified
21020 serial port devices before opening them.
21021 * server.c (main): Kill the inferior if an error occurs during
21022 the first remote_open.
21024 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21026 * README: Update supported targets.
21028 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21030 * Makefile.in (clean): Remove reg-mips64.c.
21031 (reg-mips64.c, reg-mips64.o): New rules.
21032 * configure.srv: Handle mips64. Include regset support for mips.
21033 * linux-mips-low.c (union mips_register): New.
21034 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21035 (mips_breakpoint, mips_breakpoint_at): Use int.
21036 (mips_collect_register, mips_supply_register)
21037 (mips_collect_register_32bit, mips_supply_register_32bit)
21038 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21039 (mips_store_fpregset, target_regsets): New.
21040 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21042 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21044 * configure.srv: Add target "spu*-*-*".
21045 * Makefile.in (clean): Remove reg-spu.c.
21046 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21047 * spu-low.c: New file.
21049 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21051 * configure.ac: Correct td_thr_tls_get_addr test.
21052 * configure: Regenerated.
21054 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21056 * linux-low.c (linux_wait_for_event): Reformat. Use the
21057 pass_signals array.
21058 * remote-utils.c (decode_address_to_semicolon): New.
21059 * server.c (pass_signals, handle_general_set): New.
21060 (handle_query): Mention QPassSignals for qSupported.
21061 (main): Call handle_general_set.
21062 * server.h (pass_signals, decode_address_to_semicolon): New.
21064 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21066 * server.c (handle_query): Correct error handling for read_auxv.
21068 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21070 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21071 and srv_linux_thread_db to yes.
21072 * linux-s390-low.c (s390_fill_gregset): New function.
21073 (target_regsets): Define data structure.
21075 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21077 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21078 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21079 * config.in, configure: Regenerated.
21080 * inferiors.c (gdb_id_to_thread): New function.
21081 (gdb_id_to_thread_id): Use it.
21082 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21083 * linux-low.h (struct process_info): Add th member.
21084 (thread_db_get_tls_address): New prototype.
21085 * remote-utils.c (decode_address): Make non-static.
21086 * server.c (handle_query): Handle qGetTLSAddr.
21087 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21088 * target.h (struct target_ops): Add get_tls_address.
21089 * thread-db.c (maybe_attach_thread): Save the thread handle.
21090 (thread_db_get_tls_address): New.
21092 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21094 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21095 (linux_resume_one_process): Take a siginfo_t *. Update all
21096 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21097 (struct pending_signals): Add a siginfo_t.
21098 (linux_wait_for_process): Always set last_status.
21099 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21100 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21101 * linux-low.h (struct process_info): Add last_status.
21103 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21105 * remote-utils.c (try_rle): New function.
21106 (putpkt_binary): Use it.
21108 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21110 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21111 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21112 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21113 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21114 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21117 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21119 * server.c (terminal_fd): New variable.
21120 (old_foreground_pgrp): Likewise.
21121 (restore_old_foreground_pgrp): New function.
21122 (start_inferior): Record the terminal file descriptor in terminal_fd
21123 and its original foreground group in old_foreground_pgrp. Register
21124 restore_old_foreground_pgrp with atexit().
21126 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21128 * server.c (handle_query): Correct qPart to qXfer.
21130 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21132 * configure.ac: Check for more headers which are missing on
21133 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21134 * configure.srv: Add Cygwin and mingw32.
21135 * remote-utils.c: Don't include headers unconditionally which
21136 are missing on mingw32. Include <winsock.h> for mingw32.
21137 (remote_open): Adjust for mingw32 support. Flush
21138 standard error after writing to it.
21139 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21140 (unblock_async_io, enable_async_io, disable_async_io)
21141 (readchar, getpkt): Update for Winsock support.
21142 (prepare_resume_reply): Expect a protocol signal number.
21143 * server.c: Disable <sys/wait.h> on mingw32.
21144 (start_inferior): Adjust for mingw32 support. Flush
21145 standard error after writing to it.
21146 (attach_inferior): Likewise. Use protocol signal
21148 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21150 * win32-i386-low.c: New file.
21151 * Makefile.in (XM_CLIBS): Set.
21152 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21153 (win32-i386-low.o): New dependency rule.
21154 * linux-low.c (linux_wait): Use target signal numbers.
21155 * target.h (struct target_ops): Doc fix.
21156 * server.h (target_signal_to_name): New prototype.
21157 * gdbreplay.c: Don't include headers unconditionally which
21158 are missing on mingw32. Include <winsock.h> for mingw32.
21159 (remote_close, remote_open): Adjust for Winsock support.
21160 * configure, config.in: Regenerated.
21162 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21164 * server.c (decode_xfer_read, write_qxfer_response): New.
21165 (handle_query): Take a packet length argument. Handle
21166 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21167 the qSupported response.
21168 (main): Update call to handle_query.
21170 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21172 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21173 (putpkt_binary): Renamed from putpkt and adjusted for binary
21175 (putpkt): New wrapper for putpkt_binary.
21176 (readchar): Don't mask off the high bit.
21177 (decode_X_packet): New function.
21178 * server.c (main): Call putpkt_binary if a handler sets the packet
21179 length. Save the length of the incoming packet. Handle 'X'.
21180 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21182 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21184 * server.c (handle_query): Handle qSupported.
21186 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21188 * remote-utils.c (all_symbols_looked_up): New variable.
21189 (look_up_one_symbol): Check it.
21190 * server.h (look_up_one_symbol): New declaration.
21191 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21193 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21195 * Makefile.in (linux-arm-low.o): Update dependencies.
21196 * linux-arm-low.c: Include "gdb_proc_service.h".
21197 (PTRACE_GET_THREAD_AREA): Define.
21198 (ps_get_thread_area): New function.
21200 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21202 * configure.srv (m68k*-*-uclinux*): New target.
21203 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21204 (linux_resume_one_process): Remove extraneous cast.
21205 (linux_read_offsets): New.
21206 (linux_target_op): Add linux_read_offsets on mmuless systems.
21207 * server.c (handle_query): Add qOffsets logic.
21208 * target.h (struct target_ops): Add read_offsets.
21210 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21212 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21213 (PTRACE_GET_THREAD_AREA): Define.
21214 (ps_get_thread_area): New function.
21215 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21216 (linux-x86-64-low.o): Update.
21218 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21220 * configure.ac: Remove checks for prfpregset_t.
21221 * gdb_proc_service.h: New file.
21222 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21223 new "gdb_proc_service.h".
21224 * proc-service.c: Likewise.
21225 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21226 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21227 * Makefile.in (gdb_proc_service_h): Updated.
21228 * configure, config.in: Regenerated.
21230 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21232 * remote-utils.c (prepare_resume_reply): Move declaration
21233 of gdb_id_from_wait to the top of the block.
21235 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21237 * linux-low.c (regsets_store_inferior_registers): Read the regset
21238 from the target before filling it.
21240 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21242 * server.c (attach_inferior): Return SIGTRAP for a successful
21245 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21247 * Makefile.in (OBS): Add version.o.
21248 (STAGESTUFF): Delete.
21249 (version.o): Add dependencies.
21250 (version.c): Replace rule.
21251 (clean): Remove version.c.
21252 * server.c (gdbserver_version): New.
21253 (gdbserver_usage): Use printf.
21254 (main): Handle --version and --help.
21255 * server.h (version, host_name): Add declarations.
21257 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21269 * linux-x86-64-low.c:
21271 * linux-s390-low.c:
21272 * linux-ppc64-low.c:
21274 * linux-mips-low.c:
21275 * linux-m68k-low.c:
21276 * linux-m32r-low.c:
21279 * linux-ia64-low.c:
21280 * linux-i386-low.c:
21281 * linux-crisv32-low.c:
21293 * gdbserver.1: Add (C) after Copyright. Update the FSF
21296 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21298 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21299 (arm_breakpoint_at): Recognize both breakpoints.
21300 (the_low_target): Use the correct breakpoint instruction.
21302 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21304 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21305 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21306 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21307 (the_low_target): Update.
21309 2005-10-25 Andreas Schwab <schwab@suse.de>
21311 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21313 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21314 (ia64_num_regs): Reduce to 462.
21316 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21318 * acinclude.m4: Correct quoting.
21319 * aclocal.m4: Regenerated.
21321 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21322 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21323 (thread_db_init): Call thread_db_err_str.
21324 * configure.ac: Check for TD_VERSION.
21325 * config.in, configure: Regenerated.
21327 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21329 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21331 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21333 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21334 is not available. Define HAVE_PTRACE_GETREGS if it is.
21335 * config.in, configure: Regenerated.
21336 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21337 * linux-i386-low.c, linux-m68k-low.c: Update to use
21338 HAVE_PTRACE_GETREGS.
21339 * linux-low.c (regsets_fetch_inferior_registers)
21340 (regsets_store_inferior_registers): Only return 0 if we processed
21342 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21343 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21345 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21347 * inferiors.c (struct thread_info): Add gdb_id.
21348 (add_thread): Add gdb_id argument.
21349 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21350 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21351 calls to add_thread.
21352 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21353 * server.c (handle_query): Use thread_to_gdb_id.
21354 (handle_v_cont, main): Use gdb_id_to_thread_id.
21355 * server.h (add_thread): Update prototype.
21356 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21359 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21361 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21362 left-padded registers.
21363 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21364 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21366 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21368 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21369 * configure: Regenerate.
21370 * config.in: Regenerate.
21371 * server.h (NEED_DECLARATION_STRERROR):
21372 Replace with !HAVE_DECL_STRERROR.
21374 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21376 * linux-low.c (linux_wait, linux_send_signal): Don't test
21377 an unsigned long variable for > 0 if it could be MAX_ULONG.
21378 * server.c (myresume): Likewise.
21379 * target.c (set_desired_inferior): Likewise.
21381 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21383 * configure.ac: Simplify and improve check for socklen_t.
21384 * configure, config.in: Regenerate.
21386 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21388 * acconfig.h: Remove.
21389 * configure.ac: Add a test for socklen_t. Use three-argument
21390 AC_DEFINE throughout.
21391 * config.in: Regenerated using autoheader 2.59.
21392 * configure: Regenerated.
21394 * gdbreplay.c (socklen_t): Provide a default.
21395 (remote_open): Use socklen_t.
21396 * remote-utils.c (socklen_t): Provide a default.
21397 (remote_open): Use socklen_t.
21398 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21401 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21403 * linux-low.c (linux_read_memory, linux_write_memory)
21404 (linux_read_auxv): Likewise.
21405 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21406 (check_mem_write): Likewise.
21407 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21409 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21410 (registers_from_string, register_data): Likewise.
21411 * server.c (handle_query, main): Likewise.
21412 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21413 (decode_M_packet): Likewise.
21414 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21415 * target.h (struct target_ops): Update read_memory, write_memory,
21417 (read_inferior_memory, write_inferior_memory): Update.
21418 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21419 to unsigned char *.
21420 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21421 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21422 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21423 linux-s390-low.c, linux-sh-low.c: Update for changes in
21424 read_inferior_memory and the_low_target->breakpoint.
21426 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21428 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21429 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21430 * configure.srv: Add powerpc64-*-linux*.
21431 * linux-ppc64-low.c: New file.
21433 2005-05-23 Orjan Friberg <orjanf@axis.com>
21435 * linux-cris-low.c: New file with support for CRIS.
21436 * linux-crisv32-low.c: Ditto for CRISv32.
21437 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21438 (clean): Add reg-cris.c and reg-crisv32.c.
21439 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21440 reg-crisv32.o, and reg-crisv32.c to make rules.
21441 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21442 recognized targets.
21444 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21446 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21447 of sizeof (PTRACE_XFER_TYPE).
21448 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21450 2005-05-12 Orjan Friberg <orjanf@axis.com>
21452 * target.h (struct target_ops): Add insert_watchpoint,
21453 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21454 pointers for hardware watchpoint support.
21455 * linux-low.h (struct linux_target_ops): Ditto.
21456 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21457 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21458 to linux_target_ops.
21459 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21461 * server.c (main): Recognize 'Z' and 'z' packets.
21463 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21465 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21466 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21467 (the_low_target): Add new members.
21469 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21471 * proc-service.c (ps_lgetregs): Search all_processes instead of
21474 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21476 * server.c (start_inferior): Change return type to int.
21477 (attach_inferior): Change sigptr to int *.
21478 (handle_v_cont, handle_v_requests): Change signal to int *.
21479 (main): Change signal to int.
21481 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21483 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21484 * configure.srv: Add m32r*-*-linux*.
21485 * linux-m32r-low.c: New file.
21487 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21489 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21491 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21493 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21494 Take unsigned long arguments for PIDs.
21495 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21496 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21497 (wait_for_sigstop, linux_resume_one_process)
21498 (regsets_fetch_inferior_registers, linux_send_signal)
21499 (linux_read_auxv): Likewise. Update the types of variables holding
21500 PIDs. Update format string specifiers.
21501 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21502 * remote-utils.c (prepare_resume_reply): Likewise.
21503 * server.c (cont_thread, general_thread, step_thread)
21504 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21506 (handle_query): Update format specifiers.
21507 (handle_v_cont, main): Use strtoul for thread IDs.
21508 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21509 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21510 (general_thread, step_thread, thread_from_wait)
21511 (old_thread_from_wait): Update.
21512 * target.h (struct thread_resume): Use unsigned long for THREAD.
21513 (struct target_ops): Use unsigned long for arguments to attach and
21516 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21518 * acinclude.m4: Include bfd/bfd.m4 directly.
21519 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21520 <agriffis@toolchain.org>.
21521 * aclocal.m4, configure: Regenerated.
21523 2005-01-07 Andrew Cagney <cagney@gnu.org>
21525 * configure.ac: Rename configure.in, require autoconf 2.59.
21526 * configure: Re-generate.
21528 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21530 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21531 LIBS when finished.
21532 * aclocal.m4: Regenerated.
21533 * configure: Regenerated.
21535 2004-11-21 Andreas Schwab <schwab@suse.de>
21537 * linux-m68k-low.c (m68k_num_gregs): Define.
21538 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21539 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21540 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21541 (m68k_breakpoint_at): New. Add to the_low_target.
21543 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21544 srv_linux_thread_db to yes.
21546 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21548 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21549 (ARCH_SET_FS): Likewise.
21550 (ARCH_GET_FS): Likewise.
21551 (ARCH_GET_GS): Likewise.
21553 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21555 * linux-i386-low.c (ps_get_thread_area): New.
21556 * linux-x86-64-low.c (ps_get_thread_area): New.
21557 * linux-low.c: Include <sys/syscall.h>.
21558 (linux_kill_one_process): Don't kill the first thread here.
21559 (linux_kill): Kill the first thread here.
21560 (kill_lwp): New function.
21561 (send_sigstop, linux_send_signal): Use it.
21562 * proc-service.c: Clean up #ifdefs.
21563 (fpregset_info): Delete.
21564 (ps_lgetregs): Update and enable implementation.
21565 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21567 * remote-utils.c (struct sym_cache, symbol_cache): New.
21568 (input_interrupt): Print a clearer message.
21569 (async_io_enabled): New variable.
21570 (enable_async_io, disable_async_io): Use it. Update comments.
21571 (look_up_one_symbol): Use the symbol cache.
21572 * thread-db.c (thread_db_look_up_symbols): New function.
21573 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21575 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21577 * configure.in: Test for -rdynamic.
21578 * configure: Regenerated.
21579 * Makefile (INTERNAL_LDFLAGS): New.
21580 (gdbserver, gdbreplay): Use it.
21582 2004-09-02 Andrew Cagney <cagney@gnu.org>
21584 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21586 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21588 * linux-low.c (linux_wait): Clear all_processes list also.
21590 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21592 * linux-low.c: Include <errno.h>. Remove extern declaration of
21595 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21597 * gdbreplay.c, server.h, utils.c: Update copyright years.
21599 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21601 * server.c (main): Print child status or termination signal from
21602 variable 'signal', not 'sig'.
21604 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21606 * linux-low.c (linux_read_memory): Change return type to
21607 int. Check for and return error from ptrace().
21608 * target.c (read_inferior_memory): Change return type to int. Pass
21609 back return status from the_target->read_memory().
21610 * target.h (struct target_ops): Adapt *read_memory() prototype.
21612 (read_inferior_memory): Adapt prototype.
21613 * server.c (main): Return an error packet if
21614 read_inferior_memory() returns an error.
21616 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21618 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21619 Unify with other clean targets.
21621 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21623 * server.c (handle_v_cont): Call set_desired_inferior.
21625 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21627 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21629 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21631 * linux-low.c (linux_wait): Unblock async I/O.
21632 (linux_resume): Block and enable async I/O.
21633 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21634 * server.h (block_async_io, unblock_async_io): Add prototypes.
21636 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21638 * remote-utils.c (remote_open): Print a status notice after
21639 opening a TCP port.
21640 * server.c (attach_inferior): Print a status notice after
21643 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21645 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21647 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21649 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21651 * server.c, target.h: Update copyright years.
21653 2004-02-25 Roland McGrath <roland@redhat.com>
21655 * target.h (struct target_ops): New member `read_auxv'.
21656 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21657 * linux-low.c (linux_read_auxv): New function.
21658 (linux_target_ops): Initialize `read_auxv' member to that.
21660 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21662 Committed by Jim Blandy <jimb@redhat.com>.
21664 * linux-s390-low.c (s390_num_regs): Update.
21665 (s390_regmap): Remove control registers. Use __s390x__ predefine
21666 instead of GPR_SIZE to distiguish s390 and s390x targets.
21668 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21670 * linux-low.c: Update copyright year.
21671 (check_removed_breakpoint): Clear pending_is_breakpoint.
21672 (linux_set_resume_request, linux_queue_one_thread)
21673 (resume_status_pending_p): New functions.
21674 (linux_continue_one_thread): Use process->resume.
21675 (linux_resume): Only resume threads if there are no pending events.
21676 * linux-low.h (struct process_info): Add resume request
21679 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21681 * regcache.c (new_register_cache): Clear the allocated register
21682 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21684 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21686 * linux-low.c (linux_resume): Take a struct thread_resume *
21688 (linux_wait): Update call.
21689 (resume_ptr): New static variable.
21690 (linux_continue_one_thread): Renamed from
21691 linux_continue_one_process. Use resume_ptr.
21692 (linux_resume): Use linux_continue_one_thread.
21693 * server.c (handle_v_cont, handle_v_requests): New functions.
21694 (myresume): New function.
21695 (main): Handle 'v' case.
21696 * target.h (struct thread_resume): New type.
21697 (struct target_ops): Change argument of "resume" to struct
21699 (myresume): Delete macro.
21701 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21703 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21704 (uninstall): Support DESTDIR.
21706 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21708 * configure.srv: Add xscale*linux copy of arm*linux entry.
21710 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21712 * linux-arm-low.c (arm_reinsert_addr): New function.
21713 (the_low_target): Add arm_reinsert_addr.
21715 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21717 * mem-break.c: Remove whitespace at end of file.
21719 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21721 * configure.in: Check whether we need to prototype strerror.
21722 * server.h: Optionally prototype strerror.
21723 * gdbreplay.c (perror_with_name): Use strerror.
21724 * linux-low.c (linux_attach_lwp): Use strerror.
21725 * utils.c (perror_with_name): Use strerror.
21726 * config.in, configure: Regenerated.
21728 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21730 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21731 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21733 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21735 * Makefile.in (SFILES): Update.
21736 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21737 low-sun3.c: Remove files.
21739 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21741 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21742 (linux_detach_one_process, linux_detach): New functions.
21743 (linux_target_ops): Add linux_detach.
21744 * server.c (main): Handle 'D' packet.
21745 * target.h (struct target_ops): Add "detach" member.
21746 (detach_inferior): Define.
21748 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21750 From Kelley Cook <kelleycook@wideopenwest.com>:
21751 * configure.srv: Accept i[34567]86 variants.
21753 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21755 * linux-low.c (linux_wait_for_event): Correct comment typos.
21756 (linux_resume_one_process): Call check_removed_breakpoint.
21757 (linux_send_signal): New function.
21758 (linux_target_ops): Add linux_send_signal.
21759 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21761 * target.h (struct target_ops): Add send_signal.
21763 2003-05-29 Jim Blandy <jimb@redhat.com>
21765 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21766 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21767 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21768 away part of the register's value.
21770 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21772 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21773 (linux_wait_for_event, linux_init_signals): Likewise.
21775 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21777 * configure.in: Check for stdlib.h.
21778 * configure: Regenerated.
21779 * config.in: Regenerated.
21781 2003-01-04 Andreas Schwab <schwab@suse.de>
21783 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21785 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21787 * Makefile.in: Remove obsolete code.
21789 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21791 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21792 defined(PT_FPR0_HI).
21794 2002-11-17 Stuart Hughes <seh@zee2.com>
21796 * linux-arm-low.c (arm_num_regs): Increase.
21797 (arm_regmap): Include status register.
21799 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21801 * linux-low.c (register_addr): Remove incorrect -1 check.
21803 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21805 * linux-low.c (linux_create_inferior): Call setpgid. Return
21807 (unstopped_p, linux_signal_pid): Remove.
21808 (linux_target_ops): Remove linux_signal_pid.
21809 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21810 global instead of target method.
21811 * target.h (struct target_ops): Remove signal_pid. Update comment
21812 for create_inferior.
21813 * server.c (signal_pid): New variable.
21814 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21815 gdbserver. Set the child to be the foreground process group.
21816 (attach_inferior): Set signal_pid.
21818 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21820 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21822 2002-08-20 Jim Blandy <jimb@redhat.com>
21824 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21827 2002-08-01 Andrew Cagney <cagney@redhat.com>
21829 * Makefile.in: Make chill references obsolete.
21831 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21833 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21834 * configure: Regenerate.
21835 * config.in: Regenerate.
21837 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21839 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21840 (perror_with_name, remote_close, remote_open, expect, play): Static.
21842 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21844 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21845 byte offsets instead of an array of indexes.
21846 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21848 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21850 * regcache.c: Add comment.
21852 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21854 * thread-db.c: New file.
21855 * proc-service.c: New file.
21856 * acinclude.m4: New file.
21857 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21858 proc-service.o, and thread-db.o.
21859 (linux-low.o): Add USE_THREAD_DB.
21860 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21861 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21862 * aclocal.m4: Regenerated.
21863 * config.in: Regenerated.
21864 * configure: Regenerated.
21865 * configure.in: Check for proc_service.h, sys/procfs.h,
21866 thread_db.h, and linux/elf.h headrs.
21867 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21868 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21869 Check for -lthread_db and thread support.
21870 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21871 PowerPC, and SuperH.
21872 * i387-fp.c: Constify arguments.
21873 * i387-fp.h: Likewise.
21874 * inferiors.c: (struct thread_info): Renamed from
21875 `struct inferior_info'. Remove PID member. Use generic inferior
21876 list header. All uses updated.
21877 (inferiors, signal_pid): Removed.
21878 (all_threads): New variable.
21879 (get_thread): Define.
21880 (add_inferior_to_list): New function.
21881 (for_each_inferior): New function.
21882 (change_inferior_id): New function.
21883 (add_inferior): Removed.
21884 (remove_inferior): New function.
21885 (add_thread): New function.
21886 (free_one_thread): New function.
21887 (remove_thread): New function.
21888 (clear_inferiors): Use for_each_inferior and free_one_thread.
21889 (find_inferior): New function.
21890 (find_inferior_id): New function.
21891 (inferior_target_data): Update argument type.
21892 (set_inferior_target_data): Likewise.
21893 (inferior_regcache_data): Likewise.
21894 (set_inferior_regcache_data): Likewise.
21895 * linux-low.c (linux_bp_reinsert): Remove.
21896 (all_processes, stopping_threads, using_thrads)
21897 (struct pending_signals, debug_threads, pid_of): New.
21898 (inferior_pid): Replace with macro.
21899 (struct inferior_linux_data): Remove.
21900 (get_stop_pc, add_process): New functions.
21901 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21902 Use add_process and add_thread.
21903 (linux_attach_lwp): New function, based on old linux_attach. Use
21904 add_process and add_thread. Set stop_expected for new threads.
21905 (linux_attach): New function.
21906 (linux_kill_one_process): New function.
21907 (linux_kill): Kill all LWPs.
21908 (linux_thread_alive): Use find_inferior_id.
21909 (check_removed_breakpoints, status_pending_p): New functions.
21910 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21911 Update. Use WNOHANG. Wait for cloned processes also. Update process
21912 struct for the found process.
21913 (linux_wait_for_event): New function.
21914 (linux_wait): Use it. Support LWPs.
21915 (send_sigstop, wait_for_sigstop, stop_all_processes)
21916 (linux_resume_one_process, linux_continue_one_process): New functions.
21917 (linux_resume): Support LWPs.
21918 (REGISTER_RAW_SIZE): Remove.
21919 (fetch_register): Use register_size instead. Call supply_register.
21920 (usr_store_inferior_registers): Likewise. Call collect_register.
21921 Fix recursive case.
21922 (regsets_fetch_inferior_registers): Improve error message.
21923 (regsets_store_inferior_registers): Add debugging.
21924 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21925 (unstopped_p, linux_signal_pid): New functions.
21926 (linux_target_ops): Add linux_signal_pid.
21927 (linux_init_signals): New function.
21928 (initialize_low): Call it. Initialize using_threads.
21929 * regcache.c (inferior_regcache_data): Add valid
21931 (get_regcache): Fetch registers lazily. Add fetch argument
21932 and update all callers.
21933 (regcache_invalidate_one, regcache_invalidate): New
21935 (new_register_cache): Renamed from create_register_cache.
21936 Return the new regcache.
21937 (free_register_cache): Change argument to a void *.
21938 (registers_to_string, registers_from_string): Call get_regcache
21939 with fetch flag set.
21940 (register_data): Make static. Pass fetch flag to get_regcache.
21941 (supply_register): Call get_regcache with fetch flag clear.
21942 (collect_register): Call get_regcache with fetch flag set.
21943 (collect_register_as_string): New function.
21944 * regcache.h: Update.
21945 * remote-utils.c (putpkt): Flush after debug output and use
21947 Handle input interrupts while waiting for an ACK.
21948 (input_interrupt): Use signal_pid method.
21949 (getpkt): Flush after debug output and use stderr.
21950 (outreg): Use collect_register_as_string.
21951 (new_thread_notify, dead_thread_notify): New functions.
21952 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21953 and general_thread.
21954 (look_up_one_symbol): Flush after debug output.
21955 * server.c (step_thread, server_waiting): New variables.
21956 (start_inferior): Don't use signal_pid. Update call to mywait.
21957 (attach_inferior): Update call to mywait.
21958 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21959 (main): Don't fetch/store registers explicitly. Use
21960 set_desired_inferior. Support proposed ``Hs'' packet. Update
21962 * server.h: Update.
21963 (struct inferior_list, struct_inferior_list_entry): New.
21964 * target.c (set_desired_inferior): New.
21965 (write_inferior_memory): Constify.
21966 (mywait): New function.
21967 * target.h: Update.
21968 (struct target_ops): New signal_pid method.
21969 (mywait): Removed macro, added prototype.
21971 * linux-low.h (regset_func): Removed.
21972 (regset_fill_func, regset_store_func): New.
21973 (enum regset_type): New.
21974 (struct regset_info): Add type field. Use new operation types.
21975 (struct linux_target_ops): stop_pc renamed to get_pc.
21976 Add decr_pc_after_break and breakpoint_at.
21977 (get_process, get_thread_proess, get_process_thread)
21978 (strut process_info, all_processes, linux_attach_lwp)
21979 (thread_db_init): New.
21981 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21982 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21983 (the_low_target): Add new members.
21984 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21985 (i386_store_fpxregset): Constify.
21986 (target_regsets): Add new kind identifier.
21987 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21988 (i386_set_pc): Add debugging.
21989 (i386_breakpoint_at): New function.
21990 (the_low_target): Add new members.
21991 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21992 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21993 (mips_breakpoint_at): New.
21994 (the_low_target): Add new members.
21995 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21996 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21997 (the_low_target): Add new members.
21998 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21999 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22000 (the_low_target): Add new members.
22001 * linux-x86-64-low.c (target_regsets): Add new kind
22004 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22006 From Martin Pool <mbp@samba.org>:
22007 * server.c (gdbserver_usage): New function.
22010 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22012 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22013 stop_at -> stop_pc.
22015 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22017 * Makefile.in: Remove obsolete code.
22019 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22021 * linux-low.c (regsets_fetch_inferior_registers),
22022 (regsets_store_inferior_registers): Removed cast to int from
22024 * regcache.h: Added declaration of struct inferior_info.
22026 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22028 * inferiors.c (struct inferior_info): Add regcache_data.
22029 (add_inferior): Call create_register_cache.
22030 (clear_inferiors): Call free_register_cache.
22031 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22032 * regcache.c (struct inferior_regcache_data): New.
22033 (registers): Remove.
22034 (get_regcache): New function.
22035 (create_register_cache, free_register_cache): New functions.
22036 (set_register_cache): Don't initialize the register cache here.
22037 (registers_to_string, registers_from_string, register_data): Call
22039 * regcache.h: Add prototypes.
22040 * server.h: Likewise.
22042 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22044 * mem-break.c: New file.
22045 * mem-break.h: New file.
22046 * Makefile.in: Add mem-break.o rule; update server.h
22048 * inferiors.c (struct inferior_info): Add target_data
22050 (clear_inferiors): Free target_data member if set.
22051 (inferior_target_data, set_inferior_target_data): New functions.
22052 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22053 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22054 * linux-low.c (linux_bp_reinsert): New variable.
22055 (struct inferior_linux_data): New.
22056 (linux_create_inferior): Use set_inferior_target_data.
22057 (linux_attach): Likewise. Call add_inferior.
22058 (linux_wait_for_one_inferior): New function.
22059 (linux_wait): Call it.
22060 (linux_write_memory): Add const.
22061 (initialize_low): Call set_breakpoint_data.
22062 * linux-low.h (struct linux_target_ops): Add breakpoint
22064 * server.c (attach_inferior): Remove extra add_inferior
22066 * server.h: Include mem-break.h. Update inferior.c
22068 * target.c (read_inferior_memory)
22069 (write_inferior_memory): New functions.
22070 * target.h (read_inferior_memory)
22071 (write_inferior_memory): Change macros to prototypes.
22072 (struct target_ops): Update comments. Add const to write_memory
22075 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22077 * linux-low.c (usr_store_inferior_registers): Support
22078 registers which are allowed to fail to store.
22079 * linux-low.h (linux_target_ops): Likewise.
22080 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22081 (ppc_cannot_store_register): FPSCR may not be storable.
22083 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22085 * server.h: Include <string.h> if HAVE_STRING_H.
22086 * ChangeLog: Correct paths in last ChangeLog entry.
22088 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22090 * linux-low.h: Remove obsolete prototypes.
22091 (struct linux_target_ops): New.
22092 (extern the_low_target): New.
22093 * linux-low.c (num_regs, regmap): Remove declarations.
22094 (register_addr): Use the_low_target explicitly.
22095 (fetch_register): Likewise.
22096 (usr_fetch_inferior_registers): Likewise.
22097 (usr_store_inferior_registers): Likewise.
22098 * linux-arm-low.c (num_regs): Remove.
22099 (arm_num_regs): Define.
22100 (arm_regmap): Renamed from regmap, made static.
22101 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22103 (arm_cannot_store_register): Renamed from cannot_store_register,
22105 (the_low_target): New.
22106 * linux-i386-low.c (num_regs): Remove.
22107 (i386_num_regs): Define.
22108 (i386_regmap): Renamed from regmap, made static.
22109 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22111 (i386_cannot_store_register): Renamed from cannot_store_register,
22113 (the_low_target): New.
22114 * linux-ia64-low.c (num_regs): Remove.
22115 (ia64_num_regs): Define.
22116 (ia64_regmap): Renamed from regmap, made static.
22117 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22119 (ia64_cannot_store_register): Renamed from cannot_store_register,
22121 (the_low_target): New.
22122 * linux-m68k-low.c (num_regs): Remove.
22123 (m68k_num_regs): Define.
22124 (m68k_regmap): Renamed from regmap, made static.
22125 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22127 (m68k_cannot_store_register): Renamed from cannot_store_register,
22129 (the_low_target): New.
22130 * linux-mips-low.c (num_regs): Remove.
22131 (mips_num_regs): Define.
22132 (mips_regmap): Renamed from regmap, made static.
22133 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22135 (mips_cannot_store_register): Renamed from cannot_store_register,
22137 (the_low_target): New.
22138 * linux-ppc-low.c (num_regs): Remove.
22139 (ppc_num_regs): Define.
22140 (ppc_regmap): Renamed from regmap, made static.
22141 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22143 (ppc_cannot_store_register): Renamed from cannot_store_register,
22145 (the_low_target): New.
22146 * linux-s390-low.c (num_regs): Remove.
22147 (s390_num_regs): Define.
22148 (s390_regmap): Renamed from regmap, made static.
22149 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22151 (s390_cannot_store_register): Renamed from cannot_store_register,
22153 (the_low_target): New.
22154 * linux-sh-low.c (num_regs): Remove.
22155 (sh_num_regs): Define.
22156 (sh_regmap): Renamed from regmap, made static.
22157 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22159 (sh_cannot_store_register): Renamed from cannot_store_register,
22161 (the_low_target): New.
22162 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22163 (the_low_target): New.
22165 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22167 * Makefile.in: Add stamp-h target.
22168 * configure.in: Create stamp-h.
22169 * configure: Regenerated.
22171 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22173 * inferiors.c: New file.
22174 * target.c: New file.
22175 * target.h: New file.
22176 * Makefile.in: Add target.o and inferiors.o. Update
22178 * linux-low.c (inferior_pid): New static variable,
22179 moved from server.c.
22180 (linux_create_inferior): Renamed from create_inferior.
22181 Call add_inferior. Return 0 on success instead of a PID.
22182 (linux_attach): Renamed from myattach.
22183 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22184 (linux_thread_alive): Renamed from mythread_alive.
22185 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22187 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22188 (regsets_store_inferior_registers): Correct error message.
22189 Add missing ``return 0''.
22190 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22191 (linux_store_registers): Renamed from store_inferior_registers.
22192 (linux_read_memory): Renamed from read_inferior_memory.
22193 (linux_write_memory): Renamed from write_inferior_memory.
22194 (linux_target_ops): New structure.
22195 (initialize_low): Call set_target_ops ().
22196 * remote-utils.c (unhexify): New function.
22197 (hexify): New function.
22198 (input_interrupt): Send signals to ``signal_pid''.
22199 * server.c (inferior_pid): Remove.
22200 (start_inferior): Update create_inferior call.
22201 (attach_inferior): Call add_inferior.
22202 (handle_query): New function.
22203 (main): Call handle_query for `q' packets.
22204 * server.h: Include "target.h". Remove obsolete prototypes.
22205 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22207 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22209 * Makefile.in: Add WARN_CFLAGS. Update configury
22211 * configure.in: Check for <string.h>
22212 * configure: Regenerate.
22213 * config.in: Regenerate.
22214 * gdbreplay.c: Include needed system headers.
22215 (remote_open): Remove strchr prototype.
22216 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22217 * regcache.c (supply_register): Change buf argument to const void *.
22218 (supply_register_by_name): Likewise.
22219 (collect_register): Change buf argument to void *.
22220 (collect_register_by_name): Likewise.
22221 * regcache.h: Add missing prototypes.
22222 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22223 * server.c (handle_query): New function.
22224 (attached): New static variable, moved out of main.
22225 (main): Quiet longjmp clobber warnings.
22226 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22227 * utils.c (error): Remove NORETURN.