1 2020-06-29 Tom de Vries <tdevries@suse.de>
3 * ax.h: Include gdbsupport/debug_agent.h.
5 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7 * tdesc.cc (struct tdesc_compatible_info): New struct.
8 (tdesc_compatible_info_list): New function.
9 (tdesc_compatible_info_arch_name): New function.
11 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13 Use std::list to stop pending signal instead of manually-created
15 * linux-low.h: Include <list>.
16 (struct pending_signal): Move here from linux-low.cc.
17 (struct lwp_info) <pending_signals>
18 <pending_signals_to_report>: Update the type.
19 * linux-low.cc (struct pending_signals): Remove.
20 (linux_process_target::delete_lwp)
21 (linux_process_target::add_lwp)
22 (enqueue_one_deferred_signal)
23 (dequeue_one_deferred_signal)
24 (enqueue_pending_signal)
25 (linux_process_target::resume_one_lwp_throw)
26 (linux_process_target::thread_needs_step_over)
27 (linux_process_target::resume_one_thread)
28 (linux_process_target::proceed_one_lwp): Update the use of pending
31 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
33 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
36 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
38 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
39 * configure.srv: Remove mingw32ce cases.
40 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
41 * win32-low.h (to_back_slashes): Remove.
42 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
44 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
46 * Makefile.in (SFILES): linux-tile-low.cc.
47 * configure.srv: Remove tilegx case.
48 * linux-tile-low.cc: Remove.
50 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
52 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
53 * configure.srv: Remove m32r case.
54 * linux-m32r-low.cc: Remove.
56 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
58 * Makefile.in (SFILES): Remove linux-cris-low.c.
59 * configure.srv: Remove cris cases.
60 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
62 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
64 * Makefile.in (SFILES): Remove linux-bfin-low.c.
65 * configure.srv: Remove bfin case.
66 * linux-bfin-low.cc: Remove.
67 * linux-low.cc: Remove BFIN-conditional code.
69 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
71 * configure: Re-generate.
72 * configure.ac: Remove srv_qnx test.
73 * configure.srv: Remove nto case.
74 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
75 * remote-utils.c: Remove __QNX__-guarded code.
77 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
79 * configure: Re-generate.
80 * configure.ac: Remove srv_lynxos test.
81 * configure.srv: Remove lynxos cases.
82 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
85 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
87 * README: Fix a few outdated or incoherent things.
89 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
91 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
92 (win32_clear_inferiors): Use open_process_used.
93 (get_child_debug_event): Likewise.
95 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
98 * linux-low.cc (linux_process_target::create_inferior),
99 lynx-low.cc (lynx_process_target::create_inferior),
100 win32-low.cc (win32_process_target::create_inferior): Use
101 construct_inferior_arguments instead of stringify_argv
102 to get string representation which properly escapes
104 * server.cc (handle_v_run): Just pass empty program arg
105 as such, since any further processing is now handled via
106 construct_inferior_arguments.
108 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
110 * nto-low.cc (nto_process_target::create_inferior): Pass
111 argv to spawnp function as char **.
113 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
115 * server.cc (captured_main), (handle_v_run): No longer
116 insert extra NULL element to args vector.
118 2020-05-23 Pedro Alves <palves@redhat.com>
120 * gdb-safe-ctype.h: New.
122 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
124 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
125 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
126 (ia64_target::low_breakpoint_at): Ditto.
128 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
130 * win32-i386-low.cc (i386_supports_z_point_type): Handle
131 Z_PACKET_HW_BP z_type.
132 (i386_insert_point): Handle raw_bkpt_type type.
133 (i386_remove_point): Likewise.
135 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
137 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
139 * win32-arm-low.cc (arm_num_regs): New function.
140 (struct win32_target_ops): Use arm_num_regs.
141 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
143 (i386_get_thread_context): Likewise.
144 (i386_prepare_to_resume): Likewise.
145 (i386_thread_added): Likewise.
146 (i386_single_step): Likewise.
147 (i386_fetch_inferior_register): Likewise.
148 (i386_store_inferior_register): Likewise.
149 (i386_arch_setup): Likewise.
150 (i386_win32_num_regs): New function.
151 (struct win32_target_ops): Use i386_win32_num_regs.
152 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
154 (win32_require_context): Likewise.
155 (child_add_thread): Likewise.
156 (do_initial_child_stuff): Likewise.
157 (continue_one_thread): Likewise.
158 (win32_process_target::resume): Likewise.
159 (load_psapi): Likewise.
160 (win32_add_all_dlls): Likewise.
161 (maybe_adjust_pc): Likewise.
162 (win32_process_target::qxfer_siginfo): Likewise.
163 (initialize_low): Likewise.
164 * win32-low.h (struct win32_target_ops): Change num_regs to
167 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
169 * configure.ac: Remove check for fs_base/gs_base in
171 * configure: Re-generate.
172 * config.in: Re-generate.
173 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
174 x86_store_gregset): Adjust.
176 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
178 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
181 2020-04-16 Tom Tromey <tromey@adacore.com>
183 * win32-low.cc (windows_nat::handle_access_violation): New
186 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
188 * win32-low.cc (get_child_debug_event): Fix format string warning.
190 2020-04-13 Tom Tromey <tom@tromey.com>
192 * server.h (gdb_fildes_t): Remove typedef.
193 * remote-utils.c (remote_desc, list_desc): Now int.
194 (INVALID_DESCRIPTOR): Remove.
195 (gdb_connected, remote_close)
196 (check_remote_input_interrupt_request): Update.
197 * utils.h (pfildes): Don't declare.
198 * utils.c (pfildes): Remove.
200 2020-04-13 Tom Tromey <tom@tromey.com>
202 * server.h (handle_serial_event, handle_target_event): Update.
203 * server.c: Don't call initialize_event_loop.
204 (keep_processing_events): New global.
205 (handle_serial_event): Return void. Set keep_processing_events.
206 (handle_target_event): Return void.
207 (start_event_loop): Move from event-loop.c. Rewrite.
208 * remote-utils.c (handle_accept_event): Return void.
209 (reset_readchar): Use delete_timer.
210 (process_remaining): Return void.
211 (reschedule): Use create_timer.
212 * event-loop.h: Remove.
213 * event-loop.cc: Remove.
214 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
216 2020-04-13 Tom Tromey <tom@tromey.com>
218 * server.c (invoke_async_signal_handlers)
219 (check_async_event_handlers, flush_streams, gdb_select): New
222 2020-04-13 Tom Tromey <tom@tromey.com>
224 * configure: Rebuild.
225 * config.in: Rebuild.
227 2020-04-08 Tom Tromey <tromey@adacore.com>
230 * win32-low.c (child_continue): Call matching_pending_stop.
231 (get_child_debug_event): Call fetch_pending_stop. Push pending
234 2020-04-08 Tom Tromey <tromey@adacore.com>
236 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
237 (win32_process_target::supports_stopped_by_sw_breakpoint):
239 * win32-low.c (win32_supports_z_point_type): Always handle
241 (win32_insert_point): Call insert_memory_breakpoint when needed.
242 (win32_remove_point): Call remove_memory_breakpoint when needed.
243 (win32_process_target::stopped_by_sw_breakpoint)
244 (win32_process_target::supports_stopped_by_sw_breakpoint): New
246 (win32_target_ops): Update.
247 (maybe_adjust_pc): New function.
248 (win32_wait): Call maybe_adjust_pc.
250 2020-04-08 Tom Tromey <tromey@adacore.com>
252 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
254 * win32-i386-low.c (the_low_target): Update.
255 * win32-arm-low.c (the_low_target): Update.
257 2020-04-08 Tom Tromey <tromey@adacore.com>
259 * win32-low.h (win32_process_target::read_pc)
260 (win32_process_target::write_pc): Declare.
261 * win32-low.c (win32_process_target::read_pc)
262 (win32_process_target::write_pc): New methods.
263 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
265 (the_low_target): Update.
266 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
268 (the_low_target): Update.
270 2020-04-08 Tom Tromey <tromey@adacore.com>
272 * win32-low.c (win32_kill, get_child_debug_event): Use
273 wait_for_debug_event.
275 2020-04-08 Tom Tromey <tromey@adacore.com>
277 * win32-low.c (child_continue): Call continue_last_debug_event.
279 2020-04-08 Tom Tromey <tromey@adacore.com>
281 * win32-low.c (handle_exception): Remove.
282 (windows_nat::handle_ms_vc_exception): New function.
283 (get_child_debug_event): Add "continue_status" parameter.
285 (win32_wait): Update.
287 2020-04-08 Tom Tromey <tromey@adacore.com>
289 * win32-low.c (windows_nat::handle_load_dll): Rename from
290 handle_load_dll. No longer static.
291 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
294 2020-04-08 Tom Tromey <tromey@adacore.com>
296 * win32-low.c (handle_output_debug_string): Add parameter. Change
298 (win32_kill, get_child_debug_event): Update.
300 2020-04-08 Tom Tromey <tromey@adacore.com>
302 * win32-low.c (current_process_handle, current_process_id)
303 (main_thread_id, last_sig, current_event, siginfo_er): Move to
306 2020-04-08 Tom Tromey <tromey@adacore.com>
308 * win32-low.c (get_image_name): Remove.
309 (handle_load_dll): Update.
311 2020-04-08 Tom Tromey <tromey@adacore.com>
313 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
314 No longer static. Change parameters.
315 (child_add_thread, child_fetch_inferior_registers)
316 (child_store_inferior_registers, win32_resume)
317 (win32_get_tib_address): Update.
319 2020-04-08 Tom Tromey <tromey@adacore.com>
321 * win32-low.h (struct win32_target_ops): Use qualified names where
323 * win32-i386-low.c: Add "using namespace".
324 * win32-low.c: Add "using namespace".
325 * win32-arm-low.c: Add "using namespace".
327 2020-04-08 Tom Tromey <tromey@adacore.com>
329 * win32-low.c (delete_thread_info): Don't call CloseHandle.
331 2020-04-08 Tom Tromey <tromey@adacore.com>
333 * win32-low.c (win32_require_context, suspend_one_thread): Use
334 windows_thread_info::suspend.
335 (continue_one_thread): Use windows_thread_info::resume.
336 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
338 2020-04-08 Tom Tromey <tromey@adacore.com>
340 * win32-i386-low.c (update_debug_registers)
341 (i386_prepare_to_resume, i386_thread_added): Update.
343 2020-04-08 Tom Tromey <tromey@adacore.com>
345 * win32-low.c (child_add_thread): Use new.
346 (delete_thread_info): Use delete.
348 2020-04-08 Tom Tromey <tromey@adacore.com>
350 * win32-low.h (struct windows_thread_info): Remove.
352 2020-04-08 Tom Tromey <tromey@adacore.com>
354 * win32-low.h (struct windows_thread_info): Rename from
355 win32_thread_info. Remove typedef.
356 (struct win32_target_ops, win32_require_context): Update.
357 * win32-low.c (win32_get_thread_context)
358 (win32_set_thread_context, win32_prepare_to_resume)
359 (win32_require_context, thread_rec, child_add_thread)
360 (delete_thread_info, continue_one_thread)
361 (child_fetch_inferior_registers, child_store_inferior_registers)
362 (win32_resume, suspend_one_thread, win32_get_tib_address):
364 * win32-i386-low.c (update_debug_registers)
365 (win32_get_current_dr, i386_get_thread_context)
366 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
367 (i386_fetch_inferior_register, i386_store_inferior_register):
369 * win32-arm-low.c (arm_get_thread_context)
370 (arm_fetch_inferior_register, arm_store_inferior_register):
373 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375 * linux-low.h (struct linux_target_ops): Remove.
376 (the_low_target): Remove.
377 * linux-x86-low.cc (the_low_target): Remove.
378 * linux-aarch64-low.cc (the_low_target): Ditto.
379 * linux-arm-low.cc (the_low_target): Ditto.
380 * linux-bfin-low.cc (the_low_target): Ditto.
381 * linux-cris-low.cc (the_low_target): Ditto.
382 * linux-crisv32-low.cc (the_low_target): Ditto.
383 * linux-ia64-low.cc (the_low_target): Ditto.
384 * linux-m32r-low.cc (the_low_target): Ditto.
385 * linux-m68k-low.cc (the_low_target): Ditto.
386 * linux-mips-low.cc (the_low_target): Ditto.
387 * linux-nios2-low.cc (the_low_target): Ditto.
388 * linux-ppc-low.cc (the_low_target): Ditto.
389 * linux-riscv-low.cc (the_low_target): Ditto.
390 * linux-s390-low.cc (the_low_target): Ditto.
391 * linux-sh-low.cc (the_low_target): Ditto.
392 * linux-sparc-low.cc (the_low_target): Ditto.
393 * linux-tic6x-low.cc (the_low_target): Ditto.
394 * linux-tile-low.cc (the_low_target): Ditto.
395 * linux-xtensa-low.cc (the_low_target): Ditto.
397 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
400 linux target define the op by overriding the declaration in
401 process_stratum_target.
403 * linux-low.h (struct linux_target_ops): Remove the op.
404 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
405 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
406 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
407 (x86_get_ipa_tdesc_idx): Turn into...
408 (x86_target::get_ipa_tdesc_idx): ...this.
409 (the_low_target): Remove the op field.
410 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
411 (ppc_get_ipa_tdesc_idx): Turn into...
412 (ppc_target::get_ipa_tdesc_idx): ...this.
413 (the_low_target): Remove the op field.
414 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
415 (s390_get_ipa_tdesc_idx): Turn into...
416 (s390_target::get_ipa_tdesc_idx): ...this.
417 (the_low_target): Remove the op field.
419 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421 Turn the 'get_syscall_trapinfo' linux target op into a method
422 of process_stratum_target.
424 * linux-low.h (struct linux_target_ops): Remove the op.
425 (class linux_process_target) <get_syscall_trapinfo>
426 <gdb_catch_this_syscall>
427 <low_supports_catch_syscall>
428 <low_get_syscall_trapinfo>: Declare.
429 * linux-low.cc (get_syscall_trapinfo): Turn into...
430 (linux_process_target::get_syscall_trapinfo): ...this.
431 (linux_process_target::low_get_syscall_trapinfo): Define.
432 (gdb_catch_this_syscall_p): Turn into...
433 (linux_process_target::gdb_catch_this_syscall): ...this.
434 (linux_process_target::low_supports_catch_syscall): Define.
436 Update the callers below.
438 (linux_process_target::wait_1)
439 (linux_process_target::supports_catch_syscall)
441 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
442 <low_get_syscall_trapinfo>: Declare.
443 (x86_target::low_supports_catch_syscall): Define.
444 (x86_get_syscall_trapinfo): Turn into...
445 (x86_target::low_get_syscall_trapinfo): ...this.
446 (the_low_target): Remove the op field.
447 * linux-aarch64-low.cc (class aarch64_target)
448 <low_supports_catch_syscall>
449 <low_get_syscall_trapinfo>: Declare.
450 (aarch64_target::low_supports_catch_syscall): Define.
451 (aarch64_get_syscall_trapinfo): Turn into...
452 (aarch64_target::low_get_syscall_trapinfo): ...this.
453 (the_low_target): Remove the op field.
454 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
455 <low_get_syscall_trapinfo>: Declare.
456 (arm_target::low_supports_catch_syscall): Define.
457 (arm_get_syscall_trapinfo): Turn into...
458 (arm_target::low_get_syscall_trapinfo): ...this.
459 (the_low_target): Remove the op field.
460 * linux-ppc-low.cc (the_low_target): Remove the op field.
461 * linux-s390-low.cc (the_low_target): Remove the op field.
463 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465 Remove the 'supports_hardware_single_step' linux target op and
466 override the process_stratum_target's op definition in
467 linux_process_target to return true.
469 * linux-low.h (struct linux_target_ops): Remove the op.
470 (class linux_process_target) <finish_step_over>
471 <maybe_hw_step>: Declare.
472 * linux-low.cc (can_hardware_single_step): Remove.
473 (maybe_hw_step): Turn into...
474 (linux_process_target::maybe_hw_step): ...this.
475 (finish_step_over): Turn into...
476 (linux_process_target::finish_step_over): ...this.
477 (linux_process_target::supports_hardware_single_step): Update
480 Update the callers below.
482 (linux_process_target::single_step)
483 (linux_process_target::resume_one_lwp_throw)
485 * linux-arm-low.cc (class arm_target)
486 <supports_hardware_single_step>: Declare.
487 (arm_supports_hardware_single_step): Turn into...
488 (arm_target::supports_hardware_single_step): ...this.
489 (the_low_target): Remove the op field.
490 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
491 (the_low_target): Remove the op field.
492 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
494 (the_low_target): Remove the op field.
495 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
496 (the_low_target): Remove the op field.
497 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
498 (the_low_target): Remove the op field.
499 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
500 (the_low_target): Remove the op field.
501 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
502 (the_low_target): Remove the op field.
503 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
504 (the_low_target): Remove the op field.
505 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
506 (the_low_target): Remove the op field.
507 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
508 (the_low_target): Remove the op field.
509 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
510 (the_low_target): Remove the op field.
511 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
512 (the_low_target): Remove the op field.
513 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
515 (the_low_target): Remove the op field.
517 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
519 Turn the 'supports_range_stepping' linux target op into a method
520 of linux_process_target.
522 * linux-low.h (struct linux_target_ops): Remove the op.
523 (class linux_process_target) <low_supports_range_stepping>: Declare.
524 * linux-low.cc (linux_process_target::low_supports_range_stepping):
526 (linux_process_target::supports_range_stepping): Update the call
528 * linux-x86-low.cc (class x86_target)
529 <low_supports_range_stepping>: Declare.
530 (x86_supports_range_stepping): Turn into...
531 (x86_target::low_supports_range_stepping): ...this.
532 (the_low_target): Remove the op field.
533 * linux-aarch64-low.cc (class aarch64_target)
534 <low_supports_range_stepping>: Declare.
535 (aarch64_supports_range_stepping): Turn into...
536 (aarch64_target::low_supports_range_stepping): ...this.
537 (the_low_target): Remove the op field.
538 * linux-arm-low.cc (the_low_target): Remove the op field.
539 * linux-bfin-low.cc (the_low_target): Ditto.
540 * linux-crisv32-low.cc (the_low_target): Ditto.
541 * linux-m32r-low.cc (the_low_target): Ditto.
542 * linux-m68k-low.cc (the_low_target): Ditto.
543 * linux-ppc-low.cc (the_low_target): Ditto.
544 * linux-s390-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
550 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552 Remove the 'emit_ops' linux target ops and let the concrete
553 linux target define the op by overriding the declaration of
554 process_stratum_target.
556 * linux-low.h (struct linux_target_ops): Remove the op.
557 (class linux_process_target) <emit_ops>: Remove.
558 * linux-low.cc (linux_process_target::emit_ops): Remove.
559 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
560 (x86_emit_ops): Turn into...
561 (x86_target::emit_ops): ...this.
562 (the_low_target): Remove the op field.
563 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
564 (aarch64_emit_ops): Turn into...
565 (aarch64_target::emit_ops): ...this.
566 (the_low_target): Remove the op field.
567 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
568 (ppc_emit_ops): Turn into...
569 (ppc_target::emit_ops): ...this.
570 (the_low_target): Remove the op field.
571 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
572 (s390_emit_ops): Turn into...
573 (s390_target::emit_ops): ...this.
574 (the_low_target): Remove the op field.
575 * linux-arm-low.cc (the_low_target): Remove the op field.
576 * linux-bfin-low.cc (the_low_target): Ditto.
577 * linux-crisv32-low.cc (the_low_target): Ditto.
578 * linux-m32r-low.cc (the_low_target): Ditto.
579 * linux-m68k-low.cc (the_low_target): Ditto.
580 * linux-sh-low.cc (the_low_target): Ditto.
581 * linux-tic6x-low.cc (the_low_target): Ditto.
582 * linux-tile-low.cc (the_low_target): Ditto.
583 * linux-xtensa-low.cc (the_low_target): Ditto.
585 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587 Remove the 'install_fast_tracepoint_jump_pad' and
588 'get_min_fast_tracepoint_insn_len' linux target ops to let the
589 concrete linux target define the ops by overriding the declarations
590 of process_stratum_target.
592 * linux-low.h (struct linux_target_ops): Remove the ops.
593 (class linux_process_target) <supports_fast_tracepoints>
594 <install_fast_tracepoint_jump_pad>
595 <get_min_fast_tracepoint_insn_len>: Remove.
596 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
597 (linux_process_target::install_fast_tracepoint_jump_pad)
598 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
599 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
600 <install_fast_tracepoint_jump_pad>
601 <get_min_fast_tracepoint_insn_len>: Declare.
602 (x86_target::supports_fast_tracepoints): Define.
603 (x86_install_fast_tracepoint_jump_pad): Turn into...
604 (x86_target::install_fast_tracepoint_jump_pad): ...this.
605 (x86_get_min_fast_tracepoint_insn_len): Turn into...
606 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
607 (the_low_target): Remove the op fields.
608 * linux-aarch64-low.cc (class aarch64_target)
609 <supports_fast_tracepoints>
610 <install_fast_tracepoint_jump_pad>
611 <get_min_fast_tracepoint_insn_len>: Declare.
612 (aarch64_target::supports_fast_tracepoints): Define.
613 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
614 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
615 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
616 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
617 (the_low_target): Remove the op fields.
618 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
619 <install_fast_tracepoint_jump_pad>
620 <get_min_fast_tracepoint_insn_len>: Declare.
621 (ppc_target::supports_fast_tracepoints): Define.
622 (ppc_install_fast_tracepoint_jump_pad): Turn into...
623 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
624 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
625 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
626 (the_low_target): Remove the op fields.
627 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
628 <install_fast_tracepoint_jump_pad>
629 <get_min_fast_tracepoint_insn_len>: Declare.
630 (s390_target::supports_fast_tracepoints): Define.
631 (s390_install_fast_tracepoint_jump_pad): Turn into...
632 (s390_target::install_fast_tracepoint_jump_pad): ...this.
633 (s390_get_min_fast_tracepoint_insn_len): Turn into...
634 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
635 (the_low_target): Remove the op fields.
636 * linux-arm-low.cc (the_low_target): Remove the op fields.
637 * linux-bfin-low.cc (the_low_target): Ditto.
638 * linux-crisv32-low.cc (the_low_target): Ditto.
639 * linux-m32r-low.cc (the_low_target): Ditto.
640 * linux-m68k-low.cc (the_low_target): Ditto.
641 * linux-sh-low.cc (the_low_target): Ditto.
642 * linux-tic6x-low.cc (the_low_target): Ditto.
643 * linux-tile-low.cc (the_low_target): Ditto.
644 * linux-xtensa-low.cc (the_low_target): Ditto.
646 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648 Turn the 'get_thread_area' linux target op into a method of
649 process_stratum_target.
651 * linux-low.h (struct linux_target_ops): Remove the op.
652 (class linux_process_target) <stuck_in_jump_pad>
653 <linux_fast_tracepoint_collecting>
654 <low_get_thread_area>: Declare.
655 * linux-low.cc (supports_fast_tracepoints): Remove.
656 (linux_fast_tracepoint_collecting): Turn into...
657 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
658 (linux_process_target::low_get_thread_area): Define.
659 (stuck_in_jump_pad_callback): Turn into...
660 (linux_process_target::stuck_in_jump_pad): ...this.
662 Update the caller below.
664 (linux_process_target::stabilize_threads)
666 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
668 (x86_get_thread_area): Turn into...
669 (x86_target::low_get_thread_area): ...this.
670 (the_low_target): Remove the op field.
671 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
673 (aarch64_get_thread_area): Turn into...
674 (aarch64_target::low_get_thread_area): ...this.
675 (the_low_target): Remove the op field.
676 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
678 (ppc_get_thread_area): Turn into...
679 (ppc_target::low_get_thread_area): ...this.
680 (the_low_target): Remove the op field.
681 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
683 (s390_get_thread_area): Turn into...
684 (s390_target::low_get_thread_area): ...this.
685 (the_low_target): Remove the op field.
686 * linux-arm-low.cc (the_low_target): Remove the op field.
687 * linux-bfin-low.cc (the_low_target): Ditto.
688 * linux-crisv32-low.cc (the_low_target): Ditto.
689 * linux-m32r-low.cc (the_low_target): Ditto.
690 * linux-m68k-low.cc (the_low_target): Ditto.
691 * linux-sh-low.cc (the_low_target): Ditto.
692 * linux-tic6x-low.cc (the_low_target): Ditto.
693 * linux-tile-low.cc (the_low_target): Ditto.
694 * linux-xtensa-low.cc (the_low_target): Ditto.
696 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
698 Remote the 'supports_tracepoints' linux target op and let the
699 concrete linux target define it by overriding the op declared in
700 process_stratum_target.
702 * linux-low.h (struct linux_target_ops): Remove the op.
703 (class linux_process_target) <supports_tracepoints>: Remove.
704 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
705 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
707 (x86_supports_tracepoints): Turn into...
708 (x86_target::supports_tracepoints): ...this.
709 (the_low_target): Remove the op field.
710 * linux-aarch64-low.cc (class aarch64_target)
711 <supports_tracepoints>: Declare.
712 (aarch64_supports_tracepoints): Turn into...
713 (aarch64_target::supports_tracepoints): ...this.
714 (the_low_target): Remove the op field.
715 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
717 (ppc_supports_tracepoints): Turn into...
718 (ppc_target::supports_tracepoints): ...this.
719 (the_low_target): Remove the op field.
720 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
722 (s390_supports_tracepoints): Turn into...
723 (s390_target::supports_tracepoints): ...this.
724 (the_low_target): Remove the op field.
725 * linux-arm-low.cc (the_low_target): Remove the op field.
726 * linux-bfin-low.cc (the_low_target): Ditto.
727 * linux-crisv32-low.cc (the_low_target): Ditto.
728 * linux-m32r-low.cc (the_low_target): Ditto.
729 * linux-m68k-low.cc (the_low_target): Ditto.
730 * linux-sh-low.cc (the_low_target): Ditto.
731 * linux-tic6x-low.cc (the_low_target): Ditto.
732 * linux-tile-low.cc (the_low_target): Ditto.
733 * linux-xtensa-low.cc (the_low_target): Ditto.
735 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
737 Remove the 'process_qsupported' linux target op and let a concrete
738 linux target define the op by overriding the op declaration in
739 process_stratum_target.
741 * linux-low.h (struct linux_target_ops): Remove the op.
742 (class linux_process_target) <process_qsupported>: Remove.
743 * linux-low.cc (linux_process_target::process_qsupported): Remove.
744 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
745 (x86_linux_process_qsupported): Turn into...
746 (x86_target::process_qsupported): ...this.
747 (the_low_target): Remove the op field.
748 * linux-aarch64-low.cc (the_low_target): Remove the op
750 * linux-arm-low.cc (the_low_target): Ditto.
751 * linux-bfin-low.cc (the_low_target): Ditto.
752 * linux-crisv32-low.cc (the_low_target): Ditto.
753 * linux-m32r-low.cc (the_low_target): Ditto.
754 * linux-m68k-low.cc (the_low_target): Ditto.
755 * linux-ppc-low.cc (the_low_target): Ditto.
756 * linux-s390-low.cc (the_low_target): Ditto.
757 * linux-sh-low.cc (the_low_target): Ditto.
758 * linux-tic6x-low.cc (the_low_target): Ditto.
759 * linux-tile-low.cc (the_low_target): Ditto.
760 * linux-xtensa-low.cc (the_low_target): Ditto.
762 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
764 Turn the 'prepare_to_resume' linux target op into a method of
765 linux_process_target.
767 * linux-low.h (struct linux_target_ops): Remove the op.
768 (class linux_process_target) <low_prepare_to_resume>: Declare.
769 * linux-low.cc (linux_process_target::low_prepare_to_resume):
772 Update the callers below:
774 (linux_process_target::resume_one_lwp_throw)
775 (linux_process_target::low_prepare_to_resume)
777 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
779 (x86_target::low_prepare_to_resume): Define.
780 (the_low_target): Remove the op field.
781 * linux-aarch64-low.cc (class aarch64_target)
782 <low_prepare_to_resume>: Declare.
783 (aarch64_target::low_prepare_to_resume): Define.
784 (the_low_target): Remove the op field.
785 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
787 (arm_prepare_to_resume): Turn into...
788 (arm_target::low_prepare_to_resume): ...this.
789 (the_low_target): Remove the op field.
790 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
792 (mips_linux_prepare_to_resume): Turn into...
793 (mips_target::low_prepare_to_resume): ...this.
794 (the_low_target): Remove the op field.
795 * linux-bfin-low.cc (the_low_target): Remove the op field.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-ppc-low.cc (the_low_target): Ditto.
800 * linux-s390-low.cc (the_low_target): Ditto.
801 * linux-sh-low.cc (the_low_target): Ditto.
802 * linux-tic6x-low.cc (the_low_target): Ditto.
803 * linux-tile-low.cc (the_low_target): Ditto.
804 * linux-xtensa-low.cc (the_low_target): Ditto.
806 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808 Turn the 'new_process', 'delete_process', 'new_thread',
809 'delete_thread', and 'new_fork' linux target ops into methods
810 of linux_process_target.
812 * linux-low.h (struct linux_target_ops): Remove the ops.
813 (class linux_process_target) <add_linux_process>
818 <check_zombie_leaders>
824 <low_new_fork>: Declare.
825 * linux-low.cc (delete_lwp): Turn into...
826 (linux_process_target::delete_lwp): ...this.
827 (linux_process_target::low_delete_thread): Define.
828 (linux_add_process): Turn into...
829 (linux_process_target::add_linux_process): ...this.
830 (linux_process_target::low_new_process): Define.
831 (linux_process_target::low_delete_process): Define.
832 (linux_process_target::low_new_fork): Define.
833 (add_lwp): Turn into...
834 (linux_process_target::add_lwp): ...this.
835 (linux_process_target::low_new_thread): Define.
836 (linux_attach_lwp): Turn into...
837 (linux_process_target::attach_lwp): ...this.
838 (linux_detach_one_lwp): Turn into...
839 (linux_process_target::detach_one_lwp): ...this.
840 (linux_detach_lwp_callback): Remove and inline...
841 (linux_process_target::detach): ...here.
842 (check_zombie_leaders): Turn into...
843 (linux_process_target::check_zombie_leaders): ...this.
844 (filter_exit_event): Turn into...
845 (linux_process_target::filter_exit_event): ...this.
847 Update the callers below.
849 (linux_process_target::handle_extended_wait)
850 (linux_process_target::create_inferior)
851 (attach_proc_task_lwp_callback)
852 (linux_process_target::attach)
853 (linux_process_target::detach)
854 (linux_process_target::mourn)
855 * thread-db.cc (attach_thread)
857 * linux-x86-low.cc (class x86_target) <low_new_process>
861 <low_new_fork>: Declare.
862 (x86_linux_new_process): Turn into...
863 (x86_target::low_new_process): ...this.
864 (x86_linux_delete_process): Turn into...
865 (x86_target::low_delete_process): ...this.
866 (x86_target::low_new_thread): Define.
867 (x86_target::low_delete_thread): Define.
868 (x86_linux_new_fork): Turn into...
869 (x86_target::low_new_fork): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
875 <low_new_fork>: Declare.
876 (aarch64_linux_new_process): Turn into...
877 (aarch64_target::low_new_process): ...this.
878 (aarch64_linux_delete_process): Turn into...
879 (aarch64_target::low_delete_process): ...this.
880 (aarch64_target::low_new_thread): Define.
881 (aarch64_target::low_delete_thread): Define.
882 (aarch64_linux_new_fork): Turn into...
883 (aarch64_target::low_new_fork): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-arm-low.cc (class arm_target) <low_new_process>
889 <low_new_fork>: Declare.
890 (arm_new_process): Turn into...
891 (arm_target::low_new_process): ...this.
892 (arm_delete_process): Turn into...
893 (arm_target::low_delete_process): ...this.
894 (arm_new_thread): Turn into...
895 (arm_target::low_new_thread): ...this.
896 (arm_delete_thread): Turn into...
897 (arm_target::low_delete_thread): ...this.
898 (arm_new_fork): Turn into...
899 (arm_target::low_new_fork): ...this.
900 (the_low_target): Remove the op fields.
901 * linux-mips-low.cc (class mips_target) <low_new_process>
905 <low_new_fork>: Declare.
906 (mips_linux_new_process): Turn into...
907 (mips_target::low_new_process): ...this.
908 (mips_linux_delete_process): Turn into...
909 (mips_target::low_delete_process): ...this.
910 (mips_linux_new_thread): Turn into...
911 (mips_target::low_new_thread): ...this.
912 (mips_linux_delete_thread): Turn into...
913 (mips_target::low_delete_thread): ...this.
914 (mips_linux_new_fork): Turn into...
915 (mips_target::low_new_fork): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-bfin-low.cc (the_low_target): Remove the op fields.
918 * linux-crisv32-low.cc (the_low_target): Ditto.
919 * linux-m32r-low.cc (the_low_target): Ditto.
920 * linux-m68k-low.cc (the_low_target): Ditto.
921 * linux-ppc-low.cc (the_low_target): Ditto.
922 * linux-s390-low.cc (the_low_target): Ditto.
923 * linux-sh-low.cc (the_low_target): Ditto.
924 * linux-tic6x-low.cc (the_low_target): Ditto.
925 * linux-tile-low.cc (the_low_target): Ditto.
926 * linux-xtensa-low.cc (the_low_target): Ditto.
928 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930 Turn the 'siginfo_fixup' linux target op into a method of
931 linux_process_target.
933 * linux-low.h (struct linux_target_ops): Remove the op.
934 (class linux_process_target) <siginfo_fixup>
935 <low_siginfo_fixup>: Declare.
936 * linux-low.cc (siginfo_fixup): Turn into...
937 (linux_process_target::siginfo_fixup): ...this.
938 (linux_process_target::low_siginfo_fixup): Define.
939 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
940 (x86_siginfo_fixup): Turn into...
941 (x86_target::low_siginfo_fixup): ...this.
942 (the_low_target): Remove the op field.
943 * linux-aarch64-low.cc (class aarch64_target):
944 <low_siginfo_fixup>: Declare.
945 (aarch64_linux_siginfo_fixup): Turn into...
946 (aarch64_target::low_siginfo_fixup): ...this.
947 (the_low_target): Remove the op field.
948 * linux-arm-low.cc (the_low_target): Remove the op field.
949 * linux-bfin-low.cc (the_low_target): Ditto.
950 * linux-crisv32-low.cc (the_low_target): Ditto.
951 * linux-m32r-low.cc (the_low_target): Ditto.
952 * linux-m68k-low.cc (the_low_target): Ditto.
953 * linux-mips-low.cc (the_low_target): Ditto.
954 * linux-ppc-low.cc (the_low_target): Ditto.
955 * linux-s390-low.cc (the_low_target): Ditto.
956 * linux-sh-low.cc (the_low_target): Ditto.
957 * linux-tic6x-low.cc (the_low_target): Ditto.
958 * linux-tile-low.cc (the_low_target): Ditto.
959 * linux-xtensa-low.cc (the_low_target): Ditto.
961 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
964 linux target ops into methods of linux_process_target.
966 * linux-low.h (struct linux_target_ops): Remove the ops.
967 (class linux_process_target) <low_collect_ptrace_register>
968 <low_store_ptrace_register>: Declare.
969 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
970 (linux_process_target::low_supply_ptrace_register): Define.
972 Update the callers below.
974 (linux_process_target::fetch_register)
975 (linux_process_target::store_register)
977 * linux-x86-low.cc (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (the_low_target): Ditto.
979 * linux-arm-low.cc (the_low_target): Ditto.
980 * linux-bfin-low.cc (the_low_target): Ditto.
981 * linux-crisv32-low.cc (the_low_target): Ditto.
982 * linux-m32r-low.cc (the_low_target): Ditto.
983 * linux-m68k-low.cc (the_low_target): Ditto.
984 * linux-sh-low.cc (the_low_target): Ditto.
985 * linux-sparc-low.cc (the_low_target): Ditto.
986 * linux-tic6x-low.cc (the_low_target): Ditto.
987 * linux-tile-low.cc (the_low_target): Ditto.
988 * linux-xtensa-low.cc (the_low_target): Ditto.
989 * linux-mips-low.cc (class mips_target)
990 <low_collect_ptrace_register>
991 <low_supply_ptrace_register>: Declare.
992 (mips_collect_ptrace_register): Turn into ...
993 (mips_target::low_collect_ptrace_register): ...this.
994 (mips_supply_ptrace_register): Turn into...
995 (mips_target::low_supply_ptrace_register): ...this.
996 (the_low_target): Remove the op fields.
997 * linux-ppc-low.cc (class ppc_target)
998 <low_collect_ptrace_register>
999 <low_supply_ptrace_register>: Declare.
1000 (ppc_collect_ptrace_register): Turn into ...
1001 (ppc_target::low_collect_ptrace_register): ...this.
1002 (ppc_supply_ptrace_register): Turn into ...
1003 (ppc_target::low_supply_ptrace_register): ...this.
1004 (ppc_fill_gregset): Update for the calls to
1005 low_collect_ptrace_register.
1006 (the_low_target): Remove the op fields.
1007 * linux-s390-low.cc (class s390_target)
1008 <low_collect_ptrace_register>
1009 <low_supply_ptrace_register>: Declare.
1010 (s390_collect_ptrace_register): Turn into ...
1011 (s390_target::low_collect_ptrace_register): ...this.
1012 (s390_supply_ptrace_register): Turn into ...
1013 (s390_target::low_supply_ptrace_register): ...this.
1014 (s390_fill_gregset): Update for the calls to
1015 low_collect_ptrace_register.
1016 (the_low_target): Remove the op fields.
1018 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1021 target ops into methods of linux_process_target.
1023 * linux-low.h (struct linux_target_ops): Remove the ops.
1024 (class linux_process_target) <check_stopped_by_watchpoint>
1025 <low_stopped_by_watchpoint>
1026 <low_stopped_data_address>: Declare.
1027 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1028 (linux_process_target::check_stopped_by_watchpoint): ...this.
1029 (linux_process_target::low_stopped_by_watchpoint): Define.
1030 (linux_process_target::low_stopped_data_address): Define.
1031 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1032 <low_stopped_data_address>: Declare.
1033 (x86_stopped_by_watchpoint): Turn into...
1034 (x86_target::low_stopped_by_watchpoint): ...this.
1035 (x86_stopped_data_address): Turn into...
1036 (x86_target::low_stopped_data_address): ...this.
1037 (the_low_target): Remove the op fields.
1038 * linux-aarch64-low.cc (class aarch64_target)
1039 <low_stopped_by_watchpoint>
1040 <low_stopped_data_address>: Declare.
1041 (aarch64_stopped_by_watchpoint): Turn into...
1042 (aarch64_target::low_stopped_by_watchpoint): ...this.
1043 (aarch64_stopped_data_address): Turn into...
1044 (aarch64_target::low_stopped_data_address): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1047 <low_stopped_data_address>: Declare.
1048 (arm_stopped_by_watchpoint): Turn into...
1049 (arm_target::low_stopped_by_watchpoint): ...this.
1050 (arm_stopped_data_address): Turn into...
1051 (arm_target::low_stopped_data_address): ...this.
1052 (the_low_target): Remove the op fields.
1053 * linux-crisv32-low.cc (class crisv32_target)
1054 <low_stopped_by_watchpoint>
1055 <low_stopped_data_address>: Declare.
1056 (cris_stopped_by_watchpoint): Turn into...
1057 (crisv32_target::low_stopped_by_watchpoint): ...this.
1058 (cris_stopped_data_address): Turn into...
1059 (crisv32_target::low_stopped_data_address): ...this.
1060 (the_low_target): Remove the op fields.
1061 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1062 <low_stopped_data_address>: Declare.
1063 (mips_stopped_by_watchpoint): Turn into...
1064 (mips_target::low_stopped_by_watchpoint): ...this.
1065 (mips_stopped_data_address): Turn into...
1066 (mips_target::low_stopped_data_address): ...this.
1067 (the_low_target): Remove the op fields.
1068 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1069 * linux-m32r-low.cc (the_low_target): Ditto.
1070 * linux-m68k-low.cc (the_low_target): Ditto.
1071 * linux-ppc-low.cc (the_low_target): Ditto.
1072 * linux-s390-low.cc (the_low_target): Ditto.
1073 * linux-sh-low.cc (the_low_target): Ditto.
1074 * linux-sparc-low.cc (the_low_target): Ditto.
1075 * linux-tic6x-low.cc (the_low_target): Ditto.
1076 * linux-tile-low.cc (the_low_target): Ditto.
1077 * linux-xtensa-low.cc (the_low_target): Ditto.
1079 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1081 Turn the 'insert_point' and 'remove_point' linux target ops into
1082 methods of linux_process_target.
1084 * linux-low.h (struct linux_target_ops): Remove the ops.
1085 (class linux_process_target) <low_insert_point>
1086 <low_remove_point>: Declare.
1087 * linux-low.cc (linux_process_target::low_insert_point)
1088 (linux_process_target::low_remove_point): Define.
1089 (linux_process_target::insert_point)
1090 (linux_process_target::remove_point): Update for calls to
1091 low_insert_point and low_remove_point.
1092 * linux-x86-low.cc (class x86_target) <low_insert_point>
1093 <low_remove_point>: Declare.
1094 (x86_insert_point): Turn into...
1095 (x86_target::low_insert_point): ...this.
1096 (x86_remove_point): Turn into...
1097 (x86_target::low_remove_point): ...this.
1098 (the_low_target): Remove the op fields.
1099 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1100 <low_remove_point>: Declare.
1101 (aarch64_insert_point): Turn into...
1102 (aarch64_target::low_insert_point): ...this.
1103 (aarch64_remove_point): Turn into...
1104 (aarch64_target::low_remove_point): ...this.
1105 (the_low_target): Remove the op fields.
1106 * linux-arm-low.cc (class arm_target) <low_insert_point>
1107 <low_remove_point>: Declare.
1108 (arm_insert_point): Turn into...
1109 (arm_target::low_insert_point): ...this.
1110 (arm_remove_point): Turn into...
1111 (arm_target::low_remove_point): ...this.
1112 (the_low_target): Remove the op fields.
1113 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1114 <low_remove_point>: Declare.
1115 (crisv32_insert_point): Turn into...
1116 (crisv32_target::low_insert_point): ...this.
1117 (crisv32_remove_point): Turn into...
1118 (crisv32_target::low_remove_point): ...this.
1119 (the_low_target): Remove the op fields.
1120 * linux-mips-low.cc (class mips_target) <low_insert_point>
1121 <low_remove_point>: Declare.
1122 (mips_insert_point): Turn into...
1123 (mips_target::low_insert_point): ...this.
1124 (mips_remove_point): Turn into...
1125 (mips_target::low_remove_point): ...this.
1126 (the_low_target): Remove the op fields.
1127 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1128 <low_remove_point>: Declare.
1129 (ppc_insert_point): Turn into...
1130 (ppc_target::low_insert_point): ...this.
1131 (ppc_remove_point): Turn into...
1132 (ppc_target::low_remove_point): ...this.
1133 (the_low_target): Remove the op fields.
1134 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1135 * linux-m32r-low.cc (the_low_target): Ditto.
1136 * linux-m68k-low.cc (the_low_target): Ditto.
1137 * linux-s390-low.cc (the_low_target): Ditto.
1138 * linux-sh-low.cc (the_low_target): Ditto.
1139 * linux-sparc-low.cc (the_low_target): Ditto.
1140 * linux-tic6x-low.cc (the_low_target): Ditto.
1141 * linux-tile-low.cc (the_low_target): Ditto.
1142 * linux-xtensa-low.cc (the_low_target): Ditto.
1144 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1146 Remove the 'supports_z_point_type' linux target op and let the
1147 concrete linux target define it by overriding the op declared in
1148 process_stratum_target.
1150 * linux-low.cc (linux_process_target::supports_z_point_type):
1152 * linux-low.h (struct linux_target_ops): Remove the op.
1153 (class linux_process_target) <supports_z_point_type>: Remove.
1154 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1156 (x86_supports_z_point_type): Turn into...
1157 (x86_target::supports_z_point_type): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-aarch64-low.cc (class aarch64_target)
1160 <supports_z_point_type>: Declare.
1161 (aarch64_supports_z_point_type): Turn into...
1162 (aarch64_target::supports_z_point_type): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1166 (arm_supports_z_point_type): Turn into...
1167 (arm_target::supports_z_point_type): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-crisv32-low.cc (class crisv32_target)
1170 <supports_z_point_type>: Declare.
1171 (cris_supports_z_point_type): Turn into...
1172 (crisv32_target::supports_z_point_type): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1176 (mips_supports_z_point_type): Turn into...
1177 (mips_target::supports_z_point_type): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1181 (ppc_supports_z_point_type): Turn into...
1182 (ppc_target::supports_z_point_type): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1186 (s390_supports_z_point_type): Turn into...
1187 (s390_target::supports_z_point_type): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-bfin-low.cc (the_low_target): Remove the op field.
1190 * linux-m32r-low.cc (the_low_target): Ditto.
1191 * linux-m68k-low.cc (the_low_target): Ditto.
1192 * linux-sh-low.cc (the_low_target): Ditto.
1193 * linux-sparc-low.cc (the_low_target): Ditto.
1194 * linux-tic6x-low.cc (the_low_target): Ditto.
1195 * linux-tile-low.cc (the_low_target): Ditto.
1196 * linux-xtensa-low.cc (the_low_target): Ditto.
1198 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1200 Turn the 'breakpoint_at' linux target op into a method of
1201 linux_process_target.
1203 * linux-low.h (struct linux_target_ops): Remove the op.
1204 (class linux_process_target) <low_breakpoint_at>: Declare.
1206 Update the callers below:
1208 * linux-low.cc (linux_process_target::save_stop_reason)
1209 (linux_process_target::thread_still_has_status_pending)
1210 (linux_process_target::wait_1)
1212 * linux-x86-low.cc (class x86_target)
1213 <low_breakpoint_at>: Declare.
1214 (x86_breakpoint_at): Turn into...
1215 (x86_target::low_breakpoint_at): ...this.
1216 (the_low_target): Remove the op field.
1217 * linux-aarch64-low.cc (class aarch64_target)
1218 <low_breakpoint_at>: Declare.
1219 (aarch64_breakpoint_at): Turn into...
1220 (aarch64_target::low_breakpoint_at): ...this.
1221 (the_low_target): Remove the op field.
1222 * linux-arm-low.cc (class arm_target)
1223 <low_breakpoint_at>: Declare.
1224 (arm_target::low_breakpoint_at): Define.
1225 (the_low_target): Remove the op field.
1226 * linux-bfin-low.cc (class bfin_target)
1227 <low_breakpoint_at>: Declare.
1228 (bfin_breakpoint_at): Turn into...
1229 (bfin_target::low_breakpoint_at): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-cris-low.cc (class cris_target)
1232 <low_breakpoint_at>: Declare.
1233 (cris_breakpoint_at): Turn into...
1234 (cris_target::low_breakpoint_at): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-crisv32-low.cc (class crisv32_target)
1237 <low_breakpoint_at>: Declare.
1238 (crisv32_breakpoint_at): Turn into...
1239 (crisv32_target::low_breakpoint_at): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-ia64-low.cc (class ia64_target)
1242 <low_breakpoint_at>: Declare.
1243 (ia64_target::low_breakpoint_at): Define.
1244 * linux-m32r-low.cc (class m32r_target)
1245 <low_breakpoint_at>: Declare.
1246 (m32r_breakpoint_at): Turn into...
1247 (m32r_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-m68k-low.cc (class m68k_target)
1250 <low_breakpoint_at>: Declare.
1251 (m68k_breakpoint_at): Turn into...
1252 (m68k_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-mips-low.cc (class mips_target)
1255 <low_breakpoint_at>: Declare.
1256 (mips_breakpoint_at): Turn into...
1257 (mips_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-nios2-low.cc (class nios2_target)
1260 <low_breakpoint_at>: Declare.
1261 (nios2_breakpoint_at): Turn into...
1262 (nios2_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-ppc-low.cc (class ppc_target)
1265 <low_breakpoint_at>: Declare.
1266 (ppc_breakpoint_at): Turn into...
1267 (ppc_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-riscv-low.cc (class riscv_target)
1270 <low_breakpoint_at>: Declare.
1271 (riscv_breakpoint_at): Turn into...
1272 (riscv_target::low_breakpoint_at): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-s390-low.cc (class s390_target)
1275 <low_breakpoint_at>: Declare.
1276 (s390_breakpoint_at): Turn into...
1277 (s390_target::low_breakpoint_at): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-sh-low.cc (class sh_target)
1280 <low_breakpoint_at>: Declare.
1281 (sh_breakpoint_at): Turn into...
1282 (sh_target::low_breakpoint_at): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-sparc-low.cc (class sparc_target)
1285 <low_breakpoint_at>: Declare.
1286 (sparc_breakpoint_at): Turn into...
1287 (sparc_target::low_breakpoint_at): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-tic6x-low.cc (class tic6x_target)
1290 <low_breakpoint_at>: Declare.
1291 (tic6x_breakpoint_at): Turn into...
1292 (tic6x_target::low_breakpoint_at): ...this.
1293 (the_low_target): Remove the op field.
1294 * linux-tile-low.cc (class tile_target)
1295 <low_breakpoint_at>: Declare.
1296 (tile_breakpoint_at): Turn into...
1297 (tile_target::low_breakpoint_at): ...this.
1298 (the_low_target): Remove the op field.
1299 * linux-xtensa-low.cc (class xtensa_target)
1300 <low_breakpoint_at>: Declare.
1301 (xtensa_breakpoint_at): Turn into...
1302 (xtensa_target::low_breakpoint_at): ...this.
1303 (the_low_target): Remove the op field.
1305 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1307 Turn the 'decr_pc_after_break' linux_target_ops field into
1308 a method of linux_process_target.
1310 * linux-low.h (struct linux_target_ops)
1311 <decr_pc_after_break>: Remove.
1312 (class linux_process_target) <low_decr_pc_after_break>: New method
1314 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1315 New method implementation.
1317 Update the users below.
1319 (linux_process_target::save_stop_reason)
1320 (linux_process_target::wait_1)
1321 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1323 (x86_target::low_decr_pc_after_break): New method implementation.
1324 (the_low_target): Remove the field.
1325 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1327 (bfin_target::low_decr_pc_after_break): New method implementation.
1328 (the_low_target): Remove the field.
1329 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1331 (m68k_target::low_decr_pc_after_break): New method implementation.
1332 (the_low_target): Remove the field.
1333 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1335 (s390_target::low_decr_pc_after_break): New method implementation.
1336 (the_low_target): Remove the field.
1337 * linux-aarch64-low.cc (the_low_target): Remove the field.
1338 * linux-arm-low.cc (the_low_target): Remove the field.
1339 * linux-cris-low.cc (the_low_target): Remove the field.
1340 * linux-crisv32-low.cc (the_low_target): Remove the field.
1341 * linux-m32r-low.cc (the_low_target): Remove the field.
1342 * linux-mips-low.cc (the_low_target): Remove the field.
1343 * linux-nios2-low.cc (the_low_target): Remove the field.
1344 * linux-ppc-low.cc (the_low_target): Remove the field.
1345 * linux-riscv-low.cc (the_low_target): Remove the field.
1346 * linux-sh-low.cc (the_low_target): Remove the field.
1347 * linux-sparc-low.cc (the_low_target): Remove the field.
1348 * linux-tic6x-low.cc (the_low_target): Remove the field.
1349 * linux-tile-low.cc (the_low_target): Remove the field.
1350 * linux-xtensa-low.cc (the_low_target): Remove the field.
1352 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1354 Remove the 'supports_software_single_step' linux target op and let
1355 the concrete linux target define it by overriding the op in
1356 process_stratum_target.
1357 Turn the 'get_next_pcs' linux target op into a method of
1358 linux_process_target.
1360 * linux-low.h (struct linux_target_ops): Remove the ops.
1361 (class linux_process_target) <supports_software_single_step>:
1363 <low_get_next_pcs>: Declare.
1364 * linux-low.cc (can_software_single_step): Remove.
1365 (linux_process_target::low_get_next_pcs): Define.
1366 (linux_process_target::supports_software_single_step): Remove.
1368 Update the callers below.
1370 (linux_process_target::handle_extended_wait)
1371 (linux_process_target::wait_1)
1372 (linux_process_target::install_software_single_step_breakpoints)
1373 (linux_process_target::single_step)
1374 (linux_process_target::thread_needs_step_over)
1375 (linux_process_target::proceed_one_lwp)
1376 (linux_process_target::supports_range_stepping)
1378 * linux-x86-low.cc (the_low_target): Remove the op field.
1379 * linux-aarch64-low.cc (the_low_target): Ditto.
1380 * linux-bfin-low.cc (the_low_target): Ditto.
1381 * linux-cris-low.cc (the_low_target): Ditto.
1382 * linux-crisv32-low.cc (the_low_target): Ditto.
1383 * linux-m32r-low.cc (the_low_target): Ditto.
1384 * linux-m68k-low.cc (the_low_target): Ditto.
1385 * linux-mips-low.cc (the_low_target): Ditto.
1386 * linux-nios2-low.cc (the_low_target): Ditto.
1387 * linux-ppc-low.cc (the_low_target): Ditto.
1388 * linux-riscv-low.cc (the_low_target): Ditto.
1389 * linux-s390-low.cc (the_low_target): Ditto.
1390 * linux-sh-low.cc (the_low_target): Ditto.
1391 * linux-sparc-low.cc (the_low_target): Ditto.
1392 * linux-tic6x-low.cc (the_low_target): Ditto.
1393 * linux-tile-low.cc (the_low_target): Ditto.
1394 * linux-xtensa-low.cc (the_low_target): Ditto.
1395 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1396 <supports_software_single_step>: Declare.
1397 (arm_target::supports_software_single_step): Define.
1398 (arm_gdbserver_get_next_pcs): Turn into...
1399 (arm_target::low_get_next_pcs): ...this.
1400 (the_low_target): Remove the op field.
1402 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1404 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1405 the concrete linux target define it by overriding the op
1406 in process_stratum_target.
1408 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1410 * linux-low.h (struct linux_target_ops): Remove the op.
1411 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1412 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1414 (x86_sw_breakpoint_from_kind): Turn into...
1415 (x86_target::sw_breakpoint_from_kind): ...this.
1416 (the_low_target): Remove the op field.
1417 * linux-aarch64-low.cc (class aarch64_target)
1418 <sw_breakpoint_from_kind>: Declare.
1419 (aarch64_sw_breakpoint_from_kind): Turn into...
1420 (aarch64_target::sw_breakpoint_from_kind): ...this.
1421 (the_low_target): Remove the op field.
1422 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1424 (arm_target::sw_breakpoint_from_kind): Define.
1425 (the_low_target): Remove the op field.
1426 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1428 (bfin_sw_breakpoint_from_kind): Turn into...
1429 (bfin_target::sw_breakpoint_from_kind): ...this.
1430 (the_low_target): Remove the op field.
1431 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1433 (cris_sw_breakpoint_from_kind): Turn into...
1434 (cris_target::sw_breakpoint_from_kind): ...this.
1435 (the_low_target): Remove the op field.
1436 * linux-crisv32-low.cc (class crisv32_target)
1437 <sw_breakpoint_from_kind>: Declare.
1438 (cris_sw_breakpoint_from_kind): Turn into...
1439 (crisv32_target::sw_breakpoint_from_kind): ...this.
1440 (the_low_target): Remove the op field.
1441 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1443 (ia64_target::sw_breakpoint_from_kind): Define.
1444 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1446 (m32r_sw_breakpoint_from_kind): Turn into...
1447 (m32r_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1451 (m68k_sw_breakpoint_from_kind): Turn into...
1452 (m68k_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1456 (mips_sw_breakpoint_from_kind): Turn into...
1457 (mips_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1461 (nios2_sw_breakpoint_from_kind): Turn into...
1462 (nios2_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1466 (ppc_sw_breakpoint_from_kind): Turn into...
1467 (ppc_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1471 (riscv_sw_breakpoint_from_kind): Turn into...
1472 (riscv_target::sw_breakpoint_from_kind): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1476 (s390_sw_breakpoint_from_kind): Turn into...
1477 (s390_target::sw_breakpoint_from_kind): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1481 (sh_sw_breakpoint_from_kind): Turn into...
1482 (sh_target::sw_breakpoint_from_kind): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1486 (sparc_sw_breakpoint_from_kind): Turn into...
1487 (sparc_target::sw_breakpoint_from_kind): ...this.
1488 (the_low_target): Remove the op field.
1489 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1491 (tic6x_sw_breakpoint_from_kind): Turn into...
1492 (tic6x_target::sw_breakpoint_from_kind): ...this.
1493 (the_low_target): Remove the op field.
1494 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1496 (tile_sw_breakpoint_from_kind): Turn into...
1497 (tile_target::sw_breakpoint_from_kind): ...this.
1498 (the_low_target): Remove the op field.
1499 * linux-xtensa-low.cc (class xtensa_target)
1500 <sw_breakpoint_from_kind>: Declare.
1501 (xtensa_sw_breakpoint_from_kind): Turn into...
1502 (xtensa_target::sw_breakpoint_from_kind): ...this.
1503 (the_low_target): Remove the op field.
1505 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1507 Remove the 'breakpoint_kind_from_pc' and
1508 'breakpoint_kind_from_current_state' linux target ops, and let the
1509 concrete linux target define them by overriding the ops of
1510 process_stratum_target.
1512 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1514 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1515 * linux-low.h (struct linux_target_ops): Remove ops.
1516 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1517 <breakpoint_kind_from_current_state>: Remove.
1518 * linux-x86-low.cc (the_low_target): Remove the op fields.
1519 * linux-bfin-low.cc (the_low_target): Ditto.
1520 * linux-cris-low.cc (the_low_target): Ditto.
1521 * linux-crisv32-low.cc (the_low_target): Ditto.
1522 * linux-m32r-low.cc (the_low_target): Ditto.
1523 * linux-m68k-low.cc (the_low_target): Ditto.
1524 * linux-mips-low.cc (the_low_target): Ditto.
1525 * linux-nios2-low.cc (the_low_target): Ditto.
1526 * linux-ppc-low.cc (the_low_target): Ditto.
1527 * linux-s390-low.cc (the_low_target): Ditto.
1528 * linux-sh-low.cc (the_low_target): Ditto.
1529 * linux-sparc-low.cc (the_low_target): Ditto.
1530 * linux-tic6x-low.cc (the_low_target): Ditto.
1531 * linux-tile-low.cc (the_low_target): Ditto.
1532 * linux-xtensa-low.cc (the_low_target): Ditto.
1533 * linux-aarch64-low.cc (class aarch64_target)
1534 <breakpoint_kind_from_pc>
1535 <breakpoint_kind_from_current_state>: Declare.
1536 (aarch64_breakpoint_kind_from_pc): Turn into...
1537 (aarch64_target::breakpoint_kind_from_pc): ...this.
1538 (aarch64_breakpoint_kind_from_current_state): Turn into...
1539 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1540 (the_low_target): Remove the op fields.
1541 * linux-arm-low.cc (class arm_target):
1542 <breakpoint_kind_from_pc>
1543 <breakpoint_kind_from_current_state>: Declare.
1544 (arm_target::breakpoint_kind_from_pc): Define.
1545 (arm_target::breakpoint_kind_from_current_state): Define.
1546 (the_low_target): Remove the op fields.
1547 * linux-riscv-low.cc (class riscv_target):
1548 <breakpoint_kind_from_pc>: Declare.
1549 (riscv_breakpoint_kind_from_pc): Turn into...
1550 (riscv_target::breakpoint_kind_from_pc): ...this.
1551 (the_low_target): Remove the op fields.
1553 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1556 of linux_process_target.
1558 * linux-low.h (struct linux_target_ops): Remove the ops.
1559 (class linux_process_target) <low_supports_breakpoints>
1561 <low_set_pc>: Declare.
1562 * linux-low.cc (supports_breakpoints): Turn into...
1563 (linux_process_target::low_supports_breakpoints): ...this.
1564 (linux_process_target::low_get_pc): Define.
1565 (linux_process_target::low_set_pc): Define.
1567 Update the callers below.
1569 (linux_process_target::get_pc)
1570 (linux_process_target::save_stop_reason)
1571 (linux_process_target::maybe_move_out_of_jump_pad)
1572 (linux_process_target::wait_1)
1573 (linux_process_target::resume_one_lwp_throw)
1574 (linux_process_target::resume)
1575 (linux_process_target::proceed_all_lwps)
1576 (linux_process_target::read_pc)
1577 (linux_process_target::write_pc)
1579 * linux-x86-low.cc (class linux_process_target)
1580 <low_supports_breakpoints>
1582 <low_set_pc>: Declare.
1583 (x86_target::low_supports_breakpoints): Define.
1584 (x86_get_pc): Turn into...
1585 (x86_target::low_get_pc): ...this.
1586 (x86_set_pc): Turn into...
1587 (x86_target::low_set_pc): ...this.
1588 (the_low_target): Remove the op fields.
1589 * linux-arm-low.cc (class arm_target)
1590 <low_supports_breakpoints>
1592 <low_set_pc>: Declare.
1593 (arm_target::low_supports_breakpoints)
1594 (arm_target::low_get_pc)
1595 (arm_target::low_set_pc): Define.
1596 (the_low_target): Remove the op fields.
1597 * linux-bfin-low.cc (class bfin_target)
1598 <low_supports_breakpoints>
1600 <low_set_pc>: Declare.
1601 (bfin_target::low_supports_breakpoints)
1602 (bfin_target::low_get_pc)
1603 (bfin_target::low_set_pc): Define.
1604 (the_low_target): Remove the op fields.
1605 * linux-cris-low.cc (class cris_target)
1606 <low_supports_breakpoints>
1608 <low_set_pc>: Declare.
1609 (cris_target::low_supports_breakpoints)
1610 (cris_target::low_get_pc)
1611 (cris_target::low_set_pc): Define.
1612 (the_low_target): Remove the op fields.
1613 * linux-crisv32-low.cc (class crisv32_target)
1614 <low_supports_breakpoints>
1616 <low_set_pc>: Declare.
1617 (crisv32_target::low_supports_breakpoints)
1618 (crisv32_target::low_get_pc)
1619 (crisv32_target::low_set_pc): Define.
1620 (the_low_target): Remove the op fields.
1621 * linux-m32r-low.cc (class m32r_target)
1622 <low_supports_breakpoints>
1624 <low_set_pc>: Declare.
1625 (m32r_target::low_supports_breakpoints)
1626 (m32r_target::low_get_pc)
1627 (m32r_target::low_set_pc): Define.
1628 (the_low_target): Remove the op fields.
1629 * linux-m68k-low.cc (class m68k_target)
1630 <low_supports_breakpoints>
1632 <low_set_pc>: Declare.
1633 (m68k_target::low_supports_breakpoints)
1634 (m68k_target::low_get_pc)
1635 (m68k_target::low_set_pc): Define.
1636 (the_low_target): Remove the op fields.
1637 * linux-nios2-low.cc (class nios2_target)
1638 <low_supports_breakpoints>
1640 <low_set_pc>: Declare.
1641 (nios2_target::low_supports_breakpoints)
1642 (nios2_target::low_get_pc)
1643 (nios2_target::low_set_pc): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-sh-low.cc (class sh_target)
1646 <low_supports_breakpoints>
1648 <low_set_pc>: Declare.
1649 (sh_target::low_supports_breakpoints)
1650 (sh_target::low_get_pc)
1651 (sh_target::low_set_pc): Define.
1652 (the_low_target): Remove the op fields.
1653 * linux-xtensa-low.cc (class xtensa_target)
1654 <low_supports_breakpoints>
1656 <low_set_pc>: Declare.
1657 (xtensa_target::low_supports_breakpoints)
1658 (xtensa_target::low_get_pc)
1659 (xtensa_target::low_set_pc): Define.
1660 (the_low_target): Remove the op fields.
1661 * linux-sparc-low.cc (class sparc_target)
1662 <low_supports_breakpoints>
1663 <low_get_pc>: Declare.
1664 (sparc_target::low_supports_breakpoints)
1665 (sparc_target::low_get_pc): Define.
1666 (the_low_target): Remove the op fields.
1667 * linux-tile-low.cc (class tile_target)
1668 <low_supports_breakpoints>
1670 <low_set_pc>: Declare.
1671 (tile_target::low_supports_breakpoints)
1672 (tile_target::low_get_pc)
1673 (tile_target::low_set_pc): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-aarch64-low.cc (class aarch64_target)
1676 <low_supports_breakpoints>
1678 <low_set_pc>: Declare.
1679 (aarch64_target::low_supports_breakpoints): Define.
1680 (aarch64_get_pc): Turn into...
1681 (aarch64_target::low_get_pc): ...this.
1682 (aarch64_set_pc): Turn into...
1683 (aarch64_target::low_set_pc): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-mips-low.cc (class mips_target)
1686 <low_supports_breakpoints>
1688 <low_set_pc>: Declare.
1689 (mips_target::low_supports_breakpoints): Define.
1690 (mips_get_pc): Turn into...
1691 (mips_target::low_get_pc): ...this.
1692 (mips_set_pc): Turn into...
1693 (mips_target::low_set_pc): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target)
1696 <low_supports_breakpoints>
1698 <low_set_pc>: Declare.
1699 (ppc_target::low_supports_breakpoints): Define.
1700 (ppc_get_pc): Turn into...
1701 (ppc_target::low_get_pc): ...this.
1702 (ppc_set_pc): Turn into...
1703 (ppc_target::low_set_pc): ...this.
1704 (the_low_target): Remove the op fields.
1705 * linux-riscv-low.cc (class riscv_target)
1706 <low_supports_breakpoints>
1708 <low_set_pc>: Declare.
1709 (riscv_target::low_supports_breakpoints): Define.
1710 (riscv_get_pc): Turn into...
1711 (riscv_target::low_get_pc): ...this.
1712 (riscv_set_pc): Turn into...
1713 (riscv_target::low_set_pc): ...this.
1714 (the_low_target): Remove the op fields.
1715 * linux-s390-low.cc (class s390_target)
1716 <low_supports_breakpoints>
1718 <low_set_pc>: Declare.
1719 (s390_target::low_supports_breakpoints): Define.
1720 (s390_get_pc): Turn into...
1721 (s390_target::low_get_pc): ...this.
1722 (s390_set_pc): Turn into...
1723 (s390_target::low_set_pc): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-tic6x-low.cc (class tic6x_target)
1726 <low_supports_breakpoints>
1728 <low_set_pc>: Declare.
1729 (tic6x_target::low_supports_breakpoints): Define.
1730 (tic6x_get_pc): Turn into...
1731 (tic6x_target::low_get_pc): ...this.
1732 (tic6x_set_pc): Turn into...
1733 (tic6x_target::low_set_pc): ...this.
1734 (the_low_target): Remove the op fields.
1736 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738 Turn some more static methods in linux-low into private methods
1739 of linux_process_target.
1741 * linux-low.cc (get_pc): Turn into...
1742 (linux_process_target::get_pc): ...this.
1743 (save_stop_reason): Turn into...
1744 (linux_process_target::save_stop_reason): ...this.
1745 (thread_still_has_status_pending_p): Turn into...
1746 (linux_process_target::thread_still_has_status_pending): ...this.
1747 (status_pending_p_callback): Turn into...
1748 (linux_process_target::status_pending_p_callback): ...this.
1749 (resume_stopped_resumed_lwps): Turn into...
1750 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1751 (install_software_single_step_breakpoints): Turn into...
1752 (linux_process_target::install_software_single_step_breakpoints):
1754 (single_step): Turn into...
1755 (linux_process_target::single_step): ...this.
1756 (linux_resume_one_lwp_throw): Turn into...
1757 (linux_process_target::resume_one_lwp_throw): ...this.
1758 (linux_resume_one_lwp): Turn into...
1759 (linux_process_target::resume_one_lwp): ...this.
1760 (resume_status_pending_p): Turn into...
1761 (linux_process_target::resume_status_pending): ...this.
1762 (need_step_over_p): Turn into...
1763 (linux_process_target::thread_needs_step_over): ...this.
1764 (linux_resume_one_thread): Turn into...
1765 (linux_process_target::resume_one_thread): ...this.
1766 (proceed_one_lwp): Turn into...
1767 (linux_process_target::proceed_one_lwp): ...this.
1768 (unsuspend_and_proceed_one_lwp): Turn into...
1769 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1771 Update the calls/references to the above functions below.
1773 (linux_process_target::handle_extended_wait)
1774 (linux_process_target::filter_event)
1775 (linux_process_target::wait_for_event_filtered)
1776 (linux_process_target::wait_1)
1777 (linux_process_target::move_out_of_jump_pad)
1778 (linux_process_target::start_step_over)
1779 (linux_process_target::resume)
1780 (linux_process_target::proceed_all_lwps)
1781 (regsets_store_inferior_registers)
1782 (linux_process_target::store_register)
1784 * linux-low.h (class linux_process_target)
1787 <thread_still_has_status_pending>
1788 <status_pending_p_callback>
1789 <resume_stopped_resumed_lwps>
1790 <install_software_single_step_breakpoints>
1792 <resume_one_lwp_throw>
1794 <resume_status_pending>
1795 <thread_needs_step_over>
1798 <unsuspend_and_proceed_one_lwp>: Declare.
1800 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802 Turn the 'fetch_register' linux target op into a method of
1803 linux_process_target.
1805 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1806 (class linux_process_target) <low_fetch_register>: Declare.
1807 * linux-x86-low.cc (the_low_target)
1808 * linux-aarch64-low.cc (the_low_target)
1809 * linux-arm-low.cc (the_low_target)
1810 * linux-bfin-low.cc (the_low_target)
1811 * linux-cris-low.cc (the_low_target)
1812 * linux-crisv32-low.cc (the_low_target)
1813 * linux-m32r-low.cc (the_low_target)
1814 * linux-m68k-low.cc (the_low_target)
1815 * linux-nios2-low.cc (the_low_target)
1816 * linux-ppc-low.cc (the_low_target)
1817 * linux-s390-low.cc (the_low_target)
1818 * linux-sh-low.cc (the_low_target)
1819 * linux-sparc-low.cc (the_low_target)
1820 * linux-tic6x-low.cc (the_low_target)
1821 * linux-tile-low.cc (the_low_target)
1822 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1823 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1825 (ia64_fetch_register): Turn into...
1826 (ia64_target::low_fetch_register): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1830 (mips_fetch_register): Turn into...
1831 (mips_target::low_fetch_register): ...this.
1832 (the_low_target): Remove the op field.
1833 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1835 (riscv_fetch_register): Turn into...
1836 (riscv_target::low_fetch_register): ...this.
1837 (the_low_target): Remove the op field.
1839 Update the callers below.
1841 * linux-low.cc (linux_process_target::fetch_registers)
1842 (linux_process_target::low_fetch_register)
1844 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1846 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1847 linux target ops into methods of linux_process_target.
1849 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1850 (class linux_process_target) <fetch_register>
1852 <usr_fetch_inferior_registers>
1853 <usr_store_inferior_registers>
1854 <low_cannot_fetch_register>
1855 <low_cannot_fetch_register> Declare.
1856 * linux-low.cc (fetch_register): Turn into...
1857 (linux_process_target::fetch_register): ...this.
1858 (store_register): Turn into ...
1859 (linux_process_target::store_register): ...this.
1860 (usr_fetch_inferior_registers): Turn into...
1861 (linux_process_target::usr_fetch_inferior_registers): ...this.
1862 (usr_store_inferior_registers): Turn into...
1863 (linux_process_target::usr_store_inferior_registers): ...this.
1864 * linux-x86-low.cc (class x86_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (x86_cannot_store_register): Turn into...
1868 (x86_target::low_cannot_store_register): ...this.
1869 (x86_cannot_fetch_register): Turn into...
1870 (x86_target::low_cannot_fetch_register): ...this.
1871 (the_low_target): Remove the target op fields.
1872 * linux-aarch64-low.cc (class aarch64_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (aarch64_target::low_cannot_fetch_register)
1876 (aarch64_target::low_cannot_store_register): Define.
1877 (the_low_target): Remove the op fields.
1878 * linux-arm-low.cc (class arm_target)
1879 <low_cannot_fetch_register>
1880 <low_cannot_store_register>: Declare.
1881 (arm_cannot_fetch_register): Turn into...
1882 (arm_target::low_cannot_fetch_register): ...this.
1883 (arm_cannot_store_register): Turn into...
1884 (arm_target::low_cannot_store_register): ...this.
1885 (the_low_target): Remove the op fields.
1886 * linux-bfin-low.cc (class bfin_target)
1887 <low_cannot_fetch_register>
1888 <low_cannot_store_register>: Declare.
1889 (bfin_cannot_fetch_register): Turn into...
1890 (bfin_target::low_cannot_fetch_register): ...this.
1891 (bfin_cannot_store_register): Turn into...
1892 (bfin_target::low_cannot_store_register): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-cris-low.cc (class cris_target)
1895 <low_cannot_fetch_register>
1896 <low_cannot_store_register>: Declare.
1897 (cris_cannot_fetch_register): Turn into...
1898 (cris_target::low_cannot_fetch_register): ...this.
1899 (cris_cannot_store_register): Turn into...
1900 (cris_target::low_cannot_store_register): ...this.
1901 (the_low_target): Remove the op fields.
1902 * linux-crisv32-low.cc (class crisv32_target)
1903 <low_cannot_fetch_register>
1904 <low_cannot_store_register>: Declare.
1905 (crisv32_target::low_cannot_fetch_register)
1906 (crisv32_target::low_cannot_store_register): Define.
1907 (the_low_target): Remove the op fields.
1908 * linux-ia64-low.cc (class ia64_target)
1909 <low_cannot_fetch_register>
1910 <low_cannot_store_register>: Declare.
1911 (ia64_cannot_fetch_register): Turn into...
1912 (ia64_target::low_cannot_fetch_register): ...this.
1913 (ia64_cannot_store_register): Turn into...
1914 (ia64_target::low_cannot_store_register): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-m32r-low.cc (class m32r_target)
1917 <low_cannot_fetch_register>
1918 <low_cannot_store_register>: Declare.
1919 (m32r_cannot_fetch_register): Turn into...
1920 (m32r_target::low_cannot_fetch_register): ...this.
1921 (m32r_cannot_store_register): Turn into...
1922 (m32r_target::low_cannot_store_register): ...this.
1923 (the_low_target): Remove the op fields.
1924 * linux-m68k-low.cc (class m68k_target)
1925 <low_cannot_fetch_register>
1926 <low_cannot_store_register>: Declare.
1927 (m68k_cannot_fetch_register): Turn into...
1928 (m68k_target::low_cannot_fetch_register): ...this.
1929 (m68k_cannot_store_register): Turn into...
1930 (m68k_target::low_cannot_store_register): ...this.
1931 (the_low_target): Remove the op fields.
1932 * linux-mips-low.cc (class mips_target)
1933 <low_cannot_fetch_register>
1934 <low_cannot_store_register>: Declare.
1935 (mips_cannot_fetch_register): Turn into...
1936 (mips_target::low_cannot_fetch_register): ...this.
1937 (mips_cannot_store_register): Turn into...
1938 (mips_target::low_cannot_store_register): ...this.
1939 (get_usrregs_info): Inline at the call sites in
1940 low_cannot_fetch_register and low_cannot_store_register,
1942 (the_low_target): Remove the op fields.
1943 * linux-nios2-low.cc (class nios2_target)
1944 <low_cannot_fetch_register>
1945 <low_cannot_store_register>: Declare.
1946 (nios2_cannot_fetch_register): Turn into...
1947 (nios2_target::low_cannot_fetch_register): ...this.
1948 (nios2_cannot_store_register): Turn into...
1949 (nios2_target::low_cannot_store_register): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-ppc-low.cc (class ppc_target)
1952 <low_cannot_fetch_register>
1953 <low_cannot_store_register>: Declare.
1954 (ppc_cannot_fetch_register): Turn into...
1955 (ppc_target::low_cannot_fetch_register): ...this.
1956 (ppc_cannot_store_register): Turn into...
1957 (ppc_target::low_cannot_store_register): ...this.
1958 (the_low_target): Remove the op fields.
1959 * linux-riscv-low.cc (class riscv_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (riscv_target::low_cannot_fetch_register)
1963 (riscv_target::low_cannot_store_register): Define.
1964 (the_low_target): Remove the op fields.
1965 * linux-s390-low.cc (class s390_target)
1966 <low_cannot_fetch_register>
1967 <low_cannot_store_register>: Declare.
1968 (s390_cannot_fetch_register): Turn into...
1969 (s390_target::low_cannot_fetch_register): ...this.
1970 (s390_cannot_store_register): Turn into...
1971 (s390_target::low_cannot_store_register): ...this.
1972 (the_low_target): Remove the op fields.
1973 * linux-sh-low.cc (class sh_target)
1974 <low_cannot_fetch_register>
1975 <low_cannot_store_register>: Declare.
1976 (sh_cannot_fetch_register): Turn into...
1977 (sh_target::low_cannot_fetch_register): ...this.
1978 (sh_cannot_store_register): Turn into...
1979 (sh_target::low_cannot_store_register): ...this.
1980 (the_low_target): Remove the op fields.
1981 * linux-sparc-low.cc (class sparc_target)
1982 <low_cannot_fetch_register>
1983 <low_cannot_store_register>: Declare.
1984 (sparc_cannot_fetch_register): Turn into...
1985 (sparc_target::low_cannot_fetch_register): ...this.
1986 (sparc_cannot_store_register): Turn into...
1987 (sparc_target::low_cannot_store_register): ...this.
1988 (the_low_target): Remove the op fields.
1989 * linux-tic6x-low.cc (class tic6x_target)
1990 <low_cannot_fetch_register>
1991 <low_cannot_store_register>: Declare.
1992 (tic6x_cannot_fetch_register): Turn into...
1993 (tic6x_target::low_cannot_fetch_register): ...this.
1994 (tic6x_cannot_store_register): Turn into...
1995 (tic6x_target::low_cannot_store_register): ...this.
1996 (the_low_target): Remove the op fields.
1997 * linux-tile-low.cc (class tile_target)
1998 <low_cannot_fetch_register>
1999 <low_cannot_store_register>: Declare.
2000 (tile_cannot_fetch_register): Turn into...
2001 (tile_target::low_cannot_fetch_register): ...this.
2002 (tile_cannot_store_register): Turn into...
2003 (tile_target::low_cannot_store_register): ...this.
2004 (the_low_target): Remove the op fields.
2005 * linux-xtensa-low.cc (class xtensa_target)
2006 <low_cannot_fetch_register>
2007 <low_cannot_store_register>: Declare.
2008 (xtensa_target::low_cannot_fetch_register)
2009 (xtensa_target::low_cannot_store_register): Define.
2010 (the_low_target): Remove the op fields.
2012 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2014 Turn the 'regs_info' linux target op into a method of
2015 linux_process_target.
2017 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2018 (class linux_process_target) <get_regs_info>: Define.
2020 Update the callers below.
2022 * linux-low.cc (linux_process_target::fetch_registers)
2023 (linux_process_target::store_registers)
2024 * proc-service.cc (gregset_info)
2026 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2027 (x86_linux_regs_info): Turn into ...
2028 (x86_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2032 (aarch64_regs_info): Turn into ...
2033 (aarch64_target::get_regs_info): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2036 (arm_regs_info): Turn into ...
2037 (arm_target::get_regs_info): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2040 (bfin_regs_info): Turn into ...
2041 (bfin_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2044 (cris_regs_info): Turn into ...
2045 (cris_target::get_regs_info): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2049 (crisv32_regs_info): Turn into ...
2050 (crisv32_target::get_regs_info): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2053 (ia64_regs_info): Turn into ...
2054 (ia64_target::get_regs_info): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2057 (m32r_regs_info): Turn into ...
2058 (m32r_target::get_regs_info): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2061 (m68k_regs_info): Turn into ...
2062 (m68k_target::get_regs_info): ...this.
2063 (the_low_target): Remove the op field.
2064 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2065 (mips_regs_info): Turn into ...
2066 (mips_target::get_regs_info): ...this.
2067 (the_low_target): Remove the op field.
2068 (get_usrregs_info): Update the call to the op.
2069 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2070 (nios2_regs_info): Turn into ...
2071 (nios2_target::get_regs_info): ...this.
2072 (the_low_target): Remove the op field.
2073 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2074 (ppc_regs_info): Turn into ...
2075 (ppc_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2078 (riscv_regs_info): Turn into ...
2079 (riscv_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2082 (s390_regs_info): Turn into ...
2083 (s390_target::get_regs_info): ...this.
2084 (the_low_target): Remove the op field.
2085 (s390_collect_ptrace_register)
2086 (s390_supply_ptrace_register)
2087 (s390_fill_gregset): Update the call to the op.
2088 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2089 (sh_regs_info): Turn into ...
2090 (sh_target::get_regs_info): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2093 (sparc_regs_info): Turn into ...
2094 (sparc_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2097 (tic6x_regs_info): Turn into ...
2098 (tic6x_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2101 (tile_regs_info): Turn into ...
2102 (tile_target::get_regs_info): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2106 (xtensa_regs_info): Turn into ...
2107 (xtensa_target::get_regs_info): ...this.
2108 (the_low_target): Remove the op field.
2110 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2112 Turn the 'arch_setup' linux target op into a method of
2113 linux_process_target.
2115 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2116 (class linux_process_target) <arch_setup_thread>
2117 <low_arch_setup>: New declarations.
2118 * linux-low.cc (linux_arch_setup): Delete.
2119 (linux_arch_setup_thread): Turn into...
2120 (linux_process_target::arch_setup_thread): ... this.
2122 Update the callers below.
2124 (linux_process_target::handle_extended_wait)
2125 (linux_process_target::post_create_inferior)
2126 (linux_process_target::filter_event)
2128 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2130 (x86_linux_update_xmltarget): Turn into...
2131 (x86_target::update_xmltarget): ...this.
2132 (x86_linux_process_qsupported): Update the call to
2133 x86_linux_update_xmltarget.
2134 (x86_arch_setup): Turn into ...
2135 (x86_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2139 (aarch64_arch_setup): Turn into ...
2140 (aarch64_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2144 (arm_arch_setup): Turn into ...
2145 (arm_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2149 (bfin_arch_setup): Turn into ...
2150 (bfin_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2154 (cris_arch_setup): Turn into ...
2155 (cris_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2159 (crisv32_arch_setup): Turn into ...
2160 (crisv32_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2164 (ia64_arch_setup): Turn into ...
2165 (ia64_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2169 (m32r_arch_setup): Turn into ...
2170 (m32r_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2174 (m68k_arch_setup): Turn into ...
2175 (m68k_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2179 (mips_arch_setup): Turn into ...
2180 (mips_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2184 (nios2_arch_setup): Turn into ...
2185 (nios2_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2189 (ppc_arch_setup): Turn into ...
2190 (ppc_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2194 (riscv_arch_setup): Turn into ...
2195 (riscv_target::low_arch_setup): ...this.
2196 (the_low_target): Remove the op field.
2197 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2199 (s390_arch_setup): Turn into ...
2200 (s390_target::low_arch_setup): ...this.
2201 (the_low_target): Remove the op field.
2202 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2204 (sh_arch_setup): Turn into ...
2205 (sh_target::low_arch_setup): ...this.
2206 (the_low_target): Remove the op field.
2207 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2209 (sparc_arch_setup): Turn into ...
2210 (sparc_target::low_arch_setup): ...this.
2211 (the_low_target): Remove the op field.
2212 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2214 (tic6x_arch_setup): Turn into ...
2215 (tic6x_target::low_arch_setup): ...this.
2216 (the_low_target): Remove the op field.
2217 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2219 (tile_arch_setup): Turn into ...
2220 (tile_target::low_arch_setup): ...this.
2221 (the_low_target): Remove the op field.
2222 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2224 (xtensa_arch_setup): Turn into ...
2225 (xtensa_target::low_arch_setup): ...this.
2226 (the_low_target): Remove the op field.
2228 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2230 * linux-low.h (the_linux_target): New extern declaration.
2231 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2233 (the_linux_target): Remove.
2234 * linux-x86-low.cc (class x86_target): New class.
2235 (the_x86_target): New static object.
2236 (the_linux_target): Define as pointer to the_x86_target.
2237 * linux-aarch64-low.cc (class aarch64_target): New class.
2238 (the_aarch64_target): New static object.
2239 (the_linux_target): Define as pointer to the_aarch64_target.
2240 * linux-arm-low.cc (class arm_target): New class.
2241 (the_arm_target): New static object.
2242 (the_linux_target): Define as pointer to the_arm_target.
2243 * linux-bfin-low.cc (class bfin_target): New class.
2244 (the_bfin_target): New static object.
2245 (the_linux_target): Define as pointer to the_bfin_target.
2246 * linux-cris-low.cc (class cris_target): New class.
2247 (the_cris_target): New static object.
2248 (the_linux_target): Define as pointer to the_cris_target.
2249 * linux-crisv32-low.cc (class crisv32_target): New class.
2250 (the_crisv32_target): New static object.
2251 (the_linux_target): Define as pointer to the_crisv32_target.
2252 * linux-ia64-low.cc (class ia64_target): New class.
2253 (the_ia64_target): New static object.
2254 (the_linux_target): Define as pointer to the_ia64_target.
2255 * linux-m32r-low.cc (class m32r_target): New class.
2256 (the_m32r_target): New static object.
2257 (the_linux_target): Define as pointer to the_m32r_target.
2258 * linux-m68k-low.cc (class m68k_target): New class.
2259 (the_m68k_target): New static object.
2260 (the_linux_target): Define as pointer to the_m68k_target.
2261 * linux-mips-low.cc (class mips_target): New class.
2262 (the_mips_target): New static object.
2263 (the_linux_target): Define as pointer to the_mips_target.
2264 * linux-nios2-low.cc (class nios2_target): New class.
2265 (the_nios2_target): New static object.
2266 (the_linux_target): Define as pointer to the_nios2_target.
2267 * linux-ppc-low.cc (class ppc_target): New class.
2268 (the_ppc_target): New static object.
2269 (the_linux_target): Define as pointer to the_ppc_target.
2270 * linux-riscv-low.cc (class riscv_target): New class.
2271 (the_riscv_target): New static object.
2272 (the_linux_target): Define as pointer to the_riscv_target.
2273 * linux-s390-low.cc (class s390_target): New class.
2274 (the_s390_target): New static object.
2275 (the_linux_target): Define as pointer to the_s390_target.
2276 * linux-sh-low.cc (class sh_target): New class.
2277 (the_sh_target): New static object.
2278 (the_linux_target): Define as pointer to the_sh_target.
2279 * linux-sparc-low.cc (class sparc_target): New class.
2280 (the_sparc_target): New static object.
2281 (the_linux_target): Define as pointer to the_sparc_target.
2282 * linux-tic6x-low.cc (class tic6x_target): New class.
2283 (the_tic6x_target): New static object.
2284 (the_linux_target): Define as pointer to the_tic6x_target.
2285 * linux-tile-low.cc (class tile_target): New class.
2286 (the_tile_target): New static object.
2287 (the_linux_target): Define as pointer to the_tile_target.
2288 * linux-xtensa-low.cc (class xtensa_target): New class.
2289 (the_xtensa_target): New static object.
2290 (the_linux_target): Define as pointer to the_xtensa_target.
2292 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2294 Turn some static functions in linux-low.cc into private methods of
2295 linux_process_target.
2297 * linux-low.cc (handle_extended_wait): Turn into ...
2298 (linux_process_target::handle_extended_wait): ...this. Call
2299 'mourn' on 'this' object instead of 'the_target'.
2300 (maybe_move_out_of_jump_pad): Turn into...
2301 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2302 (linux_low_filter_event): Turn into...
2303 (linux_process_target::filter_event): ...this.
2304 (linux_wait_for_event_filtered): Turn into...
2305 (linux_process_target::wait_for_event_filtered): ...this.
2306 (linux_wait_for_event): Turn into...
2307 (linux_process_target::wait_for_event): ...this.
2308 (linux_wait_1): Turn into...
2309 (linux_process_target::wait_1): ...this.
2310 (wait_for_sigstop): Turn into...
2311 (linux_process_target::wait_for_sigstop): ...this.
2312 (move_out_of_jump_pad_callback): Turn into...
2313 (linux_process_target::move_out_of_jump_pad): ...this.
2314 (stop_all_lwps): Turn into...
2315 (linux_process_target::stop_all_lwps): ...this.
2316 (start_step_over): Turn into...
2317 (linux_process_target::start_step_over): ...this.
2318 (complete_ongoing_step_over): Turn into...
2319 (linux_process_target::complete_ongoing_step_over): ...this.
2320 (proceed_all_lwps): Turn into...
2321 (linux_process_target::proceed_all_lwps): ...this.
2322 (unstop_all_lwps): Turn into...
2323 (linux_process_target::unstop_all_lwps): ...this.
2325 * linux-low.h (class linux_process_target)
2326 <handle_extended_wait>
2327 <maybe_move_out_of_jump_pad>
2329 <wait_for_event_filtered>
2333 <move_out_of_jump_pad>
2336 <complete_ongoing_step_over>
2338 <unstop_all_lwps>: Declare.
2340 Update the callers below.
2342 * linux-low.cc (linux_process_target::attach): Update.
2343 (linux_process_target::stabilize_threads): Ditto.
2344 (linux_process_target::wait): Ditto.
2346 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2348 * linux-low.h (struct linux_target_ops): Update the comment for
2349 'cannot_store_register' to return 0 or 1.
2350 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2353 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2355 * config.in: Re-generate.
2356 * configure: Re-generate.
2358 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2360 * regcache.cc (find_register_by_number): Update.
2361 * tdesc.cc (init_target_desc): Likewise.
2362 * tdesc.h (target_desc::reg_defs): Likewise.
2364 2020-03-12 Tom Tromey <tom@tromey.com>
2366 * configure: Rebuild.
2367 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2368 (WIN32APILIBS): New subst.
2369 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2371 (gdbsupport/%.o): Remove target.
2372 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2373 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2374 (WIN32APILIBS): New variable.
2375 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2376 (gdbreplay$(EXEEXT)): Likewise.
2378 2020-03-12 Tom Tromey <tom@tromey.com>
2380 * config.in, configure: Rebuild.
2381 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2382 * acinclude.m4: Include gettext-sister.m4.
2383 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2385 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2386 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2388 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2390 * acinclude.m4: Update path to selftest.m4.
2392 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2394 * configure.ac: Don't source bfd/development.sh, move
2395 GDB_AC_COMMON higher.
2396 * configure: Re-generate.
2398 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2400 * configure: Re-generate.
2402 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2404 * configure: Re-generate.
2406 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2408 * .dir-locals.el: New file.
2410 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2412 * .gitattributes: New file.
2414 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2416 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2417 reply into an S reply.
2418 * server.cc (disable_packet_T): New global.
2419 (captured_main): Set new global when appropriate.
2420 * server.h (disable_packet_T): Declare.
2422 2020-02-21 Tom Tromey <tom@tromey.com>
2424 * Makefile.in (mostlyclean): New target.
2426 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2428 * target.h (struct process_stratum_target): Remove.
2429 (class process_target): Rename to ...
2430 (class process_stratum_target): ... this.
2431 * linux-low.h (class linux_process_target): Derive from
2432 'process_stratum_target'.
2433 * linux-low.cc (linux_target_ops): Remove.
2434 (initialize_low): Set the_target to the singleton instance of
2435 linux_process_target.
2436 * lynx-low.h (class lynx_process_target): Derive from
2437 'process_stratum_target'.
2438 * lynx-low.cc (lynx_target_ops): Remove.
2439 (initialize_low): Set the_target to the singleton instance of
2440 lynx_process_target.
2441 * nto-low.h (class nto_process_target): Derive from
2442 'process_stratum_target'.
2443 * nto-low.cc (nto_target_ops): Remove.
2444 (initialize_low): Set the_target to the singleton instance of
2446 * win32-low.h (class win32_process_target): Derive from
2447 'process_stratum_target'.
2448 * win32-low.cc (win32_target_ops): Remove.
2449 (initialize_low): Set the_target to the singleton instance of
2450 win32_process_target.
2452 Replace 'the_target->pt' with 'the_target' in the uses below.
2454 * hostio.cc (hostio_error)
2459 * linux-aarch32-low.cc (arm_breakpoint_at)
2460 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2461 * linux-arm-low.cc (arm_sigreturn_next_pc)
2463 (arm_get_syscall_trapinfo)
2464 * linux-cris-low.cc (cris_breakpoint_at)
2465 * linux-crisv32-low.cc (cris_breakpoint_at)
2466 * linux-low.cc (handle_extended_wait)
2469 (linux_process_target::breakpoint_kind_from_pc)
2471 * linux-m32r-low.cc (m32r_breakpoint_at)
2472 * linux-mips-low.cc (mips_breakpoint_at)
2473 * linux-nios2-low.cc (nios2_breakpoint_at)
2474 * linux-ppc-low.cc (ppc_breakpoint_at)
2475 * linux-s390-low.cc (s390_get_hwcap)
2476 * linux-sh-low.cc (sh_breakpoint_at)
2477 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2478 (sparc_store_gregset_from_stack)
2479 (sparc_breakpoint_at)
2480 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2481 * linux-tile-low.cc (tile_breakpoint_at)
2482 * linux-x86-low.cc (x86_breakpoint_at)
2483 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2484 * mem-break.cc (bp_size)
2486 (insert_memory_breakpoint)
2487 (set_raw_breakpoint_at)
2488 (delete_raw_breakpoint)
2490 (uninsert_raw_breakpoint)
2491 (reinsert_raw_breakpoint)
2492 (validate_inserted_breakpoint)
2493 * regcache.cc (regcache_read_pc)
2495 * remote-utils.cc (putpkt_binary_1)
2498 (prepare_resume_reply)
2499 * server.cc (handle_general_set)
2502 (handle_qxfer_exec_file)
2503 (handle_qxfer_libraries_svr4)
2504 (handle_qxfer_osdata)
2505 (handle_qxfer_siginfo)
2506 (handle_qxfer_fdpic)
2510 (queue_stop_reply_callback)
2512 * target.cc (prepare_to_access_memory)
2513 (done_accessing_memory)
2514 (read_inferior_memory)
2515 (target_write_memory)
2516 (target_stop_and_wait)
2518 (target_mourn_inferior)
2519 (target_continue_no_signal)
2521 (target_supports_multi_process)
2524 (target_create_inferior)
2525 (target_post_create_inferior)
2527 (target_supports_fork_events)
2528 (target_supports_vfork_events)
2529 (target_supports_exec_events)
2530 (target_handle_new_gdb_connection)
2533 (fetch_inferior_registers)
2534 (store_inferior_registers)
2536 (target_supports_non_stop)
2538 (target_process_qsupported)
2539 (target_supports_catch_syscall)
2540 (target_get_ipa_tdesc_idx)
2541 (target_supports_tracepoints)
2542 (target_supports_fast_tracepoints)
2543 (target_get_min_fast_tracepoint_insn_len)
2544 (target_thread_stopped)
2546 (target_unpause_all)
2547 (target_stabilize_threads)
2548 (target_install_fast_tracepoint_jump_pad)
2550 (target_supports_disable_randomization)
2551 (target_supports_agent)
2552 (target_enable_btrace)
2553 (target_disable_btrace)
2554 (target_read_btrace)
2555 (target_read_btrace_conf)
2556 (target_supports_range_stepping)
2557 (target_supports_stopped_by_sw_breakpoint)
2558 (target_stopped_by_sw_breakpoint)
2559 (target_supports_stopped_by_hw_breakpoint)
2560 (target_supports_hardware_single_step)
2561 (target_stopped_by_hw_breakpoint)
2562 (target_breakpoint_kind_from_pc)
2563 (target_breakpoint_kind_from_current_state)
2564 (target_supports_software_single_step)
2565 (target_core_of_thread)
2566 (target_thread_name)
2567 (target_thread_handle)
2568 * win32-low.cc (do_initial_child_stuff)
2570 Rename target op default definitions listed below.
2572 * target.cc (process_target::post_create_inferior): Rename as ...
2573 (process_stratum_target::post_create_inferior): ... this.
2574 (process_target::prepare_to_access_memory): Rename as ...
2575 (process_stratum_target::prepare_to_access_memory): ... this.
2576 (process_target::done_accessing_memory): Rename as ...
2577 (process_stratum_target::done_accessing_memory): ... this.
2578 (process_target::look_up_symbols): Rename as ...
2579 (process_stratum_target::look_up_symbols): ... this.
2580 (process_target::supports_read_auxv): Rename as ...
2581 (process_stratum_target::supports_read_auxv): ... this.
2582 (process_target::read_auxv): Rename as ...
2583 (process_stratum_target::read_auxv): ... this.
2584 (process_target::supports_z_point_type): Rename as ...
2585 (process_stratum_target::supports_z_point_type): ... this.
2586 (process_target::insert_point): Rename as ...
2587 (process_stratum_target::insert_point): ... this.
2588 (process_target::remove_point): Rename as ...
2589 (process_stratum_target::remove_point): ... this.
2590 (process_target::stopped_by_sw_breakpoint): Rename as ...
2591 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2592 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2593 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2594 (process_target::stopped_by_hw_breakpoint): Rename as ...
2595 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2596 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2597 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2598 (process_target::supports_hardware_single_step): Rename as ...
2599 (process_stratum_target::supports_hardware_single_step): ... this.
2600 (process_target::stopped_by_watchpoint): Rename as ...
2601 (process_stratum_target::stopped_by_watchpoint): ... this.
2602 (process_target::stopped_data_address): Rename as ...
2603 (process_stratum_target::stopped_data_address): ... this.
2604 (process_target::supports_read_offsets): Rename as ...
2605 (process_stratum_target::supports_read_offsets): ... this.
2606 (process_target::read_offsets): Rename as ...
2607 (process_stratum_target::read_offsets): ... this.
2608 (process_target::supports_get_tls_address): Rename as ...
2609 (process_stratum_target::supports_get_tls_address): ... this.
2610 (process_target::get_tls_address): Rename as ...
2611 (process_stratum_target::get_tls_address): ... this.
2612 (process_target::hostio_last_error): Rename as ...
2613 (process_stratum_target::hostio_last_error): ... this.
2614 (process_target::supports_qxfer_osdata): Rename as ...
2615 (process_stratum_target::supports_qxfer_osdata): ... this.
2616 (process_target::qxfer_osdata): Rename as ...
2617 (process_stratum_target::qxfer_osdata): ... this.
2618 (process_target::supports_qxfer_siginfo): Rename as ...
2619 (process_stratum_target::supports_qxfer_siginfo): ... this.
2620 (process_target::qxfer_siginfo): Rename as ...
2621 (process_stratum_target::qxfer_siginfo): ... this.
2622 (process_target::supports_non_stop): Rename as ...
2623 (process_stratum_target::supports_non_stop): ... this.
2624 (process_target::async): Rename as ...
2625 (process_stratum_target::async): ... this.
2626 (process_target::start_non_stop): Rename as ...
2627 (process_stratum_target::start_non_stop): ... this.
2628 (process_target::supports_multi_process): Rename as ...
2629 (process_stratum_target::supports_multi_process): ... this.
2630 (process_target::supports_fork_events): Rename as ...
2631 (process_stratum_target::supports_fork_events): ... this.
2632 (process_target::supports_vfork_events): Rename as ...
2633 (process_stratum_target::supports_vfork_events): ... this.
2634 (process_target::supports_exec_events): Rename as ...
2635 (process_stratum_target::supports_exec_events): ... this.
2636 (process_target::handle_new_gdb_connection): Rename as ...
2637 (process_stratum_target::handle_new_gdb_connection): ... this.
2638 (process_target::handle_monitor_command): Rename as ...
2639 (process_stratum_target::handle_monitor_command): ... this.
2640 (process_target::core_of_thread): Rename as ...
2641 (process_stratum_target::core_of_thread): ... this.
2642 (process_target::supports_read_loadmap): Rename as ...
2643 (process_stratum_target::supports_read_loadmap): ... this.
2644 (process_target::read_loadmap): Rename as ...
2645 (process_stratum_target::read_loadmap): ... this.
2646 (process_target::process_qsupported): Rename as ...
2647 (process_stratum_target::process_qsupported): ... this.
2648 (process_target::supports_tracepoints): Rename as ...
2649 (process_stratum_target::supports_tracepoints): ... this.
2650 (process_target::read_pc): Rename as ...
2651 (process_stratum_target::read_pc): ... this.
2652 (process_target::write_pc): Rename as ...
2653 (process_stratum_target::write_pc): ... this.
2654 (process_target::supports_thread_stopped): Rename as ...
2655 (process_stratum_target::supports_thread_stopped): ... this.
2656 (process_target::thread_stopped): Rename as ...
2657 (process_stratum_target::thread_stopped): ... this.
2658 (process_target::supports_get_tib_address): Rename as ...
2659 (process_stratum_target::supports_get_tib_address): ... this.
2660 (process_target::get_tib_address): Rename as ...
2661 (process_stratum_target::get_tib_address): ... this.
2662 (process_target::pause_all): Rename as ...
2663 (process_stratum_target::pause_all): ... this.
2664 (process_target::unpause_all): Rename as ...
2665 (process_stratum_target::unpause_all): ... this.
2666 (process_target::stabilize_threads): Rename as ...
2667 (process_stratum_target::stabilize_threads): ... this.
2668 (process_target::supports_fast_tracepoints): Rename as ...
2669 (process_stratum_target::supports_fast_tracepoints): ... this.
2670 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2671 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2672 (process_target::emit_ops): Rename as ...
2673 (process_stratum_target::emit_ops): ... this.
2674 (process_target::supports_disable_randomization): Rename as ...
2675 (process_stratum_target::supports_disable_randomization): ... this.
2676 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2677 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2678 (process_target::qxfer_libraries_svr4): Rename as ...
2679 (process_stratum_target::qxfer_libraries_svr4): ... this.
2680 (process_target::supports_agent): Rename as ...
2681 (process_stratum_target::supports_agent): ... this.
2682 (process_target::enable_btrace): Rename as ...
2683 (process_stratum_target::enable_btrace): ... this.
2684 (process_target::disable_btrace): Rename as ...
2685 (process_stratum_target::disable_btrace): ... this.
2686 (process_target::read_btrace): Rename as ...
2687 (process_stratum_target::read_btrace): ... this.
2688 (process_target::read_btrace_conf): Rename as ...
2689 (process_stratum_target::read_btrace_conf): ... this.
2690 (process_target::supports_range_stepping): Rename as ...
2691 (process_stratum_target::supports_range_stepping): ... this.
2692 (process_target::supports_pid_to_exec_file): Rename as ...
2693 (process_stratum_target::supports_pid_to_exec_file): ... this.
2694 (process_target::pid_to_exec_file): Rename as ...
2695 (process_stratum_target::pid_to_exec_file): ... this.
2696 (process_target::supports_multifs): Rename as ...
2697 (process_stratum_target::supports_multifs): ... this.
2698 (process_target::multifs_open): Rename as ...
2699 (process_stratum_target::multifs_open): ... this.
2700 (process_target::multifs_unlink): Rename as ...
2701 (process_stratum_target::multifs_unlink): ... this.
2702 (process_target::multifs_readlink): Rename as ...
2703 (process_stratum_target::multifs_readlink): ... this.
2704 (process_target::breakpoint_kind_from_pc): Rename as ...
2705 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2706 (process_target::breakpoint_kind_from_current_state): Rename as ...
2707 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2708 (process_target::thread_name): Rename as ...
2709 (process_stratum_target::thread_name): ... this.
2710 (process_target::thread_handle): Rename as ...
2711 (process_stratum_target::thread_handle): ... this.
2712 (process_target::supports_software_single_step): Rename as ...
2713 (process_stratum_target::supports_software_single_step): ... this.
2714 (process_target::supports_catch_syscall): Rename as ...
2715 (process_stratum_target::supports_catch_syscall): ... this.
2716 (process_target::get_ipa_tdesc_idx): Rename as ...
2717 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2719 2020-02-20 Pedro Alves <palves@redhat.com>
2721 * target.cc (set_target_ops): Simply copy the given target pointer
2722 instead of creating a copy of the pointed object.
2724 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2726 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2729 * target.h (struct process_stratum_target): Remove the target op.
2730 (class process_target): Add the target op.
2731 (target_get_ipa_tdesc_idx): Update the macro.
2732 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2734 Update the derived classes and callers below.
2736 * linux-low.cc (linux_target_ops): Update.
2737 (linux_get_ipa_tdesc_idx): Turn into ...
2738 (linux_process_target::get_ipa_tdesc_idx): ... this.
2739 * linux-low.h (class linux_process_target): Update.
2740 * lynx-low.cc (lynx_target_ops): Update.
2741 * nto-low.cc (nto_target_ops): Update.
2742 * win32-low.cc (win32_target_ops): Update.
2744 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2746 Turn process_stratum_target's supports_catch_syscall op into a
2747 method of process_target.
2749 * target.h (struct process_stratum_target): Remove the target op.
2750 (class process_target): Add the target op.
2751 (target_supports_catch_syscall): Update the macro.
2752 * target.cc (process_target::supports_catch_syscall): Define.
2754 Update the derived classes and callers below.
2756 * linux-low.cc (linux_target_ops): Update.
2757 (linux_supports_catch_syscall): Turn into ...
2758 (linux_process_target::supports_catch_syscall): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766 Turn process_stratum_target's supports_software_single_step op
2767 into a method of process_target.
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_supports_software_single_step): Update the macro.
2772 * target.cc (process_target::supports_software_single_step): Define.
2774 Update the derived classes and callers below.
2776 * linux-low.cc (linux_target_ops): Update.
2777 (linux_supports_software_single_step): Turn into ...
2778 (linux_process_target::supports_software_single_step): ... this.
2779 * linux-low.h (class linux_process_target): Update.
2780 * lynx-low.cc (lynx_target_ops): Update.
2781 * nto-low.cc (nto_target_ops): Update.
2782 * win32-low.cc (win32_target_ops): Update.
2784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2786 Turn process_stratum_target's thread_name and thread_handle ops
2787 into methods of process_target.
2789 * target.h (struct process_stratum_target): Remove the target ops.
2790 (class process_target): Add the target ops.
2791 (target_thread_name): Update the macro.
2792 (target_thread_handle): Update the macro.
2793 * target.cc (process_target::thread_name): Define.
2794 (process_target::thread_handle): Define.
2796 Update the derived classes and callers below.
2798 * linux-low.cc (linux_target_ops): Update.
2799 (linux_process_target::thread_name): Define.
2800 (linux_process_target::thread_handle): Define.
2801 * linux-low.h (class linux_process_target): Update.
2802 * lynx-low.cc (lynx_target_ops): Update.
2803 * nto-low.cc (nto_target_ops): Update.
2804 * win32-low.cc (win32_target_ops): Update.
2806 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808 Turn process_stratum_target's breakpoint_kind_from_pc,
2809 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2810 ops into methods of process_target.
2812 * target.h (struct process_stratum_target): Remove the target op.
2813 (class process_target): Add the target op.
2814 (target_breakpoint_kind_from_pc): Update the macro.
2815 (target_breakpoint_kind_from_current_state): Update the macro.
2816 (default_breakpoint_kind_from_pc): Remove declaration.
2817 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2818 (process_target::breakpoint_kind_from_pc): ... this.
2819 (process_target::breakpoint_kind_from_current_state): Define.
2821 Update the derived classes and callers below.
2823 * mem-break.cc (bp_size): Update.
2824 (bp_opcode): Update.
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_wait_1): Update.
2827 (linux_breakpoint_kind_from_pc): Turn into ...
2828 (linux_process_target::breakpoint_kind_from_pc): ... this.
2829 (linux_sw_breakpoint_from_kind): Turn into ...
2830 (linux_process_target::sw_breakpoint_from_kind): ... this.
2831 (linux_breakpoint_kind_from_current_state): Turn into ...
2832 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2833 * linux-low.h (class linux_process_target): Update.
2834 * lynx-low.cc (lynx_target_ops): Update.
2835 (lynx_process_target::sw_breakpoint_from_kind): Define.
2836 * lynx-low.h (class lynx_process_target): Update.
2837 * nto-low.cc (nto_target_ops): Update.
2838 (nto_sw_breakpoint_from_kind): Turn into ...
2839 (nto_process_target::sw_breakpoint_from_kind): ... this.
2840 * nto-low.h (class nto_process_target): Update.
2841 * win32-low.cc (win32_target_ops): Update.
2842 (win32_sw_breakpoint_from_kind): Turn into ...
2843 (win32_process_target::sw_breakpoint_from_kind): ... this.
2844 * win32-low.h (class win32_process_target): Update.
2846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2848 Turn process_stratum_target's multifs_open, multifs_readlink,
2849 multifs_unlink ops into methods of process_target.
2851 * target.h (struct process_stratum_target): Remove the target ops.
2852 (class process_target): Add the target ops. Also add
2854 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2856 (process_target::supports_multifs): Define.
2857 (process_target::multifs_open): Define.
2858 (process_target::multifs_readlink): Define.
2859 (process_target::multifs_unlink): Define.
2861 Update the derived classes and callers below.
2863 * hostio.cc (handle_setfs): Update.
2864 (handle_open): Update.
2865 (handle_unlink): Update.
2866 (handle_readlink): Update.
2867 * linux-low.cc (linux_target_ops): Update.
2868 (linux_process_target::supports_multifs): Define.
2869 (linux_process_target::multifs_open): Define.
2870 (linux_process_target::multifs_readlink): Define.
2871 (linux_process_target::multifs_unlink): Define.
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 pid_to_exec_file op into a method
2882 * target.h (struct process_stratum_target): Remove the target op.
2883 (class process_target): Add the target op. Also add
2884 'supports_pid_to_exec_file'.
2885 * target.cc (process_target::pid_to_exec_file): Define.
2886 (process_target::supports_pid_to_exec_file): Define.
2888 Update the derived classes and callers below.
2890 * server.cc (handle_qxfer_exec_file): Update.
2891 (handle_query): Update.
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_process_target::supports_pid_to_exec_file): Define.
2894 (linux_process_target::pid_to_exec_file): Define.
2895 * linux-low.h (class linux_process_target): Update.
2896 * lynx-low.cc (lynx_target_ops): Update.
2897 * nto-low.cc (nto_target_ops): Update.
2898 * win32-low.cc (win32_target_ops): Update.
2900 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902 Turn process_stratum_target's supports_range_stepping op into a
2903 method of process_target.
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op.
2907 (target_supports_range_stepping): Update the macro.
2908 * target.cc (process_target::supports_range_stepping): Define.
2910 Update the derived classes and callers below.
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_supports_range_stepping): Turn into ...
2914 (linux_process_target::supports_range_stepping): ... this.
2915 * linux-low.h (class linux_process_target): Update.
2916 * lynx-low.cc (lynx_target_ops): Update.
2917 * nto-low.cc (nto_target_ops): Update.
2918 * win32-low.cc (win32_target_ops): Update.
2920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922 Turn process_stratum_target's btrace-related ops (enable_btrace,
2923 disable_btrace, read_btrace, read_btrace_conf) into methods of
2926 * target.h (struct process_stratum_target): Remove the target ops.
2927 (class process_target): Add the target ops.
2928 (target_enable_btrace): Update.
2929 (target_disable_btrace): Update.
2930 (target_read_btrace): Update.
2931 (target_read_btrace_conf): Update.
2932 * target.cc (process_target::enable_btrace): Define.
2933 (process_target::disable_btrace): Define.
2934 (process_target::read_btrace): Define.
2935 (process_target::read_btrace_conf): Define.
2937 Update the derived classes and callers below.
2939 * linux-low.cc (linux_target_ops): Update.
2940 (linux_process_target:enable_btrace): Define as a wrapper around
2941 linux_enable_btrace.
2942 (linux_low_disable_btrace): Turn into ...
2943 (linux_process_target::disable_btrace): ... this.
2944 (linux_low_read_btrace): Turn into ...
2945 (linux_process_target::read_btrace): ... this.
2946 (linux_low_btrace_conf): Turn into ...
2947 (linux_process_target::read_btrace_conf): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 * win32-low.cc (win32_target_ops): Update.
2953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955 Turn process_stratum_target's supports_agent op into a method of
2958 * target.h (struct process_stratum_target): Remove the target op.
2959 (class process_target): Add the target op.
2960 (target_supports_agent): Update the macro.
2961 * target.cc (process_target::supports_agent): Define.
2963 Update the derived classes and callers below.
2965 * linux-low.cc (linux_target_ops): Update.
2966 (linux_supports_agent): Turn into ...
2967 (linux_process_target::supports_agent): ... this.
2968 * linux-low.h (class linux_process_target): Update.
2969 * lynx-low.cc (lynx_target_ops): Update.
2970 * nto-low.cc (nto_target_ops): Update.
2971 * win32-low.cc (win32_target_ops): Update.
2973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2975 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2976 method of process_target.
2978 * target.h (struct process_stratum_target): Remove the target op.
2979 (class process_target): Add the target op. Also add
2980 'supports_qxfer_libraries_svr4'.
2981 * target.cc (process_target::qxfer_libraries_svr4): Define.
2982 (process_target::supports_qxfer_libraries_svr4): Define.
2984 Update the derived classes and callers below.
2986 * server.cc (handle_qxfer_libraries_svr4): Update.
2987 (handle_query): Update.
2988 * linux-low.cc (linux_target_ops): Update.
2989 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2990 (linux_qxfer_libraries_svr4): Turn into ...
2991 (linux_process_target::qxfer_libraries_svr4): ... this.
2992 * linux-low.h (class linux_process_target): Update.
2993 * lynx-low.cc (lynx_target_ops): Update.
2994 * nto-low.cc (nto_target_ops): Update.
2995 * win32-low.cc (win32_target_ops): Update.
2997 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2999 Turn process_stratum_target's supports_disable_randomization op
3000 into a method of process_target.
3002 * target.h (struct process_stratum_target): Remove the target op.
3003 (class process_target): Add the target op.
3004 (target_supports_disable_randomization): Update the macro.
3005 * target.cc (process_target::supports_disable_randomization): Define.
3007 Update the derived classes and callers below.
3009 * linux-low.cc (linux_target_ops): Update.
3010 (linux_supports_disable_randomization): Turn into ...
3011 (linux_process_target::supports_disable_randomization): ... this.
3012 * linux-low.h (class linux_process_target): Update.
3013 * lynx-low.cc (lynx_target_ops): Update.
3014 * nto-low.cc (nto_target_ops): Update.
3015 * win32-low.cc (win32_target_ops): Update.
3017 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3019 Turn process_stratum_target's emit_ops op into a method of
3022 * target.h (struct process_stratum_target): Remove the target op.
3023 (class process_target): Add the target op.
3024 (target_emit_ops): Update the macro.
3025 * target.cc (process_target::emit_ops): Define.
3027 Update the derived classes and callers below.
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_emit_ops): Turn into ...
3031 (linux_process_target::emit_ops): ... this.
3032 * linux-low.h (class linux_process_target): Update.
3033 * lynx-low.cc (lynx_target_ops): Update.
3034 * nto-low.cc (nto_target_ops): Update.
3035 * win32-low.cc (win32_target_ops): Update.
3037 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3039 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3040 and get_min_fast_tracepoint_insn_len ops into methods of
3043 * target.h (struct process_stratum_target): Remove the target ops.
3044 (class process_target): Add the target ops. Also add
3045 'supports_fast_tracepoints'.
3046 (target_supports_fast_tracepoints): Update the macro.
3047 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3048 (install_fast_tracepoint_jump_pad): Update and rename the macro
3050 (target_install_fast_tracepoint_jump_pad): ... this.
3051 * target.cc (process_target::supports_fast_tracepoints): Define.
3052 (process_target::install_fast_tracepoint_jump_pad): Define.
3053 (process_target::get_min_fast_tracepoint_insn_len): Define.
3055 Update the derived classes and callers below.
3057 * tracepoint.cc (install_fast_tracepoint): Update.
3058 * linux-low.cc (linux_target_ops): Update.
3059 (linux_process_target::supports_fast_tracepoints): Define.
3060 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3061 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3062 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3063 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3064 * linux-low.h (class linux_process_target): Update.
3065 * lynx-low.cc (lynx_target_ops): Update.
3066 * nto-low.cc (nto_target_ops): Update.
3067 * win32-low.cc (win32_target_ops): Update.
3069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3071 Turn process_stratum_target's stabilize_threads op into a
3072 method of process_target.
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op.
3076 (target_stabilize_threads): Update the macro.
3077 * target.cc (process_target::stabilize_threads): Define.
3079 Update the derived classes and callers below.
3081 * server.cc (handle_status): Update.
3082 * tracepoint.cc (cmd_qtdp): Update.
3083 (cmd_qtstart): Update.
3084 * linux-low.cc (linux_target_ops): Update.
3085 (linux_stabilize_threads): Turn into ...
3086 (linux_process_target::stabilize_threads): ... this.
3087 (linux_wait_1): Update.
3088 * linux-low.h (class linux_process_target): Update.
3089 * lynx-low.cc (lynx_target_ops): Update.
3090 * nto-low.cc (nto_target_ops): Update.
3091 * win32-low.cc (win32_target_ops): Update.
3093 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095 Turn process_stratum_target's pause_all and unpause_all ops
3096 into methods of process_target.
3098 * target.h (struct process_stratum_target): Remove the target ops.
3099 (class process_target): Add the target ops.
3100 (pause_all): Update the macro and rename to...
3101 (target_pause_all): ... this.
3102 (unpause_all): Update the macro and rename to...
3103 (target_unpause_all): ... this.
3104 * target.cc (process_target::pause_all): Define.
3105 (process_target::unpause_all): Define.
3107 Update the derived classes and callers below.
3109 * server.cc (handle_status): Update.
3110 * tracepoint.cc (clear_installed_tracepoints): Update.
3112 (cmd_qtstart): Update.
3113 (stop_tracing): Update.
3114 (cmd_qtstatus): Update.
3115 (upload_fast_traceframes): Update.
3116 (run_inferior_command): Update.
3117 * linux-low.cc (linux_target_ops): Update.
3118 (linux_pause_all): Turn into ...
3119 (linux_process_target::pause_all): ... this.
3120 (linux_unpause_all): Turn into ...
3121 (linux_process_target::unpause_all): ... this.
3122 (linux_process_target::prepare_to_access_memory): Update.
3123 (linux_process_target::done_accessing_memory): Update.
3124 * linux-low.h (class linux_process_target): Update.
3125 * lynx-low.cc (lynx_target_ops): Update.
3126 * nto-low.cc (nto_target_ops): Update.
3127 * win32-low.cc (win32_target_ops): Update.
3129 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3131 Turn process_stratum_target's get_tib_address op into a method of
3134 * target.h (struct process_stratum_target): Remove the target op.
3135 (class process_target): Add the target op. Also add
3136 'supports_get_tib_address'.
3137 * target.cc (process_target::get_tib_address): Define.
3138 (process_target::supports_get_tib_address): Define.
3140 Update the derived classes and callers below.
3142 * server.cc (handle_query): Update.
3143 * linux-low.cc (win32_target_ops): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 * win32-low.cc (win32_target_ops): Update.
3147 (win32_process_target::supports_get_tib_address): Define.
3148 (win32_get_tib_address): Turn into ...
3149 (win32_process_target::get_tib_address): ... this.
3150 * win32-low.h (class win32_process_target): Update.
3152 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3154 Turn process_stratum_target's thread_stopped op into a method of
3157 * target.h (struct process_stratum_target): Remove the target op.
3158 (class process_target): Add the target op. Also add
3159 'supports_thread_stopped'.
3160 (target_thread_stopped): Update the macro.
3161 * target.cc (process_target::thread_stopped): Define.
3162 (process_target::supports_thread_stopped): Define.
3163 (prepare_to_access_memory): Update.
3165 Update the derived classes and callers below.
3167 * server.cc (queue_stop_reply_callback): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_process_target::supports_thread_stopped): Define.
3170 (linux_thread_stopped): Turn into ...
3171 (linux_process_target::thread_stopped): ... this.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179 Turn process_stratum_target's read_pc and write_pc ops into
3180 methods of process_target.
3182 * target.h (struct process_stratum_target): Remove the target ops.
3183 (class process_target): Add the target ops.
3184 * target.cc (process_target::read_pc): Define.
3185 (process_target::write_pc): Define.
3187 Update the derived classes and callers below.
3189 * regcache.cc (regcache_read_pc): Update.
3190 (regcache_write_pc): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_read_pc): Turn into ...
3193 (linux_process_target::read_pc): ... this.
3194 (linux_write_pc): Turn into ...
3195 (linux_process_target::write_pc): ... this.
3196 * linux-low.h (class linux_process_target): Update.
3197 * lynx-low.cc (lynx_target_ops): Update.
3198 * nto-low.cc (nto_target_ops): Update.
3199 * win32-low.cc (win32_target_ops): Update.
3201 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3203 Turn process_stratum_target's supports_tracepoints op into a
3204 method of process_target.
3206 * target.h (struct process_stratum_target): Remove the target op.
3207 (class process_target): Add the target op.
3208 (target_supports_tracepoints): Update the macro.
3209 * target.cc (process_target::supports_tracepoints): Define.
3211 Update the derived classes and callers below.
3213 * linux-low.cc (linux_target_ops): Update.
3214 (linux_supports_tracepoints): Turn into ...
3215 (linux_process_target::supports_tracepoints): ... this.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3221 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3223 Turn process_stratum_target's process_qsupported op into a method
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op.
3228 (target_process_qsupported): Update the macro.
3229 * target.cc (process_target::process_qsupported): Define.
3231 Update the derived classes and callers below.
3233 * linux-low.cc (linux_target_ops): Update.
3234 (linux_process_qsupported): Turn into ...
3235 (linux_process_target::process_qsupported): ... this.
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 read_loadmap op into a method of
3246 * target.h (struct process_stratum_target): Remove the target op.
3247 (class process_target): Add the target op. Also add
3248 'supports_read_loadmap'.
3249 * target.cc (process_target::read_loadmap): Define.
3250 (process_target::supports_read_loadmap): Define.
3252 Update the derived classes and callers below.
3254 * server.cc (handle_qxfer_fdpic): Update.
3255 (handle_query): Update.
3256 * linux-low.cc (linux_target_ops): Update.
3257 (linux_process_target::supports_read_loadmap): Define.
3258 (linux_read_loadmap): Turn into ...
3259 (linux_process_target::read_loadmap): ... this.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3267 Turn process_stratum_target's core_of_thread op into a method of
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op.
3272 (target_core_of_thread): Update the macro.
3273 * target.cc (process_target::core_of_thread): Define.
3275 Update the derived classes and callers below.
3277 * linux-low.cc (linux_target_ops): Update.
3278 (linux_process_target::core_of_thread): Define.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3284 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286 Turn process_stratum_target's handle_monitor_command op into a
3287 method of process_target.
3289 * target.h (struct process_stratum_target): Remove the target op.
3290 (class process_target): Add the target op.
3291 (target_handle_monitor_command): Update the macro.
3292 * target.cc (process_target::handle_monitor_command): Define.
3294 Update the derived classes and callers below.
3296 * server.cc (handle_query): Update.
3297 * linux-low.cc (linux_target_ops): Update.
3298 (linux_process_target::handle_monitor_command): Define.
3299 * linux-low.h (class linux_process_target): Update.
3300 * lynx-low.cc (lynx_target_ops): Update.
3301 * nto-low.cc (nto_target_ops): Update.
3302 * win32-low.cc (win32_target_ops): Update.
3304 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3306 Turn process_stratum_target's handle_new_gdb_connection op into a
3307 method of process_target.
3309 * target.h (struct process_stratum_target): Remove the target op.
3310 (class process_target): Add the target op.
3311 (target_handle_new_gdb_connection): Update the macro.
3312 * target.cc (process_target::handle_new_gdb_connection): Define.
3314 Update the derived classes and callers below.
3316 * linux-low.cc (linux_target_ops): Update.
3317 (linux_handle_new_gdb_connection): Turn into ...
3318 (linux_process_target::handle_new_gdb_connection): ... this.
3319 * linux-low.h (class linux_process_target): Update.
3320 * lynx-low.cc (lynx_target_ops): Update.
3321 * nto-low.cc (nto_target_ops): Update.
3322 * win32-low.cc (win32_target_ops): Update.
3324 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3326 Turn process_stratum_target's supports_fork_events,
3327 supports_vfork_events, and supports_exec_events ops into methods
3330 * target.h (struct process_stratum_target): Remove the target ops.
3331 (class process_target): Add the target ops.
3332 (target_supports_fork_events): Update the macro.
3333 (target_supports_vfork_events): Update the macro.
3334 (target_supports_exec_events): Update the macro.
3335 * target.cc (process_target::supports_fork_events): Define.
3336 (process_target::supports_vfork_events): Define.
3337 (process_target::supports_exec_events): Define.
3339 Update the derived classes and callers below.
3341 * linux-low.cc (linux_target_ops): Update.
3342 (linux_supports_fork_events): Turn into ...
3343 (linux_process_target::supports_fork_events): ... this.
3344 (linux_supports_vfork_events): Turn into ...
3345 (linux_process_target::supports_vfork_events): ... this.
3346 (linux_supports_exec_events): Turn into ...
3347 (linux_process_target::supports_exec_events): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 * nto-low.cc (nto_target_ops): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3355 Turn process_stratum_target's supports_multi_process op into a
3356 method of process_target.
3358 * target.h (struct process_stratum_target): Remove the target op.
3359 (class process_target): Add the target op.
3360 * target.cc (process_target::supports_multi_process): Define.
3361 (target_supports_multi_process): Update.
3363 Update the derived classes and callers below.
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_supports_multi_process): Turn into ...
3367 (linux_process_target::supports_multi_process): ... this.
3368 * linux-low.h (class linux_process_target): Update.
3369 * lynx-low.cc (lynx_target_ops): Update.
3370 * nto-low.cc (nto_target_ops): Update.
3371 * win32-low.cc (win32_target_ops): Update.
3373 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375 Turn process_stratum_target's supports_non_stop, async, and
3376 start_non_stop ops into methods of process_target.
3378 * target.h (struct process_stratum_target): Remove the target ops.
3379 (class process_target): Add the target ops.
3380 (target_supports_non_stop): Update the macro.
3381 (target_async): Update the macro.
3382 (start_non_stop): Remove declaration.
3383 * target.cc (process_target::supports_non_stop): Define.
3384 (process_target::async): Define.
3385 (process_target::start_non_stop): Define.
3386 (start_non_stop): Remove.
3388 Update the derived classes and callers below.
3390 * server.cc (handle_qxfer_siginfo): Update.
3391 (handle_query): Update.
3392 * linux-low.cc (linux_target_ops): Update.
3393 (linux_supports_non_stop): Turn into ...
3394 (linux_process_target::supports_non_stop): ... this.
3395 (linux_async): Turn into ...
3396 (linux_process_target::async): ... this.
3397 (linux_start_non_stop): Turn into ...
3398 (linux_process_target::start_non_stop): ... this.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 (nto_supports_non_stop): Remove; rely on the default behavior
3404 * win32-low.cc (win32_target_ops): Update.
3406 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408 Turn process_stratum_target's qxfer_siginfo op into a method of
3411 * target.h (struct process_stratum_target): Remove the target op.
3412 (class process_target): Add the target op. Also add
3413 'supports_qxfer_siginfo'.
3414 * target.cc (process_target::qxfer_siginfo): Define.
3415 (process_target::supports_qxfer_siginfo): Define.
3417 Update the derived classes and callers below.
3419 * server.cc (handle_qxfer_siginfo): Update.
3420 (handle_query): Update.
3421 * linux-low.cc (linux_target_ops): Update.
3422 (linux_process_target::supports_qxfer_siginfo): Define.
3423 (linux_xfer_siginfo): Turn into ...
3424 (linux_process_target::qxfer_siginfo): ... this.
3425 * linux-low.h (class linux_process_target): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.cc (win32_target_ops): Update.
3430 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3432 Turn process_stratum_target's qxfer_osdata op into a method of
3435 * target.h (struct process_stratum_target): Remove the target op.
3436 (class process_target): Add the target op. Also add
3437 'supports_qxfer_osdata'.
3438 * target.cc (process_target::qxfer_osdata): Define.
3439 (process_target::supports_qxfer_osdata): Define.
3441 Update the derived classes and callers below.
3443 * server.cc (handle_qxfer_osdata): Update.
3444 (handle_query): Update.
3445 * linux-low.cc (linux_target_ops): Update.
3446 (linux_process_target::supports_qxfer_osdata): Define.
3447 (linux_qxfer_osdata): Turn into ...
3448 (linux_process_target::qxfer_osdata): ... this.
3449 * linux-low.h (class linux_process_target): Update.
3450 * lynx-low.cc (lynx_target_ops): Update.
3451 * nto-low.cc (nto_target_ops): Update.
3452 * win32-low.cc (win32_target_ops): Update.
3454 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3456 Turn process_stratum_target's hostio_last_error op into a
3457 method of process_target.
3459 * target.h (struct process_stratum_target): Remove the target op.
3460 (class process_target): Add the target op.
3461 * target.cc: Add "hostio.h" to includes.
3462 (process_target::hostio_last_error): Define.
3464 Update the derived classes and callers below.
3466 * hostio.cc (hostio_error): Update.
3467 * linux-low.cc: Remove "hostio.h" from includes.
3468 (linux_target_ops): Update.
3469 * lynx-low.cc (lynx_target_ops): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 * win32-low.h (class win32_process_target): Update.
3472 * win32-low.cc (win32_target_ops): Update.
3473 (wince_hostio_last_error): Turn into ...
3474 (win32_process_target::hostio_last_error): ... this.
3476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478 Turn process_stratum_target's get_tls_address op into a method of
3481 * target.h (struct process_stratum_target): Remove the target op.
3482 (class process_target): Add the target op. Also add
3483 'supports_get_tls_address'.
3484 * target.cc (process_target::get_tls_address): Define.
3485 (process_target::supports_get_tls_address): Define.
3487 Update the derived classes and callers below.
3489 * server.cc (handle_query): Update.
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_process_target::supports_get_tls_address): Define.
3492 (linux_process_target::get_tls_address): Define.
3493 * linux-low.h (class linux_process_target): Update.
3494 * lynx-low.cc (lynx_target_ops): Update.
3495 * nto-low.cc (nto_target_ops): Update.
3496 * win32-low.cc (win32_target_ops): Update.
3498 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3500 Turn process_stratum_target's read_offsets op into a method of
3503 * target.h (struct process_stratum_target): Remove the target op.
3504 (class process_target): Add the target op. Also add
3505 'supports_read_offsets'.
3506 * target.cc (process_target::read_offsets): Define.
3507 (process_target::supports_read_offsets): Define.
3509 Update the derived classes and callers below.
3511 * server.cc (handle_query): Update.
3512 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3513 (linux_target_ops): Update.
3514 (linux_process_target::supports_read_offsets): Define.
3515 (linux_read_offsets): Turn into ...
3516 (linux_process_target::read_offsets): ... this.
3517 * linux-low.h (class linux_process_target): Update.
3518 * lynx-low.cc (lynx_target_ops): Update.
3519 * nto-low.cc (nto_target_ops): Update.
3520 * win32-low.cc (win32_target_ops): Update.
3522 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3524 Turn process_stratum_target's stopped_by_watchpoint and
3525 stopped_data_address ops into methods of process_target.
3527 * target.h (struct process_stratum_target): Remove the target ops.
3528 (class process_target): Add the target ops.
3529 * target.cc (process_target::stopped_by_watchpoint): Define.
3530 (process_target::stopped_data_address): Define.
3532 Update the derived classes and callers below.
3534 * remote-utils.cc (prepare_resume_reply): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_stopped_by_watchpoint): Turn into ...
3537 (linux_process_target::stopped_by_watchpoint): ... this.
3538 (linux_stopped_data_address): Turn into ...
3539 (linux_process_target::stopped_data_address): ... this.
3540 * linux-low.h (class linux_process_target): Update.
3541 * lynx-low.cc (lynx_target_ops): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 (nto_stopped_by_watchpoint): Turn into ...
3544 (nto_process_target::stopped_by_watchpoint): ... this.
3545 (nto_stopped_data_address): Turn into ...
3546 (nto_process_target::stopped_data_address): ... this.
3547 * nto-low.h (class nto_process_target): Update.
3548 * win32-low.cc (win32_target_ops): Update.
3549 (win32_stopped_by_watchpoint): Turn into ...
3550 (win32_process_target::stopped_by_watchpoint): ... this.
3551 (win32_stopped_data_address): Turn into ...
3552 (win32_process_target::stopped_data_address): ... this.
3553 * win32-low.h (class win32_process_target): Update.
3555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3557 Turn process_stratum_target's supports_hardware_single_step op into
3558 a method of process_target.
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562 (target_supports_hardware_single_step): Update the macro.
3563 (target_can_do_hardware_single_step): Remove declaration.
3564 * target.cc (process_target::supports_hardware_single_step): Define.
3565 (target_can_do_hardware_single_step): Remove.
3567 Update the derived classes and callers below.
3569 * linux-low.h (class linux_process_target): Update.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_supports_hardware_single_step): Turn into ...
3572 (linux_process_target::supports_hardware_single_step): ... this.
3573 * lynx-low.h (class lynx_process_target): Update.
3574 * lynx-low.cc (lynx_target_ops): Update.
3575 (lynx_process_target::supports_hardware_single_step): Define.
3576 * nto-low.h (class nto_process_target): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 (nto_process_target::supports_hardware_single_step): Define.
3579 * win32-low.h (class win32_process_target): Update.
3580 * win32-low.cc (win32_target_ops): Update.
3581 (win32_process_target::supports_hardware_single_step): Define.
3583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3586 ops into methods of process_target.
3588 * target.h (struct process_stratum_target): Remove the target ops.
3589 (class process_target): Add the target ops.
3590 (target_stopped_by_hw_breakpoint): Update the macro.
3591 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3592 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3593 (process_target::supports_stopped_by_hw_breakpoint): Define.
3595 Update the derived classes and callers below.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_stopped_by_hw_breakpoint): Turn into ...
3599 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3600 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3601 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3602 * linux-low.h (class linux_process_target): Update.
3603 * lynx-low.cc (lynx_target_ops): Update.
3604 * nto-low.cc (nto_target_ops): Update.
3605 * win32-low.cc (win32_target_ops): Update.
3607 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3610 ops into methods of process_target.
3612 * target.h (struct process_stratum_target): Remove the target ops.
3613 (class process_target): Add the target ops.
3614 (target_stopped_by_sw_breakpoint): Update the macro.
3615 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3616 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3617 (process_target::supports_stopped_by_sw_breakpoint): Define.
3619 Update the derived classes and callers below.
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_stopped_by_sw_breakpoint): Turn into ...
3623 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3624 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3625 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 * win32-low.cc (win32_target_ops): Update.
3631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633 Turn process_stratum_target's insert_point and remove_point ops
3634 into methods of process_target.
3636 * target.h (struct process_stratum_target): Remove the target ops.
3637 (class process_target): Add the target ops.
3638 * target.cc (process_target::insert_point): Define.
3639 (process_target::remove_point): Define.
3641 Update the derived classes and callers below.
3643 * mem-break.cc (set_raw_breakpoint_at): Update.
3644 (delete_raw_breakpoint): Update.
3645 (uninsert_raw_breakpoint): Update.
3646 (reinsert_raw_breakpoint): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_insert_point): Turn into ...
3649 (linux_process_target::insert_point): ... this.
3650 (linux_remove_point): Turn into ...
3651 (linux_process_target::remove_point): ... this.
3652 * linux-low.h (class linux_process_target): Update.
3653 * lynx-low.cc (lynx_target_ops): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_insert_point): Turn into ...
3656 (nto_process_target::insert_point): ... this.
3657 (nto_remove_point): Turn into ...
3658 (nto_process_target::remove_point): ... this.
3659 * nto-low.h (class nto_process_target): Update.
3660 * win32-low.cc (win32_target_ops): Update.
3661 (win32_insert_point): Turn into ...
3662 (win32_process_target::insert_point): ... this.
3663 (win32_remove_point): Turn into ...
3664 (win32_process_target::remove_point): ... this.
3665 * win32-low.h (class win32_process_target): Update.
3667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3669 Turn process_stratum_target's supports_z_point_type op into a
3670 method of process_target.
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op.
3674 * target.cc (process_target::supports_z_point_type): Define.
3676 Update the derived classes and callers below.
3678 * mem-break.cc (z_type_supported): Update.
3679 * linux-low.cc (linux_target_ops): Update.
3680 (linux_supports_z_point_type): Turn into ...
3681 (linux_process_target::supports_z_point_type): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_supports_z_point_type): Turn into ...
3686 (nto_process_target::supports_z_point_type): ... this.
3687 * nto-low.h (class nto_process_target): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689 (win32_supports_z_point_type): Turn into ...
3690 (win32_process_target::supports_z_point_type): ... this.
3691 * win32-low.h (class win32_process_target): Update.
3693 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3695 Turn process_stratum_target's read_auxv op into a method of
3698 * target.h (class process_stratum_target): Remove the target op.
3699 (struct process_target): Add the target op. Also add
3700 'supports_read_auxv'.
3701 * target.cc (process_target::read_auxv): Define.
3702 (process_target::supports_read_auxv): Define.
3704 Update the derived classes and callers below.
3706 * server.cc (handle_qxfer_auxv): Update.
3707 (handle_query): Update.
3708 * linux-low.cc (linux_target_ops): Update.
3709 (linux_process_target::supports_read_auxv): Define.
3710 (linux_read_auxv): Turn into ...
3711 (linux_process_target::read_auxv): ... this.
3712 * linux-low.h (class linux_process_target): Update.
3713 * lynx-low.cc (lynx_target_ops): Update.
3714 * nto-low.cc (nto_target_ops): Update.
3715 (nto_process_target::supports_read_auxv): Define.
3716 (nto_read_auxv): Turn into ...
3717 (nto_process_target::read_auxv): ... this.
3718 * nto-low.h (class nto_process_target): Update.
3719 * win32-low.cc (win32_target_ops): Update.
3721 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723 Turn process_stratum_target's request_interrupt op into a method of
3726 * target.h (struct process_stratum_target): Remove the target op.
3727 (class process_target): Add the target op.
3729 Update the derived classes and callers below.
3731 * remote-utils.cc (putpkt_binary_1): Update.
3732 (input_interrupt): Update.
3734 * server.cc (handle_v_requests): Update.
3735 * linux-low.cc (linux_target_ops): Update.
3736 (linux_request_interrupt): Turn into ...
3737 (linux_process_target::request_interrupt): ... this.
3738 * linux-low.h (class linux_process_target): Update.
3739 * lynx-low.cc (lynx_target_ops): Update.
3740 (lynx_request_interrupt): Turn into ...
3741 (lynx_process_target::request_interrupt): ... this.
3742 * lynx-low.h (class lynx_process_target): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 (nto_request_interrupt): Turn into ...
3745 (nto_process_target::request_interrupt): ... this.
3746 * nto-low.h (class nto_process_target): Update.
3747 * win32-low.cc (win32_target_ops): Update.
3748 (win32_request_interrupt): Turn into ...
3749 (win32_process_target::request_interrupt): ... this.
3750 * win32-low.h (class win32_process_target): Update.
3752 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754 Turn process_stratum_target's look_up_symbols op into a method of
3757 * target.h (struct process_stratum_target): Remove the target op.
3758 (class process_target): Add the target op.
3759 * target.cc (process_target::look_up_symbols): Define.
3761 Update the derived classes and callers below.
3763 * server.cc (handle_query): Update.
3764 * linux-low.cc (linux_target_ops): Update.
3765 (linux_look_up_symbols): Turn into ...
3766 (linux_process_target::look_up_symbols): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 * nto-low.cc (nto_target_ops): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3772 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774 Turn process_stratum_target's read_memory and write_memory
3775 ops into methods of process_target.
3777 * target.h (struct process_stratum_target): Remove the target ops.
3778 (class process_target): Add the target ops.
3780 Update the derived classes and callers below.
3782 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3783 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3784 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3785 (arm_get_syscall_trapinfo): Update.
3786 * linux-cris-low.cc (cris_breakpoint_at): Update.
3787 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3788 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3789 * linux-mips-low.cc (mips_breakpoint_at): Update.
3790 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3791 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3792 * linux-sh-low.cc (sh_breakpoint_at): Update.
3793 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3794 (sparc_store_gregset_from_stack): Update.
3795 (sparc_breakpoint_at): Update.
3796 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3797 * linux-tile-low.cc (tile_breakpoint_at): Update.
3798 * linux-x86-low.cc (x86_breakpoint_at): Update.
3799 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3800 * mem-brea.cc (insert_memory_breakpoint): Update.
3801 (validate_inserted_breakpoint): Update.
3802 * target.cc (read_inferior_memory): Update.
3803 (target_write_memory): Update.
3804 * linux-low.cc (linux_target_ops): Update.
3805 (linux_read_memory): Make a wrapper around the read_memory target
3807 (linux_process_target::read_memory): Rename from linux_read_memory.
3808 (linux_write_memory): Turn into ...
3809 (linux_process_target::write_memory): ... this.
3810 * linux-low.h (class linux_process_target): Update.
3811 * lynx-low.cc (lynx_target_ops): Update.
3812 (lynx_read_memory): Turn into ...
3813 (lynx_process_target::read_memory): ... this.
3814 (lynx_write_memory): Turn into ...
3815 (lynx_process_target::write_memory): ... this.
3816 * lynx-low.h (class lynx_process_target): Update.
3817 * nto-low.cc (nto_target_ops): Update.
3818 (nto_read_memory): Turn into ...
3819 (nto_process_target::read_memory): ... this.
3820 (nto_write_memory): Turn into ...
3821 (nto_process_target::write_memory): ... this.
3822 * nto-low.h (class nto_process_target): Update.
3823 * win32-low.cc (win32_target_ops): Update.
3824 (win32_read_inferior_memory): Turn into ...
3825 (win32_process_target::read_memory): ... this.
3826 (win32_write_inferior_memory): Turn into ...
3827 (win32_process_target::write_memory): ... this.
3828 * win32-low.h (class win32_process_target): Update.
3830 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3832 Turn process_stratum_target's prepare_to_access_memory and
3833 done_accessing_memory ops into methods of process_target.
3835 * target.h (struct process_stratum_target): Remove the target ops.
3836 (class process_target): Add the target ops.
3837 * target.cc (process_target::prepare_to_access_memory): Define.
3838 (process_target::done_accessing_memory): Define.
3839 (prepare_to_access_memory): Update.
3840 (done_accessing_memory): Update.
3842 Update the derived classes and callers below.
3844 * linux-low.cc (linux_target_ops): Update.
3845 (linux_prepare_to_access_memory): Turn into ...
3846 (linux_process_target::prepare_to_access_memory): ... this.
3847 (linux_done_accessing_memory): Turn into ...
3848 (linux_process_target::done_accessing_memory): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 * nto-low.cc (nto_target_ops): Update.
3852 * win32-low.cc (win32_target_ops): Update.
3854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3856 Turn process_stratum_target's fetch_registers and store_registers
3857 ops into methods of process_target.
3859 * target.h (struct process_stratum_target): Remove the target ops.
3860 (class process_target): Add the target ops.
3861 (fetch_inferior_registers): Update the macro.
3862 (store_inferior_registers): Update the macro.
3864 Update the derived classes and callers below.
3866 * linux-low.cc (linux_target_ops): Update.
3867 (linux_fetch_registers): Turn into ...
3868 (linux_process_target::fetch_registers): ... this.
3869 (linux_store_registers): Turn into ...
3870 (linux_process_target::store_registers): ... this.
3871 * linux-low.h (class linux_process_target): Update.
3872 * lynx-low.cc (lynx_target_ops): Update.
3873 (lynx_fetch_registers): Turn into ...
3874 (lynx_process_target::fetch_registers): ... this.
3875 (lynx_store_registers): Turn into ...
3876 (lynx_process_target::store_registers): ... this.
3877 * lynx-low.h (class lynx_process_target): Update.
3878 * nto-low.cc (nto_target_ops): Update.
3879 (nto_fetch_registers): Turn into ...
3880 (nto_process_target::fetch_registers): ... this.
3881 (nto_store_registers): Turn into ...
3882 (nto_process_target::store_registers): ... this.
3883 * nto-low.h (class nto_process_target): Update.
3884 * win32-low.cc (win32_target_ops): Update.
3885 (win32_fetch_inferior_registers): Turn into ...
3886 (win32_process_target::fetch_registers): ... this.
3887 (win32_store_inferior_registers): Turn into ...
3888 (win32_process_target::store_registers): ... this.
3889 * win32-low.h (class win32_process_target): Update.
3891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893 Turn process_stratum_target's wait op into a method of
3896 * target.h (struct process_stratum_target): Remove the target op.
3897 (class process_target): Add the target op.
3899 Update the derived classes and callers below.
3901 * target.cc (target_wait): Update.
3902 * linux-low.cc (linux_target_ops): Update.
3903 (linux_wait): Turn into ...
3904 (linux_process_target::wait): ... this.
3905 * linux-low.h (class linux_process_target): Update.
3906 * lynx-low.cc (lynx_target_ops): Update.
3907 (lynx_wait): Turn into ...
3908 (lynx_process_target::wait): ... this.
3909 * lynx-low.h (class lynx_process_target): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_wait): Turn into ...
3912 (nto_process_target::wait): ... this.
3913 * nto-low.h (class nto_process_target): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915 (win32_wait): Turn into ...
3916 (win32_process_target::wait): ... this.
3917 (do_initial_child_stuff): Update.
3918 * win32-low.h (class win32_process_target): Update.
3920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922 Turn process_stratum_target's resume op into a method of
3925 * target.h (struct process_stratum_target): Remove the target op.
3926 (class process_target): Add the target op.
3928 Update the derived classes and callers below.
3930 * server.cc (resume): Update.
3931 * target.cc (target_stop_and_wait): Update.
3932 (target_continue_no_signal): Update.
3933 (target_continue): Update.
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_resume): Turn into ...
3936 (linux_process_target::resume): ... this.
3937 * linux-low.h (class linux_process_target): Update.
3938 * lynx-low.cc (lynx_target_ops): Update.
3939 (lynx_resume): Turn into ...
3940 (lynx_process_target::resume): ... this.
3941 * lynx-low.h (class lynx_process_target): Update.
3942 * nto-low.cc (nto_target_ops): Update.
3943 (nto_resume): Turn into ...
3944 (nto_process_target::resume): ... this.
3945 * nto-low.h (class nto_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947 (win32_resume): Turn into ...
3948 (win32_process_target::resume): ... this.
3949 (win32_process_target::detach): Update.
3950 (do_initial_child_stuff): Update.
3951 * win32-low.h (class win32_process_target): Update.
3953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3955 Turn process_stratum_target's thread_alive op into a method of
3958 * target.h (struct process_stratum_target): Remove the target op.
3959 (class process_target): Add the target op.
3960 (mythread_alive): Update the macro.
3962 Update the derived classes and callers below.
3964 * linux-low.cc (linux_target_ops): Update.
3965 (linux_thread_alive): Turn into ...
3966 (linux_process_target::thread_alive): ... this.
3967 (wait_for_sigstop): Update.
3968 * linux-low.h (class linux_process_target): Update.
3969 * lynx-low.cc (lynx_target_ops): Update.
3970 (lynx_thread_alive): Turn into ...
3971 (lynx_process_target::thread_alive): ... this.
3972 * lynx-low.h (class lynx_process_target): Update.
3973 * nto-low.cc (nto_target_ops): Update.
3974 (nto_thread_alive): Turn into ...
3975 (nto_process_target::thread_alive): ... this.
3976 * nto-low.h (class nto_process_target): Update.
3977 * win32-low.cc (win32_target_ops): Update.
3978 (win32_thread_alive): Turn into ...
3979 (win32_process_target::thread_alive): ... this.
3980 * win32-low.h (class win32_process_target): Update.
3982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3984 Turn process_stratum_target's join op into a method of
3987 * target.h (struct process_stratum_target): Remove the target op.
3988 (class process_target): Add the target op.
3989 (join_inferior): Update the macro.
3991 Update the derived classes and callers below.
3993 * linux-low.cc (linux_target_ops): Update.
3994 (linux_join): Turn into ...
3995 (linux_process_target::join): ... this.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_join): Turn into ...
3999 (lynx_process_target::join): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_process_target::join): Define.
4003 * nto-low.h (class nto_process_target): Update.
4004 * win32-low.cc (win32_target_ops): Update.
4005 (win32_join): Turn into ...
4006 (win32_process_target::join): ... this.
4007 * win32-low.h (class win32_process_target): Update.
4009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011 Turn process_stratum_target's mourn op into a method of
4014 * target.h (struct process_stratum_target): Remove the target op.
4015 (class process_target): Add the target op.
4017 Update the derived classes and callers below.
4019 * target.cc (target_mourn_inferior): Update.
4020 * linux-low.cc (linux_target_ops): Update.
4021 (linux_mourn): Turn into ...
4022 (linux_process_target::mourn): ... this.
4023 (handle_extended_wait): Update.
4024 (linux_process_target::kill): Update.
4025 (linux_process_target::detach): Update.
4026 * linux-low.h (class linux_process_target): Update.
4027 * lynx-low.cc (lynx_target_ops): Update.
4028 (lynx_mourn): Turn into ...
4029 (lynx_process_target::mourn): ... this.
4030 * lynx-low.h (class lynx_process_target): Update.
4031 * nto-low.cc (nto_target_ops): Update.
4032 (nto_mourn): Turn into ...
4033 (nto_process_target::mourn): ... this.
4034 * nto-low.h (class nto_process_target): Update.
4035 * win32-low.cc (win32_target_ops): Update.
4036 (win32_mourn): Turn into ...
4037 (win32_process_target::mourn): ... this.
4038 * win32-low.h (class win32_process_target): Update.
4040 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042 Turn process_stratum_target's detach op into a method of
4045 * target.h (struct process_stratum_target): Remove the target op.
4046 (class process_target): Add the target op.
4047 (detach_inferior): Update the macro.
4049 Update the derived classes and callers below.
4051 * linux-low.cc (linux_target_ops): Update.
4052 (linux_detach): Turn into ...
4053 (linux_process_target::detach): ... this.
4054 * linux-low.h (class linux_process_target): Update.
4055 * lynx-low.cc (lynx_target_ops): Update.
4056 (lynx_detach): Turn into ...
4057 (lynx_process_target::detach): ... this.
4058 * lynx-low.h (class lynx_process_target): Update.
4059 * nto-low.cc (nto_target_ops): Update.
4060 (nto_detach): Turn into ...
4061 (nto_process_target::detach): ... this.
4062 * nto-low.h (class nto_process_target): Update.
4063 * win32-low.cc (win32_target_ops): Update.
4064 (win32_detach): Turn into ...
4065 (win32_process_target::detach): ... this.
4066 * win32-low.h (class win32_process_target): Update.
4068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4070 Turn process_stratum_target's kill op into a method of
4073 * target.h (struct process_stratum_target): Remove the target op.
4074 (class process_target): Add the target op.
4076 Update the derived classes and callers below.
4078 * target.cc (kill_inferior): Update.
4079 * linux-low.cc (linux_target_ops): Update.
4080 (linux_kill): Turn into ...
4081 (linux_process_target::kill): ... this.
4082 * linux-low.h (class linux_process_target): Update.
4083 * lynx-low.cc (lynx_target_ops): Update.
4084 (lynx_kill): Turn into ...
4085 (lynx_process_target::kill): ... this.
4086 * lynx-low.h (class lynx_process_target): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 (nto_kill): Turn into ...
4089 (nto_process_target::kill): ... this.
4090 * nto-low.h (class nto_process_target): Update.
4091 * win32-low.cc (win32_target_ops): Update.
4092 (win32_kill): Turn into ...
4093 (win32_process_target::kill): ... this.
4094 * win32-low.h (class win32_process_target): Update.
4096 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4098 Turn process_stratum_target's attach op into a method of
4101 * target.h (struct process_stratum_target): Remove the target op.
4102 (class process_target): Add the target op.
4103 (myattach): Update the macro.
4105 Update the derived classes and callers below.
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_attach): Turn into ...
4109 (linux_process_target::attach): ... this.
4110 * linux-low.h (class linux_process_target): Update.
4111 * lynx-low.cc (lynx_target_ops): Update.
4112 (lynx_attach): Turn into ...
4113 (lynx_process_target::attach): ... this.
4114 * lynx-low.h (class lynx_process_target): Update.
4115 * nto-low.cc (nto_target_ops): Update.
4116 (nto_attach): Turn into ...
4117 (nto_process_target::attach): ... this.
4118 * nto-low.h (class nto_process_target): Update.
4119 * win32-low.cc (win32_target_ops): Update.
4120 (win32_attach): Turn into ...
4121 (win32_process_target::attach): ... this.
4122 * win32-low.h (class win32_process_target): Update.
4124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4126 Turn process_stratum_target's post_create_inferior op into a method
4129 * target.h (struct process_stratum_target): Remove the target op.
4130 (class process_target): Add the target op.
4131 (target_post_create_inferior): Update the macro.
4132 * target.cc (process_target::post_create_inferior): Define.
4134 Update the derived classes and callers below.
4136 * linux-low.cc (linux_target_ops): Update.
4137 (linux_post_create_inferior): Turn into ...
4138 (linux_process_target::post_create_inferior): ... this.
4139 * linux-low.h (class linux_process_target): Update.
4140 * lynx-low.cc (lynx_target_ops): Update.
4141 * nto-low.cc (nto_target_ops): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4146 Turn process_stratum_target's create_inferior op into a method of
4149 * target.h (struct process_stratum_target): Remove the target op.
4150 (class process_target): Add the target op.
4151 (create_inferior): Rename the macro to ...
4152 (target_create_inferior): ... this.
4154 Update the derived classes and callers below.
4156 * server.cc (handle_v_run): Update.
4157 (captured_main): Update.
4158 (process_serial_event): Update.
4159 * linux-low.cc (linux_target_ops): Update.
4160 (linux_create_inferior): Turn into ...
4161 (linux_process_target::create_inferior): ... this.
4162 * linux-low.h (class linux_process_target): Update.
4163 * lynx-low.cc (lynx_target_ops): Update.
4164 (lynx_create_inferior): Turn into ...
4165 (lynx_process_target::create_inferior): ... this.
4166 * lynx-low.h (class lynx_process_target): Update.
4167 * nto-low.cc (nto_target_ops): Update.
4168 (nto_create_inferior): Turn into ...
4169 (nto_process_target::create_inferior): ... this.
4170 * nto-low.h (class nto_process_target): Update.
4171 * win32-low.cc (win32_target_ops): Update.
4172 (win32_create_inferior): Turn into ...
4173 (win32_process_target::create_inferior): ... this.
4174 * win32-low.h (class win32_process_target): Update.
4176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4178 * target.h (class process_target): New class definition.
4179 (struct process_stratum_target) <pt>: New field with type
4181 * linux-low.h (class linux_process_target): Define as a derived
4182 class of 'process_target'.
4183 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4185 * lynx-low.h (class lynx_process_target): Define as a derived
4186 class of 'process_target'.
4187 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4189 * nto-low.h (class nto_process_target): Define as a derived
4190 class of 'process_target'.
4191 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4193 * win32-low.h (class win32_process_target): Define as a derived
4194 class of 'process_target'.
4195 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4198 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4200 * configure: Regenerate.
4202 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4203 Andrew Burgess <andrew.burgess@embecosm.com>
4205 * linux-riscv-low.cc: New file.
4206 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4207 and nat/riscv-linux-tdesc.c.
4208 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4209 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4212 2020-02-14 Tom Tromey <tom@tromey.com>
4214 * acinclude.m4: Don't include acx_configure_dir.m4.
4215 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4216 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4217 (all, install-only, uninstall, clean-info, clean)
4218 (maintainer-clean): Don't recurse.
4219 (subdir_do, all-lib): Remove.
4220 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4222 (generated_files): Update.
4223 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4224 * configure: Rebuild.
4225 * configure.ac: Don't configure gnulib or libiberty.
4228 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4230 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4231 preparing the command line for CreateProcess.
4232 (win32_create_inferior): Reflect the program name in debugging
4233 output that shows the process and its command line.
4235 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4237 * Makefile.in: Rename source files from .c to .cc.
4238 * %.c: Rename to %.cc.
4239 * configure.ac: Rename server.c to server.cc.
4240 * configure: Re-generate.
4242 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4244 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4246 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4248 * win32-low.c (win32_create_inferior): Set signal_pid.
4250 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4251 Pedro Alves <palves@redhat.com>
4253 Skip building gdbserver in a cross-configuration.
4254 * configure.srv: Set $gdbserver_host depending on whether $target
4255 is $host. Use $gdbserver_host instead of $host.
4257 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4259 * configure: Re-generate.
4261 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4263 * configure: Re-generate.
4265 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4267 * acinclude.m4: Update warning.m4 path.
4269 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4271 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4272 (handle_exception): Set siginfo_er.
4273 (win32_xfer_siginfo): New function.
4275 2020-02-07 Tom Tromey <tom@tromey.com>
4276 Pedro Alves <palves@redhat.com>
4278 * README: Update build documentation.
4279 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4281 * configure.ac: Update paths.
4282 * configure: Rebuild.
4283 * acinclude.m4: Update paths.
4284 * Makefile.in: Update include paths.
4285 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4286 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4287 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4288 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4289 (%-generated.c): Update paths.
4290 * Move entire directory from ../gdb/gdbserver.
4292 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4294 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4296 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4298 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4299 assignment instead of srv_linux_obj.
4301 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4303 * server.c (handle_qxfer_libraries): Write segment-address with
4306 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4308 * Makefile.in (install-strip): New target.
4309 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4310 * aclocal.m4: Regenerate.
4311 * configure: Regenerate.
4312 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4314 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4316 * Makefile.in (SFILES): Adjust paths to point to real files.
4317 (OBS): Move waitstatus.o to target/waitstatus.o.
4318 (TAGS): Transform paths appropriately.
4320 (nat/%.o): ... this pattern rule.
4322 (target/%.o): ... this pattern rule.
4323 * configure.srv: Adjust paths throughout to include nat/ prefix
4324 with the revant files.
4325 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4326 * configure: Regenerate.
4328 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4330 * Makefile.in (TAGS): Remove config files from the recipe.
4332 2020-01-14 Tom Tromey <tom@tromey.com>
4334 * configure: Rebuild.
4335 * configure.ac: Remove any checks that were added to common.m4.
4336 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4339 2020-01-14 Tom Tromey <tom@tromey.com>
4341 * server.h: Include config.h.
4342 * gdbreplay.c: Include config.h.
4343 * configure: Rebuild.
4344 * configure.ac: Don't source common.host.
4345 * acinclude.m4: Update path.
4346 * Makefile.in (INCSUPPORT): New variable.
4347 (INCLUDE_CFLAGS): Add INCSUPPORT.
4348 (SFILES): Update paths.
4349 (version-generated.c): Update path to create-version.sh.
4350 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4352 2020-01-14 Tom Tromey <tom@tromey.com>
4354 * configure.ac (LIBS): Use WIN32APILIBS.
4355 (USE_WIN32API): Don't define.
4356 * configure: Rebuild.
4358 2020-01-14 Tom Tromey <tom@tromey.com>
4360 * configure: Rebuild.
4362 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4364 * Makefile.in (%-generated.c): Remove rule for files from
4367 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4369 * configure: Re-generate.
4371 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4373 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4375 * tracepoint.c (stop_tracing, flush_trace_buffer,
4376 about_to_request_buffer_space, get_trace_state_variable_value,
4377 set_trace_state_variable_value, gdb_collect): Add declaration.
4379 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4381 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4382 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4383 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4384 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4385 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4388 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4390 * inferiors.c: Include gdbsupport/common-inferior.h.
4392 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4394 * hostio-errno.c: Include hostio.h.
4396 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4398 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4401 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4403 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4404 * linux-arm-tdesc.h: Include arch/arm.h.
4406 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4408 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4410 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4412 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4413 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4415 2020-01-10 Pedro Alves <palves@redhat.com>
4417 * fork-child.c (post_fork_inferior): Pass target down to
4419 * inferiors.c (switch_to_thread): Add process_stratum_target
4421 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4422 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4423 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4424 * remote-utils.c (prepare_resume_reply): Pass the target to
4426 * target.c (the_target): Now a process_stratum_target.
4427 (done_accessing_memory): Pass the target to switch_to_thread.
4428 (set_target_ops): Ajust to use process_stratum_target.
4429 * target.h (struct target_ops): Rename to ...
4430 (struct process_stratum_target): ... this.
4431 (the_target, set_target_ops): Adjust.
4432 (prepare_to_access_memory): Adjust comment.
4433 * win32-low.c (child_xfer_memory): Adjust to use
4434 process_stratum_target.
4435 (win32_target_ops): Now a process_stratum_target.
4437 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4438 Pedro Alves <palves@redhat.com>
4440 * win32-low.c (get_child_debug_event): Extract the fatal exception
4441 from the exit status and convert to the equivalent Posix signal
4443 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4444 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4446 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4448 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4450 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4452 * server.c (gdbserver_version): Change copyright year to 2020.
4453 * gdbreplay.c (gdbreplay_version): Likewise.
4455 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4457 * configure: Regenerate.
4458 * configure.ac: Quote variable arguments of test.
4460 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4462 * Makefile.in: Fix build with GNU Make 3.81
4464 2019-12-16 Tom Tromey <tromey@adacore.com>
4466 * server.c (get_exec_file): Constify result.
4468 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4470 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4471 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4472 * config.in: Regenerate.
4473 * configure: Regenerate.
4474 * configure.ac: Don't check for strerror.
4475 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4476 Call safe_strerror instead of strerror.
4477 * server.h (strerror): Remove this now-unnecessary declaration.
4478 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4480 (gdb_agent_helper_thread): Likewise.
4481 * utils.c (perror_with_name): Likewise.
4483 2019-11-26 Tom Tromey <tom@tromey.com>
4485 * configure, config.in: Rebuild.
4487 2019-11-26 Tom Tromey <tom@tromey.com>
4489 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4490 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4492 * configure, config.in: Rebuild.
4494 2019-11-26 Tom Tromey <tom@tromey.com>
4496 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4497 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4498 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4499 * acinclude.m4: Include ax_pthread.m4.
4500 * config.in, configure: Rebuild.
4502 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4504 * debug.c (debug_set_output): Call safe_strerror instead of
4506 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4507 (linux_kill_one_lwp): Likewise.
4508 (linux_detach_one_lwp): Likewise.
4509 (linux_wait_for_event_filtered): Likewise.
4510 (store_register): Likewise.
4511 * lynx-low.c (lynx_attach): Likewise.
4512 * mem-break.c (insert_memory_breakpoint): Likewise.
4513 (remove_memory_breakpoint): Likewise.
4514 (delete_fast_tracepoint_jump): Likewise.
4515 (set_fast_tracepoint_jump): Likewise.
4516 (uninsert_fast_tracepoint_jumps_at): Likewise.
4517 (reinsert_fast_tracepoint_jumps_at): Likewise.
4518 * nto-low.c (nto_xfer_memory): Likewise.
4519 (nto_resume): Likewise.
4521 2019-11-20 Luis Machado <luis.machado@linaro.org>
4523 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4524 instead of register count.
4525 * tdesc.c (tdesc_contains_feature): New function.
4526 * tdesc.h (tdesc_contains_feature): New prototype.
4528 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4530 * Makefile.in: Add safe-strerror.c.
4531 * configure: Regenerate.
4532 * configure.ac: Don't source common.host.
4534 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4536 * config.in: Regenerate.
4537 * configure: Regenerate.
4539 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4541 * ax.c (ax_printf): Handle size_t_arg.
4543 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4545 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4546 * mi/mi-main.c (output_cores): Likewise.
4547 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4548 (linux_xfer_osdata_modules): Likewise.
4549 * remote.c (register_remote_support_xml): Likewise.
4550 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4551 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4553 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4555 * configure: Regenerate.
4556 * configure.ac: Remove check for strerror_r.
4558 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4560 * config.in: Regenerate.
4561 * configure: Regenerate.
4562 * configure.ac: Also check for strerror_r.
4564 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4566 * ax.h (debug_agent): Remove duplicate declaration.
4568 2019-10-26 Tom de Vries <tdevries@suse.de>
4570 * linux-aarch64-low.c: Fix typos in comments.
4571 * linux-arm-low.c: Same.
4572 * linux-low.c: Same.
4573 * linux-ppc-low.c: Same.
4574 * proc-service.c: Same.
4577 * tracepoint.c: Same.
4578 * win32-low.c: Same.
4580 2019-10-25 Tom Tromey <tromey@adacore.com>
4582 * utils.c (xstrdup): Remove.
4584 2019-10-23 Tom Tromey <tom@tromey.com>
4586 * configure, config.in: Rebuild.
4588 2019-10-23 Tom Tromey <tom@tromey.com>
4590 * configure: Rebuild.
4591 * acinclude.m4: Use m4_include, not sinclude.
4593 2019-10-17 Tom Tromey <tromey@adacore.com>
4595 * configure: Rebuild.
4596 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4597 in AC_CONFIG_FILES invocation.
4598 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4601 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4603 * server.c: Include xml-builtin.h.
4604 (get_xml_features): Don't declare xml_builtins here.
4606 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4608 * Makefile.in: Remove references to vec-ipa.o.
4610 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4612 * Makefile.in: Remove references to vec.c.
4614 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4616 * server.c (server_waiting): Change to bool.
4617 (extended_protocol): Likewise.
4618 (response_needed): Likewise.
4619 (exit_requested): Likewise.
4620 (run_once): Likewise.
4621 (report_no_resumed): Likewise.
4622 (non_stop): Likewise.
4623 (disable_packet_vCont): Likewise.
4624 (disable_packet_Tthread): Likewise.
4625 (disable_packet_qC): Likewise.
4626 (disable_packet_qfThreadInfo): Likewise.
4627 (handle_general_set): Update.
4628 (handle_detach): Update.
4629 (handle_monitor_command): Update.
4630 (handle_query): Update.
4631 (captured_main): Update.
4632 (process_serial_event): Update.
4633 * server.h (server_waiting): Change to bool.
4634 (disable_packet_vCont): Likewise.
4635 (disable_packet_Tthread): Likewise.
4636 (disable_packet_qC): Likewise.
4637 (disable_packet_qfThreadInfo): Likewise.
4638 (run_once): Likewise.
4639 (non_stop): Likewise.
4640 * target.c (target_stop_and_wait): Update.
4642 2019-10-02 Tom Tromey <tromey@adacore.com>
4644 * Makefile.in (SFILES): Add common-inferior.c.
4645 (OBS): Add common-inferior.o.
4646 * server.c (startup_with_shell): Don't define.
4648 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4650 * linux-low.c (linux_low_read_btrace): Update for change to
4653 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4655 * debug.c (debug_threads): Remove comment in favor of the header.
4656 * debug.h (using_threads): Add declaration.
4657 (debug_threads): Add comment.
4658 * linux-aarch64-low.c: Include debug.h and remove declaration of
4660 * nto-low.c: Likewise.
4661 * remote-utils.c: Likewise.
4662 * thread-db.c: Likewise.
4664 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4666 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4667 and powerpc-cell64l-ipa.o.
4668 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4669 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4670 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4673 * spu-low.c: Remove file.
4675 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4676 (parse_spufs_run): Remove.
4677 (ppc_get_pc): Remove Cell/B.E. support.
4678 (ppc_set_pc): Likewise.
4679 (ppc_breakpoint_at): Likewise.
4680 (ppc_arch_setup): Likewise.
4681 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4682 tdesc_powerpc_cell32l.
4683 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4684 or init_registers_powerpc_cell32l.
4685 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4686 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4687 or init_registers_powerpc_cell32l.
4688 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4689 (init_registers_powerpc_cell32l): Remove prototype.
4690 (init_registers_powerpc_cell64l): Likewise.
4692 * target.h (struct target_ops): Remove qxfer_spu member.
4693 * server.c (handle_qxfer_spu): Remove.
4694 (qxfer_packets): Remove entry for "spu".
4695 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4696 * linux-low.c (SPUFS_MAGIC): Remove.
4697 (spu_enumerate_spu_ids): Remove.
4698 (linux_qxfer_spu): Remove.
4699 (linux_target_ops): Remove qxfer_spu member.
4700 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4701 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4702 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4704 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4706 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4707 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4708 * config.in: Regenerate.
4709 * configure: Regenerate.
4711 2019-08-15 Tom Tromey <tromey@adacore.com>
4713 * target.c (target_write_memory): Use gdb::byte_vector.
4715 2019-08-15 Tom Tromey <tromey@adacore.com>
4717 * tracepoint.c (write_inferior_data_pointer)
4718 (write_inferior_integer, write_inferior_int8)
4719 (write_inferior_uinteger, m_tracepoint_action_download)
4720 (r_tracepoint_action_download, x_tracepoint_action_download)
4721 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4722 (download_agent_expr, download_tracepoint_1)
4723 (download_trace_state_variables, upload_fast_traceframes): Update.
4724 * server.c (gdb_write_memory): Update.
4725 * remote-utils.c (relocate_instruction): Update.
4726 * proc-service.c (ps_pdwrite): Update.
4727 * mem-break.c (remove_memory_breakpoint)
4728 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4729 (uninsert_fast_tracepoint_jumps_at)
4730 (reinsert_fast_tracepoint_jumps_at): Update.
4731 * linux-x86-low.c (append_insns)
4732 (i386_install_fast_tracepoint_jump_pad)
4733 (amd64_write_goto_address, i386_write_goto_address): Update.
4734 * linux-s390-low.c (append_insns, s390_write_goto_address):
4736 * linux-ppc-low.c (ppc_relocate_instruction)
4737 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4738 (ppc_write_goto_address): Update.
4739 * linux-aarch64-low.c (append_insns): Update.
4740 * target.h (struct target_ops): Update.
4741 (write_inferior_memory): Don't declare.
4742 * target.c (target_write_memory): Rename from
4743 write_inferior_memory. Remove old target_write_memory.
4745 2019-08-15 Tom Tromey <tromey@adacore.com>
4747 * target.c (write_inferior_memory): Use std::vector.
4749 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4752 * configure.ac: Drop enable-libmcheck support.
4753 * configure, config.in: Rebuild.
4754 * acinclude.m4: Don't include it.
4756 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4758 * configure.srv: Remove Arm xml files.
4760 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4762 * configure.srv: Add new files. Remove xml generated files.
4763 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4765 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4766 * linux-aarch32-tdesc.c: New file.
4767 * linux-aarch32-tdesc.h: New file.
4768 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4769 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4770 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4771 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4772 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4773 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4774 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4775 (arm_read_description): Call arm_linux_read_description.
4776 (initialize_low_arch): Don't init registers.
4777 * linux-arm-tdesc.c: New file.
4778 * linux-arm-tdesc.h: New file.
4780 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4782 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4783 Move counter inside for.
4784 (arm_read_description): Check ptrace earlier.
4785 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4787 2019-07-09 Tom Tromey <tom@tromey.com>
4789 * configure: Rebuild.
4790 * configure.ac: Change common to gdbsupport.
4791 * acinclude.m4: Change common to gdbsupport.
4792 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4793 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4794 common to gdbsupport.
4795 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4796 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4797 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4798 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4799 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4800 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4801 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4802 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4803 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4804 common to gdbsupport.
4806 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4808 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4810 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4812 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4814 * configure.srv: Remove legacy xml.
4815 * linux-aarch64-low.c (initialize_low_arch): Remove
4816 initialize_low_tdesc call.
4817 * linux-aarch64-tdesc-selftest.c: Remove file.
4818 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4819 * linux-x86-low.c (initialize_low_arch): Remove
4820 initialize_low_tdesc call.
4821 * linux-x86-tdesc-selftest.c: Remove file.
4822 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4824 2019-06-20 Tom de Vries <tdevries@suse.de>
4826 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4827 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4829 2019-06-19 Tom de Vries <tdevries@suse.de>
4831 * debug.h (debug_write): Change return type to ssize_t.
4832 * debug.c (debug_write): Same.
4834 2019-06-14 Tom Tromey <tom@tromey.com>
4836 * configure.ac: Use new path to gnulib.
4837 * configure: Rebuild.
4838 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4841 2019-06-11 Tom Tromey <tom@tromey.com>
4843 * Makefile.in (SFILES): Add alloc.c.
4845 (IPA_OBJS): Add alloc-ipa.o.
4846 (alloc-ipa.o): New target.
4847 (%.o: ../%.c): New pattern rule.
4849 2019-06-10 Tom Tromey <tromey@adacore.com>
4851 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4852 end warning with a newline.
4853 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4855 * thread-db.c (attach_thread): Don't end warning with a newline.
4856 (thread_db_notice_clone): Likewise.
4857 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4859 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4860 end warning with a newline.
4862 2019-06-04 Pedro Alves <palves@redhat.com>
4864 * server.c (captured_main): Use make_unique_xstrdup.
4866 2019-06-02 Tom Tromey <tom@tromey.com>
4868 * gdbreplay.c (fromhex): Remove.
4869 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4871 2019-05-29 Tom Tromey <tromey@adacore.com>
4873 * configure: Rebuild.
4875 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4877 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4878 sign extension code on 32-bit builds.
4880 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4883 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4885 2019-04-19 Tom Tromey <tom@tromey.com>
4887 * server.c (struct vstop_notif): Derive from notif_event.
4889 (queue_stop_reply): Update.
4890 (remove_all_on_match_ptid): Change type. Rewrite.
4891 (discard_queued_stop_replies): Rewrite.
4892 (in_queued_stop_replies_ptid): Change type.
4893 (in_queued_stop_replies): Rewrite.
4894 (notif_stop): Update.
4895 (queue_stop_reply_callback): Update.
4896 (captured_main): Don't call initialize_notif.
4897 (push_stop_notification): Update.
4898 * notif.c (notif_write_event, handle_notif_ack)
4899 (notif_event_enque, notif_push): Update.
4900 (notif_event_xfree, initialize_notif): Remove.
4901 * notif.h (struct notif_event): Include <list>, not
4903 (struct notif_server) <queue>: Now a std::list.
4904 (notif_event_p): Remove typedef.
4905 (initialize_notif): Don't declare.
4906 (struct notif_event): Add virtual destructor.
4908 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4910 * ax.c (ax_vdebug): Call debug_printf.
4911 * debug.c (debug_write): New function.
4912 * debug.h (debug_write): New declaration.
4913 * linux-low.c (sigchld_handler): Call debug_write.
4915 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4917 * debug.c (debug_set_output): New function.
4918 (debug_vprintf): Send output to debug_file.
4919 (debug_flush): Likewise.
4920 * debug.h (debug_set_output): New declaration.
4921 * server.c (handle_monitor_command): Add debug-file option.
4922 (captured_main): Likewise.
4924 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4926 * debug.c (remote_debug): Add definition.
4927 * debug.h (remote_debug): Add declaration.
4928 * hostio.c (remote_debug): Remove declaration.
4929 * remote-utils.c (struct ui_file): Likewise.
4930 (remote_debug): Likewise.
4931 * remote-utils.h (remote_debug): Likewise,
4932 * server.c (remote_debug): Remove definition.
4934 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4936 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4937 when using a 64-bit gdbserver.
4939 2019-04-09 Tom Tromey <tromey@adacore.com>
4941 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4943 2019-04-08 Tom Tromey <tom@tromey.com>
4945 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4947 (linux_resume_one_lwp): Likewise.
4949 2019-04-08 Tom Tromey <tom@tromey.com>
4951 * gdbreplay.c: Update.
4952 * linux-low.c: Update.
4955 2019-04-08 Tom Tromey <tom@tromey.com>
4957 * server.c: Use C++ exception handling.
4958 * linux-low.c: Use C++ exception handling.
4959 * gdbreplay.c: Use C++ exception handling.
4961 2019-04-08 Tom Tromey <tom@tromey.com>
4963 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4964 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4965 (captured_main, main): Update.
4966 * gdbreplay.c (main): Update.
4968 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4970 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4971 value in argument pointer, return 1 if the entry is found and 0
4972 otherwise. Move comment.
4973 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4974 * linux-low.h (linux_get_auxv): Declare.
4975 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4977 2019-04-05 Tom Tromey <tromey@adacore.com>
4979 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4982 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4984 * linux-low.c (AT_HWCAP2): Add define if not already included.
4986 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4988 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4989 (aarch64_arch_setup): Call linux_get_hwcap.
4990 * linux-arm-low.c (arm_get_hwcap): Remove function.
4991 (arm_read_description): Call linux_get_hwcap.
4992 * linux-low.c (linux_get_auxv): New function.
4993 (linux_get_hwcap): Likewise.
4994 (linux_get_hwcap2): Likewise.
4995 * linux-low.h (linux_get_hwcap): New declaration.
4996 (linux_get_hwcap2): Likewise.
4997 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4998 (ppc_arch_setup): Call linux_get_hwcap.
4999 * linux-s390-low.c (s390_get_hwcap): Remove function.
5000 (s390_arch_setup): Call linux_get_hwcap.
5002 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5003 Jiong Wang <jiong.wang@arm.com>
5005 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5006 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5008 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5010 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5011 Jiong Wang <jiong.wang@arm.com>
5013 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5014 (aarch64_get_hwcap): New function.
5015 (aarch64_arch_setup): Read APIA hwcap.
5017 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5018 Jiong Wang <jiong.wang@arm.com>
5020 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5021 (initialize_low_tracepoint): Likewise.
5022 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5023 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5024 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5025 (aarch64_linux_read_description): Likewise.
5026 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5028 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5030 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5031 i386_create_target_description for 'segments' parameter.
5032 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5033 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5034 * win32-i386-low.c (i386_arch_setup): Likewise.
5036 2019-03-12 Tom Tromey <tromey@adacore.com>
5038 * linux-low.c (iterate_over_lwps): Update.
5040 2019-03-06 Tom Tromey <tom@tromey.com>
5042 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5043 (captured_main): Use SCOPE_EXIT.
5045 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5047 * configure.srv: Use '$enable_unittest' instead of '$development'
5048 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5051 2019-02-27 Tom Tromey <tromey@adacore.com>
5053 * gdbreplay.c (logchar): Handle \r\n.
5055 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5057 * linux-low.c (linux_attach): Add process before lwp.
5058 * server.c (attach_inferior): Check if already attached.
5060 2019-02-07 Tom Tromey <tom@tromey.com>
5062 * x86-tdesc.h: Rename include guard.
5063 * x86-low.h: Add include guard.
5064 * wincecompat.h: Rename include guard.
5065 * win32-low.h: Add include guard.
5066 * utils.h: Rename include guard.
5067 * tracepoint.h: Rename include guard.
5068 * tdesc.h: Rename include guard.
5069 * target.h: Rename include guard.
5070 * server.h: Rename include guard.
5071 * remote-utils.h: Rename include guard.
5072 * regcache.h: Rename include guard.
5073 * nto-low.h: Rename include guard.
5074 * notif.h: Add include guard.
5075 * mem-break.h: Rename include guard.
5076 * lynx-low.h: Add include guard.
5077 * linux-x86-tdesc.h: Add include guard.
5078 * linux-s390-tdesc.h: Add include guard.
5079 * linux-ppc-tdesc-init.h: Add include guard.
5080 * linux-low.h: Add include guard.
5081 * linux-aarch64-tdesc.h: Add include guard.
5082 * linux-aarch32-low.h: Add include guard.
5083 * inferiors.h: Rename include guard.
5084 * i387-fp.h: Rename include guard.
5085 * hostio.h: Rename include guard.
5086 * gdbthread.h: Rename include guard.
5087 * gdb_proc_service.h: Rename include guard.
5088 * event-loop.h: Rename include guard.
5089 * dll.h: Rename include guard.
5090 * debug.h: Rename include guard.
5091 * ax.h: Rename include guard.
5093 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5096 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5097 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5099 2019-01-25 Tom Tromey <tom@tromey.com>
5101 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5103 2019-01-25 Tom Tromey <tom@tromey.com>
5105 * win32-low.c: Fix common/ includes.
5106 * win32-i386-low.c: Fix common/ includes.
5107 * tracepoint.c: Fix common/ includes.
5108 * thread-db.c: Fix common/ includes.
5109 * target.h: Fix common/ includes.
5110 * symbol.c: Fix common/ includes.
5111 * spu-low.c: Fix common/ includes.
5112 * server.h: Fix common/ includes.
5113 * server.c: Fix common/ includes.
5114 * remote-utils.c: Fix common/ includes.
5115 * regcache.h: Fix common/ includes.
5116 * regcache.c: Fix common/ includes.
5117 * nto-x86-low.c: Fix common/ includes.
5118 * notif.h: Fix common/ includes.
5119 * mem-break.h: Fix common/ includes.
5120 * lynx-low.c: Fix common/ includes.
5121 * lynx-i386-low.c: Fix common/ includes.
5122 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5123 * linux-x86-low.c: Fix common/ includes.
5124 * linux-low.c: Fix common/ includes.
5125 * inferiors.h: Fix common/ includes.
5126 * i387-fp.c: Fix common/ includes.
5127 * hostio.c: Fix common/ includes.
5128 * hostio-errno.c: Fix common/ includes.
5129 * gdbthread.h: Fix common/ includes.
5130 * gdbreplay.c: Fix common/ includes.
5131 * fork-child.c: Fix common/ includes.
5132 * event-loop.c: Fix common/ includes.
5134 (enum gdb_agent_op): Fix common/ includes.
5136 2019-01-21 Tom Tromey <tom@tromey.com>
5138 * tracepoint.c: Fix includes.
5139 * remote-utils.c: Fix includes.
5140 * linux-x86-low.c: Fix includes.
5142 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5144 * gdbreplay.c (gdbreplay_version): Update copyright year in
5146 * server.c (gdbserver_version): Likewise.
5148 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5150 * linux-low.c (add_lwp): Switch ordering.
5152 2018-11-29 Tom Tromey <tom@tromey.com>
5154 * win32-low.c (win32_join): Take pid, not process.
5155 * target.h (struct target_ops) <join>: Change argument type.
5156 (join_inferior): Change argument name.
5157 * spu-low.c (spu_join): Take pid, not process.
5158 * server.c (handle_detach): Preserve pid before destroying
5160 * lynx-low.c (lynx_join): Take pid, not process.
5161 * linux-low.c (linux_join): Take pid, not process.
5163 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5165 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5166 (aarch64_cannot_fetch_register): Likewise.
5167 (struct linux_target_ops): Update references.
5169 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5171 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5173 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5175 * configure.srv (ipa_ppc_linux_regobj): Add
5176 powerpc-isa207-htm-vsx32l-ipa.o and
5177 powerpc-isa207-htm-vsx64l-ipa.o.
5178 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5179 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5180 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5181 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5182 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5183 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5184 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5185 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5186 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5187 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5188 (init_registers_powerpc_isa207_htm_vsx32l)
5189 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5190 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5191 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5192 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5193 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5194 (ppc_store_tm_ctarregset): New functions.
5195 (ppc_regsets): Add entries for HTM regsets.
5196 (ppc_arch_setup): Set htm in features struct when needed. Set
5197 sizes for the HTM regsets.
5198 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5199 (initialize_low_arch): Call
5200 init_registers_powerpc_isa207_htm_vsx32l and
5201 init_registers_powerpc_isa207_htm_vsx64l.
5202 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5203 PPC_TDESC_ISA207_HTM_VSX.
5204 (initialize_low_tracepoint): Call
5205 init_registers_powerpc_isa207_htm_vsx32l and
5206 init_registers_powerpc_isa207_htm_vsx64l.
5208 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5210 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5211 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5212 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5213 (ppc_store_pmuregset): New functions.
5214 (ppc_regsets): Add entries for ebb and pmu regsets.
5215 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5216 pmu regsets are available. Set sizes for these regsets.
5218 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5220 * configure.srv (ipa_ppc_linux_regobj): Add
5221 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5222 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5223 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5224 rs6000/powerpc-isa207-vsx32l.xml, and
5225 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5226 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5227 <PPC_TDESC_ISA207_VSX>: New enum value.
5228 (init_registers_powerpc_isa207_vsx32l): Declare.
5229 (init_registers_powerpc_isa207_vsx64l): Declare.
5230 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5231 (ppc_store_tarregset): New function.
5232 (ppc_regsets): Add entry for the TAR regset.
5233 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5234 size for the TAR regsets.
5235 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5236 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5237 and init_registers_powerpc_isa207_vsx64l.
5238 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5239 (initialize_low_tracepoint): Call
5240 init_registers_powerpc_isa207_vsx32l and
5241 init_registers_powerpc_isa207_vsx64l.
5243 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5244 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5246 * configure.srv (ipa_ppc_linux_regobj): Add
5247 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5248 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5249 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5250 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5251 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5252 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5253 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5254 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5255 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5256 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5257 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5258 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5259 (ppc_hwcap): Add comment.
5260 (ppc_hwcap2): New global.
5261 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5262 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5263 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5264 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5265 when needed. Set sizes for the the DSCR and PPR regsets.
5266 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5267 (initialize_low_arch): Call
5268 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5269 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5270 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5271 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5272 (initialize_low_tracepoint): Call
5273 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5274 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5276 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5278 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5280 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5281 Simon Marchi <simark@simark.ca>
5283 * acinclude.m4: Include "../selftest.m4".
5284 * configure: Regenerate.
5285 * configure.ac: Use "GDB_AC_SELFTEST".
5286 * configure.srv: Use "$enable_unittests" instead of
5287 "$development" when checking whether unit tests have been
5289 * server.c (captured_main): Update message informing that
5290 selftests have been disabled.
5292 2018-10-04 Tom Tromey <tom@tromey.com>
5294 * configure: Rebuild.
5296 2018-10-04 Tom Tromey <tom@tromey.com>
5298 * server.c (handle_status): Rename inner "thread".
5299 (process_serial_event): Declare "res" in 'm' case.
5300 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5301 (iterate_over_lwps): Rename inner "thread".
5302 (linux_qxfer_libraries_svr4): Rename inner "len".
5303 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5305 2018-10-01 Gary Benson <gbenson@redhat.com>
5307 * gdb_proc_service.h: Moved common code to
5308 common/gdb_proc_service.h.
5310 2018-10-01 Gary Benson <gbenson@redhat.com>
5312 * gdb_proc_service.h: Synchronize comments and whitespace with
5313 GDB's version of this file.
5315 2018-09-25 Tom Tromey <tom@tromey.com>
5317 * configure: Rebuild.
5318 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5320 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5322 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5323 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5324 ($(IPA_LIB)): Sort IPA_OBJS.
5326 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5328 * Makefile.in: Remove references to $(ADD_DEPS).
5330 2018-09-16 Tom Tromey <tom@tromey.com>
5332 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5334 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5337 2018-09-05 Tom Tromey <tom@tromey.com>
5339 * configure: Rebuild.
5341 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5344 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5346 2018-08-27 Tom Tromey <tom@tromey.com>
5349 * configure: Rebuild.
5351 2018-08-27 Tom Tromey <tom@tromey.com>
5353 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5354 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5355 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5356 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5357 (s390x_emit_stack_adjust): Add casts to unsigned char.
5359 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5363 * server.h (struct client_state) <disable_randomization>:
5366 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5368 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5370 (mips_supply_ptrace_register): Likewise.
5372 2018-07-22 Tom Tromey <tom@tromey.com>
5374 * configure: Rebuild.
5376 2018-07-22 Tom Tromey <tom@tromey.com>
5378 * win32-low.c (win32_create_inferior): Remove unused variables.
5379 * gdbreplay.c (remote_open): Remove unused variable.
5380 * remote-utils.c (remote_prepare): Remove unused variable.
5381 * x86-tdesc.h (X86_TDESC_H): Define.
5382 (amd64_expedite_regs): Define conditionally.
5383 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5384 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5385 * remote-utils.c (readchar): Remove unused variable.
5387 2018-07-13 Pedro Alves <palves@redhat.com>
5389 * linux-low.c (linux_kill): Change parameter to process_info
5390 pointer instead of pid. Adjust.
5391 * lynx-low.c (lynx_kill): Likewise.
5392 * nto-low.c (nto_kill): Likewise.
5393 * spu-low.c (spu_kill): Likewise.
5394 * win32-low.c (win32_kill): Likewise.
5395 * server.c (handle_v_kill, kill_inferior_callback)
5396 (detach_or_kill_for_exit): Adjust.
5397 * target.c (kill_inferior): Change parameter to process_info
5398 pointer instead of pid. Adjust.
5399 * target.h (struct target_ops) <kill>: Change parameter to
5400 process_info pointer instead of pid. Adjust all implementations
5402 (kill_inferior): Likewise.
5404 2018-07-13 Pedro Alves <palves@redhat.com>
5406 * linux-low.c (linux_detach, linux_join): Change parameter to
5407 process_info pointer instead of pid. Adjust.
5408 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5409 * nto-low.c (nto_detach): Likewise.
5410 * spu-low.c (spu_detach, spu_join): Likewise.
5411 * win32-low.c (win32_detach, win32_join): Likewise.
5412 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5413 * target.h (struct target_ops) <detach, join>: Change parameter to
5414 process_info pointer instead of pid. Adjust all implementations
5416 (detach_inferior, join_inferior): Rename 'pid' parameter to
5419 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5420 Jan Kratochvil <jan.kratochvil@redhat.com>
5421 Paul Fertser <fercerpav@gmail.com>
5422 Tsutomu Seki <sekiriki@gmail.com>
5424 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5425 (OBS): Add 'common/netstuff.o'.
5426 (GDBREPLAY_OBS): Likewise.
5427 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5428 (remote_open): Implement support for IPv6
5430 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5432 (handle_accept_event): Accept connections from IPv6 sources.
5433 (remote_prepare): Handle IPv6-style hostnames; implement
5434 support for IPv6 connections.
5435 (remote_open): Implement support for printing connections from
5438 2018-07-11 Pedro Alves <palves@redhat.com>
5441 * mem-break.c (any_persistent_commands): Add process_info
5442 parameter and use it instead of relying on the current process.
5443 Change return type to bool.
5444 * mem-break.h (any_persistent_commands): Add process_info
5445 parameter and change return type to bool.
5446 * server.c (handle_detach): Remove require_running_or_return call.
5447 Look up the process_info for the process we're about to detach.
5448 If not found, return back error to GDB. Adjust
5449 any_persistent_commands call to pass down a process pointer.
5451 2018-07-11 Pedro Alves <palves@redhat.com>
5453 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5454 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5455 instead of collect_register_by_name.
5456 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5457 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5459 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5460 Pedro Alves <palves@redhat.com>
5462 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5464 2018-07-03 Tom Tromey <tom@tromey.com>
5466 * linux-low.c: Update.
5467 * lynx-low.c: Update.
5468 * mem-break.c: Update.
5469 * nto-low.c: Update.
5470 * remote-utils.c: Update.
5472 * spu-low.c: Update.
5474 * win32-low.c: Update.
5476 2018-07-03 Tom Tromey <tom@tromey.com>
5480 2018-07-03 Tom Tromey <tom@tromey.com>
5482 * linux-low.c: Update.
5484 2018-07-03 Tom Tromey <tom@tromey.com>
5488 2018-07-03 Tom Tromey <tom@tromey.com>
5490 * linux-low.c: Update.
5491 * linux-mips-low.c: Update.
5492 * lynx-low.c: Update.
5493 * nto-low.c: Update.
5494 * remote-utils.c: Update.
5496 * spu-low.c: Update.
5498 * thread-db.c: Update.
5500 2018-07-03 Tom Tromey <tom@tromey.com>
5502 * linux-low.c: Update.
5503 * linux-mips-low.c: Update.
5504 * lynx-low.c: Update.
5505 * mem-break.c: Update.
5506 * nto-low.c: Update.
5507 * remote-utils.c: Update.
5509 * spu-low.c: Update.
5511 * tracepoint.c: Update.
5513 2018-07-03 Tom Tromey <tom@tromey.com>
5515 * linux-low.c: Update.
5516 * linux-ppc-low.c: Update.
5517 * linux-x86-low.c: Update.
5518 * proc-service.c: Update.
5520 * spu-low.c: Update.
5521 * thread-db.c: Update.
5522 * win32-low.c: Update.
5524 2018-07-03 Tom Tromey <tom@tromey.com>
5526 * linux-low.c: Update.
5527 * lynx-low.c: Update.
5528 * nto-low.c: Update.
5529 * remote-utils.c: Update.
5530 * spu-low.c: Update.
5531 * thread-db.c: Update.
5532 * win32-low.c: Update.
5534 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5536 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5537 parameter in call to 'amd64_create_target_description'.
5539 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5541 * x86-tdesc.h: Remove executable permission flag.
5543 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5545 * configure.ac: Remove AC_PREREQ, add missing quoting.
5546 * configure: Re-generate.
5547 * config.in: Re-generate.
5548 * aclocal.m4: Re-generate.
5550 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5552 * tracepoint.h (current_traceframe): Remove declaration.
5554 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5556 * linux-aarch64-low.c (is_sve_tdesc): New function.
5557 (aarch64_sve_regs_copy_to_regcache): Likewise.
5558 (aarch64_sve_regs_copy_from_regcache): Likewise.
5559 (aarch64_regs_info): Add SVE checks.
5560 (initialize_low_arch): Initialize SVE.
5562 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5564 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5566 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5568 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5569 (initialize_low_tracepoint): Likewise
5570 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5571 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5573 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5575 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5577 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5579 * server.h (PBUFSIZ): Increase size
5581 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5583 * regcache.c (regcache::raw_compare): New function.
5584 * regcache.h (regcache::raw_compare): New declaration.
5586 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5588 * regcache.c (new_register_cache): Use new.
5589 (free_register_cache): Use delete.
5590 (register_data): Use const.
5591 (supply_register): Move body inside regcache.
5592 (regcache::raw_supply): New override function.
5593 (collect_register): Move body inside regcache.
5594 (regcache::raw_collect): New override function.
5595 (regcache::get_register_status): New override function.
5596 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5598 2018-06-09 Tom Tromey <tom@tromey.com>
5600 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5602 (event_queue): Use std::queue.
5603 (gdb_event_xfree): Remove.
5604 (initialize_event_loop, process_event, wait_for_event): Update.
5606 2018-06-08 Stan Cox <scox@redhat.com>
5608 * win32-low.c (win32_create_inferior): last_ptid and last_status
5609 moved to client_state.
5611 2018-06-08 Pedro Alves <palves@redhat.com>
5613 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5614 common/common-exceptions.o, common/common-utils.o,
5615 common/errors.o, common/print-utils.o and utils.o.
5616 * gdbreplay.c: Include "common-defs.h" instead of the two
5617 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5618 string.h or alloca.h.
5619 (perror_with_name): Delete.
5620 (remote_open): Use xstrdup instead of strdup.
5621 (main): Rename to ...
5622 (captured_main): ... this.
5625 2018-06-08 Tom Tromey <tom@tromey.com>
5627 * linux-low.c (linux_low_read_btrace): Update.
5629 2018-06-04 Stan Cox <scox@redhat.com>
5631 * server.h (struct client_state): New.
5632 * server.c (cont_thread, general_thread, multi_process)
5633 (report_fork_events, report_vfork_events, report_exec_events)
5634 (report_thread_events, swbreak_feature, hwbreak_feature)
5635 (vCont_supported, disable_randomization, pass_signals)
5636 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5637 Moved to client_state.
5638 * remote-utils.c (remote_debug, noack_mode)
5639 (transport_is_reliable): Moved to client_state.
5640 * tracepoint.c (current_traceframe): Moved to client_state.
5643 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5644 linux-low.c, remote-utils.h, target.c: Use client_state.
5646 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5648 * configure.srv: Add new c/h file.
5650 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5652 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5655 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5657 * gdb.arch/mips-fpregset-core.exp: New test.
5658 * gdb.arch/mips-fpregset-core.c: New test source.
5660 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5663 * hostio.c (require_int): Do not report overflow for integers
5664 between 0xfffffff and 0x7fffffff.
5666 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5668 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5669 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5670 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5672 (the_low_target): Wire them.
5674 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5676 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5677 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5678 mode. Call collect_register_by_name with vscr using
5679 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5680 (ppc_store_vrregset): Add and set vscr_offset variable as in
5681 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5684 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5686 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5687 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5688 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5690 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5692 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5693 (ppc_store_vsxregset): Likewise.
5694 (ppc_fill_vrregset): Likewise.
5695 (ppc_store_vrregset): Likewise.
5696 (ppc_fill_evrregset): Likewise.
5697 (ppc_store_evrregset): Likewise.
5698 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5699 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5702 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5704 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5705 wordsize of the inferior. Call ppc_linux_target_wordsize.
5707 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5709 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5710 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5711 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5712 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5713 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5714 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5715 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5716 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5717 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5718 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5719 (tdesc_powerpc_e500l): Remove.
5720 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5721 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5722 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5723 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5725 (ppc_arch_setup): Remove target description matching code. Fill a
5726 ppc_linux_features struct and call ppc_linux_match_description
5729 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5731 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5732 width of the requested register exceeds the width of the
5734 (mips_cannot_store_register): Likewise.
5736 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5738 * linux-mips-low.c (mips_fetch_register): New function. Update
5740 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5741 (the_low_target): Wire `mips_fetch_register'.
5743 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5745 * lynx-i386-low.c (LYNXOS_178): New macro.
5746 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5747 the layout on LynxOS-178.
5748 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5749 handle floating point registers that are not supported by
5752 2018-05-10 Tom Tromey <tom@tromey.com>
5754 * configure: Rebuild.
5756 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5759 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5760 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5761 Use it to set the expedite_regs field in the given tdesc.
5762 * x86-tdesc.h: New file.
5763 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5764 Adjust following the addition of the new expedite_regs parameter
5765 to init_target_desc.
5766 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5767 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5768 (i386_linux_read_description, amd64_linux_read_description):
5769 Adjust following the addition of the new expedite_regs parameter
5770 to init_target_desc.
5771 * lynx-i386-low.c: #include "x86-tdesc.h".
5772 (lynx_i386_arch_setup): Adjust following the addition of the new
5773 expedite_regs parameter to init_target_desc.
5774 * nto-x86-low.c: #include "x86-tdesc.h".
5775 (nto_x86_arch_setup): Adjust following the addition of the new
5776 expedite_regs parameter to init_target_desc.
5777 * win32-i386-low.c: #include "x86-tdesc.h".
5778 (i386_arch_setup): Adjust following the addition of the new
5779 expedite_regs parameter to init_target_desc.
5781 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5784 * win32-low.c (win32_create_inferior): Add call to my_wait
5785 setting last_status global.
5787 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5790 * win32-low.c (create_process): Only call gdb_tilde_expand if
5791 inferior_cwd is not NULL.
5793 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5795 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5796 registers to the cache if their values have changed.
5797 (i387_xsave_to_cache): Provide default values for x87 control
5798 registers when these features are available, but disabled.
5799 * regcache.c (supply_register_by_name_zeroed): New function.
5800 * regcache.h (supply_register_by_name_zeroed): Declare new
5803 2018-05-07 Tom Tromey <tom@tromey.com>
5805 * configure: Rebuild.
5807 2018-05-04 Tom Tromey <tom@tromey.com>
5809 * configure: Rebuild.
5811 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5812 Pedro Alves <palves@redhat.com>
5814 * linux-aarch64-low.c (aarch64_stopped_data_address):
5817 2018-04-27 Tom Tromey <tom@tromey.com>
5819 * configure: Rebuild.
5821 2018-04-23 Tom Tromey <tom@tromey.com>
5823 * configure: Rebuild.
5825 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5827 * Makefile.in (depcomp): Add "..".
5828 (all_deps_files): New and use it.
5830 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5832 * configure.srv (aarch64*-*-linux*): Don't include xml.
5833 (i[34567]86-*-cygwin*): Likewise.
5834 (i[34567]86-*-linux*): Likewise.
5835 (i[34567]86-*-lynxos*): Likewise.
5836 (i[34567]86-*-mingw32ce*): Likewise.
5837 (i[34567]86-*-mingw*): Likewise.
5838 (i[34567]86-*-nto*): Likewise.
5839 (tic6x-*-uclinux): Likewise.
5840 (x86_64-*-linux*): Likewise.
5841 (x86_64-*-mingw*): Likewise.
5842 (x86_64-*-cygwin*): Likewise.
5844 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5846 * tdesc.c: Remove xml parameter.
5848 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5850 * server.c (get_features_xml): Remove cast.
5851 * tdesc.c (void target_desc::accept): Fill in function.
5852 (tdesc_get_features_xml): Remove old xml creation.
5853 (print_xml_feature::visit_pre): Add xml vistor.
5854 * tdesc.h (struct target_desc): Make xmltarget mutable.
5855 (tdesc_get_features_xml): Remove declaration.
5857 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5859 * tdesc.c (tdesc_architecture_name): Add new function.
5860 (tdesc_osabi_name): Likewise.
5861 (tdesc_get_features_xml): Use new functions.
5863 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5865 * tdesc.c (tdesc_create_flags): Remove.
5866 (tdesc_add_flag): Likewise.
5867 (tdesc_named_type): Likewise.
5868 (tdesc_create_union): Likewise.
5869 (tdesc_create_struct): Likewise.
5870 (tdesc_create_vector): Likewise.
5871 (tdesc_add_bitfield): Likewise.
5872 (tdesc_add_field): Likewise.
5873 (tdesc_set_struct_size): Likewise.
5875 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5877 * tdesc.c (~target_desc): Remove implictly deleted items.
5878 (init_target_desc): Iterate all features.
5879 (tdesc_get_features_xml): Use vector.
5880 (tdesc_create_feature): Create feature.
5881 * tdesc.h (tdesc_feature) Remove
5882 (target_desc): Add features.
5884 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5886 * Makefile.in: Add common/tdesc.c
5887 * tdesc.c (init_target_desc): init all reg_defs from register
5889 (tdesc_create_reg): Create tdesc_reg.
5890 * tdesc.h (tdesc_feature): Add register vector.
5892 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5894 * tdesc.h (struct target_desc) <features>: Change type to
5895 std::vector<std::string>.
5896 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5898 (tdesc_get_features_xml): Likewise.
5899 (tdesc_create_feature): Likewise.
5901 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5903 * regcache.c (find_register_by_number): Return a ref.
5904 (find_regno): Use references.
5905 (register_size): Likewise.
5906 (register_data): Likewise.
5907 * tdesc.c (target_desc::~target_desc): Remove free calls.
5908 (target_desc::operator==): Use std::vector compare.
5909 (init_target_desc): Use reference.
5910 (tdesc_create_reg): Use reg constructors.
5911 * tdesc.h (struct target_desc): Replace pointer with object.
5913 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5915 * regcache.c (find_register_by_number): Make static.
5916 (find_regno): Use find_register_by_number
5917 * regcache.h (struct reg): Remove declaration.
5919 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5921 * tdesc.c (target_desc::~target_desc): Move to here.
5922 (target_desc::operator==): Likewise.
5923 * tdesc.h (target_desc::~target_desc): Move from here.
5924 (target_desc::operator==): Likewise.
5926 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5928 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5930 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5932 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5934 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5935 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5936 and init_registers_s390_gs_linux64.
5938 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5940 * linux-s390-low.c (s390_fill_gs): Remove function.
5941 (s390_fill_gsbc): Remove function.
5942 (s390_regsets): Set fill functions for the guarded storage regsets
5945 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5947 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5948 the word size. Add comment.
5949 (s390_get_wordsize): New function.
5950 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5951 pswm with it. Instead, use s390_get_wordsize to determine the
5952 word size first and derive the correct tdesc from that directly.
5954 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5956 * Makefile.in: Include silent-rules.mk.
5957 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5958 (COMPILE): Add ECHO_CXX.
5959 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5960 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5961 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5962 (version-generated.c): Add ECHO_GEN.
5963 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5964 (IPAGENT_COMPILE): Add ECHO_CXX.
5965 (%-generated.c): Add ECHO_REGDAT.
5967 2018-03-14 Tom Tromey <tom@tromey.com>
5970 * ax.c (ax_printf): Special case for NULL.
5972 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5974 * linux-low.c (linux_qxfer_libraries_svr4): Use
5975 xml_escape_text_append.
5977 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5979 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5981 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5983 * server.c (handle_general_set): Remove unnecessary xstrdup.
5985 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5987 * server.c (parse_debug_format_options): Adjust to
5988 delim_string_to_char_ptr_vec changes.
5989 * thread-db.c (thread_db_load_search): Adjust to
5990 dirnames_to_char_ptr_vec changes.
5992 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5994 * target.h (target_enable_btrace, target_disable_btrace)
5995 (target_read_btrace, target_read_btrace_conf): Turn macro into
5996 inline function. Throw error if target method is not defined.
5997 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5998 check for btrace target method. Be prepared to handle exceptions
5999 from btrace target methods.
6001 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6003 * server.c (captured_main): Change order of error message printed
6004 when the current working directory cannot be found.
6006 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6008 * server.c: Include "filenames.h" and "pathstuff.h".
6009 (program_name): Delete variable.
6010 (program_path): New anonymous class.
6011 (get_exec_wrapper): Use "program_path" instead of
6013 (handle_v_run): Likewise.
6014 (captured_main): Likewise.
6015 (process_serial_event): Likewise.
6017 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6019 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6020 (OBJS): Add "pathstuff.o".
6021 * server.c (current_directory): New global variable.
6022 (captured_main): Initialize "current_directory".
6024 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6026 * tdesc.c: Use common/tdesc.h.
6027 * tdesc.h: Likewise.
6029 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6030 Simon Marchi <simon.marchi@ericsson.com>
6032 * Makefile.in: Switch order of make rules.
6034 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6036 * Makefile.in: Add common directory in build.
6037 * configure.ac: Add common reference.
6038 * configure: Regenerate.
6040 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6042 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6043 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6044 * spu-low.c (spu_target_ops): Likewise.
6045 * win32-low.c (win32_target_ops): Likewise.
6046 * server.c (supported_btrace_packets): Report packets unconditionally.
6047 * target.h (target_ops) <supports_btrace>: Remove.
6048 (target_supports_btrace): Remove.
6050 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6052 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6053 (handle_btrace_disable): Change return type to void. Use exceptions
6055 (handle_btrace_general_set): Catch exception and copy message to
6058 2018-02-08 Tom Tromey <tom@tromey.com>
6060 * linux-low.c (install_software_single_step_breakpoints): Use
6061 make_scoped_restore.
6062 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6063 (do_restore_current_thread_cleanup): Remove.
6064 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6067 2018-02-08 Tom Tromey <tom@tromey.com>
6069 * mem-break.c (set_raw_breakpoint_at): Use
6070 gdb::unique_xmalloc_ptr.
6072 2018-01-30 Pedro Alves <palves@redhat.com>
6075 * target.c (target_terminal::terminal_state): Rename to ...
6076 (target_terminal::m_terminal_state): ... this.
6078 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6080 * linux-low.c (handle_extended_wait): Surround call to
6081 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6083 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6085 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6086 linux_ptrace_attach_fail_reason_string now returning an
6088 (linux_attach): Likewise.
6089 * thread-db.c (attach_thread): Likewise.
6091 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6094 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6095 checking for fs_base/gs_base fields in struct user_regs_struct.
6096 * configure: Regenerate.
6098 2018-01-16 Yao Qi <yao.qi@linaro.org>
6101 * linux-low.c (fetch_register): Call supply_register instead of
6104 2018-01-08 Yao Qi <yao.qi@linaro.org>
6105 Simon Marchi <simon.marchi@ericsson.com>
6107 * Makefile.in (OBS): Remove selftest.o.
6108 * configure.ac: Set srv_selftest_objs if $development is true.
6109 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6110 * configure: Re-generated.
6111 * server.c (captured_main): Wrap variable selftest_filter with
6114 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6116 * server.c (parse_debug_format_options): Return std::string.
6117 (handle_monitor_command, captured_main): Adjust.
6119 2018-01-05 Pedro Alves <palves@redhat.com>
6122 * server.c (captured_main): Pass quiet=false to
6123 save_original_signals_state.
6125 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6127 * gdbreplay.c (gdbreplay_version): Update copyright year in
6129 * server.c (gdbserver_version): Likewise.
6131 2017-12-08 Tom Tromey <tom@tromey.com>
6133 * ax.c (ax_printf): Update.
6135 2017-12-07 Yao Qi <yao.qi@linaro.org>
6137 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6138 aarch64_linux_read_description.
6139 * linux-amd64-ipa.c (idx2mask): New array.
6140 (get_ipa_tdesc): Move idx2mask out.
6141 (initialize_low_tracepoint): Initialize target descriptions.
6142 * linux-i386-ipa.c (idx2mask): New array.
6143 (get_ipa_tdesc): Move idx2mask out.
6144 (initialize_low_tracepoint): Initialize target descriptions.
6146 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6148 * tdesc.c (struct tdesc_type): Change return type.
6149 (tdesc_add_flag): Change parameter type.
6150 (tdesc_add_bitfield): Likewise.
6151 (tdesc_add_field): Likewise.
6152 (tdesc_set_struct_size): Likewise.
6154 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6156 * regcache.c (registers_to_string): Remove unused variable.
6158 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6160 * inferiors.c (for_each_inferior_with_data): Remove.
6161 * inferiors.h (for_each_inferior_with_data): Remove.
6162 * server.c (handle_qxfer_threads_worker): Change parameter type.
6163 (handle_qxfer_threads_proper): Use for_each_thread.
6165 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6167 * inferiors.c (for_each_inferior): Remove.
6168 (clear_inferiors): Use for_each_thread.
6169 * inferiors.h (for_each_inferior): Remove.
6170 * linux-low.c (linux_wait_for_event_filtered): Use
6172 (linux_stabilize_threads): Likewise.
6173 * regcache.c (regcache_release): Likewise.
6174 * server.c (gdb_wants_all_threads_stopped): Likewise.
6175 (clear_pending_status_callback): Remove.
6176 (handle_status): Use for_each_thread.
6177 (captured_main): Likewise.
6178 * win32-low.c (child_init_thread_list): Likewise.
6179 (win32_clear_inferiors): Likewise.
6180 (fake_breakpoint_event): Likewise.
6182 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6184 * inferiors.h (find_inferior): Remove.
6185 * inferiors.c (find_inferior): Remove.
6187 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6189 * linux-low.c (resume_status_pending_p): Update comment.
6190 (need_step_over_p): Update comment.
6192 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6194 * linux-low.c (proceed_one_lwp): Return void, change parameter
6196 (unsuspend_and_proceed_one_lwp): Likewise.
6197 (proceed_all_lwps): Use for_each_thread.
6198 (unstop_all_lwps): Likewise.
6200 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6202 * linux-low.c (linux_resume_one_thread): Return void, take
6204 (linux_resume): Use for_each_thread.
6206 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6208 * linux-low.c (send_sigstop_callback): Return void, change
6209 parameter type. Rename to...
6210 (send_sigstop): ... this.
6211 (suspend_and_send_sigstop_callback): Return void, change parameter
6213 (suspend_and_send_sigstop): ... this.
6214 (stop_all_lwps): Use for_each_thread.
6216 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6218 * linux-low.c (lwp_running): Return bool, remove unused
6220 (linux_stabilize_threads): Use find_thread.
6222 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6224 * linux-low.c (select_singlestep_lwp_callback): Remove.
6225 (count_events_callback): Remove.
6226 (select_event_lwp_callback): Remove.
6227 (select_event_lwp): Use find_thread/for_each_thread.
6229 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6231 * linux-low.c (not_stopped_callback): Return bool, take filter
6233 (linux_wait_for_event_filtered): Use find_thread.
6234 (linux_wait_1): Likewise.
6236 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6238 * linux-low.c (same_lwp): Remove.
6239 (find_lwp_pid): Use find_thread.
6241 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6243 * linux-low.c (delete_lwp_callback): Remove.
6244 (linux_mourn): Use for_each_thread.
6246 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6248 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6249 args parameter, don't check for pid.
6250 (linux_detach): Use for_each_thread.
6252 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6254 * linux-low.c (struct counter): Remove.
6255 (second_thread_of_pid_p): Remove.
6256 (last_thread_of_process_p): Use find_thread.
6258 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6260 * inferiors.c (find_inferior_in_random): Remove.
6261 * inferiors.h (find_inferior_in_random): Remove.
6262 * linux-low.c (status_pending_p_callback): Return bool, accept
6263 parameter ptid directly.
6264 (linux_wait_for_event_filtered): Use find_thread_in_random.
6265 (linux_wait_1): Likewise.
6267 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6269 * inferiors.c (find_inferior_id): Remove.
6270 (find_thread_ptid): Move implemention from find_inferior_id to
6272 * inferiors.h (find_inferior_id): Remove.
6273 * server.c (handle_status): Use find_thread_ptid.
6274 (process_serial_event): Likewise.
6275 * thread-db.c (find_one_thread): Likewise.
6276 (thread_db_thread_handle): Likewise.
6277 * win32-low.c (thread_rec): Likewise.
6278 (child_delete_thread): Likewise.
6279 (win32_thread_alive): Likewise.
6280 (get_child_debug_event): Likewise.
6282 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6284 * linux-mips-low.c (update_watch_registers_callback): Return
6285 void, remove pid_p parameter, don't check for pid.
6286 (mips_insert_point, mips_remove_point): Use for_each_thread.
6288 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6290 * lynx.low (lynx_delete_thread_callback): Remove.
6291 (lynx_mourn): Use for_each_thread.
6293 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6295 * regcache.c (regcache_invalidate_one): Remove.
6296 (regcache_invalidate_pid): use for_each_thread.
6298 2017-11-26 Tom Tromey <tom@tromey.com>
6300 * linux-low.c (linux_create_inferior): Update.
6302 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6304 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6306 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6308 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6309 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6310 * linux-aarch64-tdesc-selftest.c: New file.
6311 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6313 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6315 * configure.srv: Add new file.
6316 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6317 * linux-aarch64-tdesc-selftest.c: New file.
6318 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6320 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6322 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6323 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6324 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6326 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6328 * configure.srv: Add new files.
6329 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6330 aarch64_linux_read_description.
6331 * linux-aarch64-low.c (aarch64_linux_read_description):
6332 Merge with aarch64_arch_setup.
6333 (aarch64_arch_setup): Call aarch64_linux_read_description.
6334 * linux-aarch64-tdesc.c: New file.
6335 * linux-aarch64-tdesc.h: New file.
6337 2017-11-24 Yao Qi <yao.qi@linaro.org>
6339 * configure.srv: Set $srv_regobj for tic6x-linux.
6340 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6341 (tic6x_read_description): Move some code to tic6x_arch_setup.
6342 (tic6x_tdesc_test): New function.
6343 (initialize_low_arch): Call selftests::register_test.
6345 2017-11-22 Yao Qi <yao.qi@linaro.org>
6347 * remote-utils.c (prepare_resume_reply): Use memcpy.
6349 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6351 * linux-low.c (kill_one_lwp_callback): Return void, take
6352 argument directly, don't filter on pid.
6353 (linux_kill): Use for_each_thread.
6355 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6357 * linux-low.c (need_step_over_p): Return bool, remove dummy
6359 (linux_resume, proceed_all_lwps): Use find_thread.
6361 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6363 * linux-low.c (resume_status_pending_p): Return bool, remove
6365 (linux_resume): Use find_thread.
6367 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6369 * linux-low.c (struct thread_resume_array): Remove.
6370 (linux_set_resume_request): Return void, take arguments
6372 (linux_resume): Use for_each_thread.
6374 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6376 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6377 return bool, remove data argument.
6378 (linux_stabilize_threads): Use find_thread.
6380 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6382 * linux-low.c (unsuspend_one_lwp): Remove.
6383 (unsuspend_all_lwps): Use for_each_thread, inline code from
6386 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6388 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6389 * linux-low.c (struct iterate_over_lwps_args): Remove.
6390 (iterate_over_lwps_filter): Remove.
6391 (iterate_over_lwps): Use find_thread.
6393 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6395 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6396 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6397 code from reset_lwp_ptrace_options_callback.
6399 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6401 * linux-arm-low.c (struct update_registers_data): Remove.
6402 (update_registers_callback): Return void, take arguments
6403 directly, don't check thread's pid.
6404 (arm_insert_point, arm_remove_point): Use for_each_thread.
6406 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6408 * win32-low.c (continue_one_thread): Return void, take argument
6410 (child_continue): Use for_each_thread.
6412 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6414 * win32-i386-low.c (update_debug_registers_callback): Rename
6416 (update_debug_registers): ... this, return void, remove pid_p arg.
6417 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6419 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6421 * inferiors.h (struct process_info): Add constructor, initialize
6423 <syscalls_to_catch>: Change type to std::vector<int>.
6424 * inferiors.c (add_process): Allocate process_info with new.
6425 (remove_process): Free process_info with delete.
6426 * linux-low.c (handle_extended_wait): Adjust.
6427 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6428 * server.c (handle_general_set): Adjust.
6430 2017-11-16 Pedro Alves <palves@redhat.com>
6432 * remote-utils.c (remote_close): Block SIGIO signals instead of
6433 uninstalling the SIGIO handler.
6435 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6437 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6439 2017-11-16 Yao Qi <yao.qi@linaro.org>
6441 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6442 (tic6x_store_gregset): Likewise.
6443 (tic6x_usrregs_info): Move it up.
6445 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6447 * Makefile.in: Update arch rules.
6448 * configure.srv: Explicitly mark arch/ files.
6450 2017-11-13 Andreas Schwab <schwab@suse.de>
6452 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6454 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6456 2017-11-06 Pedro Alves <palves@redhat.com>
6458 * config.in, configure: Regenerate.
6460 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6462 * target.c (struct thread_search): Remove.
6463 (thread_search_callback): Remove.
6464 (prepare_to_access_memory): Use for_each_thread instead of
6465 find_inferior. Inline code from thread_search_callback.
6467 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6469 * server.c (struct visit_actioned_threads_data): Remove.
6470 (visit_actioned_threads): Change prototype to take arguments
6472 (resume): Use find_thread instead of find_inferior.
6474 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6476 * server.c (queue_stop_reply_callback): Change prototype, return
6478 (find_status_pending_thread_callback): Remove.
6479 (handle_status): Replace find_inferior with find_thread and
6482 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6484 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6486 (aarch64_store_gregset): Likewise.
6487 (aarch64_fill_fpregset): Likewise.
6488 (aarch64_store_fpregset): Likewise.
6490 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6492 * gdbthread.h (find_thread, for_each_thread): New functions.
6493 * inferiors.c (thread_of_pid): Remove.
6494 (find_any_thread_of_pid): Use find_thread.
6495 * linux-low.c (num_lwps): Use for_each_thread.
6497 2017-10-17 Yao Qi <yao.qi@linaro.org>
6499 * Makefile.in: Remove one rule.
6500 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6502 2017-10-17 Yao Qi <yao.qi@linaro.org>
6504 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6505 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6507 2017-10-17 Yao Qi <yao.qi@linaro.org>
6509 * configure.srv: Rename arm.o with arch/arm.o.
6511 2017-10-17 Yao Qi <yao.qi@linaro.org>
6513 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6514 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6515 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6516 (arch-i386.o, arch-amd64.o): Remove rules.
6517 (arch/%.o): New rule.
6518 Update POSTCOMPILE and COMPILE.pre.
6519 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6520 * configure: Re-generated.
6521 * configure.srv: Replace arch-i386.o with arch/i386.o.
6522 Replace arch-amd64.o with arch/amd64.o.
6524 2017-10-16 Yao Qi <yao.qi@linaro.org>
6526 * configure: Regenerated.
6528 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6530 * inferiors.h: (struct inferior_list): Remove.
6531 (struct inferior_list_entry); Remove.
6532 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6533 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6534 get_first_inferior): Remove.
6535 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6536 find_inferior_id, find_inferior_in_random): Change signature.
6537 * inferiors.c (all_threads): Change type to
6538 std::list<thread_info *>.
6539 (get_thread): Remove macro.
6540 (find_inferior, find_inferior_id): Change signature, implement
6542 (find_inferior_in_random): Change signature, implement using
6543 find_thread_in_random.
6544 (for_each_inferior, for_each_inferior_with_data): Change
6545 signature, implement using for_each_thread.
6546 (add_inferior_to_list, remove_inferior): Remove.
6547 (add_thread, get_first_thread, thread_of_pid,
6548 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6549 (get_first_inferior, one_inferior_p, clear_inferior_list):
6551 (clear_inferiors, get_thread_process): Update.
6552 * gdbthread.h: Include <list>.
6553 (struct thread_info) <entry>: Remove field.
6555 (all_threads): Change type to std::list<thread_info *>.
6556 (get_first_inferior): Add doc.
6557 (find_thread, for_each_thread, find_thread_in_random): New
6559 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6560 * linux-arm-low.c (update_registers_callback): Update.
6561 * linux-low.c (second_thread_of_pid_p): Update.
6562 (kill_one_lwp_callback, linux_detach_lwp_callback,
6563 delete_lwp_callback, status_pending_p_callback, same_lwp,
6564 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6565 iterate_over_lwps, not_stopped_callback,
6566 resume_stopped_resumed_lwps, count_events_callback,
6567 select_singlestep_lwp_callback, select_event_lwp_callback,
6568 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6569 suspend_and_send_sigstop_callback, wait_for_sigstop,
6570 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6571 lwp_running, linux_set_resume_request, resume_status_pending_p,
6572 need_step_over_p, start_step_over, linux_resume_one_thread,
6573 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6574 reset_lwp_ptrace_options_callback): Update.
6575 * linux-mips-low.c (update_watch_registers_callback): Update.
6576 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6578 (free_register_cache_thread_one): Remove.
6579 (regcache_release): Update.
6580 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6581 handle_qxfer_threads_worker): Update.
6582 (handle_query): Update, use list iterator.
6583 (visit_actioned_threads, handle_pending_status,
6584 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6585 clear_pending_status_callback, set_pending_status_callback,
6586 find_status_pending_thread_callback, handle_status,
6587 process_serial_event): Update.
6588 * target.c (thread_search_callback): Update.
6589 * thread-db.c (thread_db_get_tls_address): Update.
6590 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6592 * win32-i386-low.c (update_debug_registers_callback): Update.
6593 * win32-low.c (delete_thread_info, child_delete_thread,
6594 continue_one_thread, suspend_one_thread,
6595 get_child_debug_event): Adjust.
6597 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6599 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6600 * inferiors.h: Include <list>.
6601 (struct process_info) <entry>: Remove field.
6603 (pid_of): Change macro to function.
6604 (ptid_of, lwpid_of): Remove macro.
6605 (all_processes): Change type to std::list<process_info *>.
6606 (ALL_PROCESSES): Remove macro.
6607 (for_each_process, find_process): New function.
6608 * inferiors.c (all_processes): Change type to
6609 std::list<process_info *>.
6610 (find_thread_process): Adjust.
6611 (add_process): Likewise.
6612 (remove_process): Likewise.
6613 (find_process_pid): Likewise.
6614 (get_first_process): Likewise.
6615 (started_inferior_callback): Remove.
6616 (have_started_inferiors_p): Adjust.
6617 (attached_inferior_callback): Remove.
6618 (have_attached_inferiors_p): Adjust.
6619 * linux-low.c (check_zombie_leaders): Likewise.
6620 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6621 (x86_linux_update_xmltarget): Adjust.
6622 * server.c (handle_query): Likewise.
6623 (gdb_reattached_process): Remove.
6624 (handle_status): Adjust.
6625 (kill_inferior_callback): Likewise.
6626 (detach_or_kill_inferior): Remove.
6627 (print_started_pid): Likewise.
6628 (print_attached_pid): Likewise.
6629 (detach_or_kill_for_exit): Update.
6630 (process_serial_event): Likewise.
6631 * linux-arm-low.c (arm_new_fork): Likewise.
6633 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6635 * dll.h: Include <list>.
6636 (struct dll_info): Add constructor.
6637 <entry>: Remove field.
6638 (all_dlls): Change type to std::list<dll_info>.
6639 * dll.c: Include <algorithm>.
6640 (get_dll): Remove macro.
6641 (all_dlls): Change type to std::list<dll_info *>.
6642 (free_one_dll): Remove.
6643 (match_dll): Likewise.
6644 (loaded_dll): Adjust.
6645 (unloaded_dll): Adjust to all_dlls type change, use
6646 std::find_if. Inline code from match_dll.
6647 (clear_dlls): Adjust to all_dlls type change.
6648 * server.c (emit_dll_description): Remove.
6649 (handle_qxfer_libraries): Adjust to all_dlls type change,
6650 integrate emit_dll_description's functionality.
6652 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6654 * linux-low.h (struct linux_target_ops) <delete_process>: New
6656 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6657 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6658 (struct linux_target_ops): Add delete_process callback.
6659 * linux-arm-low.c (arm_delete_process): New.
6660 (struct linux_target_ops): Add delete_process callback.
6661 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6662 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6663 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6664 * linux-mips-low.c (mips_linux_delete_process): New.
6665 (struct linux_target_ops): Add delete_process callback.
6666 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6667 * linux-s390-low.c (struct linux_target_ops): Likewise.
6668 * linux-sh-low.c (struct linux_target_ops): Likewise.
6669 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6670 * linux-tile-low.c (struct linux_target_ops): Likewise.
6671 * linux-x86-low.c (x86_linux_delete_process): New.
6672 (struct linux_target_ops): Add delete_process callback.
6673 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6675 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6677 * linux-aarch64-low.c (the_low_target): Add thread delete
6679 * linux-arm-low.c (arm_delete_thread): New function.
6680 (the_low_target): Add thread delete callback.
6681 * linux-bfin-low.c (the_low_target): Likewise.
6682 * linux-crisv32-low.c (the_low_target): Likewise.
6683 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6685 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6687 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6688 * linux-mips-low.c (mips_linux_delete_thread): New function.
6689 (the_low_target): Add thread delete callback.
6690 * linux-ppc-low.c (the_low_target): Likewise.
6691 * linux-s390-low.c (the_low_target): Likewise.
6692 * linux-sh-low.c (the_low_target): Likewise.
6693 * linux-tic6x-low.c (the_low_target): Likewise.
6694 * linux-tile-low.c (the_low_target): Likewise.
6695 * linux-x86-low.c (the_low_target): Likewise.
6696 * linux-xtensa-low.c (the_low_target): Likewise.
6698 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6700 * win32-low.c: Include "common-inferior.h".
6702 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6704 * inferiors.c (set_inferior_cwd): New function.
6705 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6706 (handle_query): Inform that QSetWorkingDir is supported.
6707 * win32-low.c (create_process): Pass the inferior's cwd to
6710 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6712 * inferiors.c (current_inferior_cwd): New global variable.
6713 (get_inferior_cwd): New function.
6714 * inferiors.h (struct process_info) <cwd>: New field.
6716 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6718 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6719 (OBS): Add gdb_tilde_expand.o.
6721 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6723 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6724 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6726 2017-09-29 Pedro Alves <palves@redhat.com>
6728 * ax.c (gdb_parse_agent_expr): Constify.
6729 * ax.h (gdb_parse_agent_expr): Constify.
6730 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6732 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6733 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6734 * remote-utils.h (read_ptid): Constify.
6735 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6736 (process_point_options, process_serial_event): Constify.
6737 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6738 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6739 (cmd_qtbuffer): Constify.
6741 2017-09-29 Pedro Alves <palves@redhat.com>
6743 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6746 2017-09-29 Pedro Alves <palves@redhat.com>
6748 * linux-low.c (handle_extended_wait): Pass parent thread instead
6749 of process to thread_db_notice_clone.
6750 * linux-low.h (thread_db_notice_clone): Replace parent process
6751 parameter with parent thread parameter.
6752 * thread-db.c (find_one_thread): Add comment.
6753 (thread_db_notice_clone): Replace parent process parameter with
6754 parent thread parameter. Temporarily switch to the parent thread.
6756 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6758 * gdbthread.h: Include "common-gdbthread.h".
6759 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6760 "if" when validating the ptid.
6761 * remote-utils.c: Include "gdbthread.h".
6762 (prepare_resume_reply): Use "switch_to_thread".
6763 * target.c (done_accessing_memory): Likewise.
6765 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6767 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6768 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6769 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6770 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6771 s390x-gs-linux64-ipa.o to ipa_obj.
6772 * linux-s390-low.c (HWCAP_S390_GS): New define.
6773 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6775 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6776 (s390_arch_setup): Check for guarded-storage support and choose
6778 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6779 init_registers_s390x_gs_linux64.
6780 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6782 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6783 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6785 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6787 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6789 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6791 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6792 (thread_db_thread_handle): Declare.
6793 * linux-low.c (linux_target_ops): Initialize thread_handle.
6794 * server.c (handle_qxfer_threads_worker): Add support for
6796 * target.h (struct target_ops): Add new function pointer,
6798 (target_thread_handle): Define.
6799 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6801 (thread_db_thread_handle): New function.
6803 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6805 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6806 * linux-low.h (thread_db_notice_clone): Declare.
6807 * thread-db.c (thread_db_notice_clone): New function.
6809 2017-09-21 Pedro Alves <palves@redhat.com>
6811 * server.c (gdb_read_memory, handle_status, process_serial_event)
6812 (handle_serial_event, handle_target_event): Adjust to
6813 set_desired_thread prototype change.
6814 * target.c (set_desired_thread): Remove 'use_general' parameter
6816 * target.h (set_desired_thread): Remove 'use_general' parameter.
6818 2017-09-20 Tom Tromey <tom@tromey.com>
6820 * target.c (target_terminal::terminal_state): Define.
6821 (target_terminal::init): Rename from target_terminal_init.
6822 (target_terminal::inferior): Rename from
6823 target_terminal_inferior.
6824 (target_terminal::ours): Rename from target_terminal_ours.
6825 (target_terminal::ours_for_output, target_terminal::info): New.
6827 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6829 * server.c (accumulate_file_name_length): Remove.
6830 (emit_dll_description): Adjust to std::string change.
6831 (handle_qxfer_libraries): Use std::string to hold document.
6833 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6835 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6836 return type of xml_escape_text.
6837 * server.c (emit_dll_description): Likewise.
6839 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6841 * server.c (captured_main): Accept argument for --selftest.
6842 Update run_tests call.
6843 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6844 when registering selftests.
6846 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6848 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6849 instead of "VEC" for "target_desc.reg_defs".
6850 (regcache_cpy): Likewise.
6851 (registers_to_string): Likewise.
6852 (registers_from_string): Likewise.
6853 (find_regno): Likewise.
6854 (supply_regblock): Likewise.
6855 (regcache_raw_read_unsigned): Likewise.
6856 * tdesc.c (init_target_desc): Likewise.
6857 (tdesc_create_reg): Likewise.
6858 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6859 (struct target_desc) <reg_defs>: Convert to "std::vector".
6860 (target_desc): Do not initialize "reg_defs".
6861 (~target_desc): Update code to use "std::vector" instead of "VEC"
6862 for "target_desc.reg_defs".
6863 (operator==): Likewise.
6865 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6867 * inferiors.h (thread_to_gdb_id): Remove.
6868 * inferiors.c (thread_to_gdb_id): Remove.
6869 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6870 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6871 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6873 * nto-low.c (nto_fetch_registers, nto_store_registers,
6874 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6876 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6878 * inferiors.h (gdb_id_to_thread_id): Remove.
6879 * inferiors.c (gdb_id_to_thread_id): Remove.
6880 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6881 removal. Move pid declaration closer to where it's used.
6883 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6885 * server.c (handle_detach): New function.
6886 (process_serial_event): Move code out, call handle_detach.
6888 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6890 * server.c (require_running): Rename to ...
6891 (require_running_or_return): ... this ...
6892 (require_running_or_break): ... and this.
6893 (handle_query, process_serial_event): Adjust.
6895 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6897 * linux-low.c (linux_set_resume_request): Remove unused
6900 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6902 * server.c (first_thread_of): Remove.
6903 (process_serial_event): Replace usage of first_thread_of with
6904 find_any_thread_of_pid.
6905 * tracepoint.c (same_process_p): Remove.
6906 (gdb_agent_about_to_close): Replace usage of same_process_p with
6907 find_any_thread_of_pid.
6908 * linux-x86-low.c (same_process_callback): Remove.
6909 (x86_arch_setup_process_callback): Replace usage of
6910 same_process_callback with find_any_thread_of_pid.
6911 * thread-db.c (any_thread_of): Remove.
6912 (switch_to_process): Replace usage of any_thread_of with
6913 find_any_thread_of_pid.
6914 * inferiors.c (thread_pid_matches_callback): Remove.
6915 (find_thread_process): Adjust to use find_any_thread_of_pid.
6917 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6919 * regcache.c (get_thread_regcache): Guard calls to "memset"
6922 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6924 * linux-low.c (handle_extended_wait): Use
6925 "allocate_target_description" instead of "XNEW".
6926 * linux-x86-low.c (initialize_low_arch): Likewise.
6928 2017-09-05 Yao Qi <yao.qi@linaro.org>
6930 * configure.srv (srv_i386_regobj): Remove.
6931 (srv_amd64_regobj): Remove.
6932 (srv_regobj): Set it to "" for x86 non-linux targets.
6933 * linux-x86-tdesc.c (i386_linux_read_description):
6934 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6935 (init_registers_i386): Remove the declaration.
6936 (tdesc_i386): Remove the declaration.
6937 (lynx_i386_arch_setup): Call i386_create_target_description.
6938 * nto-x86-low.c: Likewise.
6939 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6940 [!__x86_64__]: include arch/i386.h.
6941 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6943 2017-09-05 Yao Qi <yao.qi@linaro.org>
6945 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6946 i386/amd64-XXX-linux from it.
6948 2017-09-05 Yao Qi <yao.qi@linaro.org>
6950 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6952 (ipa_amd64_linux_regobj): Remove.
6953 (ipa_x32_linux_regobj): Remove.
6955 2017-09-05 Yao Qi <yao.qi@linaro.org>
6957 * Makefile.in (arch-amd64.o): New rule.
6958 * configure.srv: Append arch-amd64.o.
6959 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6960 (get_ipa_tdesc): Call amd64_linux_read_description.
6961 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6962 and init_registers_amd64_XXX.
6963 * linux-x86-low.c (x86_linux_read_description): Call
6964 amd64_linux_read_description.
6965 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6966 (initialize_low_arch): Don't call init_registers_x32_XXX and
6967 init_registers_amd64_XXX.
6968 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6969 and tdesc_amd64_XXX.
6970 [__x86_64__] (amd64_tdesc_test): New function.
6971 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6972 and init_registers_amd64_XXX.
6973 * linux-x86-tdesc.c: Include arch/amd64.h.
6974 (xcr0_to_tdesc_idx): New function.
6975 (i386_linux_read_description): New function.
6976 (amd64_get_ipa_tdesc_idx): New function.
6977 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6978 (amd64_get_ipa_tdesc): Declare.
6980 2017-09-05 Yao Qi <yao.qi@linaro.org>
6982 * configure.srv (srv_i386_linux_xmlfiles): Remove
6983 i386/i386-XXX-linux.xml from it.
6985 2017-09-05 Yao Qi <yao.qi@linaro.org>
6987 * configure.srv: Set srv_i386_linux_regobj empty if $development
6989 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6990 initialize_low_tdesc.
6991 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6992 with #if initialize_low_tdesc.
6993 * linux-x86-tdesc-selftest.c: New file.
6994 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6996 2017-09-05 Yao Qi <yao.qi@linaro.org>
6998 * Makefile.in (arch-i386.o): New rule.
6999 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7000 (x86_64-*-linux*): Likewise.
7001 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7002 include arch/i386.h.
7003 (i386_linux_read_description): Remove code and call
7004 i386_create_target_description.
7005 * tdesc.c (allocate_target_description): New function.
7006 * tdesc.h (set_tdesc_architecture): Remove declaration.
7007 (set_tdesc_osabi): Likewise.
7009 2017-09-05 Yao Qi <yao.qi@linaro.org>
7011 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7012 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7013 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7015 * server.c (get_features_xml): Call tdesc_get_features_xml.
7016 * tdesc.c (set_tdesc_architecture): New function.
7017 (set_tdesc_osabi): New function.
7018 (tdesc_get_features_xml): New function.
7019 (tdesc_create_feature): Add an argument.
7020 * tdesc.h (struct target_desc) <features>: New field.
7021 <arch, osabi>: New field.
7022 (~target_desc): xfree features, arch, and osabi.
7023 (target_desc::oerator==): Don't compare .xmltarget.
7024 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7025 (set_tdesc_osabi): Likewise.
7026 (tdesc_get_features_xml): Likewise.
7028 2017-09-05 Yao Qi <yao.qi@linaro.org>
7030 * linux-x86-tdesc.c: Include selftest.h.
7031 (i386_tdesc_test): New function.
7032 (initialize_low_tdesc): Call selftests::register_test.
7033 * tdesc.h: Include regdef.h.
7034 (target_desc): Override operator == and !=.
7036 2017-09-05 Yao Qi <yao.qi@linaro.org>
7038 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7039 (ipa_obj): Likewise.
7040 * linux-i386-ipa.c: Include common/x86-xstate.h
7041 (get_ipa_tdesc): Call i386_linux_read_description.
7042 (initialize_low_tracepoint): Don't call init_registers_XXX
7043 functions, call initialize_low_tdesc instead.
7044 * linux-x86-low.c (x86_linux_read_description): Call
7045 i386_linux_read_description.
7046 (initialize_low_arch): Don't call init_registers_i386_XXX
7047 functions, call initialize_low_tdesc.
7048 * linux-x86-tdesc.c: New file.
7049 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7050 (i386_get_ipa_tdesc_idx): Declare.
7051 (i386_get_ipa_tdesc): Declare.
7052 (initialize_low_tdesc): Declare.
7054 2017-09-05 Yao Qi <yao.qi@linaro.org>
7056 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7059 2017-09-05 Yao Qi <yao.qi@linaro.org>
7061 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7062 * regcache.c (get_thread_regcache): Use VEC_length.
7063 (init_register_cache): Likewise.
7064 (regcache_cpy): Likewise.
7065 (registers_to_string): Iterate reg_defs via VEC_iterate.
7066 (find_regno): Likewise.
7067 (find_register_by_number): Use VEC_index.
7068 (register_size): Call find_register_by_number.
7069 (register_data): Call find_register_by_number.
7070 (supply_regblock): Use VEC_length.
7071 (regcache_raw_read_unsigned): Likewise.
7072 * tdesc.c (init_target_desc): Iterate reg_defs via
7074 (default_description): Update initializer.
7075 (copy_target_description): Don't update field num_registers.
7076 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7077 <num_registers>: Remove.
7079 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7081 * Makefile.in (.SECONDARY): Define target.
7083 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7085 * linux-low.c (linux_wait_1): Adjust.
7086 * server.c (queue_stop_reply_callback): Adjust.
7088 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7090 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7091 QEnvironmentUnset and QEnvironmentReset packets.
7092 (handle_query): Inform remote that QEnvironmentHexEncoded,
7093 QEnvironmentUnset and QEnvironmentReset are supported.
7095 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7097 * inferiors.h (inferior_target_data): Rename to ...
7098 (thread_target_data): ... this.
7099 (inferior_regcache_data): Rename to ...
7100 (thread_regcache_data): ... this.
7101 (set_inferior_regcache_data): Rename to ...
7102 (set_thread_regcache_data): ... this.
7103 * inferiors.c (inferior_target_data): Rename to ...
7104 (thread_target_data): ... this.
7105 (inferior_regcache_data): Rename to ...
7106 (thread_regcache_data): ... this.
7107 (set_inferior_regcache_data): Rename to ...
7108 (set_thread_regcache_data): ... this.
7109 (free_one_thread): Update.
7110 * linux-low.h (get_thread_lwp): Update.
7111 * regcache.c (get_thread_regcache): Update.
7112 (regcache_invalidate_thread): Update.
7113 (free_register_cache_thread): Update.
7114 * win32-i386-low.c (update_debug_registers_callback): Update.
7115 (win32_get_current_dr): Update.
7116 * win32-low.c (thread_rec): Update.
7117 (delete_thread_info): Update.
7118 (continue_one_thread): Update.
7119 (suspend_one_thread): Update.
7121 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7123 * inferiors.c (set_inferior_target_data): Remove.
7124 * inferiors.h (set_inferior_target_data): Remove.
7126 2017-08-18 Yao Qi <yao.qi@linaro.org>
7128 * Makefile.in (OBS): Add selftest.o.
7129 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7130 * configure, config.in: Re-generated.
7131 * server.c: Include common/sefltest.h.
7132 (captured_main): Handle option --selftest.
7134 2017-08-09 Yao Qi <yao.qi@linaro.org>
7136 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7137 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7138 i386-avx-mpx.o and i386-mmx.o.
7139 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7140 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7141 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7142 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7143 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7144 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7145 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7146 i386/amd64-avx-mpx.xml.
7148 2017-08-09 Yao Qi <yao.qi@linaro.org>
7150 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7151 and x32-avx-avx512.o.
7152 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7153 i386/x32-avx-avx512.xml.
7155 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7157 * tracepoint.h (enum class fast_tpoint_collect_result): New
7159 (fast_tracepoint_collecting): Change return type to
7160 fast_tpoint_collect_result.
7161 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7162 * linux-low.h: Include tracepoint.h.
7163 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7164 fast_tpoint_collect_result.
7165 * linux-low.c (handle_tracepoints): Adjust.
7166 (linux_fast_tracepoint_collecting): Change return type to
7167 fast_tpoint_collect_result.
7168 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7169 linux_wait_1, stuck_in_jump_pad_callback,
7170 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7171 proceed_one_lwp): Adjust to type change.
7173 2017-07-10 Yao Qi <yao.qi@linaro.org>
7175 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7177 2017-06-29 Yao Qi <yao.qi@linaro.org>
7179 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7181 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7183 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7185 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7187 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7189 * linux-low.c (linux_create_inferior): Adjust code to access the
7190 environment information via 'gdb_environ' class.
7191 * lynx-low.c (lynx_create_inferior): Likewise.
7192 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7193 (get_environ): Return a pointer to 'our_environ'.
7194 (captured_main): Initialize 'our_environ'.
7195 * server.h (get_environ): Adjust prototype.
7196 * spu-low.c (spu_create_inferior): Adjust code to access the
7197 environment information via 'gdb_environ' class.
7199 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7201 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7202 usage of "register" keyword.
7204 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7206 * configure: Re-generate.
7208 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7210 * configure: Re-generate.
7212 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7214 * Makefile.in (COMPILE.pre): Add "-x c++".
7216 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7218 * fork-child.c: Conditionally include <signal.h>.
7220 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7222 * server.c (handle_general_set): Handle new packet
7223 "QStartupWithShell".
7224 (handle_query): Add "QStartupWithShell" to the list of supported
7226 (gdbserver_usage): Add help text explaining the
7227 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7229 (captured_main): Recognize and act upon the presence of the new
7232 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7233 Pedro Alves <palves@redhat.com>
7235 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7236 * configure: Regenerate.
7237 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7239 (i[34567]86-*-lynxos*): Likewise.
7240 (spu*-*-*): Likewise.
7241 * fork-child.c: New file.
7242 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7244 (linux_ptrace_fun): New function.
7245 (linux_create_inferior): Adjust function prototype to reflect
7246 change on "target.h". Adjust function code to use
7248 (linux_request_interrupt): Delete "signal_pid".
7249 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7250 (lynx_ptrace_fun): New function.
7251 (lynx_create_inferior): Adjust function prototype to reflect
7252 change on "target.h". Adjust function code to use
7254 * nto-low.c (nto_create_inferior): Adjust function prototype and
7255 code to reflect change on "target.h". Update comments.
7256 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7257 "common-terminal.h" and "environ.h".
7258 (terminal_fd): Moved to fork-child.c.
7259 (old_foreground_pgrp): Likewise.
7260 (restore_old_foreground_pgrp): Likewise.
7261 (last_status): Make it global.
7262 (last_ptid): Likewise.
7263 (our_environ): New variable.
7264 (startup_with_shell): Likewise.
7265 (program_name): Likewise.
7266 (program_argv): Rename to...
7267 (program_args): ...this.
7268 (wrapper_argv): New variable.
7269 (start_inferior): Delete function.
7270 (get_exec_wrapper): New function.
7271 (get_exec_file): Likewise.
7272 (get_environ): Likewise.
7273 (prefork_hook): Likewise.
7274 (post_fork_inferior): Likewise.
7275 (postfork_hook): Likewise.
7276 (postfork_child_hook): Likewise.
7277 (handle_v_run): Update code to deal with arguments coming from the
7278 remote host. Update calls from "start_inferior" to
7280 (captured_main): Likewise. Initialize environment variable. Call
7282 * server.h (post_fork_inferior): New prototype.
7283 (get_environ): Likewise.
7284 (last_status): Declare.
7285 (last_ptid): Likewise.
7286 (signal_pid): Likewise.
7287 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7288 (spu_ptrace_fun): New function.
7289 (spu_create_inferior): Adjust function prototype to reflect change
7290 on "target.h". Adjust function code to use "fork_inferior".
7291 * target.c (target_terminal_init): New function.
7292 (target_terminal_inferior): Likewise.
7293 (target_terminal_ours): Likewise.
7294 * target.h: Include <vector>.
7295 (struct target_ops) <create_inferior>: Update prototype.
7296 (create_inferior): Update macro.
7297 * utils.c (gdb_flush_out_err): New function.
7298 * win32-low.c (win32_create_inferior): Adjust function prototype
7299 and code to reflect change on "target.h".
7301 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7303 * inferiors.c (switch_to_thread): New function.
7305 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7307 * Makefile.in (SFILE): Add "common/job-control.c".
7308 (OBS): Add "job-control.o".
7310 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7312 * Makefile: Remove "@host_makefile_frag@".
7314 2017-05-05 Pedro Alves <palves@redhat.com>
7316 * configure: Regenerate.
7318 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7320 * configure: Regenerate.
7322 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7324 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7325 software_single_step change of return type to
7326 std::vector<CORE_ADDR>.
7327 * linux-low.c (install_software_single_step_breakpoints):
7329 * linux-low.h (install_software_single_step_breakpoints):
7332 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7334 * remote-utils.c: Include "gdb_termios.h" instead of
7336 * terminal.h: Delete file.
7338 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7340 * server.c: Include <vector>.
7341 <program_argv, wrapper_argv>: Convert to std::vector.
7342 (start_inferior): Rewrite function to use C++.
7343 (handle_v_run): Likewise. Update code that calculates the argv
7344 based on the vRun packet; use C++.
7345 (captured_main): Likewise.
7347 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7349 * server.c (handle_v_cont): Initialize thread_resume::thread
7352 2017-04-05 Pedro Alves <palves@redhat.com>
7354 * configure: Regenerate.
7356 2017-04-05 Pedro Alves <palves@redhat.com>
7358 * gdbreplay.c (sync_error): Constify.
7359 * linux-x86-low.c (push_opcode): Constify.
7361 2017-04-05 Pedro Alves <palves@redhat.com>
7363 * win32-low.c (get_child_debug_event)
7364 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7365 Report TARGET_WAITKIND_SPURIOUS instead.
7367 2017-04-05 Pedro Alves <palves@redhat.com>
7369 * remote-utils.c (remote_prepare, remote_open): Constify.
7370 * remote-utils.h (remote_prepare, remote_open): Constify.
7371 * server.c (captured_main): Constify 'port' handling.
7373 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7375 * Makefile.in (clean): Clear .deps.
7377 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7379 * .gitignore: Remove generated files, replace with wildcard.
7380 * (clean): Replace removal of generated files with wildcard.
7381 (version.c): Replace with...
7382 (version-generated.c): ...this.
7383 (xml-builtin.c): Replace with...
7384 (xml-builtin-generated.c): ...this.
7385 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7386 (%.c: *regformats*): Replace with...
7387 (%-generated.c: *regformats*): ...this.
7389 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7391 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7392 (xtensa_fill_gregset): Call collect_register_by_name for
7394 (xtensa_store_gregset): Call supply_register_by_name for
7397 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7399 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7400 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7401 (xtensa_store_gregset): Call supply_register for all registers in
7402 a0_regnum..a0_regnum + C0_NREGS range.
7404 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7406 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7407 (ax-ipa.o: ax.c): Remove.
7408 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7409 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7410 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7411 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7412 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7414 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7416 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7417 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7418 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7419 (errors-ipa.o: ../common/errors.c): Remove.
7420 (format-ipa.o: ../common/format.c): Remove.
7421 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7423 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7425 * Makefile.in (%-ipa.o: %.c): New rule.
7426 (tracepoint-ipa.o: tracepoint.c): Remove.
7427 (utils-ipa.o: utils.c): Remove.
7428 (remote-utils-ipa.o: remote-utils.c): Remove.
7429 (regcache-ipa.o: regcache.c): Remove.
7430 (i386-linux-ipa.o: i386-linux.c): Remove.
7431 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7432 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7433 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7434 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7435 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7436 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7437 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7438 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7439 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7440 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7441 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7442 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7443 (aarch64-ipa.o: aarch64.c): Remove.
7444 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7445 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7446 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7447 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7448 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7449 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7450 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7451 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7452 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7453 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7454 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7455 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7456 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7457 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7458 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7459 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7460 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7461 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7462 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7463 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7464 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7465 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7466 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7467 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7468 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7469 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7470 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7471 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7472 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7473 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7474 (tdesc-ipa.o: tdesc.c): Remove.
7475 (x32-linux-ipa.o: x32-linux.c): Remove.
7476 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7477 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7479 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7481 * Makefile.in (%.o: ../arch/%.c): New rule.
7482 (arm.o: ../arch/arm.c): Remove.
7483 (arm-linux.o: ../arch/arm-linux.c): Remove.
7484 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7485 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7487 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7489 * Makefile.in (%.o: ../nat/%.c): New rule.
7490 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7491 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7492 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7493 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7494 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7495 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7496 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7497 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7498 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7499 (linux-personality.o: ../nat/linux-personality.c): Remove.
7500 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7501 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7502 (x86-linux.o: ../nat/x86-linux.c): Remove.
7503 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7504 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7506 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7508 * Makefile.in (%.o: ../common/%.c): New rule.
7509 (signals.o: ../common/signals.c): Remove.
7510 (print-utils.o: ../common/print-utils.c): Remove.
7511 (rsp-low.o: ../common/rsp-low.c): Remove.
7512 (common-utils.o: ../common/common-utils.c): Remove.
7513 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7514 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7515 (vec.o: ../common/vec.c): Remove.
7516 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7517 (xml-utils.o: ../common/xml-utils.c): Remove.
7518 (ptid.o: ../common/ptid.c): Remove.
7519 (buffer.o: ../common/buffer.c): Remove.
7520 (format.o: ../common/format.c): Remove.
7521 (filestuff.o: ../common/filestuff.c): Remove.
7522 (agent.o: ../common/agent.c): Remove.
7523 (errors.o: ../common/errors.c): Remove.
7524 (environ.o: ../common/environ.c): Remove.
7525 (common-debug.o: ../common/common-debug.c): Remove.
7526 (cleanups.o: ../common/cleanups.c): Remove.
7527 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7528 (fileio.o: ../common/fileio.c): Remove.
7529 (common-regcache.o: ../common/common-regcache.c): Remove.
7530 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7531 (new-op.o: ../common/new-op.c): Remove.
7532 (btrace-common.o: ../common/btrace-common.c): Remove.
7534 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7536 * Makefile.in (%.o: ../target/%.c): New rule.
7537 (waitstatus.o: ../target/waitstatus.c): Remove.
7539 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7542 (%.c: ../regformats/%.dat,
7543 (%.c: ../regformats/arm/%.dat,
7544 (%.c: ../regformats/i386/%.dat,
7545 (%.c: ../regformats/rs6000/%.dat): New rules.
7546 (aarch64.c): Remove.
7547 (reg-arm.c): Remove.
7548 (arm-with-iwmmxt.c): Remove.
7549 (arm-with-vfpv2.c): Remove.
7550 (arm-with-vfpv3.c): Remove.
7551 (arm-with-neon.c): Remove.
7552 (reg-bfin.c): Remove.
7553 (reg-cris.c): Remove.
7554 (reg-crisv32.c): Remove.
7556 (i386-linux.c): Remove.
7557 (i386-avx.c): Remove.
7558 (i386-avx-linux.c): Remove.
7559 (i386-avx-avx512.c): Remove.
7560 (i386-avx-avx512-linux.c): Remove.
7561 (i386-mpx.c): Remove.
7562 (i386-mpx-linux.c): Remove.
7563 (i386-avx-mpx-avx512-pku.c): Remove.
7564 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7565 (i386-avx-mpx.c): Remove.
7566 (i386-avx-mpx-linux.c): Remove.
7567 (i386-mmx.c): Remove.
7568 (i386-mmx-linux.c): Remove.
7569 (reg-ia64.c): Remove.
7570 (reg-m32r.c): Remove.
7571 (reg-m68k.c): Remove.
7573 (mips-linux.c): Remove.
7574 (mips-dsp-linux.c): Remove.
7575 (mips64-linux.c): Remove.
7576 (mips64-dsp-linux.c): Remove.
7577 (nios2-linux.c): Remove.
7578 (powerpc-32.c): Remove.
7579 (powerpc-32l.c): Remove.
7580 (powerpc-altivec32l.c): Remove.
7581 (powerpc-cell32l.c): Remove.
7582 (powerpc-vsx32l.c): Remove.
7583 (powerpc-isa205-32l.c): Remove.
7584 (powerpc-isa205-altivec32l.c): Remove.
7585 (powerpc-isa205-vsx32l.c): Remove.
7586 (powerpc-e500l.c): Remove.
7587 (powerpc-64l.c): Remove.
7588 (powerpc-altivec64l.c): Remove.
7589 (powerpc-cell64l.c): Remove.
7590 (powerpc-vsx64l.c): Remove.
7591 (powerpc-isa205-64l.c): Remove.
7592 (powerpc-isa205-altivec64l.c): Remove.
7593 (powerpc-isa205-vsx64l.c): Remove.
7594 (s390-linux32.c): Remove.
7595 (s390-linux32v1.c): Remove.
7596 (s390-linux32v2.c): Remove.
7597 (s390-linux64.c): Remove.
7598 (s390-linux64v1.c): Remove.
7599 (s390-linux64v2.c): Remove.
7600 (s390-te-linux64.c): Remove.
7601 (s390-vx-linux64.c): Remove.
7602 (s390-tevx-linux64.c): Remove.
7603 (s390x-linux64.c): Remove.
7604 (s390x-linux64v1.c): Remove.
7605 (s390x-linux64v2.c): Remove.
7606 (s390x-te-linux64.c): Remove.
7607 (s390x-vx-linux64.c): Remove.
7608 (s390x-tevx-linux64.c): Remove.
7609 (tic6x-c64xp-linux.c): Remove.
7610 (tic6x-c64x-linux.c): Remove.
7611 (tic6x-c62x-linux.c): Remove.
7613 (reg-sparc64.c): Remove.
7614 (reg-spu.c): Remove.
7616 (amd64-linux.c): Remove.
7617 (amd64-avx.c): Remove.
7618 (amd64-avx-linux.c): Remove.
7619 (amd64-avx-avx512.c): Remove.
7620 (amd64-avx-avx512-linux.c): Remove.
7621 (amd64-mpx.c): Remove.
7622 (amd64-mpx-linux.c): Remove.
7623 (amd64-avx-mpx-avx512-pku.c): Remove.
7624 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7625 (amd64-avx-mpx.c): Remove.
7626 (amd64-avx-mpx-linux.c): Remove.
7628 (x32-linux.c): Remove.
7629 (x32-avx.c): Remove.
7630 (x32-avx-linux.c): Remove.
7631 (x32-avx-avx512.c): Remove.
7632 (x32-avx-avx512-linux.c): Remove.
7633 (reg-xtensa.c): Remove.
7634 (reg-tilegx.c): Remove.
7635 (reg-tilegx32.c): Remove.
7637 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7639 * Makefile.in (SFILES): Add "common/environ.c".
7640 (OBJS): Add "common/environ.h".
7642 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7644 * configure.ac: Check if the fs_base and gs_base members of
7645 `struct user_regs_struct' exist.
7646 * config.in: Regenerated.
7647 * configure: Likewise.
7649 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7651 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7653 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7654 (get_next_pcs_syscall_next_pc): Likewise.
7656 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7658 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7659 * nto-x86-low.c: Likewise.
7661 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7663 * Makefile.in: Include disable-implicit-rules.mk.
7665 2016-11-23 Pedro Alves <palves@redhat.com>
7667 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7668 (debug_vprintf): Use std::chrono::steady_clock instead of
7669 gettimeofday. Use '.' instead of ':'.
7670 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7671 (get_timestamp): Use std::chrono::steady_clock instead of
7674 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7676 * Makefile.in: Fix whitespace formatting.
7678 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7680 * Makefile.in (SFILES, OBS): Flatten list and order
7683 2016-11-23 Pedro Alves <palves@redhat.com>
7685 * event-loop.c (handle_file_event): Use warning.
7686 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7687 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7690 2016-11-23 Pedro Alves <palves@redhat.com>
7692 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7694 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7695 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7696 debug_printf and debug_flush for debug output.
7697 * server.c (handle_general_set): Likewise.
7698 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7701 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7703 * Makefile.in (.c.o): Replace rule with ...
7704 (%.o: %.c): ... this one.
7706 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7708 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7709 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7711 * configure.ac: Remove checks for the make program.
7712 * configure: Re-generate.
7714 2016-10-28 Pedro Alves <palves@redhat.com>
7716 * Makefile.in (CXX_DIALECT): Get from configure.
7717 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7718 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7719 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7720 * config.in: Regenerate.
7721 * configure: Regenerate.
7723 2016-10-27 Yao Qi <yao.qi@linaro.org>
7725 * linux-low.c (linux_supports_range_stepping): Return true if
7726 can_software_single_step return true.
7728 2016-10-27 Yao Qi <yao.qi@linaro.org>
7730 * inferiors.c (find_inferior_in_random): New function.
7731 * inferiors.h (find_inferior_in_random): Declare.
7732 * linux-low.c (linux_wait_for_event_filtered): Call
7733 find_inferior_in_random instead of find_inferior.
7735 2016-10-27 Yao Qi <yao.qi@linaro.org>
7737 * linux-low.c (linux_wait_1): If single-step breakpoints are
7738 inserted, remove them.
7740 2016-10-26 Pedro Alves <palves@redhat.com>
7742 * linux-low.c (handle_extended_wait): Link parent/child fork
7744 (linux_wait_1): Unlink them.
7745 (linux_set_resume_request): Ignore resume requests for
7746 already-resumed and unhandled fork child threads.
7747 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7748 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7750 (handle_v_requests) <vCont>: Don't call require_running.
7751 * server.h (in_queued_stop_replies): New declaration.
7753 2016-10-24 Yao Qi <yao.qi@linaro.org>
7756 * linux-aarch64-low.c (append_insns): Cast the return value to
7759 2016-10-10 Yao Qi <yao.qi@linaro.org>
7761 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7763 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7765 * target.c (target_supports_multi_process): New function, moved
7767 * target.h (target_supports_multi_process): ... here. Remove
7770 2016-10-05 Tom Tromey <tom@tromey.com>
7773 * tracepoint.c (handle_tracepoint_bkpts): Check
7774 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7776 2016-10-05 Yao Qi <yao.qi@linaro.org>
7778 * configure.srv: Update the path of arm-*.xml files.
7780 2016-10-05 Terry Guo <terry.guo@arm.com>
7781 Yao Qi <yao.qi@linaro.org>
7783 * Makefile.in: Adjust the path of rules.
7784 * configure.srv: Update the path of xml files.
7785 * regformats/arm-with-iwmmxt.dat: Regenerated.
7786 * regformats/arm-with-neon.dat: Likewise.
7787 * regformats/arm-with-vfpv2.dat: Likewise.
7788 * regformats/arm-with-vfpv3.dat Likewise.
7790 2016-09-30 Yao Qi <yao.qi@linaro.org>
7793 * target.c (target_stop_and_wait): Don't call
7794 target_continue_no_signal, use resume_stop instead.
7796 2016-09-26 Yao Qi <yao.qi@linaro.org>
7798 * linux-low.c (linux_wait_1): Call debug_exit.
7800 2016-09-23 Pedro Alves <palves@redhat.com>
7802 * Makefile.in (SFILES): Add common/new-op.c.
7803 (OBS): Add common/new-op.o.
7804 (new-op.o): New rule.
7806 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7808 * .gitinore: Ignore more files.
7810 2016-09-21 Yao Qi <yao.qi@linaro.org>
7812 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7815 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7817 * server.c (start_inferior): Call target_mourn_inferior instead of
7818 mourn_inferior; pass ptid_t argument to it.
7820 (handle_target_event): Likewise.
7821 * target.c (target_mourn_inferior): New function.
7822 * target.h (mourn_inferior): Delete macro.
7824 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7826 * linux-low.c (lwp_is_stepping): New function.
7828 2016-09-06 Carl Love <cel@us.ibm.com>
7830 * server.c (start_inferior): Fixed comment, requested comment change
7831 didn't get updated correctly. Removed reference to ptrace () call as
7832 it is only true on Linux systems.
7834 2016-09-06 Carl Love <cel@us.ibm.com>
7836 * server.c (start_inferior): Do not call
7837 function target_post_create_inferior () if the
7838 inferior process has already exited.
7840 2016-09-05 Pedro Alves <palves@redhat.com>
7842 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7843 (COMPILE.pre, CC_LD): Use CXX directly.
7844 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7845 * acinclude.m4: Don't include build-with-cxx.m4.
7846 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7847 * configure: Regenerate.
7849 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7852 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7853 call writing data to own_buf.
7855 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7857 * target.c (mywait): Call target_wait instead of
7859 (target_wait): New function.
7861 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7863 * server.c (start_inferior): New variable 'ptid'. Replace calls
7864 to the_target->resume by target_continue{,_no_signal}, depending
7866 * target.c (target_stop_and_wait): Call target_continue_no_signal
7867 instead of the_target->resume.
7868 (target_continue): New function.
7870 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7872 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7874 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7877 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7879 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7880 * linux-arm-low.c (ps_get_thread_area): Likewise.
7881 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7882 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7883 * linux-mips-low.c (ps_get_thread_area): Likewise.
7884 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7885 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7886 * linux-x86-low.c (ps_get_thread_area): Likewise.
7887 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7889 2016-08-19 Pedro Alves <palves@redhat.com>
7891 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7893 2016-08-19 Pedro Alves <palves@redhat.com>
7895 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7896 comment. Use memcpy instead of casting through unsigned long.
7898 2016-08-19 Pedro Alves <palves@redhat.com>
7900 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7901 allocating around 0x80000000.
7903 2016-08-19 Pedro Alves <palves@redhat.com>
7906 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7907 (x32-avx512-linux-ipa.o): New rules.
7908 * configure.ac (x86_64-*-linux*): New x32 check.
7909 * configure.srv (ipa_x32_linux_regobj): New.
7910 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7911 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7913 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7915 * configure: Regenerate.
7917 2016-08-09 Pedro Alves <palves@redhat.com>
7920 * Makefile.in (OBS): Add signals-state-save-restore.o.
7921 (signals-state-save-restore.o): New rule.
7922 * config.in: Regenerate.
7923 * configure: Regenerate.
7924 * linux-low.c: Include "signals-state-save-restore.h".
7925 (linux_create_inferior): Call
7926 restore_original_signals_state.
7927 * server.c: Include "dispositions-save-restore.h".
7928 (captured_main): Call save_original_signals_state.
7930 2016-08-05 Pedro Alves <palves@redhat.com>
7932 * configure: Regenerate.
7934 2016-08-04 Yao Qi <yao.qi@linaro.org>
7936 * linux-low.c (regsets_fetch_inferior_registers): Check
7937 errno is ESRCH or not.
7939 2016-08-02 Yao Qi <yao.qi@linaro.org>
7941 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7942 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7943 (thread_db_load_search): Update.
7944 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7945 td_ta_set_event and td_ta_event_getmsg.
7947 2016-07-26 Pedro Alves <palves@redhat.com>
7950 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7951 of unsigned long for 64-bit registers and use uint32_t instead of
7952 unsigned int for 32-bit registers.
7954 2016-07-26 Pedro Alves <palves@redhat.com>
7956 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7959 2016-07-21 Tom Tromey <tom@tromey.com>
7961 * configure: Rebuild.
7963 2016-07-21 Yao Qi <yao.qi@linaro.org>
7965 * mem-break.c (find_gdb_breakpoint): Cast bp to
7966 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7968 2016-07-21 Yao Qi <yao.qi@linaro.org>
7970 * server.c (handle_v_requests): Support s and S actions
7971 if target_supports_software_single_step return true.
7973 2016-07-21 Yao Qi <yao.qi@linaro.org>
7975 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7976 is resume_step, call maybe_hw_step.
7977 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7979 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7981 (proceed_one_lwp): If resume request is resume_step, install
7982 reinsert breakpoints and call maybe_hw_step.
7984 2016-07-21 Yao Qi <yao.qi@linaro.org>
7986 * linux-low.c (proceed_one_lwp): Declare.
7987 (linux_resume_one_thread): Remove local variable 'step'.
7988 Lift code enqueue signal. Call proceed_one_lwp instead of
7989 linux_resume_one_lwp.
7991 2016-07-21 Yao Qi <yao.qi@linaro.org>
7993 * linux-low.c (linux_resume_one_thread): Call
7994 enqueue_pending_signal.
7996 2016-07-21 Yao Qi <yao.qi@linaro.org>
7998 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7999 * inferiors.c (do_restore_current_thread_cleanup): New function.
8000 (make_cleanup_restore_current_thread): Likewise.
8001 * linux-low.c (install_software_single_step_breakpoints): Call
8002 make_cleanup_restore_current_thread. Switch current_thread to
8005 2016-07-21 Yao Qi <yao.qi@linaro.org>
8007 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8008 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8009 (clone_one_breakpoint): Likewise.
8010 (delete_reinsert_breakpoints): Change parameter to thread.
8012 (has_reinsert_breakpoints): Likewise.
8013 (uninsert_reinsert_breakpoints): Likewise.
8014 (reinsert_reinsert_breakpoints): Likewise.
8015 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8016 (delete_reinsert_breakpoints): Likewise.
8017 (reinsert_reinsert_breakpoints): Likewise.
8018 (uninsert_reinsert_breakpoints): Likewise.
8019 (has_reinsert_breakpoints): Likewise.
8021 2016-07-21 Yao Qi <yao.qi@linaro.org>
8023 * inferiors.c (get_thread_process): Make parameter const.
8024 * inferiors.h (get_thread_process): Update declaration.
8025 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8026 Add new parameters child_thread and parent_thread. Callers
8028 * mem-break.h (clone_all_breakpoints): Update declaration.
8030 2016-07-21 Yao Qi <yao.qi@linaro.org>
8032 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8033 <command_list, handler>: Remove.
8034 (struct gdb_breakpoint): New.
8035 (struct other_breakpoint): New.
8036 (struct reinsert_breakpoint): New.
8037 (is_gdb_breakpoint): New function.
8038 (any_persistent_commands): Update command_list if
8039 is_gdb_breakpoint returns true.
8040 (set_breakpoint): Create breakpoints according to their types.
8041 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8042 (set_gdb_breakpoint_1): Likewise.
8043 (set_gdb_breakpoint): Likewise.
8044 (clear_breakpoint_conditions): Change parameter type to
8045 'struct gdb_breakpoint *'.
8046 (clear_breakpoint_commands): Likewise.
8047 (clear_breakpoint_conditions_and_commands): Likewise.
8048 (add_condition_to_breakpoint): Likewise.
8049 (add_breakpoint_condition): Likewise.
8050 (add_commands_to_breakpoint): Likewise.
8051 (check_breakpoints): Check other_breakpoint.
8052 (clone_one_breakpoint): Clone breakpopint according to its type.
8053 * mem-break.h (struct gdb_breakpoint): Declare.
8054 (set_gdb_breakpoint): Update declaration.
8055 (clear_breakpoint_conditions_and_commands): Likewise.
8056 (add_breakpoint_condition): Likewise.
8057 (add_breakpoint_commands): Likewise.
8058 * server.c (process_point_options): Change parameter type to
8059 'struct gdb_breakpoint *'.
8061 2016-07-21 Yao Qi <yao.qi@linaro.org>
8063 * mem-break.c (set_breakpoint_at): Rename it to ...
8064 (set_breakpoint_type_at): ... it.
8065 (set_breakpoint_at): Call set_breakpoint_type_at.
8066 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8067 * mem-break.h (set_breakpoint_at): Update comments.
8069 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8071 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8073 (nios2_store_gregset): Likewise.
8075 2016-07-01 Pedro Alves <palves@redhat.com>
8076 Antoine Tremblay <antoine.tremblay@ericsson.com>
8078 * linux-low.c: Change interface to take the target lwp_info
8079 pointer directly and return void. Handle detaching from a zombie
8081 (linux_detach_lwp_callback): New function.
8082 (linux_detach): Detach from the leader thread after detaching from
8085 2016-06-28 Yao Qi <yao.qi@linaro.org>
8087 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8088 for variable new_offset.
8089 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8090 (aarch64_ftrace_insn_reloc_cb): Likewise.
8091 (aarch64_ftrace_insn_reloc_tb): Likewise.
8092 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8093 PRIx64 instead of PRIx32.
8095 2016-06-28 Yao Qi <yao.qi@linaro.org>
8097 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8098 (the_low_target): Install arm_get_syscall_trapinfo.
8100 2016-06-28 Yao Qi <yao.qi@linaro.org>
8102 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8104 (the_low_target): Install aarch64_get_syscall_trapinfo.
8106 2016-06-28 Yao Qi <yao.qi@linaro.org>
8108 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8110 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8111 Remove parameter sysno.
8112 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8115 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8117 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8118 (s390_emit_ne_goto): Likewise.
8119 (s390_emit_lt_goto): Likewise.
8120 (s390_emit_le_goto): Likewise.
8121 (s390_emit_gt_goto): Likewise.
8122 (s390_emit_ge_goto): Likewise.
8123 (s390x_emit_eq_goto): Likewise.
8124 (s390x_emit_ne_goto): Likewise.
8125 (s390x_emit_lt_goto): Likewise.
8126 (s390x_emit_le_goto): Likewise.
8127 (s390x_emit_gt_goto): Likewise.
8128 (s390x_emit_ge_goto): Likewise.
8129 (s390_emit_ops_impl): Mark variable static.
8130 (s390x_emit_ops): Likewise.
8132 2016-06-17 Yao Qi <yao.qi@linaro.org>
8134 * linux-low.c (handle_extended_wait): Call
8135 uninsert_reinsert_breakpoints for the parent process. Remove
8136 reinsert breakpoints from the child process. Reinsert them to
8137 the parent process when vfork is done.
8138 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8139 (reinsert_reinsert_breakpoints): New function.
8140 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8141 (reinsert_reinsert_breakpoints): Declare.
8143 2016-06-17 Yao Qi <yao.qi@linaro.org>
8145 * linux-low.c (handle_extended_wait): If the parent is doing
8146 step-over, remove the reinsert breakpoints from the forked child.
8148 2016-06-17 Yao Qi <yao.qi@linaro.org>
8150 * linux-low.c (unsuspend_all_lwps): Declare.
8151 (linux_low_filter_event): If thread exited, call finish_step_over.
8152 If step-over is finished, unsuspend other threads.
8154 2016-06-17 Yao Qi <yao.qi@linaro.org>
8156 * linux-low.c (linux_resume_one_lwp_throw): Assert
8157 has_reinsert_breakpoints returns false.
8158 * mem-break.c (delete_disabled_breakpoints): Assert
8159 bp type isn't reinsert_breakpoint.
8161 2016-06-17 Yao Qi <yao.qi@linaro.org>
8163 * linux-low.c (maybe_hw_step): New function.
8164 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8165 (finish_step_over): Switch current_thread to lwp temporarily,
8166 and assert has_reinsert_breakpoints returns true.
8167 (proceed_one_lwp): Call maybe_hw_step.
8168 * mem-break.c (has_reinsert_breakpoints): New function.
8169 * mem-break.h (has_reinsert_breakpoints): Declare.
8171 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8173 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8175 2016-05-17 Yao Qi <yao.qi@linaro.org>
8177 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8178 instead of find_inferior.
8180 2016-05-05 Yao Qi <yao.qi@linaro.org>
8182 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8183 Initialize res to zero.
8185 2016-05-05 Yao Qi <yao.qi@linaro.org>
8187 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8190 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8192 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8193 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8194 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8196 2016-04-28 Par Olsson <par.olsson@windriver.com>
8197 Simon Marchi <simon.marchi@ericsson.com>
8199 * tracepoint.c (write_inferior_int8): New function.
8200 (cmd_qtenable_disable): Write enable flag using
8201 write_inferior_int8.
8203 2016-04-25 Yao Qi <yao.qi@linaro.org>
8205 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8206 (need_step_over_p): Return zero if the LWP has pending signals
8207 can be delivered on software single step target.
8209 2016-04-25 Yao Qi <yao.qi@linaro.org>
8211 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8212 return instead of error.
8214 2016-04-22 Yao Qi <yao.qi@linaro.org>
8216 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8219 2016-04-22 Yao Qi <yao.qi@linaro.org>
8221 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8222 signal when stepping over breakpoint with software single
8225 2016-04-21 Pedro Alves <palves@redhat.com>
8227 * linux-s390-low.c (s390_collect_ptrace_register)
8228 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8230 (s390_check_regset): Use void * instead of gdb_byte *.
8232 2016-04-20 Pedro Alves <palves@redhat.com>
8234 * configure: Renegerate.
8236 2016-04-20 Yao Qi <yao.qi@linaro.org>
8238 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8239 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8241 (arm_store_gregset): Likewise.
8243 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8245 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8246 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8247 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8248 (amd64-avx-mpx-linux.c): New rules.
8249 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8250 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8251 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8252 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8253 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8254 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8255 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8256 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8257 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8258 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8259 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8260 * linux-x86-low.c (x86_linux_read_description): Add case for
8261 X86_XSTATE_AVX_MPX_MASK.
8262 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8263 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8264 init_registers_i386_avx_mpx_linux.
8265 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8266 (initialize_low_tracepoint): Call
8267 init_registers_i386_avx_mpx_linux.
8268 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8269 (initialize_low_tracepoint): Call
8270 init_registers_amd64_avx_mpx_linux.
8271 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8272 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8273 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8276 2016-04-18 Pedro Alves <palves@redhat.com>
8278 * configure: Regenerate.
8280 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8282 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8283 (aarch64_emit_sub): Likewise.
8285 2016-04-12 Pedro Alves <palves@redhat.com>
8287 * utils.c (prepare_to_throw_exception): Delete.
8289 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8291 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8293 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8295 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8297 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8299 * linux-aarch64-ipa.c: Add <elf.h> include.
8300 * linux-ppc-ipa.c: Add <elf.h> include.
8301 * linux-s390-ipa.c: Add <elf.h> include.
8303 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8305 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8306 (get_raw_reg_ptr): Likewise.
8307 (get_trace_state_variable_value_ptr): Likewise.
8308 (set_trace_state_variable_value_ptr): Likewise.
8309 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8312 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8313 Marcin Kościelnicki <koriakin@0x04.net>
8316 * linux-ppc-low.c (emit_insns): New function.
8317 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8318 (ppc_emit_prologue): New function.
8319 (ppc_emit_epilogue): New function.
8320 (ppc_emit_add): New function.
8321 (ppc_emit_sub): New function.
8322 (ppc_emit_mul): New function.
8323 (ppc_emit_lsh): New function.
8324 (ppc_emit_rsh_signed): New function.
8325 (ppc_emit_rsh_unsigned): New function.
8326 (ppc_emit_ext): New function.
8327 (ppc_emit_zero_ext): New function.
8328 (ppc_emit_log_not): New function.
8329 (ppc_emit_bit_and): New function.
8330 (ppc_emit_bit_or): New function.
8331 (ppc_emit_bit_xor): New function.
8332 (ppc_emit_bit_not): New function.
8333 (ppc_emit_equal): New function.
8334 (ppc_emit_less_signed): New function.
8335 (ppc_emit_less_unsigned): New function.
8336 (ppc_emit_ref): New function.
8337 (ppc_emit_const): New function.
8338 (ppc_emit_reg): New function.
8339 (ppc_emit_pop): New function.
8340 (ppc_emit_stack_flush): New function.
8341 (ppc_emit_swap): New function.
8342 (ppc_emit_stack_adjust): New function.
8343 (ppc_emit_call): New function.
8344 (ppc_emit_int_call_1): New function.
8345 (ppc_emit_void_call_2): New function.
8346 (ppc_emit_if_goto): New function.
8347 (ppc_emit_goto): New function.
8348 (ppc_emit_eq_goto): New function.
8349 (ppc_emit_ne_goto): New function.
8350 (ppc_emit_lt_goto): New function.
8351 (ppc_emit_le_goto): New function.
8352 (ppc_emit_gt_goto): New function.
8353 (ppc_emit_ge_goto): New function.
8354 (ppc_write_goto_address): New function.
8355 (ppc_emit_ops_impl): New static variable.
8356 (ppc64v1_emit_prologue): New function.
8357 (ppc64v2_emit_prologue): New function.
8358 (ppc64_emit_epilogue): New function.
8359 (ppc64_emit_add): New function.
8360 (ppc64_emit_sub): New function.
8361 (ppc64_emit_mul): New function.
8362 (ppc64_emit_lsh): New function.
8363 (ppc64_emit_rsh_signed): New function.
8364 (ppc64_emit_rsh_unsigned): New function.
8365 (ppc64_emit_ext): New function.
8366 (ppc64_emit_zero_ext): New function.
8367 (ppc64_emit_log_not): New function.
8368 (ppc64_emit_bit_and): New function.
8369 (ppc64_emit_bit_or): New function.
8370 (ppc64_emit_bit_xor): New function.
8371 (ppc64_emit_bit_not): New function.
8372 (ppc64_emit_equal): New function.
8373 (ppc64_emit_less_signed): New function.
8374 (ppc64_emit_less_unsigned): New function.
8375 (ppc64_emit_ref): New function.
8376 (ppc64_emit_const): New function.
8377 (ppc64v1_emit_reg): New function.
8378 (ppc64v2_emit_reg): New function.
8379 (ppc64_emit_pop): New function.
8380 (ppc64_emit_stack_flush): New function.
8381 (ppc64_emit_swap): New function.
8382 (ppc64v1_emit_call): New function.
8383 (ppc64v2_emit_call): New function.
8384 (ppc64v1_emit_int_call_1): New function.
8385 (ppc64v2_emit_int_call_1): New function.
8386 (ppc64v1_emit_void_call_2): New function.
8387 (ppc64v2_emit_void_call_2): New function.
8388 (ppc64_emit_if_goto): New function.
8389 (ppc64_emit_eq_goto): New function.
8390 (ppc64_emit_ne_goto): New function.
8391 (ppc64_emit_lt_goto): New function.
8392 (ppc64_emit_le_goto): New function.
8393 (ppc64_emit_gt_goto): New function.
8394 (ppc64_emit_ge_goto): New function.
8395 (ppc64v1_emit_ops_impl): New static variable.
8396 (ppc64v2_emit_ops_impl): New static variable.
8397 (ppc_emit_ops): New function.
8398 (linux_low_target): Wire in ppc_emit_ops.
8400 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8401 Marcin Kościelnicki <koriakin@0x04.net>
8404 * Makefile.in: Add powerpc-*-ipa.o
8405 * configure.srv: Add ipa_obj for powerpc*-linux.
8406 * linux-ppc-ipa.c: New file.
8407 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8409 (PPC_FIELD): New macro.
8410 (PPC_SEXT): New macro.
8411 (PPC_OP6): New macro.
8412 (PPC_BO): New macro.
8413 (PPC_LI): New macro.
8414 (PPC_BD): New macro.
8415 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8416 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8417 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8418 (ppc_get_thread_area): New function.
8419 (is_elfv2_inferior): New function.
8420 (gen_ds_form): New function.
8421 (GEN_STD): New macro.
8422 (GEN_STDU): New macro.
8423 (GEN_LD): New macro.
8424 (GEN_LDU): New macro.
8425 (gen_d_form): New function.
8426 (GEN_ADDI): New macro.
8427 (GEN_ADDIS): New macro.
8428 (GEN_LI): New macro.
8429 (GEN_LIS): New macro.
8430 (GEN_ORI): New macro.
8431 (GEN_ORIS): New macro.
8432 (GEN_LWZ): New macro.
8433 (GEN_STW): New macro.
8434 (GEN_STWU): New macro.
8435 (gen_xfx_form): New function.
8436 (GEN_MFSPR): New macro.
8437 (GEN_MTSPR): New macro.
8438 (GEN_MFCR): New macro.
8439 (GEN_MTCR): New macro.
8440 (GEN_SYNC): New macro.
8441 (GEN_LWSYNC): New macro.
8442 (gen_x_form): New function.
8443 (GEN_OR): New macro.
8444 (GEN_MR): New macro.
8445 (GEN_LWARX): New macro.
8446 (GEN_STWCX): New macro.
8447 (GEN_CMPW): New macro.
8448 (gen_md_form): New function.
8449 (GEN_RLDICL): New macro.
8450 (GEN_RLDICR): New macro.
8451 (gen_i_form): New function.
8453 (GEN_BL): New macro.
8454 (gen_b_form): New function.
8455 (GEN_BNE): New macro.
8456 (GEN_LOAD): New macro.
8457 (GEN_STORE): New macro.
8458 (gen_limm): New function.
8459 (gen_atomic_xchg): New function.
8460 (gen_call): New function.
8461 (ppc_relocate_instruction): New function.
8462 (ppc_install_fast_tracepoint_jump_pad): New function.
8463 (ppc_get_min_fast_tracepoint_insn_len): New function.
8464 (ppc_get_ipa_tdesc_idx): New function.
8465 (the_low_target): Wire in the new functions.
8466 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8468 * linux-ppc-tdesc.h: New file.
8470 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8472 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8473 (alloc_jump_pad_buffer): New function.
8474 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8475 (alloc_jump_pad_buffer): New function.
8476 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8477 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8478 (alloc_jump_pad_buffer): New function.
8479 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8480 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8481 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8482 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8484 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8486 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8487 * linux-amd64-ipa.c: Likewise.
8488 * linux-i386-ipa.c: Likewise.
8489 * linux-s390-ipa.c: Likewise.
8490 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8491 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8492 set_trace_state_variable_value_ptr.
8493 (struct ipa_sym_addresses): Likewise.
8494 (symbol_list): Likewise.
8495 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8496 accessing gdb_collect directly.
8497 (gdb_collect_ptr_type): New typedef.
8498 (get_raw_reg_ptr_type): New typedef.
8499 (get_trace_state_variable_value_ptr_type): New typedef.
8500 (set_trace_state_variable_value_ptr_type): New typedef.
8501 (gdb_collect_ptr): New global.
8502 (get_raw_reg_ptr): New global.
8503 (get_trace_state_variable_value_ptr): New global.
8504 (set_trace_state_variable_value_ptr): New global.
8505 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8506 accessing get_raw_reg directly.
8507 (get_get_tsv_func_addr): Likewise for
8508 get_trace_state_variable_value_ptr.
8509 (get_set_tsv_func_addr): Likewise for
8510 set_trace_state_variable_value_ptr.
8511 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8513 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8515 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8517 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8519 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8521 (relocate_instruction): Remove own_buf.
8522 * server.c (own_buf): Make global.
8523 (handle_v_requests): Make global.
8524 * server.h (own_buf): New declaration.
8525 (handle_v_requests): New prototype.
8527 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8530 * linux-s390-low.c (add_insns): New function.
8531 (s390_emit_prologue): New function.
8532 (s390_emit_epilogue): New function.
8533 (s390_emit_add): New function.
8534 (s390_emit_sub): New function.
8535 (s390_emit_mul): New function.
8536 (s390_emit_lsh): New function.
8537 (s390_emit_rsh_signed): New function.
8538 (s390_emit_rsh_unsigned): New function.
8539 (s390_emit_ext): New function.
8540 (s390_emit_log_not): New function.
8541 (s390_emit_bit_and): New function.
8542 (s390_emit_bit_or): New function.
8543 (s390_emit_bit_xor): New function.
8544 (s390_emit_bit_not): New function.
8545 (s390_emit_equal): New function.
8546 (s390_emit_less_signed): New function.
8547 (s390_emit_less_unsigned): New function.
8548 (s390_emit_ref): New function.
8549 (s390_emit_if_goto): New function.
8550 (s390_emit_goto): New function.
8551 (s390_write_goto_address): New function.
8552 (s390_emit_litpool): New function.
8553 (s390_emit_const): New function.
8554 (s390_emit_call): New function.
8555 (s390_emit_reg): New function.
8556 (s390_emit_pop): New function.
8557 (s390_emit_stack_flush): New function.
8558 (s390_emit_zero_ext): New function.
8559 (s390_emit_swap): New function.
8560 (s390_emit_stack_adjust): New function.
8561 (s390_emit_set_r2): New function.
8562 (s390_emit_int_call_1): New function.
8563 (s390_emit_void_call_2): New function.
8564 (s390_emit_eq_goto): New function.
8565 (s390_emit_ne_goto): New function.
8566 (s390_emit_lt_goto): New function.
8567 (s390_emit_le_goto): New function.
8568 (s390_emit_gt_goto): New function.
8569 (s390_emit_ge_goto): New function.
8570 (s390x_emit_prologue): New function.
8571 (s390x_emit_epilogue): New function.
8572 (s390x_emit_add): New function.
8573 (s390x_emit_sub): New function.
8574 (s390x_emit_mul): New function.
8575 (s390x_emit_lsh): New function.
8576 (s390x_emit_rsh_signed): New function.
8577 (s390x_emit_rsh_unsigned): New function.
8578 (s390x_emit_ext): New function.
8579 (s390x_emit_log_not): New function.
8580 (s390x_emit_bit_and): New function.
8581 (s390x_emit_bit_or): New function.
8582 (s390x_emit_bit_xor): New function.
8583 (s390x_emit_bit_not): New function.
8584 (s390x_emit_equal): New function.
8585 (s390x_emit_less_signed): New function.
8586 (s390x_emit_less_unsigned): New function.
8587 (s390x_emit_ref): New function.
8588 (s390x_emit_if_goto): New function.
8589 (s390x_emit_const): New function.
8590 (s390x_emit_call): New function.
8591 (s390x_emit_reg): New function.
8592 (s390x_emit_pop): New function.
8593 (s390x_emit_stack_flush): New function.
8594 (s390x_emit_zero_ext): New function.
8595 (s390x_emit_swap): New function.
8596 (s390x_emit_stack_adjust): New function.
8597 (s390x_emit_int_call_1): New function.
8598 (s390x_emit_void_call_2): New function.
8599 (s390x_emit_eq_goto): New function.
8600 (s390x_emit_ne_goto): New function.
8601 (s390x_emit_lt_goto): New function.
8602 (s390x_emit_le_goto): New function.
8603 (s390x_emit_gt_goto): New function.
8604 (s390x_emit_ge_goto): New function.
8605 (s390_emit_ops): New function.
8606 (struct linux_target_ops): Fill in emit_ops hook.
8608 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8611 * Makefile.in: Add s390 IPA files.
8612 * configure.srv: Build IPA for s390.
8613 * linux-s390-ipa.c: New file.
8614 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8615 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8616 (tdesc_s390_linux32): Likewise.
8617 (init_registers_s390_linux32v1): Likewise.
8618 (tdesc_s390_linux32v1): Likewise.
8619 (init_registers_s390_linux32v2): Likewise.
8620 (tdesc_s390_linux32v2): Likewise.
8621 (init_registers_s390_linux64): Likewise.
8622 (tdesc_s390_linux64): Likewise.
8623 (init_registers_s390_linux64v1): Likewise.
8624 (tdesc_s390_linux64v1): Likewise.
8625 (init_registers_s390_linux64v2): Likewise.
8626 (tdesc_s390_linux64v2): Likewise.
8627 (init_registers_s390_te_linux64): Likewise.
8628 (tdesc_s390_te_linux64): Likewise.
8629 (init_registers_s390_vx_linux64): Likewise.
8630 (tdesc_s390_vx_linux64): Likewise.
8631 (init_registers_s390_tevx_linux64): Likewise.
8632 (tdesc_s390_tevx_linux64): Likewise.
8633 (init_registers_s390x_linux64): Likewise.
8634 (tdesc_s390x_linux64): Likewise.
8635 (init_registers_s390x_linux64v1): Likewise.
8636 (tdesc_s390x_linux64v1): Likewise.
8637 (init_registers_s390x_linux64v2): Likewise.
8638 (tdesc_s390x_linux64v2): Likewise.
8639 (init_registers_s390x_te_linux64): Likewise.
8640 (tdesc_s390x_te_linux64): Likewise.
8641 (init_registers_s390x_vx_linux64): Likewise.
8642 (tdesc_s390x_vx_linux64): Likewise.
8643 (init_registers_s390x_tevx_linux64): Likewise.
8644 (tdesc_s390x_tevx_linux64): Likewise.
8645 (have_hwcap_s390_vx): New static variable.
8646 (s390_arch_setup): Fill have_hwcap_s390_vx.
8647 (s390_get_thread_area): New function.
8648 (s390_ft_entry_gpr_esa): New const.
8649 (s390_ft_entry_gpr_zarch): New const.
8650 (s390_ft_entry_misc): New const.
8651 (s390_ft_entry_fr): New const.
8652 (s390_ft_entry_vr): New const.
8653 (s390_ft_main_31): New const.
8654 (s390_ft_main_64): New const.
8655 (s390_ft_exit_fr): New const.
8656 (s390_ft_exit_vr): New const.
8657 (s390_ft_exit_misc): New const.
8658 (s390_ft_exit_gpr_esa): New const.
8659 (s390_ft_exit_gpr_zarch): New const.
8660 (append_insns): New function.
8661 (s390_relocate_instruction): New function.
8662 (s390_install_fast_tracepoint_jump_pad): New function.
8663 (s390_get_min_fast_tracepoint_insn_len): New function.
8664 (s390_get_ipa_tdesc_idx): New function.
8665 (struct linux_target_ops): Wire in the above functions.
8666 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8667 * linux-s390-tdesc.h: New file.
8669 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8671 * linux-s390-low.c (s390_supports_tracepoints): New function.
8672 (struct linux_target_ops): Fill supports_tracepoints hook.
8674 2016-03-18 Yao Qi <yao.qi@linaro.org>
8676 * linux-low.c (lwp_signal_can_be_delivered): New function.
8677 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8679 2016-03-18 Yao Qi <yao.qi@linaro.org>
8681 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8682 0 if signal is enqueued. Remove 'signal' from one debugging
8683 message. Move one debugging message to some lines below.
8684 Remove code setting 'signal' to 0.
8686 2016-03-18 Yao Qi <yao.qi@linaro.org>
8688 * linux-low.c (linux_low_filter_event): Remove redundant
8689 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8691 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8693 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8694 (struct linux_target_ops): Wire in the above.
8696 2016-03-03 Yao Qi <yao.qi@linaro.org>
8698 * linux-low.c: Update comments to start_step_over.
8700 2016-03-03 Yao Qi <yao.qi@linaro.org>
8703 * linux-low.c (handle_extended_wait): Set child suspended
8704 if event_lwp->bp_reinsert isn't zero.
8706 2016-03-02 Yao Qi <yao.qi@linaro.org>
8708 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8709 enqueue_pending_signal.
8711 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8713 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8716 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8718 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8719 (s390_regmap_3264) [!__s390x__]: New global.
8720 (s390_collect_ptrace_register): Skip map entries containing -1.
8721 (s390_supply_ptrace_register): Ditto.
8722 (s390_fill_gprs_high): New function.
8723 (s390_store_gprs_high): New function.
8724 (s390_regsets): Add NT_S390_HIGH_GPRS.
8725 (s390_get_hwcap): Enable on 31-bit.
8726 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8727 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8728 Detect NT_S390_HIGH_GPRS.
8729 (s390_usrregs_info_3264): Enable on 31-bit.
8730 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8731 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8733 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8736 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8737 * configure.srv: Ditto.
8738 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8739 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8740 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8741 (init_registers_amd64_linux): Remove prototype.
8742 (tdesc_amd64_linux): Remove declaration.
8743 (get_ipa_tdesc): New function.
8744 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8745 initialize remaining tdescs.
8746 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8747 (init_registers_i386_linux): Remove prototype.
8748 (tdesc_i386_linux): Remove declaration.
8749 (get_ipa_tdesc): New function.
8750 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8751 initialize remaining tdescs.
8752 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8753 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8754 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8755 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8756 (x86_get_ipa_tdesc_idx): New function.
8757 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8758 * linux-x86-tdesc.h: New file.
8759 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8760 (target_get_ipa_tdesc_idx): New macro.
8761 * tracepoint.c (ipa_tdesc_idx): New macro.
8762 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8763 (symbol_list): Add ipa_tdesc_idx.
8764 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8765 (ipa_tdesc): Remove.
8766 (ipa_tdesc_idx): New variable.
8767 (get_context_regcache): Use get_ipa_tdesc.
8768 (gdb_collect): Ditto.
8770 * tracepoint.h (get_ipa_tdesc): New prototype.
8771 (ipa_tdesc): Remove.
8773 2016-02-24 Pedro Alves <palves@redhat.com>
8775 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8776 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8777 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8778 Factor out common code between the USE_SIGTRAP_SIGINFO and
8779 !USE_SIGTRAP_SIGINFO blocks.
8780 (linux_low_filter_event): Call save_stop_reason instead of
8781 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8783 (linux_wait_1): Update comments.
8785 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8787 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8788 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8789 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8790 ppc_insert_point, ppc_remove_point.
8792 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8794 * linux-s390-low.c (s390_supports_z_point_type): New function.
8795 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8797 2016-02-16 Yao Qi <yao.qi@linaro.org>
8799 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8800 PC. Get pc from regcache_read_pc.
8802 2016-02-12 Yao Qi <yao.qi@linaro.org>
8804 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8805 or linux_get_pc_32bit.
8806 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8808 2016-02-12 Yao Qi <yao.qi@linaro.org>
8810 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8811 arm_linux_get_next_pcs_fixup.
8813 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8815 * tracepoint.c (x_tracepoint_action_download): Change
8816 write_inferior_data_ptr to write_inferior_data_pointer.
8817 (cmd_qtstart): Likewise.
8818 (write_inferior_data_ptr): Remove.
8819 (download_agent_expr): Change write_inferior_data_ptr to
8820 write_inferior_data_pointer.
8821 (download_tracepoint_1): Likewise.
8822 (download_tracepoint): Likewise.
8823 (download_trace_state_variables): Likewise.
8825 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8826 Marcin Kościelnicki <koriakin@0x04.net>
8828 * tracepoint.c (struct tracepoint_action_ops): Remove.
8829 (struct tracepoint_action): Remove ops.
8830 (m_tracepoint_action_download, r_tracepoint_action_download)
8831 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8832 size and offset accordingly.
8833 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8834 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8835 (tracepoint_action_send, tracepoint_action_download): New functions.
8836 Helpers for trace action handlers.
8837 (add_tracepoint_action): Remove setup actions ops.
8838 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8840 2016-02-10 Yao Qi <yao.qi@linaro.org>
8842 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8844 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8846 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8848 * configure: Regenerate.
8850 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8852 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8853 void * to gdb_byte *.
8854 * linux-low.c (siginfo_fixup): Likewise.
8855 (linux_xfer_siginfo): Likewise.
8856 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8858 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8860 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8862 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8864 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8866 * linux-x86-low.c [__x86_64__]: Include
8867 "nat/amd64-linux-siginfo.h".
8868 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8869 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8870 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8871 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8872 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8873 (cpt_si_fd, si_timerid, si_overrun): Move from
8874 nat/amd64-linux-siginfo.c.
8875 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8877 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8879 * server.c (skip_to_semicolon): Remove.
8880 (process_point_options): Use strchrnul instead of
8883 2016-01-26 Yao Qi <yao.qi@linaro.org>
8885 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8886 * linux-low.c (install_software_single_step_breakpoints): Don't
8887 call regcache_read_pc.
8888 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8891 2016-01-26 Yao Qi <yao.qi@linaro.org>
8893 * linux-low.c (install_software_single_step_breakpoints): Call
8894 regcache_read_pc instead of get_pc.
8896 2016-01-26 Yao Qi <yao.qi@linaro.org>
8898 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8899 (unblock_async_io): Rename to ...
8900 (block_unblock_async_io): ... it. New function.
8901 (enable_async_io): Don't install SIGIO handler. Unblock it
8903 (disable_async_io): Don't ignore SIGIO. Block it instead.
8904 (initialize_async_io): Install SIGIO handler. Don't call
8907 2016-01-26 Yao Qi <yao.qi@linaro.org>
8909 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8910 first character is '\003', call *the_target->request_interrupt.
8912 2016-01-25 Yao Qi <yao.qi@linaro.org>
8914 * remote-utils.c (new_thread_notify): Remove.
8915 (dead_thread_notify): Likewise.
8916 * remote-utils.h (new_thread_notify): Remove declaration.
8917 (dead_thread_notify): Likewise.
8919 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8921 * gdb.trace/pending.exp: Fix expected message on continue.
8923 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8925 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8926 it works properly on big-endian machines where sizeof (CORE_ADDR)
8929 2016-01-21 Pedro Alves <palves@redhat.com>
8931 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8932 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8933 * configure: Regenerate.
8935 2016-01-21 Yao Qi <yao.qi@linaro.org>
8937 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8938 is_thumb and set it according to CPSR saved on the stack.
8939 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8940 arm_sigreturn_next_pc.
8942 2016-01-18 Yao Qi <yao.qi@linaro.org>
8944 * linux-low.c (linux_set_pc_64bit): New function.
8945 (linux_get_pc_64bit): New function.
8946 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8948 * linux-sparc-low.c (debug_threads): Remove declaration.
8949 (sparc_get_pc): Remove.
8950 (the_low_target): Use linux_get_pc_64bit instead of
8952 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8953 (the_low_target): Use linux_get_pc_64bit and
8956 2016-01-18 Yao Qi <yao.qi@linaro.org>
8958 * linux-arm-low.c (debug_threads): Remove declaration.
8959 (arm_get_pc, arm_set_pc): Remove.
8960 (the_low_target): Use linux_get_pc_32bit and
8962 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8963 (the_low_target): Use linux_get_pc_32bit and
8965 * linux-cris-low.c (debug_threads): Remove declaration.
8966 (cris_get_pc, cris_set_pc,): Remove.
8967 (the_low_target): Use linux_get_pc_32bit and
8969 * linux-crisv32-low.c (debug_threads): Remove declaration.
8970 (cris_get_pc, cris_set_pc): Remove.
8971 (the_low_target): Use linux_get_pc_32bit and
8973 * linux-low.c: Include inttypes.h.
8974 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8975 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8976 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8977 (the_low_target): Use linux_get_pc_32bit and
8979 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8980 (the_low_target): Use linux_get_pc_32bit and
8982 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8983 (the_low_target): Use linux_get_pc_32bit and
8985 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8986 (the_low_target): Use linux_get_pc_32bit and
8988 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8989 (the_low_target): Use linux_get_pc_32bit and
8992 2016-01-18 Gary Benson <gbenson@redhat.com>
8994 * configure.ac (AC_FUNC_FORK): New check.
8995 * config.in: Regenerate.
8996 * configure: Likewise.
8998 2016-01-14 Yao Qi <yao.qi@linaro.org>
9000 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9001 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9002 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9003 arm_get_next_pcs_ctor.
9005 2016-01-12 Josh Stone <jistone@redhat.com>
9006 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9008 * inferiors.h: Include "gdb_vecs.h".
9009 (struct process_info): Add syscalls_to_catch.
9010 * inferiors.c (remove_process): Free syscalls_to_catch.
9011 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9012 syscall_return stops.
9013 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9014 * server.c (handle_general_set): Handle QCatchSyscalls.
9015 (handle_query): Report support for QCatchSyscalls.
9016 * target.h (struct target_ops): Add supports_catch_syscall.
9017 (target_supports_catch_syscall): New macro.
9018 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9019 (struct lwp_info): Add syscall_state.
9020 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9021 Maintain syscall_state and syscalls_to_catch across exec.
9022 (get_syscall_trapinfo): New function, proxy to the_low_target.
9023 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9024 (linux_low_filter_event): Toggle syscall_state entry/return for
9025 syscall traps, and set it ignored for all others.
9026 (gdb_catching_syscalls_p): New function.
9027 (gdb_catch_this_syscall_p): New function.
9028 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9029 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9030 (linux_supports_catch_syscall): New function.
9031 (linux_target_ops): Install it.
9032 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9033 (the_low_target): Install it.
9035 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9037 * acinclude.m4: Include new ../warning.m4 file.
9038 * configure: Regenerated.
9039 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9041 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9043 * ax.c (is_goto_target): Mark static.
9044 * linux-low.c (register_addr): Likewise.
9045 (linux_fetch_registers, linux_store_registers): Likewise.
9046 * mem-break.c (any_persistent_commands): Fix old prototype.
9047 (add_commands_to_breakpoint): Mark static.
9048 * regcache.c (find_register_by_name): Delete unused func.
9049 * remote-utils.c (hex_or_minus_one): Mark static.
9050 * server.c (monitor_show_help): Mark static.
9051 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9052 handle_v_requests): Likewise.
9054 2016-01-12 Pedro Alves <palves@redhat.com>
9056 Remove use of the registered trademark symbol throughout.
9058 2016-01-08 Yao Qi <yao.qi@linaro.org>
9060 * remote-utils.c (getpkt): If c is '\003', call target hook
9063 2016-01-06 Yao Qi <yao.qi@linaro.org>
9065 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9066 linux-aarch32-low.c.
9067 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9068 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9069 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9070 (thumb2_breakpoint): Declare.
9071 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9072 linux-aarch32-low.h.
9073 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9074 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9075 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9077 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9079 * gdbreplay.c (gdbreplay_version): Change copyright year in
9081 * server.c (gdbserver_version): Likewise.
9083 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9085 * server.c (crc32_table): Delete.
9086 (crc32): Use libiberty's xcrc32 function.
9088 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9090 * lynx-low.c (lynx_delete_thread_callback): New function.
9091 (lynx_mourn): Properly delete our process and all of its
9092 threads. Remove call to clear_inferiors.
9094 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9096 * target.c (thread_search_callback): Add check that
9097 the thread_stopped target callback is not NULL before
9100 2015-12-21 Yao Qi <yao.qi@linaro.org>
9102 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9105 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9107 * server.c (handle_query): Call target_supports_software_single_step.
9109 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9111 * linux-low.c (single_step): New function.
9112 (linux_resume_one_lwp_throw): Call single_step.
9113 (start_step_over): Likewise.
9115 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9117 * Makefile.in (SFILES): Append arch/arm-linux.c,
9118 arch/arm-get-next-pcs.c.
9119 (arm-linux.o): New rule.
9120 (arm-get-next-pcs.o): New rule.
9121 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9123 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9124 to linux-aarch32-low.c.
9125 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9126 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9127 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9128 (thumb2_breakpoint_len): Likewise.
9129 (arm_is_thumb_mode): Make non-static.
9130 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9131 from linux-aarch32-low.c.
9132 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9133 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9134 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9135 (thumb2_breakpoint_len): Likewise.
9136 (arm_is_thumb_mode): New declaration.
9137 * linux-arm-low.c: Include arch/arm-linux.h
9138 aarch/arm-get-next-pcs.h, sys/syscall.h.
9139 (get_next_pcs_ops): New struct.
9140 (get_next_pcs_addr_bits_remove): New function.
9141 (get_next_pcs_is_thumb): New function.
9142 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9143 (arm_sigreturn_next_pc): Likewise.
9144 (get_next_pcs_syscall_next_pc): Likewise.
9145 (arm_gdbserver_get_next_pcs): Likewise.
9146 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9148 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9149 * server.h: Include gdb_vecs.h.
9151 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9153 * Makefile.in (SFILES): Append common/common-regcache.c.
9154 (OBS): Append common-regcache.o.
9155 (common-regcache.o): New rule.
9156 * regcache.c (init_register_cache): Initialize cache to
9158 (regcache_raw_read_unsigned): New function.
9159 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9160 register_status enum.
9162 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9164 * linux-aarch64-low.c (the_low_targets): Rename
9165 breakpoint_reinsert_addr to get_next_pcs.
9166 * linux-arm-low.c (the_low_targets): Likewise.
9167 * linux-bfin-low.c (the_low_targets): Likewise.
9168 * linux-cris-low.c (the_low_targets): Likewise.
9169 * linux-crisv32-low.c (the_low_targets): Likewise.
9170 * linux-low.c (can_software_single_step): Likewise.
9171 (install_software_single_step_breakpoints): New function.
9172 (start_step_over): Use install_software_single_step_breakpoints.
9173 * linux-low.h: New CORE_ADDR vector.
9174 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9176 * linux-mips-low.c (the_low_targets): Likewise.
9177 * linux-nios2-low.c (the_low_targets): Likewise.
9178 * linux-sparc-low.c (the_low_targets): Likewise.
9180 2015-12-17 Pedro Alves <palves@redhat.com>
9182 * linux-low.c (linux_kill_one_lwp): Remove references to
9184 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9186 (linux_init_signals): Delete.
9187 (initialize_low): Adjust.
9188 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9190 2015-12-16 Pedro Alves <palves@redhat.com>
9192 * configure.ac (compiler warning flags): When testing a
9193 -Wno-foo option, check whether -Wfoo works instead.
9194 * configure: Regenerate.
9196 2015-12-11 Don Breazeal <donb@codesourcery.com>
9198 * server.c (process_serial_event): Don't exit from gdbserver
9199 in remote mode if there are still active inferiors.
9201 2015-12-11 Yao Qi <yao.qi@linaro.org>
9203 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9204 arm_breakpoint_at if the process is 32-bit.
9206 2015-12-11 Yao Qi <yao.qi@linaro.org>
9208 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9211 2015-12-07 Yao Qi <yao.qi@linaro.org>
9213 * configure.srv: Append arm.o to srv_tgtobj for
9214 aarch64*-*-linux* target.
9215 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9216 from linux-arm-low.c.
9217 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9218 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9219 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9220 (thumb2_breakpoint_len): Likewise.
9221 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9222 (arm_breakpoint_kinds): Likewise.
9223 (arm_breakpoint_kind_from_pc): Likewise.
9224 (arm_sw_breakpoint_from_kind): Likewise.
9225 (arm_breakpoint_kind_from_current_state): Likewise.
9226 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9227 (arm_sw_breakpoint_from_kind): Declare.
9228 (arm_breakpoint_kind_from_current_state): Declare.
9229 (arm_breakpoint_at): Declare.
9230 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9231 arm_sw_breakpoint_from_kind if process is 32-bit.
9232 (aarch64_breakpoint_kind_from_pc): New function.
9233 (aarch64_breakpoint_kind_from_current_state): New function.
9234 (the_low_target): Initialize fields breakpoint_kind_from_pc
9235 and breakpoint_kind_from_current_state.
9236 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9237 linux-aarch32-low.c.
9238 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9239 (arm_breakpoint, arm_breakpoint_len): Likewise.
9240 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9241 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9242 (arm_is_thumb_mode): Likewise.
9243 (arm_breakpoint_at): Likewise.
9244 (arm_breakpoint_kind_from_pc): Likewise.
9245 (arm_sw_breakpoint_from_kind): Likewise.
9246 (arm_breakpoint_kind_from_current_state): Likewise.
9249 2015-08-04 Yao Qi <yao.qi@linaro.org>
9251 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9252 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9253 * server.c (extended_protocol): Remove "static".
9254 * server.h (extended_protocol): Declare it.
9256 2015-12-04 Josh Stone <jistone@redhat.com>
9258 * target.h (struct target_ops) <arch_setup>: Rename to ...
9259 (struct target_ops) <post_create_inferior>: ... this.
9260 (target_arch_setup): Rename to ...
9261 (target_post_create_inferior): ... this, calling post_create_inferior.
9262 * server.c (start_inferior): Update target_arch_setup calls to
9263 target_post_create_inferior.
9264 * linux-low.c (linux_low_ptrace_options): Forward declare.
9265 (linux_arch_setup): Update its comment for general use.
9266 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9267 (struct linux_target_ops): Use linux_post_create_inferior.
9268 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9269 to post_create_inferior.
9270 * nto-low.c (struct nto_target_ops): Likewise.
9271 * spu-low.c (struct spu_target_ops): Likewise.
9272 * win32-low.c (struct win32_target_ops): Likewise.
9274 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9276 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9278 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9280 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9281 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9282 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9283 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9284 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9285 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9286 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9287 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9288 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9289 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9290 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9291 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9293 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9295 * linux-low.c (linux_look_up_symbols): Don't call
9296 linux_supports_traceclone.
9297 * linux-low.h (thread_db_init): Remove use_events argument.
9298 * thread-db.c (thread_db_use_event): Remove global variable.
9299 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9300 (struct thread_db) <td_create_bp>: Remove field.
9301 (thread_db_create_event): Remove function.
9302 (thread_db_enable_reporting): Likewise.
9303 (find_one_thread): Don't check for thread_db_use_events.
9304 (attach_thread): Likewise.
9305 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9306 (try_thread_db_load_1): Don't check for thread_db_use_events.
9307 (thread_db_init): Remove use_events argument and thread events
9309 (remove_thread_event_breakpoints): Remove function.
9310 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9312 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9314 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9316 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9317 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9318 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9319 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9320 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9322 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9324 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9325 * linux-low.c (can_hardware_single_step): Use
9326 supports_hardware_single_step.
9327 (can_software_single_step): New function.
9328 (start_step_over): Call can_software_single_step.
9329 (linux_supports_hardware_single_step): New function.
9330 (struct target_ops) <supports_software_single_step>: Initialize.
9331 * linux-low.h (struct linux_target_ops)
9332 <supports_hardware_single_step>: Initialize.
9333 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9334 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9335 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9336 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9337 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9338 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9339 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9340 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9341 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9342 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9344 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9345 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9347 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9348 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9349 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9351 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9352 * target.h (struct target_ops): <supports_software_single_step>:
9354 (target_supports_software_single_step): New macro.
9356 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9358 * linux-low.c (linux_wait_1): Fix pc advance condition.
9359 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9360 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9362 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9364 * linux-arm-low.c (arm_is_thumb_mode): New function.
9365 (arm_breakpoint_at): Use arm_is_thumb_mode.
9366 (arm_breakpoint_kind_from_current_state): New function.
9367 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9369 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9370 (linux_breakpoint_kind_from_current_state): New function.
9371 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9372 * linux-low.h (struct linux_target_ops)
9373 <breakpoint_kind_from_current_state>: New field.
9374 * target.h (struct target_ops): Likewise.
9375 (target_breakpoint_kind_from_current_state): New macro.
9377 2015-11-30 Pedro Alves <palves@redhat.com>
9379 * linux-low.c (linux_resume): Wake up the event loop before
9382 2015-11-30 Pedro Alves <palves@redhat.com>
9384 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9386 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9388 * target.c (struct thread_search): New structure.
9389 (thread_search_callback): New function.
9390 (prev_general_thread): New global.
9391 (prepare_to_access_memory, done_accessing_memory): New functions.
9392 * target.h (prepare_to_access_memory, done_accessing_memory):
9393 Replace macros with function declarations.
9395 2015-11-30 Pedro Alves <palves@redhat.com>
9398 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9399 report TARGET_WAITKIND_NO_RESUMED.
9400 * remote-utils.c (prepare_resume_reply): Handle
9401 TARGET_WAITKIND_NO_RESUMED.
9402 * server.c (report_no_resumed): New global.
9403 (handle_query) <qSupported>: Handle "no-resumed+". Report
9404 "no-resumed+" support.
9405 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9406 return error if the client doesn't support no-resumed events.
9407 (push_stop_notification): New function.
9408 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9409 events if the client supports them.
9411 2015-11-30 Pedro Alves <palves@redhat.com>
9413 * linux-low.c (thread_still_has_status_pending_p): Don't check
9415 (lwp_resumed): New function.
9416 (status_pending_p_callback): Return early if the LWP is not
9417 supposed to be resumed.
9419 2015-11-30 Pedro Alves <palves@redhat.com>
9421 * linux-low.c (handle_extended_wait): Assert that the LWP's
9422 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9423 thread create events, leave the new child's status pending.
9424 (linux_low_filter_event): If GDB wants to hear about thread exit
9425 events, leave the LWP marked dead and don't delete it.
9426 (linux_wait_for_event_filtered): Don't check for thread exit.
9427 (filter_exit_event): New function.
9428 (linux_wait_1): Use it, when returning an exit event.
9429 (linux_resume_one_lwp_throw): Assert that the LWP's
9430 waitstatus is TARGET_WAITKIND_IGNORE.
9431 * remote-utils.c (prepare_resume_reply): Handle
9432 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9433 * server.c (report_thread_events): New global.
9434 (handle_general_set): Handle QThreadEvents.
9435 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9436 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9437 TARGET_WAITKIND_THREAD_EXITED.
9438 * server.h (report_thread_events): Declare.
9440 2015-11-30 Pedro Alves <palves@redhat.com>
9442 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9443 the thread's last_resume_kind was resume_stop.
9445 2015-11-30 Pedro Alves <palves@redhat.com>
9447 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9450 2015-11-30 Pedro Alves <palves@redhat.com>
9452 * server.c (handle_v_requests): Handle vCtrlC.
9454 2015-11-30 Pedro Alves <palves@redhat.com>
9456 * gdbthread.h (find_any_thread_of_pid): Declare.
9457 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9459 * server.c (handle_query): If current_thread is NULL, look for
9460 another thread of the selected process.
9462 2015-11-26 Daniel Colascione <dancol@dancol.org>
9463 Simon Marchi <simon.marchi@ericsson.com>
9465 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9466 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9468 * target.h (struct target_ops) <thread_name>: New field.
9469 (target_thread_name): New macro.
9471 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9473 * regcache.h (regcache_invalidate_pid): Add declaration.
9474 * regcache.c (regcache_invalidate_pid): New function, extracted
9475 from regcache_invalidate.
9476 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9477 Add trivial documentation comment.
9478 * lynx-low.c: Use regcache_invalidate_pid instead of
9479 regcache_invalidate.
9481 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9483 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9484 and Elf64_auxv_t if the target is Android.
9486 2015-11-22 Doug Evans <xdje42@gmail.com>
9488 * target.h: #include <sys/types.h>.
9490 2015-11-19 Pedro Alves <palves@redhat.com>
9492 * linux-low.c (linux_process_qsupported): Change prototype.
9494 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9496 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9497 and adjust to loop over all features.
9498 * server.c (handle_query) <qSupported>: Adjust to call
9499 target_process_qsupported once, passing it a vector of unprocessed
9501 * target.h (struct target_ops) <process_qsupported>: Change
9503 (target_process_qsupported): Adjust.
9505 2015-11-19 Pedro Alves <palves@redhat.com>
9507 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9509 * configure: Regenerate.
9511 2015-11-19 Pedro Alves <palves@redhat.com>
9513 * configure: Regenerate.
9515 2015-11-19 Yao Qi <yao.qi@linaro.org>
9517 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9520 2015-11-19 Yao Qi <yao.qi@linaro.org>
9522 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9523 (struct aarch64_operand): Move enum out.
9525 2015-11-19 Yao Qi <yao.qi@linaro.org>
9527 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9528 struct user_fpsimd_state *.
9529 (aarch64_store_fpregset): Likewise.
9531 2015-11-19 Yao Qi <yao.qi@linaro.org>
9533 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9534 struct user_pt_regs *.
9535 (aarch64_store_gregset): Likewise.
9537 2015-11-18 Pedro Alves <palves@redhat.com>
9539 * Makefile.in (all_object_files): Add $IPA_OBJS.
9541 2015-11-17 Pedro Alves <palves@redhat.com>
9543 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9544 GDB_SIGNAL_0 and gdb_signal_to_string.
9546 2015-11-17 Pedro Alves <palves@redhat.com>
9548 * win32-low.c (handle_output_debug_string): Remove parameter.
9549 (win32_kill): Remove our_status local and adjust call to
9550 handle_output_debug_string.
9551 (get_child_debug_event): Adjust call to
9552 handle_output_debug_string.
9554 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9556 * linux-mips-low.c (mips_fill_gregset): Add cast.
9557 (mips_store_gregset): Likewise.
9558 (mips_fill_fpregset): Likewise.
9559 (mips_store_fpregset): Likewise.
9561 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9563 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9566 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9568 * linux-mips-low.c (mips_linux_new_thread): Change type of
9569 watch_type to enum target_hw_bp_type.
9571 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9573 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9574 Change return type to arm_hwbp_type.
9576 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9578 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9579 (arm_store_gregset): Likewise.
9580 * linux-arm-low.c (arm_get_hwcap): Likewise.
9581 (arm_read_description): Likewise.
9583 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9585 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9587 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9589 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9590 (ppc_fill_vsxregset): Likewise.
9591 (ppc_store_vsxregset): Likewise.
9592 (ppc_fill_vrregset): Likewise.
9593 (ppc_store_vrregset): Likewise.
9594 (ppc_fill_evrregset): Likewise.
9595 (ppc_store_evrregset): Likewise.
9597 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9599 * linux-ppc-low.c (ppc_usrregs_info): Remove
9600 forward-declaration.
9601 (ppc_arch_setup): Move lower in file.
9603 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9605 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9606 (ps_pdwrite): Likewise.
9608 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9610 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9611 to after assert checks.
9613 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9615 * proc-service.c (ps_pdread): Add/adjust casts.
9616 (ps_pdwrite): Add/adjust casts.
9618 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9620 * server.c (handle_search_memory_1): Cast return value of
9623 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9625 * server.c (write_qxfer_response): Change type of data to
9628 2015-10-29 Pedro Alves <palves@redhat.com>
9630 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9632 2015-10-29 Pedro Alves <palves@redhat.com>
9634 * tracepoint.c (clear_installed_tracepoints): Add casts.
9636 2015-10-29 Pedro Alves <palves@redhat.com>
9638 * server.c (handle_v_cont, process_serial_event): Add enum
9639 gdb_signal casts to signal parsing code.
9641 2015-10-29 Pedro Alves <palves@redhat.com>
9643 * linux-low.h (NULL_REGSET): Define.
9644 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9645 * linux-arm-low.c (arm_regsets): Likewise.
9646 * linux-crisv32-low.c (cris_regsets): Likewise.
9647 * linux-m68k-low.c (m68k_regsets): Likewise.
9648 * linux-mips-low.c (mips_regsets): Likewise.
9649 * linux-nios2-low.c (nios2_regsets): Likewise.
9650 * linux-ppc-low.c (ppc_regsets): Likewise.
9651 * linux-s390-low.c (s390_regsets): Likewise.
9652 * linux-sh-low.c (sh_regsets): Likewise.
9653 * linux-sparc-low.c (sparc_regsets): Likewise.
9654 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9655 * linux-tile-low.c (tile_regsets): Likewise.
9656 * linux-x86-low.c (x86_regsets): Likewise.
9657 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9659 2015-10-29 Pedro Alves <palves@redhat.com>
9661 * linux-low.h (NULL_REGSET): Define.
9662 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9663 * linux-arm-low.c (arm_regsets): Likewise.
9664 * linux-crisv32-low.c (cris_regsets): Likewise.
9665 * linux-m68k-low.c (m68k_regsets): Likewise.
9666 * linux-mips-low.c (mips_regsets): Likewise.
9667 * linux-nios2-low.c (nios2_regsets): Likewise.
9668 * linux-ppc-low.c (ppc_regsets): Likewise.
9669 * linux-s390-low.c (s390_regsets): Likewise.
9670 * linux-sh-low.c (sh_regsets): Likewise.
9671 * linux-sparc-low.c (sparc_regsets): Likewise.
9672 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9673 * linux-tile-low.c (tile_regsets): Likewise.
9674 * linux-x86-low.c (x86_regsets): Likewise.
9675 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9677 2015-10-26 Doug Evans <dje@google.com>
9679 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9681 2015-10-26 Doug Evans <dje@google.com>
9683 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9685 2015-10-26 Doug Evans <dje@google.com>
9687 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9689 (attach_thread, find_new_threads_callback): Ditto.
9691 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9693 * mem-break.h (set_breakpoint_data): Remove.
9695 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9697 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9698 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9699 (initialize_low): Remove set_breakpoint_data call.
9700 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9701 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9702 (initialize_low): Remove set_breakpoint_data call.
9703 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9704 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9705 (initialize_low): Remove set_breakpoint_data call.
9707 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9709 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9710 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9711 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9712 * target.h (target_breakpoint_kind_from_pc): New macro.
9714 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9716 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9717 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9718 the default breakpoint kind.
9720 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9722 * linux-arm-low.c (arm_supports_z_point_type): Add software
9725 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9727 * linux-arm-low.c: Refactor breakpoint definitions.
9728 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9729 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9731 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9733 * Makefile.in: Add arm.c/o.
9734 * configure.srv: Likewise.
9735 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9736 (arm_breakpoint_kind_from_pc): New function.
9737 (arm_sw_breakpoint_from_kind): Return proper kind.
9738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9740 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9742 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9744 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9745 (struct raw_breakpoint) <size>: Remove.
9746 (struct raw_breakpoint) <kind>: Add.
9747 (bp_size): New function.
9748 (bp_opcode): Likewise.
9749 (find_raw_breakpoint_at): Adjust for kind.
9750 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9751 (remove_memory_breakpoint): Adjust for kind call bp_size.
9752 (set_raw_breakpoint_at): Adjust for kind.
9753 (set_breakpoint): Likewise.
9754 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9755 (delete_raw_breakpoint): Adjust for kind.
9756 (delete_breakpoint): Likewise.
9757 (find_gdb_breakpoint): Likewise.
9758 (set_gdb_breakpoint_1): Likewise.
9759 (set_gdb_breakpoint): Likewise.
9760 (delete_gdb_breakpoint_1): Likewise.
9761 (delete_gdb_breakpoint): Likewise.
9762 (uninsert_raw_breakpoint): Likewise.
9763 (reinsert_raw_breakpoint): Likewise.
9764 (set_breakpoint_data): Remove.
9765 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9766 (check_mem_read): Adjust for kind call bp_size.
9767 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9768 (clone_one_breakpoint): Adjust for kind.
9769 * mem-break.h (set_gdb_breakpoint): Likewise.
9770 (delete_gdb_breakpoint): Likewise.
9771 * server.c (process_serial_event): Likewise.
9773 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9775 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9776 (struct linux_target_ops) <breakpoint>: Remove.
9777 (struct linux_target_ops) <breakpoint_len>: Remove.
9778 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9779 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9780 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9781 (arm_sw_breakpoint_from_kind): New function.
9782 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9788 (struct linux_target_ops) <breakpoint>: Remove.
9789 (struct linux_target_ops) <breakpoint_len>: Remove.
9790 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9791 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9793 (struct linux_target_ops) <breakpoint>: Remove.
9794 (struct linux_target_ops) <breakpoint_len>: Remove.
9795 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9797 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9798 and sw_breakpoint_from_kind to increment the pc.
9799 (linux_breakpoint_kind_from_pc): New function.
9800 (linux_sw_breakpoint_from_kind): New function.
9801 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 (initialize_low): Call breakpoint_kind_from_pc and
9803 sw_breakpoint_from_kind to replace breakpoint_data/len.
9804 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9807 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9823 (struct linux_target_ops) <breakpoint>: Remove.
9824 (struct linux_target_ops) <breakpoint_len>: Remove.
9825 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9826 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9827 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9828 (struct linux_target_ops) <breakpoint>: Remove.
9829 (struct linux_target_ops) <breakpoint_len>: Remove.
9830 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9831 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9832 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9833 (struct linux_target_ops) <breakpoint>: Remove.
9834 (struct linux_target_ops) <breakpoint_len>: Remove.
9835 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9836 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9837 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9838 (struct linux_target_ops) <breakpoint>: Remove.
9839 (struct linux_target_ops) <breakpoint_len>: Remove.
9840 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9841 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9842 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9843 (struct linux_target_ops) <breakpoint>: Remove.
9844 (struct linux_target_ops) <breakpoint_len>: Remove.
9845 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9846 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9847 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9848 (struct linux_target_ops) <breakpoint>: Remove.
9849 (struct linux_target_ops) <breakpoint_len>: Remove.
9850 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9851 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9852 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9853 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9854 (struct linux_target_ops) <breakpoint>: Remove.
9855 (struct linux_target_ops) <breakpoint_len>: Remove.
9856 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9857 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9858 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9859 (struct linux_target_ops) <breakpoint>: Remove.
9860 (struct linux_target_ops) <breakpoint_len>: Remove.
9861 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9862 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9864 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9866 * linux-cris-low.c (cris_get_pc): Remove void arg.
9868 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9870 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9873 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9875 * inferiors.c (thread_pid_matches_callback): New function.
9876 (find_thread_process): New function.
9877 (remove_thread): Reset current_thread.
9878 (remove_process): Assert threads have been removed first.
9880 2015-10-15 Yao Qi <yao.qi@linaro.org>
9882 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9884 (aarch64_remove_point): Likewise.
9885 * regcache.c (regcache_register_size): New function.
9887 2015-10-12 Yao Qi <yao.qi@linaro.org>
9889 * linux-aarch64-low.c: Update all callers as emit_load_store
9890 is renamed to aarch64_emit_load_store.
9892 2015-10-12 Yao Qi <yao.qi@linaro.org>
9894 * linux-aarch64-low.c: Update all callers of function renaming
9895 from emit_insn to aarch64_emit_insn.
9897 2015-10-12 Yao Qi <yao.qi@linaro.org>
9899 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9900 arch/aarch64-insn.h.
9901 (struct aarch64_memory_operand): Likewise.
9903 (emit_insn): Move to arch/aarch64-insn.c.
9904 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9905 (emit_load_store): Move to arch/aarch64-insn.c.
9906 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9907 (can_encode_int32): Remove.
9909 2015-10-12 Yao Qi <yao.qi@linaro.org>
9911 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9912 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9913 (aarch64_relocate_instruction): Likewise.
9914 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9915 (struct aarch64_insn_visitor): Likewise.
9917 2015-10-12 Yao Qi <yao.qi@linaro.org>
9919 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9920 (struct aarch64_insn_visitor): New.
9921 (struct aarch64_insn_relocation_data): New.
9922 (aarch64_ftrace_insn_reloc_b): New function.
9923 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9924 (aarch64_ftrace_insn_reloc_cb): Likewise.
9925 (aarch64_ftrace_insn_reloc_tb): Likewise.
9926 (aarch64_ftrace_insn_reloc_adr): Likewise.
9927 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9928 (aarch64_ftrace_insn_reloc_others): Likewise.
9930 (aarch64_relocate_instruction): Use visitor.
9932 2015-10-12 Yao Qi <yao.qi@linaro.org>
9934 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9935 int. Add argument buf.
9936 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9937 aarch64_relocate_instruction.
9939 2015-10-12 Yao Qi <yao.qi@linaro.org>
9941 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9942 argument insn. Remove local variable insn. Don't call
9944 (aarch64_install_fast_tracepoint_jump_pad): Call
9947 2015-09-30 Yao Qi <yao.qi@linaro.org>
9949 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9950 (emit_load_store_pair): Likewise.
9952 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9954 * dll.c (match_dll): Add cast(s).
9955 (unloaded_dll): Likewise.
9956 * linux-low.c (second_thread_of_pid_p): Likewise.
9957 (delete_lwp_callback): Likewise.
9958 (count_events_callback): Likewise.
9959 (select_event_lwp_callback): Likewise.
9960 (linux_set_resume_request): Likewise.
9961 * server.c (accumulate_file_name_length): Likewise.
9962 (emit_dll_description): Likewise.
9963 (handle_qxfer_threads_worker): Likewise.
9964 (visit_actioned_threads): Likewise.
9965 * thread-db.c (any_thread_of): Likewise.
9966 * tracepoint.c (same_process_p): Likewise.
9967 (match_blocktype): Likewise.
9968 (build_traceframe_info_xml): Likewise.
9970 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9972 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9974 (gdb_unparse_agent_expr): Likewise.
9975 * hostio.c (require_data): Likewise.
9976 (handle_pread): Likewise.
9977 * linux-low.c (disable_regset): Likewise.
9978 (fetch_register): Likewise.
9979 (store_register): Likewise.
9980 (get_dynamic): Likewise.
9981 (linux_qxfer_libraries_svr4): Likewise.
9982 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9983 (set_fast_tracepoint_jump): Likewise.
9984 (uninsert_fast_tracepoint_jumps_at): Likewise.
9985 (reinsert_fast_tracepoint_jumps_at): Likewise.
9986 (validate_inserted_breakpoint): Likewise.
9987 (clone_agent_expr): Likewise.
9988 * regcache.c (init_register_cache): Likewise.
9989 * remote-utils.c (putpkt_binary_1): Likewise.
9990 (decode_M_packet): Likewise.
9991 (decode_X_packet): Likewise.
9992 (look_up_one_symbol): Likewise.
9993 (relocate_instruction): Likewise.
9994 (monitor_output): Likewise.
9995 * server.c (handle_search_memory): Likewise.
9996 (handle_qxfer_exec_file): Likewise.
9997 (handle_qxfer_libraries): Likewise.
9998 (handle_qxfer): Likewise.
9999 (handle_query): Likewise.
10000 (handle_v_cont): Likewise.
10001 (handle_v_run): Likewise.
10002 (captured_main): Likewise.
10003 * target.c (write_inferior_memory): Likewise.
10004 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10005 * tracepoint.c (init_trace_buffer): Likewise.
10006 (add_tracepoint_action): Likewise.
10007 (add_traceframe): Likewise.
10008 (add_traceframe_block): Likewise.
10009 (cmd_qtdpsrc): Likewise.
10010 (cmd_qtdv): Likewise.
10011 (cmd_qtstatus): Likewise.
10012 (response_source): Likewise.
10013 (response_tsv): Likewise.
10014 (cmd_qtnotes): Likewise.
10015 (gdb_collect): Likewise.
10016 (initialize_tracepoint): Likewise.
10018 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10020 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10021 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10022 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10024 (enum aarch64_condition_codes): New enum.
10025 (w0): New static global.
10028 (struct aarch64_memory_operand) <type>: New
10029 MEMORY_OPERAND_POSTINDEX type.
10030 (postindex_memory_operand): New helper function.
10031 (emit_ret): New function.
10032 (emit_load_store_pair): New function, factored out of emit_stp
10033 with support for MEMORY_OPERAND_POSTINDEX.
10034 (emit_stp): Rewrite using emit_load_store_pair.
10035 (emit_ldp): New function.
10036 (emit_load_store): Likewise.
10037 (emit_ldr): Mention post-index instruction in comment.
10038 (emit_ldrh): New function.
10039 (emit_ldrb): New function.
10040 (emit_ldrsw): Mention post-index instruction in comment.
10041 (emit_str): Likewise.
10042 (emit_subs): New function.
10043 (emit_cmp): Likewise.
10044 (emit_and): Likewise.
10045 (emit_orr): Likewise.
10046 (emit_orn): Likewise.
10047 (emit_eor): Likewise.
10048 (emit_mvn): Likewise.
10049 (emit_lslv): Likewise.
10050 (emit_lsrv): Likewise.
10051 (emit_asrv): Likewise.
10052 (emit_mul): Likewise.
10053 (emit_sbfm): Likewise.
10054 (emit_sbfx): Likewise.
10055 (emit_ubfm): Likewise.
10056 (emit_ubfx): Likewise.
10057 (emit_csinc): Likewise.
10058 (emit_cset): Likewise.
10059 (emit_nop): Likewise.
10060 (emit_ops_insns): New helper function.
10061 (emit_pop): Likewise.
10062 (emit_push): Likewise.
10063 (aarch64_emit_prologue): New function.
10064 (aarch64_emit_epilogue): Likewise.
10065 (aarch64_emit_add): Likewise.
10066 (aarch64_emit_sub): Likewise.
10067 (aarch64_emit_mul): Likewise.
10068 (aarch64_emit_lsh): Likewise.
10069 (aarch64_emit_rsh_signed): Likewise.
10070 (aarch64_emit_rsh_unsigned): Likewise.
10071 (aarch64_emit_ext): Likewise.
10072 (aarch64_emit_log_not): Likewise.
10073 (aarch64_emit_bit_and): Likewise.
10074 (aarch64_emit_bit_or): Likewise.
10075 (aarch64_emit_bit_xor): Likewise.
10076 (aarch64_emit_bit_not): Likewise.
10077 (aarch64_emit_equal): Likewise.
10078 (aarch64_emit_less_signed): Likewise.
10079 (aarch64_emit_less_unsigned): Likewise.
10080 (aarch64_emit_ref): Likewise.
10081 (aarch64_emit_if_goto): Likewise.
10082 (aarch64_emit_goto): Likewise.
10083 (aarch64_write_goto_address): Likewise.
10084 (aarch64_emit_const): Likewise.
10085 (aarch64_emit_call): Likewise.
10086 (aarch64_emit_reg): Likewise.
10087 (aarch64_emit_pop): Likewise.
10088 (aarch64_emit_stack_flush): Likewise.
10089 (aarch64_emit_zero_ext): Likewise.
10090 (aarch64_emit_swap): Likewise.
10091 (aarch64_emit_stack_adjust): Likewise.
10092 (aarch64_emit_int_call_1): Likewise.
10093 (aarch64_emit_void_call_2): Likewise.
10094 (aarch64_emit_eq_goto): Likewise.
10095 (aarch64_emit_ne_goto): Likewise.
10096 (aarch64_emit_lt_goto): Likewise.
10097 (aarch64_emit_le_goto): Likewise.
10098 (aarch64_emit_gt_goto): Likewise.
10099 (aarch64_emit_ge_got): Likewise.
10100 (aarch64_emit_ops_impl): New static global variable.
10101 (aarch64_emit_ops): New target function, return
10102 &aarch64_emit_ops_impl.
10103 (struct linux_target_ops): Install it.
10105 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10107 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10108 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10110 * linux-aarch64-ipa.c: New file.
10111 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10113 (aarch64_get_thread_area): New target method.
10114 (extract_signed_bitfield): New helper function.
10115 (aarch64_decode_ldr_literal): New function.
10116 (enum aarch64_opcodes): New enum.
10117 (struct aarch64_register): New struct.
10118 (struct aarch64_operand): New struct.
10119 (x0): New static global.
10128 (aarch64_register): New helper function.
10129 (register_operand): Likewise.
10130 (immediate_operand): Likewise.
10131 (struct aarch64_memory_operand): New struct.
10132 (offset_memory_operand): New helper function.
10133 (preindex_memory_operand): Likewise.
10134 (enum aarch64_system_control_registers): New enum.
10135 (ENCODE): New macro.
10136 (emit_insn): New helper function.
10137 (emit_b): New function.
10138 (emit_bcond): Likewise.
10139 (emit_cb): Likewise.
10140 (emit_tb): Likewise.
10141 (emit_blr): Likewise.
10142 (emit_stp): Likewise.
10143 (emit_ldp_q_offset): Likewise.
10144 (emit_stp_q_offset): Likewise.
10145 (emit_load_store): Likewise.
10146 (emit_ldr): Likewise.
10147 (emit_ldrsw): Likewise.
10148 (emit_str): Likewise.
10149 (emit_ldaxr): Likewise.
10150 (emit_stxr): Likewise.
10151 (emit_stlr): Likewise.
10152 (emit_data_processing_reg): Likewise.
10153 (emit_data_processing): Likewise.
10154 (emit_add): Likewise.
10155 (emit_sub): Likewise.
10156 (emit_mov): Likewise.
10157 (emit_movk): Likewise.
10158 (emit_mov_addr): Likewise.
10159 (emit_mrs): Likewise.
10160 (emit_msr): Likewise.
10161 (emit_sevl): Likewise.
10162 (emit_wfe): Likewise.
10163 (append_insns): Likewise.
10164 (can_encode_int32_in): New helper function.
10165 (aarch64_relocate_instruction): New function.
10166 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10167 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10168 (struct linux_target_ops): Install aarch64_get_thread_area,
10169 aarch64_install_fast_tracepoint_jump_pad and
10170 aarch64_get_min_fast_tracepoint_insn_len.
10172 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10174 * Makefile.in (aarch64-insn.o): New rule.
10175 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10177 2015-09-21 Yao Qi <yao.qi@linaro.org>
10179 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10181 2015-09-21 Yao Qi <yao.qi@linaro.org>
10183 * tracepoint.c (max_jump_pad_size): Remove.
10185 2015-09-18 Yao Qi <yao.qi@linaro.org>
10187 * linux-aarch64-low.c: Don't include sys/uio.h.
10188 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10190 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10192 * tracepoint.c (eval_result_type): Change prototype.
10193 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10195 2015-09-15 Pedro Alves <palves@redhat.com>
10197 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10198 Check whether to report exec events instead of checking whether
10199 multiprocess is enabled.
10201 2015-09-15 Pedro Alves <palves@redhat.com>
10204 * remote-utils.c (prepare_resume_reply): Merge
10205 TARGET_WAITKIND_VFORK_DONE switch case with the
10206 TARGET_WAITKIND_FORKED case.
10208 2015-09-15 Yao Qi <yao.qi@linaro.org>
10210 * server.c (handle_query): Check string comparison using
10211 "else if" instead of "if".
10213 2015-09-15 Yao Qi <yao.qi@linaro.org>
10215 * server.c (vCont_supported): New global variable.
10216 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10217 matches. Append ";vContSupported+" to own_buf.
10218 (handle_v_requests): Append ";s;S" to own_buf if target supports
10219 hardware single step or vCont_supported is false.
10220 (capture_main): Set vCont_supported to zero.
10222 2015-09-15 Yao Qi <yao.qi@linaro.org>
10224 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10226 (linux_supports_hardware_single_step): ... New function.
10227 (linux_target_ops): Update.
10228 * lynx-low.c (lynx_target_ops): Set field
10229 supports_hardware_single_step to target_can_do_hardware_single_step.
10230 * nto-low.c (nto_target_ops): Likewise.
10231 * spu-low.c (spu_target_ops): Likewise.
10232 * win32-low.c (win32_target_ops): Likewise.
10233 * target.c (target_can_do_hardware_single_step): New function.
10234 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10235 Remove. <supports_hardware_single_step>: New field.
10236 (target_supports_conditional_breakpoints): Remove.
10237 (target_supports_hardware_single_step): New macro.
10238 (target_can_do_hardware_single_step): Declare.
10239 * server.c (handle_query): Use target_supports_hardware_single_step
10240 instead of target_supports_conditional_breakpoints.
10242 2015-09-15 Yao Qi <yao.qi@linaro.org>
10244 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10246 (struct linux_target_ops the_low_target): Install
10247 aarch64_linux_siginfo_fixup.
10249 2015-09-11 Don Breazeal <donb@codesourcery.com>
10250 Luis Machado <lgustavo@codesourcery.com>
10252 * linux-low.c (linux_mourn): Static declaration.
10253 (linux_arch_setup): Move in front of
10254 handle_extended_wait.
10255 (linux_arch_setup_thread): New function.
10256 (handle_extended_wait): Handle exec events. Call
10257 linux_arch_setup_thread. Make event_lwp argument a
10258 pointer-to-a-pointer.
10259 (check_zombie_leaders): Do not check stopped threads.
10260 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10261 (linux_low_filter_event): Add lwp and thread for exec'ing
10262 non-leader thread if leader thread has been deleted.
10263 Refactor code into linux_arch_setup_thread and call it.
10264 Pass child lwp pointer by reference to handle_extended_wait.
10265 (linux_wait_for_event_filtered): Update comment.
10266 (linux_wait_1): Prevent clobbering exec event status.
10267 (linux_supports_exec_events): New function.
10268 (linux_target_ops) <supports_exec_events>: Initialize new member.
10269 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10271 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10272 * server.c (report_exec_events): New global variable.
10273 (handle_query): Handle qSupported query for exec-events feature.
10274 (captured_main): Initialize report_exec_events.
10275 * server.h (report_exec_events): Declare new global variable.
10276 * target.h (struct target_ops) <supports_exec_events>: New
10278 (target_supports_exec_events): New macro.
10279 * win32-low.c (win32_target_ops) <supports_exec_events>:
10280 Initialize new member.
10282 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10284 * linux-low.c (linux_low_enable_btrace): Remove.
10285 (linux_target_ops): Replace linux_low_enable_btrace with
10286 linux_enable_btrace.
10288 2015-09-03 Yao Qi <yao.qi@linaro.org>
10290 * linux-aarch64-low.c (aarch64_insert_point): Call
10291 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10294 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10296 * linux-low.c (check_stopped_by_breakpoint): Use
10297 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10299 2015-08-27 Pedro Alves <palves@redhat.com>
10301 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10303 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10305 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10306 the XNEW-family equivalent.
10307 (compile_bytecodes): Likewise.
10308 * dll.c (loaded_dll): Likewise.
10309 * event-loop.c (append_callback_event): Likewise.
10310 (create_file_handler): Likewise.
10311 (create_file_event): Likewise.
10312 * hostio.c (handle_open): Likewise.
10313 * inferiors.c (add_thread): Likewise.
10314 (add_process): Likewise.
10315 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10316 * linux-arm-low.c (arm_new_process): Likewise.
10317 (arm_new_thread): Likewise.
10318 * linux-low.c (add_to_pid_list): Likewise.
10319 (linux_add_process): Likewise.
10320 (handle_extended_wait): Likewise.
10321 (add_lwp): Likewise.
10322 (enqueue_one_deferred_signal): Likewise.
10323 (enqueue_pending_signal): Likewise.
10324 (linux_resume_one_lwp_throw): Likewise.
10325 (linux_resume_one_thread): Likewise.
10326 (linux_read_memory): Likewise.
10327 (linux_write_memory): Likewise.
10328 * linux-mips-low.c (mips_linux_new_process): Likewise.
10329 (mips_linux_new_thread): Likewise.
10330 (mips_add_watchpoint): Likewise.
10331 * linux-x86-low.c (initialize_low_arch): Likewise.
10332 * lynx-low.c (lynx_add_process): Likewise.
10333 * mem-break.c (set_raw_breakpoint_at): Likewise.
10334 (set_breakpoint): Likewise.
10335 (add_condition_to_breakpoint): Likewise.
10336 (add_commands_to_breakpoint): Likewise.
10337 (clone_agent_expr): Likewise.
10338 (clone_one_breakpoint): Likewise.
10339 * regcache.c (new_register_cache): Likewise.
10340 * remote-utils.c (look_up_one_symbol): Likewise.
10341 * server.c (queue_stop_reply): Likewise.
10342 (start_inferior): Likewise.
10343 (queue_stop_reply_callback): Likewise.
10344 (handle_target_event): Likewise.
10345 * spu-low.c (fetch_ppc_memory): Likewise.
10346 (store_ppc_memory): Likewise.
10347 * target.c (set_target_ops): Likewise.
10348 * thread-db.c (thread_db_load_search): Likewise.
10349 (try_thread_db_load_1): Likewise.
10350 * tracepoint.c (add_tracepoint): Likewise.
10351 (add_tracepoint_action): Likewise.
10352 (create_trace_state_variable): Likewise.
10353 (cmd_qtdpsrc): Likewise.
10354 (cmd_qtro): Likewise.
10355 (add_while_stepping_state): Likewise.
10356 * win32-low.c (child_add_thread): Likewise.
10357 (get_image_name): Likewise.
10359 2015-08-25 Yao Qi <yao.qi@linaro.org>
10361 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10363 2015-08-25 Yao Qi <yao.qi@linaro.org>
10365 * Makefile.in (aarch64-linux.o): New rule.
10366 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10368 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10369 (aarch64_init_debug_reg_state): Make it extern.
10370 (aarch64_linux_prepare_to_resume): Remove.
10372 2015-08-25 Yao Qi <yao.qi@linaro.org>
10374 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10375 lwp_arch_private_info and ptid_of_lwp.
10377 2015-08-25 Yao Qi <yao.qi@linaro.org>
10379 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10380 Find proc_info by find_process_pid. All callers updated.
10382 2015-08-25 Yao Qi <yao.qi@linaro.org>
10384 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10386 (debug_reg_change_callback): Remove.
10387 (aarch64_notify_debug_reg_change): Remove.
10389 2015-08-25 Yao Qi <yao.qi@linaro.org>
10391 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10392 Call current_lwp_ptid.
10394 2015-08-25 Yao Qi <yao.qi@linaro.org>
10396 * linux-aarch64-low.c (debug_reg_change_callback): Use
10399 2015-08-25 Yao Qi <yao.qi@linaro.org>
10401 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10403 2015-08-25 Yao Qi <yao.qi@linaro.org>
10405 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10407 2015-08-25 Yao Qi <yao.qi@linaro.org>
10409 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10412 2015-08-25 Yao Qi <yao.qi@linaro.org>
10414 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10416 (debug_reg_change_callback): Remove argument entry and add argument
10417 lwp. Remove local variable thread. Don't print thread id in the
10418 debugging output. Don't check whether pid of thread equals to pid.
10419 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10420 iterate_over_lwps instead find_inferior.
10422 2015-08-24 Pedro Alves <palves@redhat.com>
10424 * inferiors.c (get_first_process): New function.
10425 * inferiors.h (get_first_process): New declaration.
10426 * remote-utils.c (read_ptid): Default to the first process in the
10427 list, instead of to the current thread's process.
10429 2015-08-24 Pedro Alves <palves@redhat.com>
10431 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10432 * event-loop.c: Likewise.
10433 * remote-utils.c: Likewise.
10434 * tracepoint.c: Likewise.
10436 2015-08-24 Pedro Alves <palves@redhat.com>
10438 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10441 2015-08-21 Pedro Alves <palves@redhat.com>
10443 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10444 instead of literal 1.
10446 2015-08-21 Pedro Alves <palves@redhat.com>
10448 * tdesc.c (default_description): Explicitly zero-initialize.
10450 2015-08-21 Pedro Alves <palves@redhat.com>
10453 * inferiors.c (remove_thread): Discard any pending stop reply for
10455 * server.c (remove_all_on_match_pid): Rename to ...
10456 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10458 (discard_queued_stop_replies): Change parameter to a ptid. Now
10460 (handle_v_kill, kill_inferior_callback, captured_main)
10461 (process_serial_event): Adjust.
10462 * server.h (discard_queued_stop_replies): Declare.
10464 2015-08-21 Pedro Alves <palves@redhat.com>
10466 * linux-low.c (wait_for_sigstop): Always switch to no thread
10467 selected if the previously current thread dies.
10468 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10469 process instead of the current thread's.
10470 * remote-utils.c (input_interrupt): Don't check if there's no
10472 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10473 current thread to the general thread fails, error out.
10474 (handle_qxfer_auxv, handle_qxfer_libraries)
10475 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10476 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10477 (handle_query): Check if there's a thread selected instead of
10478 checking whether there's any thread in the thread list.
10479 (handle_qxfer_threads, handle_qxfer_btrace)
10480 (handle_qxfer_btrace_conf): Don't error out early if there's no
10481 thread in the thread list.
10482 (handle_v_cont, myresume): Don't set the current thread to the
10484 (process_serial_event) <Hg handling>: Also set thread_id if the
10485 previous general thread is still alive.
10486 (process_serial_event) <g/G handling>: If setting the current
10487 thread to the general thread fails, error out.
10488 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10489 thread's lwp instead of the current thread's.
10490 * target.c (set_desired_thread): If the desired thread was not
10491 found, leave the current thread pointing to NULL. Return an int
10492 (boolean) indicating success.
10493 * target.h (set_desired_thread): Change return type to int.
10495 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10497 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10498 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10500 (ps_get_thread_area): New function.
10502 2015-08-19 Gary Benson <gbenson@redhat.com>
10504 * hostio.c (handle_pread): Do not attempt to read more data
10505 than hostio_reply_with_data can fit in a packet.
10507 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10509 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10511 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10513 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10515 2015-08-06 Pedro Alves <palves@redhat.com>
10517 * tracepoint.c (expr_eval_result): Now an int.
10519 2015-08-06 Pedro Alves <palves@redhat.com>
10521 * gdbthread.h (struct regcache): Forward declare.
10522 (struct thread_info) <regcache_data>: Now a struct regcache
10524 * inferiors.c (inferior_regcache_data)
10525 (set_inferior_regcache_data): Now work with struct regcache
10527 * inferiors.h (struct regcache): Forward declare.
10528 (inferior_regcache_data, set_inferior_regcache_data): Now work
10529 with struct regcache pointers.
10530 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10531 (free_register_cache_thread): Remove struct regcache pointer
10534 2015-08-06 Pedro Alves <palves@redhat.com>
10536 * server.c (captured_main): On error, print the exception message
10537 to stderr, and if run_once is set, throw a quit.
10539 2015-08-06 Pedro Alves <palves@redhat.com>
10541 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10542 the current thread.
10544 2015-08-06 Pedro Alves <palves@redhat.com>
10546 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10547 reading beyond the passed in buffer length.
10549 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10551 * tracepoint.c (symbol_list) <required>: Remove.
10553 2015-08-06 Pedro Alves <palves@redhat.com>
10555 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10556 count if stopping and suspending threads.
10557 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10558 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10559 (linux_detach): Complete an ongoing step-over.
10560 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10562 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10563 (linux_wait_1): If passing a signal to the inferior after
10564 finishing a step-over, unsuspend and re-resume all lwps. If we
10565 see a single-step event but the thread should be continuing, don't
10566 pass the trap to gdb.
10567 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10568 internal_error instead of gdb_assert.
10569 (enqueue_pending_signal): New function.
10570 (check_ptrace_stopped_lwp_gone): Add debug output.
10571 (start_step_over): Use internal_error instead of gdb_assert.
10572 (complete_ongoing_step_over): New function.
10573 (linux_resume_one_thread): Don't resume a suspended thread.
10574 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10577 2015-08-06 Pedro Alves <palves@redhat.com>
10579 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10580 (linux_thread_alive): Use lwp_is_marked_dead.
10581 (extended_event_reported): Delete.
10582 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10583 instead of extended_event_reported.
10584 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10586 (lwp_is_marked_dead): New function.
10587 (lwp_running): Use lwp_is_marked_dead.
10588 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10591 2015-08-06 Pedro Alves <palves@redhat.com>
10593 * linux-low.c (linux_wait_1): Move fork event output out of the
10594 !report_to_gdb check. Pass event_child->waitstatus to
10595 target_waitstatus_to_string instead of ourstatus.
10597 2015-08-04 Yao Qi <yao.qi@linaro.org>
10599 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10600 if current_thread is 32 bit.
10602 2015-08-04 Yao Qi <yao.qi@linaro.org>
10604 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10605 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10606 * server.c (extended_protocol): Remove "static".
10607 * server.h (extended_protocol): Declare it.
10609 2015-08-04 Yao Qi <yao.qi@linaro.org>
10611 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10612 both aarch64 and aarch32.
10613 (aarch64_set_pc): Likewise.
10615 2015-08-04 Yao Qi <yao.qi@linaro.org>
10617 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10618 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10619 arm-with-neon.xml to srv_xmlfiles.
10620 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10621 (is_64bit_tdesc): New function.
10622 (aarch64_linux_read_description): New function.
10623 (aarch64_arch_setup): Call aarch64_linux_read_description.
10624 (regs_info): Rename to regs_info_aarch64.
10625 (aarch64_regs_info): Return right regs_info.
10626 (initialize_low_arch): Call initialize_low_arch_aarch32.
10628 2015-08-04 Yao Qi <yao.qi@linaro.org>
10630 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10631 * linux-aarch32-low.c: New file.
10632 * linux-aarch32-low.h: New file.
10633 * linux-arm-low.c (arm_fill_gregset): Move it to
10634 linux-aarch32-low.c.
10635 (arm_store_gregset): Likewise.
10636 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10637 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10638 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10639 (regs_info): Rename to regs_info_arm.
10640 (arm_regs_info): Return regs_info_aarch32 if
10641 have_ptrace_getregset is 1 and target description is
10642 arm_with_neon or arm_with_vfpv3.
10643 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10644 Call initialize_low_arch_aarch32 instead.
10646 2015-08-04 Yao Qi <yao.qi@linaro.org>
10648 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10649 * linux-low.c: ... here.
10650 * linux-low.h (have_ptrace_getregset): Declare it.
10652 2015-08-04 Pedro Alves <palves@redhat.com>
10654 * thread-db.c (struct thread_db): Use new typedefs.
10655 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10657 (disable_thread_event_reporting): Cast result of dlsym to
10658 destination function pointer type.
10659 (thread_db_mourn): Use td_ta_delete_ftype.
10661 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10663 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10665 (CDX_BREAKPOINT): Define for R2.
10666 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10667 (the_low_target): Add comments.
10669 2015-07-30 Yao Qi <yao.qi@linaro.org>
10671 * linux-arm-low.c (arm_hwcap): Remove it.
10672 (arm_read_description): New local variable arm_hwcap. Don't
10673 set arm_hwcap to zero.
10675 2015-07-30 Yao Qi <yao.qi@linaro.org>
10677 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10678 Use regcache->tdesc instead.
10679 (arm_store_wmmxregset): Likewise.
10680 (arm_fill_vfpregset): Likewise.
10681 (arm_store_vfpregset): Likewise.
10683 2015-07-30 Yao Qi <yao.qi@linaro.org>
10685 * linux-arm-low.c: Include arch/arm.h.
10686 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10687 (arm_store_gregset): Likewise.
10689 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10691 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10692 ptrace's 4th parameter.
10694 2015-07-27 Yao Qi <yao.qi@linaro.org>
10696 * configure.srv (case aarch64*-*-linux*): Don't set
10699 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10701 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10703 * linux-arm-low.c: Likewise.
10704 * linux-cris-low.c: Likewise.
10705 * linux-crisv32-low.c: Likewise.
10706 * linux-low.c: Likewise.
10707 * linux-m68k-low.c: Likewise.
10708 * linux-mips-low.c: Likewise.
10709 * linux-nios2-low.c: Likewise.
10710 * linux-s390-low.c: Likewise.
10711 * linux-sparc-low.c: Likewise.
10712 * linux-tic6x-low.c: Likewise.
10713 * linux-tile-low.c: Likewise.
10714 * linux-x86-low.c: Likewise.
10716 2015-07-24 Pedro Alves <palves@redhat.com>
10718 * config.in: Regenerate.
10719 * configure: Regenerate.
10721 2015-07-24 Pedro Alves <palves@redhat.com>
10723 * acinclude.m4: Include ../ptrace.m4.
10724 * configure.ac: Call GDB_AC_PTRACE.
10725 * config.in, configure: Regenerate.
10727 2015-07-24 Yao Qi <yao.qi@linaro.org>
10729 * linux-low.c (linux_create_inferior): Remove setting to
10730 proc->priv->new_inferior.
10731 (linux_attach): Likewise.
10732 (linux_low_filter_event): Likewise.
10733 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10735 2015-07-24 Yao Qi <yao.qi@linaro.org>
10737 * linux-low.c (linux_arch_setup): New function.
10738 (linux_low_filter_event): If proc->tdesc is NULL and
10739 proc->attached is true, call the_low_target.arch_setup.
10740 Otherwise, keep status pending, and return.
10741 (linux_resume_one_lwp_throw): Don't call get_pc if
10742 thread->while_stepping isn't NULL. Don't call
10743 get_thread_regcache if proc->tdesc is NULL.
10744 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10745 (linux_target_ops): Install arch_setup.
10746 * server.c (start_inferior): Call the_target->arch_setup.
10747 * target.h (struct target_ops) <arch_setup>: New field.
10748 (target_arch_setup): New marco.
10749 * lynx-low.c (lynx_target_ops): Update.
10750 * nto-low.c (nto_target_ops): Update.
10751 * spu-low.c (spu_target_ops): Update.
10752 * win32-low.c (win32_target_ops): Update.
10754 2015-07-24 Yao Qi <yao.qi@linaro.org>
10756 * linux-low.c (linux_add_process): Don't set
10757 proc->priv->new_inferior.
10758 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10759 (linux_attach): Likewise.
10761 2015-07-24 Yao Qi <yao.qi@linaro.org>
10763 * server.c (start_inferior): Code refactor.
10765 2015-07-24 Yao Qi <yao.qi@linaro.org>
10767 * server.c (process_serial_event): Set general_thread.
10769 2015-07-21 Yao Qi <yao.qi@linaro.org>
10771 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10772 aarch64_linux_get_debug_reg_capacity.
10774 2015-07-17 Yao Qi <yao.qi@linaro.org>
10776 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10777 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10778 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10779 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10780 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10781 (AARCH64_HWP_ALIGNMENT): Likewise.
10782 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10783 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10784 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10785 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10786 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10787 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10788 (struct aarch64_debug_reg_state): Likewise.
10789 (struct arch_lwp_info): Likewise.
10790 (aarch64_align_watchpoint): Likewise.
10791 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10792 (aarch64_watchpoint_length): Likewise.
10793 (aarch64_point_encode_ctrl_reg): Likewise
10794 (aarch64_point_is_aligned): Likewise.
10795 (aarch64_align_watchpoint): Likewise.
10796 (aarch64_linux_set_debug_regs):
10797 (aarch64_dr_state_insert_one_point): Likewise.
10798 (aarch64_dr_state_remove_one_point): Likewise.
10799 (aarch64_handle_breakpoint): Likewise.
10800 (aarch64_handle_aligned_watchpoint): Likewise.
10801 (aarch64_handle_unaligned_watchpoint): Likewise.
10802 (aarch64_handle_watchpoint): Likewise.
10804 2015-07-17 Yao Qi <yao.qi@linaro.org>
10806 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10807 and don't aarch64_get_debug_reg_state. All callers update.
10808 (aarch64_handle_aligned_watchpoint): Likewise.
10809 (aarch64_handle_unaligned_watchpoint): Likewise.
10810 (aarch64_handle_watchpoint): Likewise.
10811 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10812 (aarch64_remove_point): Likewise.
10814 2015-07-17 Yao Qi <yao.qi@linaro.org>
10816 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10818 (aarch64_handle_unaligned_watchpoint): Likewise.
10820 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10822 Revert the previous 3 commits:
10823 Move gdb_regex* to common/
10824 Move linux_find_memory_regions_full & co.
10825 gdbserver build-id attribute generator
10827 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10828 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 gdbserver build-id attribute generator.
10831 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10832 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10833 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10835 (get_dynamic): Use find_pdhr to traverse program headers.
10836 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10837 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10838 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10839 (get_hex_build_id): New.
10840 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10841 to reply XML document.
10843 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10844 Jan Kratochvil <jan.kratochvil@redhat.com>
10846 * target.c: Include target/target-utils.h and fcntl.h.
10847 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10848 (target_fileio_read_stralloc): New functions.
10850 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10852 * Makefile.in (OBS): Add gdb_regex.o.
10853 (gdb_regex.o): New.
10854 * config.in: Rebuilt.
10855 * configure: Rebuilt.
10857 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10858 Jan Kratochvil <jan.kratochvil@redhat.com>
10860 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10861 * Makefile.in (OBS): Add target-utils.o.
10862 (linux-maps.o, target-utils.o): New.
10863 * configure.srv (srv_linux_obj): Add linux-maps.o.
10865 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10867 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10868 function, return 1.
10869 (the_low_target): Install it.
10871 2015-07-14 Pedro Alves <palves@redhat.com>
10873 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10874 Instead, ignore ECHILD, and throw an error for other errnos.
10876 2015-07-10 Pedro Alves <palves@redhat.com>
10878 * event-loop.c (struct callback_event) <data>: Change type to
10879 gdb_client_data instance instead of gdb_client_data pointer.
10880 (append_callback_event): Adjust.
10882 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10884 * linux-aarch64-low.c: Add comments for each linux_target_ops
10885 method. Remove comments already covered in target_ops and
10886 linux_target_ops definitions.
10887 (the_low_target): Add comments for each unimplemented method.
10889 2015-07-09 Yao Qi <yao.qi@linaro.org>
10891 * linux-aarch64-low.c (aarch64_regmap): Remove.
10892 (aarch64_usrregs_info): Remove.
10893 (regs_info): Set field usrregs to NULL.
10895 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10897 * linux-low.c: Include "rsp-low.h"
10898 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10899 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10900 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10901 (handle_btrace_enable_pt): New.
10902 (handle_btrace_general_set): Support "pt".
10903 (handle_btrace_conf_general_set): Support "pt:size".
10905 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10907 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10910 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10912 * linux-aarch64-low.c: Remove comment about endianness.
10913 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10914 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10917 2015-06-24 Gary Benson <gbenson@redhat.com>
10919 * linux-i386-ipa.c (stdint.h): Do not include.
10920 * lynx-i386-low.c (stdint.h): Likewise.
10921 * lynx-ppc-low.c (stdint.h): Likewise.
10922 * mem-break.c (stdint.h): Likewise.
10923 * thread-db.c (stdint.h): Likewise.
10924 * tracepoint.c (stdint.h): Likewise.
10925 * win32-low.c (stdint.h): Likewise.
10927 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10929 * server.c (write_qxfer_response): Update call to
10930 remote_escape_output.
10932 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10933 Jan Kratochvil <jan.kratochvil@redhat.com>
10935 Merge multiple hex conversions.
10936 * gdbreplay.c (tohex): Rename to 'fromhex'.
10937 (logchar): Use fromhex.
10939 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10941 * server.c (handle_qxfer_libraries): Set `version' attribute for
10944 2015-06-10 Gary Benson <gbenson@redhat.com>
10946 * target.h (struct target_ops) <multifs_open>: New field.
10947 <multifs_unlink>: Likewise.
10948 <multifs_readlink>: Likewise.
10949 * linux-low.c (nat/linux-namespaces.h): New include.
10950 (linux_target_ops): Initialize the_target->multifs_open,
10951 the_target->multifs_unlink and the_target->multifs_readlink.
10952 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10953 * hostio.c (hostio_fs_pid): New static variable.
10954 (hostio_handle_new_gdb_connection): New function.
10955 (handle_setfs): Likewise.
10956 (handle_open): Use the_target->multifs_open as appropriate.
10957 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10958 (handle_readlink): Use the_target->multifs_readlink as
10960 (handle_vFile): Handle vFile:setfs packets.
10961 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10962 after target_handle_new_gdb_connection.
10964 2015-06-10 Gary Benson <gbenson@redhat.com>
10966 * configure.ac (AC_CHECK_FUNCS): Add setns.
10967 * config.in: Regenerate.
10968 * configure: Likewise.
10969 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10970 (linux-namespaces.o): New rule.
10971 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10973 2015-06-09 Gary Benson <gbenson@redhat.com>
10975 * hostio.c (handle_open): Process mode argument with
10976 fileio_to_host_mode.
10978 2015-06-01 Yao Qi <yao.qi@linaro.org>
10980 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10981 * linux-x86-low.c: Likewise.
10983 2015-05-28 Don Breazeal <donb@codesourcery.com>
10985 * linux-low.c (handle_extended_wait): Initialize
10986 thread_info.last_resume_kind for new fork children.
10988 2015-05-15 Pedro Alves <palves@redhat.com>
10990 * target.h (target_handle_new_gdb_connection): Rewrite using if
10991 wrapped in do/while.
10993 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10995 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10996 * configure, config.in: Regenerate.
10997 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11000 2015-05-12 Don Breazeal <donb@codesourcery.com>
11002 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11003 PTRACE_EVENT_VFORK_DONE.
11004 (linux_low_ptrace_options, extended_event_reported): Add vfork
11006 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11007 and "vforkdone" for RSP 'T' Stop Reply Packet.
11008 * server.h (report_vfork_events): Declare
11011 2015-05-12 Don Breazeal <donb@codesourcery.com>
11013 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11014 (the_low_target) <new_fork>: Initialize new member.
11015 * linux-arm-low.c (arm_new_fork): New function.
11016 (the_low_target) <new_fork>: Initialize new member.
11017 * linux-low.c (handle_extended_wait): Call new target function
11019 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11020 * linux-mips-low.c (mips_add_watchpoint): New function
11021 extracted from mips_insert_point.
11022 (the_low_target) <new_fork>: Initialize new member.
11023 (mips_linux_new_fork): New function.
11024 (mips_insert_point): Call mips_add_watchpoint.
11025 * linux-x86-low.c (x86_linux_new_fork): New function.
11026 (the_low_target) <new_fork>: Initialize new member.
11028 2015-05-12 Don Breazeal <donb@codesourcery.com>
11030 * linux-low.c (handle_extended_wait): Implement return value,
11031 rename argument 'event_child' to 'event_lwp', handle
11032 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11033 (linux_low_ptrace_options): New function.
11034 (linux_low_filter_event): Call linux_low_ptrace_options,
11035 use different argument fo linux_enable_event_reporting,
11036 use return value from handle_extended_wait.
11037 (extended_event_reported): New function.
11038 (linux_wait_1): Call extended_event_reported and set
11039 status to report fork events.
11040 (linux_write_memory): Add pid to debug message.
11041 (reset_lwp_ptrace_options_callback): New function.
11042 (linux_handle_new_gdb_connection): New function.
11043 (linux_target_ops): Initialize new structure member.
11044 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11045 * lynx-low.c: Initialize new structure member.
11046 * remote-utils.c (prepare_resume_reply): Implement stop reason
11047 "fork" for "T" stop message.
11048 * server.c (handle_query): Call handle_new_gdb_connection.
11049 * server.h (report_fork_events): Declare global flag.
11050 * target.h (struct target_ops) <handle_new_gdb_connection>:
11052 (target_handle_new_gdb_connection): New macro.
11053 * win32-low.c: Initialize new structure member.
11055 2015-05-12 Don Breazeal <donb@codesourcery.com>
11057 * mem-break.c (APPEND_TO_LIST): Define macro.
11058 (clone_agent_expr): New function.
11059 (clone_one_breakpoint): New function.
11060 (clone_all_breakpoints): New function.
11061 * mem-break.h: Declare new functions.
11063 2015-05-12 Don Breazeal <donb@codesourcery.com>
11065 * linux-low.c (linux_supports_fork_events): New function.
11066 (linux_supports_vfork_events): New function.
11067 (linux_target_ops): Initialize new structure members.
11068 (initialize_low): Call linux_check_ptrace_features.
11069 * lynx-low.c (lynx_target_ops): Initialize new structure
11071 * server.c (report_fork_events, report_vfork_events):
11073 (handle_query): Add new features to qSupported packet and
11075 (captured_main): Initialize new global variables.
11076 * target.h (struct target_ops) <supports_fork_events>:
11078 <supports_vfork_events>: New member.
11079 (target_supports_fork_events): New macro.
11080 (target_supports_vfork_events): New macro.
11081 * win32-low.c (win32_target_ops): Initialize new structure
11084 2015-05-12 Gary Benson <gbenson@redhat.com>
11086 * server.c (handle_qxfer_exec_file): Use current process
11089 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11091 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11092 Remove HAVE_PTRACE_GETREGS conditionals.
11093 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11094 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11096 2015-05-08 Yao Qi <yao.qi@linaro.org>
11098 * linux-low.c (linux_supports_conditional_breakpoints): New
11100 (linux_target_ops): Install new target method.
11101 * lynx-low.c (lynx_target_ops): Install NULL hook for
11102 supports_conditional_breakpoints.
11103 * nto-low.c (nto_target_ops): Likewise.
11104 * spu-low.c (spu_target_ops): Likewise.
11105 * win32-low.c (win32_target_ops): Likewise.
11106 * server.c (handle_query): Check
11107 target_supports_conditional_breakpoints.
11108 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11110 (target_supports_conditional_breakpoints): New macro.
11112 2015-05-06 Pedro Alves <palves@redhat.com>
11115 * server.c (start_inferior): If the process exits, mourn it.
11117 2015-04-21 Gary Benson <gbenson@redhat.com>
11119 * hostio.c (fileio_open_flags_to_host): Factored out to
11120 fileio_to_host_openflags in common/fileio.c. Single use
11123 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11125 * linux-xtensa-low.c (xtensa_fill_gregset)
11126 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11129 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11131 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11132 (regs_info): Replace usrregs pointer with NULL.
11134 2015-04-17 Gary Benson <gbenson@redhat.com>
11136 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11137 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11138 * server.c (handle_qxfer_exec_file): New function.
11139 (qxfer_packets): Add exec-file entry.
11140 (handle_query): Report qXfer:exec-file:read as supported packet.
11142 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11144 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11146 2015-04-09 Gary Benson <gbenson@redhat.com>
11148 * hostio-errno.c (errno_to_fileio_error): Remove function.
11149 Update caller to use remote_fileio_to_fio_error.
11151 2015-04-09 Yao Qi <yao.qi@linaro.org>
11153 * linux-low.c (linux_insert_point): Call
11154 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11155 (linux_remove_point): Call remove_memory_breakpoint if type is
11157 * linux-x86-low.c (x86_insert_point): Don't call
11158 insert_memory_breakpoint.
11159 (x86_remove_point): Don't call remove_memory_breakpoint.
11161 2015-04-01 Pedro Alves <palves@redhat.com>
11162 Cleber Rosa <crosa@redhat.com>
11164 * server.c (gdbserver_usage): Reorganize and extend the usage
11167 2015-03-24 Pedro Alves <palves@redhat.com>
11169 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11170 output. Also dump TRAP_TRACE.
11171 (linux_low_filter_event): In debug output, distinguish a
11172 resume_stop SIGSTOP from a delayed SIGSTOP.
11174 2015-03-24 Gary Benson <gbenson@redhat.com>
11176 * linux-x86-low.c (x86_linux_new_thread): Moved to
11178 (x86_linux_prepare_to_resume): Likewise.
11180 2015-03-24 Gary Benson <gbenson@redhat.com>
11182 * Makefile.in (x86-linux-dregs.o): New rule.
11183 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11184 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11185 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11186 (x86_linux_dr_get): Likewise.
11187 (x86_linux_dr_set): Likewise.
11188 (update_debug_registers_callback): Likewise.
11189 (x86_linux_dr_set_addr): Likewise.
11190 (x86_linux_dr_get_addr): Likewise.
11191 (x86_linux_dr_set_control): Likewise.
11192 (x86_linux_dr_get_control): Likewise.
11193 (x86_linux_dr_get_status): Likewise.
11194 (x86_linux_update_debug_registers): Likewise.
11196 2015-03-24 Gary Benson <gbenson@redhat.com>
11198 * linux-x86-low.c (x86_linux_update_debug_registers):
11199 New function, factored out from...
11200 (x86_linux_prepare_to_resume): ...this.
11202 2015-03-24 Gary Benson <gbenson@redhat.com>
11204 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11205 (x86_linux_dr_set): Likewise.
11206 (update_debug_registers_callback): Likewise.
11207 (x86_linux_dr_set_addr): Likewise.
11208 (x86_linux_dr_get_addr): Likewise.
11209 (x86_linux_dr_set_control): Likewise.
11210 (x86_linux_dr_get_control): Likewise.
11211 (x86_linux_dr_get_status): Likewise.
11212 (x86_linux_prepare_to_resume): Likewise.
11214 2015-03-24 Gary Benson <gbenson@redhat.com>
11216 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11217 Use perror_with_name. Pass string through gettext.
11218 (x86_linux_dr_set): Likewise.
11220 2015-03-24 Gary Benson <gbenson@redhat.com>
11222 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11223 (x86_linux_dr_set_addr): ...this.
11224 (x86_dr_low_get_addr): Rename to...
11225 (x86_linux_dr_get_addr): ...this.
11226 (x86_dr_low_set_control): Rename to...
11227 (x86_linux_dr_set_control): ...this.
11228 (x86_dr_low_get_control): Rename to...
11229 (x86_linux_dr_get_control): ...this.
11230 (x86_dr_low_get_status): Rename to...
11231 (x86_linux_dr_get_status): ...this.
11232 (x86_dr_low): Update with new function names.
11234 2015-03-24 Gary Benson <gbenson@redhat.com>
11236 * Makefile.in (x86-linux.o): New rule.
11237 * configure.srv: Add x86-linux.o to relevant targets.
11238 * linux-low.c (lwp_set_arch_private_info): New function.
11239 (lwp_arch_private_info): Likewise.
11240 * linux-x86-low.c: Include nat/x86-linux.h.
11241 (arch_lwp_info): Removed structure.
11242 (update_debug_registers_callback):
11243 Use lwp_set_debug_registers_changed.
11244 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11245 and lwp_set_debug_registers_changed.
11246 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11248 2015-03-24 Gary Benson <gbenson@redhat.com>
11250 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11251 * linux-arm-low.c (arm_new_thread): Likewise.
11252 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11253 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11254 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11255 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11257 2015-03-24 Gary Benson <gbenson@redhat.com>
11259 * linux-low.c (ptid_of_lwp): New function.
11260 (lwp_is_stopped): Likewise.
11261 (lwp_stop_reason): Likewise.
11262 * linux-x86-low.c (update_debug_registers_callback):
11263 Use lwp_is_stopped.
11264 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11267 2015-03-24 Gary Benson <gbenson@redhat.com>
11269 * linux-low.h (linux_stop_lwp): Remove declaration.
11271 2015-03-24 Gary Benson <gbenson@redhat.com>
11273 * linux-low.h: Include nat/linux-nat.h.
11274 * linux-low.c (iterate_over_lwps_args): New structure.
11275 (iterate_over_lwps_filter): New function.
11276 (iterate_over_lwps): Likewise.
11277 * linux-x86-low.c (update_debug_registers_callback):
11278 Update signature to what iterate_over_lwps expects.
11279 Remove PID check that iterate_over_lwps now performs.
11280 (x86_dr_low_set_addr): Use iterate_over_lwps.
11281 (x86_dr_low_set_control): Likewise.
11283 2015-03-24 Gary Benson <gbenson@redhat.com>
11285 * linux-x86-low.c (x86_debug_reg_state): New function.
11286 (x86_linux_prepare_to_resume): Use the above.
11288 2015-03-24 Gary Benson <gbenson@redhat.com>
11290 * linux-low.c (current_lwp_ptid): New function.
11291 * linux-x86-low.c: Include nat/linux-nat.h.
11292 (x86_dr_low_get_addr): Use current_lwp_ptid.
11293 (x86_dr_low_get_control): Likewise.
11294 (x86_dr_low_get_status): Likewise.
11296 2015-03-20 Pedro Alves <palves@redhat.com>
11298 * tracepoint.c (cmd_qtstatus): Make "str" const.
11300 2015-03-20 Pedro Alves <palves@redhat.com>
11302 * server.c (handle_general_set): Make "req_str" const.
11304 2015-03-19 Pedro Alves <palves@redhat.com>
11306 * linux-low.c (linux_resume_one_lwp): Rename to ...
11307 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11308 instead call perror_with_name.
11309 (check_ptrace_stopped_lwp_gone): New function.
11310 (linux_resume_one_lwp): Reimplement as wrapper around
11311 linux_resume_one_lwp_throw that swallows errors if the LWP is
11314 2015-03-19 Pedro Alves <palves@redhat.com>
11316 * linux-low.c (count_events_callback, select_event_lwp_callback):
11317 No longer check whether the thread has resume_stop as last resume
11320 2015-03-19 Pedro Alves <palves@redhat.com>
11322 * linux-low.c (count_events_callback, select_event_lwp_callback):
11323 Use the lwp's status_pending_p field, not the thread's.
11325 2015-03-19 Pedro Alves <palves@redhat.com>
11327 * linux-low.c (select_event_lwp_callback): Update comments to
11328 no longer mention SIGTRAP.
11330 2015-03-18 Gary Benson <gbenson@redhat.com>
11332 * server.c (handle_query): Do not report vFile:fstat as supported.
11334 2015-03-11 Gary Benson <gbenson@redhat.com>
11336 * hostio.c (sys/types.h): New include.
11337 (sys/stat.h): Likewise.
11338 (common-remote-fileio.h): Likewise.
11339 (handle_fstat): New function.
11340 (handle_vFile): Handle vFile:fstat packets.
11342 2015-03-11 Gary Benson <gbenson@redhat.com>
11344 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11345 struct stat.st_blocks and struct stat.st_blksize.
11346 * configure: Regenerate.
11347 * config.in: Likewise.
11348 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11349 (OBS): Add common-remote-fileio.o.
11350 (common-remote-fileio.o): New rule.
11352 2015-03-09 Pedro Alves <palves@redhat.com>
11354 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11355 'struct sockaddr' pointer in 'accept' call.
11357 2015-03-09 Pedro Alves <palves@redhat.com>
11360 2015-03-07 Pedro Alves <palves@redhat.com>
11361 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11362 or <winsock2.h> here. Instead include "gdb_socket.h".
11363 (remote_open): Use union gdb_sockaddr_u.
11364 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11365 or <winsock2.h> here. Instead include "gdb_socket.h".
11366 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11367 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11369 (init_named_socket, gdb_agent_helper_thread): Use union
11372 2015-03-07 Pedro Alves <palves@redhat.com>
11374 * configure.ac (build_warnings): Move
11375 -Wdeclaration-after-statement to the C-specific set.
11376 * configure: Regenerate.
11378 2015-03-07 Pedro Alves <palves@redhat.com>
11380 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11381 or <winsock2.h> here. Instead include "gdb_socket.h".
11382 (remote_open): Use union gdb_sockaddr_u.
11383 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11384 or <winsock2.h> here. Instead include "gdb_socket.h".
11385 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11386 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11388 (init_named_socket, gdb_agent_helper_thread): Use union
11391 2015-03-07 Pedro Alves <palves@redhat.com>
11393 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11396 2015-03-06 Yao Qi <yao.qi@linaro.org>
11398 * linux-aarch64-low.c (aarch64_insert_point): Use
11399 show_debug_regs as a boolean.
11400 (aarch64_remove_point): Likewise.
11402 2015-03-05 Pedro Alves <palves@redhat.com>
11404 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11405 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11406 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11407 * nto-low.c (nto_target_ops): Likewise.
11408 * spu-low.c (spu_target_ops): Likewise.
11409 * win32-low.c (win32_target_ops): Likewise.
11411 2015-03-04 Pedro Alves <palves@redhat.com>
11413 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11414 Decide whether a breakpoint triggered based on the SIGTRAP's
11416 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11417 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11418 (linux_low_filter_event): Check for breakpoints before checking
11420 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11422 (linux_stopped_by_sw_breakpoint)
11423 (linux_supports_stopped_by_sw_breakpoint)
11424 (linux_stopped_by_hw_breakpoint)
11425 (linux_supports_stopped_by_hw_breakpoint): New functions.
11426 (linux_target_ops): Install new target methods.
11428 2015-03-04 Pedro Alves <palves@redhat.com>
11430 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11431 * server.c (swbreak_feature, hwbreak_feature): New globals.
11432 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11433 (captured_main): Clear swbreak_feature and hwbreak_feature.
11434 * server.h (swbreak_feature, hwbreak_feature): Declare.
11435 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11436 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11437 supports_stopped_by_hw_breakpoint>: New fields.
11438 (target_supports_stopped_by_sw_breakpoint)
11439 (target_stopped_by_sw_breakpoint)
11440 (target_supports_stopped_by_hw_breakpoint)
11441 (target_stopped_by_hw_breakpoint): Declare.
11443 2015-03-04 Pedro Alves <palves@redhat.com>
11445 enum lwp_stop_reason -> enum target_stop_reason
11446 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11447 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11448 (linux_wait_1, stuck_in_jump_pad_callback)
11449 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11450 (linux_stopped_by_watchpoint):
11451 * linux-low.h (enum lwp_stop_reason): Delete.
11452 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11453 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11455 2015-03-04 Yao Qi <yao.qi@linaro.org>
11457 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11459 2015-03-03 Gary Benson <gbenson@redhat.com>
11461 * hostio.c (handle_vFile): Fix prefix lengths.
11463 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11465 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11468 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11470 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11471 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11472 (clean): Add "rm -f" for above C files.
11473 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11474 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11475 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11476 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11477 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11478 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11479 (init_registers_s390x_vx_linux64)
11480 (init_registers_s390x_tevx_linux64)
11481 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11482 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11484 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11485 (s390_store_vxrs_high): New functions.
11486 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11488 (s390_arch_setup): Add logic for selecting one of the new target
11489 descriptions. Activate the new vector regsets if applicable.
11490 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11491 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11492 and init_registers_s390x_tevx_linux64.
11494 2015-03-01 Pedro Alves <palves@redhat.com>
11496 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11499 2015-02-27 Pedro Alves <palves@redhat.com>
11501 * linux-x86-low.c (u_debugreg_offset): New function.
11502 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11504 2015-02-27 Pedro Alves <palves@redhat.com>
11506 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11507 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11508 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11509 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11510 (ps_lsetfpregs, ps_getpid)
11511 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11512 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11513 (ps_lsetxregs, ps_plog): Declare.
11515 2015-02-27 Pedro Alves <palves@redhat.com>
11517 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11518 IP_AGENT_EXPORT_FUNC.
11519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11520 IP_AGENT_EXPORT_FUNC.
11521 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11522 (IP_AGENT_EXPORT): Delete.
11523 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11524 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11525 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11526 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11527 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11528 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11529 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11530 (traceframe_read_count, traceframe_write_count)
11531 (traceframes_created, trace_state_variables, get_raw_reg)
11532 (get_trace_state_variable_value, set_trace_state_variable_value)
11533 (ust_loaded, helper_thread_id, cmd_buf): Use
11534 IPA_SYM_EXPORTED_NAME.
11535 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11536 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11537 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11538 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11539 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11540 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11541 EXTERN_C_PUSH/EXTERN_C_POP.
11542 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11543 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11544 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11545 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11546 (traceframe_write_count, traceframe_read_count)
11547 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11548 (about_to_request_buffer_space, get_trace_state_variable_value)
11549 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11550 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11551 EXTERN_C_PUSH/EXTERN_C_POP.
11552 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11553 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11554 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11555 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11556 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11557 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11558 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11559 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11561 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11562 (IP_AGENT_EXPORT_VAR_DECL): Define.
11563 (tracing): Declare.
11564 (gdb_agent_get_raw_reg): Declare.
11566 2015-02-27 Tom Tromey <tromey@redhat.com>
11567 Pedro Alves <palves@redhat.com>
11569 Rename symbols whose names are reserved C++ keywords throughout.
11571 2015-02-27 Pedro Alves <palves@redhat.com>
11573 * Makefile.in (COMPILER): New, get it from autoconf.
11574 (CXX): Get from autoconf instead.
11575 (COMPILE.pre): Use COMPILER.
11576 (CC-LD): Rename to ...
11577 (CC_LD): ... this. Use COMPILER.
11578 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11579 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11580 * acinclude.m4: Include build-with-cxx.m4.
11581 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11582 Disable -Werror by default if building in C++ mode.
11583 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11584 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11585 the C++ compiler. Save/restore CXXFLAGS too.
11586 * configure: Regenerate.
11588 2015-02-27 Pedro Alves <palves@redhat.com>
11590 * acinclude.m4: Include libiberty.m4.
11591 * configure.ac: Call libiberty_INIT.
11592 * config.in, configure: Regenerate.
11594 2015-02-26 Pedro Alves <palves@redhat.com>
11596 * linux-low.c (linux_wait_1): When incrementing the PC past a
11597 program breakpoint always use the_low_target.breakpoint_len as
11598 increment, rather than the maximum between that and
11599 the_low_target.decr_pc_after_break.
11601 2015-02-23 Pedro Alves <palves@redhat.com>
11603 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11604 thread was doing a step-over; always adjust the PC if
11605 we stepped over a permanent breakpoint.
11606 (linux_wait_1): If we stepped over breakpoint that was on top of a
11607 permanent breakpoint, manually advance the PC past it.
11609 2015-02-23 Pedro Alves <palves@redhat.com>
11611 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11613 (x86_fill_gregset, x86_store_gregset): Use it when handling
11616 2015-02-20 Pedro Alves <palves@redhat.com>
11618 * thread-db.c: Include "nat/linux-procfs.h".
11619 (thread_db_init): Skip listing new threads if the kernel supports
11620 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11622 2015-02-20 Pedro Alves <palves@redhat.com>
11624 * linux-low.c (status_pending_p_callback): Use ptid_match.
11626 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11628 PR breakpoints/16812
11629 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11630 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11631 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11633 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11635 PR breakpoints/15956
11636 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11638 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11640 * linux-low.c (linux_low_btrace_conf): Print size.
11641 * server.c (handle_btrace_conf_general_set): New.
11642 (hanle_general_set): Call handle_btrace_conf_general_set.
11643 (handle_query): Report Qbtrace-conf:bts:size as supported.
11645 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11647 * linux-low.c (linux_low_enable_btrace): Update parameters.
11648 (linux_low_btrace_conf): New.
11649 (linux_target_ops)<to_btrace_conf>: Initialize.
11650 * server.c (current_btrace_conf): New.
11651 (handle_btrace_enable): Rename to ...
11652 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11653 to target_enable_btrace. Update comment. Update users.
11654 (handle_qxfer_btrace_conf): New.
11655 (qxfer_packets): Add btrace-conf entry.
11656 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11657 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11658 (target_ops)<read_btrace_conf>: New.
11659 (target_enable_btrace): Update parameters.
11660 (target_read_btrace_conf): New.
11662 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11664 * server.c (handle_btrace_general_set): Remove call to
11665 target_supports_btrace.
11666 (supported_btrace_packets): New.
11667 (handle_query): Call supported_btrace_packets.
11668 * target.h: include btrace-common.h.
11669 (btrace_target_info): Removed.
11670 (supports_btrace, target_supports_btrace): Update parameters.
11672 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11674 * Makefile.in (SFILES): Add common/btrace-common.c.
11675 (OBS): Add common/btrace-common.o.
11676 (btrace-common.o): Add build rules.
11677 * linux-low: Include btrace-common.h.
11678 (linux_low_read_btrace): Use struct btrace_data. Call
11679 btrace_data_init and btrace_data_fini.
11681 2015-02-06 Pedro Alves <palves@redhat.com>
11683 * thread-db.c (find_new_threads_callback): Add debug output.
11685 2015-02-04 Pedro Alves <palves@redhat.com>
11687 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11688 (resume_stopped_resumed_lwps): New function.
11689 (linux_wait_for_event_filtered): Use it.
11691 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11693 * Makefile.in (SFILES): Add linux-personality.c.
11694 (linux-personality.o): New rule.
11695 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11696 list of objects to be built.
11697 * linux-low.c: Include nat/linux-personality.h.
11698 (linux_create_inferior): Remove code to disable address space
11699 randomization (moved to ../nat/linux-personality.c). Create
11700 cleanup to disable address space randomization.
11702 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11704 * Makefile.in (posix-strerror.o): New rule.
11705 (mingw-strerror.o): Likewise.
11706 * configure: Regenerated.
11707 * configure.ac: Source file ../common/common.host. Initialize new
11708 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11710 2015-01-14 Yao Qi <yao@codesourcery.com>
11712 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11713 (ppc-linux.o): New rule.
11714 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11715 * configure.ac: AC_CHECK_FUNCS(getauxval).
11716 * config.in: Re-generated.
11717 * configure: Re-generated.
11718 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11719 ppc64_64bit_inferior_p
11721 2015-01-14 Yao Qi <yao@codesourcery.com>
11723 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11724 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11725 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11726 (PT_ORIG_R3, PT_TRAP): Likewise.
11727 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11728 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11729 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11731 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11733 * i387-fp.c (i387_cache_to_xsave): In look over
11734 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11735 zmmh_low_space field by use of zmmh_high_space.
11737 2015-01-09 Pedro Alves <palves@redhat.com>
11739 * linux-low.c (step_over_bkpt): Move higher up in the file.
11740 (handle_extended_wait): Don't store the stop_pc here.
11741 (get_stop_pc): Adjust comments and rename to ...
11742 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11743 stopped for a software breakpoint or hardware breakpoint.
11744 (thread_still_has_status_pending_p): New function.
11745 (status_pending_p_callback): Use
11746 thread_still_has_status_pending_p. If the event is no longer
11747 interesting, resume the LWP.
11748 (handle_tracepoints): Add assert.
11749 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11750 (wstatus_maybe_breakpoint): New function.
11751 (cancel_breakpoint): Delete function.
11752 (check_stopped_by_watchpoint): New function, factored out from
11753 linux_low_filter_event.
11754 (lp_status_maybe_breakpoint): Delete function.
11755 (linux_low_filter_event): Remove filter_ptid argument.
11756 Leave thread group exits pending here. Store the LWP's stop PC.
11757 Always leave events pending.
11758 (linux_wait_for_event_filtered): Pull all events out of the
11759 kernel, and leave them all pending.
11760 (count_events_callback, select_event_lwp_callback): Consider all
11762 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11763 (select_event_lwp): Only give preference to the stepping LWP in
11764 all-stop mode. Adjust comments.
11765 (ignore_event): New function.
11766 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11767 references to cancel_breakpoints. Adjust to renames. Also give
11768 equal priority to all LWPs that have had events in non-stop mode.
11769 If reporting a software breakpoint event, unadjust the LWP's PC.
11770 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11771 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11773 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11774 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11775 (linux_stopped_by_watchpoint): Adjust.
11776 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11777 * linux-low.h (enum lwp_stop_reason): New.
11778 (struct lwp_info) <stop_pc>: Adjust comment.
11779 <stopped_by_watchpoint>: Delete field.
11780 <stop_reason>: New field.
11781 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11782 * mem-break.c (software_breakpoint_inserted_here)
11783 (hardware_breakpoint_inserted_here): New function.
11784 * mem-break.h (software_breakpoint_inserted_here)
11785 (hardware_breakpoint_inserted_here): Declare.
11786 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11787 (cancel_breakpoints): Delete.
11788 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11789 (upload_fast_traceframes): Remove references to
11790 cancel_breakpoints.
11792 2015-01-09 Pedro Alves <palves@redhat.com>
11794 * thread-db.c (find_new_threads_callback): Ignore thread if the
11795 kernel thread ID is -1.
11797 2015-01-09 Pedro Alves <palves@redhat.com>
11799 * linux-low.c (linux_attach_fail_reason_string): Move to
11800 nat/linux-ptrace.c, and rename.
11801 (linux_attach_lwp): Update comment.
11802 (attach_proc_task_lwp_callback): New function.
11803 (linux_attach): Adjust to rename and use
11804 linux_proc_attach_tgid_threads.
11805 (linux_attach_fail_reason_string): Delete declaration.
11807 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11809 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11810 * server.c (gdbserver_version): Likewise.
11812 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11814 * remote-utils.c: Include ctype.h.
11815 (input_interrupt): Explicitly handle the case when the char
11816 received is the NUL byte. Improve the printing of non-ASCII
11819 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11821 * linux-low.c (linux_low_filter_event): Update call to
11822 linux_enable_event_reporting following the addition of
11823 a new parameter to that function.
11825 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11828 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11829 (AARCH64_FPCR_REGNO): Likewise.
11830 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11831 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11832 (aarch64_store_fpregset): Likewise.
11834 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11836 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11837 Remove FIXME comment about assumption about N.
11839 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11841 * configure.ac: If large-file support is disabled in GDBserver,
11842 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11843 * configure: Regenerate.
11845 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11847 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11848 warning upon ENODATA from ptrace.
11849 * linux-s390-low.c (s390_store_tdb): New.
11850 (s390_regsets): Add regset for NT_S390_TDB.
11852 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11854 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11855 without a fill_function.
11856 * linux-s390-low.c (s390_fill_last_break): Remove.
11857 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11858 (s390_arch_setup): Use regset's size instead of fill_function for
11859 loop end condition.
11861 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11863 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11864 the regset's store function when ptrace returned an error.
11865 * regcache.c (get_thread_regcache): Invalidate register cache
11866 before fetching inferior's registers.
11868 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11870 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11871 while-loop as for-loop.
11872 (regsets_store_inferior_registers): Likewise.
11874 2014-11-28 Yao Qi <yao@codesourcery.com>
11876 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11877 * config.in, configure: Re-generate.
11878 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11881 2014-11-21 Yao Qi <yao@codesourcery.com>
11883 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11884 (AC_CHECK_HEADERS): Remove malloc.h.
11885 * configure: Re-generated.
11886 * config.in: Re-generated.
11887 * server.h: Don't include alloca.h and malloc.h.
11888 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11889 Don't include malloc.h.
11891 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11893 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11894 corresponding ERRNO check in same block.
11896 2014-11-12 Pedro Alves <palves@redhat.com>
11898 * server.c (cont_thread): Update comment.
11899 (start_inferior, attach_inferior): No longer clear cont_thread.
11900 (handle_v_cont): No longer set cont_thread.
11901 (captured_main): Clear cont_thread each time a GDB connects.
11903 2014-11-12 Pedro Alves <palves@redhat.com>
11905 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11906 thread, and don't resume all threads if the Hc thread has exited.
11908 2014-11-12 Pedro Alves <palves@redhat.com>
11910 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11911 the process group instead of to a specific LWP.
11913 2014-10-15 Pedro Alves <palves@redhat.com>
11916 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11918 (arm_set_thread_context): Delete.
11919 (the_low_target): Adjust.
11920 * win32-i386-low.c (debug_registers_changed)
11921 (debug_registers_used): Delete.
11922 (update_debug_registers_callback): New function.
11923 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11924 needing to update their debug registers.
11925 (win32_get_current_dr): New function.
11926 (x86_dr_low_get_addr, x86_dr_low_get_control)
11927 (x86_dr_low_get_status): Fetch the debug register from the thread
11929 (i386_initial_stuff): Adjust.
11930 (i386_get_thread_context): Remove current_event parameter. Don't
11931 clear debug_registers_changed nor copy DR values to
11933 (i386_set_thread_context): Delete.
11934 (i386_prepare_to_resume): New function.
11935 (i386_thread_added): Mark the thread as needing to update irs
11937 (the_low_target): Remove i386_set_thread_context and install
11938 i386_prepare_to_resume.
11939 * win32-low.c (win32_get_thread_context): Adjust.
11940 (win32_set_thread_context): Use SetThreadContext
11942 (win32_prepare_to_resume): New function.
11943 (win32_require_context): New function, factored out from ...
11944 (thread_rec): ... this.
11945 (continue_one_thread): Call win32_prepare_to_resume on each thread
11946 we're about to continue.
11947 (win32_resume): Call win32_prepare_to_resume on the event thread.
11948 * win32-low.h (struct win32_thread_info)
11949 <debug_registers_changed>: New field.
11950 (struct win32_target_ops): Change prototype of set_thread_context,
11951 delete set_thread_context and add prepare_to_resume.
11952 (win32_require_context): New declaration.
11954 2014-10-08 Gary Benson <gbenson@redhat.com>
11956 * server.h: Do not include common-exceptions.h.
11958 2014-10-08 Gary Benson <gbenson@redhat.com>
11960 * server.h: Do not include cleanups.h.
11962 2014-09-30 James Hogan <james.hogan@imgtec.com>
11964 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11965 mips64-dsp-linux.c.
11967 2014-09-23 Yao Qi <yao@codesourcery.com>
11969 * linux-low.c (lp_status_maybe_breakpoint): New function.
11970 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11971 (count_events_callback): Likewise.
11972 (select_event_lwp_callback): Likewise.
11973 (cancel_breakpoints_callback): Likewise.
11975 2014-09-19 Don Breazeal <donb@codesourcery.com>
11977 * linux-low.c (handle_extended_wait): Call
11978 linux_ptrace_get_extended_event.
11979 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11980 linux_is_extended_waitstatus.
11982 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11984 * Makefile.in (CPPFLAGS): Define.
11985 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11986 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11988 2014-09-16 Gary Benson <gbenson@redhat.com>
11990 * inferiors.h (current_inferior): Renamed as...
11991 (current_thread): New variable. All uses updated.
11992 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11993 (maybe_move_out_of_jump_pad): Likewise.
11994 (cancel_breakpoint): Likewise.
11995 (linux_low_filter_event): Likewise.
11996 (wait_for_sigstop): Likewise.
11997 (linux_resume_one_lwp): Likewise.
11998 (need_step_over_p): Likewise.
11999 (start_step_over): Likewise.
12000 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12001 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12002 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12003 and save_inferior as saved_thread.
12004 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12006 (regcache_invalidate_thread): Likewise.
12007 * remote-utils.c (prepare_resume_reply): Likewise.
12008 * thread-db.c (thread_db_get_tls_address): Likewise.
12009 (disable_thread_event_reporting): Likewise.
12010 (remove_thread_event_breakpoints): Likewise.
12011 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12013 * target.h (set_desired_inferior): Renamed as...
12014 (set_desired_thread): New declaration. All uses updated.
12015 * server.c (myresume): Updated comment to reference thread instead
12017 (handle_serial_event): Likewise.
12018 (handle_target_event): Likewise.
12020 2014-09-12 Tom Tromey <tromey@redhat.com>
12021 Gary Benson <gbenson@redhat.com>
12023 * regcache.h: Include common-regcache.h.
12024 (regcache_read_pc): Don't declare.
12025 * regcache.c (get_thread_regcache_for_ptid): New function.
12027 2014-09-11 Tom Tromey <tromey@redhat.com>
12028 Gary Benson <gbenson@redhat.com>
12030 * symbol.c: New file.
12031 * Makefile.in (SFILES): Add symbol.c.
12032 (OBS): Add symbol.o.
12034 2014-09-11 Gary Benson <gbenson@redhat.com>
12036 * target.c (target_stop_ptid, target_continue_ptid): New
12039 2014-09-11 Tom Tromey <tromey@redhat.com>
12040 Gary Benson <gbenson@redhat.com>
12042 * target.h: Include target/target.h.
12043 * target.c (target_read_memory, target_read_uint32)
12044 (target_write_memory): New functions.
12046 2014-09-11 Gary Benson <gbenson@redhat.com>
12048 * server.h (debug_hw_points): Don't declare.
12049 * server.c (debug_hw_points): Don't define. Replace all uses
12050 with show_debug_regs.
12051 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12052 all uses with show_debug_regs.
12054 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12056 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12057 endianness into account.
12058 (ppc_supply_ptrace_register): Likewise.
12060 2014-09-03 James Hogan <james.hogan@imgtec.com>
12062 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12063 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12065 2014-09-03 Gary Benson <gbenson@redhat.com>
12067 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12068 ALL_DEBUG_ADDRESS_REGISTERS.
12070 2014-09-02 Gary Benson <gbenson@redhat.com>
12072 * i386-low.h: Renamed as...
12073 * x86-low.h: New file. All type, function and variable name
12074 prefixes changed from "i386_" to "x86_". All references updated.
12075 * i386-low.c: Renamed as...
12076 * x86-low.c: New file. All type, function and variable name
12077 prefixes changed from "i386_" to "x86_". All references updated.
12079 2014-09-02 Gary Benson <gbenson@redhat.com>
12081 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12082 (x86_linux_new_thread): Likewise.
12084 2014-08-29 Gary Benson <gbenson@redhat.com>
12086 * server.h (setjmp.h): Do not include.
12087 (toplevel): Do not declare.
12088 (common-exceptions.h): Include.
12089 (cleanups.h): Likewise.
12090 * server.c (toplevel): Do not define.
12091 (exit_code): New static global.
12092 (detach_or_kill_for_exit_cleanup): New function.
12093 (main): New function. Original main renamed to...
12094 (captured_main): New function.
12095 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12097 2014-08-29 Gary Benson <gbenson@redhat.com>
12099 * Makefile.in (SFILES): Add common/common-exceptions.c.
12100 (OBS): Add common-exceptions.o.
12101 (common-exceptions.o): New rule.
12102 * utils.c (prepare_to_throw_exception): New function.
12104 2014-08-29 Gary Benson <gbenson@redhat.com>
12106 * config.in: Regenerate.
12107 * configure: Likewise.
12109 2014-08-29 Gary Benson <gbenson@redhat.com>
12111 * Makefile.in (SFILES): Add common/cleanups.c.
12113 (cleanups.o): New rule.
12115 2014-08-29 Gary Benson <gbenson@redhat.com>
12117 * utils.c (internal_vwarning): New function.
12119 2014-08-28 Gary Benson <gbenson@redhat.com>
12121 * utils.h (fatal): Remove declaration.
12122 * utils.c (fatal): Remove function.
12124 2014-08-28 Gary Benson <gbenson@redhat.com>
12126 * tracepoint.c (gdb_agent_init): Replace fatal with
12128 (initialize_tracepoint): Likewise.
12130 2014-08-28 Gary Benson <gbenson@redhat.com>
12132 * remote-utils.c (remote_prepare): Replace fatal with error.
12134 2014-08-28 Gary Benson <gbenson@redhat.com>
12136 * linux-low.c (linux_async): Replace fatal with warning.
12137 Tidy up and return.
12138 (linux_start_non_stop): Return -1 if linux_async failed.
12140 2014-08-28 Gary Benson <gbenson@redhat.com>
12142 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12144 (i386_dr_low_get_addr): Remove vague comment.
12145 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12148 2014-08-28 Gary Benson <gbenson@redhat.com>
12150 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12151 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12153 (linux_resume_one_lwp): Likewise.
12154 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12156 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12157 with internal_error.
12158 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12159 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12160 (find_register_by_name): Replace fatal with internal_error.
12161 (find_regno): Likewise.
12162 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12163 * thread-db.c (thread_db_create_event): Likewise.
12164 (thread_db_load_search): Likewise.
12165 (try_thread_db_load_1): Likewise.
12166 * tracepoint.c (get_jump_space_head): Replace fatal with
12168 (claim_trampoline_space): Likewise.
12169 (have_fast_tracepoint_trampoline_buffer): Likewise.
12170 (cmd_qtstart): Likewise.
12171 (stop_tracing): Likewise.
12172 (fast_tracepoint_collecting): Likewise.
12173 (target_malloc): Likewise.
12174 (download_tracepoint): Likewise.
12175 (download_trace_state_variables): Replace check with gdb_assert.
12176 (upload_fast_traceframes): Replace fatal with internal_error.
12178 2014-08-19 Tom Tromey <tromey@redhat.com>
12179 Gary Benson <gbenson@redhat.com>
12181 * Makefile.in (SFILES): Add common/common-debug.c.
12182 (OBS): Add common-debug.o.
12183 (common-debug.o): New rule.
12184 * debug.h (debug_printf): Don't declare.
12185 * debug.c (debug_printf): Renamed and rewritten as...
12186 (debug_vprintf): New function.
12188 2014-08-19 Gary Benson <gbenson@redhat.com>
12190 * utils.h: Do not include print-utils.h.
12192 2014-08-19 Tom Tromey <tromey@redhat.com>
12193 Gary Benson <gbenson@redhat.com>
12195 * server.h: Add static assertion.
12196 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12198 2014-08-19 Tom Tromey <tromey@redhat.com>
12199 Gary Benson <gbenson@redhat.com>
12201 * Makefile.in (SFILES): Add common/errors.c.
12202 (OBS): Add errors.o.
12203 (IPA_OBS): Add errors-ipa.o.
12204 (errors.o): New rule.
12205 (errors-ipa.o): Likewise.
12206 * utils.h (perror_with_name, error, warning): Don't declare.
12207 * utils.c (warning): Renamed and rewritten as...
12208 (vwarning): New function.
12209 (error): Renamed and rewritten as...
12210 (verror): New function.
12211 (internal_error): Renamed and rewritten as...
12212 (internal_verror): New function.
12214 2014-08-07 Gary Benson <gbenson@redhat.com>
12216 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12217 * configure: Regenerate.
12218 * config.in: Likewise.
12219 * server.h: Do not include errno.h.
12220 * event-loop.c: Likewise.
12221 * hostio-errno.c: Likewise.
12222 * linux-low.c: Likewise.
12223 * remote-utils.c: Likewise.
12224 * spu-low.c: Likewise.
12225 * utils.c: Likewise.
12226 * gdbreplay.c: Unconditionally include errno.h.
12228 2014-08-07 Gary Benson <gbenson@redhat.com>
12230 * server.h: Do not include string.h.
12231 * event-loop.c: Likewise.
12232 * linux-low.c: Likewise.
12233 * regcache.c: Likewise.
12234 * remote-utils.c: Likewise.
12235 * spu-low.c: Likewise.
12236 * utils.c: Likewise.
12238 2014-08-07 Gary Benson <gbenson@redhat.com>
12240 * server.h: Do not include gdb_assert.h.
12242 2014-08-07 Gary Benson <gbenson@redhat.com>
12244 * server.h: Do not include common-utils.h.
12246 2014-08-07 Gary Benson <gbenson@redhat.com>
12248 * server.h: Do not include ptid.h.
12249 * notif.h: Likewise.
12251 2014-08-07 Gary Benson <gbenson@redhat.com>
12253 * server.h: Do not include gdb_locale.h.
12255 2014-08-07 Gary Benson <gbenson@redhat.com>
12257 * server.h: Do not include gdb/signals.h.
12258 * win32-low.c: Likewise.
12260 2014-08-07 Gary Benson <gbenson@redhat.com>
12262 * server.h: Do not include pathmax.h.
12264 2014-08-07 Gary Benson <gbenson@redhat.com>
12266 * server.h: Do not include libiberty.h.
12267 * linux-bfin-low.c: Likewise.
12269 2014-08-07 Gary Benson <gbenson@redhat.com>
12271 * server.h: Do not include ansidecl.h.
12273 2014-08-07 Gary Benson <gbenson@redhat.com>
12275 * linux-x86-low.c: Do not include stddef.h.
12276 * lynx-ppc-low.c: Likewise.
12277 * tracepoint.c: Likewise.
12279 2014-08-07 Gary Benson <gbenson@redhat.com>
12281 * server.h: Do not include stdarg.h.
12282 * nto-low.c: Likewise.
12284 2014-08-07 Gary Benson <gbenson@redhat.com>
12286 * server.h: Do not include stdlib.h.
12287 * inferiors.c: Likewise.
12288 * linux-low.c: Likewise.
12289 * regcache.c: Likewise.
12290 * spu-low.c: Likewise.
12291 * tracepoint.c: Likewise.
12292 * utils.c: Likewise.
12294 2014-08-07 Gary Benson <gbenson@redhat.com>
12296 * server.h: Do not include stdio.h.
12297 * linux-low.c: Likewise.
12298 * remote-utils.c: Likewise.
12299 * spu-low.c: Likewise.
12300 * utils.c: Likewise.
12301 * wincecompat.c: Likewise.
12303 2014-08-06 Gary Benson <gbenson@redhat.com>
12305 * regcache.c (init_register_cache): Move conditionals inside if.
12307 2014-08-06 Gary Benson <gbenson@redhat.com>
12309 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12311 2014-07-31 Gary Benson <gbenson@redhat.com>
12313 * ax.h: Do not include server.h.
12314 * gdbthread.h: Likewise.
12315 * lynx-low.h: Likewise.
12316 * notif.h: Likewise.
12318 2014-07-30 Gary Benson <gbenson@redhat.com>
12320 * server.h: Include common-defs.h.
12321 Do not include config.h or build-gnulib-gdbserver/config.h.
12323 2014-07-30 Gary Benson <gbenson@redhat.com>
12325 * hostio-errno.c: Move server.h to top of includes list.
12326 * inferiors.c: Likewise.
12327 * linux-x86-low.c: Likewise.
12328 * notif.c: Include server.h.
12330 2014-07-24 Tom Tromey <tromey@redhat.com>
12331 Gary Benson <gbenson@redhat.com>
12333 * server.h (CORE_ADDR): Now unsigned.
12335 2014-07-16 Pedro Alves <palves@redhat.com>
12337 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12339 2014-07-15 Pedro Alves <palves@redhat.com>
12341 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12344 2014-07-11 Pedro Alves <palves@redhat.com>
12346 * linux-low.c (kill_wait_lwp): New function, based on
12347 kill_one_lwp_callback, but use my_waitpid directly.
12348 (kill_one_lwp_callback, linux_kill): Use it.
12350 2014-06-23 Pedro Alves <palves@redhat.com>
12352 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12353 before setting DR0..DR3.
12355 2014-06-20 Gary Benson <gbenson@redhat.com>
12357 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12358 * configure: Regenerated.
12359 * config.in: Likewise.
12361 2014-06-20 Gary Benson <gbenson@redhat.com>
12363 * Makefile.in (SFILES): Update locations for files moved
12364 from common to nat.
12365 (object file files): Reordered.
12367 2014-06-20 Gary Benson <gbenson@redhat.com>
12369 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12370 (i386_dr_low_set_addr): Likewise.
12371 (i386_dr_low_get_addr): Likewise.
12372 (i386_dr_low_can_set_control): Likewise.
12373 (i386_dr_low_set_control): Likewise.
12374 (i386_dr_low_get_control): Likewise.
12375 (i386_dr_low_get_status): Likewise.
12376 (i386_get_debug_register_length): Likewise.
12377 * linux-x86-low.c (i386_dr_low_set_addr):
12378 Changed signature. Made static.
12379 (i386_dr_low_get_addr): Likewise.
12380 (i386_dr_low_set_control): Likewise.
12381 (i386_dr_low_get_control): Likewise.
12382 (i386_dr_low_get_status): Likewise.
12383 (i386_dr_low): New global variable.
12384 * win32-i386-low.c (i386_dr_low_set_addr):
12385 Changed signature. Made static.
12386 (i386_dr_low_get_addr): Likewise.
12387 (i386_dr_low_set_control): Likewise.
12388 (i386_dr_low_get_control): Likewise.
12389 (i386_dr_low_get_status): Likewise.
12390 (i386_dr_low): New global variable.
12392 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12394 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12395 * Makefile.in (AR, AR_FLAGS): Define.
12396 * configure: Regenerate.
12398 2014-06-19 Gary Benson <gbenson@redhat.com>
12400 * Makefile.in (i386-dregs.o): New rule.
12401 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12402 * i386-low.c (target.h): Remove include.
12403 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12404 (DR_CONTROL_SHIFT): Likewise.
12405 (DR_CONTROL_SIZE): Likewise.
12406 (DR_RW_EXECUTE): Likewise.
12407 (DR_RW_WRITE): Likewise.
12408 (DR_RW_READ): Likewise.
12409 (DR_RW_IORW): Likewise.
12410 (DR_LEN_1): Likewise.
12411 (DR_LEN_2): Likewise.
12412 (DR_LEN_4): Likewise.
12413 (DR_LEN_8): Likewise.
12414 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12415 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12416 (DR_ENABLE_SIZE): Likewise.
12417 (DR_LOCAL_SLOWDOWN): Likewise.
12418 (DR_GLOBAL_SLOWDOWN): Likewise.
12419 (DR_CONTROL_RESERVED): Likewise.
12420 (I386_DR_CONTROL_MASK): Likewise.
12421 (I386_DR_VACANT): Likewise.
12422 (I386_DR_LOCAL_ENABLE): Likewise.
12423 (I386_DR_GLOBAL_ENABLE): Likewise.
12424 (I386_DR_DISABLE): Likewise.
12425 (I386_DR_SET_RW_LEN): Likewise.
12426 (I386_DR_GET_RW_LEN): Likewise.
12427 (I386_DR_WATCH_HIT): Likewise.
12428 (i386_wp_op_t): Likewise.
12429 (i386_show_dr): Likewise.
12430 (i386_length_and_rw_bits): Likewise.
12431 (i386_insert_aligned_watchpoint): Likewise.
12432 (i386_remove_aligned_watchpoint): Likewise.
12433 (i386_handle_nonaligned_watchpoint): Likewise.
12434 i386_update_inferior_debug_regs(): Likewise.
12435 (i386_dr_insert_watchpoint): Likewise.
12436 (i386_dr_remove_watchpoint): Likewise.
12437 (i386_dr_region_ok_for_watchpoint): Likewise.
12438 (i386_dr_stopped_data_address): Likewise.
12439 (i386_dr_stopped_by_watchpoint): Likewise.
12441 2014-06-19 Gary Benson <gbenson@redhat.com>
12443 * i386-low.c (i386_dr_show): Renamed to
12444 i386_show_dr and made static. All uses updated.
12445 (i386_dr_length_and_rw_bits): Renamed to
12446 i386_length_and_rw_bits and made static.
12448 (i386_dr_insert_aligned_watchpoint): Renamed to
12449 i386_insert_aligned_watchpoint and made static.
12451 (i386_dr_remove_aligned_watchpoint): Renamed to
12452 i386_remove_aligned_watchpoint and made static.
12454 (i386_dr_update_inferior_debug_regs): Renamed to
12455 i386_update_inferior_debug_regs and made static.
12458 2014-06-18 Gary Benson <gbenson@redhat.com>
12460 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12461 (i386_dr_low_can_set_control): Likewise.
12462 (i386_get_debug_register_length): Likewise.
12463 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12464 (i386_dr_low_can_set_control): Likewise.
12465 (i386_get_debug_register_length): Likewise.
12467 2014-06-17 Gary Benson <gbenson@redhat.com>
12469 * i386-low.h (i386-dregs.h): New include.
12470 (DR_FIRSTADDR): Now in i386-dregs.h.
12471 (DR_LASTADDR): Likewise.
12472 (DR_NADDR): Likewise.
12473 (DR_STATUS): Likewise.
12474 (DR_CONTROL): Likewise.
12475 (i386_debug_reg_state): Likewise.
12476 (i386_dr_insert_watchpoint): Likewise.
12477 (i386_dr_remove_watchpoint): Likewise.
12478 (i386_dr_region_ok_for_watchpoint): Likewise.
12479 (i386_dr_stopped_data_address): Likewise.
12480 (i386_dr_stopped_by_watchpoint): Likewise.
12481 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12483 2014-06-18 Gary Benson <gbenson@redhat.com>
12485 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12486 i386_dr_insert_watchpoint.
12487 (i386_low_remove_watchpoint): Renamed to
12488 i386_dr_remove_watchpoint.
12489 (i386_low_region_ok_for_watchpoint): Renamed to
12490 i386_dr_region_ok_for_watchpoint.
12491 (i386_low_stopped_data_address): Renamed to
12492 i386_dr_stopped_data_address.
12493 (i386_low_stopped_by_watchpoint): Renamed to
12494 i386_dr_stopped_by_watchpoint.
12495 * i386-low.c (i386_show_dr): Renamed to
12496 i386_dr_show and made nonstatic. All uses updated.
12497 (i386_length_and_rw_bits): Renamed to
12498 i386_dr_length_and_rw_bits and made nonstatic.
12500 (i386_insert_aligned_watchpoint): Renamed to
12501 i386_dr_insert_aligned_watchpoint and made nonstatic.
12503 (i386_remove_aligned_watchpoint): Renamed to
12504 i386_dr_remove_aligned_watchpoint and made nonstatic.
12506 (i386_update_inferior_debug_regs): Renamed to
12507 i386_dr_update_inferior_debug_regs and made nonstatic.
12509 (i386_low_insert_watchpoint): Renamed to
12510 i386_dr_insert_watchpoint. All uses updated.
12511 (i386_low_remove_watchpoint): Renamed to
12512 i386_dr_remove_watchpoint. All uses updated.
12513 (i386_low_region_ok_for_watchpoint): Renamed to
12514 i386_dr_region_ok_for_watchpoint. All uses updated.
12515 (i386_low_stopped_data_address): Renamed to
12516 i386_dr_stopped_data_address. All uses updated.
12517 (i386_low_stopped_by_watchpoint): Renamed to
12518 i386_dr_stopped_by_watchpoint. All uses updated.
12520 2014-06-18 Gary Benson <gbenson@redhat.com>
12522 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12523 (i386_dr_low_can_set_control): Likewise.
12524 (i386_insert_aligned_watchpoint): New check.
12526 2014-06-18 Gary Benson <gbenson@redhat.com>
12528 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12531 2014-06-18 Gary Benson <gbenson@redhat.com>
12533 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12534 instead of fatal and error.
12535 (i386_handle_nonaligned_watchpoint): Likewise.
12537 2014-06-18 Gary Benson <gbenson@redhat.com>
12539 * i386-low.c (i386_get_debug_register_length): New macro.
12540 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12541 (i386_show_dr): Use debug_printf instead of fprintf. Use
12542 phex to format values.
12544 2014-06-18 Gary Benson <gbenson@redhat.com>
12546 * i386-low.h: Comment changes.
12547 * i386-low.c: Likewise.
12549 2014-06-18 Gary Benson <gbenson@redhat.com>
12551 * i386-low.c: Whitespace changes.
12553 2014-06-12 Tom Tromey <tromey@redhat.com>
12555 * utils.c (freeargv): Remove.
12557 2014-06-12 Tom Tromey <tromey@redhat.com>
12559 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12560 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12561 (parse_debug_format_options): Likewise.
12562 (gdbserver_usage): Likewise.
12563 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12564 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12565 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12567 ($(LIBGNU)): Depend on libiberty.
12568 (all-lib): Recurse into all subdirs.
12569 (install-only): Invoke "install" target in subdirs.
12570 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12572 * configure: Rebuild.
12573 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12574 for vasprintf, vsnprintf, or gettimeofday.
12575 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12578 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12580 * development.sh: Delete.
12581 * Makefile.in (config.status): Adjust dependency on development.sh.
12582 * configure.ac: Adjust development.sh source call.
12583 * configure: Regenerate.
12585 2014-06-02 Pedro Alves <palves@redhat.com>
12587 * ax.c (gdb_free_agent_expr): New function.
12588 * ax.h (gdb_free_agent_expr): New declaration.
12589 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12591 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12593 (clear_breakpoint_conditions_and_commands): New function.
12594 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12595 (clear_breakpoint_conditions_and_commands): New declaration.
12597 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12599 * linux-aarch64-low.c (asm/ptrace.h): Include.
12601 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12603 Fix TLS access for -static -pthread.
12604 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12605 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12606 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12608 2014-05-20 Pedro Alves <palves@redhat.com>
12610 * linux-aarch64-low.c (aarch64_insert_point)
12611 (aarch64_remove_point): No longer check whether the type is
12612 supported here. Adjust to new interface.
12613 (the_low_target): Install aarch64_supports_z_point_type as
12614 supports_z_point_type method.
12615 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12616 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12617 instead of a Z packet char. Adjust.
12618 (arm_supports_z_point_type): New function.
12619 (arm_insert_point, arm_remove_point): Adjust to new interface.
12620 (the_low_target): Install arm_supports_z_point_type.
12621 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12622 (cris_insert_point, cris_remove_point): Adjust to new interface.
12623 Don't check whether the type is supported here.
12624 (the_low_target): Install cris_supports_z_point_type.
12625 * linux-low.c (linux_supports_z_point_type): New function.
12626 (linux_insert_point, linux_remove_point): Adjust to new interface.
12627 * linux-low.h (struct linux_target_ops) <insert_point,
12628 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12629 raw_breakpoint pointer parameter.
12630 <supports_z_point_type>: New method.
12631 * linux-mips-low.c (mips_supports_z_point_type): New function.
12632 (mips_insert_point, mips_remove_point): Adjust to new interface.
12633 Use mips_supports_z_point_type.
12634 (the_low_target): Install mips_supports_z_point_type.
12635 * linux-ppc-low.c (the_low_target): Install NULL as
12636 supports_z_point_type method.
12637 * linux-s390-low.c (the_low_target): Install NULL as
12638 supports_z_point_type method.
12639 * linux-sparc-low.c (the_low_target): Install NULL as
12640 supports_z_point_type method.
12641 * linux-x86-low.c (x86_supports_z_point_type): New function.
12642 (x86_insert_point): Adjust to new insert_point interface. Use
12643 insert_memory_breakpoint. Adjust to new
12644 i386_low_insert_watchpoint interface.
12645 (x86_remove_point): Adjust to remove_point interface. Use
12646 remove_memory_breakpoint. Adjust to new
12647 i386_low_remove_watchpoint interface.
12648 (the_low_target): Install x86_supports_z_point_type.
12649 * lynx-low.c (lynx_target_ops): Install NULL as
12650 supports_z_point_type callback.
12651 * nto-low.c (nto_supports_z_point_type): New.
12652 (nto_insert_point, nto_remove_point): Adjust to new interface.
12653 (nto_target_ops): Install nto_supports_z_point_type.
12654 * mem-break.c: Adjust intro comment.
12655 (struct raw_breakpoint) <raw_type, size>: New fields.
12656 <inserted>: Update comment.
12657 <shlib_disabled>: Delete field.
12658 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12659 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12660 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12661 (raw_bkpt_type_to_target_hw_bp_type): New function.
12662 (find_enabled_raw_code_breakpoint_at): New function.
12663 (find_raw_breakpoint_at): New type and size parameters. Use them.
12664 (insert_memory_breakpoint): New function, based off
12665 set_raw_breakpoint_at.
12666 (remove_memory_breakpoint): New function.
12667 (set_raw_breakpoint_at): Reimplement.
12668 (set_breakpoint): New, based on set_breakpoint_at.
12669 (set_breakpoint_at): Reimplement.
12670 (delete_raw_breakpoint): Go through the_target->remove_point
12671 instead of assuming memory breakpoints.
12672 (find_gdb_breakpoint_at): Delete.
12673 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12674 (find_gdb_breakpoint): New function.
12675 (set_gdb_breakpoint_at): Delete.
12676 (z_type_supported): New function.
12677 (set_gdb_breakpoint_1): New function, loosely based off
12678 set_gdb_breakpoint_at.
12679 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12680 (delete_gdb_breakpoint_at): Delete.
12681 (delete_gdb_breakpoint_1): New function, loosely based off
12682 delete_gdb_breakpoint_at.
12683 (delete_gdb_breakpoint): New function.
12684 (clear_gdb_breakpoint_conditions): Rename to ...
12685 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12687 (add_condition_to_breakpoint): Make static.
12688 (add_breakpoint_condition): Take a struct breakpoint pointer
12689 instead of an address. Adjust.
12690 (gdb_condition_true_at_breakpoint): Rename to ...
12691 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12693 (gdb_condition_true_at_breakpoint): Reimplement.
12694 (add_breakpoint_commands): Take a struct breakpoint pointer
12695 instead of an address. Adjust.
12696 (gdb_no_commands_at_breakpoint): Rename to ...
12697 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12698 parameter. Return true if no breakpoint was found. Change debug
12700 (gdb_no_commands_at_breakpoint): Reimplement.
12701 (run_breakpoint_commands): Rename to ...
12702 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12703 and change return type to boolean.
12704 (run_breakpoint_commands): New function.
12705 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12706 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12707 breakpoint. Go through the_target->remove_point instead of
12708 assuming memory breakpoint.
12709 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12710 software and hardware breakpoints.
12711 (reinsert_raw_breakpoint): Go through the_target->insert_point
12712 instead of assuming memory breakpoint.
12713 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12714 software and hardware breakpoints.
12715 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12716 Check both software and hardware breakpoints.
12717 (validate_inserted_breakpoint): Assert the breakpoint is a
12718 software breakpoint. Set the inserted flag to -1 instead of
12719 setting shlib_disabled.
12720 (delete_disabled_breakpoints): Adjust.
12721 (validate_breakpoints): Only validate software breakpoints.
12722 Adjust to inserted flag change.
12723 (check_mem_read, check_mem_write): Skip breakpoint types other
12724 than software breakpoints. Adjust to inserted flag change.
12725 * mem-break.h (enum raw_bkpt_type): New enum.
12726 (raw_breakpoint, struct process_info): Forward declare.
12727 (Z_packet_to_target_hw_bp_type): Delete declaration.
12728 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12729 (set_gdb_breakpoint, delete_gdb_breakpoint)
12730 (clear_breakpoint_conditions): New declarations.
12731 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12732 (breakpoint_inserted_here): Update comment.
12733 (add_breakpoint_condition, add_breakpoint_commands): Replace
12734 address parameter with a breakpoint pointer parameter.
12735 (gdb_breakpoint_here): Update comment.
12736 (delete_gdb_breakpoint_at): Delete.
12737 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12738 * server.c (process_point_options): Take a struct breakpoint
12739 pointer instead of an address. Adjust.
12740 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12741 delete_gdb_breakpoint.
12742 * spu-low.c (spu_target_ops): Install NULL as
12743 supports_z_point_type method.
12744 * target.h: Include mem-break.h.
12745 (struct target_ops) <prepare_to_access_memory>: Update comment.
12746 <supports_z_point_type>: New field.
12747 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12748 instead of a char. Also take a raw breakpoint pointer.
12749 * win32-arm-low.c (the_low_target): Install NULL as
12750 supports_z_point_type.
12751 * win32-i386-low.c (i386_supports_z_point_type): New function.
12752 (i386_insert_point, i386_remove_point): Adjust to new interface.
12753 (the_low_target): Install i386_supports_z_point_type.
12754 * win32-low.c (win32_supports_z_point_type): New function.
12755 (win32_insert_point, win32_remove_point): Adjust to new interface.
12756 (win32_target_ops): Install win32_supports_z_point_type.
12757 * win32-low.h (struct win32_target_ops):
12758 <supports_z_point_type>: New method.
12759 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12760 instead of a char. Also take a raw breakpoint pointer.
12762 2014-05-20 Pedro Alves <palves@redhat.com>
12764 * mem-break.h: Include break-common.h.
12765 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12766 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12767 (Z_packet_to_target_hw_bp_type): New declaration.
12768 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12769 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12770 (Z_PACKET_ACCESS_WP): Delete macros.
12771 (Z_packet_to_hw_type): Delete function.
12772 * i386-low.h: Don't include break-common.h here.
12773 (Z_packet_to_hw_type): Delete declaration.
12774 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12775 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12776 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12777 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12778 * linux-aarch64-low.c: Don't include break-common.h here.
12779 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12780 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12781 (Z_packet_to_target_hw_bp_type): Delete function.
12782 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12784 (mips_insert_point, mips_remove_point): Use
12785 Z_packet_to_target_hw_bp_type.
12787 2014-05-20 Pedro Alves <palves@redhat.com>
12789 * linux-aarch64-low.c: Include break-common.h.
12790 (enum target_point_type): Delete.
12791 (Z_packet_to_point_type): Rename to ...
12792 (Z_packet_to_target_hw_bp_type): ... this, and return a
12793 target_hw_bp_type instead.
12794 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12795 instead of an enum target_point_type.
12796 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12798 (aarch64_dr_state_insert_one_point)
12799 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12800 (aarch64_handle_aligned_watchpoint)
12801 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12802 Take an enum target_hw_bp_type instead of an enum
12804 (aarch64_supports_z_point_type): New function.
12805 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12806 use Z_packet_to_target_hw_bp_type.
12808 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12810 * configure.ac: Only use -Werror by default when DEVELOPMENT
12812 * configure: Regenerate.
12814 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12816 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12817 * linux-x86-low.c (X86_64_USER_REGS): New.
12818 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12820 2014-04-28 Yao Qi <yao@codesourcery.com>
12822 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12825 2014-04-25 Pedro Alves <palves@redhat.com>
12828 * linux-low.c (linux_attach_fail_reason_string): New function.
12829 (linux_attach_lwp): Delete.
12830 (linux_attach_lwp_1): Rename to ...
12831 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12832 argument. Remove "initial" parameter. Return int instead of
12833 void. Don't error or warn here.
12834 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12835 failure to attach to the tgid. Call warning when failing to
12837 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12838 argument. Remove "initial" parameter. Return int instead of
12839 void. Don't error or warn here.
12840 (linux_attach_fail_reason_string): New declaration.
12841 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12842 interface change. Use linux_attach_fail_reason_string.
12844 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12845 Walfred Tedeschi <walfred.tedeschi@intel.com>
12847 * Makefile.in: Added rules to handle new files
12848 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12849 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12850 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12851 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12852 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12853 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12854 x32-avx512-linux.o.
12855 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12856 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12857 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12858 i386/x32-avx512.xml.
12859 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12860 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12861 i386/x32-avx512-linux.xml.
12862 * i387-fp.c (num_avx512_k_registers): New constant for number
12864 (num_avx512_zmmh_low_registers): New constant for number of
12865 lower ZMM registers (0-15).
12866 (num_avx512_zmmh_high_registers): New constant for number of
12867 higher ZMM registers (16-31).
12868 (num_avx512_ymmh_registers): New contant for number of higher
12869 YMM registers (ymm16-31 added by avx521 on x86_64).
12870 (num_avx512_xmm_registers): New constant for number of higher
12871 XMM registers (xmm16-31 added by AVX512 on x86_64).
12872 (struct i387_xsave): Add space for AVX512 registers.
12873 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12874 Add code to handle AVX512 registers.
12875 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12876 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12877 prototypei from generated file.
12878 (tdesc_amd64_avx512_linux): Likewise.
12879 (init_registers_x32_avx512_linux): Likewise.
12880 (tdesc_x32_avx512_linux): Likewise.
12881 (init_registers_i386_avx512_linux): Likewise.
12882 (tdesc_i386_avx512_linux): Likewise.
12883 (x86_64_regmap): Add AVX512 registers.
12884 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12886 (initialize_low_arch): Add code to initialize AVX512 registers.
12888 2014-04-23 Pedro Alves <palves@redhat.com>
12890 * mem-break.c (find_gdb_breakpoint_at): Make static.
12891 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12893 2014-04-23 Pedro Alves <palves@redhat.com>
12895 * i386-low.c: Don't include break-common.h here.
12896 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12897 prototype to take target_hw_bp_type as argument instead of a Z
12899 * i386-low.h: Include break-common.h here.
12900 (Z_packet_to_hw_type): Declare.
12901 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12903 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12904 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12905 (x86_remove_point): Convert the packet number to a
12906 target_hw_bp_type before calling i386_low_remove_watchpoint.
12907 * win32-i386-low.c (i386_insert_point): Convert the packet number
12908 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12909 (i386_remove_point): Convert the packet number to a
12910 target_hw_bp_type before calling i386_low_remove_watchpoint.
12912 2014-04-23 Pedro Alves <palves@redhat.com>
12914 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12916 2014-04-10 Pedro Alves <palves@redhat.com>
12918 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12919 Check if the condition or command is NULL before checking if the
12920 breakpoint is known. On success, return true.
12921 * mem-break.h (add_breakpoint_condition): Document return.
12922 (add_breakpoint_commands): Add describing comment.
12923 * server.c (skip_to_semicolon): New function.
12924 (process_point_options): Use it.
12926 2014-04-09 Pedro Alves <palves@redhat.com>
12928 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12931 2014-02-27 Pedro Alves <palves@redhat.com>
12934 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12936 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12938 (last_thread_of_process_p): Take a PID argument instead of a
12940 (linux_wait_for_lwp): Delete.
12941 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12943 (linux_low_filter_event): New function, party factored out from
12944 linux_wait_for_event.
12945 (linux_wait_for_event): Rename to ...
12946 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12947 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12948 sigsuspend. Check for zombie leaders.
12949 (linux_wait_for_event): Reimplement as wrapper around
12950 linux_wait_for_event_filtered.
12951 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12952 a normal or signal exit is seen, it's the whole process exiting.
12953 (wait_for_sigstop): No longer a for_each_inferior callback.
12954 Rewrite on top of linux_wait_for_event_filtered.
12955 (stop_all_lwps): Call wait_for_sigstop directly.
12956 * server.c (resume, handle_target_event): Handle
12957 TARGET_WAITKIND_NO_RESUMED.
12959 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12961 * win32-low.c (psapi_get_dll_name,
12962 * win32_CreateToolhelp32Snapshot): Delete.
12963 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12964 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12966 (handle_load_dll): Add function description.
12967 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12969 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12971 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12973 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12974 base address when calling win32_add_one_solib.
12975 (handle_load_dll): Delete local variable load_addr.
12976 Remove 0x1000 offset applied to DLL base address when calling
12977 win32_add_one_solib.
12978 (handle_unload_dll): Add comment.
12980 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12982 * win32-low.c (win32_add_all_dlls): Renames
12983 win32_ensure_ntdll_loaded. Rewrite function documentation.
12984 Adjust implementation to always load all DLLs.
12985 Add 0x1000 offset to DLL base address when calling
12986 win32_add_one_solib.
12987 (child_initialization_done): New static global.
12988 (do_initial_child_stuff): Set child_initialization_done to
12989 zero during child initialization, and 1 after. Replace call
12990 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12992 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12993 (handle_unload_dll): Add function documentation.
12994 (get_child_debug_event): Ignore load and unload DLL events
12995 during child initialization.
12997 2014-02-20 Doug Evans <dje@google.com>
12999 Remove global all_lwps.
13000 * inferiors.h (ptid_of): Move here from linux-low.h.
13001 (pid_of, lwpid_of): Ditto.
13002 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13003 parameter is a struct thread_info * now.
13004 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13005 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13006 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13008 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13009 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13010 * linux-arm-low.c (update_registers_callback): Update, "entry"
13011 parameter is a struct thread_info * now.
13012 Fetch lwpid from current_inferior directly.
13013 (arm_insert_point): Pass &all_threads to find_inferior instead of
13015 (arm_remove_point): Ditto.
13016 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13017 (arm_prepare_to_resume): Fetch pid from thread.
13018 (arm_read_description): Fetch lwpid from current_inferior directly.
13019 * linux-low.c (all_lwps): Delete.
13020 (delete_lwp): Delete call to remove_inferior.
13021 (handle_extended_wait): Fetch lwpid from thread.
13022 (add_lwp): Don't set lwp->entry.id. Remove call to
13023 add_inferior_to_list.
13024 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13025 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13026 (kill_one_lwp_callback): Ditto.
13027 (linux_kill): Don't dereference NULL pointer.
13028 Fetch ptid,lwpid from thread.
13029 (get_detach_signal): Fetch ptid from thread.
13030 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13031 Simplify call to regcache_invalidate_thread.
13032 (delete_lwp_callback): Update, "entry" parameter is a
13033 struct thread_info * now. Fetch pid from thread.
13034 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13035 (status_pending_p_callback): Update, "entry" parameter is a
13036 struct thread_info * now. Fetch ptid from thread.
13037 (find_lwp_pid): Update, "entry" parameter is a
13038 struct thread_info * now.
13039 (linux_wait_for_lwp): Fetch pid from thread.
13040 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13041 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13042 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13043 (dequeue_one_deferred_signal): Ditto.
13044 (cancel_breakpoint): Fetch ptid from current_inferior.
13045 (linux_wait_for_event): Pass &all_threads to find_inferior,
13046 not &all_lwps. Fetch ptid, lwpid from thread.
13047 (count_events_callback): Update, "entry" parameter is a
13048 struct thread_info * now.
13049 (select_singlestep_lwp_callback): Ditto.
13050 (select_event_lwp_callback): Ditto.
13051 (cancel_breakpoints_callback): Ditto.
13052 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13054 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13055 (unsuspend_one_lwp): Update, "entry" parameter is a
13056 struct thread_info * now.
13057 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13059 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13060 Fetch lwpid from thread, not lwp.
13061 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13062 Pass &all_threads to find_inferior, not &all_lwps.
13063 (send_sigstop): Fetch lwpid from thread, not lwp.
13064 (send_sigstop_callback): Update, "entry" parameter is a
13065 struct thread_info * now.
13066 (suspend_and_send_sigstop_callback): Ditto.
13067 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13068 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13069 struct thread_info * now.
13070 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13072 (lwp_running): Update, "entry" parameter is a
13073 struct thread_info * now.
13074 (stop_all_lwps): Fetch ptid from thread.
13075 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13076 (linux_resume_one_lwp): Fetch lwpid from thread.
13077 (linux_set_resume_request): Update, "entry" parameter is a
13078 struct thread_info * now. Fetch pid, lwpid from thread.
13079 (resume_status_pending_p): Update, "entry" parameter is a
13080 struct thread_info * now.
13081 (need_step_over_p): Ditto. Fetch lwpid from thread.
13082 (start_step_over): Fetch lwpid from thread.
13083 (linux_resume_one_thread): Update, "entry" parameter is a
13084 struct thread_info * now. Fetch lwpid from thread.
13085 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13086 (proceed_one_lwp): Update, "entry" parameter is a
13087 struct thread_info * now. Fetch lwpid from thread.
13088 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13089 struct thread_info * now.
13090 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13091 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13092 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13094 (regsets_store_inferior_registers): Ditto.
13095 (fetch_register, store_register): Ditto.
13096 (linux_read_memory, linux_write_memory): Ditto.
13097 (linux_request_interrupt): Ditto.
13098 (linux_read_auxv): Ditto.
13099 (linux_xfer_siginfo): Ditto.
13100 (linux_qxfer_spu): Ditto.
13101 (linux_qxfer_libraries_svr4): Ditto.
13102 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13103 moved to inferiors.h.
13105 (get_thread_lwp): Update.
13106 (struct lwp_info): Delete member "entry". Simplify comment for
13108 (all_lwps): Delete.
13109 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13110 current_inferior directly.
13111 (update_watch_registers_callback): Update, "entry" parameter is a
13112 struct thread_info * now. Fetch pid from thread.
13113 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13114 (mips_insert_point): Fetch lwpid from current_inferior.
13115 Pass &all_threads to find_inferior, not &all_lwps.
13116 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13117 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13119 (mips_stopped_data_address): Ditto.
13120 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13122 * linux-tile-low.c (tile_arch_setup): Ditto.
13123 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13124 (update_debug_registers_callback): Update, "entry" parameter is a
13125 struct thread_info * now. Fetch pid from thread.
13126 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13127 Pass &all_threads to find_inferior, not &all_lwps.
13128 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13129 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13130 Pass &all_threads to find_inferior, not &all_lwps.
13131 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13132 (i386_dr_low_get_status): Ditto.
13133 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13134 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13135 (x86_linux_read_description): Ditto.
13136 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13138 2014-02-20 Doug Evans <dje@google.com>
13140 * inferiors.c (get_first_inferior): Fix buglet.
13142 2014-02-19 Doug Evans <dje@google.com>
13144 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13145 * inferiors.c (add_thread): Change result type to struct thread_info *.
13146 All callers updated.
13147 (add_lwp): Call add_thread here instead of in callers.
13148 All callers updated.
13149 * linux-low.h (get_lwp_thread): Rewrite.
13150 (struct lwp_info): New member "thread".
13152 2014-02-19 Doug Evans <dje@google.com>
13154 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13155 All callers updated.
13157 2014-02-19 Doug Evans <dje@google.com>
13159 * inferiors.c (add_thread): Fix whitespace.
13161 2014-02-19 Doug Evans <dje@google.com>
13163 * dll.c (clear_dlls): Replace accessing list implemention details
13165 * gdbthread.h (get_first_thread): Declare.
13166 * inferiors.c (for_each_inferior_with_data): New function.
13167 (get_first_thread): New function.
13168 (find_thread_ptid): Simplify.
13169 (get_first_inferior): New function.
13170 (clear_list): Delete.
13171 (one_inferior_p): New function.
13172 (clear_inferior_list): New function.
13173 (clear_inferiors): Update.
13174 * inferiors.h (for_each_inferior_with_data): Declare.
13175 (clear_inferior_list): Declare.
13176 (one_inferior_p): Declare.
13177 (get_first_inferior): Declare.
13178 * linux-low.c (linux_wait_for_event): Replace accessing list
13179 implemention details with API function.
13180 * server.c (target_running): Ditto.
13181 (accumulate_file_name_length): New function.
13182 (emit_dll_description): New function.
13183 (handle_qxfer_libraries): Replace accessing list implemention
13184 details with API function.
13185 (handle_qxfer_threads_worker): New function.
13186 (handle_qxfer_threads_proper): Replace accessing list implemention
13187 details with API function.
13188 (handle_query): Ditto.
13189 (visit_actioned_threads_callback_ftype): New typedef.
13190 (visit_actioned_threads_data): New struct.
13191 (visit_actioned_threads): Rewrite to be find_inferior callback.
13192 (resume): Call find_inferior.
13193 (handle_status): Replace accessing list implemention
13194 details with API function.
13195 (process_serial_event): Replace accessing list implemention details
13197 * target.c (set_desired_inferior): Replace accessing list implemention
13198 details with API function.
13199 * tracepoint.c (same_process_p): New function.
13200 (gdb_agent_about_to_close): Replace accessing list implemention
13201 details with API function.
13202 * win32-low.c (child_delete_thread): Replace accessing list
13203 implemention details with API function.
13204 (match_dll_by_basename): New function.
13205 (dll_is_loaded_by_basename): New function.
13206 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13207 details call to dll_is_loaded_by_basename.
13209 2014-02-19 Doug Evans <dje@google.com>
13211 * dll.h (struct dll_info): Add comment.
13212 * gdbthread.h (struct thread_info): Add comment.
13213 (current_ptid): Simplify.
13214 * inferiors.c (add_process): Update.
13215 (remove_process): Update.
13216 * inferiors.h (struct process_info): Rename member "head" to "entry".
13217 * linux-low.c (delete_lwp): Update.
13219 (last_thread_of_process_p): Update.
13220 (kill_one_lwp_callback, linux_kill): Update.
13221 (status_pending_p_callback): Update.
13222 (wait_for_sigstop): Update. Simplify read of ptid.
13223 (start_step_over): Update.
13224 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13225 (get_lwp_thread): Update.
13226 (struct lwp_info): Rename member "head" to "entry".
13227 * regcache.h (inferior_list_entry): Delete.
13228 * server.c (kill_inferior_callback): Update.
13229 (detach_or_kill_inferior_callback): Update.
13230 (print_started_pid): Update.
13231 (print_attached_pid): Update.
13232 (process_serial_event): Simplify read of ptid.
13233 * thread-db.c (thread_db_create_event): Update.
13234 (thread_db_get_tls_address): Update.
13235 * win32-low.c (current_inferior_ptid): Simplify.
13237 2014-02-19 Tom Tromey <tromey@redhat.com>
13239 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13241 (target_supports_btrace): Update.
13243 2014-02-14 Yao Qi <yao@codesourcery.com>
13245 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13246 (rsp-low-ipa.o): New target.
13248 2014-02-12 Tom Tromey <tromey@redhat.com>
13250 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13251 convert_ascii_to_int.
13252 * regcache.c (registers_to_string): Likewise.
13253 * remote-utils.c (decode_M_packet): Likewise.
13254 * server.c (process_serial_event): Likewise.
13256 2014-02-12 Tom Tromey <tromey@redhat.com>
13258 * server.c (handle_query, handle_v_run): Use hex2bin, not
13260 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13262 2014-02-12 Tom Tromey <tromey@redhat.com>
13264 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13265 convert_int_to_ascii.
13266 * regcache.c (registers_to_string, collect_register_as_string):
13268 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13270 * server.c (process_serial_event): Likewise.
13271 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13272 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13274 2014-02-12 Tom Tromey <tromey@redhat.com>
13276 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13277 bin2hex, not hexify.
13278 * tracepoint.c (cmd_qtstatus): Likewise.
13280 2014-02-12 Tom Tromey <tromey@redhat.com>
13282 * remote-utils.c (monitor_output): Pass explicit length to
13285 2014-02-12 Tom Tromey <tromey@redhat.com>
13287 * tracepoint.c: Include rsp-low.h.
13288 * server.c: Include rsp-low.h.
13289 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13290 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13292 * remote-utils.c: Include rsp-low.h.
13293 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13294 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13295 (convert_int_to_ascii, convert_ascii_to_int): Move to
13297 * regcache.c: Include rsp-low.h.
13298 * ax.c: Include rsp-low.h.
13299 * Makefile.in (SFILES): Add common/rsp-low.c.
13300 (OBS): Add rsp-low.o.
13301 (rsp-low.o): New target.
13303 2014-02-12 Tom Tromey <tromey@redhat.com>
13305 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13306 Include print-utils.h.
13307 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13308 (plongest, thirty_two, phex_nz): Remove.
13309 * Makefile.in (SFILES): Add common/print-utils.c.
13310 (OBS): Add print-utils.o.
13311 (print-utils-ipa.o): New target.
13312 (print-utils.o): New target.
13313 (IPA_OBJS): Add print-utils-ipa.o.
13315 2014-02-06 Tom Tromey <tromey@redhat.com>
13317 * Makefile.in (SFILES): Fix indentation.
13319 2014-02-05 Doug Evans <dje@google.com>
13321 * linux-low.c (linux_wait_for_event): Improve comment.
13322 (linux_wait_1): Keep current_inferior in sync with event_child.
13324 2014-01-22 Doug Evans <dje@google.com>
13326 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13328 2014-01-22 Doug Evans <dje@google.com>
13330 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13331 * configure: Regenerate.
13332 * config.in: Regenerate.
13333 * Makefile.in (SFILES): Add debug.c.
13334 (OBS): Add debug.o.
13335 * debug.c: New file.
13336 * debug.h: New file.
13337 * linux-aarch64-low.c (*): Update all debugging printfs to use
13338 debug_printf instead of fprintf.
13339 * linux-arm-low.c (*): Ditto.
13340 * linux-cris-low.c (*): Ditto.
13341 * linux-crisv32-low.c (*): Ditto.
13342 * linux-m32r-low.c (*): Ditto.
13343 * linux-sparc-low.c (*): Ditto.
13344 * linux-x86.c (*): Ditto.
13345 * linux-low.c (*): Ditto.
13346 (linux_wait_1): Add calls to debug_enter, debug_exit.
13347 (linux_wait): Remove redundant debugging printf.
13348 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13349 (linux_resume, unstop_all_lwps): Ditto.
13350 * mem-break.c (*): Update all debugging printfs to use
13351 debug_printf instead of fprintf.
13352 * remote-utils.c (*): Ditto.
13353 * thread-db.c (*): Ditto.
13354 * server.c #include <ctype.h>, "gdb_vecs.h".
13355 (debug_threads): Moved to debug.c.
13356 (*): Update all debugging printfs to use debug_printf instead of
13358 (start_inferior): Replace call to fflush with call to debug_flush.
13359 (monitor_show_help): Mention set debug-format.
13360 (parse_debug_format_options): New function.
13361 (handle_monitor_command): Handle "monitor set debug-format".
13362 (gdbserver_usage): Mention --debug-format.
13363 (main): Parse --debug-format.
13364 * server.h (debug_threads): Declaration moved to debug.h.
13365 #include "debug.h".
13366 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13367 trace_debug_1 that uses debug_printf.
13368 (tracepoint_look_up_symbols): Update all debugging printfs to use
13369 debug_printf instead of fprintf.
13371 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13373 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13376 2014-01-17 Pedro Alves <palves@redhat.com>
13379 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13380 defined after including gdb_proc_service.h.
13382 2014-01-16 Doug Evans <dje@google.com>
13384 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13385 (match_dll): Use it.
13387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13389 * target.h (target_ops) <read_btrace>: Change parameters and
13390 return type to allow error reporting.
13391 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13392 trace reading errors on.
13393 * linux-low.c (linux_low_read_btrace): Pass trace reading
13395 (linux_low_disable_btrace): New.
13397 2014-01-15 Doug Evans <dje@google.com>
13399 * inferiors.c (thread_id_to_gdb_id): Delete.
13400 * inferiors.h (thread_id_to_gdb_id): Delete.
13402 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13404 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13405 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13408 2014-01-08 Pedro Alves <palves@redhat.com>
13410 * server.c (handle_status): Don't discard previous queued stop
13411 replies or thread's pending status here.
13412 (main) <disconnection>: Do it here instead.
13414 2014-01-08 Pedro Alves <palves@redhat.com>
13416 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13417 * server.c (visit_actioned_threads, handle_pending_status): New
13419 (handle_v_cont): Factor out parts to ...
13420 (resume): ... this new function. If in all-stop, and a thread
13421 being resumed has a pending status, report it without actually
13423 (myresume): Adjust to use the new 'resume' function.
13424 (clear_pending_status_callback, set_pending_status_callback)
13425 (find_status_pending_thread_callback): New functions.
13426 (handle_status): Handle the case of multiple threads having
13427 interesting statuses to report. Report threads' real last signal
13428 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13429 with an interesting thread to report the status for, instead of
13430 always reporting the status of the first thread.
13432 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13434 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13435 * gdbreplay.c (gdbreplay_version): Likewise.
13437 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13439 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13440 iov.iov_len with the real length in use.
13442 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13444 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13445 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13446 for all targets that use win32-low.c.
13447 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13448 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13450 2013-12-13 Pedro Alves <palves@redhat.com>
13452 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13453 if equal to TARGET_WAITKIND_LOADED.
13454 * win32-low.c (cached_status): New static global.
13455 (win32_wait): Add declaration.
13456 (do_initial_child_stuff): Flush all initial pending debug events
13457 up to the initial breakpoint.
13458 (win32_wait): If CACHED_STATUS was set, return that instead
13459 of doing a real wait. Remove the code resuming the execution
13460 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13461 during the initial phase. Also remove the code changing
13462 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13463 TARGET_WAITKIND_STOPPED.
13465 2013-12-11 Yao Qi <yao@codesourcery.com>
13467 * notif.c (handle_notif_ack): Return 0 if no notification
13470 2013-11-20 Doug Evans <dje@google.com>
13472 * linux-low.c (linux_set_resume_request): Fix comment.
13474 2013-11-20 Doug Evans <dje@google.com>
13476 * linux-low.c (resume_status_pending_p): Tweak comment.
13478 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13480 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13481 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13482 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13483 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13484 (srv_amd64_regobj): Add amd64-mpx.o.
13485 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13486 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13487 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13488 * i387-fp.c (num_pl_bnd_register) Added constant.
13489 (num_pl_bnd_cfg_registers) Added constant.
13490 (struct i387_xsave) Added reserved area and MPX fields.
13491 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13492 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13494 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13495 (init_registers_amd64_mpx_linux): Declare new function.
13496 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13497 (x86_64_regmap): Add MPX registers.
13498 (x86_linux_read_description): Add MPX case.
13499 (initialize_low_arch): Initialize MPX targets.
13501 2013-11-18 Tom Tromey <tromey@redhat.com>
13503 * configure: Rebuild.
13504 * configure.ac: Don't check for stdlib.h.
13505 * gdbreplay.c: Unconditionally include stdlib.h.
13507 2013-11-18 Tom Tromey <tromey@redhat.com>
13509 * config.in: Rebuild.
13510 * configure: Rebuild.
13511 * configure.ac: Don't use AC_HEADER_DIRENT.
13513 2013-11-18 Tom Tromey <tromey@redhat.com>
13515 * server.h: Don't check HAVE_STRING_H.
13516 * gdbreplay.c: Don't check HAVE_STRING_H.
13517 * configure: Rebuild.
13519 2013-11-18 Tom Tromey <tromey@redhat.com>
13521 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13524 2013-11-08 Tom Tromey <tromey@redhat.com>
13526 * configure, config.in: Rebuild.
13527 * configure.ac: Remove unused configury.
13529 2013-11-08 Tom Tromey <tromey@redhat.com>
13531 * acinclude.m4: Include common.m4, codeset.m4.
13532 * configure, config.in: Rebuild.
13533 * configure.ac: Use GDB_AC_COMMON.
13535 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13537 * linux-s390-low.c (HWCAP_S390_TE): New define.
13538 (s390_arch_setup): Consider the TE field in the HWCAP for
13539 determining 'have_regset_tdb'.
13541 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13544 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13547 2013-10-02 Pedro Alves <palves@redhat.com>
13549 * server.c (process_serial_event): Don't output "GDBserver
13550 exiting" if GDB is connected through stdio.
13551 * target.c (mywait): Likewise, be silent if GDB is connected
13554 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13556 * lynx-low.c (lynx_add_threads_after_attach): New function.
13557 (lynx_attach): Remove call to add_thread. Add call to
13558 lynx_add_threads_after_attach instead.
13560 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13562 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13563 * config.in, configure: Regenerated.
13565 2013-09-18 Yao Qi <yao@codesourcery.com>
13568 * server.c (start_inferior): Clear 'resume_info'.
13570 2013-09-16 Jiong Wang <jiwang@tilera.com>
13572 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13575 2013-09-16 Jiong Wang <jiwang@tilera.com>
13577 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13578 linux-tile-low.o to srv_tgtobj.
13580 2013-09-16 Will Newton <will.newton@linaro.org>
13582 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13585 2013-09-06 Pedro Alves <palves@redhat.com>
13587 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13588 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13589 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13590 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13591 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13592 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13594 2013-09-06 Pedro Alves <palves@redhat.com>
13596 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13597 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13599 2013-09-06 Pedro Alves <palves@redhat.com>
13601 * linux-amd64-ipa.c: Include tracepoint.h.
13602 * linux-i386-ipa.c: Include tracepoint.h.
13604 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13606 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13607 (ps_get_thread_area): New function.
13609 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13611 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13612 (initialize_low_arch): Call init_registers_crisv32 rather than
13613 init_register_crisv32.
13615 2013-09-05 Pedro Alves <palves@redhat.com>
13617 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13619 * hostio.h: ... this new file.
13620 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13621 win32-low.c: Include hostio.h.
13623 2013-09-05 Pedro Alves <palves@redhat.com>
13625 * server.h (gdb_client_data, handler_func, callback_handler_func)
13626 (delete_file_handler, add_file_handler, append_callback_event)
13627 (delete_callback_event, start_event_loop, initialize_event_loop):
13628 Move to event-loop.h and include it.
13629 * event-loop.h: New file.
13631 2013-09-05 Pedro Alves <palves@redhat.com>
13633 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13634 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13635 (loaded_dll, unloaded_dll): Move to ...
13636 * dll.h: ... this new file.
13637 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13639 2013-09-05 Pedro Alves <palves@redhat.com>
13641 * server.h (current_process, get_thread_process, all_processes)
13642 (add_inferior_to_list, for_each_inferior, current_inferior)
13643 (remove_inferior, add_process, remove_process, find_process_pid)
13644 (have_started_inferiors_p, have_attached_inferiors_p)
13645 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13646 (clear_inferiors, find_inferior, find_inferior_id)
13647 (inferior_target_data, set_inferior_target_data)
13648 (inferior_regcache_data, set_inferior_regcache_data): Move to
13649 inferiors.h, and include it.
13650 * inferiors.h: New file.
13652 2013-09-05 Pedro Alves <palves@redhat.com>
13654 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13658 2013-09-05 Pedro Alves <palves@redhat.com>
13660 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13662 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13663 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13664 (handle_tracepoint_general_set, handle_tracepoint_query)
13665 (tracepoint_finished_step, tracepoint_was_hit)
13666 (release_while_stepping_state_list, current_traceframe)
13667 (in_readonly_region, traceframe_read_mem)
13668 (fetch_traceframe_registers, traceframe_read_sdata)
13669 (traceframe_read_info, struct fast_tpoint_collect_status)
13670 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13671 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13672 (supply_fast_tracepoint_registers)
13673 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13674 (ipa_tdesc, claim_trampoline_space)
13675 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13676 (agent_mem_read, agent_get_trace_state_variable_value)
13677 (agent_set_trace_state_variable_value, agent_tsv_read)
13678 (agent_mem_read_string, get_raw_reg_func_addr)
13679 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13680 * tracepoint.h: ... this new file.
13682 2013-09-05 Pedro Alves <palves@redhat.com>
13684 * server.h (perror_with_name, error, fatal, warning, paddress)
13685 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13687 * utils.h: New file.
13689 2013-09-05 Pedro Alves <palves@redhat.com>
13691 * server.h (remote_debug, noack_mode, transport_is_reliable)
13692 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13693 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13694 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13695 (write_enn, initialize_async_io, enable_async_io)
13696 (disable_async_io, check_remote_input_interrupt_request)
13697 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13698 (dead_thread_notify, prepare_resume_reply)
13699 (decode_address_to_semicolon, decode_address, decode_m_packet)
13700 (decode_M_packet, decode_X_packet, decode_xfer_write)
13701 (decode_search_memory_packet, unhexify, hexify)
13702 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13703 (look_up_one_symbol, relocate_instruction)
13704 (monitor_output): Move to remote-utils.h, and include it.
13705 * remote-utils.h: New file.
13707 2013-09-05 Pedro Alves <palves@redhat.com>
13709 * server.h (_): Delete.
13711 2013-09-02 Pedro Alves <palves@redhat.com>
13713 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13714 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13716 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13718 2013-09-02 Pierre Muller <muller@sourceware.org>
13720 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13721 or WriteProcessMemory complete successfully and handle
13722 ERROR_PARTIAL_COPY error.
13724 2013-09-02 Pedro Alves <palves@redhat.com>
13726 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13727 error instead of EIO.
13729 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13732 * linux-low.c: Include filestuff.h.
13733 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13734 * lynx-low.c: Include filestuff.h.
13735 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13736 * server.c: Include filestuff.h.
13737 (main): Call notice_open_fds.
13738 * spu-low.c: Include filestuff.h.
13739 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13741 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13743 * Makefile.in: Explain why ../target and ../nat are not
13744 listed as include file search paths.
13745 (linux-waitpid.o): New object file rule.
13746 * configure.srv (srv_native_linux_obj): New variable.
13747 Replace all occurrences of linux native object files with
13748 $srv_native_linux_obj.
13749 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13750 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13751 (linux_enable_event_reporting): Remove declaration.
13752 (my_waitpid): Moved to common/linux-waitpid.c.
13753 (linux_wait_for_event): Pass ptid when calling
13754 linux_enable_event_reporting.
13755 (linux_supports_tracefork_flag): Remove.
13756 (linux_enable_event_reporting): Likewise.
13757 (linux_tracefork_grandchild): Remove.
13758 (STACK_SIZE): Moved to common/linux-ptrace.c.
13759 (linux_tracefork_child): Remove.
13760 (linux_test_for_tracefork): Remove.
13761 (linux_look_up_symbols): Call linux_supports_traceclone.
13762 (initialize_low): Remove call to linux_test_for_tracefork.
13763 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13764 common/linux-ptrace.h.
13765 (PTRACE_TYPE_ARG4): Likewise.
13766 Include linux-ptrace.h.
13768 2013-08-21 Pedro Alves <palves@redhat.com>
13770 * config.in: Renegerate.
13772 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13774 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13775 (SFILES): Remove $(srcdir)/common/target-common.c and
13776 add $(srcdir)/target/waitstatus.c.
13777 (OBS): Remove target-common.o and add waitstatus.o.
13778 (server_h): Remove $(srcdir)/../common/target-common.h and
13779 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13780 and $(srcdir)/../target/waitstatus.h.
13781 (target-common.o): Remove.
13782 (waitstatus.o): New target object file.
13783 * target.h: Do not include target-common.h and
13784 include target/resume.h, target/wait.h and
13785 target/waitstatus.h.
13787 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13789 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13790 to PTRACE_TYPE_ARG3.
13791 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13792 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13794 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13795 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13797 2013-07-27 Jie Zhang <jie@codesourcery.com>
13798 Daniel Jacobowitz <dan@codesourcery.com>
13799 Yao Qi <yao@codesourcery.com>
13801 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13802 (mips-linux-watch.o): New rule.
13803 (mips_linux_watch_h): New variable.
13804 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13806 * linux-mips-low.c: Include mips-linux-watch.h.
13807 (struct arch_process_info, struct arch_lwp_info): New.
13808 (update_watch_registers_callback): New function.
13809 (mips_linux_new_process, mips_linux_new_thread) New functions.
13810 (mips_linux_prepare_to_resume, mips_insert_point): New
13812 (mips_remove_point, mips_stopped_by_watchpoint): New
13814 (rsp_bp_type_to_target_hw_bp_type): New function.
13815 (mips_stopped_data_address): New function.
13816 (the_low_target): Add watchpoint support functions.
13818 2013-07-27 Yao Qi <yao@codesourcery.com>
13820 * i386-low.c: Include break-common.h.
13821 (enum target_hw_bp_type): Remove.
13823 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13825 * Makefile.in (SFILES): /common/target-common.c.
13826 (OBS): Add target-common.o.
13827 (server_h): Add $(srcdir)/../common/target-common.h.
13828 (target-common.o): New target.
13829 * server.c (queue_stop_reply_callback): Free
13830 status string after use.
13831 * target.c (target_waitstatus_to_string): Remove.
13832 * target.h: Include target-common.h.
13833 (resume_kind): Likewise.
13834 (target_waitkind): Likewise.
13835 (target_waitstatus): Likewise.
13836 (TARGET_WNOHANG): Likewise.
13838 2013-07-04 Yao Qi <yao@codesourcery.com>
13840 * Makefile.in (host_alias): Use @host_noncanonical@.
13841 (target_alias): Use @target_noncanonical@.
13842 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13843 ACX_NONCANONICAL_HOST.
13844 * configure: Regenerated.
13847 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13849 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13850 * configure: Rebuild.
13851 * Makefile.in (version_host, version_target): Get from configure.
13852 (version.c): Use $(version_host) and $(version_target).
13854 2013-07-03 Pedro Alves <palves@redhat.com>
13856 * Makefile.in (config.status): Depend on development.sh.
13857 * acinclude.m4: Include libmcheck.m4.
13858 * configure: Regenerate.
13860 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13862 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13863 attribute inside the parentheses.
13864 (winapi_DebugSetProcessKillOnExit): Ditto.
13865 (winapi_DebugBreakProcess): Ditto.
13866 (winapi_GenerateConsoleCtrlEvent): Ditto.
13868 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13870 * notif.h (notif_event): Add a dummy member to avoid compiler
13873 2013-07-01 Pedro Alves <palves@redhat.com>
13875 * hostio.c (HOSTIO_PATH_MAX): Define.
13876 (require_filename, handle_open, handle_unlink, handle_readlink):
13879 2013-07-01 Pedro Alves <palves@redhat.com>
13881 * server.h: Include "pathmax.h".
13882 * linux-low.c: Don't include sys/param.h.
13883 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13885 * win32-low.c: Don't include sys/param.h.
13886 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13888 2013-07-01 Pedro Alves <palves@redhat.com>
13890 * event-loop.c: Don't check HAVE_UNISTD_H before including
13892 * gdbreplay.c: Likewise.
13893 * remote-utils.c: Likewise.
13894 * server.c: Likewise.
13895 * configure.ac: Don't check for unistd.h.
13896 * configure: Regenerate.
13898 2013-06-28 Tom Tromey <tromey@redhat.com>
13900 * Makefile.in (version.c): Use version.in, not
13903 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13905 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13906 * configure: Rebuild.
13907 * Makefile.in (version_host, version_target): Get from configure.
13908 (version.c): Use $(version_host) and $(version_target).
13910 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13912 Fix trace-status to output user name without trailing colon.
13913 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13915 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13917 Fix trace-status to output proper start-time and stop-time.
13918 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13919 output start time and stop time in hex as gdb expects.
13921 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13923 * tracepoint.c (build_traceframe_info_xml): Output trace state
13924 variables present in the trace buffer.
13926 2013-06-24 Tom Tromey <tromey@redhat.com>
13928 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13930 (version.o): Remove.
13931 * gdbreplay.c: Include version.h.
13932 (version, host_name): Don't declare.
13933 * server.h: Include version.h.
13934 (version, host_name): Don't declare.
13936 2013-06-12 Pedro Alves <palves@redhat.com>
13938 * linux-x86-low.c (linux_is_elf64): Delete global.
13939 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13940 with local linux_pid_exe_is_elf_64_file use.
13942 2013-06-11 Pedro Alves <palves@redhat.com>
13944 * linux-low.c (regset_disabled, disable_regset): New functions.
13945 (regsets_fetch_inferior_registers)
13946 (regsets_store_inferior_registers): Use them.
13947 (initialize_regsets_info); Don't allocate the disabled_regsets
13949 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13952 2013-06-11 Pedro Alves <palves@redhat.com>
13954 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13957 2013-06-11 Pedro Alves <palves@redhat.com>
13959 * linux-x86-low.c (initialize_low_arch): Call
13960 init_registers_x32_avx_linux.
13962 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13964 Fix compatibility with Android Bionic.
13965 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13968 2013-06-07 Pedro Alves <palves@redhat.com>
13971 * Makefile.in (OBS): Add tdesc.o.
13972 (IPA_OBJS): Add tdesc-ipa.o.
13973 (tdesc-ipa.o): New rule.
13974 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13976 * linux-low.c (new_inferior): Delete.
13977 (disabled_regsets, num_regsets): Delete.
13978 (linux_add_process): Adjust to set the new per-process
13980 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13981 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13982 was a stop. When calling arch_setup, switch the current inferior
13983 to the thread that got an event.
13984 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13985 (regsets_fetch_inferior_registers)
13986 (regsets_store_inferior_registers): New regsets_info parameter.
13988 (linux_register_in_regsets): New regs_info parameter. Adjust to
13990 (register_addr, fetch_register, store_register): New usrregs_info
13991 parameter. Adjust to use it.
13992 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13993 parameter regs_info. Adjust to use it.
13994 (linux_fetch_registers): Get the current inferior's regs_info, and
13996 (linux_store_registers): Ditto.
13997 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13998 (initialize_low): Don't initialize the target_regsets here. Call
13999 initialize_low_arch.
14000 * linux-low.h (target_regsets): Delete declaration.
14001 (struct regsets_info): New.
14002 (struct usrregs_info): New.
14003 (struct regs_info): New.
14004 (struct process_info_private) <new_inferior>: New field.
14005 (struct linux_target_ops): Delete the num_regs, regmap, and
14006 regset_bitmap fields. New field regs_info.
14007 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14008 * i387-fp.c (num_xmm_registers): Delete.
14009 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14010 calls to new interface.
14011 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14012 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14013 Infer the number of xmm registers from the regcache's target
14015 * i387-fp.h (num_xmm_registers): Delete.
14016 * inferiors.c (add_thread): Don't install the thread's regcache
14018 * proc-service.c (gregset_info): Fetch the current inferior's
14019 regs_info. Adjust to use it.
14020 * regcache.c: Include tdesc.h.
14021 (register_bytes, reg_defs, num_registers)
14022 (gdbserver_expedite_regs): Delete.
14023 (get_thread_regcache): If the thread doesn't have a regcache yet,
14024 create one, instead of aborting gdbserver.
14025 (regcache_invalidate_one): Rename to ...
14026 (regcache_invalidate_thread): ... this.
14027 (regcache_invalidate_one): New.
14028 (regcache_invalidate): Only invalidate registers of the current
14030 (init_register_cache): Add target_desc parameter, and use it.
14031 (new_register_cache): Ditto. Assert the target description has a
14032 non zero registers_size.
14033 (regcache_cpy): Add assertions. Adjust.
14034 (realloc_register_cache, set_register_cache): Delete.
14035 (registers_to_string, registers_from_string): Adjust.
14036 (find_register_by_name, find_regno, find_register_by_number)
14037 (register_cache_size): Add target_desc parameter, and use it.
14038 (free_register_cache_thread, free_register_cache_thread_one)
14039 (regcache_release, register_cache_size): New.
14040 (register_size): Add target_desc parameter, and use it.
14041 (register_data, supply_register, supply_register_zeroed)
14042 (supply_regblock, supply_register_by_name, collect_register)
14043 (collect_register_as_string, collect_register_by_name): Adjust.
14044 * regcache.h (struct target_desc): Forward declare.
14045 (struct regcache) <tdesc>: New field.
14046 (init_register_cache, new_register_cache): Add target_desc
14048 (regcache_invalidate_thread): Declare.
14049 (regcache_invalidate_one): Delete declaration.
14050 (regcache_release): Declare.
14051 (find_register_by_number, register_cache_size, register_size)
14052 (find_regno): Add target_desc parameter.
14053 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14055 * remote-utils.c: Include tdesc.h.
14056 (outreg, prepare_resume_reply): Adjust.
14057 * server.c: Include tdesc.h.
14058 (gdbserver_xmltarget): Delete declaration.
14059 (get_features_xml, process_serial_event): Adjust.
14060 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14062 (struct process_info) <tdesc>: New field.
14063 (ipa_tdesc): Declare.
14064 * tdesc.c: New file.
14065 * tdesc.h: New file.
14066 * tracepoint.c: Include tdesc.h.
14067 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14068 (get_context_regcache): Adjust to pass ipa_tdesc down.
14069 (do_action_at_tracepoint): Adjust to get the register cache size
14070 from the context regcache's description.
14071 (traceframe_walk_blocks): Adjust to get the register cache size
14072 from the current trace frame's description.
14073 (traceframe_get_pc): Adjust to get current trace frame's
14074 description and pass it down.
14075 (gdb_collect): Adjust to get the register cache size from the
14077 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14078 (gdbserver_xmltarget): Delete.
14079 (initialize_low_tracepoint): Set the ipa's target description.
14080 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14081 (initialize_low_tracepoint): Set the ipa's target description.
14082 * linux-x86-low.c: Include tdesc.h.
14083 [__x86_64__] (is_64bit_tdesc): New.
14084 (ps_get_thread_area, x86_get_thread_area): Use it.
14085 (i386_cannot_store_register): Rename to ...
14086 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14087 (i386_cannot_fetch_register): Rename to ...
14088 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14089 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14091 (target_regsets): Rename to ...
14092 (x86_regsets): ... this.
14093 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14095 (x86_siginfo_fixup): Use is_64bit_tdesc.
14096 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14097 (tdesc_x32_avx_linux, tdesc_x32_linux)
14098 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14100 (x86_linux_update_xmltarget): Delete.
14101 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14102 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14103 (AMD64_LINUX_USER64_CS): New.
14104 (x86_linux_read_description): New, based on
14105 x86_linux_update_xmltarget.
14106 (same_process_callback): New.
14107 (x86_arch_setup_process_callback): New.
14108 (x86_linux_update_xmltarget): New.
14109 (x86_regsets_info): New.
14110 (amd64_linux_regs_info): New.
14111 (i386_linux_usrregs_info): New.
14112 (i386_linux_regs_info): New.
14113 (x86_linux_regs_info): New.
14114 (x86_arch_setup): Reimplement.
14115 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14116 (x86_emit_ops): Ditto.
14117 (the_low_target): Adjust. Install x86_linux_regs_info,
14118 x86_cannot_fetch_register, and x86_cannot_store_register.
14119 (initialize_low_arch): New.
14120 * linux-ia64-low.c (tdesc_ia64): Declare.
14121 (ia64_fetch_register): Adjust.
14122 (ia64_usrregs_info, regs_info): New globals.
14123 (ia64_regs_info): New function.
14124 (the_low_target): Adjust.
14125 (initialize_low_arch): New function.
14126 * linux-sparc-low.c (tdesc_sparc64): Declare.
14127 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14129 (sparc_arch_setup): New function.
14130 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14131 (the_low_target): Adjust.
14132 (initialize_low_arch): New function.
14133 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14134 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14135 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14136 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14137 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14138 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14139 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14140 (tdesc_powerpc_isa205_vsx64l): Declare.
14141 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14142 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14143 (ppc_set_pc, ppc_get_hwcap): Adjust.
14144 (ppc_usrregs_info): Forward declare.
14145 (!__powerpc64__) ppc_regmap_adjusted: New global.
14146 (ppc_arch_setup): Adjust to the current process'es target
14148 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14149 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14150 (ppc_store_evrregset): Adjust.
14151 (target_regsets): Rename to ...
14152 (ppc_regsets): ... this, and make static.
14153 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14154 (ppc_regs_info): New function.
14155 (the_low_target): Adjust.
14156 (initialize_low_arch): New function.
14157 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14158 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14159 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14160 (tdesc_s390x_linux64v2): Declare.
14161 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14162 (s390_fill_gregset, s390_store_last_break): Adjust.
14163 (target_regsets): Rename to ...
14164 (s390_regsets): ... this, and make static.
14165 (s390_get_pc, s390_set_pc): Adjust.
14166 (s390_get_hwcap): New target_desc parameter, and use it.
14167 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14168 (s390_arch_setup): Adjust to set the current process'es target
14169 description. Don't adjust the regmap.
14170 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14171 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14172 (regs_info_3264): New globals.
14173 (s390_regs_info): New function.
14174 (the_low_target): Adjust.
14175 (initialize_low_arch): New function.
14176 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14177 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14178 [__mips64] (init_registers_mips_linux)
14179 (init_registers_mips_dsp_linux): Delete defines.
14180 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14181 (have_dsp): New global.
14182 (mips_read_description): New, based on mips_arch_setup.
14183 (mips_arch_setup): Reimplement.
14184 (get_usrregs_info): New function.
14185 (mips_cannot_fetch_register, mips_cannot_store_register)
14186 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14187 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14188 (target_regsets): Rename to ...
14189 (mips_regsets): ... this, and make static.
14190 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14191 (dsp_regs_info, regs_info): New globals.
14192 (mips_regs_info): New function.
14193 (the_low_target): Adjust.
14194 (initialize_low_arch): New function.
14195 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14196 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14198 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14199 (arm_read_description): New, with bits factored from
14201 (arm_arch_setup): Reimplement.
14202 (target_regsets): Rename to ...
14203 (arm_regsets): ... this, and make static.
14204 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14205 (arm_regs_info): New function.
14206 (the_low_target): Adjust.
14207 (initialize_low_arch): New function.
14208 * linux-m68k-low.c (tdesc_m68k): Declare.
14209 (target_regsets): Rename to ...
14210 (m68k_regsets): ... this, and make static.
14211 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14212 (m68k_regs_info): New function.
14213 (m68k_arch_setup): New function.
14214 (the_low_target): Adjust.
14215 (initialize_low_arch): New function.
14216 * linux-sh-low.c (tdesc_sharch): Declare.
14217 (target_regsets): Rename to ...
14218 (sh_regsets): ... this, and make static.
14219 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14220 (sh_regs_info, sh_arch_setup): New functions.
14221 (the_low_target): Adjust.
14222 (initialize_low_arch): New function.
14223 * linux-bfin-low.c (tdesc_bfin): Declare.
14224 (bfin_arch_setup): New function.
14225 (bfin_usrregs_info, regs_info): New globals.
14226 (bfin_regs_info): New function.
14227 (the_low_target): Adjust.
14228 (initialize_low_arch): New function.
14229 * linux-cris-low.c (tdesc_cris): Declare.
14230 (cris_arch_setup): New function.
14231 (cris_usrregs_info, regs_info): New globals.
14232 (cris_regs_info): New function.
14233 (the_low_target): Adjust.
14234 (initialize_low_arch): New function.
14235 * linux-cris-low.c (tdesc_crisv32): Declare.
14236 (cris_arch_setup): New function.
14237 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14238 (cris_regs_info): New function.
14239 (the_low_target): Adjust.
14240 (initialize_low_arch): New function.
14241 * linux-m32r-low.c (tdesc_m32r): Declare.
14242 (m32r_arch_setup): New function.
14243 (m32r_usrregs_info, regs_info): New globals.
14244 (m32r_regs_info): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14247 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14248 (tic6x_usrregs_info): Forward declare.
14249 (tic6x_read_description): New function, based on ...
14250 (tic6x_arch_setup): ... this. Reimplement.
14251 (target_regsets): Rename to ...
14252 (tic6x_regsets): ... this, and make static.
14253 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14254 (tic6x_regs_info): New function.
14255 (the_low_target): Adjust.
14256 (initialize_low_arch): New function.
14257 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14258 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14259 (target_regsets): Rename to ...
14260 (xtensa_regsets): ... this, and make static.
14261 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14263 (xtensa_arch_setup, xtensa_regs_info): New functions.
14264 (the_low_target): Adjust.
14265 (initialize_low_arch): New function.
14266 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14267 (nios2_arch_setup): Set the current process'es tdesc.
14268 (target_regsets): Rename to ...
14269 (nios2_regsets): ... this.
14270 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14271 (nios2_regs_info): New function.
14272 (the_low_target): Adjust.
14273 (initialize_low_arch): New function.
14274 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14275 (aarch64_arch_setup): Set the current process'es tdesc.
14276 (target_regsets): Rename to ...
14277 (aarch64_regsets): ... this.
14278 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14279 (aarch64_regs_info): New function.
14280 (the_low_target): Adjust.
14281 (initialize_low_arch): New function.
14282 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14284 (target_regsets): Rename to ...
14285 (tile_regsets): ... this.
14286 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14287 (tile_regs_info): New function.
14288 (tile_arch_setup): Set the current process'es tdesc.
14289 (the_low_target): Adjust.
14290 (initialize_low_arch): New function.
14291 * spu-low.c (tdesc_spu): Declare.
14292 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14293 * win32-arm-low.c (tdesc_arm): Declare.
14294 (arm_arch_setup): New function.
14295 (the_low_target): Install arm_arch_setup instead of
14296 init_registers_arm.
14297 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14298 (init_windows_x86): Rename to ...
14299 (i386_arch_setup): ... this. Set `win32_tdesc'.
14300 (the_low_target): Adjust.
14301 * win32-low.c (win32_tdesc): New global.
14302 (child_add_thread): Don't create the thread cache here.
14303 (do_initial_child_stuff): Set the new process'es tdesc.
14304 * win32-low.h (struct target_desc): Forward declare.
14305 (win32_tdesc): Declare.
14306 * lynx-i386-low.c (tdesc_i386): Declare global.
14307 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14308 * lynx-low.c (lynx_tdesc): New global.
14309 (lynx_add_process): Set the new process'es tdesc.
14310 * lynx-low.h (struct target_desc): Forward declare.
14311 (lynx_tdesc): Declare global.
14312 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14313 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14314 * nto-low.c (nto_tdesc): New global.
14315 (do_attach): Set the new process'es tdesc.
14316 * nto-low.h (struct target_desc): Forward declare.
14317 (nto_tdesc): Declare.
14318 * nto-x86-low.c (tdesc_i386): Declare.
14319 (nto_x86_arch_setup): Set `nto_tdesc'.
14321 2013-06-04 Gary Benson <gbenson@redhat.com>
14323 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14324 to qSupported response when appropriate.
14325 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14326 with nonzero-length annex.
14327 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14328 arguments supplied in annex.
14330 2013-05-31 Doug Evans <dje@google.com>
14333 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14334 64 bits in 64-cross-32 environment.
14336 2013-05-28 Pedro Alves <palves@redhat.com>
14338 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14339 (aarch64-without-fpu.c): Delete rule.
14340 * configure.srv (aarch64*-*-linux*): Remove references to
14341 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14342 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14345 2013-05-24 Pedro Alves <palves@redhat.com>
14347 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14348 instead of strchr/decode_address. Error if the range isn't split
14349 with a ','. Don't assume there's be a ':' in the action.
14351 2013-05-23 Yao Qi <yao@codesourcery.com>
14352 Pedro Alves <palves@redhat.com>
14354 * linux-low.c (lwp_in_step_range): New function.
14355 (linux_wait_1): If the thread was range stepping and stopped
14356 outside the stepping range, report the stop to GDB. Otherwise,
14357 continue stepping. Add range stepping debug output.
14358 (linux_set_resume_request): Copy the step range from the resume
14359 request to the lwp.
14360 (linux_supports_range_stepping): New.
14361 (linux_target_ops) <supports_range_stepping>: Set to
14362 linux_supports_range_stepping.
14363 * linux-low.h (struct linux_target_ops)
14364 <supports_range_stepping>: New field.
14365 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14366 * linux-x86-low.c (x86_supports_range_stepping): New.
14367 (the_low_target) <supports_range_stepping>: Set to
14368 x86_supports_range_stepping.
14369 * server.c (handle_v_cont): Handle 'r' action.
14370 (handle_v_requests): Append ";r" if the target supports range
14372 * target.h (struct thread_resume) <step_range_start,
14373 step_range_end>: New fields.
14374 (struct target_ops) <supports_range_stepping>:
14376 (target_supports_range_stepping): New macro.
14378 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14380 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14381 confusion in comment.
14383 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14385 * lynx-low.c (struct process_info_private): New type.
14386 (lynx_add_process): New function.
14387 (lynx_create_inferior, lynx_attach): Replace calls to
14388 add_process by calls to lynx_add_process.
14389 (lynx_resume): If PTID is null, then try using
14390 current_process()->private->last_wait_event_ptid.
14392 (lynx_clear_inferiors): Delete. The contents of that function
14393 has been inlined in lynx_mourn;
14394 (lynx_wait_1): Save the ptid in the process's private data.
14395 (lynx_mourn): Free the process' private data. Replace call
14396 to lynx_clear_inferiors by call to clear_inferiors.
14398 2013-05-17 Yao Qi <yao@codesourcery.com>
14400 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14403 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14405 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14406 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14407 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14408 PT_TEXT_END_ADDR guards. Update comments.
14409 (linux_target_op) <read_offsets>: Conditionally define to
14410 linux_read_offsets if the target is UCLIBC and if it defines
14411 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14413 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14414 Andrew Jenner <andrew@codesourcery.com>
14416 * Makefile.in (SFILES): Add linux-nios2-low.c.
14417 (clean): Add action to delete nios2-linux.c.
14418 (nios2-linux.c): New rule.
14419 * configure.srv: Add nios2*-*-linux*.
14420 * linux-nios2-low.c: New.
14422 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14424 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14426 2013-04-25 Hui Zhu <hui@codesourcery.com>
14429 * ax.c (ax_printf): Add fflush.
14431 2013-04-22 Tom Tromey <tromey@redhat.com>
14433 * Makefile.in (SFILES): Add filestuff.c.
14434 (OBS): Add filestuff.o.
14435 (filestuff.o): New target.
14436 * config.in, configure: Rebuild.
14437 * configure.ac: Check for fdwalk, pipe2.
14439 2013-04-17 Pedro Alves <palves@redhat.com>
14441 * configure.ac (USE_THREAD_DB): Delete variable.
14442 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14443 Don't AC_SUBST USE_THREAD_DB.
14444 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14445 * config.in, configure: Regenerate.
14447 2013-04-16 Pedro Alves <palves@redhat.com>
14449 * linux-low.h (struct lwp_info) <thread_known>: Move under
14450 the USE_THREAD_DB #ifdef.
14452 2013-04-16 Pedro Alves <palves@redhat.com>
14454 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14455 (linux-low.o): Delete rule.
14456 * linux-low.h: Always include "gdb_thread_db.h" instead of
14457 conditionally including thread_db.h.
14458 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14461 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14463 * Makefile.in (install-only): Fix make install regression.
14465 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14467 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14468 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14470 * gdbserver.1: Remove.
14472 2013-03-22 Pedro Alves <palves@redhat.com>
14474 * linux-low.c (handle_extended_wait): Don't call
14475 linux_enable_event_reporting.
14477 2013-03-15 Tony Theodore <tonyt@logyst.com>
14480 * Makefile.in (SHELL): Use @SHELL@.
14482 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14484 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14487 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14489 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14490 Remove extraneous NULL element.
14492 2013-03-13 Yao Qi <yao@codesourcery.com>
14494 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14495 'V' block in trace frame.
14497 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14499 * target.h (struct target_ops): Add btrace ops.
14500 (target_supports_btrace): New macro.
14501 (target_enable_btrace): New macro.
14502 (target_disable_btrace): New macro.
14503 (target_read_btrace): New macro.
14504 * gdbthread.h (struct thread_info): Add btrace field.
14505 * server.c: Include btrace-common.h.
14506 (handle_btrace_general_set): New function.
14507 (handle_btrace_enable): New function.
14508 (handle_btrace_disable): New function.
14509 (handle_general_set): Call handle_btrace_general_set.
14510 (handle_qxfer_btrace): New function.
14511 (struct qxfer qxfer_packets[]): Add btrace entry.
14512 * inferiors.c (remove_thread): Disable btrace.
14513 * linux-low: Include linux-btrace.h.
14514 (linux_low_enable_btrace): New function.
14515 (linux_low_read_btrace): New function.
14516 (linux_target_ops): Add btrace ops.
14517 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14518 Add srv_linux_btrace=yes.
14519 (x86_64-*-linux*): Add linux-btrace.o.
14520 Add srv_linux_btrace=yes.
14521 * configure.ac: Define HAVE_LINUX_BTRACE.
14522 * config.in: Regenerated.
14523 * configure: Regenerated.
14525 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14527 * server.c (handle_qxfer): Preserve error message if -3 is
14529 (qxfer): Document the -3 return value.
14531 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14533 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14534 (linux_btrace_h): New variable.
14535 (linux-btrace.o): New rule.
14537 2013-03-08 Stan Shebs <stan@codesourcery.com>
14538 Hafiz Abid Qadeer <abidh@codesourcery.com>
14540 * tracepoint.c (trace_buffer_size): New global.
14541 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14542 (init_trace_buffer): Change to one-argument function. Allocate
14543 trace buffer memory.
14544 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14545 handle QTBuffer:size packet.
14546 (cmd_bigqtbuffer_size): New function.
14547 (initialize_tracepoint): Call init_trace_buffer with
14548 DEFAULT_TRACE_BUFFER_SIZE.
14549 * server.c (handle_query): Add QTBuffer:size in the
14552 2013-03-07 Yao Qi <yao@codesourcery.com>
14554 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14555 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14557 (cmd_qtsp): Adjust condition. Do post increment.
14558 Set cur_action and cur_step_action back to 0.
14560 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14563 * linux-low.c (linux_write_memory): Return early success if LEN is
14566 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14568 * configure.srv: Add x86_64-*-cygwin* as target.
14570 2013-02-28 Tom Tromey <tromey@redhat.com>
14572 * configure.ac: Invoke AC_SYS_LARGEFILE.
14573 * configure, config.in: Rebuild.
14575 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14577 * win32-low.c: Throughout, fix format strings and casts of
14578 printf-like functions to avoid type related warnings on all
14580 (get_child_debug_event): Print dwDebugEventCode as hex since
14581 that's how it's usually documented.
14583 2013-02-28 Yao Qi <yao@codesourcery.com>
14585 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14588 2013-02-27 Jiong Wang <jiwang@tilera.com>
14590 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14591 (reg-tilegx32.c): New rule.
14592 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14593 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14594 different register info initializer according to elf class.
14595 (init_registers_tilgx32): New function. The tilegx32 register info
14597 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14598 (tile_store_gregset): Likewise.
14600 2013-02-27 Yao Qi <yao@codesourcery.com>
14602 * server.c (process_point_options): Print debug message when
14603 debug_threads is true.
14605 2013-02-26 Yao Qi <yao@codesourcery.com>
14607 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14609 2013-02-19 Pedro Alves <palves@redhat.com>
14610 Kai Tietz <ktietz@redhat.com>
14614 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14615 instead of strtoul to extract address from packet.
14616 (process_serial_event) <'z'>: Likewise.
14618 2013-02-18 Yao Qi <yao@codesourcery.com>
14620 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14622 2013-02-14 Pedro Alves <palves@redhat.com>
14626 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14627 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14629 2013-02-14 Pedro Alves <palves@redhat.com>
14631 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14633 2013-02-14 Pedro Alves <palves@redhat.com>
14635 * tracepoint.c (save_string): Delete.
14636 (add_tracepoint_action): Use savestring instead of save_string.
14638 2013-02-12 Pedro Alves <palves@redhat.com>
14640 * linux-xtensa-low.c: Ditto.
14641 * xtensa-xtregs.c: Ditto.
14643 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14645 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14648 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14650 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14651 aarch64_num_wp_regs and aarch64_num_bp_regs to
14652 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14654 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14656 * linux-aarch64-low.c (ps_get_thread_area): Replace
14657 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14659 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14660 Marcus Shawcroft <marcus.shawcroft@arm.com>
14661 Nigel Stephens <nigel.stephens@arm.com>
14662 Yufeng Zhang <yufeng.zhang@arm.com>
14664 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14665 (aarch64.c, aarch64-without-fpu.c): New targets.
14666 * configure.srv (aarch64*-*-linux*): New.
14667 * linux-aarch64-low.c: New file.
14669 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14671 * linux-low.c (handle_extended_wait, linux_create_inferior)
14672 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14673 (dequeue_one_deferred_signal, linux_resume_one_thread)
14674 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14675 (linux_tracefork_grandchild, linux_test_for_tracefork)
14676 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14677 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14678 where the argument is 0.
14680 2013-01-25 Yao Qi <yao@codesourcery.com>
14682 * event-loop.c: Include "queue.h".
14683 (gdb_event_p): New typedef.
14684 (struct gdb_event) <next_event>: Remove.
14685 (event_queue): Change to QUEUE(gdb_event_p).
14686 (async_queue_event): Remove.
14687 (gdb_event_xfree): New.
14688 (initialize_event_loop): New.
14689 (process_event): Use API from QUEUE.
14690 (wait_for_event): Likewise.
14691 * server.c (main): Call initialize_event_loop.
14692 * server.h (initialize_event_loop): Declare.
14694 2013-01-18 Yao Qi <yao@codesourcery.com>
14696 * ax.h (struct eval_agent_expr_context): New.
14697 (gdb_eval_agent_expr): Update declaration.
14698 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14699 TFRAME. Add new argument CTX.
14700 * server.h (struct eval_agent_expr_context): Declare.
14701 (agent_mem_read, agent_tsv_read): Update declaration.
14702 (agent_mem_read_string): Likewise.
14703 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14704 (add_traceframe_block): Add new argument TPOINT.
14705 Increase TPOINT->traceframe_usage.
14706 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14707 eval_tracepoint_agent_expr.
14708 (condition_true_at_tracepoint): Likewise.
14709 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14710 (agent_mem_read_string, agent_tsv_read): Likewise.
14712 2013-01-16 Yao Qi <yao@codesourcery.com>
14714 * linux-low.c (linux_resume_one_lwp): Don't check
14715 'lwp->bp_reinsert != 0'.
14717 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14718 Pedro Alves <palves@redhat.com>
14720 * lynx-low.c (ptrace_request_to_str): Define a temporary
14721 macro and use it to simplify this function's implementation.
14723 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14725 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14728 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14730 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14732 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14734 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14736 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14738 * lynx-low.c (lynx_resume): Use the resume_info parameter
14739 to determine the ptid for the lynx_ptrace call, unless
14740 it is equal to minus_one_ptid, in which case we use the
14741 ptid of the current_inferior.
14742 (lynx_wait_1): After having received a thread create/exit
14743 event, resume the inferior's execution using the signaling
14744 thread's ptid, rather than the old ptid.
14746 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14748 * lynx-low.c (lynx_resume): Delete variable ret.
14750 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14752 * gdbreplay.c (gdbreplay_version): Update copyright year.
14753 * server.c (gdbserver_version): Likewise.
14755 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14757 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14760 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14762 * lynx-low.c (ptrace_request_to_str): Add handling for
14763 PTRACE_GETTRACESIG.
14765 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14767 * lynx-low.c (lynx_attach): Delete variable new_process.
14769 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14771 * lynx-low.c (lynx_create_inferior): Delete variable
14774 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14776 * lynx-low.c (ptrace_request_to_str): Do not handle
14777 PTRACE_GETTHREADLIST if this macro does not exist.
14779 2012-12-15 Yao Qi <yao@codesourcery.com>
14781 * Makefile.in (OBS): Add notif.o.
14782 * notif.c, notif.h: New.
14783 * server.c: Include "notif.h".
14784 (struct vstop_notif) <next>: Remove.
14786 (queue_stop_reply): Update.
14787 (push_event, send_next_stop_reply): Remove.
14788 (discard_queued_stop_replies): Update.
14789 (notif_stop): New variable.
14790 (handle_v_stopped): Remove.
14791 (handle_v_requests): Don't call handle_v_stopped. Call
14792 handle_ack_notif instead.
14793 (queue_stop_reply_callback): Call notif_event_enque instead
14794 of queue_stop_reply.
14795 (handle_status): Don't call send_next_stop_reply, call
14796 notif_write_event instead.
14797 (kill_inferior_callback): Likewise.
14798 (detach_or_kill_inferior_callback): Likewise.
14799 (main): Call initialize_notif.
14800 (process_serial_event): Call QUEUE_is_empty.
14801 (handle_target_event): Call notif_push instead of push event.
14802 * server.h (push_event): Remove declaration.
14804 2012-12-10 Tom Tromey <tromey@redhat.com>
14806 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14807 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14810 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14811 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14812 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14813 (amd64-linux-ipa.o, ax.o): Rewrite.
14814 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14815 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14816 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14817 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14818 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14819 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14820 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14821 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14822 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14823 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14824 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14825 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14826 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14827 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14828 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14829 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14830 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14831 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14832 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14833 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14834 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14835 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14836 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14837 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14838 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14839 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14840 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14841 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14842 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14843 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14844 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14845 (reg-tilegx.o): Remove.
14846 (all_object_files): New macro.
14847 Include .deps files.
14848 * aclocal.m4, configure: Rebuild.
14849 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14850 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14851 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14853 2012-12-05 Tom Tromey <tromey@redhat.com>
14856 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14858 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14860 * configure.ac: Check for linux/perf_event.h.
14861 * config.in: Regenerated.
14862 * configure: Regenerated.
14864 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14866 * hostio.c (handle_readlink): Decrease buffer size
14867 parameter passed to readlink by one byte.
14869 2012-11-26 Yao Qi <yao@codesourcery.com>
14871 * configure.ac (build_warnings): Append '-Wempty-body'.
14872 * configure: Regenerated.
14873 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14876 2012-11-15 Pierre Muller <muller@sourceware.org>
14878 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14879 * config.in: Regenerate.
14880 * configure: Regenerate.
14881 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14882 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14883 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14884 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14886 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14887 instead of <sys/wait.h> header.
14888 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14890 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14892 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14893 (various make rules): Remove -DGDBSERVER
14895 2012-11-09 Yao Qi <yao@codesourcery.com>
14897 * spu-low.c (current_ptid): Move it to ..
14898 * gdbthread.h: ... here. New.
14899 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14900 * server.c (myresume, process_serial_event): Likewise.
14901 * thread-db.c (thread_db_find_new_threads): Likewise.
14902 * tracepoint.c (run_inferior_command): Likewise.
14904 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14906 * server.c (handle_search_memory_1): Include access length in
14909 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14911 * linux-crisv32-low.c: Fix compile errors.
14913 2012-09-04 Yao Qi <yao@codesourcery.com>
14915 * tracepoint.c (cmd_qtsv): Adjust debug message.
14916 Don't check CUR_TPOINT.
14918 2012-08-28 Yao Qi <yao@codesourcery.com>
14920 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14921 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14922 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14923 Remove declarations of xmalloc, xreallloc, xstrdup and
14925 * Makefile.in (libiberty_h): New.
14926 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14927 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14929 2012-08-23 Yao Qi <yao@codesourcery.com>
14931 * server.h: Remove declaration of 'xsnprintf'.
14933 2012-08-22 Keith Seitz <keiths@redhat.com>
14935 * server.h: Include build-gnulib-gbserver/config.h.
14936 * gdbreplay.c: Likewise.
14938 2012-08-08 Doug Evans <dje@google.com>
14940 * Makefile.in (SFILES): Add gdb_vecs.c.
14941 (OBS): Add gdb_vecs.o.
14942 (gdb_vecs_h, host_defs_h): New variables.
14943 (thread-db.o): Add $(gdb_vecs_h) dependency.
14944 (gdb_vecs.o): New rule.
14945 * thread-db.c: #include "gdb_vecs.h".
14946 (thread_db_load_search): Use a vector to iterate over path elements.
14947 Handle text appearing after "$pdir".
14949 * configure.ac: Add check for strstr.
14950 * config.in: Regenerate.
14951 * configure: Regenerate.
14953 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14955 * hostio.c (handle_pread): If pread fails, fall back to attempting
14957 (handle_pwrite): Likewise for pwrite.
14959 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14961 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14962 between unsupported TYPE and unimplementable ADDR/LEN combination.
14963 (arm_insert_point): Act on new return value.
14965 2012-07-31 Pedro Alves <palves@redhat.com>
14967 * server.c (process_point_options): Only skip tokens if we find
14968 one that is unrecognized. Don't treat 'X' specially while
14969 skipping unrecognized tokens.
14971 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14973 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14974 to 4-byte-align HW breakpoint addresses for Thumb.
14976 2012-07-27 Yao Qi <yao@codesourcery.com>
14980 * server.h: Declare gdb_agent_about_to_close.
14981 * target.c (kill_inferior): Include "agent.h".
14982 New. Send command 'kill'.
14983 * target.h (kill_inferior): Removed macro.
14984 * tracepoint.c (gdb_agent_about_to_close): New.
14985 (gdb_agent_helper_thread): Handle command 'close'.
14986 Wait endlessly until the inferior stops.
14987 Install gdb_agent_remove_socket to atexit hook.
14988 (agent_socket_name): New static variable.
14989 (gdb_agent_socket_init): Replace local variable 'name' with
14990 'agent_socket_name'.
14991 (gdb_agent_remove_socket): New.
14993 2012-07-27 Yao Qi <yao@codesourcery.com>
14995 * server.c (process_point_options): Stop at 'X' when parsing.
14997 2012-07-19 Michael Eager <eager@eagercon.com>
14999 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15001 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15002 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15003 hardware breakpoint.
15005 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15007 * gdbserver/linux-low.c (initialize_low): Call
15008 linux_ptrace_init_warnings.
15010 2012-07-02 Doug Evans <dje@google.com>
15012 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15015 2012-07-02 Stan Shebs <stan@codesourcery.com>
15017 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15018 (ax.o): Add it to build rule.
15020 (OBS): Add format.o.
15021 (IPA_OBS): Add format.o.
15022 * server.c (handle_query): Claim support for breakpoint commands.
15023 (process_point_options): Add command case.
15024 (process_serial_event): Leave running if there are printfs in
15026 * mem-break.h (any_persistent_commands): Declare.
15027 (add_breakpoint_commands): Declare.
15028 (gdb_no_commands_at_breakpoint): Declare.
15029 (run_breakpoint_commands): Declare.
15030 * mem-break.c (struct point_command_list): New struct.
15031 (struct breakpoint): New field command_list.
15032 (any_persistent_commands): New function.
15033 (add_commands_to_breakpoint): New function.
15034 (add_breakpoint_commands): New function.
15035 (gdb_no_commands_at_breakpoint): New function.
15036 (run_breakpoint_commands): New function.
15037 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15039 * ax.c: Include format.h.
15040 (ax_printf): New function.
15041 (gdb_eval_agent_expr): Add printf opcode.
15043 2012-06-13 Yao Qi <yao@codesourcery.com>
15045 * server.c (start_inferior): Remove duplicated writes to fields
15046 'last_resume_kind' and 'last_status' of 'current_inferior'.
15048 2012-06-12 Yao Qi <yao@codesourcery.com>
15049 Pedro Alves <palves@redhat.com>
15051 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15053 * server.c (handle_v_cont): Extend comment.
15055 2012-06-11 Yao Qi <yao@codesourcery.com>
15057 * linux-low.c (linux_attach): Add 'static'.
15059 2012-06-06 Yao Qi <yao@codesourcery.com>
15061 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15063 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15065 Fix gcc -flto compilation warning.
15066 * server.c (main): Make variable multi_mode and attach volatile.
15068 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15070 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15071 if the platform doesn't know about it.
15073 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15075 * Makefile.in (SFILES): Add linux-tile-low.c.
15076 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15077 * configure.srv: Handle tilegx-*-linux*.
15078 * linux-tile-low.c: New file.
15080 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15082 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15084 2012-05-24 Pedro Alves <palves@redhat.com>
15088 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15090 2012-05-24 Pedro Alves <palves@redhat.com>
15094 Replace target_signal with gdb_signal throughout.
15096 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15098 * linux-low.c (linux_store_registers): Avoid the copying sequence
15099 when no data has been retrieved by ptrace.
15101 2012-05-22 Will Deacon <will.deacon@arm.com>
15103 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15104 Include asm/ptrace.h.
15105 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15108 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15110 * linux-low.c (linux_store_registers): Don't re-retrieve data
15111 with ptrace that has already been obtained from /proc. Always
15112 copy any data retrieved with ptrace to the buffer supplied.
15114 2012-05-11 Yao Qi <yao@codesourcery.com>
15115 Pedro Alves <palves@redhat.com>
15117 * linux-low.c (enum stopping_threads_kind): New.
15118 (stopping_threads): Change type to `enum stopping_threads_kind'.
15119 (handle_extended_wait): If stopping and suspending threads, leave
15120 the new_lwp suspended too.
15121 (linux_wait_for_event): Adjust.
15122 (stop_all_lwps): Set `stopping_threads' to
15123 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15124 whether we're suspending threads or just stopping them. Assert no
15127 2012-04-29 Yao Qi <yao@codesourcery.com>
15129 * server.h: Move some code to ...
15130 * gdbthread.h: ... here. New.
15131 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15132 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15133 (nto-low.o, win32-low.o): Likewise.
15134 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15135 * regcache.c, remote-utils.c, server.c: Likewise.
15136 * target.c, tracepoint.c, win32-low.c: Likewise.
15138 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15140 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15141 (PTRACE_ARG4_TYPE): Likewise.
15142 (PTRACE_XFER_TYPE): Likewise.
15143 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15144 ptrace to PTRACE_ARG3_TYPE.
15145 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15146 (PTRACE_ARG4_TYPE): Likewise.
15147 (PTRACE_XFER_TYPE): Likewise.
15148 (linux_detach_one_lwp): Cast fourth argument of
15149 ptrace to long then PTRACE_ARG4_TYPE.
15150 (regsets_fetch_inferior_registers): Cast third argument of
15151 ptrace to long then PTRACE_ARG3_TYPE.
15152 (regsets_store_inferior_registers): Likewise.
15154 2012-04-20 Pedro Alves <palves@redhat.com>
15156 * configure: Regenerate.
15158 2012-04-19 Pedro Alves <palves@redhat.com>
15160 * Makefile.in (GNULIB_BUILDDIR): New.
15161 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15162 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15163 (all, install-only, uninstall, clean-info, all-lib, clean): No
15164 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15165 (maintainer-clean realclean distclean): Use subdir_do.
15167 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15168 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15169 * acinclude.m4: Include acx_configure_dir.m4.
15170 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15171 calls. Call AC_PROG_RANLIB. Configure gnulib using
15174 (GNULIB_STDINT_H): Adjust.
15175 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15176 * gdbreplay.c: Include build-gnulib/config.h.
15177 * server.h: Likewise.
15178 * aclocal.m4: Regenerate.
15179 * config.in: Regenerate.
15180 * configure: Regenerate.
15182 2012-04-19 Pedro Alves <palves@redhat.com>
15184 * Makefile.in (LIBGNU, INCGNU): Adjust.
15185 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15186 (all, install-only, uninstall, clean-info, all-lib, clean)
15187 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15188 * configure.ac: Adjust AC_OUTPUT output.
15189 * aclocal.m4: Regenerate.
15190 * configure: Regenerate.
15192 2012-04-19 Pedro Alves <palves@redhat.com>
15194 * Makefile.in (generated_files): New.
15195 (server_h): Remove the explicit dependency on config.h, and depend
15196 on $generated_files.
15198 2012-04-19 Pedro Alves <palves@redhat.com>
15200 * Makefile.in (INCGNU): Add -Ignulib.
15202 2012-04-19 Pedro Alves <palves@redhat.com>
15204 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15205 (INCGNU): ... this, and spell out -I here.
15206 (GNULIB_LIB): Rename to ...
15207 (LIBGNU): ... this.
15208 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15210 2012-04-19 Pedro Alves <palves@redhat.com>
15212 * config.in: Regenerate.
15214 2012-04-19 Pedro Alves <palves@redhat.com>
15216 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15217 * server.h (memmem): Remove declaration.
15218 * config.in: Regenerate.
15219 * configure: Regenerate.
15221 2012-04-19 Yao Qi <yao@codesourcery.com>
15223 * Makefile.in (SFILES): Add common/vec.c.
15227 2012-04-19 Yao Qi <yao@codesourcery.com>
15229 * remote-utils.c (prepare_resume_reply): Replace with macro
15230 target_core_of_thread.
15231 * server.c (handle_qxfer_threads_proper): Likewise.
15232 * target.h (traget_core_of_thread): New macro.
15234 2012-04-18 Pedro Alves <palves@redhat.com>
15236 * aclocal.m4: Regenerate.
15237 * configure: Regenerate.
15239 2012-04-16 Yao Qi <yao@codesourcery.com>
15241 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15242 duplicated on address.
15244 2012-04-16 Yao Qi <yao@codesourcery.com>
15246 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15247 (struct tracepoint_action_ops) <send>: New field.
15248 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15249 (agent_expr_send, x_tracepoint_action_send): New.
15250 (l_tracepoint_action_send): New.
15251 (cmd_qtdp): Download and install tracepoint
15252 according to `use_agent'.
15253 (run_inferior_command): Add one more parameter `len'.
15255 (tracepoint_send_agent): New.
15256 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15258 2012-04-16 Yao Qi <yao@codesourcery.com>
15260 * tracepoint.c (download_tracepoints): Moved to ...
15261 (cmd_qtstart): ... here.
15263 2012-04-14 Yao Qi <yao@codesourcery.com>
15265 * tracepoint.c: Include inttypes.h.
15266 (struct collect_memory_action): Use sized types.
15267 (struct tracepoint): Likewise.
15268 (cmd_qtdp, stop_tracing): Update print specifiers.
15269 (cmd_qtp, response_tracepoint): Likewise.
15270 (collect_data_at_tracepoint): Likewise.
15271 (collect_data_at_step): Likewise.
15273 2012-04-14 Yao Qi <yao@codesourcery.com>
15275 Import gnulib module inttypes.
15276 * aclocal.m4, config.in, configure: Regenerated.
15278 2012-04-14 Yao Qi <yao@codesourcery.com>
15280 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15281 Makefile and config.status at last.
15283 2012-04-13 Yao Qi <yao@codesourcery.com>
15285 * tracepoint.c: Include stdint.h unconditionally.
15287 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15289 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15290 on BFD_HAVE_SYS_PROCFS_TYPE.
15291 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15292 * configure: Regenerate.
15293 * config.in: Likewise.
15295 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15297 * Makefile.in (clean): Also remove x32.c x32-linux.c
15298 x32-avx.c x32-avx-linux.c.
15299 (x32.o): New target.
15301 (x32-linux.o): Likewise.
15302 (x32-linux.c): Likewise.
15303 (x32-avx.o): Likewise.
15304 (x32-avx.c): Likewise.
15305 (x32-avx-linux.o): Likewise.
15306 (x32-avx-linux.c): Likewise.
15308 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15309 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15310 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15311 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15312 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15313 i386/x32-avx-linux.xml.
15315 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15316 (init_registers_x32_avx_linux): Likwise.
15317 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15318 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15320 2012-04-13 Pedro Alves <palves@redhat.com>
15322 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15323 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15324 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15325 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15328 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15330 * linux-x86-low.c (compat_x32_clock_t): New.
15331 (compat_x32_siginfo_t): Likewise.
15332 (compat_x32_siginfo_from_siginfo): Likewise.
15333 (siginfo_from_compat_x32_siginfo): Likewise.
15334 (linux_is_elf64): Likewise.
15335 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15336 and siginfo_from_compat_x32_siginfo for x32.
15337 (x86_arch_setup): Set linux_is_elf64.
15339 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15342 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15344 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15345 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15346 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15347 compatible with process.
15349 2012-04-12 Yao Qi <yao@codesourcery.com>
15351 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15352 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15353 (install-only, install-info, clean): Handle sub dir gnulib.
15354 (all-lib, am--refresh): New targets.
15355 (memmem.o): Remove target.
15356 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15357 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15358 (AC_REPLACE_FUNCS): Remove memmem.
15359 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15360 (AC_OUTPUT): Generate Makefile in gnulib/.
15361 * aclocal.m4, config.in, configure: Regenerated.
15363 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15365 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15367 2012-04-05 Pedro Alves <palves@redhat.com>
15369 -Werror=strict-aliasing
15371 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15374 2012-04-04 Pedro Alves <palves@redhat.com>
15376 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15377 (sparc_store_gregset_from_stack, sparc_store_gregset)
15378 (sparc_breakpoint_at): Fix formatting.
15380 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15382 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15384 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15385 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15386 * config.in: Regenerate.
15387 * configure: Likewise.
15389 2012-03-29 Pedro Alves <palves@redhat.com>
15391 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15392 Correct ptrace arguments.
15394 2012-03-28 Pedro Alves <palves@redhat.com>
15396 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15397 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15398 (IA64_FR1_REGNUM): New defines.
15399 (ia64_fetch_register): New.
15400 (the_low_target): Install it.
15401 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15403 * linux-low.c (linux_fetch_registers): Try the
15404 the_low_target.fetch_register hook first.
15406 * linux-arm-low.c (the_low_target): Adjust.
15407 * linux-bfin-low.c (the_low_target): Adjust.
15408 * linux-cris-low.c (the_low_target): Adjust.
15409 * linux-crisv32-low.c (the_low_target): Adjust.
15410 * linux-m32r-low.c (the_low_target): Adjust.
15411 * linux-m68k-low.c (the_low_target): Adjust.
15412 * linux-mips-low.c (the_low_target): Adjust.
15413 * linux-ppc-low.c (the_low_target): Adjust.
15414 * linux-s390-low.c (the_low_target): Adjust.
15415 * linux-sh-low.c (the_low_target): Adjust.
15416 * linux-sparc-low.c (the_low_target): Adjust.
15417 * linux-tic6x-low.c (the_low_target): Adjust.
15418 * linux-x86-low.c (the_low_target): Adjust.
15419 * linux-xtensa-low.c (the_low_target): Adjust.
15421 2012-03-26 Pedro Alves <palves@redhat.com>
15423 * server.c (handle_qxfer_libraries): Don't bail early if
15424 the_target->qxfer_libraries_svr4 is not NULL.
15426 2012-03-26 Pedro Alves <palves@redhat.com>
15428 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15430 2012-03-23 Pedro Alves <palves@redhat.com>
15432 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15433 "library-list-svr4" element's start tag when the the DSO list is
15436 2012-03-23 Pedro Alves <palves@redhat.com>
15438 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15439 a variable whose type size is the same as the inferior's pointer
15442 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15444 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15446 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15447 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15448 * linux-low.h: Include <signal.h>.
15449 (struct siginfo): Remove forward declaration.
15450 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15453 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15455 * .gitignore: Ignore more files.
15457 2012-03-19 Pedro Alves <palves@redhat.com>
15458 Jan Kratochvil <jan.kratochvil@redhat.com>
15460 * server.c (cont_thread, general_thread): Add describing comments.
15461 (start_inferior): Clear `cont_thread'.
15462 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15465 2012-03-15 Yao Qi <yao@codesourcery.com>
15467 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15469 (cmd_qtdp): ... here.
15471 2012-03-15 Yao Qi <yao@codesourcery.com>
15473 * tracepoint.c (struct tracepoint_action_ops): New.
15474 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15475 (m_tracepoint_action_download): New.
15476 (r_tracepoint_action_download): New.
15477 (x_tracepoint_action_download): New.
15478 (l_tracepoint_action_download): New.
15479 (add_tracepoint_action): Install `action->ops' according type.
15480 (download_tracepoint_1): Move code `download' function pointer
15481 of various tracepoint_action_ops.
15483 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15485 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15486 linux_ptrace_attach_warnings.
15488 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15490 * Makefile.in (linux-ptrace.o): New.
15491 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15492 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15493 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15494 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15495 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15497 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15499 2012-03-08 Yao Qi <yao@codesourcery.com>
15500 Pedro Alves <palves@redhat.com>
15502 Fix PR server/13392.
15503 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15504 offset of JMP insn.
15505 * tracepoint.c (remove_tracepoint): New.
15506 (cmd_qtdp): Call remove_tracepoint when failed to install.
15508 2012-03-07 Pedro Alves <palves@redhat.com>
15510 * linux-low.c (get_detach_signal): New.
15511 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15512 Pass on pending signals to PTRACE_DETACH. Check the result of the
15514 * server.c (program_signals, program_signals_p): New.
15515 (handle_general_set): Handle QProgramSignals.
15516 * server.h (program_signals, program_signals_p): Declare.
15518 2012-03-05 Pedro Alves <palves@redhat.com>
15519 Jan Kratochvil <jan.kratochvil@redhat.com>
15521 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15524 2012-03-03 Yao Qi <yao@codesourcery.com>
15526 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15527 agent_look_up_symbols.
15529 2012-03-03 Yao Qi <yao@codesourcery.com>
15531 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15532 (linux-x86-low.o): Likewise.
15533 * server.h: Remove in_process_agent_loaded.
15534 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15538 2012-03-03 Yao Qi <yao@codesourcery.com>
15540 * tracepoint.c (gdb_agent_capability): New global.
15541 (in_process_agent_loaded_ust): Renamed to
15542 `in_process_agent_supports_ust'.
15544 (in_process_agent_supports_ust): Call agent_capability_check.
15545 (clear_installed_tracepoints): Assert that agent supports
15548 2012-03-03 Yao Qi <yao@codesourcery.com>
15550 * linux-low.c (linux_supports_agent): New.
15551 (linux_target_ops): Initialize field `supports_agent' with
15552 linux_supports_agent.
15553 * target.h (struct target_ops) <supports_agent>: New.
15554 (target_supports_agent): New macro.
15555 * server.c (handle_general_set): Handle packet 'QAgent'.
15556 (handle_query): Send `QAgent+'.
15557 * Makefile.in (server.o): Depends on agent.h.
15559 2012-03-03 Yao Qi <yao@codesourcery.com>
15561 * Makefile.in (OBS): Add agent.o.
15562 Add new rule for agent.o.
15563 Track dependence of tracepoint.c on agent.h.
15564 * tracepoint.c (run_inferior_command_1):
15565 (run_inferior_command): Call agent_run_command.
15566 (gdb_ust_connect_sync_socket): Deleted. Move it to
15568 (resume_thread, stop_thread): Likewise.
15569 (gdb_ust_socket_init): Renamed to ...
15570 (gdb_agent_socket_init): ... New.
15571 (gdb_ust_thread): Renamed to ...
15572 (gdb_agent_helper_thread): ... New.
15573 (gdb_ust_init): Move some code to ...
15574 (gdb_agent_init): ... here. New.
15575 [HAVE_UST]: Call gdb_ust_init.
15576 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15577 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15578 * config.in, configure: Regenerated.
15580 2012-03-02 Pedro Alves <palves@redhat.com>
15582 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15583 * linux-low.c (struct simple_pid_list): New.
15584 (stopped_pids): New a struct simple_pid_list pointer.
15585 (add_to_pid_list, pull_pid_from_list): New.
15586 (handle_extended_wait): Don't assume the first signal new children
15587 report is SIGSTOP. Adjust call to pull_pid_from_list.
15588 (linux_wait_for_lwp): Adjust.
15590 2012-03-02 Yao Qi <yao@codesourcery.com>
15592 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15595 2012-03-02 Yao Qi <yao@codesourcery.com>
15597 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15598 `stop_pc' and `tpoint'. Update caller.
15600 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15602 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15603 * linux-low.c (use_linux_regsets): New macro.
15604 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15605 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15606 (linux_register_in_regsets): New function.
15607 (usr_fetch_inferior_registers): Skip registers covered by
15609 (usr_store_inferior_registers): Likewise.
15610 (usr_fetch_inferior_registers): New macro.
15611 (usr_store_inferior_registers): Likewise.
15612 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15613 (linux_store_registers): Likewise.
15614 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15616 (init_registers_mips64_dsp_linux): Likewise.
15617 (init_registers_mips_linux): New macro.
15618 (init_registers_mips_dsp_linux): Likewise.
15619 (mips_dsp_num_regs): Likewise.
15620 (DSP_BASE, DSP_CONTROL): New fallback macros.
15621 (mips_base_regs): New macro.
15622 (mips_regmap): Use it. Fix the size.
15623 (mips_dsp_regmap): New variable.
15624 (mips_dsp_regset_bitmap): Likewise.
15625 (mips_arch_setup): New function.
15626 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15628 (mips_cannot_store_register): Likewise.
15629 (the_low_target): Update .arch_setup, .num_regs and .regmap
15630 initializers. Add .regset_bitmap initializer.
15631 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15633 * linux-bfin-low.c (the_low_target): Likewise.
15634 * linux-cris-low.c (the_low_target): Likewise.
15635 * linux-crisv32-low.c (the_low_target): Likewise.
15636 * linux-ia64-low.c (the_low_target): Likewise.
15637 * linux-m32r-low.c (the_low_target): Likewise.
15638 * linux-m68k-low.c (the_low_target): Likewise.
15639 * linux-ppc-low.c (the_low_target): Likewise.
15640 * linux-s390-low.c (the_low_target): Likewise.
15641 * linux-sh-low.c (the_low_target): Likewise.
15642 * linux-sparc-low.c (the_low_target): Likewise.
15643 * linux-tic6x-low.c (the_low_target): Likewise.
15644 * linux-x86-low.c (the_low_target): Likewise.
15645 * linux-xtensa-low.c (the_low_target): Likewise.
15646 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15647 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15648 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15650 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15651 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15653 2012-02-29 Yao Qi <yao@codesourcery.com>
15654 Pedro Alves <palves@redhat.com>
15656 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15657 `step_over_finished' is true.
15659 2012-02-27 Pedro Alves <palves@redhat.com>
15661 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15662 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15664 2012-02-27 Pedro Alves <palves@redhat.com>
15667 * linux-low.c (pid_is_stopped): New.
15668 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15670 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15672 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15675 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15677 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15679 2012-02-24 Luis Machado <lgustavo@codesourcery>
15681 * server.c (handle_query): Advertise support for target-side
15682 breakpoint condition evaluation.
15683 (process_point_options): New function.
15684 (process_serial_event): When inserting a breakpoint, check for
15685 a target-side condition that should be evaluated.
15687 * mem-break.c: Include regcache.h and ax.h.
15688 (point_cond_list_t): New data structure.
15689 (breakpoint) <cond_list>: New field.
15690 (find_gdb_breakpoint_at): Make non-static.
15691 (delete_gdb_breakpoint_at): Clear any target-side
15693 (clear_gdb_breakpoint_conditions): New function.
15694 (add_condition_to_breakpoint): Likewise.
15695 (add_breakpoint_condition): Likewise.
15696 (gdb_condition_true_at_breakpoint): Likewise.
15697 (gdb_breakpoint_here): Return result directly instead
15698 of going through a local variable.
15700 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15701 (clear_gdb_breakpoint_conditions): Likewise.
15702 (add_breakpoint_condition): Likewise.
15703 (gdb_condition_true_at_breakpoint): Likewise.
15705 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15706 (need_step_over_p): Take target-side breakpoint condition into
15709 2012-02-24 Luis Machado <lgustavo@codesourcery>
15711 * server.h: Include tracepoint.h.
15712 (agent_mem_read, agent_get_trace_state_variable_value,
15713 agent_set_trace_state_variable_value,
15714 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15715 get_set_tsv_func_addr): New prototypes.
15717 * ax.h: New include file.
15718 * ax.c: New source file.
15720 * tracepoint.c: Include ax.h.
15721 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15722 agent_expr, eval_result_type): Move to ax.h.
15723 (parse_agent_expr): Rename to ...
15724 (gdb_parse_agent_expr): ... this, make it non-static and move
15726 (unparse_agent_expr) Rename to ...
15727 (gdb_unparse_agent_expr): ... this, make it non-static and move
15729 (eval_agent_expr): Rename to ...
15730 (eval_tracepoint_agent_expr): ... this.
15731 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15732 forward declarations.
15733 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15734 (agent_get_trace_state_variable_value): New function.
15735 (agent_set_trace_state_variable_value): New function.
15736 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15737 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15738 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15739 (condition_true_at_tracepoint): Likewise.
15740 (parse_agent_expr): Rename to ...
15741 (gdb_parse_agent_expr): ... this and move to ax.c.
15742 (unparse_agent_expr): Rename to ...
15743 (gdb_unparse_agent_expr): ... this and move to ax.c.
15744 (gdb_agent_op_name): Move to ax.c.
15745 (eval_agent_expr): Rename to ...
15746 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15748 (eval_tracepoint_agent_expr): New function.
15749 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15751 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15753 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15754 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15755 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15756 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15757 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15758 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15759 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15760 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15761 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15762 (compile_bytecodes): Remove forward declaration.
15763 (is_goto_target): Move to ax.c.
15764 (compile_bytecodes): Move to ax.c and call
15765 agent_get_trace_state_variable_value (...) and
15766 agent_set_trace_state_variable_value (...).
15768 * Makefile.in: Update ax.c and IPA dependencies.
15770 2012-02-24 Pedro Alves <palves@redhat.com>
15772 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15773 (cmd_bigqtbuffer_circular): ... this. Only handle
15774 'QTBuffer:circular:'.
15775 (handle_tracepoint_general_set): Adjust.
15777 2012-02-16 Yao Qi <yao@codesourcery.com>
15779 * inferiors.c: Move code to ...
15780 * dll.c: .... here. New.
15781 * server.h: Declare clear_dlls.
15782 * Makefile.in (SFILES): Add dll.c.
15786 2012-02-11 Yao Qi <yao@codesourcery.com>
15788 * server.c: (handle_monitor_command): Add a new parameter
15790 (handle_query): Update caller.
15792 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15794 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15795 * configure, config.in: Regenerate.
15796 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15799 2012-02-02 Pedro Alves <palves@redhat.com>
15801 Try SIGKILL first, then PTRACE_KILL.
15802 * linux-low.c (linux_kill_one_lwp): New.
15803 (linux_kill_one_lwp): Rename to ...
15804 (kill_one_lwp_callback): ... this. Use the new
15805 linux_kill_one_lwp.
15807 2012-02-02 Pedro Alves <palves@redhat.com>
15809 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15812 2012-01-27 Pedro Alves <palves@redhat.com>
15814 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15815 (elf_64_file_p): Make static.
15816 (linux_pid_exe_is_elf_64_file): New.
15817 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15818 Delete declarations.
15819 (linux_pid_exe_is_elf_64_file): Declare.
15820 * linux-x86-low.c (x86_arch_setup): Use
15821 linux_pid_exe_is_elf_64_file.
15823 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15825 * linux-low.c (linux_wait_for_event_1): Rename to ...
15826 (linux_wait_for_event): ... here and merge it with former
15827 linux_wait_for_event - new variable wait_ptid, use it.
15828 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15830 2012-01-23 Pedro Alves <palves@redhat.com>
15832 * server.c (main): Avoid yet another case of infinite loop while
15833 detaching/killing after a longjmp.
15835 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15838 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15840 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15842 * hostio.c (handle_readlink): New function.
15843 (handle_vFile): Call it to handle "vFile:readlink" packets.
15845 2012-01-20 Pedro Alves <palves@redhat.com>
15846 Ulrich Weigand <ulrich.weigand@linaro.org>
15848 * server.c (handle_v_requests): Only support vAttach and vRun to
15849 start multiple processes when in extended protocol mode.
15851 2012-01-17 Pedro Alves <palves@redhat.com>
15853 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15854 memalign plus mprotect to allocate the scratch buffer.
15856 2012-01-13 Pedro Alves <palves@redhat.com>
15858 * server.c (attach_inferior): Clear `cont_thread'.
15860 2012-01-13 Pedro Alves <palves@redhat.com>
15862 * server.c (main): Avoid infinite loop while detaching/killing
15865 2012-01-09 Doug Evans <dje@google.com>
15867 * server.c (start_inferior): Set last_ptid in --wrapper case.
15869 2012-01-06 Yao Qi <yao@codesourcery.com>
15871 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15873 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15875 2012-01-04 Yao Qi <yao@codesourcery.com>
15877 * tracepoint.c (cmd_qtdp): Print debug message
15878 for static tracepoint.
15880 2012-01-04 Yao Qi <yao@codesourcery.com>
15882 * tracepoint.c (trace_vdebug): Differentiate debug message
15883 between gdbserver and IPA.
15885 2012-01-03 Yao Qi <yao@codesourcery.com>
15887 * tracepoint.c (tracepoint_was_hit): Don't collect for
15890 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15892 * terminal.h: Reformat copyright header.
15894 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15896 * server.c (gdbserver_version): Update copyright year.
15897 * gdbreplay.c (gdbreplay_version): Likewise.
15899 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15901 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15904 2011-12-18 Hui Zhu <teawater@gmail.com>
15905 * linux-low.c (linux_create_inferior): Save return value to ret.
15907 2011-12-18 Hui Zhu <teawater@gmail.com>
15909 * linux-low.c (linux_create_inferior): Save return value to ret.
15911 2011-12-16 Doug Evans <dje@google.com>
15913 * linux-low.c (linux_create_inferior): If stdio connection,
15914 redirect stdin from /dev/null, stdout to stderr.
15915 * remote-utils.c (remote_is_stdio): New static global.
15916 (remote_connection_is_stdio): New function.
15917 (remote_prepare): Handle stdio connection.
15918 (remote_open): Ditto.
15919 (remote_close): Don't close stdin for stdio connections.
15920 (read_prim,write_prim): New functions. Replace all calls to
15921 read/write to these.
15922 * server.c (main): Watch for "-" argument. Move call to
15923 remote_prepare before start_inferior.
15924 * server.h (STDIO_CONNECTION_NAME): New macro.
15925 (remote_connection_is_stdio): Declare.
15927 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15928 in debugging output.
15930 2011-12-15 Yao Qi <yao@codesourcery.com>
15932 * tracepoint.c: Include sys/syscall.h.
15933 (gdb_ust_thread): Remove preprocessor conditional.
15935 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15937 * linux-low.c (linux_detach_one_lwp): Call
15938 the_low_target.prepare_to_resume before detaching.
15940 2011-12-14 Yao Qi <yao@codesourcery.com>
15942 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15945 2011-12-14 Yao Qi <yao@codesourcery.com>
15947 * i386-low.c (i386_low_stopped_data_address): Initialize local
15948 variable `control'.
15950 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15954 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15955 DR_CONTROL unless necessary. Extend comments.
15956 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15957 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15959 2011-12-13 Yao Qi <yao@codesourcery.com>
15961 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15963 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15965 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15967 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15968 Print new debug message for such case.
15970 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15972 Fix overlapping memcpy.
15973 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15974 the read_inferior_memory transfer.
15975 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15976 write_inferior_memory transfer.
15977 (set_fast_tracepoint_jump): New variable buf. Use it for the
15978 read_inferior_memory and write_inferior_memory transfers.
15979 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15980 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15981 Use it for the write_inferior_memory transfer.
15982 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15985 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15987 * linux-low.c (fetch_register, store_register): Make code
15988 consistent, fix formatting.
15990 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15992 * linux-low.c (usr_store_inferior_registers): Factor out code
15993 to handle individual registers into...
15994 (store_register): ... this new function.
15996 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15998 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15999 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16000 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16001 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16002 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16003 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16004 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16005 (srv_xmlfiles): Add new XML files.
16007 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16009 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16010 (init_registers_s390_linux32v1): Add prototype.
16011 (init_registers_s390_linux32v2): Likewise.
16012 (init_registers_s390_linux64v1): Likewise.
16013 (init_registers_s390_linux64v2): Likewise.
16014 (init_registers_s390x_linux64v1): Likewise.
16015 (init_registers_s390x_linux64v2): Likewise.
16016 (s390_num_regs): Increment to 52.
16017 (s390_regmap): Add orig_r2 register.
16018 (s390_num_regs_3264): Increment to 68.
16019 (s390_regmap_3264): Add orig_r2 register.
16020 (s390_collect_ptrace_register): Handle orig_r2 register.
16021 (s390_supply_ptrace_register): Likewise.
16022 (s390_fill_last_break): New function.
16023 (s390_store_last_break): Likewise.
16024 (s390_fill_system_call): New function.
16025 (s390_store_system_call): Likewise.
16026 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16028 (s390_check_regset): New function.
16029 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16030 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16031 Update target_regsets for available register sets.
16033 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16034 Jan Kratochvil <jan.kratochvil@redhat.com>
16036 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16037 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16039 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16040 * linux-low.h (struct process_info_private): New member r_debug.
16041 * server.c (handle_qxfer_libraries): Call
16042 the_target->qxfer_libraries_svr4.
16043 (handle_qxfer_libraries_svr4): New function.
16044 (qxfer_packets): New entry "libraries-svr4".
16045 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16046 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16047 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16048 PACKET_qXfer_libraries_svr4.
16050 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16052 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16053 PSW address/mask between 8-byte and 16-byte formats.
16054 (s390_supply_ptrace_register): Likewise.
16055 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16056 basic addressing mode bit.
16058 2011-11-24 Stan Shebs <stan@codesourcery.com>
16060 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16062 2011-11-17 Stan Shebs <stan@codesourcery.com>
16064 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16065 (tracing_start_time): New global.
16066 (tracing_stop_time): New global.
16067 (tracing_user_name): New global.
16068 (tracing_notes): New global.
16069 (tracing_stop_note): New global.
16070 (cmd_qtstart): Set traceframe_usage, start_time.
16071 (stop_tracing): Set stop_time.
16072 (cmd_qtstatus): Report additional status.
16073 (cmd_qtp): New function.
16074 (handle_tracepoint_query): Call it.
16075 (cmd_qtnotes): New function.
16076 (handle_tracepoint_general_set): Call it.
16077 (get_timestamp): Rename from tsv_get_timestamp.
16079 2011-11-14 Stan Shebs <stan@codesourcery.com>
16080 Kwok Cheung Yeung <kcy@codesourcery.com>
16082 * linux-x86-low.c (small_jump_insn): New.
16083 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16084 trampoline and error message, build a trampoline and issue a small
16085 jump instruction to it.
16086 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16087 trampoline and error message.
16088 (x86_get_min_fast_tracepoint_insn_len): New.
16089 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16090 * linux-low.h (struct linux_target_ops): Add arguments to
16091 install_fast_tracepoint_jump_pad operation, add new operation.
16092 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16094 (linux_get_min_fast_tracepoint_insn_len): New function.
16095 (linux_target_op): Add new operation.
16096 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16097 (gdb_trampoline_buffer_end): Ditto.
16098 (gdb_trampoline_buffer_error): Ditto.
16099 (struct ipa_sym_addresses): Add fields for new IPA variables.
16100 (symbol_list): Add entries for new IPA variables.
16101 (struct tracepoint): Add fields to hold the address range of the
16102 trampoline used by the tracepoint.
16103 (trampoline_buffer_head): New static variable.
16104 (trampoline_buffer_tail): Ditto.
16105 (claim_trampoline_space): New function.
16106 (have_fast_tracepoint_trampoline_buffer): New function.
16107 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16109 (install_fast_tracepoint): Ditto, also add error buffer argument.
16110 (cmd_qtminftpilen): New function.
16111 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16112 (fast_tracepoint_from_trampoline_address): New function.
16113 (fast_tracepoint_collecting): Handle trampoline as part of jump
16115 (set_trampoline_buffer_space): New function.
16116 (initialize_tracepoint): Initialize new IPA variables.
16117 * target.h (struct target_ops): Add arguments to
16118 install_fast_tracepoint_jump_pad operation, add new
16119 get_min_fast_tracepoint_insn_len operation.
16120 (target_get_min_fast_tracepoint_insn_len): New.
16121 (install_fast_tracepoint_jump_pad): Add arguments.
16122 * server.h (IPA_BUFSIZ): Define.
16123 * linux-i386-ipa.c: Include extra header files.
16124 (initialize_fast_tracepoint_trampoline_buffer): New function.
16125 (initialize_low_tracepoint): Call it.
16126 * server.h (set_trampoline_buffer_space): Declare.
16127 (claim_trampoline_space): Ditto.
16128 (have_fast_tracepoint_trampoline_buffer): Ditto.
16130 2011-11-14 Yao Qi <yao@codesourcery.com>
16132 * server.c (handle_query): Handle InstallInTrace for qSupported.
16133 * tracepoint.c (add_tracepoint): Sort list.
16134 (install_tracepoint, download_tracepoint): New.
16135 (cmd_qtdp): Call them to install and download tracepoints.
16136 (sort_tracepoints): Removed.
16137 (cmd_qtstart): Update.
16139 2011-11-14 Yao Qi <yao@codesourcery.com>
16141 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16142 * mem-break.h: Declare.
16143 * tracepoint.c (cmd_qtstart): Move some code to ...
16144 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16146 (download_tracepoints): Move some code to ...
16147 (download_tracepoint_1): ... here. New.
16149 2011-11-08 Yao Qi <yao@codesourcery.com>
16151 * remote-utils.c (relocate_instruction): A comment fix.
16153 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16155 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16156 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16157 dr_status_mirror and dr_control_mirror from debug_reg_state.
16158 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16159 (i386_initial_stuff): Remove use of deleted globals.
16160 (i386_get_thread_context, i386_set_thread_context,
16161 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16162 from debug_reg_state.
16164 2011-11-05 Yao Qi <yao@codesourcery.com>
16166 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16167 address as TPOINT's.
16169 2011-11-02 Stan Shebs <stan@codesourcery.com>
16171 * tracepoint.c (agent_mem_read_string): New function.
16172 (eval_agent_expr): Call it for tracenz.
16173 * server.c (handle_query): Report support for tracenz.
16175 2011-11-02 Yao Qi <yao@codesourcery.com>
16177 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16179 2011-11-02 Yao Qi <yao@codesourcery.com>
16181 * target.h: Fix a typo in comment.
16183 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16185 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16186 clobber the breakpoints' shadows with fast tracepoint jumps.
16187 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16188 * target.c (write_inferior_memory): Also pass MYADDR down to
16191 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16193 * configure.ac: Check support for personality routine.
16194 * configure: Regenerate.
16195 * config.in: Likewise.
16196 * linux-low.c: Include <sys/personality.h>.
16197 Define ADDR_NO_RANDOMIZE if necessary.
16198 (linux_create_inferior): Disable address space randomization when
16199 forking inferior, if requested.
16200 (linux_supports_disable_randomization): New function.
16201 (linux_target_ops): Install it.
16202 * server.h (disable_randomization): Declare.
16203 * server.c (disable_randomization): New global variable.
16204 (handle_general_set): Handle QDisableRandomization.
16205 (handle_query): Likewise for qSupported.
16206 (main): Support --disable-randomization and --no-disable-randomization
16207 command line arguments.
16208 * target.h (struct target_ops): Add supports_disable_randomization.
16209 (target_supports_disable_randomization): New macro.
16211 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16213 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16215 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16216 [!PT_GETDSBT] (target_loadmap): New definition.
16217 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16218 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16219 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16220 and PT_GETDSBT to LINUX_LOADMAP.
16221 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16222 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16224 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16226 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16227 (arm_linux_hwbp_cap): New static variable.
16228 (arm_linux_get_hwbp_cap): Replace by ...
16229 (arm_linux_init_hwbp_cap): ... this new function.
16230 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16231 (arm_linux_get_hw_watchpoint_count): Likewise.
16232 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16233 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16234 (arm_prepare_to_resume): Use perror_with_name instead of error.
16236 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16238 * linux-arm-low.c: Include <signal.h>.
16239 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16240 (struct arm_linux_hwbp_cap): New data type.
16241 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16242 (struct arm_linux_hw_breakpoint): New data type.
16243 (MAX_BPTS, MAX_WPTS): Define.
16244 (struct arch_process_info, struct arch_lwp_info): New data types.
16245 (arm_linux_get_hwbp_cap): New function.
16246 (arm_linux_get_hw_breakpoint_count): Likewise.
16247 (arm_linux_get_hw_watchpoint_count): Likewise.
16248 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16249 (arm_hwbp_control_initialize): Likewise.
16250 (arm_hwbp_control_is_enabled): Likewise.
16251 (arm_hwbp_control_is_initialized): Likewise.
16252 (arm_hwbp_control_disable): Likewise.
16253 (arm_linux_hw_breakpoint_equal): Likewise.
16254 (arm_linux_hw_point_initialize): Likewise.
16255 (struct update_registers_data): New data structure.
16256 (update_registers_callback: New function.
16257 (arm_insert_point): Likewise.
16258 (arm_remove_point): Likewise.
16259 (arm_stopped_by_watchpoint): Likewise.
16260 (arm_stopped_data_address): Likewise.
16261 (arm_new_process): Likewise.
16262 (arm_new_thread): Likewise.
16263 (arm_prepare_to_resume): Likewise.
16264 (the_low_target): Register arm_insert_point, arm_remove_point,
16265 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16266 arm_new_thread, and arm_prepare_to_resume.
16268 2011-09-15 Stan Shebs <stan@codesourcery.com>
16270 * server.h (struct emit_ops): Add compare-goto fields.
16271 * tracepoint.c (gdb_agent_op_sizes): New table.
16272 (emit_eq_goto): New function.
16273 (emit_ne_goto): New function.
16274 (emit_lt_goto): New function.
16275 (emit_le_goto): New function.
16276 (emit_gt_goto): New function.
16277 (emit_ge_goto): New function.
16278 (is_goto_target): New function.
16279 (compile_bytecodes): Recognize special cases of compare-goto
16280 combinations and call specialized emitters for them.
16281 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16282 (amd64_emit_ne_goto): New function.
16283 (amd64_emit_lt_goto): New function.
16284 (amd64_emit_le_goto): New function.
16285 (amd64_emit_gt_goto): New function.
16286 (amd64_emit_ge_goto): New function.
16287 (amd64_emit_ops): Add the new functions.
16288 (i386_emit_eq_goto): New function.
16289 (i386_emit_ne_goto): New function.
16290 (i386_emit_lt_goto): New function.
16291 (i386_emit_le_goto): New function.
16292 (i386_emit_gt_goto): New function.
16293 (i386_emit_ge_goto): New function.
16294 (i386_emit_ops): Add the new functions.
16296 2011-09-08 Stan Shebs <stan@codesourcery.com>
16298 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16299 (i386_emit_epilogue): Restore %ebx.
16301 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16303 * server.c (step_thread): Remove definition.
16304 (process_serial_event): Don't handle Hs.
16305 * server.h (step_thread): Remove declaration.
16306 * target.c (set_desired_inferior): Remove use of step_thread.
16308 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16310 * linux-low.c: Include linux-procfs.h.
16311 (linux_attach_lwp_1): Update comments.
16312 (linux_attach): Scan for existing threads when attaching to a
16313 process that is the tgid.
16314 * Makefile.in: Update dependencies.
16316 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16318 * configure.srv: Add linux-procfs.o dependencies.
16320 2011-08-14 Yao Qi <yao@codesourcery.com>
16322 * target.h (struct target_ops): Fix indent.
16323 * win32-low.c (win32_target_ops): Fix comment.
16325 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16326 Yao Qi <yao@codesourcery.com>
16328 * Makefile.in (clean): Remove tic6x-*.c files.
16329 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16330 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16331 (tic6x-c64xp-linux.c): Likewise.
16332 * configure.srv: Add support for tic6x-*-uclinux.
16333 * linux-tic6x-low.c: New.
16334 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16336 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16337 Yao Qi <yao@codesourcery.com>
16339 * target.h (struct target_ops): Add read_loadmap.
16340 * linux-low.c (struct target_loadseg): New type.
16341 (struct target_loadmap): New type.
16342 (linux_read_loadmap): New function.
16343 (linux_target_ops): Add linux_read_loadmap.
16344 * server.c (handle_query): Support qXfer:fdpic:read packet.
16345 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16348 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16350 * win32-low.c: Include <stdint.h>.
16352 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16354 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16355 to the inferior here.
16356 (i386_remove_aligned_watchpoint): Ditto.
16357 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16358 fit part of the watchpoint in the debug registers.
16359 (i386_update_inferior_debug_regs): New.
16360 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16361 registers, and only update the inferior on success.
16362 (i386_low_remove_watchpoint): Ditto.
16364 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16366 * linux-low.c (compare_ints, unique, list_threads, show_process,
16367 linux_core_of_thread): Delete.
16368 (linux_target_ops): Change linux_core_of_thread to
16369 linux_common_core_of_thread.
16370 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16371 * utils.c (malloc_failure): Change type of argument.
16372 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16373 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16374 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16375 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16376 (IPA_OBJS): Add common-utils-ipa.o.
16377 (ptid_h, linux_osdata_h): New macros.
16378 (server_h): Add common/common-utils.h, common/xml-utils.h,
16379 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16381 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16382 ptid.o, buffer.o): New rules.
16383 (linux-low.o): Add common/linux-osdata.h as a dependency.
16384 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16385 * configure.ac: Add AC_HEADER_DIRENT check.
16386 * config.in: Regenerate.
16387 * configure: Regenerate.
16388 * remote-utils.c (xml_escape_text): Delete.
16389 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16390 buffer_xml_printf): Move to common/buffer.c.
16391 * server.c (main): Remove call to initialize_inferiors.
16392 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16393 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16394 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16395 internal_error, gdb_assert, gdb_assert_fail): Delete.
16396 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16397 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16399 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16400 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16401 initialize_inferiors): Delete.
16403 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16405 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16408 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16410 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16412 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16414 2011-05-26 Yao Qi <yao@codesourcery.com>
16416 * Makefile.in (thread-db.o): Track dependence to
16417 common/gdb_thread_db.h.
16418 * thread-db.c: include gdb_thread_db.h from right place.
16420 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16422 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16423 __FILE__ and __LINE__ to internal_error.
16425 2011-05-13 Doug Evans <dje@google.com>
16427 * thread-db.c (try_thread_db_load_from_sdir): New function.
16428 (try_thread_db_load_from_dir): New function.
16429 (thread_db_load_search): Handle $sdir, ignore $pdir.
16430 Remove trying of system directories if search of
16431 libthread-db-search-path fails, that is now done via $sdir.
16433 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16435 * server.c (handle_query): Add EnableDisableTracepoints to the list
16436 of supported features.
16437 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16439 (cmd_qtenable_disable): New.
16440 (cmd_qtstart): Install tracepoints even if disabled.
16441 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16442 receiving a QTEnable or QTDisable packet.
16443 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16444 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16446 (gdb_probe): Skip data collection if static tracepoint is disabled.
16448 2011-05-10 Doug Evans <dje@google.com>
16450 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16452 2011-05-04 Doug Evans <dje@google.com>
16454 * linux-low.c (linux_join): Skip process lookup.
16455 * spu-low.c (spu_join): Ditto.
16456 * server.c (join_inferiors_callback): Delete.
16457 (process_serial_event): For 'D' packet (detach) call join_inferior
16460 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16462 * README: Don't mention xscale*-*-linux*.
16463 * configure.srv (xscale*-*-linux*): Don't handle target.
16465 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16467 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16469 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16470 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16471 (i386_emit_void_call_2): Likewise.
16473 2011-04-26 Yao Qi <yao@codesourcery.com>
16475 * linux-low.c: Move common macros to linux-ptrace.h.
16476 Include linux-ptrace.h.
16477 * Makefile.in (linux_ptrace_h): New.
16478 (linux-low.o): Depends on linux-ptrace.h.
16480 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16482 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16483 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16484 (remote_prepare): New function with most of the TCP code from ...
16485 (remote_open): ... here. Detect PORT here unconditionally. Move also
16486 setting transport_is_reliable.
16487 * server.c (run_once): New variable.
16488 (gdbserver_usage): Document it.
16489 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16490 the first run if RUN_ONCE.
16491 * server.h (run_once, remote_prepare): New declarations.
16493 2011-04-19 Tom Tromey <tromey@redhat.com>
16495 * win32-low.c (handle_load_dll): Remove duplicate "the".
16497 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16499 Remove support for old Cygwin 1.5 versions.
16500 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16501 function to avoid warning.
16502 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16505 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16507 * gdbserver/server.h (Macro _): Define it if not available.
16509 2011-03-14 Michael Snyder <msnyder@vmware.com>
16511 * hostio.c (handle_close): Remove unnecessary null test.
16513 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16515 * Makefile.in (maintainer-clean realclean distclean): Remove
16516 "make ... subdir_do" command.
16518 2011-03-10 Michael Snyder <msnyder@vmware.com>
16520 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16522 * server.c (handle_v_run): Free alloced buffer on early return.
16524 2011-03-09 Yao Qi <yao@codesourcery.com>
16527 2011-03-04 Yao Qi <yao@codesourcery.com>
16529 * Makefile.in: Remove GNU make feature --directory.
16531 2011-03-05 Yao Qi <yao@codesourcery.com>
16533 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16534 (subdir_do): New make target. Copied from gdb/Makefile.
16535 (maintainer-clean, realclean, distclean, clean): Call corresponding
16536 make targets in common/Makefile.
16538 2011-02-11 Yao Qi <yao@codesourcery.com>
16540 * configure.ac: Call AC_PROG_RANLIB.
16541 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16542 * configure: Regenerate.
16544 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16546 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16548 2011-03-06 Yao Qi <yao@codesourcery.com>
16550 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16552 2011-03-05 Yao Qi <yao@codesourcery.com>
16554 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16555 (subdir_do): New make target. Copied from gdb/Makefile.
16556 (maintainer-clean, realclean, distclean, clean): Call corresponding
16557 make targets in common/Makefile.
16559 2011-03-04 Yao Qi <yao@codesourcery.com>
16561 * Makefile.in: Remove GNU make feature --directory.
16563 2011-03-04 Michael Snyder <msnyder@vmware.com>
16565 * server.c (queue_stop_reply): Call xmalloc not malloc.
16567 2011-03-02 Michael Snyder <msnyder@vmware.com>
16569 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16571 2011-02-28 Michael Snyder <msnyder@vmware.com>
16573 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16574 (cmd_qtframe): Ditto.
16575 (cmd_qtbuffer): Ditto.
16576 (cmd_bigqtbuffer): Ditto.
16578 * utils.c (decimal2str): Initialize 'width' to nine, then
16579 don't mess with it.
16581 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16583 * hostio.c (require_data): Free *data, not data.
16585 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16587 * hostio.c (require_data): Use free, not xfree.
16589 2011-02-27 Michael Snyder <msnyder@vmware.com>
16591 * server.c (handle_query): Discard unused value.
16593 * hostio.c (require_data): Free malloc memory before returning
16596 2011-02-26 Michael Snyder <msnyder@vmware.com>
16598 * linux-low.c (list_threads): Call closedir for dirent.
16600 2011-02-27 Michael Snyder <msnyder@vmware.com>
16602 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16603 a case statement falls through.
16605 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16607 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16610 2011-02-26 Michael Snyder <msnyder@vmware.com>
16612 * utils.c (decimal2str): Eliminate dead code and dead param.
16613 (pulongest): Drop dead param from call to decimal2str.
16616 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16618 Revert the following patch (not approved yet):
16619 2011-02-21 Hui Zhu <teawater@gmail.com>
16620 * tracepoint.c (tp_printf): New function.
16621 (eval_agent_expr): Handle gdb_agent_op_printf.
16623 2011-02-21 Hui Zhu <teawater@gmail.com>
16625 * tracepoint.c (tp_printf): New function.
16626 (eval_agent_expr): Handle gdb_agent_op_printf.
16628 2011-02-18 Tom Tromey <tromey@redhat.com>
16630 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16631 (tracepoint.o): Likewise.
16632 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16633 (gdb_agent_op_names): Likewise.
16635 2011-02-18 Tom Tromey <tromey@redhat.com>
16637 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16638 gdb_agent_op_rot>: New constants.
16639 (gdb_agent_op_names): Add pick and roll.
16640 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16643 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16645 * aclocal.m4: Regenerated with aclocal-1.11.1.
16647 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16649 * server.c (handle_qxfer_traceframe_info): New.
16650 (qxfer_packets): Register "traceframe-info".
16651 (handle_query): Report support for qXfer:traceframe-info:read+.
16652 * tracepoint.c (match_blocktype): New.
16653 (traceframe_find_block_type): Rename to ...
16654 (traceframe_walk_blocks): ... this. Add callback filter argument,
16656 (traceframe_find_block_type): New, reimplemented on top of
16657 traceframe_walk_blocks.
16658 (build_traceframe_info_xml): New.
16659 (traceframe_read_info): New.
16660 * server.h (traceframe_read_info): Declare.
16662 2011-02-11 Yao Qi <yao@codesourcery.com>
16664 * configure.ac: Call AC_PROG_RANLIB.
16665 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16666 * configure: Regenerate.
16668 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16670 * server.c (gdb_read_memory): Change return semantics to allow
16672 (handle_search_memory_1): Adjust.
16673 (process_serial_event) <'m' packet>: Handle partial transfers.
16674 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16676 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16678 * regcache.c (init_register_cache): Initialize
16679 regcache->register_status.
16680 (free_register_cache): Release regcache->register_status.
16681 (regcache_cpy): Copy register_status.
16682 (registers_to_string): Print 'x's for unavailable registers.
16683 (supply_register): Mark the register's status valid or
16684 unavailable, depending on whether a buffer was passed in or not.
16685 (supply_register_zeroed): New.
16686 (supply_regblock): Mark the registers' status valid or
16687 unavailable, depending on whether a buffer was passed in or not.
16688 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16689 (struct regcache): New `register_status' field.
16690 (supply_register_zeroed): Declare.
16691 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16692 supply_register_zeroed, rather than passing a NULL buffer to
16694 * tracepoint.c (fetch_traceframe_registers): Update comment.
16696 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16698 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16701 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16703 * server.h (decode_xfer_write): Change prototype.
16704 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16705 and don't extract the annex here.
16706 * server.c (decode_xfer_read): Remove `annex' parameter,
16707 and don't extract the annex here.
16708 (decode_xfer): New.
16709 (struct qxfer): New.
16710 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16711 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16712 (handle_qxfer_statictrace): New functions, abstracted out from
16713 handle_query, and made to use the struct qxfer interface.
16714 (handle_threads_qxfer_proper): Rename to ...
16715 (handle_qxfer_threads_proper): ... this.
16716 (handle_threads_qxfer): Rename to ...
16717 (handle_qxfer_threads): ... this. Adjust.
16718 (qxfer_packets): New array.
16719 (handle_qxfer): New function.
16720 (handle_query): Use handle_qxfer.
16722 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16724 * gdbreplay.c: Shorten lines of >= 80 columns.
16725 * linux-low.c: Ditto.
16726 * linux-ppc-low.c: Ditto.
16727 * linux-s390-low.c: Ditto.
16728 * linux-sparc-low.c: Ditto.
16729 * linux-x86-low.c: Ditto.
16730 * linux-xtensa-low.c: Ditto.
16731 * mem-break.c: Ditto.
16732 * nto-low.c: Ditto.
16733 * regcache.h: Ditto.
16734 * remote-utils.c: Ditto.
16737 * thread-db.c: Ditto.
16738 * tracepoint.c: Ditto.
16740 * win32-low.h: Ditto.
16742 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16744 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16747 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16749 * server.c (gdbserver_version): Update copyright year in version
16751 * gdbreplay.c (gdbreplay_version): Ditto.
16753 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16755 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16756 * linux-bfin-low.c: New file.
16757 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16758 PT_DATA_ADDR for BFIN targets.
16759 * Makefile.in (SFILES): Add linux-bfin-low.c.
16760 (clean): Remove reg-bfin.c.
16761 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16762 * README: Mention supported Blackfin targets.
16764 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16766 * .gitignore: New file.
16768 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16770 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16772 2010-10-22 Jie Zhang <jie@codesourcery.com>
16774 * Makefile.in: Add FLAGS_TO_PASS variable.
16775 (install): Remove dependency of install-only and recursively
16776 invoke make for install-only.
16778 2010-10-04 Doug Evans <dje@google.com>
16780 * Makefile.in (uninstall): Use $(DESTDIR).
16782 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16786 * linux-x86-low.c (compat_siginfo_from_siginfo)
16787 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16788 si_code is < 0. Check for si_code == SI_TIMER before checking for
16791 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16793 * lynx-i386-low.c: New file.
16794 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16796 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16798 * lynx-low.c (ptrace_request_to_str): Remove handling for
16799 request values that have been removed in LynxOS 5.x.
16801 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16803 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16806 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16808 * configure.ac: Add --enable-inprocess-agent option.
16809 * configure: Rebuilt.
16811 2010-09-06 Yao Qi <yao@codesourcery.com>
16813 * linux-low.c (linux_kill): Remove unused variable.
16814 (linux_stabilize_threads): Likewise.
16815 * server.c (start_inferior): Likewise.
16816 (queue_stop_reply_callback): Likewise.
16817 * tracepoint.c (do_action_at_tracepoint): Likewise.
16819 2010-09-06 Yao Qi <yao@codesourcery.com>
16821 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16824 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16826 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16828 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16830 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16833 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16835 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16836 gdbserver/lynx-ppc-low.c: New files.
16837 * Makefile.in (lynx_low_h): New variable.
16838 (lynx-low.o, lynx-ppc-low.o): New rules.
16839 * configure.ac: On LynxOS, link with -lnetinet.
16840 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16841 * configure: regenerate.
16843 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16845 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16846 * configure.ac: Add check for vasprintf and vsnprintf.
16847 * configure, config.in: Regenerate.
16848 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16850 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16852 * gdbreplay.c: Move include of alloca.h up, next to include of
16854 * server.h: Add include of malloc.h.
16855 * mem-break.c: Remove include of malloc.h.
16856 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16858 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16860 * Makefile.in (memmem.o): Build with -Wno-error.
16862 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16864 * utils.c (xsnprintf): Make non-static.
16865 * server.h: Add xsnprintf declaration.
16866 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16867 replace calls to snprintf by calls to xsnprintf throughout.
16869 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16871 * configure.ac: Add configure check for alloca.
16872 * configure, config.in: Regenerate.
16873 * server.h: Include alloca.h if it exists.
16874 * gdbreplay.c: Include alloca.h if it exists.
16876 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16878 * linux-low.c (__SIGRTMIN): Define if not already defined.
16879 (linux_create_inferior): Check for __ANDROID__ rather than
16881 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16882 are already deferred.
16883 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16884 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16885 stopped and already has a pending signal to report.
16886 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16887 a pending signal to report or is moving out of a jump pad.
16888 (linux_init_signals): Check for __ANDROID__ rather than
16891 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16893 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16894 debug_threads check. Avoid a linear search when not doing debug
16897 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16899 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16900 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16901 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16902 (process_event): Change local fd's type to gdb_fildes_t.
16903 (create_file_handler): Adjust prototype.
16904 (delete_file_handler): Adjust prototype.
16905 (handle_file_event): Adjust prototype. Use pfildes.
16906 (create_file_event): Adjsut prototype.
16907 * remote-utils.c (remote_desc, listen_desc): Change type to
16909 * server.h: New gdb_fildes_t typedef.
16910 [USE_WIN32API]: Include winsock2.h.
16911 (delete_file_handler, add_file_handler): Adjust prototypes.
16912 (pfildes): Declare.
16913 * utils.c (pfildes): New.
16915 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16917 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16918 * configure: Regenerate.
16920 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16922 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16923 (linux_done_accessing_memory): ... this.
16924 (linux_target_ops): Adjust.
16925 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16926 * nto-low.c (nto_target_ops): Adjust comment.
16927 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16928 * spu-low.c (spu_target_ops): Adjust comment.
16929 * target.h (target_ops): Rename unprepare_to_access_memory field
16930 to done_accessing_memory.
16931 (unprepare_to_access_memory): Rename to ...
16932 (done_accessing_memory): ... this.
16934 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16936 * linux-low.c (linux_prepare_to_access_memory): New.
16937 (linux_unprepare_to_access_memory): New.
16938 (linux_target_ops): Install them.
16939 * server.c (read_memory): Rename to ...
16940 (gdb_read_memory): ... this. Use
16941 prepare_to_access_memory/prepare_to_access_memory.
16942 (write_memory): Rename to ...
16943 (gdb_write_memory): ... this. Use
16944 prepare_to_access_memory/prepare_to_access_memory.
16945 (handle_search_memory_1): Adjust.
16946 (process_serial_event): Adjust.
16947 * target.h (struct target_ops): New fields
16948 prepare_to_access_memory and unprepare_to_access_memory.
16949 (prepare_to_access_memory, unprepare_to_access_memory): New.
16950 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16951 prepare_to_access_memory/prepare_to_access_memory.
16952 * nto-low.c (nto_target_ops): Adjust.
16953 * spu-low.c (spu_target_ops): Adjust.
16954 * win32-low.c (win32_target_ops): Adjust.
16956 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16958 * Makefile.in (WARN_CFLAGS): Get it from configure.
16959 (WERROR_CFLAGS): New.
16960 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16961 * configure.ac: Introduce --enable-werror, which adds -Werror to
16962 the compiler command line. Enabled by default. Disable with
16963 --disable-werror. Add -Wdeclaration-after-statement
16964 Wpointer-arith and -Wformat-nonliteral to warning flags.
16965 * configure: Regenerate.
16967 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16969 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16971 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16973 * gdbreplay.c (remote_error): New.
16975 (expect): Use gdbchar. Check for error reading from GDB.
16976 Clarify sync error output.
16977 (play): Check for errors writing to GDB.
16978 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16979 * remote-utils.c (getpkt): Check for errors writing to the remote
16982 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16984 * linux-low.c (linux_wait_1): Move non-debugging code out of
16985 `debug_threads' control.
16987 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16989 * linux-low.c (linux_wait_1): Don't set last_status here.
16990 * server.c (push_event, queue_stop_reply_callback): Assert we're
16991 not pushing a TARGET_WAITKIND_IGNORE event.
16992 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16993 (myresume, handle_target_event): Set the thread's last_resume_kind
16994 and last_status from the target returned status.
16996 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17000 * linux-x86-low.c (update_debug_registers_callback): New.
17001 (i386_dr_low_set_addr): Use it.
17002 (i386_dr_low_get_addr): New.
17003 (i386_dr_low_set_control): Use update_debug_registers_callback.
17004 (i386_dr_low_get_control): New.
17005 (i386_dr_low_get_status): Adjust.
17006 * linux-low.c (linux_stop_lwp): New.
17007 * linux-low.h (linux_stop_lwp): Declare.
17009 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17010 argument instead of a i386_debug_reg_state.
17011 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17012 a i386_debug_reg_state.
17013 (i386_insert_aligned_watchpoint): Adjust.
17014 (i386_remove_aligned_watchpoint): Adjust.
17015 (i386_low_stopped_data_address): Read the debug registers from the
17016 inferior instead of from the mirrors.
17017 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17018 (i386_dr_low_get_addr): Declare.
17019 (i386_dr_low_get_control): Declare.
17020 (i386_dr_low_get_status): Change prototype.
17022 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17023 (i386_dr_low_get_addr): New.
17024 (i386_dr_low_get_control): New.
17025 (i386_dr_low_get_status): Adjust prototype. Return
17027 (i386_initial_stuff): Clear dr_status_mirror and
17029 (i386_get_thread_context): Adjust.
17030 (i386_set_thread_context): Adjust.
17031 (i386_thread_added): Adjust.
17033 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17035 * linux-low.h (linux_thread_area): Delete declaration.
17037 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17039 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17040 after its termination.
17042 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17044 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17045 (gdb_wants_all_stopped): Delete.
17046 (linux_wait_1): Don't call them.
17047 * server.c (handle_v_cont): Tag all threads as want-stopped.
17048 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17049 stopped as "client-wants-stopped".
17051 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17053 * Makefile.in (signals_h): New.
17054 (server_h): Depend on it.
17055 (server.o): Don't depend on $(signals_def).
17056 (signals.o): Depend on $(signals_def).
17058 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17060 * Makefile.in (signals_def): New.
17061 (server_h): Append include/gdb/signals.h and signals_def.
17062 (server.o): Append signals_def.
17064 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17066 * server.c (handle_target_event): Use target_signal_to_host for
17067 resume_info.sig initialization.
17068 * target.h (struct thread_resume) <sig>: New comment.
17070 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17072 * server.c (handle_query): strcpy() the returned string from paddress()
17073 instead of sprintf().
17074 * utils.c (paddress): Return phex_nz().
17076 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17078 * server.c (handle_v_cont): Call mourn_inferior if process
17080 (myresume): Likewise.
17082 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17084 Static tracepoints, and integration with UST.
17086 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17087 * mem-break.c (uninsert_all_breakpoints)
17088 (reinsert_all_breakpoints): New.
17089 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17090 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17091 (gdb_agent_ust_loaded, helper_thread_id)
17092 (gdb_agent_helper_thread_id): New macros.
17093 (struct ipa_sym_addresses): Add addr_ust_loaded,
17094 addr_helper_thread_id, addr_cmd_buf.
17095 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17096 (in_process_agent_loaded_ust): New.
17097 (write_e_ust_not_loaded): New.
17098 (maybe_write_ipa_ust_not_loaded): New.
17099 (struct collect_static_trace_data_action): New.
17100 (enum tracepoint_type) <static_tracepoint>: New.
17101 (struct tracepoint) <handle>: Mention static tracepoints.
17102 (struct static_tracepoint_ctx): New.
17103 (CMD_BUF_SIZE): New.
17104 (add_tracepoint_action): Handle static tracepoint actions.
17105 (unprobe_marker_at): New.
17106 (clear_installed_tracepoints): Handle static tracepoints.
17107 (cmd_qtdp): Handle static tracepoints.
17108 (probe_marker_at): New.
17109 (cmd_qtstart): Handle static tracepoints.
17110 (response_tracepoint): Handle static tracepoints.
17111 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17112 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17113 (get_context_regcache): Handle static tracepoints.
17114 (do_action_at_tracepoint): Handle static tracepoint actions.
17115 (traceframe_find_block_type): Handle static trace data blocks.
17116 (traceframe_read_sdata): New.
17117 (download_tracepoints): Download static tracepoint actions.
17118 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17119 (GDB_PROBE_NAME): New.
17121 (GET_UST_SYM): New.
17124 (ust_marker_to_static_tracepoint): New.
17126 (collect_ust_data_at_tracepoint): New.
17127 (gdb_ust_probe): New.
17128 (UNIX_PATH_MAX, SOCK_DIR): New.
17129 (gdb_ust_connect_sync_socket): New.
17130 (resume_thread, stop_thread): New.
17131 (run_inferior_command): New.
17132 (init_named_socket): New.
17133 (gdb_ust_socket_init): New.
17134 (cstr_to_hexstr): New.
17136 (first_marker, next_marker): New.
17137 (response_ust_marker): New.
17138 (cmd_qtfstm, cmd_qtsstm): New.
17139 (unprobe_marker_at, probe_marker_at): New.
17140 (cmd_qtstmat, gdb_ust_thread): New.
17141 (gdb_ust_init): New.
17142 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17143 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17144 (ST_REGENTRY): New.
17145 (x86_64_st_collect_regmap): New.
17146 (X86_64_NUM_ST_COLLECT_GREGS): New.
17147 (AMD64_RIP_REGNUM): New.
17148 (supply_static_tracepoint_registers): New.
17149 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17150 (ST_REGENTRY): New.
17151 (i386_st_collect_regmap): New.
17152 (i386_NUM_ST_COLLECT_GREGS): New.
17153 (supply_static_tracepoint_registers): New.
17154 * server.c (handle_query): Handle qXfer:statictrace:read.
17155 <qSupported>: Report support for StaticTracepoints, and
17156 qXfer:statictrace:read features.
17157 * server.h (traceframe_read_sdata)
17158 (supply_static_tracepoint_registers): Declare.
17159 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17160 (unpack_varlen_hex): Include in IPA build.
17161 * Makefile.in (ustlibs, ustinc): New.
17162 (IPA_OBJS): Add remote-utils-ipa.o.
17163 ($(IPA_LIB)): Link -ldl and -lpthread.
17165 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17166 * config.in, configure: Regenerate.
17168 2010-06-20 Ian Lance Taylor <iant@google.com>
17169 Pedro Alves <pedro@codesourcery.com>
17171 * linux-x86-low.c (always_true): Delete.
17172 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17173 trying to fool the compiler with always_true.
17175 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17177 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17178 conditions in gdbserver.
17180 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17182 * spu-low.c (spu_read_memory): Wrap around local store limit.
17183 (spu_write_memory): Likewise.
17185 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17187 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17188 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17190 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17192 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17193 uses with LONGEST uses.
17195 2010-06-14 Stan Shebs <stan@codesourcery.com>
17196 Pedro Alves <pedro@codesourcery.com>
17200 * linux-x86-low.c: Include limits.h.
17202 (always_true): New.
17205 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17206 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17207 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17208 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17209 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17210 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17211 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17212 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17213 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17214 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17215 (amd64_emit_void_call_2): New.
17216 (amd64_emit_ops): New.
17217 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17218 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17219 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17220 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17221 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17222 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17223 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17224 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17225 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17226 (i386_emit_stack_adjust, i386_emit_int_call_1)
17227 (i386_emit_void_call_2): New.
17228 (i386_emit_ops): New.
17229 (x86_emit_ops): New.
17230 (the_low_target): Install x86_emit_ops.
17231 * server.h (struct emit_ops): New.
17232 (get_raw_reg_func_addr): Declare.
17233 (current_insn_ptr, emit_error): Declare.
17234 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17235 (set_trace_state_variable_value): New defines.
17236 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17237 addr_get_trace_state_variable_value and
17238 addr_set_trace_state_variable_value.
17239 (symbol_list): New fields for get_raw_reg,
17240 get_trace_state_variable_value and set_trace_state_variable_value.
17241 (condfn): New typedef.
17242 (struct tracepoint): New field `compiled_cond'.
17243 (do_action_at_tracepoint): Clear compiled_cond.
17244 (get_trace_state_variable_value, set_trace_state_variable_value):
17246 (condition_true_at_tracepoint): If there's a compiled condition,
17248 (current_insn_ptr, emit_error): New globals.
17249 (struct bytecode_address): New.
17250 (get_raw_reg_func_addr): New.
17251 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17252 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17253 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17254 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17255 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17256 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17257 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17258 (compile_tracepoint_condition, compile_bytecodes): New.
17259 * target.h (emit_ops): Forward declare.
17260 (struct target_ops): New field emit_ops.
17261 (target_emit_ops): New.
17262 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17263 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17264 * linux-low.c (linux_emit_ops): New.
17265 (linux_target_ops): Install it.
17266 * linux-low.h (struct linux_target_ops): New field emit_ops.
17268 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17270 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17271 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17273 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17274 Stan Shebs <stan@codesourcery.com>
17276 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17277 (all): Depend on $(extra_libraries).
17278 (install-only): Install the IPA.
17279 (IPA_OBJS, IPA_LIB): New.
17280 (clean): Remove the IPA lib.
17281 (IPAGENT_CFLAGS): New.
17282 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17283 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17284 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17285 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17286 * configure.ac: Check for atomic builtins support in the compiler.
17287 (IPA_DEPFILES, extra_libraries): Define.
17288 * configure.srv (ipa_obj): Add description.
17289 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17290 (i[34567]86-*-linux*): Set ipa_obj.
17291 (x86_64-*-linux*): Set ipa_obj.
17292 * linux-low.c (stabilizing_threads): New.
17293 (supports_fast_tracepoints): New.
17294 (linux_detach): Stabilize threads before detaching.
17295 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17296 the lwp is either not stabilizing, or is moving out of a jump pad.
17297 (linux_fast_tracepoint_collecting): New.
17298 (maybe_move_out_of_jump_pad): New.
17299 (enqueue_one_deferred_signal): New.
17300 (dequeue_one_deferred_signal): New.
17301 (linux_wait_for_event_1): If moving out of a jump pad, defer
17302 pending signals to later.
17303 (linux_stabilize_threads): New.
17304 (linux_wait_1): Check if threads need moving out of jump pads, and
17306 (stuck_in_jump_pad_callback): New.
17307 (move_out_of_jump_pad_callback): New.
17308 (lwp_running): New.
17309 (linux_resume_one_lwp): Handle moving out of jump pads.
17310 (linux_set_resume_request): Dequeue deferred signals.
17311 (need_step_over_p): Also step over fast tracepoint jumps.
17312 (start_step_over): Also uninsert fast tracepoint jumps.
17313 (finish_step_over): Also reinsert fast tracepoint jumps.
17314 (linux_install_fast_tracepoint_jump): New.
17315 (linux_target_ops): Install linux_stabilize_threads and
17316 linux_install_fast_tracepoint_jump_pad.
17317 * linux-low.h (linux_target_ops) <get_thread_area,
17318 install_fast_tracepoint_jump_pad>: New fields.
17319 (struct lwp_info) <collecting_fast_tracepoint,
17320 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17321 (linux_get_thread_area): Declare.
17322 * linux-x86-low.c (jump_insn): New.
17323 (x86_get_thread_area): New.
17324 (append_insns): New.
17325 (push_opcode): New.
17326 (amd64_install_fast_tracepoint_jump_pad): New.
17327 (i386_install_fast_tracepoint_jump_pad): New.
17328 (x86_install_fast_tracepoint_jump_pad): New.
17329 (the_low_target): Install x86_get_thread_area and
17330 x86_install_fast_tracepoint_jump_pad.
17331 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17332 (struct fast_tracepoint_jump): New.
17333 (fast_tracepoint_jump_insn): New.
17334 (fast_tracepoint_jump_shadow): New.
17335 (find_fast_tracepoint_jump_at): New.
17336 (fast_tracepoint_jump_here): New.
17337 (delete_fast_tracepoint_jump): New.
17338 (set_fast_tracepoint_jump): New.
17339 (uninsert_fast_tracepoint_jumps_at): New.
17340 (reinsert_fast_tracepoint_jumps_at): New.
17341 (set_breakpoint_at): Use write_inferior_memory.
17342 (uninsert_raw_breakpoint): Use write_inferior_memory.
17343 (check_mem_read): Mask out fast tracepoint jumps.
17344 (check_mem_write): Mask out fast tracepoint jumps.
17345 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17346 (set_fast_tracepoint_jump): Declare.
17347 (delete_fast_tracepoint_jump)
17348 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17349 (reinsert_fast_tracepoint_jumps_at): Declare.
17350 * regcache.c: Don't compile many functions when building the
17351 in-process agent library.
17352 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17353 the register buffer in the heap.
17354 (free_register_cache): If the register buffer isn't owned by the
17355 regcache, don't free it.
17356 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17357 pre-existing register caches.
17358 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17360 (convert_ascii_to_int): : Constify `from' parameter type.
17361 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17362 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17363 the needed buffer in-place.
17364 (relocate_instruction): New.
17365 * server.c (handle_query) <qSymbols>: If the target supports
17366 tracepoints, give it a chance of looking up symbols. Report
17367 support for fast tracepoints.
17368 (handle_status): Stabilize threads.
17369 (process_serial_event): Adjust.
17370 * server.h (struct fast_tracepoint_jump): Forward declare.
17371 (struct process_info) <fast_tracepoint_jumps>: New field.
17372 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17373 (decode_X_packet, decode_M_packet): Adjust.
17374 (relocate_instruction): Declare.
17375 (in_process_agent_loaded): Declare.
17376 (tracepoint_look_up_symbols): Declare.
17377 (struct fast_tpoint_collect_status): Declare.
17378 (fast_tracepoint_collecting): Declare.
17379 (force_unlock_trace_buffer): Declare.
17380 (handle_tracepoint_bkpts): Declare.
17381 (initialize_low_tracepoint)
17382 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17383 * target.h (struct target_ops) <stabilize_threads,
17384 install_fast_tracepoint_jump_pad>: New fields.
17385 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17386 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17387 [HAVE_STDINT_H]: Include stdint.h.
17388 (trace_debug_1): Rename to ...
17389 (trace_vdebug): ... this.
17390 (trace_debug): Rename to ...
17391 (trace_debug_1): ... this. Add `level' parameter.
17392 (trace_debug): New.
17393 (ATTR_USED, ATTR_NOINLINE): New.
17394 (IP_AGENT_EXPORT): New.
17395 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17396 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17397 (about_to_request_buffer_space, trace_buffer_is_full)
17398 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17399 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17400 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17401 (traceframe_write_count, traceframes_created)
17402 (trace_state_variables)
17403 New renaming defines.
17404 (struct ipa_sym_addresses): New.
17405 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17406 (symbol_list): New.
17407 (ipa_sym_addrs): New.
17408 (all_tracepoint_symbols_looked_up): New.
17409 (in_process_agent_loaded): New.
17410 (write_e_ipa_not_loaded): New.
17411 (maybe_write_ipa_not_loaded): New.
17412 (tracepoint_look_up_symbols): New.
17413 (debug_threads) [IN_PROCESS_AGENT]: New.
17414 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17415 (UNKNOWN_SIDE_EFFECTS): New.
17416 (stop_tracing): New.
17417 (flush_trace_buffer): New.
17418 (stop_tracing_bkpt): New.
17419 (flush_trace_buffer_bkpt): New.
17420 (read_inferior_integer): New.
17421 (read_inferior_uinteger): New.
17422 (read_inferior_data_pointer): New.
17423 (write_inferior_data_pointer): New.
17424 (write_inferior_integer): New.
17425 (write_inferior_uinteger): New.
17426 (struct collect_static_trace_data_action): Delete.
17427 (enum tracepoint_type): New.
17428 (struct tracepoint) <type>: New field `type'.
17429 <actions_str, step_actions, step_actions_str>: Only include in
17431 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17432 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17433 (tracepoints): Use IP_AGENT_EXPORT.
17434 (last_tracepoint): Don't include in the IPA.
17435 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17436 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17437 (alloced_trace_state_variables): New.
17438 (trace_state_variables): Use IP_AGENT_EXPORT.
17439 (traceframe_t): Delete unused variable.
17440 (circular_trace_buffer): Don't include in the IPA.
17441 (trace_buffer_start): Delete.
17442 (struct trace_buffer_control): New.
17443 (trace_buffer_free): Delete.
17444 (struct ipa_trace_buffer_control): New.
17445 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17446 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17448 (trace_buffer_ctrl): New.
17449 (TRACE_BUFFER_CTRL_CURR): New.
17450 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17451 Reimplement as macros.
17452 (trace_buffer_wrap): Delete.
17453 (traceframe_write_count, traceframe_read_count)
17454 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17455 (struct tracepoint_hit_ctx) <type>: New field.
17456 (struct fast_tracepoint_ctx): New.
17457 (memory_barrier): New.
17459 (record_tracepoint_error): Update atomically in the IPA.
17460 (clear_inferior_trace_buffer): New.
17461 (about_to_request_buffer_space): New.
17462 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17463 updating the same buffer.
17464 (add_tracepoint): Default the tracepoint's type to trap
17465 tracepoint, and orig_size to -1.
17466 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17467 internal variables.
17468 (create_trace_state_variable): New parameter `gdb'. Handle it.
17469 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17470 (cmd_qtdp): Handle fast tracepoints.
17471 (cmd_qtdv): Adjust.
17472 (max_jump_pad_size): New.
17473 (gdb_jump_pad_head): New.
17474 (get_jump_space_head): New.
17475 (claim_jump_space): New.
17476 (sort_tracepoints): New.
17477 (MAX_JUMP_SIZE): New.
17478 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17480 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17481 support. Upload fast traceframes, and delete internal IPA
17483 (stop_tracing_handler): New.
17484 (flush_trace_buffer_handler): New.
17485 (cmd_qtstop): Upload fast tracepoints.
17486 (response_tracepoint): Handle fast tracepoints.
17487 (tracepoint_finished_step): Upload fast traceframes. Set the
17488 tracepoint hit context's tracepoint type.
17489 (handle_tracepoint_bkpts): New.
17490 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17491 type. Add comment about fast tracepoints.
17492 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17493 non-existing action_str field.
17494 (get_context_regcache): Handle fast tracepoints.
17495 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17497 (fast_tracepoint_from_jump_pad_address): New.
17498 (fast_tracepoint_from_ipa_tpoint_address): New.
17499 (collecting_t): New.
17500 (force_unlock_trace_buffer): New.
17501 (fast_tracepoint_collecting): New.
17503 (gdb_collect): New.
17504 (write_inferior_data_ptr): New.
17505 (target_tp_heap): New.
17506 (target_malloc): New.
17507 (download_agent_expr): New.
17509 (download_tracepoints): New.
17510 (download_trace_state_variables): New.
17511 (upload_fast_traceframes): New.
17512 (IPA_FIRST_TRACEFRAME): New.
17513 (IPA_NEXT_TRACEFRAME_1): New.
17514 (IPA_NEXT_TRACEFRAME): New.
17515 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17516 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17517 (gdb_jump_pad_buffer_end): New.
17518 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17519 (initialize_tracepoint): Adjust.
17520 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17521 buffer. Initialize the low module.
17522 * utils.c (PREFIX, TOOLNAME): New.
17523 (malloc_failure): Use PREFIX.
17524 (error): In the IPA, an error causes an exit.
17525 (fatal, warning): Use PREFIX.
17526 (internal_error): Use TOOLNAME.
17527 (NUMCELLS): Increase to 10.
17528 * configure, config.in: Regenerate.
17530 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17532 * server.c (handle_query) <qSupported>: Do two passes over the
17533 qSupported string to avoid nesting strtok.
17535 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17537 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17539 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17540 -Wl,--dynamic-list.
17541 * configure: Regenerate.
17542 * proc-service.list: New.
17544 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17546 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17549 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17551 * gdbreplay.c (remote_open): Check error return from socket() call by
17552 its equality to -1 not by it being negative.
17553 * remote-utils.c (remote_open): Likewise.
17555 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17557 * config.h: Regenerate.
17559 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17561 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17562 doesn't provide PTRACE_GET_THREAD_AREA.
17564 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17566 * linux-m68k-low.c: Include <asm/ptrace.h>
17567 (ps_get_thread_area): Implement.
17569 2010-05-03 Doug Evans <dje@google.com>
17571 * event-loop.c (struct callback_event): New struct.
17572 (callback_list): New global.
17573 (append_callback_event, delete_callback_event): New functions.
17574 (process_callback): New function.
17575 (start_event_loop): Call it.
17576 * remote-utils.c (NOT_SCHEDULED): Define.
17577 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17578 moved out of readchar.
17579 (readchar): Rewrite. Call reschedule before returning.
17580 (reset_readchar): New function.
17581 (remote_close): Call it.
17582 (process_remaining, reschedule): New functions.
17583 * server.h (callback_handler_func): New typedef.
17584 (append_callback_event, delete_callback_event): Declare.
17586 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17588 * proc-service.c (ps_pglobal_lookup): Use
17589 thread_db_look_up_one_symbol.
17590 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17591 parameter. Use it instead of all_symbols_looked_up.
17592 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17594 (all_symbols_looked_up): Don't declare.
17595 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17596 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17598 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17599 Set all_symbols_looked_up here.
17600 (thread_db_look_up_one_symbol): New.
17601 (thread_db_get_tls_address): Adjust.
17602 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17603 thread_db object on the heap, and tentatively set it in the
17605 (thread_db_init): Don't set all_symbols_looked_up here.
17606 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17608 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17610 * linux-low.c (linux_kill, linux_detach): Adjust.
17611 (status_pending_p_callback): Remove redundant statement. Check
17612 for !TARGET_WAITIKIND_IGNORE, instead of
17613 TARGET_WAITKIND_STOPPED.
17614 (handle_tracepoints): Make sure LWP is locked. Adjust.
17615 (linux_wait_for_event_1): Adjust.
17616 (linux_cancel_breakpoints): New.
17617 (unsuspend_one_lwp): New.
17618 (unsuspend_all_lwps): New.
17619 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17620 (send_sigstop_callback): Change return type to int, add new
17621 `except' parameter and handle it.
17622 (suspend_and_send_sigstop_callback): New.
17623 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17624 pass them down. If SUSPEND, also increment the lwp's suspend
17626 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17627 (need_step_over_p): Don't consider suspended LWPs.
17628 (start_step_over): Adjust.
17629 (proceed_one_lwp): Change return type to int, add new `except'
17630 parameter and handle it.
17631 (unsuspend_and_proceed_one_lwp): New.
17632 (proceed_all_lwps): Use find_inferior instead of
17634 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17635 also decrement the suspend count of LWPs. Pass `except' down,
17636 instead of hacking its suspend count.
17637 (linux_pause_all): Add `freeze' parameter. Adjust.
17638 (linux_unpause_all): New.
17639 (linux_target_ops): Install linux_unpause_all.
17640 * server.c (handle_status): Adjust.
17641 * target.h (struct target_ops): New fields `unpause_all' and
17642 `cancel_breakpoints'. Add new parameter to `pause_all'.
17643 (pause_all): Add new `freeze' parameter.
17644 (unpause_all): New.
17645 (cancel_breakpoints): New.
17646 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17647 cancel breakpoints.
17648 (cmd_qtstart): Pause threads.
17649 (stop_tracing): Pause threads, and cancel breakpoints.
17650 * win32-low.c (win32_target_ops): Adjust.
17652 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17654 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17655 the inferior right away from here...
17656 (linux_wait_1): ... to here, and adjust to check the thread's
17657 last_resume_kind instead of the lwp's step or stop_expected flags.
17659 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17661 * README: Use consistent `GDB' and `GDBserver' spellings.
17663 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17665 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17666 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17667 (linux_detach_one_lwp): Assume the lwp is stopped.
17668 (any_thread_of): Delete.
17669 (linux_detach): Stop all lwps here. Don't blindly delete all
17671 (delete_lwp_callback): New.
17672 (linux_mourn): Delete all lwps of the process that is gone.
17673 (linux_wait_1): Don't delete the last lwp of the process here.
17674 * mem-break.h (mark_breakpoints_out): Declare.
17675 * mem-break.c (mark_breakpoints_out): New.
17676 (free_all_breakpoints): Use it.
17677 * server.c (handle_target_event): If the process is gone, mark
17679 * thread-db.c (struct thread_db) <create_bp>: New field.
17680 (thread_db_enable_reporting): Fix prototype. Store a thread event
17681 breakpoint reference in the thread_db struct.
17682 (thread_db_load_search): Clear the thread_db object.
17683 (try_thread_db_load_1): Ditto.
17684 (switch_to_process): New.
17685 (disable_thread_event_reporting): Use it.
17686 (remove_thread_event_breakpoints): New.
17687 (thread_db_detach, thread_db_mourn): Use it.
17689 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17691 * linux-low.c (linux_enable_event_reporting): New.
17692 (linux_wait_for_event_1, handle_extended_wait): Use it.
17694 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17696 * linux-low.c (linux_kill_one_lwp, linux_kill)
17697 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17698 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17699 SIGSTOP even if the LWP is stopped.
17700 (send_sigstop_callback): New.
17701 (stop_all_lwps): Use send_sigstop_callback instead.
17702 (linux_resume_one_thread): Adjust.
17703 (proceed_one_lwp): Still proceed an LWP that the client has
17704 requested to stop, if we haven't reported it as stopped yet. Make
17705 sure that LWPs the client want stopped, have a pending SIGSTOP.
17707 2010-04-26 Doug Evans <dje@google.com>
17709 * server.c (handle_general_set): Make static.
17711 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17712 Print received char after testing for error/eof instead of before.
17713 (input_interrupt): Tweak comment.
17715 2010-04-23 Doug Evans <dje@google.com>
17717 * server.c (start_inferior): Print inferior argv if --debug.
17719 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17721 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17722 * nto-x86-low.c: Include server.h
17724 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17726 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17727 be consistent with other sources of this directory.
17728 (init_registers_amd64): Correct name of source file of this function
17731 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17733 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17734 64-bit executables.
17736 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17738 * win32-i386-low.c: Add 64-bit support.
17739 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17740 (init_registers_amd64): Declare.
17741 (mappings): Add 64-bit version of array.
17742 (init_windows_x86): New function.
17743 (the_low_target): Change init_arch field to init_windows_x86.
17745 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17747 * win32-low.c: Adapt to support also 64-bit architecture.
17748 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17749 (get_image_name): Use SIZE_T type for local variable `done'.
17750 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17751 (toolhelp_get_dll_name): Idem.
17752 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17753 Use uintptr_t typecast to avoid warning.
17754 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17755 (handle_exception): Use phex_nz to avoid warning.
17756 (win32_wait): Remove unused local variable `process'.
17758 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17760 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17763 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17765 * configure.ac: Use `ws2_32' library for srv_mingw.
17766 * configure: Regenerate.
17767 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17768 * remote-utils.c: Likewise.
17770 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17772 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17773 if __x86_64__ is defined.
17775 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17777 * configure: Regenerate.
17779 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17781 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17782 * target.h (target_ops): New get_tib_address field.
17783 * win32-low.h (win32_thread_info): Add thread_local_base field.
17784 * win32-low.c (child_add_thread): Add tlb argument.
17785 Set thread_local_base field to TLB.
17786 (get_child_debug_event): Adapt to child_add_thread change.
17787 (win32_get_tib_address): New function.
17788 (win32_target_ops): Set get_tib_address field to
17789 win32_get_tib_address.
17790 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17792 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17794 * linux-low.c (linux_mourn): Also remove the process.
17795 * server.c (handle_target_event): Don't remove the process here.
17796 * nto-low.c (nto_mourn): New.
17797 (nto_target_ops): Install it.
17798 * spu-low.c (spu_mourn): New.
17799 (spu_target_ops): Install it.
17800 * win32-low.c (win32_mourn): New.
17801 (win32_target_ops): Install it.
17803 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17805 * server.h (buffer_xml_printf): Remove redundant `;'.
17807 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17809 * regcache.c (set_register_cache): Invalidate regcaches before
17810 changing the register cache layout.
17811 (regcache_invalidate_one): Allow a NULL regcache.
17812 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17813 regcaches before changing the register cache layout or the target
17816 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17818 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17819 variable warning on Linux/x86-64.
17821 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17823 GDBserver disconnected tracing support.
17825 * linux-low.c (linux_remove_process): Delete.
17826 (add_lwp): Don't set last_resume_kind here.
17827 (linux_kill): Use `mourn'.
17828 (linux_detach): Use `thread_db_detach', and `mourn'.
17829 (linux_mourn): New.
17830 (linux_attach_lwp_1): Adjust comment.
17831 (linux_attach): last_resume_kind moved the thread_info; adjust.
17832 (status_pending_p_callback): Adjust.
17833 (linux_wait_for_event_1): Adjust.
17834 (count_events_callback, select_singlestep_lwp_callback)
17835 (select_event_lwp_callback, cancel_breakpoints_callback)
17836 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17837 (proceed_one_lwp): Adjust.
17838 (linux_async): Add debug output.
17839 (linux_thread_stopped): New.
17840 (linux_pause_all): New.
17841 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17843 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17844 (thread_db_free): Delete declaration.
17845 (thread_db_detach, thread_db_mourn): Declare.
17846 * thread-db.c (thread_db_init): Use thread_db_mourn.
17847 (thread_db_free): Delete, split in two.
17848 (disable_thread_event_reporting): New.
17849 (thread_db_detach): New.
17850 (thread_db_mourn): New.
17852 * server.h (struct thread_info) <last_resume_kind>: New field.
17853 <attached>: Add comment.
17854 <gdb_detached>: New field.
17855 (handler_func): Change return type to int.
17856 (handle_serial_event, handle_target_event): Ditto.
17857 (gdb_connected): Declare.
17859 (disconnected_tracing): Declare.
17860 (stop_tracing): Declare.
17862 * server.c (handle_query) <qSupported>: Report support for
17863 disconnected tracing.
17864 (queue_stop_reply_callback): Account for running threads.
17865 (gdb_wants_thread_stopped): New.
17866 (gdb_wants_all_threads_stopped): New.
17867 (gdb_reattached_process): New.
17868 (handle_status): Clear the `gdb_detached' flag of all processes.
17869 In all-stop, stop all threads.
17870 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17871 (process_serial_event): If the remote connection breaks, or if an
17872 exit was forced with "monitor exit", force an event loop exit.
17873 Handle disconnected tracing on detach.
17874 (handle_serial_event): Adjust.
17875 (handle_target_event): If GDB isn't connected, forward events back
17876 to the inferior, unless the last process exited, in which case,
17877 exit gdbserver. Adjust interface.
17879 * remote-utils.c (remote_open): Don't block in accept. Instead
17880 register an event loop source on the listen socket file
17881 descriptor. Refactor bits into ...
17882 (listen_desc): ... this new global.
17883 (gdb_connected): ... this new function.
17884 (enable_async_notification): ... this new function.
17885 (handle_accept_event): ... this new function.
17886 (remote_close): Clear remote_desc.
17888 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17890 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17892 (mourn_inferior): Define.
17893 (target_process_qsupported): Avoid the dangling else problem.
17894 (thread_stopped): Define.
17895 (pause_all): Define.
17896 (target_waitstatus_to_string): Declare.
17897 * target.c (target_waitstatus_to_string): New.
17899 * tracepoint.c (tracing): Make extern.
17900 (disconnected_tracing): New.
17901 (stop_tracing): Make extern. Handle tracing stops due to GDB
17903 (cmd_qtdisconnected): New.
17904 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17905 (handle_tracepoint_general_set): Handle QTDisconnected.
17907 * event-loop.c (event_handler_func): Change return type to int.
17908 (process_event): Bail out if the event handler wants the event
17910 (handle_file_event): Ditto.
17911 (start_event_loop): Bail out if the event handler wants the event
17914 * nto-low.c (nto_target_ops): Adjust.
17915 * spu-low.c (spu_wait): Don't remove the process here.
17916 (spu_target_ops): Adjust.
17917 * win32-low.c (win32_wait): Don't remove the process here.
17918 (win32_target_ops): Adjust.
17920 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17922 * regcache.c (realloc_register_cache): Invalidate inferior's
17923 regcache before recreating it.
17925 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17927 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17929 2010-04-09 Stan Shebs <stan@codesourcery.com>
17930 Pedro Alves <pedro@codesourcery.com>
17932 * server.h (LONGEST): New.
17933 (struct thread_info) <while_stepping>: New field.
17934 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17936 (initialize_tracepoint, handle_tracepoint_general_set)
17937 (handle_tracepoint_query, tracepoint_finished_step)
17938 (tracepoint_was_hit, release_while_stepping_state_list):
17939 (current_traceframe): Declare.
17940 * server.c (handle_general_set): Handle tracepoint packets.
17941 (read_memory): New.
17942 (write_memory): New.
17943 (handle_search_memory_1): Use read_memory.
17944 (handle_query): Report support for conditional tracepoints, trace
17945 state variables, and tracepoint sources. Handle tracepoint
17947 (main): Initialize the tracepoints module.
17948 (process_serial_event): Handle traceframe reads/writes.
17950 * linux-low.c (handle_tracepoints): New.
17951 (linux_wait_1): Call it.
17952 (linux_resume_one_lwp): Handle while-stepping.
17953 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17954 (linux_target_ops): Install them.
17955 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17957 * linux-x86-low.c (x86_supports_tracepoints): New.
17958 (the_low_target). Install it.
17960 * mem-break.h (delete_breakpoint): Declare.
17961 * mem-break.c (delete_breakpoint): Make external.
17963 * target.h (struct target_ops): Add `supports_tracepoints',
17964 `read_pc', and `write_pc' fields.
17965 (target_supports_tracepoints): Define.
17966 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17969 * regcache.h (struct regcache) <registers_owned>: New field.
17970 (init_register_cache, regcache_cpy): Declare.
17971 (regcache_read_pc, regcache_write_pc): Declare.
17972 (register_cache_size): Declare.
17973 (supply_regblock): Declare.
17974 * regcache.c (init_register_cache): New.
17975 (new_register_cache): Use it.
17976 (regcache_cpy): New.
17977 (register_cache_size): New.
17978 (supply_regblock): New.
17979 (regcache_read_pc, regcache_write_pc): New.
17981 * tracepoint.c: New.
17983 * Makefile.in (OBS): Add tracepoint.o.
17984 (tracepoint.o): New rule.
17986 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17988 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17990 (i386-mmx.c): Likewise.
17991 (i386-mmx-linux.o): Likewise.
17992 (i386-mmx-linux.c): Likewise.
17994 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17995 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17996 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17997 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17999 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18000 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18001 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18003 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18005 * Makefile.in (clean): Updated.
18007 (i386-avx.c): Likewise.
18008 (i386-avx-linux.o): Likewise.
18009 (i386-avx-linux.c): Likewise.
18010 (amd64-avx.o): Likewise.
18011 (amd64-avx.c): Likewise.
18012 (amd64-avx-linux.o): Likewise.
18013 (amd64-avx-linux.c): Likewise.
18015 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18016 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18017 (srv_amd64_regobj): Add amd64-avx.o.
18018 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18019 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18020 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18021 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18022 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18023 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18024 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18026 * i387-fp.c: Include "i386-xstate.h".
18028 (i387_cache_to_xsave): Likewise.
18029 (i387_xsave_to_cache): Likewise.
18030 (x86_xcr0): Likewise.
18032 * i387-fp.h (i387_cache_to_xsave): Likewise.
18033 (i387_xsave_to_cache): Likewise.
18034 (x86_xcr0): Likewise.
18036 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18037 * linux-crisv32-low.c (target_regsets): Likewise.
18038 * linux-m68k-low.c (target_regsets): Likewise.
18039 * linux-mips-low.c (target_regsets): Likewise.
18040 * linux-ppc-low.c (target_regsets): Likewise.
18041 * linux-s390-low.c (target_regsets): Likewise.
18042 * linux-sh-low.c (target_regsets): Likewise.
18043 * linux-sparc-low.c (target_regsets): Likewise.
18044 * linux-xtensa-low.c (target_regsets): Likewise.
18046 * linux-low.c: Include <sys/uio.h>.
18047 (regsets_fetch_inferior_registers): Support nt_type.
18048 (regsets_store_inferior_registers): Likewise.
18049 (linux_process_qsupported): New.
18050 (linux_target_ops): Add linux_process_qsupported.
18052 * linux-low.h (regset_info): Add nt_type.
18053 (linux_target_ops): Add process_qsupported.
18055 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18057 (init_registers_i386_avx_linux): New.
18058 (init_registers_amd64_avx_linux): Likewise.
18059 (xmltarget_i386_linux_no_xml): Likewise.
18060 (xmltarget_amd64_linux_no_xml): Likewise.
18061 (PTRACE_GETREGSET): Likewise.
18062 (PTRACE_SETREGSET): Likewise.
18063 (x86_fill_xstateregset): Likewise.
18064 (x86_store_xstateregset): Likewise.
18065 (use_xml): Likewise.
18066 (x86_linux_update_xmltarget): Likewise.
18067 (x86_linux_process_qsupported): Likewise.
18068 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18069 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18070 init_registers_i386_linux here. Call
18071 x86_linux_update_xmltarget.
18072 (the_low_target): Add x86_linux_process_qsupported.
18074 * server.c (handle_query): Call target_process_qsupported.
18076 * target.h (target_ops): Add process_qsupported.
18077 (target_process_qsupported): New.
18079 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18081 * inferiors.c (add_thread): Set last_status kind to
18082 TARGET_WAITKIND_IGNORE.
18083 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18084 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18085 (linux_wait_1): Move `thread' local definition to block that uses
18086 it. Don't NULL initialize `event_child'.
18087 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18088 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18089 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18091 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18093 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18094 an extended waitstatus, or by a watchpoint.
18095 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18096 thread was stepping or has been stopped by a watchpoint.
18098 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18100 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18101 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18102 of another, then delete the previous, and validate all
18104 (validate_inserted_breakpoint): New.
18105 (delete_disabled_breakpoints): New.
18106 (validate_breakpoints): New.
18107 (check_mem_read): Validate breakpoints before trusting their
18108 shadow. Delete disabled breakpoints.
18109 (check_mem_write): Validate breakpoints before trusting they
18110 should be inserted. Delete disabled breakpoints.
18111 * mem-break.h (validate_breakpoints):
18112 * server.c (handle_query): Validate breakpoints when we see a
18115 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18117 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18118 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18119 if we could tell there's a GDB breakpoint at stop_pc.
18120 (need_step_over_p): Don't do a step over if we find a GDB
18121 breakpoint at the resume PC.
18123 * mem-break.c (struct raw_breakpoint): New.
18124 (enum bkpt_type): New type `gdb_breakpoint'.
18125 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18126 fields. New field `raw'.
18127 (find_raw_breakpoint_at): New.
18128 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18129 breakpoint instead.
18130 (set_breakpoint_at): Adjust.
18131 (delete_raw_breakpoint): New.
18132 (release_breakpoint): New.
18133 (delete_breakpoint): Rename to...
18134 (delete_breakpoint_1): ... this. Add proc parameter. Use
18135 release_breakpoint. Return ENOENT.
18136 (delete_breakpoint): Reimplement.
18137 (find_breakpoint_at): Delete.
18138 (find_gdb_breakpoint_at): New.
18139 (delete_breakpoint_at): Delete.
18140 (set_gdb_breakpoint_at): New.
18141 (delete_gdb_breakpoint_at): New.
18142 (gdb_breakpoint_here): New.
18143 (set_reinsert_breakpoint): Use release_breakpoint.
18144 (uninsert_breakpoint): Rename to ...
18145 (uninsert_raw_breakpoint): ... this.
18146 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18147 (reinsert_raw_breakpoint): Change parameter type to
18149 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18151 (check_breakpoints): Adjust. Use release_breakpoint.
18152 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18153 (breakpoint_inserted_here): Ditto.
18154 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18155 Don't trust the breakpoint's shadow if it is not inserted.
18156 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18157 (delete_all_breakpoints): Adjust.
18158 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18159 use delete_breakpoint_1.
18161 * mem-break.h (breakpoints_supported): Delete declaration.
18162 (set_gdb_breakpoint_at): Declare.
18163 (gdb_breakpoint_here): Declare.
18164 (delete_breakpoint_at): Delete.
18165 (delete_gdb_breakpoint_at): Declare.
18167 * server.h (struct raw_breakpoint): Forward declare.
18168 (struct process_info): New field `raw_breakpoints'.
18170 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18173 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18175 * linux-low.c (status_pending_p_callback): Fix comment.
18176 (linux_wait_for_event_1): Move most of the internal breakpoint
18177 handling from here...
18178 (linux_wait_1): ... to here.
18179 (count_events_callback): New.
18180 (select_singlestep_lwp_callback): New.
18181 (select_event_lwp_callback): New.
18182 (cancel_breakpoints_callback): New.
18183 (select_event_lwp): New.
18184 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18185 priority to all LWPs that have had events that should be reported
18186 to the client. Cancel breakpoints when about to reporting the
18187 event to the client, not while stopping lwps. No longer cancel
18188 finished single-steps here.
18189 (cancel_finished_single_step): Delete.
18190 (cancel_finished_single_steps): Delete.
18192 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18194 * mem-break.c (enum bkpt_type): New.
18195 (struct breakpoint): New field `type'.
18196 (set_breakpoint_at): Change return type to struct breakpoint
18197 pointer. Set type to `other_breakpoint' by default.
18198 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18199 in the breakpoint list.
18200 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18201 (reinsert_breakpoint): Rename to ...
18202 (reinsert_raw_breakpoint): ... this.
18203 (reinsert_breakpoints_at): Adjust.
18204 * mem-break.h (struct breakpoint): Declare.
18205 (set_breakpoint_at): Change return type to struct breakpoint
18208 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18210 * server.c (handle_query): Assign, not compare.
18212 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18214 Teach linux gdbserver to step-over-breakpoints.
18216 * linux-low.c (can_hardware_single_step): New.
18217 (supports_breakpoints): New.
18218 (handle_extended_wait): If stopping threads, read the stop pc of
18219 the new cloned LWP.
18221 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18222 low target doesn't support retrieving the PC.
18223 (add_lwp): Set last_resume_kind to resume_continue.
18224 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18225 (linux_attach): Don't clear stop_expected. Set the lwp's
18226 last_resume_kind to resume_stop.
18227 (linux_detach_one_lwp): Don't check for removed breakpoints.
18228 (check_removed_breakpoint): Delete.
18229 (status_pending_p): Rename to ...
18230 (status_pending_p_callback): ... this. Don't check for removed
18231 breakpoints. Don't consider threads that are stopped from GDB's
18233 (linux_wait_for_lwp): Always read the stop_pc here.
18234 (cancel_breakpoint): New.
18235 (step_over_bkpt): New global.
18236 (linux_wait_for_event_1): Implement stepping over breakpoints.
18237 (gdb_wants_lwp_stopped): New.
18238 (gdb_wants_all_stopped): New.
18239 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18240 single-step traps here. Store the thread's last reported target
18242 (send_sigstop): Don't clear stop_expected. Always set it,
18244 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18245 (cancel_finished_single_step): New.
18246 (cancel_finished_single_steps): New.
18247 (wait_for_sigstop): Don't cancel finished single-step traps here.
18248 (linux_resume_one_lwp): Don't check for removed breakpoints.
18249 Don't set `step' on non-hardware step archs.
18250 (linux_set_resume_request): Ignore resume_stop requests if already
18251 stopping or stopped. Set the lwp's last_resume_kind.
18252 (resume_status_pending_p): Don't check for removed breakpoints.
18253 (need_step_over_p): New.
18254 (start_step_over): New.
18255 (finish_step_over): New.
18256 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18257 requests. Clear the thread's last reported target waitstatus.
18258 Don't use the `suspended' flag. Don't consider pending breakpoints.
18259 (linux_resume): Start a step-over if necessary.
18260 (proceed_one_lwp): New.
18261 (proceed_all_lwps): New.
18262 (unstop_all_lwps): New.
18263 * linux-low.h (struct lwp_info): Rewrite comment for the
18264 `suspended' flag. Add the `stop_pc' field. Delete the
18265 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18266 Add `'last_resume_kind' and `need_step_over' fields.
18267 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18268 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18269 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18270 (set_raw_breakpoint_at): New.
18271 (set_breakpoint_at): Rewrite to use it.
18272 (reinsert_breakpoint_handler): Delete.
18273 (set_reinsert_breakpoint): New.
18274 (reinsert_breakpoint_by_bp): Delete.
18275 (delete_reinsert_breakpoints): New.
18276 (uninsert_breakpoint): Rewrite.
18277 (uninsert_breakpoints_at): New.
18278 (reinsert_breakpoint): Rewrite.
18279 (reinsert_breakpoints_at): New.
18280 (check_breakpoints): Rewrite.
18281 (breakpoint_here): New.
18282 (breakpoint_inserted_here): New.
18283 (check_mem_read): Adjust.
18284 * mem-break.h (breakpoints_supported, breakpoint_here)
18285 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18286 (reinsert_breakpoint_by_bp): Delete declaration.
18287 (delete_reinsert_breakpoints): Declare.
18288 (reinsert_breakpoint): Delete declaration.
18289 (reinsert_breakpoints_at): Declare.
18290 (uninsert_breakpoint): Delete declaration.
18291 (uninsert_breakpoints_at): Declare.
18292 (check_breakpoints): Adjust prototype.
18293 * server.h: Adjust include order.
18294 (struct thread_info): Declare here. Add a `last_status' field.
18296 2010-03-23 Michael Snyder <msnyder@vmware.com>
18298 * server.c (crc32): New function.
18299 (handle_query): Add handling for 'qCRC:' request.
18301 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18303 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18304 lwp had been stopped by a watchpoint.
18306 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18308 * server.h (internal_error): Declare.
18309 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18310 * utils.c (internal_error): New function.
18312 2010-03-15 Andreas Schwab <schwab@redhat.com>
18314 * configure.srv: Fix typo setting srv_regobj.
18316 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18318 * linux-low.c (fetch_register): Avoid passing a non string literal
18320 (usr_store_inferior_registers): Ditto.
18322 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18324 * linux-low.c (linux_write_memory): Bail out early if peeking
18327 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18329 * linux-low.h (struct lwp_info): New fields
18330 `stopped_by_watchpoint' and `stopped_data_address'.
18331 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18332 here, and cache them in the lwp object.
18333 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18335 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18337 (linux_stopped_by_watchpoint): Rewrite.
18338 (linux_stopped_data_address): Rewrite.
18340 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18342 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18343 switching the current inferior, not before.
18345 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18347 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18348 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18349 i386-linux.c and amd64-linux.c.
18350 (reg-i386.o): Removed.
18351 (reg-i386.c): Likewise.
18352 (reg-i386-linux.o): Likewise.
18353 (reg-i386-linux.c): Likewise.
18354 (reg-x86-64.o): Likewise.
18355 (reg-x86-64.c): Likewise.
18356 (reg-x86-64-linux.o): Likewise.
18357 (reg-x86-64-linux.c): Likewise.
18359 (i386.c): Likewise.
18360 (i386-linux.o): Likewise.
18361 (i386-linux.c): Likewise.
18362 (amd64.o): Likewise.
18363 (amd64.c): Likewise.
18364 (amd64-linux.o): Likewise.
18365 (amd64-linux.c): Likewise.
18367 * configure.srv (srv_i386_regobj): New.
18368 (srv_i386_linux_regobj): Likewise.
18369 (srv_amd64_regobj): Likewise.
18370 (srv_amd64_linux_regobj): Likewise.
18371 (srv_i386_32bit_xmlfiles): Likewise.
18372 (srv_i386_64bit_xmlfiles): Likewise.
18373 (srv_i386_xmlfiles): Likewise.
18374 (srv_amd64_xmlfiles): Likewise.
18375 (srv_i386_linux_xmlfiles): Likewise.
18376 (srv_amd64_linux_xmlfiles): Likewise.
18377 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18378 srv_xmlfiles to $srv_i386_xmlfiles.
18379 (i[34567]86-*-mingw32ce*): Likewise.
18380 (i[34567]86-*-mingw*): Likewise.
18381 (i[34567]86-*-nto*): Likewise.
18382 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18383 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18384 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18385 (x86_64-*-linux*): Likewise.
18387 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18388 (init_registers_amd64_linux): New.
18389 (x86_arch_setup): Replace init_registers_x86_64_linux with
18390 init_registers_amd64_linux.
18392 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18394 * configure.ac: Check for libdl. If it is not available link against
18395 static libthread_db.
18396 * configure: Regenerate.
18398 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18402 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18403 handing a read watchpoint.
18404 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18406 2010-02-12 Doug Evans <dje@google.com>
18408 * linux-low.c (linux_supports_tracefork_flag): Document.
18409 (linux_look_up_symbols): Add comment.
18411 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18413 * regcache.c (supply_register): Clear regcache if buf is NULL.
18415 2010-02-02 Nicolas Roche <roche@sourceware.org>
18416 Joel Brobecker <brobecker@adacore.com>
18418 * inferiors.c (find_inferior): Add function documentation.
18419 (unloaded_dll): Handle the case where the unloaded dll has not
18420 been previously registered in the dll list.
18422 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18424 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18425 (thumb2_breakpoint): New.
18426 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18428 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18430 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18431 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18434 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18436 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18438 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18440 * linux-s390-low.c (s390_collect_ptrace_register)
18441 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18443 2010-01-21 Doug Evans <dje@google.com>
18445 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18446 (PTRACE_ARG4_TYPE): New macro.
18447 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18448 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18449 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18450 (usr_store_inferior_registers): Ditto.
18451 (linux_read_memory, linux_write_memory): Ditto.
18452 (linux_test_for_tracefork): Ditto.
18454 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18455 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18457 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18459 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18462 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18464 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18465 prototype to take a regcache. Adjust.
18467 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18469 * regcache.h (struct thread_info): Forward declare.
18470 (struct regcache): New.
18471 (new_register_cache): Adjust prototype.
18472 (get_thread_regcache): Declare.
18473 (free_register_cache): Adjust prototype.
18474 (registers_to_string, registers_from_string): Ditto.
18475 (supply_register, supply_register_by_name, collect_register)
18476 (collect_register_as_string, collect_register_by_name): Ditto.
18477 * regcache.c (struct inferior_regcache_data): Delete.
18478 (get_regcache): Rename to ...
18479 (get_thread_regcache): ... this. Adjust. Switch inferior before
18480 fetching registers.
18481 (regcache_invalidate_one): Adjust.
18482 (regcache_invalidate): Fix prototype.
18483 (new_register_cache): Return the new register cache.
18484 (free_register_cache): Change prototype.
18485 (realloc_register_cache): Adjust.
18486 (registers_to_string): Change prototype to take a regcache. Adjust.
18487 (registers_from_string): Ditto.
18488 (register_data): Ditto.
18489 (supply_register): Ditto.
18490 (supply_register_by_name): Ditto.
18491 (collect_register): Ditto.
18492 (collect_register_as_string): Ditto.
18493 (collect_register_by_name): Ditto.
18494 * server.c (process_serial_event): Adjust.
18495 * linux-low.h (regset_fill_func, regset_store_func): Change
18497 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18499 * linux-low.c (get_stop_pc): Adjust.
18500 (check_removed_breakpoint): Adjust.
18501 (linux_wait_for_event): Adjust.
18502 (linux_resume_one_lwp): Adjust.
18503 (fetch_register): Add regcache parameter. Adjust.
18504 (usr_store_inferior_registers): Ditto.
18505 (regsets_fetch_inferior_registers): Ditto.
18506 (regsets_store_inferior_registers): Ditto.
18507 (linux_fetch_registers, linux_store_registers): Ditto.
18508 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18510 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18512 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18513 prototype to take a regcache.
18514 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18515 * remote-utils.c (convert_ascii_to_int, outreg)
18516 (prepare_resume_reply): Change prototype to take a regcache.
18518 * target.h (struct target_ops) <fetch_registers, store_registers>:
18519 Change prototype to take a regcache.
18520 (fetch_inferior_registers, store_inferior_registers): Change
18521 prototype to take a regcache. Adjust.
18522 * proc-service.c (ps_lgetregs): Adjust.
18523 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18524 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18525 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18526 take a regcache. Adjust.
18527 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18528 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18529 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18530 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18531 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18532 (cris_cannot_fetch_register):
18533 (cris_breakpoint_at): Change prototype to take a regcache.
18535 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18536 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18537 to take a regcache. Adjust.
18538 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18540 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18541 take a regcache. Adjust.
18542 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18543 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18544 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18545 * linux-mips-low.c (mips_get_pc):
18546 (mips_set_pc): Change prototype to take a regcache. Adjust.
18547 (mips_reinsert_addr): Adjust.
18548 (mips_collect_register): Change prototype to take a regcache.
18550 (mips_supply_register):
18551 (mips_collect_register_32bit, mips_supply_register_32bit)
18552 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18553 (mips_store_fpregset): Ditto.
18554 * linux-ppc-low.c (ppc_supply_ptrace_register)
18555 (ppc_supply_ptrace_register): Ditto.
18556 (parse_spufs_run): Adjust.
18557 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18558 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18559 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18560 take a regcache. Adjust.
18561 * linux-s390-low.c (s390_collect_ptrace_register)
18562 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18563 (s390_set_pc): Change prototype to take a regcache. Adjust.
18564 (s390_arch_setup): Adjust.
18565 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18566 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18567 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18568 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18569 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18571 (sparc_breakpoint_at): Adjust.
18572 * linux-xtensa-low.c (xtensa_fill_gregset):
18573 (xtensa_store_gregset):
18574 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18575 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18576 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18577 prototype to take a regcache. Adjust.
18578 * win32-arm-low.c (arm_fetch_inferior_register)
18579 (arm_store_inferior_register): Change prototype to take a
18581 * win32-i386-low.c (i386_fetch_inferior_register)
18582 (i386_store_inferior_register): Change prototype to take a
18584 * win32-low.c (child_fetch_inferior_registers)
18585 (child_store_inferior_registers): Change prototype to take a
18587 (win32_wait): Adjust.
18588 (win32_fetch_inferior_registers): Change prototype to take a
18590 (win32_store_inferior_registers): Adjust.
18591 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18592 store_inferior_register>: Change prototype to take a regcache.
18594 2010-01-20 Doug Evans <dje@google.com>
18596 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18598 (linux_wait_for_event1, linux_init_signals): Ditto.
18599 (W_STOPCODE): Provide definition if missing.
18601 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18603 * linux-low.c (linux_core_of_thread): New.
18604 (compare_ints, show_process, list_threads): New.
18605 (linux_qxfer_osdata): Report threads and cores.
18606 (linux_target_op): Register linux_core_of_thread.
18607 * remote-utils.c (prepare_resume_reply): Report the core.
18608 (buffer_xml_printf): Support %d specifier.
18609 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18611 (handle_query): Handle qXfer:threads. Announce availability
18613 * target.h (struct target_ops): New field core_of_thread.
18615 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18617 * Makefile.in (clean): Remove new generated files.
18618 (reg-s390.o, reg-s390.c): Remove rules.
18619 (reg-s390x.o, reg-s390x.c): Likewise.
18620 (s390-linux32.o, s390-linux32.c): Add rules.
18621 (s390-linux64.o, s390-linux64.c): Likewise.
18622 (s390x-linux64.o, s390x-linux64.c): Likewise.
18623 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18624 * linux-s390-low.c: Include <elf.h>.
18625 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18626 (init_registers_s390): Remove prototype.
18627 (init_registers_s390x): Likewise.
18628 (init_registers_s390_linux32): Add prototype.
18629 (init_registers_s390_linux64): Likewise.
18630 (init_registers_s390x_linux64): Likewise.
18631 (s390_num_regs_3264): New define.
18632 (s390_regmap_3264): New global variable.
18633 (s390_cannot_fetch_register): Remove obsolete check.
18634 (s390_cannot_store_register): Likewise.
18635 (s390_collect_ptrace_register): Handle upper/lower register halves.
18636 (s390_supply_ptrace_register): Likewise.
18637 (s390_fill_gregset): Update to register number changes.
18638 (s390_get_hwcap): New routine.
18639 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18640 Install appropriate regmap and register set.
18642 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18644 * server.c (gdbserver_version): Update copyright year to 2010.
18645 * gdbreplay.c (gdbreplay_version): Likewise.
18647 2009-12-28 Doug Evans <dje@google.com>
18649 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18650 elf/external.h. Include <elf.h> instead but only if necessary.
18652 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18654 * linux-low.c (linux_remove_process): Remove `detaching'
18655 parameter. Don't release/detach from thread_db here.
18656 (linux_kill): Release/detach from thread_db here, ...
18657 (linux_detach): ... and here, before actually detaching.
18658 (linux_wait_1): ... and here, when a process exits.
18659 * thread-db.c (any_thread_of): New.
18660 (thread_db_free): Switch the current inferior to a thread of the
18663 2009-12-21 Doug Evans <dje@google.com>
18665 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18667 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18668 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18669 warning ifndef __NR_tkill. Move setting of errno there too.
18670 Delete unnecessary resetting of errno after syscall.
18671 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18673 * configure.ac: Check for dladdr.
18674 * config.in: Regenerate.
18675 * configure: Regenerate.
18676 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18677 (try_thread_db_load): Update.
18679 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18681 2009-12-18 Doug Evans <dje@google.com>
18683 * event-loop.c: Include unistd.h if it exists.
18685 * linux-low.c (my_waitpid): Move definition away from being in
18686 between linux_tracefork_child/linux_test_for_tracefork.
18688 * gdb_proc_service.h (psaddr_t): Fix type.
18689 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18690 signature to match glibc.
18692 2009-12-16 Doug Evans <dje@google.com>
18694 * linux-low.c (linux_read_memory): Fix argument to read.
18696 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18698 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18699 events, don't leave current_inferior pointing at null.
18701 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18703 * win32-low.c (LOG): Delete.
18704 (OUTMSG): Output to stderr.
18705 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18706 on compile time LOG macro.
18707 (win32_wait): Fix debug output.
18709 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18711 * win32-low.c (win32_add_one_solib): If the dll name is
18712 "ntdll.dll", prepend the system directory to the dll path.
18714 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18716 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18718 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18719 Vladimir Prus <vladimir@codesourcery.com>
18721 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18722 * configure.ac: Check for __mcoldfire__ and set
18723 gdb_cv_m68k_is_coldfire.
18724 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18725 reg-cf.o and reg-m68k.o.
18726 * configure: Regenerated.
18728 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18730 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18731 Pass it to thread_db_free.
18732 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18733 proper `detaching' argument to linux_remove_process.
18734 * linux-low.h (thread_db_free): Add `detaching' parameter.
18735 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18737 (thread_db_free): Add `detaching' parameter. Only
18738 call td_ta_clear_event if detaching from process.
18740 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18742 * thread-db.c (thread_db_free): Fix typo.
18744 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18747 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18749 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18751 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18752 with an i686 compiler.
18753 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18755 * configure: Rebuilt.
18757 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18761 * server.c (handle_search_memory_1): Correct read_addr initialization
18762 in loop for searching subsequent chunks.
18764 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18766 * configure.ac: New --with-libthread-db option.
18767 * thread-db.c: Allow direct dependence on libthread_db.
18768 (thread_db_free): Adjust.
18769 * config.in: Regenerate.
18770 * configure: Likewise.
18772 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18775 * thread-db.c (attach_thread): New function.
18776 (maybe_attach_thread): Return success/failure.
18777 (find_new_threads_callback): Adjust.
18778 (thread_db_find_new_threads): Loop until no new threads.
18780 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18782 * proc-service.c (ps_lgetregs): Formatting.
18784 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18786 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18787 * configure.ac: Adjust.
18788 * linux-low.h (struct process_info_private): Move members to struct
18790 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18791 * linux-low.c (linux_remove_process): Adjust.
18792 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18793 * server.c (handle_query): Move code ...
18794 (handle_monitor_command): ... here. New function.
18795 * target.h (struct target_ops): New member.
18796 * thread-db.c (struct thread_db): New.
18797 (libthread_db_search_path): New variable.
18798 (thread_db_create_event, thread_db_enable_reporting)
18799 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18800 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18801 (try_thread_db_load_1, dladdr_to_soname): New functions.
18802 (try_thread_db_load, thread_db_load_search): New functions.
18803 (thread_db_init): Search for libthread_db.
18804 (thread_db_free): New function.
18805 (thread_db_handle_monitor_command): Likewise.
18806 * config.in: Regenerate.
18807 * configure: Regenerate.
18809 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18811 * spu-low.c (spu_kill): Wait for inferior to terminate.
18812 Call clear_inferiors.
18813 (spu_detach): Call clear_inferiors.
18815 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18817 * aclocal.m4: Regenerate.
18818 * config.in: Likewise.
18819 * configure: Likewise.
18821 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18823 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18824 (parse_spufs_run): New function.
18825 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18826 (ppc_breakpoint_at): Handle SPU breakpoints.
18828 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18830 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18831 (SPUFS_MAGIC): Define.
18832 (spu_enumerate_spu_ids): New function.
18833 (linux_qxfer_spu): New function.
18834 (linux_target_ops): Install linux_qxfer_spu.
18836 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18838 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18839 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18840 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18841 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18842 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18843 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18844 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18845 (init_registers_powerpc_cell32l): Add prototype.
18846 (init_registers_powerpc_cell64l): Likewise.
18847 (ppc_arch_setup): Detect Cell/B.E. architecture.
18849 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18851 * Makefile.in (datarootdir): New variable.
18853 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18855 * linux-low.c (linux_write_memory): Update debugging output.
18856 * Makefile.in (clean): Add new descriptions.
18857 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18858 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18859 * configure.srv: Add new files for arm*-*-linux*.
18860 * linux-arm-low.c: Add new declarations.
18861 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18862 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18863 (HWCAP_VFPv3D16): New.
18864 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18865 instead of __IWMMXT__.
18866 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18867 (arm_arch_setup): New.
18868 (target_regsets): Remove #ifdef. Add VFP regset.
18869 (the_low_target): Use arm_arch_setup.
18871 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18873 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18874 the main thread again.
18876 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18878 Adding Neutrino gdbserver.
18879 * configure: Regenerated.
18880 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18881 * configure.srv (i[34567]86-*-nto*): New target.
18882 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18883 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18884 (nto_comctrl) [__QNX__]: New function.
18885 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18887 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18889 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18892 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18893 Pedro Alves <pedro@codesourcery.com>
18895 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18896 don't support CONTEXT_EXTENDED_REGISTERS.
18897 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18898 (the_low_target): Install them.
18899 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18900 failing with ERROR_PIPE_NOT_CONNECTED.
18902 2009-06-30 Doug Evans <dje@google.com>
18903 Pierre Muller <muller@ics.u-strasbg.fr>
18905 Add h/w watchpoint support to x86-linux, win32-i386.
18906 * Makefile.in (SFILES): Add i386-low.c
18907 (i386_low_h): Define.
18908 (i386-low.o): Add dependencies.
18909 (linux-x86-low.o): Add i386-low.h dependency.
18910 (win32-i386-low.o): Ditto.
18911 * i386-low.c: New file.
18912 * i386-low.h: New file.
18913 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18914 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18915 * linux-low.c (linux_add_process): Initialize arch_private.
18916 (linux_remove_process): Free arch_private.
18917 (add_lwp): Initialize arch_private.
18918 (delete_lwp): Free arch_private.
18919 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18921 * linux-low.h (process_info_private): New member arch_private.
18922 (lwp_info): New member arch_private.
18923 (linux_target_ops): New members new_process, new_thread,
18925 (ptid_of): New macro.
18926 * linux-x86-low.c: Include stddef.h, i386-low.h.
18927 (arch_process_info): New struct.
18928 (arch_lwp_info): New struct.
18929 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18930 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18931 (i386_dr_low_get_status): New function.
18932 (x86_insert_point, x86_remove_point): New functions.
18933 (x86_stopped_by_watchpoint): New function.
18934 (x86_stopped_data_address): New function.
18935 (x86_linux_new_process, x86_linux_new_thread): New functions.
18936 (x86_linux_prepare_to_resume): New function.
18937 (the_low_target): Add entries for insert_point, remove_point,
18938 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18940 * server.c (debug_hw_points): New global.
18941 (monitor_show_help): Document set debug-hw-points.
18942 (handle_query): Process "set debug-hw-points".
18943 * server.h (debug_hw_points): Declare.
18944 (paddress): Declare.
18945 * utils.c (NUMCELLS, CELLSIZE): New macros.
18946 (get_sell, xsnprintf, paddress): New functions.
18947 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18948 remove_point, stopped_by_watchpoint, stopped_data_address.
18949 * win32-i386-low.c: Include i386-low.h.
18950 (debug_reg_state): Replaces dr.
18951 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18952 (i386_dr_low_get_status): New function.
18953 (i386_insert_point, i386_remove_point): New functions.
18954 (i386_stopped_by_watchpoint): New function.
18955 (i386_stopped_data_address): New function.
18956 (i386_initial_stuff): Update.
18957 (get_thread_context,set_thread_context,i386_thread_added): Update.
18958 (the_low_target): Add entries for insert_point,
18959 remove_point, stopped_by_watchpoint, stopped_data_address.
18960 * win32-low.c (win32_insert_watchpoint): New function.
18961 (win32_remove_watchpoint): New function.
18962 (win32_stopped_by_watchpoint): New function.
18963 (win32_stopped_data_address): New function.
18964 (win32_target_ops): Add entries for insert_watchpoint,
18965 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18966 * win32-low.h (win32_target_ops): New members insert_point,
18967 remove_point, stopped_by_watchpoint, stopped_data_address.
18969 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18971 * server.c (process_serial_event): Re-return unsupported, not
18972 error, if the type isn't recognized. Re-allow supporting only
18973 insert or remove packets. Also call require_running for
18974 breakpoints. Add missing break statement to default case. Tidy.
18975 * target.h (struct target_ops): Rename insert_watchpoint to
18976 insert_point, and remove_watchpoint to remove_point.
18978 * linux-low.h (struct linux_target_ops): Likewise.
18979 * linux-low.c (linux_insert_watchpoint): Rename to ...
18980 (linux_insert_point): ... this. Adjust.
18981 (linux_remove_watchpoint): Rename to ...
18982 (linux_remove_point): ... this. Adjust.
18983 (linux_target_ops): Adjust.
18984 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18985 (cris_insert_point): ... this.
18986 (cris_remove_watchpoint): Rename to ...
18987 (cris_remove_point): ... this.
18988 (the_low_target): Adjust.
18990 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18992 * server.c (handle_v_kill): Pass signal_pid to
18993 kill_inferior if multi_process is zero.
18995 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18997 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18998 * target.h (target_ops): Comment for *_watchpoint to make it clear
18999 the functions can get types '0' and '1'.
19001 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19003 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19004 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19005 * regcache.c (get_regcache): Likewise.
19006 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19007 * win32-low.c (child_fetch_inferior_registers): Remove check for
19010 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19011 Pedro Alves <pedro@codesourcery.com>
19013 * target.h (struct target_ops) <supports_multi_process>: New
19015 (target_supports_multi_process): New.
19016 * server.c (handle_query): Even if GDB reports support, only
19017 enable multi-process if the target also supports it. Report
19018 multi-process support only if the target backend supports it.
19019 * linux-low.c (linux_supports_multi_process): New function.
19020 (linux_target_ops): Install it as target_supports_multi_process
19023 2009-05-24 Doug Evans <dje@google.com>
19025 Global renaming of find_thread_pid to find_thread_ptid.
19026 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19027 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19028 All callers updated.
19030 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19031 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19034 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19035 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19036 (linux_resume_one_lwp): Ditto.
19038 2009-05-23 Doug Evans <dje@google.com>
19040 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19041 from struct inferior_list_entry * to struct lwp_info *.
19042 All callers updated.
19044 2009-05-13 Doug Evans <dje@google.com>
19046 * linux-x86-low.c: Don't include assert.h.
19047 (x86_siginfo_fixup): Use fatal, not assert.
19048 (x86_arch_setup): Fix comment.
19050 2009-05-12 Doug Evans <dje@google.com>
19052 Biarch support for i386/amd64 gdbserver.
19053 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19054 Add linux-x86-low.c.
19055 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19056 (linux-x86-low.o): Add.
19057 * linux-x86-64-low.c: Delete.
19058 * linux-i386-low.c: Delete.
19059 * linux-x86-low.c: New file.
19060 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19062 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19064 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19065 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19066 (linux_child_pid_to_exec_file): New function.
19067 (elf_64_header_p, elf_64_file_p): New functions.
19068 (siginfo_fixup): New function.
19069 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19070 give target a chance to convert layout.
19071 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19072 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19074 2009-05-07 Doug Evans <dje@google.com>
19076 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19077 (regsets_store_inferior_registers): Ditto.
19079 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19083 * linux-low.c (must_set_ptrace_flags): Delete.
19084 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19086 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19087 `lwp->must_set_ptrace_flags' instead.
19088 (linux_wait_for_event_1): Set ptrace options here.
19089 (linux_wait_1): ... not here.
19091 2009-04-30 Doug Evans <dje@google.com>
19093 * inferiors.c (started_inferior_callback): New function.
19094 (attached_inferior_callback): New function.
19095 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19096 * server.c (print_started_pid, print_attached_pid): New functions.
19097 (detach_or_kill_for_exit): New function.
19098 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19099 * server.h (have_started_inferiors_p): Declare.
19100 (have_attached_inferiors_p): Declare.
19102 * inferiors.c (remove_process): Fix memory leak, free process.
19103 * linux-low.c (linux_remove_process): New function.
19104 (linux_kill): Call it instead of remove_process.
19105 (linux_detach, linux_wait_1): Ditto.
19107 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19109 * configure.srv: Add x86 Windows CE target.
19111 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19113 * inferiors.c (get_thread_process): Make global.
19114 * server.h (get_thread_process): Add prototype.
19115 * thread-db.c (find_one_thread): Use get_thread_process
19116 instead of current_process.
19117 (thread_db_get_tls_address): Do not crash if called when
19118 thread layer is not yet initialized.
19120 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19122 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19123 * spu-low.c (current_tid): Rename to ...
19124 (current_ptid): ... this.
19125 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19126 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19127 ptid_get_lwp (current_ptid) instead of current_tid.
19128 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19129 instead of current_tid. Use find_process_pid to verify pid
19130 argument is valid. Pass proper argument to remove_process.
19131 (spu_thread_alive): Compare current_ptid instead of current_tid.
19132 (spu_resume): Likewise.
19134 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19136 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19139 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19141 Implement the multiprocess extensions, and add linux multiprocess
19144 * server.h (ULONGEST): Declare.
19145 (struct ptid, ptid_t): New.
19146 (minus_one_ptid, null_ptid): Declare.
19147 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19148 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19149 (struct inferior_list_entry): Change `id' type from unsigned from
19151 (struct sym_cache, struct breakpoint, struct
19152 process_info_private): Forward declare.
19153 (struct process_info): Declare.
19154 (current_process): Declare.
19155 (all_processes): Declare.
19156 (initialize_inferiors): Declare.
19157 (add_thread): Adjust to use ptid_t.
19158 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19159 (add_process, remove_process, find_thread_pid): Declare.
19160 (find_inferior_id): Adjust to use ptid_t.
19161 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19162 (multi_process): Declare.
19163 (push_event): Adjust to use ptid_t.
19164 (read_ptid, write_ptid): Declare.
19165 (prepare_resume_reply): Adjust to use ptid_t.
19166 (clear_symbol_cache): Declare.
19167 * inferiors.c (all_processes): New.
19168 (null_ptid, minus_one_ptid): New.
19169 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19170 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19171 (add_thread): Change unsigned long to ptid. Remove gdb_id
19173 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19174 (gdb_id_to_thread): Rename to ...
19175 (find_thread_pid): ... this. Change unsigned long to ptid.
19176 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19177 (loaded_dll, pull_pid_from_list): Adjust.
19178 (add_process, remove_process, find_process_pid)
19179 (get_thread_process, current_process, initialize_inferiors): New.
19180 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19181 (struct target_waitstatus) <related_pid>: Ditto.
19182 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19183 return type to int.
19184 (struct target_ops) <join>: Add `pid' argument.
19185 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19186 (struct target_ops) <wait>: Add `ptid' field. Change return type
19188 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19189 (mywait): Add `ptid' argument. Change return type to ptid_t.
19190 (target_pid_to_str): Declare.
19191 * target.c (set_desired_inferior): Adjust to use ptids.
19192 (mywait): Add new `ptid' argument. Adjust.
19193 (target_pid_to_str): New.
19194 * mem-break.h (free_all_breakpoints): Declare.
19195 * mem-break.c (breakpoints): Delelete.
19196 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19197 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19198 to use per-process breakpoint list.
19199 (free_all_breakpoints): New.
19200 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19201 (symbol_cache, all_symbols_looked_up): Delete.
19203 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19205 (prepare_resume_reply): Change ptid argument's type from unsigned
19206 long to ptid_t. Adjust. Implement W;process and X;process.
19207 (free_sym_cache, clear_symbol_cache): New.
19208 (look_up_one_symbol): Adjust to per-process symbol cache. *
19209 * server.c (cont_thread, general_thread, step_thread): Change type
19211 (attached): Delete.
19212 (multi_process): New.
19213 (last_ptid): Change type to ptid_t.
19214 (struct vstop_notif) <ptid>: Change type to ptid_t.
19215 (queue_stop_reply, push_event): Change `ptid' argument's type to
19217 (discard_queued_stop_replies): Add `pid' argument.
19218 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19219 changes. Don't reference the `attached' global.
19220 (attach_inferior): Adjust to mywait interface changes.
19221 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19222 features. Handle and report "multiprocess+". Handle
19224 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19226 (handle_v_kill): New.
19227 (handle_v_stopped): Adjust to use target_pid_to_str.
19228 (handle_v_requests): Allow multiple attaches and runs when
19229 multiprocess extensions are in effect. Handle "vKill".
19230 (myresume): Adjust to use ptids.
19231 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19232 (handle_status): Adjust to discard_queued_stop_replies interface
19234 (first_thread_of, kill_inferior_callback)
19235 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19236 (main): Call initialize_inferiors. Adjust to use ptids, killing
19237 and detaching from all inferiors. Handle multiprocess packet
19239 * linux-low.h: Include gdb_proc_service.h.
19240 (struct process_info_private): New.
19241 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19242 <lwpid_of>: Use ptid_get_lwp.
19243 (get_lwp_thread): Adjust.
19244 (struct lwp_info): Add `dead' member.
19245 (find_lwp_pid): Declare.
19246 * linux-low.c (thread_db_active): Delete.
19247 (new_inferior): Adjust comment.
19248 (inferior_pid): Delete.
19249 (linux_add_process): New.
19250 (handle_extended_wait): Adjust.
19251 (add_lwp): Change unsigned long to ptid.
19252 (linux_create_inferior): Add process to processes table. Adjust
19253 to use ptids. Don't set new_inferior here.
19254 (linux_attach_lwp): Rename to ...
19255 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19256 it. Adjust to use ptids.
19257 (linux_attach_lwp): New.
19258 (linux_attach): Add process to processes table. Don't set
19260 (struct counter): New.
19261 (second_thread_of_pid_p, last_thread_of_process_p): New.
19262 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19263 multiple processes.
19264 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19265 processes. Remove process from process table.
19266 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19267 to multiple processes.
19268 (any_thread_of): New.
19269 (linux_detach): Add `pid' argument, and handle it. Remove process
19270 from processes table.
19271 (linux_join): Add `pid' argument. Handle it.
19272 (linux_thread_alive): Change unsighed long argument to ptid_t.
19273 Consider dead lwps as not being alive.
19274 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19275 threads we're not interested in.
19276 (same_lwp, find_lwp_pid): New.
19277 (linux_wait_for_lwp): Change `pid' argument's type from int to
19279 (linux_wait_for_event): Rename to ...
19280 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19281 from int to ptid_t. Adjust.
19282 (linux_wait_for_event): New.
19283 (linux_wait_1): Add `ptid' argument. Change return type to
19284 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19285 that exit from the process table.
19286 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19288 (mark_lwp_dead): New.
19289 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19290 stopping all threads, mark its main lwp as dead.
19291 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19293 (fetch_register, usr_store_inferior_registers)
19294 (regsets_fetch_inferior_registers)
19295 (regsets_store_inferior_registers, linux_read_memory)
19296 (linux_write_memory): Inline `inferior_pid'.
19297 (linux_look_up_symbols): Adjust to use per-process
19298 `thread_db_active'.
19299 (linux_request_interrupt): Adjust to use ptids.
19300 (linux_read_auxv): Inline `inferior_pid'.
19301 (initialize_low): Don't reference thread_db_active.
19302 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19303 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19304 (ps_getpid): Return the pid of the current inferior.
19305 * thread-db.c (proc_handle, thread_agent): Delete.
19306 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19308 (find_one_thread): Change argument type to ptid_t. Adjust to
19310 (maybe_attach_thread): Adjust to per-process data and ptids.
19311 (thread_db_find_new_threads): Ditto.
19312 (thread_db_init): Ditto.
19313 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19314 processes table. Adjust to use ptids.
19315 (spu_kill, spu_detach): Adjust interface. Remove process from
19317 (spu_join, spu_thread_alive): Adjust interface.
19318 (spu_wait): Adjust interface. Remove process from processes
19319 table. Adjust to use ptids.
19320 * win32-low.c (current_inferior_tid): Delete.
19321 (current_inferior_ptid): New.
19322 (debug_event_ptid): New.
19323 (thread_rec): Take a ptid. Adjust.
19324 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19325 (child_delete_thread): Ditto.
19326 (do_initial_child_stuff): Add `attached' argument. Add process to
19328 (child_fetch_inferior_registers, child_store_inferior_registers):
19330 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19331 (win32_attach): Pass 1 to do_initial_child_stuff.
19332 (win32_kill): Adjust interface. Remove process from processes
19334 (win32_detach): Ditto.
19335 (win32_join): Adjust interface.
19336 (win32_thread_alive): Take a ptid.
19337 (win32_resume): Adjust to use ptids.
19338 (get_child_debug_event): Ditto.
19339 (win32_wait): Adjust interface. Remove exiting process from
19342 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19344 Non-stop mode support.
19346 * server.h (non_stop): Declare.
19347 (gdb_client_data, handler_func): Declare.
19348 (delete_file_handler, add_file_handler, start_event_loop):
19350 (handle_serial_event, handle_target_event, push_event)
19351 (putpkt_notif): Declare.
19352 * target.h (enum resume_kind): New.
19353 (struct thread_resume): Replace `step' field by `kind' field.
19354 (TARGET_WNOHANG): Define.
19355 (struct target_ops) <wait>: Add `options' argument.
19356 <supports_non_stop, async, start_non_stop>: New fields.
19357 (target_supports_non_stop, target_async): New.
19358 (start_non_stop): Declare.
19359 (mywait): Add `options' argument.
19360 * target.c (mywait): Add `options' argument. Print child exit
19361 notifications here.
19362 (start_non_stop): New.
19363 * server.c (non_stop, own_buf, mem_buf): New globals.
19364 (struct vstop_notif): New.
19365 (notif_queue): New global.
19366 (queue_stop_reply, push_event, discard_queued_stop_replies)
19367 (send_next_stop_reply): New.
19368 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19370 (attach_inferior): In non-stop mode, don't wait for the target
19372 (handle_general_set): Handle QNonStop.
19373 (handle_query): When handling qC, return the current general
19374 thread, instead of the first thread of the list.
19375 (handle_query): If the backend supports non-stop mode, include
19376 QNonStop+ in the qSupported query response.
19377 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19379 (handle_v_attach, handle_v_run): Handle non-stop mode.
19380 (handle_v_stopped): New.
19381 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19382 (myresume): Adjust to use resume_kind. Handle non-stop.
19383 (queue_stop_reply_callback): New.
19384 (handle_status): Handle non-stop mode.
19385 (main): Clear non_stop flag on reconnection. Use the event-loop.
19386 Refactor serial protocol handling from here ...
19387 (process_serial_event): ... to this new function. When GDB
19388 selects any thread, select one here. In non-stop mode, wait until
19389 GDB acks all pending events before exiting.
19390 (handle_serial_event, handle_target_event): New.
19391 * remote-utils.c (remote_open): Install remote_desc in the event
19393 (remote_close): Remove remote_desc from the event loop.
19394 (putpkt_binary): Rename to...
19395 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19396 (putpkt_binary): New as wrapper around putpkt_binary_1.
19397 (putpkt_notif): New.
19398 (prepare_resume_reply): In non-stop mode, don't change the
19400 * event-loop.c: New.
19401 * Makefile.in (OBJ): Add event-loop.o.
19402 (event-loop.o): New rule.
19404 * linux-low.h (pid_of): Moved here.
19406 (get_lwp_thread): Use lwpid_of.
19407 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19408 * linux-low.c (pid_of): Delete.
19409 (inferior_pid): Use lwpid_of.
19410 (linux_event_pipe): New.
19411 (target_is_async_p): New.
19413 (handle_extended_wait): Use lwpid_of.
19414 (add_lwp): Don't set lwpid field.
19415 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19416 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19417 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19418 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19419 first. Adjust to linux_wait_for_event interface changes. Use
19421 (linux_detach): Don't delete the main lwp here.
19422 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19423 (status_pending_p): Don't consider explicitly suspended lwps.
19424 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19425 pointer. Add OPTIONS argument. Change return type to int. Use
19426 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19427 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19428 pointer. Add status pointer argument. Return a pid instead of a
19429 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19430 changes. In non-stop mode, don't switch to a random thread.
19431 (linux_wait): Rename to...
19432 (linux_wait_1): ... this. Add target_options argument, and handle
19433 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19434 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19435 clean exit and signal exit code. Don't stop all threads in
19436 non-stop mode. In all-stop mode, only stop all threads when
19437 reporting a stop to GDB. Handle explicit thread stop requests.
19438 (async_file_flush, async_file_mark): New.
19440 (send_sigstop): Use lwpid_of.
19441 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19442 interface changes. In non-stop mode, don't switch to a random
19444 (linux_resume_one_lwp): Use lwpid_of.
19445 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19446 (linux_resume_one_thread): ... this. Handle resume_stop. In
19447 non-stop mode, don't look for pending flag in all threads.
19448 (resume_status_pending_p): Don't consider explicitly suspended
19450 (my_waitpid): Reimplement. Emulate __WALL.
19451 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19453 (sigchld_handler, linux_supports_non_stop, linux_async)
19454 (linux_start_non_stop): New.
19455 (linux_target_ops): Register linux_supports_non_stop, linux_async
19456 and linux_start_non_stop.
19457 (initialize_low): Install SIGCHLD handler.
19458 * thread-db.c (thread_db_create_event, find_one_thread)
19459 (thread_db_get_tls_address): Use lwpid_of.
19460 * win32-low.c (win32_detach): Adjust to use resume_kind.
19461 (win32_wait): Add `options' argument.
19462 * spu-low.c (spu_resume): Adjust to use resume_kind.
19463 (spu_wait): Add `options' argument.
19465 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19467 Decouple target code from remote protocol.
19469 * target.h (enum target_waitkind): New.
19470 (struct target_waitstatus): New.
19471 (struct target_ops) <wait>: Return an unsigned long. Take a
19472 target_waitstatus pointer instead of a char pointer.
19473 (mywait): Likewise.
19474 * target.c (mywait): Change prototype to return an unsigned long.
19475 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19476 * server.h (thread_from_wait, old_thread_from_wait): Delete
19478 (prepare_resume_reply): Change prototype to take a
19480 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19481 (last_status, last_ptid): New.
19482 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19483 pid instead of a signal.
19484 (attach_inferior): Remove "status" and "signal" parameters.
19486 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19488 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19489 (handle_v_requests, myresume): Remove "status" and "signal"
19490 parameters. Adjust.
19491 (handle_status): New.
19492 (main): Delete local `status'. Adjust.
19493 * remote-utils.c: Include target.h.
19494 (prepare_resume_reply): Change prototype to take a
19495 target_waitstatus. Adjust.
19497 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19499 * spu-low.c (spu_wait): Adjust.
19500 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19502 (win32_wait): Adjust.
19504 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19506 * target.h (struct thread_resume): Delete leave_stopped member.
19507 (struct target_ops): Add a `n' argument to the `resume' callback.
19508 * server.c (start_inferior): Adjust.
19509 (handle_v_cont, myresume): Adjust.
19510 * linux-low.c (check_removed_breakpoint): Adjust to resume
19511 interface change, and to removed leave_stopped field.
19512 (resume_ptr): Delete.
19513 (struct thread_resume_array): New.
19514 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19515 resume interface change.
19516 (linux_continue_one_thread, linux_queue_one_thread)
19517 (resume_status_pending_p): Check if the resume field is NULL
19518 instead of checking the leave_stopped member.
19519 (linux_resume): Adjust to the target resume interface change.
19520 * spu-low.c (spu_resume): Adjust to the target resume interface
19522 * win32-low.c (win32_detach, win32_resume): Ditto.
19524 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19526 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19528 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19530 (linux_continue_one_thread): Only preserve the stepping flag if
19531 there's a pending breakpoint.
19533 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19535 * server.c (main): After the inferior having exited, call
19536 remote_close before exiting gdbserver.
19538 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19540 Fix size of FPSCR in Power 7 processors.
19541 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19542 (PPC_FEATURE_HAS_DFP): New #define.
19543 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19546 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19548 * server.c (handle_query) Whitespace and formatting.
19550 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19552 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19553 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19554 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19555 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19556 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19557 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19558 Makefile.in, configure.ac: Fix whitespace throughout.
19559 * configure: Regenerate.
19561 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19563 * inferiors.c (find_inferior): Make it safe for the callback
19564 function to delete the currently iterated inferior.
19566 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19568 * Makefile.in (linuw_low_h): Move higher.
19569 (thread-db.o): Depend on $(linux_low_h).
19571 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19573 Rename "process" to "lwp" throughout.
19575 * linux-low.c (all_processes): Rename to...
19576 (all_lwps): ... this.
19577 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19578 (add_process): Rename to ...
19579 (add_lwp): ... this. Adjust.
19580 (linux_create_inferior): Adjust.
19581 (linux_attach_lwp): Adjust.
19582 (linux_attach): Adjust.
19583 (linux_kill_one_process): Rename to ...
19584 (linux_kill_one_lwp): ... this. Adjust.
19585 (linux_kill): Adjust.
19586 (linux_detach_one_process): Rename to ...
19587 (linux_detach_one_lwp): ... this. Adjust.
19588 (linux_detach): Adjust.
19589 (check_removed_breakpoint): Adjust.
19590 (status_pending_p): Adjust.
19591 (linux_wait_for_process): Rename to ...
19592 (linux_wait_for_lwp): ... this. Adjust.
19593 (linux_wait_for_event): Adjust.
19594 (send_sigstop): Adjust.
19595 (wait_for_sigstop): Adjust.
19596 (stop_all_processes): Rename to ...
19597 (stop_all_lwps): ... this.
19598 (linux_resume_one_process): Rename to ...
19599 (linux_resume_one_lwp): ... this. Adjust.
19600 (linux_set_resume_request, linux_continue_one_thread)
19601 (linux_queue_one_thread, resume_status_pending_p)
19602 (usr_store_inferior_registers, regsets_store_inferior_registers)
19603 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19605 * linux-low.h (get_process): Rename to ...
19606 (get_lwp): ... this. Adjust.
19607 (get_thread_process): Rename to ...
19608 (get_thread_lwp): ... this. Adjust.
19609 (get_process_thread): Rename to ...
19610 (get_lwp_thread): ... this. Adjust.
19611 (struct process_info): Rename to ...
19612 (struct lwp_info): ... this.
19613 (all_processes): Rename to ...
19614 (all_lwps): ... this.
19615 * proc-service.c (ps_lgetregs): Adjust.
19616 * thread-db.c (thread_db_create_event, find_one_thread)
19617 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19619 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19621 * server.c (handle_query): Handle "qAttached".
19623 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19625 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19626 GPLv3, update license URL.
19628 2009-03-01 Doug Evans <dje@google.com>
19630 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19631 (server_h): Add gdb_signals.h.
19632 (signals.o): Update.
19633 * server.h (target_signal_from_host,target_signal_to_host_p)
19634 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19636 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19638 * remote-utils.c (getpkt): Also generate remote-debug
19639 information if noack_mode is set.
19641 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19643 * server.c (handle_query): Report qXfer:siginfo:read and
19644 qXfer:siginfo:write as supported and handle them.
19645 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19646 * linux-low.c (linux_xfer_siginfo): New.
19647 (linux_target_ops): Set it.
19649 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19651 * server.c (gdbserver_usage): Mention --remote-debug.
19652 (main): Accept '--remote-debug' switch.
19654 2009-01-18 Doug Evans <dje@google.com>
19656 * regcache.c (new_register_cache): No need to check result of xcalloc.
19657 * server.c (handle_search_memory): Back out calls to xmalloc,
19658 result is checked and error is returned to user upon failure.
19659 (handle_query): Ditto. Add more checks for result of malloc.
19660 (handle_v_cont): Check result of malloc, report error back to
19662 (handle_v_run): Ditto. Call freeargv.
19663 * server.h (freeargv): Declare.
19664 * utils.c (freeargv): New fn.
19666 2009-01-15 Doug Evans <dje@google.com>
19668 * gdbreplay.c (perror_with_name): Make arg const char *.
19669 * server.h (target_signal_to_name): Make return type const char *.
19670 * thread-db.c (thread_db_err_str): Make return type const char *.
19671 * utils.c (perror_with_name): Make arg const char *.
19673 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19675 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19676 when handling a EXIT_PROCESS_DEBUG_EVENT.
19678 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19680 * gdbreplay.c (gdbreplay_version): Update copyright year.
19681 * server.c (gdbserver_version): Likewise.
19683 2009-01-05 Doug Evans <dje@google.com>
19685 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19686 (handle_extended_wait): Improve comment.
19688 2008-12-13 Doug Evans <dje@google.com>
19690 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19691 * server.h (ATTR_MALLOC): New macro.
19692 (xmalloc,xcalloc,xstrdup): Declare.
19693 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19694 * inferiors.c: Ditto.
19695 * linux-low.c: Ditto.
19696 * mem-break.c: Ditto.
19697 * regcache.c: Ditto.
19698 * remote-utils.c: Ditto.
19701 * win32-low.c: Ditto.
19703 2008-12-12 Doug Evans <dje@google.com>
19705 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19706 in debugging printf.
19708 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19710 2008-12-09 Doug Evans <dje@google.com>
19712 * linux-low.h (struct process_info): Delete member tid, unused.
19713 * thread-db.c (find_one_thread): Update.
19714 (maybe_attach_thread): Update.
19716 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19718 * target.h (struct target_ops): Add qxfer_osdata member.
19719 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19721 (linux_qxfer_osdata): New functions.
19722 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19724 * server.c (handle_query): Handle "qXfer:osdata:read:".
19725 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19726 (buffer_xml_printf): New functions.
19727 * server.h (struct buffer): New.
19728 (buffer_grow_str, buffer_grow_str0): New macros.
19729 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19730 (buffer_xml_printf): Declare.
19732 2008-11-24 Doug Evans <dje@google.com>
19734 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19736 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19738 * server.c (handle_v_run): Always use the supplied argument list.
19740 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19742 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19743 (xtensa_regmap_table): Add entry for scompare1.
19745 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19747 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19748 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19749 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19750 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19751 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19752 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19753 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19754 XML target descriptions.
19755 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19756 when inferior is running on an ISA 2.05 or later processor. Add
19757 special case to return offset for full 64-bit slot of FPSCR when
19760 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19762 * Makefile.in (SFILES, clean): Added sparc64 files.
19763 (reg-sparc64.o, reg-sparc64.c): New.
19764 * configure.srv (sparc*-*-linux*): New configuration.
19765 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19766 syscall arguments for SPARC.
19767 (regsets_store_inferior_registers): Likewise.
19768 * linux-sparc-low.c: New file.
19770 2008-10-21 Doug Evans <dje@google.com>
19772 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19773 (READLINE_DIR,READLINE_DEP): Delete.
19774 (INTERNAL_CFLAGS): Update.
19775 (LINTFLAGS): Update.
19777 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19779 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19780 whole argv from the last run, not just argv[0].
19782 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19784 * regcache.c (new_register_cache): Return NULL if the register
19785 cache size isn't known yet.
19786 (free_register_cache): Avoid dereferencing a NULL regcache.
19788 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19790 * configure.srv: Merge MIPS and MIPS64.
19792 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19794 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19796 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19798 * Makefile.in: Add required vsx dependencies.
19800 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19801 Declare init_registers_powerpc_vsx32l.
19802 Declare init_registers_powerpc_vsx64l.
19803 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19804 (ppc_arch_setup): Check for VSX in hwcap.
19805 (ppc_fill_vsxregset): New function.
19806 (ppc_store_vsxregset): New function.
19807 Add new VSX entry in regset_info target_regsets.
19809 * configure.srv: Add new VSX dependencies.
19811 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19813 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19814 (remote_open): Set or clear transport_is_reliable.
19815 (putpkt_binary): Don't expect acks in noack mode.
19816 (getpkt): Don't send ack/nac in noack mode.
19817 * server.c (handle_general_set): Handle QStartNoAckMode.
19818 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19820 (main): Reset noack_mode on every connection.
19821 * server.h (noack_mode): Declare.
19823 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19825 * Makefile.in (GDBREPLAY_OBS): New variable.
19826 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19828 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19829 Daniel Jacobowitz <dan@codesourcery.com>
19831 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19832 (usr_store_inferior_registers): Likewise.
19833 (regsets_store_inferior_registers): Likewise.
19835 2008-07-31 Rolf Jansen <rj@surtec.com>
19836 Pedro Alves <pedro@codesourcery.com>
19838 * configure.ac: Check for memmem declaration.
19839 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19840 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19841 (disable_packet_qfThreadInfo): Unconditionally compile.
19842 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19843 * configure, config.in: Regenerate.
19845 2008-07-28 Doug Kwan <dougkwan@google.com>
19847 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19848 (linux_write_memory): Remove declaration of errno.
19850 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19852 * linux-low.c (handle_extended_wait): Do not use "status"
19853 variable uninitialized.
19855 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19857 * server.c (handle_v_attach): Inhibit reporting dll changes.
19859 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19861 * remote-utils.c (prepare_resume_reply): If requested, don't
19862 output "thread:TID" in the T stop reply.
19864 * server.c (disable_packet_vCont, disable_packet_Tthread)
19865 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19866 (handle_query): If requested, disable support for qC, qfThreadInfo
19868 (handle_v_requests): If requested, disable support for vCont.
19869 (gdbserver_show_disableable): New.
19870 (main): Handle --disable-packet and --disable-packet=LIST.
19872 * server.h (disable_packet_vCont, disable_packet_Tthread)
19873 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19875 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19877 * server.c (gdbserver_usage): Mention --version.
19879 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19881 * Makefile.in (gdbreplay.o): New rule.
19883 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19885 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19886 message, not gdbserver.
19888 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19889 Nathan Sidwell <nathan@codesourcery.com>
19890 Joseph Myers <joseph@codesourcery.com>
19892 * acinclude.m4: Include ../../config/acx.m4.
19893 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19894 * configure, config.in: Regenerate.
19895 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19896 * server.c (gdbserver_version): Print PKGVERSION.
19897 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19898 (main): Adjust gdbserver_usage calls.
19899 * gdbreplay.c (version, host_name): Add declarations.
19900 (gdbreplay_version, gdbreplay_usage): New.
19901 (main): Accept --version and --help options.
19903 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19905 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19906 (arm_breakpoint_at): Handle Thumb.
19907 (the_low_target): Add comment.
19909 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19911 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19913 2008-05-09 Doug Evans <dje@google.com>
19915 * server.h (decode_search_memory_packet): Declare.
19916 * remote-utils.c (decode_search_memory_packet): New fn.
19917 * server.c (handle_search_memory_1): New fn.
19918 (handle_search_memory): New fn.
19919 (handle_query): Process qSearch:memory packets.
19921 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19923 * regcache.c (registers_length): Remove.
19924 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19925 full register packet.
19926 * regcache.h (registers_length): Remove prototype.
19927 * server.h (PBUFSIZ): Define to 16384.
19929 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19931 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19932 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19933 powerpc-64l.o, and powerpc-altivec64l.o.
19934 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19935 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19936 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19937 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19938 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19941 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19942 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19943 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19944 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19945 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19946 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19947 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19948 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19949 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19950 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19953 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19954 (init_registers_powerpc_32l): ... this new prototype.
19955 (init_registers_powerpc_32): Remove, replace by ...
19956 (init_registers_powerpc_altivec32l): ... this new prototype.
19957 (init_registers_powerpc_e500): Remove, replace by ...
19958 (init_registers_powerpc_e500l): ... this new prototype.
19959 (init_registers_ppc64): Remove, replace by ...
19960 (init_registers_powerpc_64l): ... this new prototype.
19961 (init_registers_powerpc_64): Remove, replace by ...
19962 (init_registers_powerpc_altivec64l): ... this new prototype.
19963 (ppc_num_regs): Set to 73.
19964 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19965 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19966 (ppc_cannot_store_register): Handle orig_r3 and trap.
19967 (ppc_arch_setup): Update init_registers_... calls.
19968 (ppc_fill_gregset): Handle orig_r3 and trap.
19970 * inferiors.c (clear_inferiors): Reset current_inferior.
19972 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19974 * acinclude.m4: Add override.m4.
19975 * configure: Regenerate.
19977 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19979 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19980 initial call to init_register_ppc64.
19982 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19984 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19985 single powerpc*-*-linux* case.
19986 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19988 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19990 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19991 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19993 * linux-ppc-low.c: Include <elf.h>.
19994 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19995 (ppc_hwcap): New global variable.
19996 (ppc_regmap): Remove __SPE__ #ifdef sections.
19997 (ppc_regmap_e500): New global variable.
19998 (ppc_cannot_store_register): Update __SPE__ special case.
19999 (ppc_get_hwcap): New function.
20000 (ppc_arch_setup): Use it to determine whether inferior supports
20001 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20002 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20003 Do not access registers if target does not support AltiVec.
20004 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20005 Do not access registers if target does not support SPE.
20006 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20008 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20010 * linux-low.c (disabled_regsets, num_regsets): New.
20011 (use_regsets_p): Delete.
20012 (linux_wait_for_process): Clear disabled_regsets.
20013 (regsets_fetch_inferior_registers): Check and set it.
20014 (regsets_store_inferior_registers): Likewise.
20015 (linux_fetch_registers, linux_store_registers): Do not use
20017 (initialize_low): Allocate disabled_regsets.
20019 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20021 * Makefile.in (LIBOBJS): New.
20022 (OBS): Use LIBOBJS.
20023 (memmem.o): New rule.
20024 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20025 * configure: Regenerated.
20027 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20029 * server.c (handle_query): Never return "unsupported" for
20030 qXfer:features:read queries.
20032 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20034 * server.c (get_features_xml): Fix inverted condition.
20035 (handle_query): Always support qXfer:feature:read.
20037 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20039 * server.c (wrapper_argv): New.
20040 (start_inferior): Handle wrapper_argv. If set, expect an extra
20042 (gdbserver_usage): Document --wrapper.
20043 (main): Parse --wrapper.
20045 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20047 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20048 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20049 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20050 (ppc_set_pc): Likewise.
20051 (ppc_arch_setup): New function.
20052 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20053 of collect_register.
20054 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20056 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20058 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20059 instead of linux-ppc64-low.o.
20060 * linux-ppc64-low.c: Remove file.
20061 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20062 (linux-ppc64-low.o): Remove rule.
20064 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20065 (init_registers_powerpc_64): Likewise.
20066 (ppc_regmap): Conditionally define depending on __powerpc64__.
20067 (ppc_cannot_store_register): Do not special-case "fpscr" when
20068 compiled on __powerpc64__.
20069 (ppc_collect_ptrace_register): New function.
20070 (ppc_supply_ptrace_register): New function.
20071 (ppc_breakpoint): Change type to "unsigned int".
20072 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20073 (the_low_target): Conditionally provide initializers for the
20074 arch_setup member depending on __powerpc64__. Install
20075 collect_ptrace_register and supply_ptrace_register members.
20077 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20079 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20080 * server.c (gdbserver_xmltarget): Define.
20081 (get_features_xml): Use it to replace "target.xml" and arch_string.
20083 * configure.srv: Remove srv_xmltarget. Add XML files that were
20084 mentioned there to srv_xmlfiles instead. Remove conditional tests
20085 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20086 srv_xmlfiles and srv_regobj to include all possible choices.
20087 * configure.ac (srv_xmltarget): Remove.
20088 (srv_xmlfiles): Do not add "target.xml".
20089 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20090 checks for supplementary target information.
20091 * configure: Regenerate.
20092 * Makefile.in (XML_TARGET): Remove.
20093 (target.xml): Remove rule.
20094 (clean): Do not clean up target.xml.
20095 (.PRECIOUS): Do not mention target.xml.
20097 * target.h (struct target_ops): Remove arch_string member.
20098 * linux-low.c (linux_arch_string): Remove.
20099 (linux_target_ops): Remove arch_string initializer.
20100 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20101 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20102 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20103 * spu-low.c (spu_arch_string): Remove.
20104 (spu_target_ops): Remove arch_string initializer.
20105 * win32-low.c (win32_arch_string): Remove.
20106 (win32_target_ops): Remove arch_string initializer.
20107 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20108 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20109 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20111 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20113 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20114 by collect_ptrace_register and supply_ptrace_register hooks.
20115 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20116 instead of checking for the_low_target.left_pad_xfer.
20117 (usr_store_inferior_registers): Use collect_ptrace_register callback
20118 instead of checking for the_low_target.left_pad_xfer.
20120 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20121 (s390_supply_ptrace_register): Likewise.
20122 (s390_fill_gregset): Call s390_collect_ptrace_register.
20123 (the_low_target): Update.
20125 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20126 (ppc_supply_ptrace_register): Likewise.
20127 (the_low_target): Update.
20129 * linux-i386-low.c (the_low_target): Update.
20130 * linux-x86-64-low.c (the_low_target): Update.
20132 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20134 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20135 reg-s390.o and reg-s390x.o.
20137 * linux-low.c (new_inferior): New global variable.
20138 (linux_create_inferior, linux_attach): Set it.
20139 (linux_wait_for_process): Call the_low_target.arch_setup after the
20140 target has stopped for the first time.
20141 (initialize_low): Do not call the_low_target.arch_setup.
20143 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20144 (s390_set_pc): Likewise.
20145 (s390_arch_setup): New function.
20146 (the_low_target): Use s390_arch_setup as arch_setup routine.
20148 * regcache.c (realloc_register_cache): New function.
20149 (set_register_cache): Call it for each existing regcache.
20151 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20153 * server.h (init_registers): Remove prototype.
20155 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20156 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20157 instead of init_registers ().
20158 * linux-arm-low.c (init_registers_arm): Add prototype.
20159 (init_registers_arm_with_iwmmxt): Likewise.
20160 (the_low_target): Add initializer for arch_setup field.
20161 * linux-cris-low.c (init_registers_cris): Add prototype.
20162 (the_low_target): Add initializer for arch_setup field.
20163 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20164 (the_low_target): Add initializer for arch_setup field.
20165 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20169 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20170 (the_low_target): Add initializer for arch_setup field.
20171 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20172 (the_low_target): Add initializer for arch_setup field.
20173 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20174 (init_registers_mips64_linux): Likewise.
20175 (the_low_target): Add initializer for arch_setup field.
20176 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20177 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20178 (the_low_target): Add initializer for arch_setup field.
20179 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20180 (init_registers_powerpc_64): Likewise.
20181 (the_low_target): Add initializer for arch_setup field.
20182 * linux-s390-low.c (init_registers_s390): Add prototype.
20183 (init_registers_s390x): Likewise.
20184 (the_low_target): Add initializer for arch_setup field.
20185 * linux-sh-low.c (init_registers_sh): Add prototype.
20186 (the_low_target): Add initializer for arch_setup field.
20187 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20188 (the_low_target): Add initializer for arch_setup field.
20189 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20190 (the_low_target): Add initializer for arch_setup field.
20192 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20193 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20194 instead of init_registers ().
20195 * win32-arm-low.c (init_registers_arm): Add prototype.
20196 (the_low_target): Add initializer for arch_setup field.
20197 * win32-i386-low.c (init_registers_i386): Add prototype.
20198 (the_low_target): Add initializer for arch_setup field.
20200 * spu-low.c (init_registers_spu): Add prototype.
20201 (initialize_low): Call initialie_registers_spu () instead of
20202 initialize_registers ().
20204 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20206 * server.c (handle_v_requests): When handling the vRun and vAttach
20207 packets, if already debugging a process, don't kill it. Return an
20210 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20212 * server.c (handle_query): Correct length check.
20214 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20216 * win32-low.c (do_initial_child_stuff): Add process handle
20217 parameter. Set current_process_handle and current_process_id from the
20218 parameters. Clear globals.
20219 (win32_create_inferior): Don't set current_process_handle and
20220 current_process_id here. Instead pass them on the call to
20221 do_initial_child_stuff.
20222 (win32_attach): Likewise.
20223 (win32_clear_inferiors): New.
20224 (win32_kill): Don't close the current process handle or the
20225 current thread handle here. Instead call win32_clear_inferiors.
20226 (win32_detach): Don't open a new handle to the process. Call
20227 win32_clear_inferiors.
20228 (win32_join): Don't rely on current_process_handle; open a new
20229 handle using the process id.
20230 (win32_wait): Call win32_clear_inferiors when the inferior process
20233 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20235 * server.c (monitor_show_help): Add "exit".
20237 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20239 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20240 (clean): Add reg-xtensa.c.
20241 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20242 * configure.srv (xtensa*-*-linux*) New target.
20243 * linux-xtensa-low.c: New.
20244 * xtensa-xtregs.c: New.
20246 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20248 * hostio.c: Don't include errno.h.
20249 (errno_to_fileio_errno): Move to hostio-errno.
20250 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20251 error number outputting to the target->hostio_last_error callback.
20252 (hostio_packet_error): Use FILEIO_EINVAL directly.
20253 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20254 calls to hostio_error.
20255 * hostio-errno.c: New.
20256 * server.h (hostio_last_error_from_errno): Declare.
20257 * target.h (target_ops): Add hostio_last_error member.
20258 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20259 as hostio_last_error handler.
20260 * spu-low.c (spu_target_ops): Likewise.
20261 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20262 (wince_hostio_last_error): New functions.
20263 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20264 as hostio_last_error handler.
20265 (win32_target_ops) [!_WIN32_WCE]: Register
20266 hostio_last_error_from_errno as hostio_last_error handler.
20267 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20268 (hostio-errno.o): New rule.
20269 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20270 * configure.srv (srv_hostio_err_objs): New variable. Default to
20272 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20273 * configure: Regenerate.
20275 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20277 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20278 (linux_kill, linux_detach): Clean up the process list.
20279 * remote-utils.c (remote_open): Improve port number parsing.
20280 (putpkt_binary, input_interrupt): Only send interrupts if the target
20282 * server.c (extended_protocol): Make static.
20283 (attached): Define earlier.
20284 (exit_requested, response_needed, program_argv): New variables.
20285 (target_running): New.
20286 (start_inferior): Clear attached here.
20287 (attach_inferior): Set attached here.
20288 (require_running): Define.
20289 (handle_query): Use require_running and target_running. Implement
20291 (handle_v_attach, handle_v_run): New.
20292 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20293 (gdbserver_usage): Update.
20294 (main): Redo argument parsing. Handle --debug and --multi. Handle
20295 --attach along with other options or after the port. Save
20296 program_argv. Support no initial program. Resynchronize
20297 communication with GDB after an error. Handle "monitor exit".
20298 Use require_running and target_running. Always allow the extended
20299 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20300 restart in extended mode.
20301 * README: Refer to the GDB manual. Update --attach usage.
20303 2007-12-20 Andreas Schwab <schwab@suse.de>
20305 * linux-low.c (STACK_SIZE): Define.
20306 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20307 (linux_test_for_tracefork): Likewise.
20309 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20311 * linux-low.c (linux_wait_for_event): Update messages. Do not
20312 reinsert auto-delete breakpoints.
20313 * mem-break.c (struct breakpoint): Change return type of handler to
20315 (set_breakpoint_at): Update handler type.
20316 (reinsert_breakpoint_handler): Return 1 instead of calling
20318 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20320 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20321 * mem-break.h (set_breakpoint_at): Update handler type.
20322 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20323 * win32-low.c (auto_delete_breakpoint): New.
20324 (get_child_debug_event): Use it.
20326 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20328 * configure.ac: Check for pread and pwrite.
20329 * hostio.c (handle_pread): Fall back to lseek and read.
20330 (handle_pwrite): Fall back to lseek and write.
20331 * config.in, configure: Regenerated.
20333 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20335 * server.c (myresume): Add own_buf argument.
20336 (main): Update calls.
20338 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20340 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20341 * remote-utils.c (remote_open): Do not call disable_async_io.
20342 (block_async_io): Delete.
20343 (unblock_async_io): Make static.
20344 (initialize_async_io): New.
20345 * server.c (handle_v_cont): Handle async I/O here.
20346 (myresume): Likewise. Move other common resume tasks here...
20347 (main): ... from here. Call initialize_async_io. Disable async
20348 I/O before the main loop.
20349 * server.h (initialize_async_io): Declare.
20350 (block_async_io, unblock_async_io): Delete prototypes.
20351 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20353 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20355 * remote-utils.c (readchar): Allow binary data in received messages.
20357 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20359 * win32-low.c (attaching): New global.
20360 (win32_create_inferior): Clear the `attaching' global.
20361 (win32_attach): Set the `attaching' global.
20362 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20363 attaching. Only set a breakpoint at the entry point if not
20366 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20368 * server.c (main): Don't report dll events on the initial
20369 connection on attaches.
20371 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20373 * server.c (main): Relax numerical bases supported for the pid of
20374 the --attach command line argument.
20376 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20378 * win32-low.c (win32_attach): Call OpenProcess before
20379 DebugActiveProcess, not after. Add last error output to error
20382 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20384 * win32-low.c (win32_get_thread_context)
20385 (win32_set_thread_context): New functions.
20386 (thread_rec): Use win32_get_thread_context.
20387 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20388 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20391 2007-12-03 Leo Zayas
20392 Pedro Alves <pedro_alves@portugalmail.pt>
20394 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20396 (child_add_thread): Minor cleanup.
20397 (child_continue): Resume artificially suspended threads before
20398 calling ContinueDebugEvent.
20399 (suspend_one_thread): New.
20400 (fake_breakpoint_event): New.
20401 (get_child_debug_event): Change return type to int. Check here if
20402 gdb sent an interrupt request. If a soft interrupt was requested,
20403 fake a breakpoint event. Return 0 if there is no event to handle,
20405 (win32_wait): Don't check here if gdb sent an interrupt request.
20406 Ensure there is a valid event to handle.
20407 (win32_request_interrupt): Add soft interruption method as last
20410 2007-12-03 Leo Zayas
20411 Pedro Alves <pedro_alves@portugalmail.pt>
20413 * win32-low.h (win32_thread_info): Add descriptions to the
20414 structure members. Replace `suspend_count' counter by a
20416 * win32-low.c (thread_rec): Update condition of when to get the
20417 context from the inferior. Rely on ContextFlags being set if it
20418 has already been retrieved. Only suspend the inferior thread if
20419 we haven't already. Warn if that fails.
20420 (continue_one_thread): s/suspend_count/suspended/. Only call
20421 ResumeThread once. Warn if that fails.
20423 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20425 * win32-low.c (win32_wait): Don't read from the inferior when it
20426 has already exited.
20428 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20430 * Makefile.in (win32_low_h): New variable.
20431 (win32-low.o): Add dependency on $(win32_low_h).
20432 (win32-arm-low.o, win32-i386-low.o): New rules.
20434 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20436 * hostio.c: Correct copyright year.
20438 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20440 * Makefile.in (OBS): Add hostio.o.
20441 (hostio.o): New rule.
20442 * server.h (handle_vFile): Declare.
20443 * hostio.c: New file.
20444 * server.c (handle_v_requests): Take packet_len and new_packet_len
20445 for binary packets. Call handle_vFile.
20446 (main): Update call to handle_v_requests.
20448 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20450 * linux-low.c: Include <sched.h>.
20452 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20454 * linux-low.c (linux_tracefork_grandchild): New.
20455 (linux_tracefork_child): Use clone.
20456 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20458 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20460 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20462 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20464 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20466 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20468 * inferiors.c (change_inferior_id): Delete.
20469 (add_pid_to_list, pull_pid_from_list): New.
20470 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20471 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20472 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20473 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20474 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20475 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20476 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20477 (using_threads): Always set to 1.
20478 (handle_extended_wait): New.
20479 (add_process): Do not set TID.
20480 (linux_create_inferior): Set must_set_ptrace_flags.
20481 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20482 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20483 (linux_thread_alive): Rename TID argument to LWPID.
20484 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20485 (linux_wait_for_event): Do not use TID or check using_threads. Update
20486 call to dead_thread_notify. Call handle_extended_wait.
20487 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20488 (send_sigstop): Delete sigstop_sent.
20489 (wait_for_sigstop): Avoid TID.
20490 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20491 (linux_test_for_tracefork): New.
20492 (linux_lookup_signals): Use thread_db_active and
20493 linux_supports_tracefork_flag.
20494 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20495 * linux-low.h (get_process_thread): Avoid TID.
20496 (struct process_ifo): Move thread_known and tid to the end. Remove
20498 (linux_attach_lwp, thread_db_init): Update prototypes.
20499 * server.h (change_inferior_id): Delete prototype.
20500 (add_pid_to_list, pull_pid_from_list): New prototypes.
20501 * thread-db.c (thread_db_use_events): New.
20502 (find_first_thread): Rename to...
20503 (find_one_thread): ...this. Update callers and messages. Do not
20504 call fatal. Check thread_db_use_events. Do not call
20505 change_inferior_id or new_thread_notify.
20506 (maybe_attach_thread): Update. Do not call new_thread_notify.
20507 (thread_db_init): Set thread_db_use_events. Check use_events.
20508 * utils.c (fatal, warning): Correct message prefix.
20510 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20512 * Makefile.in (clean): Remove new files.
20513 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20514 (powerpc-64.o, powerpc-64.c): New rules.
20515 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20516 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20518 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20520 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20521 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20522 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20523 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20524 (target_regsets): Add AltiVec and SPE register sets.
20525 * configure.ac: Check for AltiVec and SPE.
20526 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20527 (ppc_fill_vrregset, ppc_store_vrregset): New.
20528 (target_regsets): Add AltiVec register set.
20529 * configure: Regenerated.
20531 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20533 * linux-low.c (O_LARGEFILE): Define.
20534 (linux_read_memory): Use /proc/PID/mem.
20535 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20536 * configure, config.in: Regenerated.
20538 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20540 * linux-low.c (linux_wait_for_event): Do not pass signals while
20543 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20545 * win32-low.c (create_process): New.
20546 (win32_create_inferior): Use create_process instead of
20547 CreateProcess. If create_process failed retry appending an ".exe"
20548 suffix. Store the GetLastError result immediatelly after
20549 create_process calls and use it on the call to error.
20551 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20553 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20555 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20557 * configure.ac: Switch license to GPLv3.
20559 2007-08-01 Michael Snyder <msnyder@access-company.com>
20561 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20563 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20565 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20567 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20568 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20569 CloseToolhelp32Snapshot.
20570 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20571 CloseToolhelp32Snapshot.
20573 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20575 * server.c (main): Check for inferior exit before main loop.
20577 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20579 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20580 instead of on tmp_desc.
20582 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20583 Daniel Jacobowitz <dan@codesourcery.com>
20585 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20586 (add_thread): Minor cleanups.
20587 (clear_inferiors): Move lower in the file. Clear the DLL
20589 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20590 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20591 (xml_escape_text): New.
20592 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20594 (handle_v_cont): Report errors.
20595 (gdbserver_version): Update.
20596 (main): Correct size of own_buf. Do not report initial DLL events.
20597 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20598 (unloaded_dll, xml_escape_text): New.
20599 * win32-low.c (enum target_waitkind): Update comments.
20600 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20601 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20602 (win32_EnumProcessModules, win32_GetModuleInformation)
20603 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20604 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20605 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20606 (win32_Module32First, win32_Module32Next, load_toolhelp)
20607 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20608 (get_child_debug_event): Handle DLL events.
20609 (win32_wait): Likewise.
20611 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20613 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20614 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20616 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20618 * win32-low.c (handle_output_debug_string): Ignore event if not
20621 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20623 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20625 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20627 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20629 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20631 * inferiors.c (change_inferior_id): Add comment.
20632 * linux-low.c (check_removed_breakpoint): Add an early
20633 prototype. Improve debug output.
20634 (linux_attach): Doc update.
20635 (linux_detach_one_process, linux_detach): Clean up before releasing
20637 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20638 * linux-low.h (struct process_info): Doc improvement.
20639 * mem-break.c (delete_all_breakpoints): New.
20640 * mem-break.h (delete_all_breakpoints): New prototype.
20641 * thread-db.c (find_first_thread): New.
20642 (thread_db_create_event): Call it instead of
20643 thread_db_find_new_threads. Clean up unused variables.
20644 (maybe_attach_thread): Remove first thread handling.
20645 (thread_db_find_new_threads): Use find_first_thread.
20646 (thread_db_get_tls_address): Likewise.
20648 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20650 * thread-db.c (thread_db_find_new_threads): Add prototype.
20651 (thread_db_create_event): Check for the main thread before adding
20653 (maybe_attach_thread): Only enable event reporting if TID == 0.
20654 (thread_db_get_tls_address): Check for new threads.
20656 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20658 * linux-low.c (linux_create_inferior): Try execv before execvp.
20659 * spu-low.c (spu_create_inferior): Likewise.
20661 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20663 * linux-low.c (linux_create_inferior): Change execv to execvp.
20664 * spu-low.c (spu_create_inferior): Likewies.
20666 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20668 * Makefile.in (clean): Clean new files instead of deleted ones.
20669 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20670 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20672 * configure.srv: Specify XML files and new regformats for MIPS and
20674 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20675 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20676 an entry for the restart register.
20677 (mips_cannot_fetch_register, mips_cannot_store_register)
20678 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20679 register names to match the XML descriptions.
20680 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20681 restart register instead of $0.
20683 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20684 Markus Deuling <deuling@de.ibm.com>
20686 * remote-utils.c (decode_xfer_write): New function.
20687 * server.h (decode_xfer_write): Add prototype.
20688 * server.c (handle_query): Add PACKET_LEN argument. Support
20689 qXfer:spu:read and qXfer:spu:write packets.
20690 (main): Pass packet_len to handle_query.
20691 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20692 * target.h (target_ops): Add qxfer_spu.
20694 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20696 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20697 accessing non-seekable spufs files.
20699 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20701 * server.c (handle_query): Add reply for qC packet.
20703 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20704 Leo Zayas <lerele@champenstudios@com>
20706 * server.h (check_remote_input_interrupt_request): New function.
20707 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20708 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20709 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20710 (check_remote_input_interrupt_request): New function.
20711 * server.h (check_remote_input_interrupt_request): Declare.
20712 * win32-low.c (winapi_DebugBreakProcess,
20713 winapi_GenerateConsoleCtrlEvent): New typedefs.
20714 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20716 (win32_wait): Check for remote interrupt request
20717 with check_remote_input_interrupt_request.
20718 (win32_request_interrupt): New function.
20719 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20721 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20723 * win32-low.c (debug_registers_changed,
20724 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20725 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20726 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20727 (thread_rec): Get context using the low target.
20728 (child_add_thread): Call thread_added on the low target,
20729 which does the same thing.
20731 (do_initial_child_stuff): Remove debug registers references.
20732 Set context using the low target. Resume threads after
20733 setting the contexts.
20734 (child_continue): Remove dead variable. Remove debug
20735 registers references.
20736 (child_fetch_inferior_registers): Go through the low target.
20737 (do_child_store_inferior_registers): Remove.
20738 (child_store_inferior_registers): Go through the low target.
20739 (win32_resume): Remove debug registers references.
20740 Set context using the low target.
20741 (handle_exception): Change return type to void. Don't record
20742 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20743 first chance exception.
20744 (get_child_debug_event): Change return type to void. Remove
20745 goto loop. Always return after waiting for debug event.
20746 (win32_wait): Convert to switch statement. Handle spurious
20749 * win32-i386-low.c (debug_registers_changed,
20750 debug_registers_used): New.
20751 (initial_stuff): Rename to ...
20752 (i386_initial_stuff): ... this. Clear debug registers
20754 (store_debug_registers): Delete.
20755 (i386_get_thread_context): New.
20756 (load_debug_registers): Delete.
20757 (i386_set_thread_context): New.
20758 (i386_thread_added): New.
20759 (single_step): Rename to ...
20760 (i386_single_step): ... this.
20761 (do_fetch_inferior_registers): Rename to ...
20762 (i386_fetch_inferior_register): ... this.
20763 (i386_store_inferior_register): New.
20764 (the_low_target): Adapt to new interface.
20766 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20767 (arm_get_thread_context): New.
20768 (arm_set_thread_context): New.
20770 (do_fetch_inferior_registers): Rename to ...
20771 (arm_fetch_inferior_register): ... this.
20772 (arm_store_inferior_register): New.
20773 (arm_wince_breakpoint): Reimplement as unsigned long.
20774 (arm_wince_breakpoint_len): Define.
20775 (the_low_target): Adapt to new interface.
20777 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20778 load_debug_registers. Add get_thread_context, set_thread_context,
20779 thread_added and store_inferior_register. Rename
20780 fetch_inferior_registers to fetch_inferior_register.
20781 (regptr): Remove declaration.
20783 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20785 * linux-low.c (linux_detach): Change return type to int. Return 0.
20786 * spu-low.c (spu_detach): Likewise.
20788 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20790 * target.h (target_ops): Change return type of detach to int.
20792 (join_inferior): New.
20793 * server.c (main): Don't skip detach support on mingw32.
20794 If the inferior doesn't support detaching return error.
20795 Call join_inferior instead of using waitpid.
20796 * linux-low.c (linux_join): New.
20797 (linux_target_op): Add linux_join.
20798 * spu-low.c (spu_join): New.
20799 (spu_target_ops): Add spu_join.
20800 * win32-low.c (win32_detach): Adapt to new interface.
20801 Reopen current_process_handle before detaching. Issue a child
20802 resume before detaching.
20804 (win32_target_op): Add win32_join.
20806 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20808 * win32-low.c (win32-attach): Fix return value.
20809 * target.h (target_ops): Describe ATTACH return values.
20811 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * win32-low.c (GETPROCADDRESS): Define.
20814 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20815 (winapi_DebugSetProcessKillOnExit): Likewise.
20816 (win32_create_inferior): Force usage of ansi CreateProcessA.
20817 (win32_attach): Use GETPROCADDRESS.
20818 (win32_detach): Likewise.
20820 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20822 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20824 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20826 * win32-low.c: Commit leftover changes from 2007-03-29.
20828 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20830 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20831 fields short instead of int. Add explicit padding.
20832 (i387_cache_to_fsave): Remove unnecessary casts.
20833 (i387_fsave_to_cache): Doc fix.
20834 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20836 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20838 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20839 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20841 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20843 * configure.srv (arm*-*-mingw32ce*): Move near the other
20846 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20848 * configure.ac: Add errno checking.
20849 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20850 sys/file.h and malloc.h.
20851 (AC_CHECK_DECLS): Add perror.
20852 (srv_mingwce): Handle.
20853 * configure.srv (i[34567]86-*-cygwin*): Add
20854 win32-i386-low.o to srv_tgtobj.
20855 (i[34567]86-*-mingw*): Likewise.
20856 (arm*-*-mingw32ce*): Add case.
20857 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20858 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20859 [__MINGW32CE__] (strerror): New function.
20860 [__MINGW32CE__] (errno): Define to GetLastError.
20861 [__MINGW32CE__] (COUNTOF): New macro.
20862 (remote_open): Remove extra close call.
20863 * mem-break.c (delete_breakpoint_at): New function.
20864 * mem-break.h (delete_breakpoint_at): Declare.
20865 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20866 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20867 [USE_WIN32API] (read, write): Add char* casts.
20868 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20869 * server.h: Include wincecompat.h on Windows CE.
20870 [HAVE_ERRNO_H]: Check.
20871 (perror): Declare if not declared.
20872 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20873 (perror_with_name): Remove errno declaration.
20874 * wincecompat.h: New.
20875 * wincecompat.c: New.
20876 * win32-low.h: New.
20877 * win32-arm-low.c: New.
20878 * win32-i386-low.c: New.
20879 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20880 (OUTMSG2): Make it safe.
20882 (COUNTOF): New macro.
20883 (NUM_REGS): Get it from the low target.
20884 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20885 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20886 (thread_rec): Let low target handle debug registers.
20887 (child_add_thread): Likewise.
20888 (child_init_thread_list): Likewise.
20889 (continue_one_thread): Likewise.
20891 (do_child_fetch_inferior_registers): Move to ...
20892 * win32-i386-low.c: ... here, and rename to ...
20893 (do_fetch_inferior_registers): ... this.
20894 * win32-low.c (child_fetch_inferior_registers):
20895 Go through the low target.
20896 (do_child_store_inferior_registers): Use regptr.
20897 (strwinerror): New function.
20898 (win32_create_inferior): Handle Windows CE.
20899 Use strwinerror instead of strerror on Windows error
20900 codes. Add program to the error output.
20901 Don't close the main thread handle on Windows CE.
20902 (win32_attach): Use coredll.dll on Windows CE.
20903 (win32_kill): Close current process and current
20905 (win32_detach): Use coredll.dll on Windows CE.
20906 (win32_resume): Let low target handle debug registers, and
20908 (handle_exception): Add/Remove initial breakpoint. Avoid
20909 non-existant WSTOPSIG on Windows CE.
20910 (win32_read_inferior_memory): Cast to remove warning.
20911 (win32_arch_string): Go through the low target.
20912 (initialize_low): Call set_breakpoint_data with the low
20913 target's breakpoint.
20914 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20915 FOP_REGNUM, mappings): Move to ...
20916 * win32-i386-low.c: ... here.
20917 * win32-low.c (win32_thread_info): Move to ...
20918 * win32-low.h: ... here.
20919 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20920 win32-arm-low.c and wincecompat.c.
20921 (all:): Add $EXEEXT.
20922 (install-only:): Likewise.
20923 (gdbserver:): Likewise.
20924 (gdbreplay:): Likewise.
20925 * config.in: Regenerate.
20926 * configure: Regenerate.
20928 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20930 * win32-low.c: Rename typedef thread_info to
20931 win32_thread_info throughout.
20933 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20935 * win32-i386-low.c: Rename to ...
20936 * win32-low.c: ... this.
20937 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20938 * Makefile.in: Likewise.
20940 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20942 * remote-utils.c (monitor_output): Constify msg parameter.
20943 * server.h (monitor_output): Likewise.
20944 * win32-i386-low.c (handle_output_debug_string): New.
20945 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20946 handle_output_debug_string.
20947 (get_child_debug_event): Likewise.
20949 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20951 * server.c (main): Correct strtoul check.
20953 2007-03-27 Jon Ringle <jon@ringle.org>
20955 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20957 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20959 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20961 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20963 * terminal.h: Check HAVE_SGTTY_H.
20965 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20967 * remote-utils.c (remote_open): Print out the assigned port number.
20969 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20971 * remote-utils.c (monitor_output): New function.
20972 * server.c (debug_threads): Define here.
20973 (monitor_show_help): New function.
20974 (handle_query): Handle qRcmd.
20975 (main): Do not handle 'd' packet.
20976 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20977 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20980 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20982 * Makefile.in (EXEEXT): New.
20983 (clean): Use $(EXEEXT).
20985 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20987 * target.h (target_ops): Rename send_signal to request_interrupt,
20988 and remove enum target_signal parameter.
20989 * linux-low.c (linux_request_interrupt): Rename from
20990 linux_send_signal, and always send SIGINT.
20991 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20992 and always send SIGINT.
20993 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20995 (input_interrupt): Likewise.
20997 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20999 * server.c (get_features_xml): Check if target implemented
21001 * win32-i386-low.c (win32_arch_string): New.
21002 (win32_target_ops): Add win32_arch_string as arch_string member.
21004 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21006 * spu-low.c (spu_arch_string): New.
21007 (spu_target_ops): Add spu_arch_string.
21009 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21011 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21012 * configure.ac: Do not check for terminal.h.
21013 * configure, config.in: Regenerated.
21015 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21017 * Makefile.in (OBS): Add $(XML_BUILTIN).
21018 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21020 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21021 (arm-with-iwmmxt.c): New.
21022 * config.in, configure: Regenerate.
21023 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21024 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21025 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21026 (arm*-*-linux*): Add iWMMXt and regset support.
21027 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21028 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21029 (arm_store_wmmxregset, target_regsets): New.
21030 * server.c (get_features_xml): Take annex argument. Check builtin
21032 (handle_query): Handle multiple annexes.
21034 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21036 * remote-utils.c [USE_WIN32API] (read, write): Define.
21037 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21040 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21042 * linux-i386-low.c (the_low_target): Set arch_string.
21043 * linux-x86-64-low.c (the_low_target): Likewise.
21044 * linux-low.c (linux_arch_string): New.
21045 (linux_target_ops): Add it.
21046 * linux-low.h (struct linux_target_ops): Add arch_string.
21047 * server.c (write_qxfer_response): Use const void * for DATA.
21048 (get_features_xml): New.
21049 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21050 * target.h (struct target_ops): Add arch_string method.
21052 2007-01-03 Denis Pilat <denis.pilat@st.com>
21053 Daniel Jacobowitz <dan@codesourcery.com>
21055 * linux-low.c (linux_kill): Handle being called with no threads.
21056 * win32-i386-low.c (win32_kill): Likewise.
21057 (get_child_debug_event): Clear current_process_handle.
21059 2006-12-30 Denis PILAT <denis.pilat@st.com>
21060 Daniel Jacobowitz <dan@codesourcery.com>
21062 * remote-utils.c (remote_open): Check the type of specified
21063 serial port devices before opening them.
21064 * server.c (main): Kill the inferior if an error occurs during
21065 the first remote_open.
21067 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21069 * README: Update supported targets.
21071 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21073 * Makefile.in (clean): Remove reg-mips64.c.
21074 (reg-mips64.c, reg-mips64.o): New rules.
21075 * configure.srv: Handle mips64. Include regset support for mips.
21076 * linux-mips-low.c (union mips_register): New.
21077 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21078 (mips_breakpoint, mips_breakpoint_at): Use int.
21079 (mips_collect_register, mips_supply_register)
21080 (mips_collect_register_32bit, mips_supply_register_32bit)
21081 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21082 (mips_store_fpregset, target_regsets): New.
21083 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21085 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21087 * configure.srv: Add target "spu*-*-*".
21088 * Makefile.in (clean): Remove reg-spu.c.
21089 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21090 * spu-low.c: New file.
21092 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21094 * configure.ac: Correct td_thr_tls_get_addr test.
21095 * configure: Regenerated.
21097 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21099 * linux-low.c (linux_wait_for_event): Reformat. Use the
21100 pass_signals array.
21101 * remote-utils.c (decode_address_to_semicolon): New.
21102 * server.c (pass_signals, handle_general_set): New.
21103 (handle_query): Mention QPassSignals for qSupported.
21104 (main): Call handle_general_set.
21105 * server.h (pass_signals, decode_address_to_semicolon): New.
21107 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21109 * server.c (handle_query): Correct error handling for read_auxv.
21111 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21113 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21114 and srv_linux_thread_db to yes.
21115 * linux-s390-low.c (s390_fill_gregset): New function.
21116 (target_regsets): Define data structure.
21118 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21120 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21121 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21122 * config.in, configure: Regenerated.
21123 * inferiors.c (gdb_id_to_thread): New function.
21124 (gdb_id_to_thread_id): Use it.
21125 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21126 * linux-low.h (struct process_info): Add th member.
21127 (thread_db_get_tls_address): New prototype.
21128 * remote-utils.c (decode_address): Make non-static.
21129 * server.c (handle_query): Handle qGetTLSAddr.
21130 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21131 * target.h (struct target_ops): Add get_tls_address.
21132 * thread-db.c (maybe_attach_thread): Save the thread handle.
21133 (thread_db_get_tls_address): New.
21135 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21137 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21138 (linux_resume_one_process): Take a siginfo_t *. Update all
21139 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21140 (struct pending_signals): Add a siginfo_t.
21141 (linux_wait_for_process): Always set last_status.
21142 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21143 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21144 * linux-low.h (struct process_info): Add last_status.
21146 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21148 * remote-utils.c (try_rle): New function.
21149 (putpkt_binary): Use it.
21151 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21153 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21154 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21155 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21156 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21157 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21160 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21162 * server.c (terminal_fd): New variable.
21163 (old_foreground_pgrp): Likewise.
21164 (restore_old_foreground_pgrp): New function.
21165 (start_inferior): Record the terminal file descriptor in terminal_fd
21166 and its original foreground group in old_foreground_pgrp. Register
21167 restore_old_foreground_pgrp with atexit().
21169 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21171 * server.c (handle_query): Correct qPart to qXfer.
21173 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21175 * configure.ac: Check for more headers which are missing on
21176 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21177 * configure.srv: Add Cygwin and mingw32.
21178 * remote-utils.c: Don't include headers unconditionally which
21179 are missing on mingw32. Include <winsock.h> for mingw32.
21180 (remote_open): Adjust for mingw32 support. Flush
21181 standard error after writing to it.
21182 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21183 (unblock_async_io, enable_async_io, disable_async_io)
21184 (readchar, getpkt): Update for Winsock support.
21185 (prepare_resume_reply): Expect a protocol signal number.
21186 * server.c: Disable <sys/wait.h> on mingw32.
21187 (start_inferior): Adjust for mingw32 support. Flush
21188 standard error after writing to it.
21189 (attach_inferior): Likewise. Use protocol signal
21191 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21193 * win32-i386-low.c: New file.
21194 * Makefile.in (XM_CLIBS): Set.
21195 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21196 (win32-i386-low.o): New dependency rule.
21197 * linux-low.c (linux_wait): Use target signal numbers.
21198 * target.h (struct target_ops): Doc fix.
21199 * server.h (target_signal_to_name): New prototype.
21200 * gdbreplay.c: Don't include headers unconditionally which
21201 are missing on mingw32. Include <winsock.h> for mingw32.
21202 (remote_close, remote_open): Adjust for Winsock support.
21203 * configure, config.in: Regenerated.
21205 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21207 * server.c (decode_xfer_read, write_qxfer_response): New.
21208 (handle_query): Take a packet length argument. Handle
21209 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21210 the qSupported response.
21211 (main): Update call to handle_query.
21213 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21215 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21216 (putpkt_binary): Renamed from putpkt and adjusted for binary
21218 (putpkt): New wrapper for putpkt_binary.
21219 (readchar): Don't mask off the high bit.
21220 (decode_X_packet): New function.
21221 * server.c (main): Call putpkt_binary if a handler sets the packet
21222 length. Save the length of the incoming packet. Handle 'X'.
21223 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21225 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21227 * server.c (handle_query): Handle qSupported.
21229 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21231 * remote-utils.c (all_symbols_looked_up): New variable.
21232 (look_up_one_symbol): Check it.
21233 * server.h (look_up_one_symbol): New declaration.
21234 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21236 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21238 * Makefile.in (linux-arm-low.o): Update dependencies.
21239 * linux-arm-low.c: Include "gdb_proc_service.h".
21240 (PTRACE_GET_THREAD_AREA): Define.
21241 (ps_get_thread_area): New function.
21243 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21245 * configure.srv (m68k*-*-uclinux*): New target.
21246 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21247 (linux_resume_one_process): Remove extraneous cast.
21248 (linux_read_offsets): New.
21249 (linux_target_op): Add linux_read_offsets on mmuless systems.
21250 * server.c (handle_query): Add qOffsets logic.
21251 * target.h (struct target_ops): Add read_offsets.
21253 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21255 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21256 (PTRACE_GET_THREAD_AREA): Define.
21257 (ps_get_thread_area): New function.
21258 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21259 (linux-x86-64-low.o): Update.
21261 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21263 * configure.ac: Remove checks for prfpregset_t.
21264 * gdb_proc_service.h: New file.
21265 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21266 new "gdb_proc_service.h".
21267 * proc-service.c: Likewise.
21268 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21269 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21270 * Makefile.in (gdb_proc_service_h): Updated.
21271 * configure, config.in: Regenerated.
21273 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21275 * remote-utils.c (prepare_resume_reply): Move declaration
21276 of gdb_id_from_wait to the top of the block.
21278 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21280 * linux-low.c (regsets_store_inferior_registers): Read the regset
21281 from the target before filling it.
21283 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21285 * server.c (attach_inferior): Return SIGTRAP for a successful
21288 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21290 * Makefile.in (OBS): Add version.o.
21291 (STAGESTUFF): Delete.
21292 (version.o): Add dependencies.
21293 (version.c): Replace rule.
21294 (clean): Remove version.c.
21295 * server.c (gdbserver_version): New.
21296 (gdbserver_usage): Use printf.
21297 (main): Handle --version and --help.
21298 * server.h (version, host_name): Add declarations.
21300 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21312 * linux-x86-64-low.c:
21314 * linux-s390-low.c:
21315 * linux-ppc64-low.c:
21317 * linux-mips-low.c:
21318 * linux-m68k-low.c:
21319 * linux-m32r-low.c:
21322 * linux-ia64-low.c:
21323 * linux-i386-low.c:
21324 * linux-crisv32-low.c:
21336 * gdbserver.1: Add (C) after Copyright. Update the FSF
21339 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21341 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21342 (arm_breakpoint_at): Recognize both breakpoints.
21343 (the_low_target): Use the correct breakpoint instruction.
21345 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21347 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21348 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21349 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21350 (the_low_target): Update.
21352 2005-10-25 Andreas Schwab <schwab@suse.de>
21354 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21356 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21357 (ia64_num_regs): Reduce to 462.
21359 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21361 * acinclude.m4: Correct quoting.
21362 * aclocal.m4: Regenerated.
21364 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21365 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21366 (thread_db_init): Call thread_db_err_str.
21367 * configure.ac: Check for TD_VERSION.
21368 * config.in, configure: Regenerated.
21370 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21372 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21374 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21376 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21377 is not available. Define HAVE_PTRACE_GETREGS if it is.
21378 * config.in, configure: Regenerated.
21379 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21380 * linux-i386-low.c, linux-m68k-low.c: Update to use
21381 HAVE_PTRACE_GETREGS.
21382 * linux-low.c (regsets_fetch_inferior_registers)
21383 (regsets_store_inferior_registers): Only return 0 if we processed
21385 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21386 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21388 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21390 * inferiors.c (struct thread_info): Add gdb_id.
21391 (add_thread): Add gdb_id argument.
21392 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21393 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21394 calls to add_thread.
21395 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21396 * server.c (handle_query): Use thread_to_gdb_id.
21397 (handle_v_cont, main): Use gdb_id_to_thread_id.
21398 * server.h (add_thread): Update prototype.
21399 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21402 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21404 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21405 left-padded registers.
21406 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21407 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21409 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21411 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21412 * configure: Regenerate.
21413 * config.in: Regenerate.
21414 * server.h (NEED_DECLARATION_STRERROR):
21415 Replace with !HAVE_DECL_STRERROR.
21417 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21419 * linux-low.c (linux_wait, linux_send_signal): Don't test
21420 an unsigned long variable for > 0 if it could be MAX_ULONG.
21421 * server.c (myresume): Likewise.
21422 * target.c (set_desired_inferior): Likewise.
21424 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21426 * configure.ac: Simplify and improve check for socklen_t.
21427 * configure, config.in: Regenerate.
21429 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21431 * acconfig.h: Remove.
21432 * configure.ac: Add a test for socklen_t. Use three-argument
21433 AC_DEFINE throughout.
21434 * config.in: Regenerated using autoheader 2.59.
21435 * configure: Regenerated.
21437 * gdbreplay.c (socklen_t): Provide a default.
21438 (remote_open): Use socklen_t.
21439 * remote-utils.c (socklen_t): Provide a default.
21440 (remote_open): Use socklen_t.
21441 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21444 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21446 * linux-low.c (linux_read_memory, linux_write_memory)
21447 (linux_read_auxv): Likewise.
21448 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21449 (check_mem_write): Likewise.
21450 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21452 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21453 (registers_from_string, register_data): Likewise.
21454 * server.c (handle_query, main): Likewise.
21455 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21456 (decode_M_packet): Likewise.
21457 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21458 * target.h (struct target_ops): Update read_memory, write_memory,
21460 (read_inferior_memory, write_inferior_memory): Update.
21461 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21462 to unsigned char *.
21463 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21464 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21465 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21466 linux-s390-low.c, linux-sh-low.c: Update for changes in
21467 read_inferior_memory and the_low_target->breakpoint.
21469 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21471 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21472 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21473 * configure.srv: Add powerpc64-*-linux*.
21474 * linux-ppc64-low.c: New file.
21476 2005-05-23 Orjan Friberg <orjanf@axis.com>
21478 * linux-cris-low.c: New file with support for CRIS.
21479 * linux-crisv32-low.c: Ditto for CRISv32.
21480 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21481 (clean): Add reg-cris.c and reg-crisv32.c.
21482 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21483 reg-crisv32.o, and reg-crisv32.c to make rules.
21484 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21485 recognized targets.
21487 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21489 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21490 of sizeof (PTRACE_XFER_TYPE).
21491 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21493 2005-05-12 Orjan Friberg <orjanf@axis.com>
21495 * target.h (struct target_ops): Add insert_watchpoint,
21496 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21497 pointers for hardware watchpoint support.
21498 * linux-low.h (struct linux_target_ops): Ditto.
21499 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21500 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21501 to linux_target_ops.
21502 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21504 * server.c (main): Recognize 'Z' and 'z' packets.
21506 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21508 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21509 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21510 (the_low_target): Add new members.
21512 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21514 * proc-service.c (ps_lgetregs): Search all_processes instead of
21517 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21519 * server.c (start_inferior): Change return type to int.
21520 (attach_inferior): Change sigptr to int *.
21521 (handle_v_cont, handle_v_requests): Change signal to int *.
21522 (main): Change signal to int.
21524 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21526 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21527 * configure.srv: Add m32r*-*-linux*.
21528 * linux-m32r-low.c: New file.
21530 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21532 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21534 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21536 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21537 Take unsigned long arguments for PIDs.
21538 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21539 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21540 (wait_for_sigstop, linux_resume_one_process)
21541 (regsets_fetch_inferior_registers, linux_send_signal)
21542 (linux_read_auxv): Likewise. Update the types of variables holding
21543 PIDs. Update format string specifiers.
21544 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21545 * remote-utils.c (prepare_resume_reply): Likewise.
21546 * server.c (cont_thread, general_thread, step_thread)
21547 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21549 (handle_query): Update format specifiers.
21550 (handle_v_cont, main): Use strtoul for thread IDs.
21551 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21552 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21553 (general_thread, step_thread, thread_from_wait)
21554 (old_thread_from_wait): Update.
21555 * target.h (struct thread_resume): Use unsigned long for THREAD.
21556 (struct target_ops): Use unsigned long for arguments to attach and
21559 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21561 * acinclude.m4: Include bfd/bfd.m4 directly.
21562 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21563 <agriffis@toolchain.org>.
21564 * aclocal.m4, configure: Regenerated.
21566 2005-01-07 Andrew Cagney <cagney@gnu.org>
21568 * configure.ac: Rename configure.in, require autoconf 2.59.
21569 * configure: Re-generate.
21571 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21573 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21574 LIBS when finished.
21575 * aclocal.m4: Regenerated.
21576 * configure: Regenerated.
21578 2004-11-21 Andreas Schwab <schwab@suse.de>
21580 * linux-m68k-low.c (m68k_num_gregs): Define.
21581 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21582 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21583 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21584 (m68k_breakpoint_at): New. Add to the_low_target.
21586 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21587 srv_linux_thread_db to yes.
21589 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21591 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21592 (ARCH_SET_FS): Likewise.
21593 (ARCH_GET_FS): Likewise.
21594 (ARCH_GET_GS): Likewise.
21596 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21598 * linux-i386-low.c (ps_get_thread_area): New.
21599 * linux-x86-64-low.c (ps_get_thread_area): New.
21600 * linux-low.c: Include <sys/syscall.h>.
21601 (linux_kill_one_process): Don't kill the first thread here.
21602 (linux_kill): Kill the first thread here.
21603 (kill_lwp): New function.
21604 (send_sigstop, linux_send_signal): Use it.
21605 * proc-service.c: Clean up #ifdefs.
21606 (fpregset_info): Delete.
21607 (ps_lgetregs): Update and enable implementation.
21608 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21610 * remote-utils.c (struct sym_cache, symbol_cache): New.
21611 (input_interrupt): Print a clearer message.
21612 (async_io_enabled): New variable.
21613 (enable_async_io, disable_async_io): Use it. Update comments.
21614 (look_up_one_symbol): Use the symbol cache.
21615 * thread-db.c (thread_db_look_up_symbols): New function.
21616 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21618 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21620 * configure.in: Test for -rdynamic.
21621 * configure: Regenerated.
21622 * Makefile (INTERNAL_LDFLAGS): New.
21623 (gdbserver, gdbreplay): Use it.
21625 2004-09-02 Andrew Cagney <cagney@gnu.org>
21627 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21629 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21631 * linux-low.c (linux_wait): Clear all_processes list also.
21633 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21635 * linux-low.c: Include <errno.h>. Remove extern declaration of
21638 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21640 * gdbreplay.c, server.h, utils.c: Update copyright years.
21642 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21644 * server.c (main): Print child status or termination signal from
21645 variable 'signal', not 'sig'.
21647 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21649 * linux-low.c (linux_read_memory): Change return type to
21650 int. Check for and return error from ptrace().
21651 * target.c (read_inferior_memory): Change return type to int. Pass
21652 back return status from the_target->read_memory().
21653 * target.h (struct target_ops): Adapt *read_memory() prototype.
21655 (read_inferior_memory): Adapt prototype.
21656 * server.c (main): Return an error packet if
21657 read_inferior_memory() returns an error.
21659 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21661 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21662 Unify with other clean targets.
21664 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21666 * server.c (handle_v_cont): Call set_desired_inferior.
21668 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21670 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21672 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21674 * linux-low.c (linux_wait): Unblock async I/O.
21675 (linux_resume): Block and enable async I/O.
21676 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21677 * server.h (block_async_io, unblock_async_io): Add prototypes.
21679 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21681 * remote-utils.c (remote_open): Print a status notice after
21682 opening a TCP port.
21683 * server.c (attach_inferior): Print a status notice after
21686 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21688 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21690 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21692 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21694 * server.c, target.h: Update copyright years.
21696 2004-02-25 Roland McGrath <roland@redhat.com>
21698 * target.h (struct target_ops): New member `read_auxv'.
21699 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21700 * linux-low.c (linux_read_auxv): New function.
21701 (linux_target_ops): Initialize `read_auxv' member to that.
21703 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21705 Committed by Jim Blandy <jimb@redhat.com>.
21707 * linux-s390-low.c (s390_num_regs): Update.
21708 (s390_regmap): Remove control registers. Use __s390x__ predefine
21709 instead of GPR_SIZE to distiguish s390 and s390x targets.
21711 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21713 * linux-low.c: Update copyright year.
21714 (check_removed_breakpoint): Clear pending_is_breakpoint.
21715 (linux_set_resume_request, linux_queue_one_thread)
21716 (resume_status_pending_p): New functions.
21717 (linux_continue_one_thread): Use process->resume.
21718 (linux_resume): Only resume threads if there are no pending events.
21719 * linux-low.h (struct process_info): Add resume request
21722 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21724 * regcache.c (new_register_cache): Clear the allocated register
21725 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21727 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21729 * linux-low.c (linux_resume): Take a struct thread_resume *
21731 (linux_wait): Update call.
21732 (resume_ptr): New static variable.
21733 (linux_continue_one_thread): Renamed from
21734 linux_continue_one_process. Use resume_ptr.
21735 (linux_resume): Use linux_continue_one_thread.
21736 * server.c (handle_v_cont, handle_v_requests): New functions.
21737 (myresume): New function.
21738 (main): Handle 'v' case.
21739 * target.h (struct thread_resume): New type.
21740 (struct target_ops): Change argument of "resume" to struct
21742 (myresume): Delete macro.
21744 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21746 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21747 (uninstall): Support DESTDIR.
21749 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21751 * configure.srv: Add xscale*linux copy of arm*linux entry.
21753 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21755 * linux-arm-low.c (arm_reinsert_addr): New function.
21756 (the_low_target): Add arm_reinsert_addr.
21758 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21760 * mem-break.c: Remove whitespace at end of file.
21762 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21764 * configure.in: Check whether we need to prototype strerror.
21765 * server.h: Optionally prototype strerror.
21766 * gdbreplay.c (perror_with_name): Use strerror.
21767 * linux-low.c (linux_attach_lwp): Use strerror.
21768 * utils.c (perror_with_name): Use strerror.
21769 * config.in, configure: Regenerated.
21771 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21773 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21774 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21776 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21778 * Makefile.in (SFILES): Update.
21779 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21780 low-sun3.c: Remove files.
21782 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21784 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21785 (linux_detach_one_process, linux_detach): New functions.
21786 (linux_target_ops): Add linux_detach.
21787 * server.c (main): Handle 'D' packet.
21788 * target.h (struct target_ops): Add "detach" member.
21789 (detach_inferior): Define.
21791 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21793 From Kelley Cook <kelleycook@wideopenwest.com>:
21794 * configure.srv: Accept i[34567]86 variants.
21796 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21798 * linux-low.c (linux_wait_for_event): Correct comment typos.
21799 (linux_resume_one_process): Call check_removed_breakpoint.
21800 (linux_send_signal): New function.
21801 (linux_target_ops): Add linux_send_signal.
21802 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21804 * target.h (struct target_ops): Add send_signal.
21806 2003-05-29 Jim Blandy <jimb@redhat.com>
21808 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21809 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21810 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21811 away part of the register's value.
21813 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21815 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21816 (linux_wait_for_event, linux_init_signals): Likewise.
21818 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21820 * configure.in: Check for stdlib.h.
21821 * configure: Regenerated.
21822 * config.in: Regenerated.
21824 2003-01-04 Andreas Schwab <schwab@suse.de>
21826 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21828 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21830 * Makefile.in: Remove obsolete code.
21832 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21834 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21835 defined(PT_FPR0_HI).
21837 2002-11-17 Stuart Hughes <seh@zee2.com>
21839 * linux-arm-low.c (arm_num_regs): Increase.
21840 (arm_regmap): Include status register.
21842 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21844 * linux-low.c (register_addr): Remove incorrect -1 check.
21846 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21848 * linux-low.c (linux_create_inferior): Call setpgid. Return
21850 (unstopped_p, linux_signal_pid): Remove.
21851 (linux_target_ops): Remove linux_signal_pid.
21852 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21853 global instead of target method.
21854 * target.h (struct target_ops): Remove signal_pid. Update comment
21855 for create_inferior.
21856 * server.c (signal_pid): New variable.
21857 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21858 gdbserver. Set the child to be the foreground process group.
21859 (attach_inferior): Set signal_pid.
21861 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21863 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21865 2002-08-20 Jim Blandy <jimb@redhat.com>
21867 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21870 2002-08-01 Andrew Cagney <cagney@redhat.com>
21872 * Makefile.in: Make chill references obsolete.
21874 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21876 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21877 * configure: Regenerate.
21878 * config.in: Regenerate.
21880 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21882 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21883 (perror_with_name, remote_close, remote_open, expect, play): Static.
21885 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21887 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21888 byte offsets instead of an array of indexes.
21889 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21891 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21893 * regcache.c: Add comment.
21895 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21897 * thread-db.c: New file.
21898 * proc-service.c: New file.
21899 * acinclude.m4: New file.
21900 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21901 proc-service.o, and thread-db.o.
21902 (linux-low.o): Add USE_THREAD_DB.
21903 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21904 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21905 * aclocal.m4: Regenerated.
21906 * config.in: Regenerated.
21907 * configure: Regenerated.
21908 * configure.in: Check for proc_service.h, sys/procfs.h,
21909 thread_db.h, and linux/elf.h headrs.
21910 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21911 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21912 Check for -lthread_db and thread support.
21913 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21914 PowerPC, and SuperH.
21915 * i387-fp.c: Constify arguments.
21916 * i387-fp.h: Likewise.
21917 * inferiors.c: (struct thread_info): Renamed from
21918 `struct inferior_info'. Remove PID member. Use generic inferior
21919 list header. All uses updated.
21920 (inferiors, signal_pid): Removed.
21921 (all_threads): New variable.
21922 (get_thread): Define.
21923 (add_inferior_to_list): New function.
21924 (for_each_inferior): New function.
21925 (change_inferior_id): New function.
21926 (add_inferior): Removed.
21927 (remove_inferior): New function.
21928 (add_thread): New function.
21929 (free_one_thread): New function.
21930 (remove_thread): New function.
21931 (clear_inferiors): Use for_each_inferior and free_one_thread.
21932 (find_inferior): New function.
21933 (find_inferior_id): New function.
21934 (inferior_target_data): Update argument type.
21935 (set_inferior_target_data): Likewise.
21936 (inferior_regcache_data): Likewise.
21937 (set_inferior_regcache_data): Likewise.
21938 * linux-low.c (linux_bp_reinsert): Remove.
21939 (all_processes, stopping_threads, using_thrads)
21940 (struct pending_signals, debug_threads, pid_of): New.
21941 (inferior_pid): Replace with macro.
21942 (struct inferior_linux_data): Remove.
21943 (get_stop_pc, add_process): New functions.
21944 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21945 Use add_process and add_thread.
21946 (linux_attach_lwp): New function, based on old linux_attach. Use
21947 add_process and add_thread. Set stop_expected for new threads.
21948 (linux_attach): New function.
21949 (linux_kill_one_process): New function.
21950 (linux_kill): Kill all LWPs.
21951 (linux_thread_alive): Use find_inferior_id.
21952 (check_removed_breakpoints, status_pending_p): New functions.
21953 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21954 Update. Use WNOHANG. Wait for cloned processes also. Update process
21955 struct for the found process.
21956 (linux_wait_for_event): New function.
21957 (linux_wait): Use it. Support LWPs.
21958 (send_sigstop, wait_for_sigstop, stop_all_processes)
21959 (linux_resume_one_process, linux_continue_one_process): New functions.
21960 (linux_resume): Support LWPs.
21961 (REGISTER_RAW_SIZE): Remove.
21962 (fetch_register): Use register_size instead. Call supply_register.
21963 (usr_store_inferior_registers): Likewise. Call collect_register.
21964 Fix recursive case.
21965 (regsets_fetch_inferior_registers): Improve error message.
21966 (regsets_store_inferior_registers): Add debugging.
21967 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21968 (unstopped_p, linux_signal_pid): New functions.
21969 (linux_target_ops): Add linux_signal_pid.
21970 (linux_init_signals): New function.
21971 (initialize_low): Call it. Initialize using_threads.
21972 * regcache.c (inferior_regcache_data): Add valid
21974 (get_regcache): Fetch registers lazily. Add fetch argument
21975 and update all callers.
21976 (regcache_invalidate_one, regcache_invalidate): New
21978 (new_register_cache): Renamed from create_register_cache.
21979 Return the new regcache.
21980 (free_register_cache): Change argument to a void *.
21981 (registers_to_string, registers_from_string): Call get_regcache
21982 with fetch flag set.
21983 (register_data): Make static. Pass fetch flag to get_regcache.
21984 (supply_register): Call get_regcache with fetch flag clear.
21985 (collect_register): Call get_regcache with fetch flag set.
21986 (collect_register_as_string): New function.
21987 * regcache.h: Update.
21988 * remote-utils.c (putpkt): Flush after debug output and use
21990 Handle input interrupts while waiting for an ACK.
21991 (input_interrupt): Use signal_pid method.
21992 (getpkt): Flush after debug output and use stderr.
21993 (outreg): Use collect_register_as_string.
21994 (new_thread_notify, dead_thread_notify): New functions.
21995 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21996 and general_thread.
21997 (look_up_one_symbol): Flush after debug output.
21998 * server.c (step_thread, server_waiting): New variables.
21999 (start_inferior): Don't use signal_pid. Update call to mywait.
22000 (attach_inferior): Update call to mywait.
22001 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22002 (main): Don't fetch/store registers explicitly. Use
22003 set_desired_inferior. Support proposed ``Hs'' packet. Update
22005 * server.h: Update.
22006 (struct inferior_list, struct_inferior_list_entry): New.
22007 * target.c (set_desired_inferior): New.
22008 (write_inferior_memory): Constify.
22009 (mywait): New function.
22010 * target.h: Update.
22011 (struct target_ops): New signal_pid method.
22012 (mywait): Removed macro, added prototype.
22014 * linux-low.h (regset_func): Removed.
22015 (regset_fill_func, regset_store_func): New.
22016 (enum regset_type): New.
22017 (struct regset_info): Add type field. Use new operation types.
22018 (struct linux_target_ops): stop_pc renamed to get_pc.
22019 Add decr_pc_after_break and breakpoint_at.
22020 (get_process, get_thread_proess, get_process_thread)
22021 (strut process_info, all_processes, linux_attach_lwp)
22022 (thread_db_init): New.
22024 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22025 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22026 (the_low_target): Add new members.
22027 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22028 (i386_store_fpxregset): Constify.
22029 (target_regsets): Add new kind identifier.
22030 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22031 (i386_set_pc): Add debugging.
22032 (i386_breakpoint_at): New function.
22033 (the_low_target): Add new members.
22034 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22035 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22036 (mips_breakpoint_at): New.
22037 (the_low_target): Add new members.
22038 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22039 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22040 (the_low_target): Add new members.
22041 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22042 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22043 (the_low_target): Add new members.
22044 * linux-x86-64-low.c (target_regsets): Add new kind
22047 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22049 From Martin Pool <mbp@samba.org>:
22050 * server.c (gdbserver_usage): New function.
22053 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22055 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22056 stop_at -> stop_pc.
22058 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22060 * Makefile.in: Remove obsolete code.
22062 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22064 * linux-low.c (regsets_fetch_inferior_registers),
22065 (regsets_store_inferior_registers): Removed cast to int from
22067 * regcache.h: Added declaration of struct inferior_info.
22069 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22071 * inferiors.c (struct inferior_info): Add regcache_data.
22072 (add_inferior): Call create_register_cache.
22073 (clear_inferiors): Call free_register_cache.
22074 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22075 * regcache.c (struct inferior_regcache_data): New.
22076 (registers): Remove.
22077 (get_regcache): New function.
22078 (create_register_cache, free_register_cache): New functions.
22079 (set_register_cache): Don't initialize the register cache here.
22080 (registers_to_string, registers_from_string, register_data): Call
22082 * regcache.h: Add prototypes.
22083 * server.h: Likewise.
22085 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22087 * mem-break.c: New file.
22088 * mem-break.h: New file.
22089 * Makefile.in: Add mem-break.o rule; update server.h
22091 * inferiors.c (struct inferior_info): Add target_data
22093 (clear_inferiors): Free target_data member if set.
22094 (inferior_target_data, set_inferior_target_data): New functions.
22095 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22096 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22097 * linux-low.c (linux_bp_reinsert): New variable.
22098 (struct inferior_linux_data): New.
22099 (linux_create_inferior): Use set_inferior_target_data.
22100 (linux_attach): Likewise. Call add_inferior.
22101 (linux_wait_for_one_inferior): New function.
22102 (linux_wait): Call it.
22103 (linux_write_memory): Add const.
22104 (initialize_low): Call set_breakpoint_data.
22105 * linux-low.h (struct linux_target_ops): Add breakpoint
22107 * server.c (attach_inferior): Remove extra add_inferior
22109 * server.h: Include mem-break.h. Update inferior.c
22111 * target.c (read_inferior_memory)
22112 (write_inferior_memory): New functions.
22113 * target.h (read_inferior_memory)
22114 (write_inferior_memory): Change macros to prototypes.
22115 (struct target_ops): Update comments. Add const to write_memory
22118 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22120 * linux-low.c (usr_store_inferior_registers): Support
22121 registers which are allowed to fail to store.
22122 * linux-low.h (linux_target_ops): Likewise.
22123 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22124 (ppc_cannot_store_register): FPSCR may not be storable.
22126 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22128 * server.h: Include <string.h> if HAVE_STRING_H.
22129 * ChangeLog: Correct paths in last ChangeLog entry.
22131 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22133 * linux-low.h: Remove obsolete prototypes.
22134 (struct linux_target_ops): New.
22135 (extern the_low_target): New.
22136 * linux-low.c (num_regs, regmap): Remove declarations.
22137 (register_addr): Use the_low_target explicitly.
22138 (fetch_register): Likewise.
22139 (usr_fetch_inferior_registers): Likewise.
22140 (usr_store_inferior_registers): Likewise.
22141 * linux-arm-low.c (num_regs): Remove.
22142 (arm_num_regs): Define.
22143 (arm_regmap): Renamed from regmap, made static.
22144 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22146 (arm_cannot_store_register): Renamed from cannot_store_register,
22148 (the_low_target): New.
22149 * linux-i386-low.c (num_regs): Remove.
22150 (i386_num_regs): Define.
22151 (i386_regmap): Renamed from regmap, made static.
22152 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22154 (i386_cannot_store_register): Renamed from cannot_store_register,
22156 (the_low_target): New.
22157 * linux-ia64-low.c (num_regs): Remove.
22158 (ia64_num_regs): Define.
22159 (ia64_regmap): Renamed from regmap, made static.
22160 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22162 (ia64_cannot_store_register): Renamed from cannot_store_register,
22164 (the_low_target): New.
22165 * linux-m68k-low.c (num_regs): Remove.
22166 (m68k_num_regs): Define.
22167 (m68k_regmap): Renamed from regmap, made static.
22168 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22170 (m68k_cannot_store_register): Renamed from cannot_store_register,
22172 (the_low_target): New.
22173 * linux-mips-low.c (num_regs): Remove.
22174 (mips_num_regs): Define.
22175 (mips_regmap): Renamed from regmap, made static.
22176 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22178 (mips_cannot_store_register): Renamed from cannot_store_register,
22180 (the_low_target): New.
22181 * linux-ppc-low.c (num_regs): Remove.
22182 (ppc_num_regs): Define.
22183 (ppc_regmap): Renamed from regmap, made static.
22184 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22186 (ppc_cannot_store_register): Renamed from cannot_store_register,
22188 (the_low_target): New.
22189 * linux-s390-low.c (num_regs): Remove.
22190 (s390_num_regs): Define.
22191 (s390_regmap): Renamed from regmap, made static.
22192 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22194 (s390_cannot_store_register): Renamed from cannot_store_register,
22196 (the_low_target): New.
22197 * linux-sh-low.c (num_regs): Remove.
22198 (sh_num_regs): Define.
22199 (sh_regmap): Renamed from regmap, made static.
22200 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22202 (sh_cannot_store_register): Renamed from cannot_store_register,
22204 (the_low_target): New.
22205 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22206 (the_low_target): New.
22208 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22210 * Makefile.in: Add stamp-h target.
22211 * configure.in: Create stamp-h.
22212 * configure: Regenerated.
22214 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22216 * inferiors.c: New file.
22217 * target.c: New file.
22218 * target.h: New file.
22219 * Makefile.in: Add target.o and inferiors.o. Update
22221 * linux-low.c (inferior_pid): New static variable,
22222 moved from server.c.
22223 (linux_create_inferior): Renamed from create_inferior.
22224 Call add_inferior. Return 0 on success instead of a PID.
22225 (linux_attach): Renamed from myattach.
22226 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22227 (linux_thread_alive): Renamed from mythread_alive.
22228 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22230 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22231 (regsets_store_inferior_registers): Correct error message.
22232 Add missing ``return 0''.
22233 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22234 (linux_store_registers): Renamed from store_inferior_registers.
22235 (linux_read_memory): Renamed from read_inferior_memory.
22236 (linux_write_memory): Renamed from write_inferior_memory.
22237 (linux_target_ops): New structure.
22238 (initialize_low): Call set_target_ops ().
22239 * remote-utils.c (unhexify): New function.
22240 (hexify): New function.
22241 (input_interrupt): Send signals to ``signal_pid''.
22242 * server.c (inferior_pid): Remove.
22243 (start_inferior): Update create_inferior call.
22244 (attach_inferior): Call add_inferior.
22245 (handle_query): New function.
22246 (main): Call handle_query for `q' packets.
22247 * server.h: Include "target.h". Remove obsolete prototypes.
22248 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22250 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22252 * Makefile.in: Add WARN_CFLAGS. Update configury
22254 * configure.in: Check for <string.h>
22255 * configure: Regenerate.
22256 * config.in: Regenerate.
22257 * gdbreplay.c: Include needed system headers.
22258 (remote_open): Remove strchr prototype.
22259 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22260 * regcache.c (supply_register): Change buf argument to const void *.
22261 (supply_register_by_name): Likewise.
22262 (collect_register): Change buf argument to void *.
22263 (collect_register_by_name): Likewise.
22264 * regcache.h: Add missing prototypes.
22265 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22266 * server.c (handle_query): New function.
22267 (attached): New static variable, moved out of main.
22268 (main): Quiet longjmp clobber warnings.
22269 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22270 * utils.c (error): Remove NORETURN.