1 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3 * nto-low.cc (nto_process_target::create_inferior): Pass
4 argv to spawnp function as char **.
6 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8 * server.cc (captured_main), (handle_v_run): No longer
9 insert extra NULL element to args vector.
11 2020-05-23 Pedro Alves <palves@redhat.com>
13 * gdb-safe-ctype.h: New.
15 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
18 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
19 (ia64_target::low_breakpoint_at): Ditto.
21 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
23 * win32-i386-low.cc (i386_supports_z_point_type): Handle
24 Z_PACKET_HW_BP z_type.
25 (i386_insert_point): Handle raw_bkpt_type type.
26 (i386_remove_point): Likewise.
28 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
30 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
32 * win32-arm-low.cc (arm_num_regs): New function.
33 (struct win32_target_ops): Use arm_num_regs.
34 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
36 (i386_get_thread_context): Likewise.
37 (i386_prepare_to_resume): Likewise.
38 (i386_thread_added): Likewise.
39 (i386_single_step): Likewise.
40 (i386_fetch_inferior_register): Likewise.
41 (i386_store_inferior_register): Likewise.
42 (i386_arch_setup): Likewise.
43 (i386_win32_num_regs): New function.
44 (struct win32_target_ops): Use i386_win32_num_regs.
45 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
47 (win32_require_context): Likewise.
48 (child_add_thread): Likewise.
49 (do_initial_child_stuff): Likewise.
50 (continue_one_thread): Likewise.
51 (win32_process_target::resume): Likewise.
52 (load_psapi): Likewise.
53 (win32_add_all_dlls): Likewise.
54 (maybe_adjust_pc): Likewise.
55 (win32_process_target::qxfer_siginfo): Likewise.
56 (initialize_low): Likewise.
57 * win32-low.h (struct win32_target_ops): Change num_regs to
60 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
62 * configure.ac: Remove check for fs_base/gs_base in
64 * configure: Re-generate.
65 * config.in: Re-generate.
66 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
67 x86_store_gregset): Adjust.
69 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
71 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
74 2020-04-16 Tom Tromey <tromey@adacore.com>
76 * win32-low.cc (windows_nat::handle_access_violation): New
79 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
81 * win32-low.cc (get_child_debug_event): Fix format string warning.
83 2020-04-13 Tom Tromey <tom@tromey.com>
85 * server.h (gdb_fildes_t): Remove typedef.
86 * remote-utils.c (remote_desc, list_desc): Now int.
87 (INVALID_DESCRIPTOR): Remove.
88 (gdb_connected, remote_close)
89 (check_remote_input_interrupt_request): Update.
90 * utils.h (pfildes): Don't declare.
91 * utils.c (pfildes): Remove.
93 2020-04-13 Tom Tromey <tom@tromey.com>
95 * server.h (handle_serial_event, handle_target_event): Update.
96 * server.c: Don't call initialize_event_loop.
97 (keep_processing_events): New global.
98 (handle_serial_event): Return void. Set keep_processing_events.
99 (handle_target_event): Return void.
100 (start_event_loop): Move from event-loop.c. Rewrite.
101 * remote-utils.c (handle_accept_event): Return void.
102 (reset_readchar): Use delete_timer.
103 (process_remaining): Return void.
104 (reschedule): Use create_timer.
105 * event-loop.h: Remove.
106 * event-loop.cc: Remove.
107 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
109 2020-04-13 Tom Tromey <tom@tromey.com>
111 * server.c (invoke_async_signal_handlers)
112 (check_async_event_handlers, flush_streams, gdb_select): New
115 2020-04-13 Tom Tromey <tom@tromey.com>
117 * configure: Rebuild.
118 * config.in: Rebuild.
120 2020-04-08 Tom Tromey <tromey@adacore.com>
123 * win32-low.c (child_continue): Call matching_pending_stop.
124 (get_child_debug_event): Call fetch_pending_stop. Push pending
127 2020-04-08 Tom Tromey <tromey@adacore.com>
129 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
130 (win32_process_target::supports_stopped_by_sw_breakpoint):
132 * win32-low.c (win32_supports_z_point_type): Always handle
134 (win32_insert_point): Call insert_memory_breakpoint when needed.
135 (win32_remove_point): Call remove_memory_breakpoint when needed.
136 (win32_process_target::stopped_by_sw_breakpoint)
137 (win32_process_target::supports_stopped_by_sw_breakpoint): New
139 (win32_target_ops): Update.
140 (maybe_adjust_pc): New function.
141 (win32_wait): Call maybe_adjust_pc.
143 2020-04-08 Tom Tromey <tromey@adacore.com>
145 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
147 * win32-i386-low.c (the_low_target): Update.
148 * win32-arm-low.c (the_low_target): Update.
150 2020-04-08 Tom Tromey <tromey@adacore.com>
152 * win32-low.h (win32_process_target::read_pc)
153 (win32_process_target::write_pc): Declare.
154 * win32-low.c (win32_process_target::read_pc)
155 (win32_process_target::write_pc): New methods.
156 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
158 (the_low_target): Update.
159 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
161 (the_low_target): Update.
163 2020-04-08 Tom Tromey <tromey@adacore.com>
165 * win32-low.c (win32_kill, get_child_debug_event): Use
166 wait_for_debug_event.
168 2020-04-08 Tom Tromey <tromey@adacore.com>
170 * win32-low.c (child_continue): Call continue_last_debug_event.
172 2020-04-08 Tom Tromey <tromey@adacore.com>
174 * win32-low.c (handle_exception): Remove.
175 (windows_nat::handle_ms_vc_exception): New function.
176 (get_child_debug_event): Add "continue_status" parameter.
178 (win32_wait): Update.
180 2020-04-08 Tom Tromey <tromey@adacore.com>
182 * win32-low.c (windows_nat::handle_load_dll): Rename from
183 handle_load_dll. No longer static.
184 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
187 2020-04-08 Tom Tromey <tromey@adacore.com>
189 * win32-low.c (handle_output_debug_string): Add parameter. Change
191 (win32_kill, get_child_debug_event): Update.
193 2020-04-08 Tom Tromey <tromey@adacore.com>
195 * win32-low.c (current_process_handle, current_process_id)
196 (main_thread_id, last_sig, current_event, siginfo_er): Move to
199 2020-04-08 Tom Tromey <tromey@adacore.com>
201 * win32-low.c (get_image_name): Remove.
202 (handle_load_dll): Update.
204 2020-04-08 Tom Tromey <tromey@adacore.com>
206 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
207 No longer static. Change parameters.
208 (child_add_thread, child_fetch_inferior_registers)
209 (child_store_inferior_registers, win32_resume)
210 (win32_get_tib_address): Update.
212 2020-04-08 Tom Tromey <tromey@adacore.com>
214 * win32-low.h (struct win32_target_ops): Use qualified names where
216 * win32-i386-low.c: Add "using namespace".
217 * win32-low.c: Add "using namespace".
218 * win32-arm-low.c: Add "using namespace".
220 2020-04-08 Tom Tromey <tromey@adacore.com>
222 * win32-low.c (delete_thread_info): Don't call CloseHandle.
224 2020-04-08 Tom Tromey <tromey@adacore.com>
226 * win32-low.c (win32_require_context, suspend_one_thread): Use
227 windows_thread_info::suspend.
228 (continue_one_thread): Use windows_thread_info::resume.
229 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
231 2020-04-08 Tom Tromey <tromey@adacore.com>
233 * win32-i386-low.c (update_debug_registers)
234 (i386_prepare_to_resume, i386_thread_added): Update.
236 2020-04-08 Tom Tromey <tromey@adacore.com>
238 * win32-low.c (child_add_thread): Use new.
239 (delete_thread_info): Use delete.
241 2020-04-08 Tom Tromey <tromey@adacore.com>
243 * win32-low.h (struct windows_thread_info): Remove.
245 2020-04-08 Tom Tromey <tromey@adacore.com>
247 * win32-low.h (struct windows_thread_info): Rename from
248 win32_thread_info. Remove typedef.
249 (struct win32_target_ops, win32_require_context): Update.
250 * win32-low.c (win32_get_thread_context)
251 (win32_set_thread_context, win32_prepare_to_resume)
252 (win32_require_context, thread_rec, child_add_thread)
253 (delete_thread_info, continue_one_thread)
254 (child_fetch_inferior_registers, child_store_inferior_registers)
255 (win32_resume, suspend_one_thread, win32_get_tib_address):
257 * win32-i386-low.c (update_debug_registers)
258 (win32_get_current_dr, i386_get_thread_context)
259 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
260 (i386_fetch_inferior_register, i386_store_inferior_register):
262 * win32-arm-low.c (arm_get_thread_context)
263 (arm_fetch_inferior_register, arm_store_inferior_register):
266 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268 * linux-low.h (struct linux_target_ops): Remove.
269 (the_low_target): Remove.
270 * linux-x86-low.cc (the_low_target): Remove.
271 * linux-aarch64-low.cc (the_low_target): Ditto.
272 * linux-arm-low.cc (the_low_target): Ditto.
273 * linux-bfin-low.cc (the_low_target): Ditto.
274 * linux-cris-low.cc (the_low_target): Ditto.
275 * linux-crisv32-low.cc (the_low_target): Ditto.
276 * linux-ia64-low.cc (the_low_target): Ditto.
277 * linux-m32r-low.cc (the_low_target): Ditto.
278 * linux-m68k-low.cc (the_low_target): Ditto.
279 * linux-mips-low.cc (the_low_target): Ditto.
280 * linux-nios2-low.cc (the_low_target): Ditto.
281 * linux-ppc-low.cc (the_low_target): Ditto.
282 * linux-riscv-low.cc (the_low_target): Ditto.
283 * linux-s390-low.cc (the_low_target): Ditto.
284 * linux-sh-low.cc (the_low_target): Ditto.
285 * linux-sparc-low.cc (the_low_target): Ditto.
286 * linux-tic6x-low.cc (the_low_target): Ditto.
287 * linux-tile-low.cc (the_low_target): Ditto.
288 * linux-xtensa-low.cc (the_low_target): Ditto.
290 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
293 linux target define the op by overriding the declaration in
294 process_stratum_target.
296 * linux-low.h (struct linux_target_ops): Remove the op.
297 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
298 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
299 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
300 (x86_get_ipa_tdesc_idx): Turn into...
301 (x86_target::get_ipa_tdesc_idx): ...this.
302 (the_low_target): Remove the op field.
303 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
304 (ppc_get_ipa_tdesc_idx): Turn into...
305 (ppc_target::get_ipa_tdesc_idx): ...this.
306 (the_low_target): Remove the op field.
307 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
308 (s390_get_ipa_tdesc_idx): Turn into...
309 (s390_target::get_ipa_tdesc_idx): ...this.
310 (the_low_target): Remove the op field.
312 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
314 Turn the 'get_syscall_trapinfo' linux target op into a method
315 of process_stratum_target.
317 * linux-low.h (struct linux_target_ops): Remove the op.
318 (class linux_process_target) <get_syscall_trapinfo>
319 <gdb_catch_this_syscall>
320 <low_supports_catch_syscall>
321 <low_get_syscall_trapinfo>: Declare.
322 * linux-low.cc (get_syscall_trapinfo): Turn into...
323 (linux_process_target::get_syscall_trapinfo): ...this.
324 (linux_process_target::low_get_syscall_trapinfo): Define.
325 (gdb_catch_this_syscall_p): Turn into...
326 (linux_process_target::gdb_catch_this_syscall): ...this.
327 (linux_process_target::low_supports_catch_syscall): Define.
329 Update the callers below.
331 (linux_process_target::wait_1)
332 (linux_process_target::supports_catch_syscall)
334 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
335 <low_get_syscall_trapinfo>: Declare.
336 (x86_target::low_supports_catch_syscall): Define.
337 (x86_get_syscall_trapinfo): Turn into...
338 (x86_target::low_get_syscall_trapinfo): ...this.
339 (the_low_target): Remove the op field.
340 * linux-aarch64-low.cc (class aarch64_target)
341 <low_supports_catch_syscall>
342 <low_get_syscall_trapinfo>: Declare.
343 (aarch64_target::low_supports_catch_syscall): Define.
344 (aarch64_get_syscall_trapinfo): Turn into...
345 (aarch64_target::low_get_syscall_trapinfo): ...this.
346 (the_low_target): Remove the op field.
347 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
348 <low_get_syscall_trapinfo>: Declare.
349 (arm_target::low_supports_catch_syscall): Define.
350 (arm_get_syscall_trapinfo): Turn into...
351 (arm_target::low_get_syscall_trapinfo): ...this.
352 (the_low_target): Remove the op field.
353 * linux-ppc-low.cc (the_low_target): Remove the op field.
354 * linux-s390-low.cc (the_low_target): Remove the op field.
356 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358 Remove the 'supports_hardware_single_step' linux target op and
359 override the process_stratum_target's op definition in
360 linux_process_target to return true.
362 * linux-low.h (struct linux_target_ops): Remove the op.
363 (class linux_process_target) <finish_step_over>
364 <maybe_hw_step>: Declare.
365 * linux-low.cc (can_hardware_single_step): Remove.
366 (maybe_hw_step): Turn into...
367 (linux_process_target::maybe_hw_step): ...this.
368 (finish_step_over): Turn into...
369 (linux_process_target::finish_step_over): ...this.
370 (linux_process_target::supports_hardware_single_step): Update
373 Update the callers below.
375 (linux_process_target::single_step)
376 (linux_process_target::resume_one_lwp_throw)
378 * linux-arm-low.cc (class arm_target)
379 <supports_hardware_single_step>: Declare.
380 (arm_supports_hardware_single_step): Turn into...
381 (arm_target::supports_hardware_single_step): ...this.
382 (the_low_target): Remove the op field.
383 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
384 (the_low_target): Remove the op field.
385 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
387 (the_low_target): Remove the op field.
388 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
389 (the_low_target): Remove the op field.
390 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
391 (the_low_target): Remove the op field.
392 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
393 (the_low_target): Remove the op field.
394 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
395 (the_low_target): Remove the op field.
396 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
397 (the_low_target): Remove the op field.
398 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
399 (the_low_target): Remove the op field.
400 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
401 (the_low_target): Remove the op field.
402 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
403 (the_low_target): Remove the op field.
404 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
405 (the_low_target): Remove the op field.
406 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
408 (the_low_target): Remove the op field.
410 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412 Turn the 'supports_range_stepping' linux target op into a method
413 of linux_process_target.
415 * linux-low.h (struct linux_target_ops): Remove the op.
416 (class linux_process_target) <low_supports_range_stepping>: Declare.
417 * linux-low.cc (linux_process_target::low_supports_range_stepping):
419 (linux_process_target::supports_range_stepping): Update the call
421 * linux-x86-low.cc (class x86_target)
422 <low_supports_range_stepping>: Declare.
423 (x86_supports_range_stepping): Turn into...
424 (x86_target::low_supports_range_stepping): ...this.
425 (the_low_target): Remove the op field.
426 * linux-aarch64-low.cc (class aarch64_target)
427 <low_supports_range_stepping>: Declare.
428 (aarch64_supports_range_stepping): Turn into...
429 (aarch64_target::low_supports_range_stepping): ...this.
430 (the_low_target): Remove the op field.
431 * linux-arm-low.cc (the_low_target): Remove the op field.
432 * linux-bfin-low.cc (the_low_target): Ditto.
433 * linux-crisv32-low.cc (the_low_target): Ditto.
434 * linux-m32r-low.cc (the_low_target): Ditto.
435 * linux-m68k-low.cc (the_low_target): Ditto.
436 * linux-ppc-low.cc (the_low_target): Ditto.
437 * linux-s390-low.cc (the_low_target): Ditto.
438 * linux-sh-low.cc (the_low_target): Ditto.
439 * linux-tic6x-low.cc (the_low_target): Ditto.
440 * linux-tile-low.cc (the_low_target): Ditto.
441 * linux-xtensa-low.cc (the_low_target): Ditto.
443 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
445 Remove the 'emit_ops' linux target ops and let the concrete
446 linux target define the op by overriding the declaration of
447 process_stratum_target.
449 * linux-low.h (struct linux_target_ops): Remove the op.
450 (class linux_process_target) <emit_ops>: Remove.
451 * linux-low.cc (linux_process_target::emit_ops): Remove.
452 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
453 (x86_emit_ops): Turn into...
454 (x86_target::emit_ops): ...this.
455 (the_low_target): Remove the op field.
456 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
457 (aarch64_emit_ops): Turn into...
458 (aarch64_target::emit_ops): ...this.
459 (the_low_target): Remove the op field.
460 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
461 (ppc_emit_ops): Turn into...
462 (ppc_target::emit_ops): ...this.
463 (the_low_target): Remove the op field.
464 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
465 (s390_emit_ops): Turn into...
466 (s390_target::emit_ops): ...this.
467 (the_low_target): Remove the op field.
468 * linux-arm-low.cc (the_low_target): Remove the op field.
469 * linux-bfin-low.cc (the_low_target): Ditto.
470 * linux-crisv32-low.cc (the_low_target): Ditto.
471 * linux-m32r-low.cc (the_low_target): Ditto.
472 * linux-m68k-low.cc (the_low_target): Ditto.
473 * linux-sh-low.cc (the_low_target): Ditto.
474 * linux-tic6x-low.cc (the_low_target): Ditto.
475 * linux-tile-low.cc (the_low_target): Ditto.
476 * linux-xtensa-low.cc (the_low_target): Ditto.
478 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
480 Remove the 'install_fast_tracepoint_jump_pad' and
481 'get_min_fast_tracepoint_insn_len' linux target ops to let the
482 concrete linux target define the ops by overriding the declarations
483 of process_stratum_target.
485 * linux-low.h (struct linux_target_ops): Remove the ops.
486 (class linux_process_target) <supports_fast_tracepoints>
487 <install_fast_tracepoint_jump_pad>
488 <get_min_fast_tracepoint_insn_len>: Remove.
489 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
490 (linux_process_target::install_fast_tracepoint_jump_pad)
491 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
492 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
493 <install_fast_tracepoint_jump_pad>
494 <get_min_fast_tracepoint_insn_len>: Declare.
495 (x86_target::supports_fast_tracepoints): Define.
496 (x86_install_fast_tracepoint_jump_pad): Turn into...
497 (x86_target::install_fast_tracepoint_jump_pad): ...this.
498 (x86_get_min_fast_tracepoint_insn_len): Turn into...
499 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
500 (the_low_target): Remove the op fields.
501 * linux-aarch64-low.cc (class aarch64_target)
502 <supports_fast_tracepoints>
503 <install_fast_tracepoint_jump_pad>
504 <get_min_fast_tracepoint_insn_len>: Declare.
505 (aarch64_target::supports_fast_tracepoints): Define.
506 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
507 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
508 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
509 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
510 (the_low_target): Remove the op fields.
511 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
512 <install_fast_tracepoint_jump_pad>
513 <get_min_fast_tracepoint_insn_len>: Declare.
514 (ppc_target::supports_fast_tracepoints): Define.
515 (ppc_install_fast_tracepoint_jump_pad): Turn into...
516 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
517 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
518 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
519 (the_low_target): Remove the op fields.
520 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
521 <install_fast_tracepoint_jump_pad>
522 <get_min_fast_tracepoint_insn_len>: Declare.
523 (s390_target::supports_fast_tracepoints): Define.
524 (s390_install_fast_tracepoint_jump_pad): Turn into...
525 (s390_target::install_fast_tracepoint_jump_pad): ...this.
526 (s390_get_min_fast_tracepoint_insn_len): Turn into...
527 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
528 (the_low_target): Remove the op fields.
529 * linux-arm-low.cc (the_low_target): Remove the op fields.
530 * linux-bfin-low.cc (the_low_target): Ditto.
531 * linux-crisv32-low.cc (the_low_target): Ditto.
532 * linux-m32r-low.cc (the_low_target): Ditto.
533 * linux-m68k-low.cc (the_low_target): Ditto.
534 * linux-sh-low.cc (the_low_target): Ditto.
535 * linux-tic6x-low.cc (the_low_target): Ditto.
536 * linux-tile-low.cc (the_low_target): Ditto.
537 * linux-xtensa-low.cc (the_low_target): Ditto.
539 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541 Turn the 'get_thread_area' linux target op into a method of
542 process_stratum_target.
544 * linux-low.h (struct linux_target_ops): Remove the op.
545 (class linux_process_target) <stuck_in_jump_pad>
546 <linux_fast_tracepoint_collecting>
547 <low_get_thread_area>: Declare.
548 * linux-low.cc (supports_fast_tracepoints): Remove.
549 (linux_fast_tracepoint_collecting): Turn into...
550 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
551 (linux_process_target::low_get_thread_area): Define.
552 (stuck_in_jump_pad_callback): Turn into...
553 (linux_process_target::stuck_in_jump_pad): ...this.
555 Update the caller below.
557 (linux_process_target::stabilize_threads)
559 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
561 (x86_get_thread_area): Turn into...
562 (x86_target::low_get_thread_area): ...this.
563 (the_low_target): Remove the op field.
564 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
566 (aarch64_get_thread_area): Turn into...
567 (aarch64_target::low_get_thread_area): ...this.
568 (the_low_target): Remove the op field.
569 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
571 (ppc_get_thread_area): Turn into...
572 (ppc_target::low_get_thread_area): ...this.
573 (the_low_target): Remove the op field.
574 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
576 (s390_get_thread_area): Turn into...
577 (s390_target::low_get_thread_area): ...this.
578 (the_low_target): Remove the op field.
579 * linux-arm-low.cc (the_low_target): Remove the op field.
580 * linux-bfin-low.cc (the_low_target): Ditto.
581 * linux-crisv32-low.cc (the_low_target): Ditto.
582 * linux-m32r-low.cc (the_low_target): Ditto.
583 * linux-m68k-low.cc (the_low_target): Ditto.
584 * linux-sh-low.cc (the_low_target): Ditto.
585 * linux-tic6x-low.cc (the_low_target): Ditto.
586 * linux-tile-low.cc (the_low_target): Ditto.
587 * linux-xtensa-low.cc (the_low_target): Ditto.
589 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
591 Remote the 'supports_tracepoints' linux target op and let the
592 concrete linux target define it by overriding the op declared in
593 process_stratum_target.
595 * linux-low.h (struct linux_target_ops): Remove the op.
596 (class linux_process_target) <supports_tracepoints>: Remove.
597 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
598 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
600 (x86_supports_tracepoints): Turn into...
601 (x86_target::supports_tracepoints): ...this.
602 (the_low_target): Remove the op field.
603 * linux-aarch64-low.cc (class aarch64_target)
604 <supports_tracepoints>: Declare.
605 (aarch64_supports_tracepoints): Turn into...
606 (aarch64_target::supports_tracepoints): ...this.
607 (the_low_target): Remove the op field.
608 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
610 (ppc_supports_tracepoints): Turn into...
611 (ppc_target::supports_tracepoints): ...this.
612 (the_low_target): Remove the op field.
613 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
615 (s390_supports_tracepoints): Turn into...
616 (s390_target::supports_tracepoints): ...this.
617 (the_low_target): Remove the op field.
618 * linux-arm-low.cc (the_low_target): Remove the op field.
619 * linux-bfin-low.cc (the_low_target): Ditto.
620 * linux-crisv32-low.cc (the_low_target): Ditto.
621 * linux-m32r-low.cc (the_low_target): Ditto.
622 * linux-m68k-low.cc (the_low_target): Ditto.
623 * linux-sh-low.cc (the_low_target): Ditto.
624 * linux-tic6x-low.cc (the_low_target): Ditto.
625 * linux-tile-low.cc (the_low_target): Ditto.
626 * linux-xtensa-low.cc (the_low_target): Ditto.
628 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630 Remove the 'process_qsupported' linux target op and let a concrete
631 linux target define the op by overriding the op declaration in
632 process_stratum_target.
634 * linux-low.h (struct linux_target_ops): Remove the op.
635 (class linux_process_target) <process_qsupported>: Remove.
636 * linux-low.cc (linux_process_target::process_qsupported): Remove.
637 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
638 (x86_linux_process_qsupported): Turn into...
639 (x86_target::process_qsupported): ...this.
640 (the_low_target): Remove the op field.
641 * linux-aarch64-low.cc (the_low_target): Remove the op
643 * linux-arm-low.cc (the_low_target): Ditto.
644 * linux-bfin-low.cc (the_low_target): Ditto.
645 * linux-crisv32-low.cc (the_low_target): Ditto.
646 * linux-m32r-low.cc (the_low_target): Ditto.
647 * linux-m68k-low.cc (the_low_target): Ditto.
648 * linux-ppc-low.cc (the_low_target): Ditto.
649 * linux-s390-low.cc (the_low_target): Ditto.
650 * linux-sh-low.cc (the_low_target): Ditto.
651 * linux-tic6x-low.cc (the_low_target): Ditto.
652 * linux-tile-low.cc (the_low_target): Ditto.
653 * linux-xtensa-low.cc (the_low_target): Ditto.
655 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
657 Turn the 'prepare_to_resume' linux target op into a method of
658 linux_process_target.
660 * linux-low.h (struct linux_target_ops): Remove the op.
661 (class linux_process_target) <low_prepare_to_resume>: Declare.
662 * linux-low.cc (linux_process_target::low_prepare_to_resume):
665 Update the callers below:
667 (linux_process_target::resume_one_lwp_throw)
668 (linux_process_target::low_prepare_to_resume)
670 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
672 (x86_target::low_prepare_to_resume): Define.
673 (the_low_target): Remove the op field.
674 * linux-aarch64-low.cc (class aarch64_target)
675 <low_prepare_to_resume>: Declare.
676 (aarch64_target::low_prepare_to_resume): Define.
677 (the_low_target): Remove the op field.
678 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
680 (arm_prepare_to_resume): Turn into...
681 (arm_target::low_prepare_to_resume): ...this.
682 (the_low_target): Remove the op field.
683 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
685 (mips_linux_prepare_to_resume): Turn into...
686 (mips_target::low_prepare_to_resume): ...this.
687 (the_low_target): Remove the op field.
688 * linux-bfin-low.cc (the_low_target): Remove the op field.
689 * linux-crisv32-low.cc (the_low_target): Ditto.
690 * linux-m32r-low.cc (the_low_target): Ditto.
691 * linux-m68k-low.cc (the_low_target): Ditto.
692 * linux-ppc-low.cc (the_low_target): Ditto.
693 * linux-s390-low.cc (the_low_target): Ditto.
694 * linux-sh-low.cc (the_low_target): Ditto.
695 * linux-tic6x-low.cc (the_low_target): Ditto.
696 * linux-tile-low.cc (the_low_target): Ditto.
697 * linux-xtensa-low.cc (the_low_target): Ditto.
699 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
701 Turn the 'new_process', 'delete_process', 'new_thread',
702 'delete_thread', and 'new_fork' linux target ops into methods
703 of linux_process_target.
705 * linux-low.h (struct linux_target_ops): Remove the ops.
706 (class linux_process_target) <add_linux_process>
711 <check_zombie_leaders>
717 <low_new_fork>: Declare.
718 * linux-low.cc (delete_lwp): Turn into...
719 (linux_process_target::delete_lwp): ...this.
720 (linux_process_target::low_delete_thread): Define.
721 (linux_add_process): Turn into...
722 (linux_process_target::add_linux_process): ...this.
723 (linux_process_target::low_new_process): Define.
724 (linux_process_target::low_delete_process): Define.
725 (linux_process_target::low_new_fork): Define.
726 (add_lwp): Turn into...
727 (linux_process_target::add_lwp): ...this.
728 (linux_process_target::low_new_thread): Define.
729 (linux_attach_lwp): Turn into...
730 (linux_process_target::attach_lwp): ...this.
731 (linux_detach_one_lwp): Turn into...
732 (linux_process_target::detach_one_lwp): ...this.
733 (linux_detach_lwp_callback): Remove and inline...
734 (linux_process_target::detach): ...here.
735 (check_zombie_leaders): Turn into...
736 (linux_process_target::check_zombie_leaders): ...this.
737 (filter_exit_event): Turn into...
738 (linux_process_target::filter_exit_event): ...this.
740 Update the callers below.
742 (linux_process_target::handle_extended_wait)
743 (linux_process_target::create_inferior)
744 (attach_proc_task_lwp_callback)
745 (linux_process_target::attach)
746 (linux_process_target::detach)
747 (linux_process_target::mourn)
748 * thread-db.cc (attach_thread)
750 * linux-x86-low.cc (class x86_target) <low_new_process>
754 <low_new_fork>: Declare.
755 (x86_linux_new_process): Turn into...
756 (x86_target::low_new_process): ...this.
757 (x86_linux_delete_process): Turn into...
758 (x86_target::low_delete_process): ...this.
759 (x86_target::low_new_thread): Define.
760 (x86_target::low_delete_thread): Define.
761 (x86_linux_new_fork): Turn into...
762 (x86_target::low_new_fork): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
768 <low_new_fork>: Declare.
769 (aarch64_linux_new_process): Turn into...
770 (aarch64_target::low_new_process): ...this.
771 (aarch64_linux_delete_process): Turn into...
772 (aarch64_target::low_delete_process): ...this.
773 (aarch64_target::low_new_thread): Define.
774 (aarch64_target::low_delete_thread): Define.
775 (aarch64_linux_new_fork): Turn into...
776 (aarch64_target::low_new_fork): ...this.
777 (the_low_target): Remove the op fields.
778 * linux-arm-low.cc (class arm_target) <low_new_process>
782 <low_new_fork>: Declare.
783 (arm_new_process): Turn into...
784 (arm_target::low_new_process): ...this.
785 (arm_delete_process): Turn into...
786 (arm_target::low_delete_process): ...this.
787 (arm_new_thread): Turn into...
788 (arm_target::low_new_thread): ...this.
789 (arm_delete_thread): Turn into...
790 (arm_target::low_delete_thread): ...this.
791 (arm_new_fork): Turn into...
792 (arm_target::low_new_fork): ...this.
793 (the_low_target): Remove the op fields.
794 * linux-mips-low.cc (class mips_target) <low_new_process>
798 <low_new_fork>: Declare.
799 (mips_linux_new_process): Turn into...
800 (mips_target::low_new_process): ...this.
801 (mips_linux_delete_process): Turn into...
802 (mips_target::low_delete_process): ...this.
803 (mips_linux_new_thread): Turn into...
804 (mips_target::low_new_thread): ...this.
805 (mips_linux_delete_thread): Turn into...
806 (mips_target::low_delete_thread): ...this.
807 (mips_linux_new_fork): Turn into...
808 (mips_target::low_new_fork): ...this.
809 (the_low_target): Remove the op fields.
810 * linux-bfin-low.cc (the_low_target): Remove the op fields.
811 * linux-crisv32-low.cc (the_low_target): Ditto.
812 * linux-m32r-low.cc (the_low_target): Ditto.
813 * linux-m68k-low.cc (the_low_target): Ditto.
814 * linux-ppc-low.cc (the_low_target): Ditto.
815 * linux-s390-low.cc (the_low_target): Ditto.
816 * linux-sh-low.cc (the_low_target): Ditto.
817 * linux-tic6x-low.cc (the_low_target): Ditto.
818 * linux-tile-low.cc (the_low_target): Ditto.
819 * linux-xtensa-low.cc (the_low_target): Ditto.
821 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
823 Turn the 'siginfo_fixup' linux target op into a method of
824 linux_process_target.
826 * linux-low.h (struct linux_target_ops): Remove the op.
827 (class linux_process_target) <siginfo_fixup>
828 <low_siginfo_fixup>: Declare.
829 * linux-low.cc (siginfo_fixup): Turn into...
830 (linux_process_target::siginfo_fixup): ...this.
831 (linux_process_target::low_siginfo_fixup): Define.
832 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
833 (x86_siginfo_fixup): Turn into...
834 (x86_target::low_siginfo_fixup): ...this.
835 (the_low_target): Remove the op field.
836 * linux-aarch64-low.cc (class aarch64_target):
837 <low_siginfo_fixup>: Declare.
838 (aarch64_linux_siginfo_fixup): Turn into...
839 (aarch64_target::low_siginfo_fixup): ...this.
840 (the_low_target): Remove the op field.
841 * linux-arm-low.cc (the_low_target): Remove the op field.
842 * linux-bfin-low.cc (the_low_target): Ditto.
843 * linux-crisv32-low.cc (the_low_target): Ditto.
844 * linux-m32r-low.cc (the_low_target): Ditto.
845 * linux-m68k-low.cc (the_low_target): Ditto.
846 * linux-mips-low.cc (the_low_target): Ditto.
847 * linux-ppc-low.cc (the_low_target): Ditto.
848 * linux-s390-low.cc (the_low_target): Ditto.
849 * linux-sh-low.cc (the_low_target): Ditto.
850 * linux-tic6x-low.cc (the_low_target): Ditto.
851 * linux-tile-low.cc (the_low_target): Ditto.
852 * linux-xtensa-low.cc (the_low_target): Ditto.
854 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
856 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
857 linux target ops into methods of linux_process_target.
859 * linux-low.h (struct linux_target_ops): Remove the ops.
860 (class linux_process_target) <low_collect_ptrace_register>
861 <low_store_ptrace_register>: Declare.
862 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
863 (linux_process_target::low_supply_ptrace_register): Define.
865 Update the callers below.
867 (linux_process_target::fetch_register)
868 (linux_process_target::store_register)
870 * linux-x86-low.cc (the_low_target): Remove the op fields.
871 * linux-aarch64-low.cc (the_low_target): Ditto.
872 * linux-arm-low.cc (the_low_target): Ditto.
873 * linux-bfin-low.cc (the_low_target): Ditto.
874 * linux-crisv32-low.cc (the_low_target): Ditto.
875 * linux-m32r-low.cc (the_low_target): Ditto.
876 * linux-m68k-low.cc (the_low_target): Ditto.
877 * linux-sh-low.cc (the_low_target): Ditto.
878 * linux-sparc-low.cc (the_low_target): Ditto.
879 * linux-tic6x-low.cc (the_low_target): Ditto.
880 * linux-tile-low.cc (the_low_target): Ditto.
881 * linux-xtensa-low.cc (the_low_target): Ditto.
882 * linux-mips-low.cc (class mips_target)
883 <low_collect_ptrace_register>
884 <low_supply_ptrace_register>: Declare.
885 (mips_collect_ptrace_register): Turn into ...
886 (mips_target::low_collect_ptrace_register): ...this.
887 (mips_supply_ptrace_register): Turn into...
888 (mips_target::low_supply_ptrace_register): ...this.
889 (the_low_target): Remove the op fields.
890 * linux-ppc-low.cc (class ppc_target)
891 <low_collect_ptrace_register>
892 <low_supply_ptrace_register>: Declare.
893 (ppc_collect_ptrace_register): Turn into ...
894 (ppc_target::low_collect_ptrace_register): ...this.
895 (ppc_supply_ptrace_register): Turn into ...
896 (ppc_target::low_supply_ptrace_register): ...this.
897 (ppc_fill_gregset): Update for the calls to
898 low_collect_ptrace_register.
899 (the_low_target): Remove the op fields.
900 * linux-s390-low.cc (class s390_target)
901 <low_collect_ptrace_register>
902 <low_supply_ptrace_register>: Declare.
903 (s390_collect_ptrace_register): Turn into ...
904 (s390_target::low_collect_ptrace_register): ...this.
905 (s390_supply_ptrace_register): Turn into ...
906 (s390_target::low_supply_ptrace_register): ...this.
907 (s390_fill_gregset): Update for the calls to
908 low_collect_ptrace_register.
909 (the_low_target): Remove the op fields.
911 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
914 target ops into methods of linux_process_target.
916 * linux-low.h (struct linux_target_ops): Remove the ops.
917 (class linux_process_target) <check_stopped_by_watchpoint>
918 <low_stopped_by_watchpoint>
919 <low_stopped_data_address>: Declare.
920 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
921 (linux_process_target::check_stopped_by_watchpoint): ...this.
922 (linux_process_target::low_stopped_by_watchpoint): Define.
923 (linux_process_target::low_stopped_data_address): Define.
924 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
925 <low_stopped_data_address>: Declare.
926 (x86_stopped_by_watchpoint): Turn into...
927 (x86_target::low_stopped_by_watchpoint): ...this.
928 (x86_stopped_data_address): Turn into...
929 (x86_target::low_stopped_data_address): ...this.
930 (the_low_target): Remove the op fields.
931 * linux-aarch64-low.cc (class aarch64_target)
932 <low_stopped_by_watchpoint>
933 <low_stopped_data_address>: Declare.
934 (aarch64_stopped_by_watchpoint): Turn into...
935 (aarch64_target::low_stopped_by_watchpoint): ...this.
936 (aarch64_stopped_data_address): Turn into...
937 (aarch64_target::low_stopped_data_address): ...this.
938 (the_low_target): Remove the op fields.
939 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
940 <low_stopped_data_address>: Declare.
941 (arm_stopped_by_watchpoint): Turn into...
942 (arm_target::low_stopped_by_watchpoint): ...this.
943 (arm_stopped_data_address): Turn into...
944 (arm_target::low_stopped_data_address): ...this.
945 (the_low_target): Remove the op fields.
946 * linux-crisv32-low.cc (class crisv32_target)
947 <low_stopped_by_watchpoint>
948 <low_stopped_data_address>: Declare.
949 (cris_stopped_by_watchpoint): Turn into...
950 (crisv32_target::low_stopped_by_watchpoint): ...this.
951 (cris_stopped_data_address): Turn into...
952 (crisv32_target::low_stopped_data_address): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
955 <low_stopped_data_address>: Declare.
956 (mips_stopped_by_watchpoint): Turn into...
957 (mips_target::low_stopped_by_watchpoint): ...this.
958 (mips_stopped_data_address): Turn into...
959 (mips_target::low_stopped_data_address): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-bfin-low.cc (the_low_target): Remove the op fields.
962 * linux-m32r-low.cc (the_low_target): Ditto.
963 * linux-m68k-low.cc (the_low_target): Ditto.
964 * linux-ppc-low.cc (the_low_target): Ditto.
965 * linux-s390-low.cc (the_low_target): Ditto.
966 * linux-sh-low.cc (the_low_target): Ditto.
967 * linux-sparc-low.cc (the_low_target): Ditto.
968 * linux-tic6x-low.cc (the_low_target): Ditto.
969 * linux-tile-low.cc (the_low_target): Ditto.
970 * linux-xtensa-low.cc (the_low_target): Ditto.
972 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
974 Turn the 'insert_point' and 'remove_point' linux target ops into
975 methods of linux_process_target.
977 * linux-low.h (struct linux_target_ops): Remove the ops.
978 (class linux_process_target) <low_insert_point>
979 <low_remove_point>: Declare.
980 * linux-low.cc (linux_process_target::low_insert_point)
981 (linux_process_target::low_remove_point): Define.
982 (linux_process_target::insert_point)
983 (linux_process_target::remove_point): Update for calls to
984 low_insert_point and low_remove_point.
985 * linux-x86-low.cc (class x86_target) <low_insert_point>
986 <low_remove_point>: Declare.
987 (x86_insert_point): Turn into...
988 (x86_target::low_insert_point): ...this.
989 (x86_remove_point): Turn into...
990 (x86_target::low_remove_point): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
993 <low_remove_point>: Declare.
994 (aarch64_insert_point): Turn into...
995 (aarch64_target::low_insert_point): ...this.
996 (aarch64_remove_point): Turn into...
997 (aarch64_target::low_remove_point): ...this.
998 (the_low_target): Remove the op fields.
999 * linux-arm-low.cc (class arm_target) <low_insert_point>
1000 <low_remove_point>: Declare.
1001 (arm_insert_point): Turn into...
1002 (arm_target::low_insert_point): ...this.
1003 (arm_remove_point): Turn into...
1004 (arm_target::low_remove_point): ...this.
1005 (the_low_target): Remove the op fields.
1006 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1007 <low_remove_point>: Declare.
1008 (crisv32_insert_point): Turn into...
1009 (crisv32_target::low_insert_point): ...this.
1010 (crisv32_remove_point): Turn into...
1011 (crisv32_target::low_remove_point): ...this.
1012 (the_low_target): Remove the op fields.
1013 * linux-mips-low.cc (class mips_target) <low_insert_point>
1014 <low_remove_point>: Declare.
1015 (mips_insert_point): Turn into...
1016 (mips_target::low_insert_point): ...this.
1017 (mips_remove_point): Turn into...
1018 (mips_target::low_remove_point): ...this.
1019 (the_low_target): Remove the op fields.
1020 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1021 <low_remove_point>: Declare.
1022 (ppc_insert_point): Turn into...
1023 (ppc_target::low_insert_point): ...this.
1024 (ppc_remove_point): Turn into...
1025 (ppc_target::low_remove_point): ...this.
1026 (the_low_target): Remove the op fields.
1027 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1028 * linux-m32r-low.cc (the_low_target): Ditto.
1029 * linux-m68k-low.cc (the_low_target): Ditto.
1030 * linux-s390-low.cc (the_low_target): Ditto.
1031 * linux-sh-low.cc (the_low_target): Ditto.
1032 * linux-sparc-low.cc (the_low_target): Ditto.
1033 * linux-tic6x-low.cc (the_low_target): Ditto.
1034 * linux-tile-low.cc (the_low_target): Ditto.
1035 * linux-xtensa-low.cc (the_low_target): Ditto.
1037 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1039 Remove the 'supports_z_point_type' linux target op and let the
1040 concrete linux target define it by overriding the op declared in
1041 process_stratum_target.
1043 * linux-low.cc (linux_process_target::supports_z_point_type):
1045 * linux-low.h (struct linux_target_ops): Remove the op.
1046 (class linux_process_target) <supports_z_point_type>: Remove.
1047 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1049 (x86_supports_z_point_type): Turn into...
1050 (x86_target::supports_z_point_type): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-aarch64-low.cc (class aarch64_target)
1053 <supports_z_point_type>: Declare.
1054 (aarch64_supports_z_point_type): Turn into...
1055 (aarch64_target::supports_z_point_type): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1059 (arm_supports_z_point_type): Turn into...
1060 (arm_target::supports_z_point_type): ...this.
1061 (the_low_target): Remove the op field.
1062 * linux-crisv32-low.cc (class crisv32_target)
1063 <supports_z_point_type>: Declare.
1064 (cris_supports_z_point_type): Turn into...
1065 (crisv32_target::supports_z_point_type): ...this.
1066 (the_low_target): Remove the op field.
1067 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1069 (mips_supports_z_point_type): Turn into...
1070 (mips_target::supports_z_point_type): ...this.
1071 (the_low_target): Remove the op field.
1072 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1074 (ppc_supports_z_point_type): Turn into...
1075 (ppc_target::supports_z_point_type): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1079 (s390_supports_z_point_type): Turn into...
1080 (s390_target::supports_z_point_type): ...this.
1081 (the_low_target): Remove the op field.
1082 * linux-bfin-low.cc (the_low_target): Remove the op field.
1083 * linux-m32r-low.cc (the_low_target): Ditto.
1084 * linux-m68k-low.cc (the_low_target): Ditto.
1085 * linux-sh-low.cc (the_low_target): Ditto.
1086 * linux-sparc-low.cc (the_low_target): Ditto.
1087 * linux-tic6x-low.cc (the_low_target): Ditto.
1088 * linux-tile-low.cc (the_low_target): Ditto.
1089 * linux-xtensa-low.cc (the_low_target): Ditto.
1091 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1093 Turn the 'breakpoint_at' linux target op into a method of
1094 linux_process_target.
1096 * linux-low.h (struct linux_target_ops): Remove the op.
1097 (class linux_process_target) <low_breakpoint_at>: Declare.
1099 Update the callers below:
1101 * linux-low.cc (linux_process_target::save_stop_reason)
1102 (linux_process_target::thread_still_has_status_pending)
1103 (linux_process_target::wait_1)
1105 * linux-x86-low.cc (class x86_target)
1106 <low_breakpoint_at>: Declare.
1107 (x86_breakpoint_at): Turn into...
1108 (x86_target::low_breakpoint_at): ...this.
1109 (the_low_target): Remove the op field.
1110 * linux-aarch64-low.cc (class aarch64_target)
1111 <low_breakpoint_at>: Declare.
1112 (aarch64_breakpoint_at): Turn into...
1113 (aarch64_target::low_breakpoint_at): ...this.
1114 (the_low_target): Remove the op field.
1115 * linux-arm-low.cc (class arm_target)
1116 <low_breakpoint_at>: Declare.
1117 (arm_target::low_breakpoint_at): Define.
1118 (the_low_target): Remove the op field.
1119 * linux-bfin-low.cc (class bfin_target)
1120 <low_breakpoint_at>: Declare.
1121 (bfin_breakpoint_at): Turn into...
1122 (bfin_target::low_breakpoint_at): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-cris-low.cc (class cris_target)
1125 <low_breakpoint_at>: Declare.
1126 (cris_breakpoint_at): Turn into...
1127 (cris_target::low_breakpoint_at): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-crisv32-low.cc (class crisv32_target)
1130 <low_breakpoint_at>: Declare.
1131 (crisv32_breakpoint_at): Turn into...
1132 (crisv32_target::low_breakpoint_at): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-ia64-low.cc (class ia64_target)
1135 <low_breakpoint_at>: Declare.
1136 (ia64_target::low_breakpoint_at): Define.
1137 * linux-m32r-low.cc (class m32r_target)
1138 <low_breakpoint_at>: Declare.
1139 (m32r_breakpoint_at): Turn into...
1140 (m32r_target::low_breakpoint_at): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-m68k-low.cc (class m68k_target)
1143 <low_breakpoint_at>: Declare.
1144 (m68k_breakpoint_at): Turn into...
1145 (m68k_target::low_breakpoint_at): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-mips-low.cc (class mips_target)
1148 <low_breakpoint_at>: Declare.
1149 (mips_breakpoint_at): Turn into...
1150 (mips_target::low_breakpoint_at): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-nios2-low.cc (class nios2_target)
1153 <low_breakpoint_at>: Declare.
1154 (nios2_breakpoint_at): Turn into...
1155 (nios2_target::low_breakpoint_at): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-ppc-low.cc (class ppc_target)
1158 <low_breakpoint_at>: Declare.
1159 (ppc_breakpoint_at): Turn into...
1160 (ppc_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-riscv-low.cc (class riscv_target)
1163 <low_breakpoint_at>: Declare.
1164 (riscv_breakpoint_at): Turn into...
1165 (riscv_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-s390-low.cc (class s390_target)
1168 <low_breakpoint_at>: Declare.
1169 (s390_breakpoint_at): Turn into...
1170 (s390_target::low_breakpoint_at): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-sh-low.cc (class sh_target)
1173 <low_breakpoint_at>: Declare.
1174 (sh_breakpoint_at): Turn into...
1175 (sh_target::low_breakpoint_at): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-sparc-low.cc (class sparc_target)
1178 <low_breakpoint_at>: Declare.
1179 (sparc_breakpoint_at): Turn into...
1180 (sparc_target::low_breakpoint_at): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-tic6x-low.cc (class tic6x_target)
1183 <low_breakpoint_at>: Declare.
1184 (tic6x_breakpoint_at): Turn into...
1185 (tic6x_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-tile-low.cc (class tile_target)
1188 <low_breakpoint_at>: Declare.
1189 (tile_breakpoint_at): Turn into...
1190 (tile_target::low_breakpoint_at): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-xtensa-low.cc (class xtensa_target)
1193 <low_breakpoint_at>: Declare.
1194 (xtensa_breakpoint_at): Turn into...
1195 (xtensa_target::low_breakpoint_at): ...this.
1196 (the_low_target): Remove the op field.
1198 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1200 Turn the 'decr_pc_after_break' linux_target_ops field into
1201 a method of linux_process_target.
1203 * linux-low.h (struct linux_target_ops)
1204 <decr_pc_after_break>: Remove.
1205 (class linux_process_target) <low_decr_pc_after_break>: New method
1207 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1208 New method implementation.
1210 Update the users below.
1212 (linux_process_target::save_stop_reason)
1213 (linux_process_target::wait_1)
1214 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1216 (x86_target::low_decr_pc_after_break): New method implementation.
1217 (the_low_target): Remove the field.
1218 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1220 (bfin_target::low_decr_pc_after_break): New method implementation.
1221 (the_low_target): Remove the field.
1222 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1224 (m68k_target::low_decr_pc_after_break): New method implementation.
1225 (the_low_target): Remove the field.
1226 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1228 (s390_target::low_decr_pc_after_break): New method implementation.
1229 (the_low_target): Remove the field.
1230 * linux-aarch64-low.cc (the_low_target): Remove the field.
1231 * linux-arm-low.cc (the_low_target): Remove the field.
1232 * linux-cris-low.cc (the_low_target): Remove the field.
1233 * linux-crisv32-low.cc (the_low_target): Remove the field.
1234 * linux-m32r-low.cc (the_low_target): Remove the field.
1235 * linux-mips-low.cc (the_low_target): Remove the field.
1236 * linux-nios2-low.cc (the_low_target): Remove the field.
1237 * linux-ppc-low.cc (the_low_target): Remove the field.
1238 * linux-riscv-low.cc (the_low_target): Remove the field.
1239 * linux-sh-low.cc (the_low_target): Remove the field.
1240 * linux-sparc-low.cc (the_low_target): Remove the field.
1241 * linux-tic6x-low.cc (the_low_target): Remove the field.
1242 * linux-tile-low.cc (the_low_target): Remove the field.
1243 * linux-xtensa-low.cc (the_low_target): Remove the field.
1245 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247 Remove the 'supports_software_single_step' linux target op and let
1248 the concrete linux target define it by overriding the op in
1249 process_stratum_target.
1250 Turn the 'get_next_pcs' linux target op into a method of
1251 linux_process_target.
1253 * linux-low.h (struct linux_target_ops): Remove the ops.
1254 (class linux_process_target) <supports_software_single_step>:
1256 <low_get_next_pcs>: Declare.
1257 * linux-low.cc (can_software_single_step): Remove.
1258 (linux_process_target::low_get_next_pcs): Define.
1259 (linux_process_target::supports_software_single_step): Remove.
1261 Update the callers below.
1263 (linux_process_target::handle_extended_wait)
1264 (linux_process_target::wait_1)
1265 (linux_process_target::install_software_single_step_breakpoints)
1266 (linux_process_target::single_step)
1267 (linux_process_target::thread_needs_step_over)
1268 (linux_process_target::proceed_one_lwp)
1269 (linux_process_target::supports_range_stepping)
1271 * linux-x86-low.cc (the_low_target): Remove the op field.
1272 * linux-aarch64-low.cc (the_low_target): Ditto.
1273 * linux-bfin-low.cc (the_low_target): Ditto.
1274 * linux-cris-low.cc (the_low_target): Ditto.
1275 * linux-crisv32-low.cc (the_low_target): Ditto.
1276 * linux-m32r-low.cc (the_low_target): Ditto.
1277 * linux-m68k-low.cc (the_low_target): Ditto.
1278 * linux-mips-low.cc (the_low_target): Ditto.
1279 * linux-nios2-low.cc (the_low_target): Ditto.
1280 * linux-ppc-low.cc (the_low_target): Ditto.
1281 * linux-riscv-low.cc (the_low_target): Ditto.
1282 * linux-s390-low.cc (the_low_target): Ditto.
1283 * linux-sh-low.cc (the_low_target): Ditto.
1284 * linux-sparc-low.cc (the_low_target): Ditto.
1285 * linux-tic6x-low.cc (the_low_target): Ditto.
1286 * linux-tile-low.cc (the_low_target): Ditto.
1287 * linux-xtensa-low.cc (the_low_target): Ditto.
1288 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1289 <supports_software_single_step>: Declare.
1290 (arm_target::supports_software_single_step): Define.
1291 (arm_gdbserver_get_next_pcs): Turn into...
1292 (arm_target::low_get_next_pcs): ...this.
1293 (the_low_target): Remove the op field.
1295 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1297 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1298 the concrete linux target define it by overriding the op
1299 in process_stratum_target.
1301 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1303 * linux-low.h (struct linux_target_ops): Remove the op.
1304 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1305 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1307 (x86_sw_breakpoint_from_kind): Turn into...
1308 (x86_target::sw_breakpoint_from_kind): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-aarch64-low.cc (class aarch64_target)
1311 <sw_breakpoint_from_kind>: Declare.
1312 (aarch64_sw_breakpoint_from_kind): Turn into...
1313 (aarch64_target::sw_breakpoint_from_kind): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1317 (arm_target::sw_breakpoint_from_kind): Define.
1318 (the_low_target): Remove the op field.
1319 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1321 (bfin_sw_breakpoint_from_kind): Turn into...
1322 (bfin_target::sw_breakpoint_from_kind): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1326 (cris_sw_breakpoint_from_kind): Turn into...
1327 (cris_target::sw_breakpoint_from_kind): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-crisv32-low.cc (class crisv32_target)
1330 <sw_breakpoint_from_kind>: Declare.
1331 (cris_sw_breakpoint_from_kind): Turn into...
1332 (crisv32_target::sw_breakpoint_from_kind): ...this.
1333 (the_low_target): Remove the op field.
1334 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1336 (ia64_target::sw_breakpoint_from_kind): Define.
1337 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1339 (m32r_sw_breakpoint_from_kind): Turn into...
1340 (m32r_target::sw_breakpoint_from_kind): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1344 (m68k_sw_breakpoint_from_kind): Turn into...
1345 (m68k_target::sw_breakpoint_from_kind): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1349 (mips_sw_breakpoint_from_kind): Turn into...
1350 (mips_target::sw_breakpoint_from_kind): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1354 (nios2_sw_breakpoint_from_kind): Turn into...
1355 (nios2_target::sw_breakpoint_from_kind): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1359 (ppc_sw_breakpoint_from_kind): Turn into...
1360 (ppc_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1364 (riscv_sw_breakpoint_from_kind): Turn into...
1365 (riscv_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1369 (s390_sw_breakpoint_from_kind): Turn into...
1370 (s390_target::sw_breakpoint_from_kind): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1374 (sh_sw_breakpoint_from_kind): Turn into...
1375 (sh_target::sw_breakpoint_from_kind): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1379 (sparc_sw_breakpoint_from_kind): Turn into...
1380 (sparc_target::sw_breakpoint_from_kind): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1384 (tic6x_sw_breakpoint_from_kind): Turn into...
1385 (tic6x_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1389 (tile_sw_breakpoint_from_kind): Turn into...
1390 (tile_target::sw_breakpoint_from_kind): ...this.
1391 (the_low_target): Remove the op field.
1392 * linux-xtensa-low.cc (class xtensa_target)
1393 <sw_breakpoint_from_kind>: Declare.
1394 (xtensa_sw_breakpoint_from_kind): Turn into...
1395 (xtensa_target::sw_breakpoint_from_kind): ...this.
1396 (the_low_target): Remove the op field.
1398 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1400 Remove the 'breakpoint_kind_from_pc' and
1401 'breakpoint_kind_from_current_state' linux target ops, and let the
1402 concrete linux target define them by overriding the ops of
1403 process_stratum_target.
1405 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1407 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1408 * linux-low.h (struct linux_target_ops): Remove ops.
1409 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1410 <breakpoint_kind_from_current_state>: Remove.
1411 * linux-x86-low.cc (the_low_target): Remove the op fields.
1412 * linux-bfin-low.cc (the_low_target): Ditto.
1413 * linux-cris-low.cc (the_low_target): Ditto.
1414 * linux-crisv32-low.cc (the_low_target): Ditto.
1415 * linux-m32r-low.cc (the_low_target): Ditto.
1416 * linux-m68k-low.cc (the_low_target): Ditto.
1417 * linux-mips-low.cc (the_low_target): Ditto.
1418 * linux-nios2-low.cc (the_low_target): Ditto.
1419 * linux-ppc-low.cc (the_low_target): Ditto.
1420 * linux-s390-low.cc (the_low_target): Ditto.
1421 * linux-sh-low.cc (the_low_target): Ditto.
1422 * linux-sparc-low.cc (the_low_target): Ditto.
1423 * linux-tic6x-low.cc (the_low_target): Ditto.
1424 * linux-tile-low.cc (the_low_target): Ditto.
1425 * linux-xtensa-low.cc (the_low_target): Ditto.
1426 * linux-aarch64-low.cc (class aarch64_target)
1427 <breakpoint_kind_from_pc>
1428 <breakpoint_kind_from_current_state>: Declare.
1429 (aarch64_breakpoint_kind_from_pc): Turn into...
1430 (aarch64_target::breakpoint_kind_from_pc): ...this.
1431 (aarch64_breakpoint_kind_from_current_state): Turn into...
1432 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1433 (the_low_target): Remove the op fields.
1434 * linux-arm-low.cc (class arm_target):
1435 <breakpoint_kind_from_pc>
1436 <breakpoint_kind_from_current_state>: Declare.
1437 (arm_target::breakpoint_kind_from_pc): Define.
1438 (arm_target::breakpoint_kind_from_current_state): Define.
1439 (the_low_target): Remove the op fields.
1440 * linux-riscv-low.cc (class riscv_target):
1441 <breakpoint_kind_from_pc>: Declare.
1442 (riscv_breakpoint_kind_from_pc): Turn into...
1443 (riscv_target::breakpoint_kind_from_pc): ...this.
1444 (the_low_target): Remove the op fields.
1446 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1449 of linux_process_target.
1451 * linux-low.h (struct linux_target_ops): Remove the ops.
1452 (class linux_process_target) <low_supports_breakpoints>
1454 <low_set_pc>: Declare.
1455 * linux-low.cc (supports_breakpoints): Turn into...
1456 (linux_process_target::low_supports_breakpoints): ...this.
1457 (linux_process_target::low_get_pc): Define.
1458 (linux_process_target::low_set_pc): Define.
1460 Update the callers below.
1462 (linux_process_target::get_pc)
1463 (linux_process_target::save_stop_reason)
1464 (linux_process_target::maybe_move_out_of_jump_pad)
1465 (linux_process_target::wait_1)
1466 (linux_process_target::resume_one_lwp_throw)
1467 (linux_process_target::resume)
1468 (linux_process_target::proceed_all_lwps)
1469 (linux_process_target::read_pc)
1470 (linux_process_target::write_pc)
1472 * linux-x86-low.cc (class linux_process_target)
1473 <low_supports_breakpoints>
1475 <low_set_pc>: Declare.
1476 (x86_target::low_supports_breakpoints): Define.
1477 (x86_get_pc): Turn into...
1478 (x86_target::low_get_pc): ...this.
1479 (x86_set_pc): Turn into...
1480 (x86_target::low_set_pc): ...this.
1481 (the_low_target): Remove the op fields.
1482 * linux-arm-low.cc (class arm_target)
1483 <low_supports_breakpoints>
1485 <low_set_pc>: Declare.
1486 (arm_target::low_supports_breakpoints)
1487 (arm_target::low_get_pc)
1488 (arm_target::low_set_pc): Define.
1489 (the_low_target): Remove the op fields.
1490 * linux-bfin-low.cc (class bfin_target)
1491 <low_supports_breakpoints>
1493 <low_set_pc>: Declare.
1494 (bfin_target::low_supports_breakpoints)
1495 (bfin_target::low_get_pc)
1496 (bfin_target::low_set_pc): Define.
1497 (the_low_target): Remove the op fields.
1498 * linux-cris-low.cc (class cris_target)
1499 <low_supports_breakpoints>
1501 <low_set_pc>: Declare.
1502 (cris_target::low_supports_breakpoints)
1503 (cris_target::low_get_pc)
1504 (cris_target::low_set_pc): Define.
1505 (the_low_target): Remove the op fields.
1506 * linux-crisv32-low.cc (class crisv32_target)
1507 <low_supports_breakpoints>
1509 <low_set_pc>: Declare.
1510 (crisv32_target::low_supports_breakpoints)
1511 (crisv32_target::low_get_pc)
1512 (crisv32_target::low_set_pc): Define.
1513 (the_low_target): Remove the op fields.
1514 * linux-m32r-low.cc (class m32r_target)
1515 <low_supports_breakpoints>
1517 <low_set_pc>: Declare.
1518 (m32r_target::low_supports_breakpoints)
1519 (m32r_target::low_get_pc)
1520 (m32r_target::low_set_pc): Define.
1521 (the_low_target): Remove the op fields.
1522 * linux-m68k-low.cc (class m68k_target)
1523 <low_supports_breakpoints>
1525 <low_set_pc>: Declare.
1526 (m68k_target::low_supports_breakpoints)
1527 (m68k_target::low_get_pc)
1528 (m68k_target::low_set_pc): Define.
1529 (the_low_target): Remove the op fields.
1530 * linux-nios2-low.cc (class nios2_target)
1531 <low_supports_breakpoints>
1533 <low_set_pc>: Declare.
1534 (nios2_target::low_supports_breakpoints)
1535 (nios2_target::low_get_pc)
1536 (nios2_target::low_set_pc): Define.
1537 (the_low_target): Remove the op fields.
1538 * linux-sh-low.cc (class sh_target)
1539 <low_supports_breakpoints>
1541 <low_set_pc>: Declare.
1542 (sh_target::low_supports_breakpoints)
1543 (sh_target::low_get_pc)
1544 (sh_target::low_set_pc): Define.
1545 (the_low_target): Remove the op fields.
1546 * linux-xtensa-low.cc (class xtensa_target)
1547 <low_supports_breakpoints>
1549 <low_set_pc>: Declare.
1550 (xtensa_target::low_supports_breakpoints)
1551 (xtensa_target::low_get_pc)
1552 (xtensa_target::low_set_pc): Define.
1553 (the_low_target): Remove the op fields.
1554 * linux-sparc-low.cc (class sparc_target)
1555 <low_supports_breakpoints>
1556 <low_get_pc>: Declare.
1557 (sparc_target::low_supports_breakpoints)
1558 (sparc_target::low_get_pc): Define.
1559 (the_low_target): Remove the op fields.
1560 * linux-tile-low.cc (class tile_target)
1561 <low_supports_breakpoints>
1563 <low_set_pc>: Declare.
1564 (tile_target::low_supports_breakpoints)
1565 (tile_target::low_get_pc)
1566 (tile_target::low_set_pc): Define.
1567 (the_low_target): Remove the op fields.
1568 * linux-aarch64-low.cc (class aarch64_target)
1569 <low_supports_breakpoints>
1571 <low_set_pc>: Declare.
1572 (aarch64_target::low_supports_breakpoints): Define.
1573 (aarch64_get_pc): Turn into...
1574 (aarch64_target::low_get_pc): ...this.
1575 (aarch64_set_pc): Turn into...
1576 (aarch64_target::low_set_pc): ...this.
1577 (the_low_target): Remove the op fields.
1578 * linux-mips-low.cc (class mips_target)
1579 <low_supports_breakpoints>
1581 <low_set_pc>: Declare.
1582 (mips_target::low_supports_breakpoints): Define.
1583 (mips_get_pc): Turn into...
1584 (mips_target::low_get_pc): ...this.
1585 (mips_set_pc): Turn into...
1586 (mips_target::low_set_pc): ...this.
1587 (the_low_target): Remove the op fields.
1588 * linux-ppc-low.cc (class ppc_target)
1589 <low_supports_breakpoints>
1591 <low_set_pc>: Declare.
1592 (ppc_target::low_supports_breakpoints): Define.
1593 (ppc_get_pc): Turn into...
1594 (ppc_target::low_get_pc): ...this.
1595 (ppc_set_pc): Turn into...
1596 (ppc_target::low_set_pc): ...this.
1597 (the_low_target): Remove the op fields.
1598 * linux-riscv-low.cc (class riscv_target)
1599 <low_supports_breakpoints>
1601 <low_set_pc>: Declare.
1602 (riscv_target::low_supports_breakpoints): Define.
1603 (riscv_get_pc): Turn into...
1604 (riscv_target::low_get_pc): ...this.
1605 (riscv_set_pc): Turn into...
1606 (riscv_target::low_set_pc): ...this.
1607 (the_low_target): Remove the op fields.
1608 * linux-s390-low.cc (class s390_target)
1609 <low_supports_breakpoints>
1611 <low_set_pc>: Declare.
1612 (s390_target::low_supports_breakpoints): Define.
1613 (s390_get_pc): Turn into...
1614 (s390_target::low_get_pc): ...this.
1615 (s390_set_pc): Turn into...
1616 (s390_target::low_set_pc): ...this.
1617 (the_low_target): Remove the op fields.
1618 * linux-tic6x-low.cc (class tic6x_target)
1619 <low_supports_breakpoints>
1621 <low_set_pc>: Declare.
1622 (tic6x_target::low_supports_breakpoints): Define.
1623 (tic6x_get_pc): Turn into...
1624 (tic6x_target::low_get_pc): ...this.
1625 (tic6x_set_pc): Turn into...
1626 (tic6x_target::low_set_pc): ...this.
1627 (the_low_target): Remove the op fields.
1629 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1631 Turn some more static methods in linux-low into private methods
1632 of linux_process_target.
1634 * linux-low.cc (get_pc): Turn into...
1635 (linux_process_target::get_pc): ...this.
1636 (save_stop_reason): Turn into...
1637 (linux_process_target::save_stop_reason): ...this.
1638 (thread_still_has_status_pending_p): Turn into...
1639 (linux_process_target::thread_still_has_status_pending): ...this.
1640 (status_pending_p_callback): Turn into...
1641 (linux_process_target::status_pending_p_callback): ...this.
1642 (resume_stopped_resumed_lwps): Turn into...
1643 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1644 (install_software_single_step_breakpoints): Turn into...
1645 (linux_process_target::install_software_single_step_breakpoints):
1647 (single_step): Turn into...
1648 (linux_process_target::single_step): ...this.
1649 (linux_resume_one_lwp_throw): Turn into...
1650 (linux_process_target::resume_one_lwp_throw): ...this.
1651 (linux_resume_one_lwp): Turn into...
1652 (linux_process_target::resume_one_lwp): ...this.
1653 (resume_status_pending_p): Turn into...
1654 (linux_process_target::resume_status_pending): ...this.
1655 (need_step_over_p): Turn into...
1656 (linux_process_target::thread_needs_step_over): ...this.
1657 (linux_resume_one_thread): Turn into...
1658 (linux_process_target::resume_one_thread): ...this.
1659 (proceed_one_lwp): Turn into...
1660 (linux_process_target::proceed_one_lwp): ...this.
1661 (unsuspend_and_proceed_one_lwp): Turn into...
1662 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1664 Update the calls/references to the above functions below.
1666 (linux_process_target::handle_extended_wait)
1667 (linux_process_target::filter_event)
1668 (linux_process_target::wait_for_event_filtered)
1669 (linux_process_target::wait_1)
1670 (linux_process_target::move_out_of_jump_pad)
1671 (linux_process_target::start_step_over)
1672 (linux_process_target::resume)
1673 (linux_process_target::proceed_all_lwps)
1674 (regsets_store_inferior_registers)
1675 (linux_process_target::store_register)
1677 * linux-low.h (class linux_process_target)
1680 <thread_still_has_status_pending>
1681 <status_pending_p_callback>
1682 <resume_stopped_resumed_lwps>
1683 <install_software_single_step_breakpoints>
1685 <resume_one_lwp_throw>
1687 <resume_status_pending>
1688 <thread_needs_step_over>
1691 <unsuspend_and_proceed_one_lwp>: Declare.
1693 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1695 Turn the 'fetch_register' linux target op into a method of
1696 linux_process_target.
1698 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1699 (class linux_process_target) <low_fetch_register>: Declare.
1700 * linux-x86-low.cc (the_low_target)
1701 * linux-aarch64-low.cc (the_low_target)
1702 * linux-arm-low.cc (the_low_target)
1703 * linux-bfin-low.cc (the_low_target)
1704 * linux-cris-low.cc (the_low_target)
1705 * linux-crisv32-low.cc (the_low_target)
1706 * linux-m32r-low.cc (the_low_target)
1707 * linux-m68k-low.cc (the_low_target)
1708 * linux-nios2-low.cc (the_low_target)
1709 * linux-ppc-low.cc (the_low_target)
1710 * linux-s390-low.cc (the_low_target)
1711 * linux-sh-low.cc (the_low_target)
1712 * linux-sparc-low.cc (the_low_target)
1713 * linux-tic6x-low.cc (the_low_target)
1714 * linux-tile-low.cc (the_low_target)
1715 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1716 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1718 (ia64_fetch_register): Turn into...
1719 (ia64_target::low_fetch_register): ...this.
1720 (the_low_target): Remove the op field.
1721 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1723 (mips_fetch_register): Turn into...
1724 (mips_target::low_fetch_register): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1728 (riscv_fetch_register): Turn into...
1729 (riscv_target::low_fetch_register): ...this.
1730 (the_low_target): Remove the op field.
1732 Update the callers below.
1734 * linux-low.cc (linux_process_target::fetch_registers)
1735 (linux_process_target::low_fetch_register)
1737 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1739 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1740 linux target ops into methods of linux_process_target.
1742 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1743 (class linux_process_target) <fetch_register>
1745 <usr_fetch_inferior_registers>
1746 <usr_store_inferior_registers>
1747 <low_cannot_fetch_register>
1748 <low_cannot_fetch_register> Declare.
1749 * linux-low.cc (fetch_register): Turn into...
1750 (linux_process_target::fetch_register): ...this.
1751 (store_register): Turn into ...
1752 (linux_process_target::store_register): ...this.
1753 (usr_fetch_inferior_registers): Turn into...
1754 (linux_process_target::usr_fetch_inferior_registers): ...this.
1755 (usr_store_inferior_registers): Turn into...
1756 (linux_process_target::usr_store_inferior_registers): ...this.
1757 * linux-x86-low.cc (class x86_target)
1758 <low_cannot_fetch_register>
1759 <low_cannot_store_register>: Declare.
1760 (x86_cannot_store_register): Turn into...
1761 (x86_target::low_cannot_store_register): ...this.
1762 (x86_cannot_fetch_register): Turn into...
1763 (x86_target::low_cannot_fetch_register): ...this.
1764 (the_low_target): Remove the target op fields.
1765 * linux-aarch64-low.cc (class aarch64_target)
1766 <low_cannot_fetch_register>
1767 <low_cannot_store_register>: Declare.
1768 (aarch64_target::low_cannot_fetch_register)
1769 (aarch64_target::low_cannot_store_register): Define.
1770 (the_low_target): Remove the op fields.
1771 * linux-arm-low.cc (class arm_target)
1772 <low_cannot_fetch_register>
1773 <low_cannot_store_register>: Declare.
1774 (arm_cannot_fetch_register): Turn into...
1775 (arm_target::low_cannot_fetch_register): ...this.
1776 (arm_cannot_store_register): Turn into...
1777 (arm_target::low_cannot_store_register): ...this.
1778 (the_low_target): Remove the op fields.
1779 * linux-bfin-low.cc (class bfin_target)
1780 <low_cannot_fetch_register>
1781 <low_cannot_store_register>: Declare.
1782 (bfin_cannot_fetch_register): Turn into...
1783 (bfin_target::low_cannot_fetch_register): ...this.
1784 (bfin_cannot_store_register): Turn into...
1785 (bfin_target::low_cannot_store_register): ...this.
1786 (the_low_target): Remove the op fields.
1787 * linux-cris-low.cc (class cris_target)
1788 <low_cannot_fetch_register>
1789 <low_cannot_store_register>: Declare.
1790 (cris_cannot_fetch_register): Turn into...
1791 (cris_target::low_cannot_fetch_register): ...this.
1792 (cris_cannot_store_register): Turn into...
1793 (cris_target::low_cannot_store_register): ...this.
1794 (the_low_target): Remove the op fields.
1795 * linux-crisv32-low.cc (class crisv32_target)
1796 <low_cannot_fetch_register>
1797 <low_cannot_store_register>: Declare.
1798 (crisv32_target::low_cannot_fetch_register)
1799 (crisv32_target::low_cannot_store_register): Define.
1800 (the_low_target): Remove the op fields.
1801 * linux-ia64-low.cc (class ia64_target)
1802 <low_cannot_fetch_register>
1803 <low_cannot_store_register>: Declare.
1804 (ia64_cannot_fetch_register): Turn into...
1805 (ia64_target::low_cannot_fetch_register): ...this.
1806 (ia64_cannot_store_register): Turn into...
1807 (ia64_target::low_cannot_store_register): ...this.
1808 (the_low_target): Remove the op fields.
1809 * linux-m32r-low.cc (class m32r_target)
1810 <low_cannot_fetch_register>
1811 <low_cannot_store_register>: Declare.
1812 (m32r_cannot_fetch_register): Turn into...
1813 (m32r_target::low_cannot_fetch_register): ...this.
1814 (m32r_cannot_store_register): Turn into...
1815 (m32r_target::low_cannot_store_register): ...this.
1816 (the_low_target): Remove the op fields.
1817 * linux-m68k-low.cc (class m68k_target)
1818 <low_cannot_fetch_register>
1819 <low_cannot_store_register>: Declare.
1820 (m68k_cannot_fetch_register): Turn into...
1821 (m68k_target::low_cannot_fetch_register): ...this.
1822 (m68k_cannot_store_register): Turn into...
1823 (m68k_target::low_cannot_store_register): ...this.
1824 (the_low_target): Remove the op fields.
1825 * linux-mips-low.cc (class mips_target)
1826 <low_cannot_fetch_register>
1827 <low_cannot_store_register>: Declare.
1828 (mips_cannot_fetch_register): Turn into...
1829 (mips_target::low_cannot_fetch_register): ...this.
1830 (mips_cannot_store_register): Turn into...
1831 (mips_target::low_cannot_store_register): ...this.
1832 (get_usrregs_info): Inline at the call sites in
1833 low_cannot_fetch_register and low_cannot_store_register,
1835 (the_low_target): Remove the op fields.
1836 * linux-nios2-low.cc (class nios2_target)
1837 <low_cannot_fetch_register>
1838 <low_cannot_store_register>: Declare.
1839 (nios2_cannot_fetch_register): Turn into...
1840 (nios2_target::low_cannot_fetch_register): ...this.
1841 (nios2_cannot_store_register): Turn into...
1842 (nios2_target::low_cannot_store_register): ...this.
1843 (the_low_target): Remove the op fields.
1844 * linux-ppc-low.cc (class ppc_target)
1845 <low_cannot_fetch_register>
1846 <low_cannot_store_register>: Declare.
1847 (ppc_cannot_fetch_register): Turn into...
1848 (ppc_target::low_cannot_fetch_register): ...this.
1849 (ppc_cannot_store_register): Turn into...
1850 (ppc_target::low_cannot_store_register): ...this.
1851 (the_low_target): Remove the op fields.
1852 * linux-riscv-low.cc (class riscv_target)
1853 <low_cannot_fetch_register>
1854 <low_cannot_store_register>: Declare.
1855 (riscv_target::low_cannot_fetch_register)
1856 (riscv_target::low_cannot_store_register): Define.
1857 (the_low_target): Remove the op fields.
1858 * linux-s390-low.cc (class s390_target)
1859 <low_cannot_fetch_register>
1860 <low_cannot_store_register>: Declare.
1861 (s390_cannot_fetch_register): Turn into...
1862 (s390_target::low_cannot_fetch_register): ...this.
1863 (s390_cannot_store_register): Turn into...
1864 (s390_target::low_cannot_store_register): ...this.
1865 (the_low_target): Remove the op fields.
1866 * linux-sh-low.cc (class sh_target)
1867 <low_cannot_fetch_register>
1868 <low_cannot_store_register>: Declare.
1869 (sh_cannot_fetch_register): Turn into...
1870 (sh_target::low_cannot_fetch_register): ...this.
1871 (sh_cannot_store_register): Turn into...
1872 (sh_target::low_cannot_store_register): ...this.
1873 (the_low_target): Remove the op fields.
1874 * linux-sparc-low.cc (class sparc_target)
1875 <low_cannot_fetch_register>
1876 <low_cannot_store_register>: Declare.
1877 (sparc_cannot_fetch_register): Turn into...
1878 (sparc_target::low_cannot_fetch_register): ...this.
1879 (sparc_cannot_store_register): Turn into...
1880 (sparc_target::low_cannot_store_register): ...this.
1881 (the_low_target): Remove the op fields.
1882 * linux-tic6x-low.cc (class tic6x_target)
1883 <low_cannot_fetch_register>
1884 <low_cannot_store_register>: Declare.
1885 (tic6x_cannot_fetch_register): Turn into...
1886 (tic6x_target::low_cannot_fetch_register): ...this.
1887 (tic6x_cannot_store_register): Turn into...
1888 (tic6x_target::low_cannot_store_register): ...this.
1889 (the_low_target): Remove the op fields.
1890 * linux-tile-low.cc (class tile_target)
1891 <low_cannot_fetch_register>
1892 <low_cannot_store_register>: Declare.
1893 (tile_cannot_fetch_register): Turn into...
1894 (tile_target::low_cannot_fetch_register): ...this.
1895 (tile_cannot_store_register): Turn into...
1896 (tile_target::low_cannot_store_register): ...this.
1897 (the_low_target): Remove the op fields.
1898 * linux-xtensa-low.cc (class xtensa_target)
1899 <low_cannot_fetch_register>
1900 <low_cannot_store_register>: Declare.
1901 (xtensa_target::low_cannot_fetch_register)
1902 (xtensa_target::low_cannot_store_register): Define.
1903 (the_low_target): Remove the op fields.
1905 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1907 Turn the 'regs_info' linux target op into a method of
1908 linux_process_target.
1910 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1911 (class linux_process_target) <get_regs_info>: Define.
1913 Update the callers below.
1915 * linux-low.cc (linux_process_target::fetch_registers)
1916 (linux_process_target::store_registers)
1917 * proc-service.cc (gregset_info)
1919 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1920 (x86_linux_regs_info): Turn into ...
1921 (x86_target::get_regs_info): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1925 (aarch64_regs_info): Turn into ...
1926 (aarch64_target::get_regs_info): ...this.
1927 (the_low_target): Remove the op field.
1928 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1929 (arm_regs_info): Turn into ...
1930 (arm_target::get_regs_info): ...this.
1931 (the_low_target): Remove the op field.
1932 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1933 (bfin_regs_info): Turn into ...
1934 (bfin_target::get_regs_info): ...this.
1935 (the_low_target): Remove the op field.
1936 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1937 (cris_regs_info): Turn into ...
1938 (cris_target::get_regs_info): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1942 (crisv32_regs_info): Turn into ...
1943 (crisv32_target::get_regs_info): ...this.
1944 (the_low_target): Remove the op field.
1945 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1946 (ia64_regs_info): Turn into ...
1947 (ia64_target::get_regs_info): ...this.
1948 (the_low_target): Remove the op field.
1949 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1950 (m32r_regs_info): Turn into ...
1951 (m32r_target::get_regs_info): ...this.
1952 (the_low_target): Remove the op field.
1953 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1954 (m68k_regs_info): Turn into ...
1955 (m68k_target::get_regs_info): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1958 (mips_regs_info): Turn into ...
1959 (mips_target::get_regs_info): ...this.
1960 (the_low_target): Remove the op field.
1961 (get_usrregs_info): Update the call to the op.
1962 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1963 (nios2_regs_info): Turn into ...
1964 (nios2_target::get_regs_info): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1967 (ppc_regs_info): Turn into ...
1968 (ppc_target::get_regs_info): ...this.
1969 (the_low_target): Remove the op field.
1970 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1971 (riscv_regs_info): Turn into ...
1972 (riscv_target::get_regs_info): ...this.
1973 (the_low_target): Remove the op field.
1974 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1975 (s390_regs_info): Turn into ...
1976 (s390_target::get_regs_info): ...this.
1977 (the_low_target): Remove the op field.
1978 (s390_collect_ptrace_register)
1979 (s390_supply_ptrace_register)
1980 (s390_fill_gregset): Update the call to the op.
1981 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1982 (sh_regs_info): Turn into ...
1983 (sh_target::get_regs_info): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1986 (sparc_regs_info): Turn into ...
1987 (sparc_target::get_regs_info): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1990 (tic6x_regs_info): Turn into ...
1991 (tic6x_target::get_regs_info): ...this.
1992 (the_low_target): Remove the op field.
1993 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1994 (tile_regs_info): Turn into ...
1995 (tile_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1999 (xtensa_regs_info): Turn into ...
2000 (xtensa_target::get_regs_info): ...this.
2001 (the_low_target): Remove the op field.
2003 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2005 Turn the 'arch_setup' linux target op into a method of
2006 linux_process_target.
2008 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2009 (class linux_process_target) <arch_setup_thread>
2010 <low_arch_setup>: New declarations.
2011 * linux-low.cc (linux_arch_setup): Delete.
2012 (linux_arch_setup_thread): Turn into...
2013 (linux_process_target::arch_setup_thread): ... this.
2015 Update the callers below.
2017 (linux_process_target::handle_extended_wait)
2018 (linux_process_target::post_create_inferior)
2019 (linux_process_target::filter_event)
2021 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2023 (x86_linux_update_xmltarget): Turn into...
2024 (x86_target::update_xmltarget): ...this.
2025 (x86_linux_process_qsupported): Update the call to
2026 x86_linux_update_xmltarget.
2027 (x86_arch_setup): Turn into ...
2028 (x86_target::low_arch_setup): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2032 (aarch64_arch_setup): Turn into ...
2033 (aarch64_target::low_arch_setup): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2037 (arm_arch_setup): Turn into ...
2038 (arm_target::low_arch_setup): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2042 (bfin_arch_setup): Turn into ...
2043 (bfin_target::low_arch_setup): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2047 (cris_arch_setup): Turn into ...
2048 (cris_target::low_arch_setup): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2052 (crisv32_arch_setup): Turn into ...
2053 (crisv32_target::low_arch_setup): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2057 (ia64_arch_setup): Turn into ...
2058 (ia64_target::low_arch_setup): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2062 (m32r_arch_setup): Turn into ...
2063 (m32r_target::low_arch_setup): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2067 (m68k_arch_setup): Turn into ...
2068 (m68k_target::low_arch_setup): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2072 (mips_arch_setup): Turn into ...
2073 (mips_target::low_arch_setup): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2077 (nios2_arch_setup): Turn into ...
2078 (nios2_target::low_arch_setup): ...this.
2079 (the_low_target): Remove the op field.
2080 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2082 (ppc_arch_setup): Turn into ...
2083 (ppc_target::low_arch_setup): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2087 (riscv_arch_setup): Turn into ...
2088 (riscv_target::low_arch_setup): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2092 (s390_arch_setup): Turn into ...
2093 (s390_target::low_arch_setup): ...this.
2094 (the_low_target): Remove the op field.
2095 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2097 (sh_arch_setup): Turn into ...
2098 (sh_target::low_arch_setup): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2102 (sparc_arch_setup): Turn into ...
2103 (sparc_target::low_arch_setup): ...this.
2104 (the_low_target): Remove the op field.
2105 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2107 (tic6x_arch_setup): Turn into ...
2108 (tic6x_target::low_arch_setup): ...this.
2109 (the_low_target): Remove the op field.
2110 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2112 (tile_arch_setup): Turn into ...
2113 (tile_target::low_arch_setup): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2117 (xtensa_arch_setup): Turn into ...
2118 (xtensa_target::low_arch_setup): ...this.
2119 (the_low_target): Remove the op field.
2121 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123 * linux-low.h (the_linux_target): New extern declaration.
2124 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2126 (the_linux_target): Remove.
2127 * linux-x86-low.cc (class x86_target): New class.
2128 (the_x86_target): New static object.
2129 (the_linux_target): Define as pointer to the_x86_target.
2130 * linux-aarch64-low.cc (class aarch64_target): New class.
2131 (the_aarch64_target): New static object.
2132 (the_linux_target): Define as pointer to the_aarch64_target.
2133 * linux-arm-low.cc (class arm_target): New class.
2134 (the_arm_target): New static object.
2135 (the_linux_target): Define as pointer to the_arm_target.
2136 * linux-bfin-low.cc (class bfin_target): New class.
2137 (the_bfin_target): New static object.
2138 (the_linux_target): Define as pointer to the_bfin_target.
2139 * linux-cris-low.cc (class cris_target): New class.
2140 (the_cris_target): New static object.
2141 (the_linux_target): Define as pointer to the_cris_target.
2142 * linux-crisv32-low.cc (class crisv32_target): New class.
2143 (the_crisv32_target): New static object.
2144 (the_linux_target): Define as pointer to the_crisv32_target.
2145 * linux-ia64-low.cc (class ia64_target): New class.
2146 (the_ia64_target): New static object.
2147 (the_linux_target): Define as pointer to the_ia64_target.
2148 * linux-m32r-low.cc (class m32r_target): New class.
2149 (the_m32r_target): New static object.
2150 (the_linux_target): Define as pointer to the_m32r_target.
2151 * linux-m68k-low.cc (class m68k_target): New class.
2152 (the_m68k_target): New static object.
2153 (the_linux_target): Define as pointer to the_m68k_target.
2154 * linux-mips-low.cc (class mips_target): New class.
2155 (the_mips_target): New static object.
2156 (the_linux_target): Define as pointer to the_mips_target.
2157 * linux-nios2-low.cc (class nios2_target): New class.
2158 (the_nios2_target): New static object.
2159 (the_linux_target): Define as pointer to the_nios2_target.
2160 * linux-ppc-low.cc (class ppc_target): New class.
2161 (the_ppc_target): New static object.
2162 (the_linux_target): Define as pointer to the_ppc_target.
2163 * linux-riscv-low.cc (class riscv_target): New class.
2164 (the_riscv_target): New static object.
2165 (the_linux_target): Define as pointer to the_riscv_target.
2166 * linux-s390-low.cc (class s390_target): New class.
2167 (the_s390_target): New static object.
2168 (the_linux_target): Define as pointer to the_s390_target.
2169 * linux-sh-low.cc (class sh_target): New class.
2170 (the_sh_target): New static object.
2171 (the_linux_target): Define as pointer to the_sh_target.
2172 * linux-sparc-low.cc (class sparc_target): New class.
2173 (the_sparc_target): New static object.
2174 (the_linux_target): Define as pointer to the_sparc_target.
2175 * linux-tic6x-low.cc (class tic6x_target): New class.
2176 (the_tic6x_target): New static object.
2177 (the_linux_target): Define as pointer to the_tic6x_target.
2178 * linux-tile-low.cc (class tile_target): New class.
2179 (the_tile_target): New static object.
2180 (the_linux_target): Define as pointer to the_tile_target.
2181 * linux-xtensa-low.cc (class xtensa_target): New class.
2182 (the_xtensa_target): New static object.
2183 (the_linux_target): Define as pointer to the_xtensa_target.
2185 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2187 Turn some static functions in linux-low.cc into private methods of
2188 linux_process_target.
2190 * linux-low.cc (handle_extended_wait): Turn into ...
2191 (linux_process_target::handle_extended_wait): ...this. Call
2192 'mourn' on 'this' object instead of 'the_target'.
2193 (maybe_move_out_of_jump_pad): Turn into...
2194 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2195 (linux_low_filter_event): Turn into...
2196 (linux_process_target::filter_event): ...this.
2197 (linux_wait_for_event_filtered): Turn into...
2198 (linux_process_target::wait_for_event_filtered): ...this.
2199 (linux_wait_for_event): Turn into...
2200 (linux_process_target::wait_for_event): ...this.
2201 (linux_wait_1): Turn into...
2202 (linux_process_target::wait_1): ...this.
2203 (wait_for_sigstop): Turn into...
2204 (linux_process_target::wait_for_sigstop): ...this.
2205 (move_out_of_jump_pad_callback): Turn into...
2206 (linux_process_target::move_out_of_jump_pad): ...this.
2207 (stop_all_lwps): Turn into...
2208 (linux_process_target::stop_all_lwps): ...this.
2209 (start_step_over): Turn into...
2210 (linux_process_target::start_step_over): ...this.
2211 (complete_ongoing_step_over): Turn into...
2212 (linux_process_target::complete_ongoing_step_over): ...this.
2213 (proceed_all_lwps): Turn into...
2214 (linux_process_target::proceed_all_lwps): ...this.
2215 (unstop_all_lwps): Turn into...
2216 (linux_process_target::unstop_all_lwps): ...this.
2218 * linux-low.h (class linux_process_target)
2219 <handle_extended_wait>
2220 <maybe_move_out_of_jump_pad>
2222 <wait_for_event_filtered>
2226 <move_out_of_jump_pad>
2229 <complete_ongoing_step_over>
2231 <unstop_all_lwps>: Declare.
2233 Update the callers below.
2235 * linux-low.cc (linux_process_target::attach): Update.
2236 (linux_process_target::stabilize_threads): Ditto.
2237 (linux_process_target::wait): Ditto.
2239 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2241 * linux-low.h (struct linux_target_ops): Update the comment for
2242 'cannot_store_register' to return 0 or 1.
2243 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2246 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2248 * config.in: Re-generate.
2249 * configure: Re-generate.
2251 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2253 * regcache.cc (find_register_by_number): Update.
2254 * tdesc.cc (init_target_desc): Likewise.
2255 * tdesc.h (target_desc::reg_defs): Likewise.
2257 2020-03-12 Tom Tromey <tom@tromey.com>
2259 * configure: Rebuild.
2260 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2261 (WIN32APILIBS): New subst.
2262 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2264 (gdbsupport/%.o): Remove target.
2265 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2266 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2267 (WIN32APILIBS): New variable.
2268 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2269 (gdbreplay$(EXEEXT)): Likewise.
2271 2020-03-12 Tom Tromey <tom@tromey.com>
2273 * config.in, configure: Rebuild.
2274 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2275 * acinclude.m4: Include gettext-sister.m4.
2276 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2278 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2279 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2281 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2283 * acinclude.m4: Update path to selftest.m4.
2285 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2287 * configure.ac: Don't source bfd/development.sh, move
2288 GDB_AC_COMMON higher.
2289 * configure: Re-generate.
2291 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2293 * configure: Re-generate.
2295 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2297 * configure: Re-generate.
2299 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2301 * .dir-locals.el: New file.
2303 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2305 * .gitattributes: New file.
2307 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2310 reply into an S reply.
2311 * server.cc (disable_packet_T): New global.
2312 (captured_main): Set new global when appropriate.
2313 * server.h (disable_packet_T): Declare.
2315 2020-02-21 Tom Tromey <tom@tromey.com>
2317 * Makefile.in (mostlyclean): New target.
2319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321 * target.h (struct process_stratum_target): Remove.
2322 (class process_target): Rename to ...
2323 (class process_stratum_target): ... this.
2324 * linux-low.h (class linux_process_target): Derive from
2325 'process_stratum_target'.
2326 * linux-low.cc (linux_target_ops): Remove.
2327 (initialize_low): Set the_target to the singleton instance of
2328 linux_process_target.
2329 * lynx-low.h (class lynx_process_target): Derive from
2330 'process_stratum_target'.
2331 * lynx-low.cc (lynx_target_ops): Remove.
2332 (initialize_low): Set the_target to the singleton instance of
2333 lynx_process_target.
2334 * nto-low.h (class nto_process_target): Derive from
2335 'process_stratum_target'.
2336 * nto-low.cc (nto_target_ops): Remove.
2337 (initialize_low): Set the_target to the singleton instance of
2339 * win32-low.h (class win32_process_target): Derive from
2340 'process_stratum_target'.
2341 * win32-low.cc (win32_target_ops): Remove.
2342 (initialize_low): Set the_target to the singleton instance of
2343 win32_process_target.
2345 Replace 'the_target->pt' with 'the_target' in the uses below.
2347 * hostio.cc (hostio_error)
2352 * linux-aarch32-low.cc (arm_breakpoint_at)
2353 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2354 * linux-arm-low.cc (arm_sigreturn_next_pc)
2356 (arm_get_syscall_trapinfo)
2357 * linux-cris-low.cc (cris_breakpoint_at)
2358 * linux-crisv32-low.cc (cris_breakpoint_at)
2359 * linux-low.cc (handle_extended_wait)
2362 (linux_process_target::breakpoint_kind_from_pc)
2364 * linux-m32r-low.cc (m32r_breakpoint_at)
2365 * linux-mips-low.cc (mips_breakpoint_at)
2366 * linux-nios2-low.cc (nios2_breakpoint_at)
2367 * linux-ppc-low.cc (ppc_breakpoint_at)
2368 * linux-s390-low.cc (s390_get_hwcap)
2369 * linux-sh-low.cc (sh_breakpoint_at)
2370 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2371 (sparc_store_gregset_from_stack)
2372 (sparc_breakpoint_at)
2373 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2374 * linux-tile-low.cc (tile_breakpoint_at)
2375 * linux-x86-low.cc (x86_breakpoint_at)
2376 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2377 * mem-break.cc (bp_size)
2379 (insert_memory_breakpoint)
2380 (set_raw_breakpoint_at)
2381 (delete_raw_breakpoint)
2383 (uninsert_raw_breakpoint)
2384 (reinsert_raw_breakpoint)
2385 (validate_inserted_breakpoint)
2386 * regcache.cc (regcache_read_pc)
2388 * remote-utils.cc (putpkt_binary_1)
2391 (prepare_resume_reply)
2392 * server.cc (handle_general_set)
2395 (handle_qxfer_exec_file)
2396 (handle_qxfer_libraries_svr4)
2397 (handle_qxfer_osdata)
2398 (handle_qxfer_siginfo)
2399 (handle_qxfer_fdpic)
2403 (queue_stop_reply_callback)
2405 * target.cc (prepare_to_access_memory)
2406 (done_accessing_memory)
2407 (read_inferior_memory)
2408 (target_write_memory)
2409 (target_stop_and_wait)
2411 (target_mourn_inferior)
2412 (target_continue_no_signal)
2414 (target_supports_multi_process)
2417 (target_create_inferior)
2418 (target_post_create_inferior)
2420 (target_supports_fork_events)
2421 (target_supports_vfork_events)
2422 (target_supports_exec_events)
2423 (target_handle_new_gdb_connection)
2426 (fetch_inferior_registers)
2427 (store_inferior_registers)
2429 (target_supports_non_stop)
2431 (target_process_qsupported)
2432 (target_supports_catch_syscall)
2433 (target_get_ipa_tdesc_idx)
2434 (target_supports_tracepoints)
2435 (target_supports_fast_tracepoints)
2436 (target_get_min_fast_tracepoint_insn_len)
2437 (target_thread_stopped)
2439 (target_unpause_all)
2440 (target_stabilize_threads)
2441 (target_install_fast_tracepoint_jump_pad)
2443 (target_supports_disable_randomization)
2444 (target_supports_agent)
2445 (target_enable_btrace)
2446 (target_disable_btrace)
2447 (target_read_btrace)
2448 (target_read_btrace_conf)
2449 (target_supports_range_stepping)
2450 (target_supports_stopped_by_sw_breakpoint)
2451 (target_stopped_by_sw_breakpoint)
2452 (target_supports_stopped_by_hw_breakpoint)
2453 (target_supports_hardware_single_step)
2454 (target_stopped_by_hw_breakpoint)
2455 (target_breakpoint_kind_from_pc)
2456 (target_breakpoint_kind_from_current_state)
2457 (target_supports_software_single_step)
2458 (target_core_of_thread)
2459 (target_thread_name)
2460 (target_thread_handle)
2461 * win32-low.cc (do_initial_child_stuff)
2463 Rename target op default definitions listed below.
2465 * target.cc (process_target::post_create_inferior): Rename as ...
2466 (process_stratum_target::post_create_inferior): ... this.
2467 (process_target::prepare_to_access_memory): Rename as ...
2468 (process_stratum_target::prepare_to_access_memory): ... this.
2469 (process_target::done_accessing_memory): Rename as ...
2470 (process_stratum_target::done_accessing_memory): ... this.
2471 (process_target::look_up_symbols): Rename as ...
2472 (process_stratum_target::look_up_symbols): ... this.
2473 (process_target::supports_read_auxv): Rename as ...
2474 (process_stratum_target::supports_read_auxv): ... this.
2475 (process_target::read_auxv): Rename as ...
2476 (process_stratum_target::read_auxv): ... this.
2477 (process_target::supports_z_point_type): Rename as ...
2478 (process_stratum_target::supports_z_point_type): ... this.
2479 (process_target::insert_point): Rename as ...
2480 (process_stratum_target::insert_point): ... this.
2481 (process_target::remove_point): Rename as ...
2482 (process_stratum_target::remove_point): ... this.
2483 (process_target::stopped_by_sw_breakpoint): Rename as ...
2484 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2485 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2486 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2487 (process_target::stopped_by_hw_breakpoint): Rename as ...
2488 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2489 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2490 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2491 (process_target::supports_hardware_single_step): Rename as ...
2492 (process_stratum_target::supports_hardware_single_step): ... this.
2493 (process_target::stopped_by_watchpoint): Rename as ...
2494 (process_stratum_target::stopped_by_watchpoint): ... this.
2495 (process_target::stopped_data_address): Rename as ...
2496 (process_stratum_target::stopped_data_address): ... this.
2497 (process_target::supports_read_offsets): Rename as ...
2498 (process_stratum_target::supports_read_offsets): ... this.
2499 (process_target::read_offsets): Rename as ...
2500 (process_stratum_target::read_offsets): ... this.
2501 (process_target::supports_get_tls_address): Rename as ...
2502 (process_stratum_target::supports_get_tls_address): ... this.
2503 (process_target::get_tls_address): Rename as ...
2504 (process_stratum_target::get_tls_address): ... this.
2505 (process_target::hostio_last_error): Rename as ...
2506 (process_stratum_target::hostio_last_error): ... this.
2507 (process_target::supports_qxfer_osdata): Rename as ...
2508 (process_stratum_target::supports_qxfer_osdata): ... this.
2509 (process_target::qxfer_osdata): Rename as ...
2510 (process_stratum_target::qxfer_osdata): ... this.
2511 (process_target::supports_qxfer_siginfo): Rename as ...
2512 (process_stratum_target::supports_qxfer_siginfo): ... this.
2513 (process_target::qxfer_siginfo): Rename as ...
2514 (process_stratum_target::qxfer_siginfo): ... this.
2515 (process_target::supports_non_stop): Rename as ...
2516 (process_stratum_target::supports_non_stop): ... this.
2517 (process_target::async): Rename as ...
2518 (process_stratum_target::async): ... this.
2519 (process_target::start_non_stop): Rename as ...
2520 (process_stratum_target::start_non_stop): ... this.
2521 (process_target::supports_multi_process): Rename as ...
2522 (process_stratum_target::supports_multi_process): ... this.
2523 (process_target::supports_fork_events): Rename as ...
2524 (process_stratum_target::supports_fork_events): ... this.
2525 (process_target::supports_vfork_events): Rename as ...
2526 (process_stratum_target::supports_vfork_events): ... this.
2527 (process_target::supports_exec_events): Rename as ...
2528 (process_stratum_target::supports_exec_events): ... this.
2529 (process_target::handle_new_gdb_connection): Rename as ...
2530 (process_stratum_target::handle_new_gdb_connection): ... this.
2531 (process_target::handle_monitor_command): Rename as ...
2532 (process_stratum_target::handle_monitor_command): ... this.
2533 (process_target::core_of_thread): Rename as ...
2534 (process_stratum_target::core_of_thread): ... this.
2535 (process_target::supports_read_loadmap): Rename as ...
2536 (process_stratum_target::supports_read_loadmap): ... this.
2537 (process_target::read_loadmap): Rename as ...
2538 (process_stratum_target::read_loadmap): ... this.
2539 (process_target::process_qsupported): Rename as ...
2540 (process_stratum_target::process_qsupported): ... this.
2541 (process_target::supports_tracepoints): Rename as ...
2542 (process_stratum_target::supports_tracepoints): ... this.
2543 (process_target::read_pc): Rename as ...
2544 (process_stratum_target::read_pc): ... this.
2545 (process_target::write_pc): Rename as ...
2546 (process_stratum_target::write_pc): ... this.
2547 (process_target::supports_thread_stopped): Rename as ...
2548 (process_stratum_target::supports_thread_stopped): ... this.
2549 (process_target::thread_stopped): Rename as ...
2550 (process_stratum_target::thread_stopped): ... this.
2551 (process_target::supports_get_tib_address): Rename as ...
2552 (process_stratum_target::supports_get_tib_address): ... this.
2553 (process_target::get_tib_address): Rename as ...
2554 (process_stratum_target::get_tib_address): ... this.
2555 (process_target::pause_all): Rename as ...
2556 (process_stratum_target::pause_all): ... this.
2557 (process_target::unpause_all): Rename as ...
2558 (process_stratum_target::unpause_all): ... this.
2559 (process_target::stabilize_threads): Rename as ...
2560 (process_stratum_target::stabilize_threads): ... this.
2561 (process_target::supports_fast_tracepoints): Rename as ...
2562 (process_stratum_target::supports_fast_tracepoints): ... this.
2563 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2564 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2565 (process_target::emit_ops): Rename as ...
2566 (process_stratum_target::emit_ops): ... this.
2567 (process_target::supports_disable_randomization): Rename as ...
2568 (process_stratum_target::supports_disable_randomization): ... this.
2569 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2570 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2571 (process_target::qxfer_libraries_svr4): Rename as ...
2572 (process_stratum_target::qxfer_libraries_svr4): ... this.
2573 (process_target::supports_agent): Rename as ...
2574 (process_stratum_target::supports_agent): ... this.
2575 (process_target::enable_btrace): Rename as ...
2576 (process_stratum_target::enable_btrace): ... this.
2577 (process_target::disable_btrace): Rename as ...
2578 (process_stratum_target::disable_btrace): ... this.
2579 (process_target::read_btrace): Rename as ...
2580 (process_stratum_target::read_btrace): ... this.
2581 (process_target::read_btrace_conf): Rename as ...
2582 (process_stratum_target::read_btrace_conf): ... this.
2583 (process_target::supports_range_stepping): Rename as ...
2584 (process_stratum_target::supports_range_stepping): ... this.
2585 (process_target::supports_pid_to_exec_file): Rename as ...
2586 (process_stratum_target::supports_pid_to_exec_file): ... this.
2587 (process_target::pid_to_exec_file): Rename as ...
2588 (process_stratum_target::pid_to_exec_file): ... this.
2589 (process_target::supports_multifs): Rename as ...
2590 (process_stratum_target::supports_multifs): ... this.
2591 (process_target::multifs_open): Rename as ...
2592 (process_stratum_target::multifs_open): ... this.
2593 (process_target::multifs_unlink): Rename as ...
2594 (process_stratum_target::multifs_unlink): ... this.
2595 (process_target::multifs_readlink): Rename as ...
2596 (process_stratum_target::multifs_readlink): ... this.
2597 (process_target::breakpoint_kind_from_pc): Rename as ...
2598 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2599 (process_target::breakpoint_kind_from_current_state): Rename as ...
2600 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2601 (process_target::thread_name): Rename as ...
2602 (process_stratum_target::thread_name): ... this.
2603 (process_target::thread_handle): Rename as ...
2604 (process_stratum_target::thread_handle): ... this.
2605 (process_target::supports_software_single_step): Rename as ...
2606 (process_stratum_target::supports_software_single_step): ... this.
2607 (process_target::supports_catch_syscall): Rename as ...
2608 (process_stratum_target::supports_catch_syscall): ... this.
2609 (process_target::get_ipa_tdesc_idx): Rename as ...
2610 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2612 2020-02-20 Pedro Alves <palves@redhat.com>
2614 * target.cc (set_target_ops): Simply copy the given target pointer
2615 instead of creating a copy of the pointed object.
2617 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2619 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2622 * target.h (struct process_stratum_target): Remove the target op.
2623 (class process_target): Add the target op.
2624 (target_get_ipa_tdesc_idx): Update the macro.
2625 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2627 Update the derived classes and callers below.
2629 * linux-low.cc (linux_target_ops): Update.
2630 (linux_get_ipa_tdesc_idx): Turn into ...
2631 (linux_process_target::get_ipa_tdesc_idx): ... this.
2632 * linux-low.h (class linux_process_target): Update.
2633 * lynx-low.cc (lynx_target_ops): Update.
2634 * nto-low.cc (nto_target_ops): Update.
2635 * win32-low.cc (win32_target_ops): Update.
2637 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2639 Turn process_stratum_target's supports_catch_syscall op into a
2640 method of process_target.
2642 * target.h (struct process_stratum_target): Remove the target op.
2643 (class process_target): Add the target op.
2644 (target_supports_catch_syscall): Update the macro.
2645 * target.cc (process_target::supports_catch_syscall): Define.
2647 Update the derived classes and callers below.
2649 * linux-low.cc (linux_target_ops): Update.
2650 (linux_supports_catch_syscall): Turn into ...
2651 (linux_process_target::supports_catch_syscall): ... this.
2652 * linux-low.h (class linux_process_target): Update.
2653 * lynx-low.cc (lynx_target_ops): Update.
2654 * nto-low.cc (nto_target_ops): Update.
2655 * win32-low.cc (win32_target_ops): Update.
2657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659 Turn process_stratum_target's supports_software_single_step op
2660 into a method of process_target.
2662 * target.h (struct process_stratum_target): Remove the target op.
2663 (class process_target): Add the target op.
2664 (target_supports_software_single_step): Update the macro.
2665 * target.cc (process_target::supports_software_single_step): Define.
2667 Update the derived classes and callers below.
2669 * linux-low.cc (linux_target_ops): Update.
2670 (linux_supports_software_single_step): Turn into ...
2671 (linux_process_target::supports_software_single_step): ... this.
2672 * linux-low.h (class linux_process_target): Update.
2673 * lynx-low.cc (lynx_target_ops): Update.
2674 * nto-low.cc (nto_target_ops): Update.
2675 * win32-low.cc (win32_target_ops): Update.
2677 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2679 Turn process_stratum_target's thread_name and thread_handle ops
2680 into methods of process_target.
2682 * target.h (struct process_stratum_target): Remove the target ops.
2683 (class process_target): Add the target ops.
2684 (target_thread_name): Update the macro.
2685 (target_thread_handle): Update the macro.
2686 * target.cc (process_target::thread_name): Define.
2687 (process_target::thread_handle): Define.
2689 Update the derived classes and callers below.
2691 * linux-low.cc (linux_target_ops): Update.
2692 (linux_process_target::thread_name): Define.
2693 (linux_process_target::thread_handle): Define.
2694 * linux-low.h (class linux_process_target): Update.
2695 * lynx-low.cc (lynx_target_ops): Update.
2696 * nto-low.cc (nto_target_ops): Update.
2697 * win32-low.cc (win32_target_ops): Update.
2699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701 Turn process_stratum_target's breakpoint_kind_from_pc,
2702 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2703 ops into methods of process_target.
2705 * target.h (struct process_stratum_target): Remove the target op.
2706 (class process_target): Add the target op.
2707 (target_breakpoint_kind_from_pc): Update the macro.
2708 (target_breakpoint_kind_from_current_state): Update the macro.
2709 (default_breakpoint_kind_from_pc): Remove declaration.
2710 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2711 (process_target::breakpoint_kind_from_pc): ... this.
2712 (process_target::breakpoint_kind_from_current_state): Define.
2714 Update the derived classes and callers below.
2716 * mem-break.cc (bp_size): Update.
2717 (bp_opcode): Update.
2718 * linux-low.cc (linux_target_ops): Update.
2719 (linux_wait_1): Update.
2720 (linux_breakpoint_kind_from_pc): Turn into ...
2721 (linux_process_target::breakpoint_kind_from_pc): ... this.
2722 (linux_sw_breakpoint_from_kind): Turn into ...
2723 (linux_process_target::sw_breakpoint_from_kind): ... this.
2724 (linux_breakpoint_kind_from_current_state): Turn into ...
2725 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2726 * linux-low.h (class linux_process_target): Update.
2727 * lynx-low.cc (lynx_target_ops): Update.
2728 (lynx_process_target::sw_breakpoint_from_kind): Define.
2729 * lynx-low.h (class lynx_process_target): Update.
2730 * nto-low.cc (nto_target_ops): Update.
2731 (nto_sw_breakpoint_from_kind): Turn into ...
2732 (nto_process_target::sw_breakpoint_from_kind): ... this.
2733 * nto-low.h (class nto_process_target): Update.
2734 * win32-low.cc (win32_target_ops): Update.
2735 (win32_sw_breakpoint_from_kind): Turn into ...
2736 (win32_process_target::sw_breakpoint_from_kind): ... this.
2737 * win32-low.h (class win32_process_target): Update.
2739 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741 Turn process_stratum_target's multifs_open, multifs_readlink,
2742 multifs_unlink ops into methods of process_target.
2744 * target.h (struct process_stratum_target): Remove the target ops.
2745 (class process_target): Add the target ops. Also add
2747 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2749 (process_target::supports_multifs): Define.
2750 (process_target::multifs_open): Define.
2751 (process_target::multifs_readlink): Define.
2752 (process_target::multifs_unlink): Define.
2754 Update the derived classes and callers below.
2756 * hostio.cc (handle_setfs): Update.
2757 (handle_open): Update.
2758 (handle_unlink): Update.
2759 (handle_readlink): Update.
2760 * linux-low.cc (linux_target_ops): Update.
2761 (linux_process_target::supports_multifs): Define.
2762 (linux_process_target::multifs_open): Define.
2763 (linux_process_target::multifs_readlink): Define.
2764 (linux_process_target::multifs_unlink): Define.
2765 * linux-low.h (class linux_process_target): Update.
2766 * lynx-low.cc (lynx_target_ops): Update.
2767 * nto-low.cc (nto_target_ops): Update.
2768 * win32-low.cc (win32_target_ops): Update.
2770 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2772 Turn process_stratum_target's pid_to_exec_file op into a method
2775 * target.h (struct process_stratum_target): Remove the target op.
2776 (class process_target): Add the target op. Also add
2777 'supports_pid_to_exec_file'.
2778 * target.cc (process_target::pid_to_exec_file): Define.
2779 (process_target::supports_pid_to_exec_file): Define.
2781 Update the derived classes and callers below.
2783 * server.cc (handle_qxfer_exec_file): Update.
2784 (handle_query): Update.
2785 * linux-low.cc (linux_target_ops): Update.
2786 (linux_process_target::supports_pid_to_exec_file): Define.
2787 (linux_process_target::pid_to_exec_file): Define.
2788 * linux-low.h (class linux_process_target): Update.
2789 * lynx-low.cc (lynx_target_ops): Update.
2790 * nto-low.cc (nto_target_ops): Update.
2791 * win32-low.cc (win32_target_ops): Update.
2793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2795 Turn process_stratum_target's supports_range_stepping op into a
2796 method of process_target.
2798 * target.h (struct process_stratum_target): Remove the target op.
2799 (class process_target): Add the target op.
2800 (target_supports_range_stepping): Update the macro.
2801 * target.cc (process_target::supports_range_stepping): Define.
2803 Update the derived classes and callers below.
2805 * linux-low.cc (linux_target_ops): Update.
2806 (linux_supports_range_stepping): Turn into ...
2807 (linux_process_target::supports_range_stepping): ... this.
2808 * linux-low.h (class linux_process_target): Update.
2809 * lynx-low.cc (lynx_target_ops): Update.
2810 * nto-low.cc (nto_target_ops): Update.
2811 * win32-low.cc (win32_target_ops): Update.
2813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2815 Turn process_stratum_target's btrace-related ops (enable_btrace,
2816 disable_btrace, read_btrace, read_btrace_conf) into methods of
2819 * target.h (struct process_stratum_target): Remove the target ops.
2820 (class process_target): Add the target ops.
2821 (target_enable_btrace): Update.
2822 (target_disable_btrace): Update.
2823 (target_read_btrace): Update.
2824 (target_read_btrace_conf): Update.
2825 * target.cc (process_target::enable_btrace): Define.
2826 (process_target::disable_btrace): Define.
2827 (process_target::read_btrace): Define.
2828 (process_target::read_btrace_conf): Define.
2830 Update the derived classes and callers below.
2832 * linux-low.cc (linux_target_ops): Update.
2833 (linux_process_target:enable_btrace): Define as a wrapper around
2834 linux_enable_btrace.
2835 (linux_low_disable_btrace): Turn into ...
2836 (linux_process_target::disable_btrace): ... this.
2837 (linux_low_read_btrace): Turn into ...
2838 (linux_process_target::read_btrace): ... this.
2839 (linux_low_btrace_conf): Turn into ...
2840 (linux_process_target::read_btrace_conf): ... this.
2841 * linux-low.h (class linux_process_target): Update.
2842 * lynx-low.cc (lynx_target_ops): Update.
2843 * nto-low.cc (nto_target_ops): Update.
2844 * win32-low.cc (win32_target_ops): Update.
2846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2848 Turn process_stratum_target's supports_agent op into a method of
2851 * target.h (struct process_stratum_target): Remove the target op.
2852 (class process_target): Add the target op.
2853 (target_supports_agent): Update the macro.
2854 * target.cc (process_target::supports_agent): Define.
2856 Update the derived classes and callers below.
2858 * linux-low.cc (linux_target_ops): Update.
2859 (linux_supports_agent): Turn into ...
2860 (linux_process_target::supports_agent): ... this.
2861 * linux-low.h (class linux_process_target): Update.
2862 * lynx-low.cc (lynx_target_ops): Update.
2863 * nto-low.cc (nto_target_ops): Update.
2864 * win32-low.cc (win32_target_ops): Update.
2866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2868 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2869 method of process_target.
2871 * target.h (struct process_stratum_target): Remove the target op.
2872 (class process_target): Add the target op. Also add
2873 'supports_qxfer_libraries_svr4'.
2874 * target.cc (process_target::qxfer_libraries_svr4): Define.
2875 (process_target::supports_qxfer_libraries_svr4): Define.
2877 Update the derived classes and callers below.
2879 * server.cc (handle_qxfer_libraries_svr4): Update.
2880 (handle_query): Update.
2881 * linux-low.cc (linux_target_ops): Update.
2882 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2883 (linux_qxfer_libraries_svr4): Turn into ...
2884 (linux_process_target::qxfer_libraries_svr4): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892 Turn process_stratum_target's supports_disable_randomization op
2893 into a method of process_target.
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op.
2897 (target_supports_disable_randomization): Update the macro.
2898 * target.cc (process_target::supports_disable_randomization): Define.
2900 Update the derived classes and callers below.
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_supports_disable_randomization): Turn into ...
2904 (linux_process_target::supports_disable_randomization): ... this.
2905 * linux-low.h (class linux_process_target): Update.
2906 * lynx-low.cc (lynx_target_ops): Update.
2907 * nto-low.cc (nto_target_ops): Update.
2908 * win32-low.cc (win32_target_ops): Update.
2910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912 Turn process_stratum_target's emit_ops op into a method of
2915 * target.h (struct process_stratum_target): Remove the target op.
2916 (class process_target): Add the target op.
2917 (target_emit_ops): Update the macro.
2918 * target.cc (process_target::emit_ops): Define.
2920 Update the derived classes and callers below.
2922 * linux-low.cc (linux_target_ops): Update.
2923 (linux_emit_ops): Turn into ...
2924 (linux_process_target::emit_ops): ... this.
2925 * linux-low.h (class linux_process_target): Update.
2926 * lynx-low.cc (lynx_target_ops): Update.
2927 * nto-low.cc (nto_target_ops): Update.
2928 * win32-low.cc (win32_target_ops): Update.
2930 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2932 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2933 and get_min_fast_tracepoint_insn_len ops into methods of
2936 * target.h (struct process_stratum_target): Remove the target ops.
2937 (class process_target): Add the target ops. Also add
2938 'supports_fast_tracepoints'.
2939 (target_supports_fast_tracepoints): Update the macro.
2940 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2941 (install_fast_tracepoint_jump_pad): Update and rename the macro
2943 (target_install_fast_tracepoint_jump_pad): ... this.
2944 * target.cc (process_target::supports_fast_tracepoints): Define.
2945 (process_target::install_fast_tracepoint_jump_pad): Define.
2946 (process_target::get_min_fast_tracepoint_insn_len): Define.
2948 Update the derived classes and callers below.
2950 * tracepoint.cc (install_fast_tracepoint): Update.
2951 * linux-low.cc (linux_target_ops): Update.
2952 (linux_process_target::supports_fast_tracepoints): Define.
2953 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2954 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2955 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2956 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2957 * linux-low.h (class linux_process_target): Update.
2958 * lynx-low.cc (lynx_target_ops): Update.
2959 * nto-low.cc (nto_target_ops): Update.
2960 * win32-low.cc (win32_target_ops): Update.
2962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2964 Turn process_stratum_target's stabilize_threads op into a
2965 method of process_target.
2967 * target.h (struct process_stratum_target): Remove the target op.
2968 (class process_target): Add the target op.
2969 (target_stabilize_threads): Update the macro.
2970 * target.cc (process_target::stabilize_threads): Define.
2972 Update the derived classes and callers below.
2974 * server.cc (handle_status): Update.
2975 * tracepoint.cc (cmd_qtdp): Update.
2976 (cmd_qtstart): Update.
2977 * linux-low.cc (linux_target_ops): Update.
2978 (linux_stabilize_threads): Turn into ...
2979 (linux_process_target::stabilize_threads): ... this.
2980 (linux_wait_1): Update.
2981 * linux-low.h (class linux_process_target): Update.
2982 * lynx-low.cc (lynx_target_ops): Update.
2983 * nto-low.cc (nto_target_ops): Update.
2984 * win32-low.cc (win32_target_ops): Update.
2986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988 Turn process_stratum_target's pause_all and unpause_all ops
2989 into methods of process_target.
2991 * target.h (struct process_stratum_target): Remove the target ops.
2992 (class process_target): Add the target ops.
2993 (pause_all): Update the macro and rename to...
2994 (target_pause_all): ... this.
2995 (unpause_all): Update the macro and rename to...
2996 (target_unpause_all): ... this.
2997 * target.cc (process_target::pause_all): Define.
2998 (process_target::unpause_all): Define.
3000 Update the derived classes and callers below.
3002 * server.cc (handle_status): Update.
3003 * tracepoint.cc (clear_installed_tracepoints): Update.
3005 (cmd_qtstart): Update.
3006 (stop_tracing): Update.
3007 (cmd_qtstatus): Update.
3008 (upload_fast_traceframes): Update.
3009 (run_inferior_command): Update.
3010 * linux-low.cc (linux_target_ops): Update.
3011 (linux_pause_all): Turn into ...
3012 (linux_process_target::pause_all): ... this.
3013 (linux_unpause_all): Turn into ...
3014 (linux_process_target::unpause_all): ... this.
3015 (linux_process_target::prepare_to_access_memory): Update.
3016 (linux_process_target::done_accessing_memory): Update.
3017 * linux-low.h (class linux_process_target): Update.
3018 * lynx-low.cc (lynx_target_ops): Update.
3019 * nto-low.cc (nto_target_ops): Update.
3020 * win32-low.cc (win32_target_ops): Update.
3022 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3024 Turn process_stratum_target's get_tib_address op into a method of
3027 * target.h (struct process_stratum_target): Remove the target op.
3028 (class process_target): Add the target op. Also add
3029 'supports_get_tib_address'.
3030 * target.cc (process_target::get_tib_address): Define.
3031 (process_target::supports_get_tib_address): Define.
3033 Update the derived classes and callers below.
3035 * server.cc (handle_query): Update.
3036 * linux-low.cc (win32_target_ops): Update.
3037 * lynx-low.cc (lynx_target_ops): Update.
3038 * nto-low.cc (nto_target_ops): Update.
3039 * win32-low.cc (win32_target_ops): Update.
3040 (win32_process_target::supports_get_tib_address): Define.
3041 (win32_get_tib_address): Turn into ...
3042 (win32_process_target::get_tib_address): ... this.
3043 * win32-low.h (class win32_process_target): Update.
3045 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3047 Turn process_stratum_target's thread_stopped op into a method of
3050 * target.h (struct process_stratum_target): Remove the target op.
3051 (class process_target): Add the target op. Also add
3052 'supports_thread_stopped'.
3053 (target_thread_stopped): Update the macro.
3054 * target.cc (process_target::thread_stopped): Define.
3055 (process_target::supports_thread_stopped): Define.
3056 (prepare_to_access_memory): Update.
3058 Update the derived classes and callers below.
3060 * server.cc (queue_stop_reply_callback): Update.
3061 * linux-low.cc (linux_target_ops): Update.
3062 (linux_process_target::supports_thread_stopped): Define.
3063 (linux_thread_stopped): Turn into ...
3064 (linux_process_target::thread_stopped): ... this.
3065 * linux-low.h (class linux_process_target): Update.
3066 * lynx-low.cc (lynx_target_ops): Update.
3067 * nto-low.cc (nto_target_ops): Update.
3068 * win32-low.cc (win32_target_ops): Update.
3070 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3072 Turn process_stratum_target's read_pc and write_pc ops into
3073 methods of process_target.
3075 * target.h (struct process_stratum_target): Remove the target ops.
3076 (class process_target): Add the target ops.
3077 * target.cc (process_target::read_pc): Define.
3078 (process_target::write_pc): Define.
3080 Update the derived classes and callers below.
3082 * regcache.cc (regcache_read_pc): Update.
3083 (regcache_write_pc): Update.
3084 * linux-low.cc (linux_target_ops): Update.
3085 (linux_read_pc): Turn into ...
3086 (linux_process_target::read_pc): ... this.
3087 (linux_write_pc): Turn into ...
3088 (linux_process_target::write_pc): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 * win32-low.cc (win32_target_ops): Update.
3094 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3096 Turn process_stratum_target's supports_tracepoints op into a
3097 method of process_target.
3099 * target.h (struct process_stratum_target): Remove the target op.
3100 (class process_target): Add the target op.
3101 (target_supports_tracepoints): Update the macro.
3102 * target.cc (process_target::supports_tracepoints): Define.
3104 Update the derived classes and callers below.
3106 * linux-low.cc (linux_target_ops): Update.
3107 (linux_supports_tracepoints): Turn into ...
3108 (linux_process_target::supports_tracepoints): ... this.
3109 * linux-low.h (class linux_process_target): Update.
3110 * lynx-low.cc (lynx_target_ops): Update.
3111 * nto-low.cc (nto_target_ops): Update.
3112 * win32-low.cc (win32_target_ops): Update.
3114 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3116 Turn process_stratum_target's process_qsupported op into a method
3119 * target.h (struct process_stratum_target): Remove the target op.
3120 (class process_target): Add the target op.
3121 (target_process_qsupported): Update the macro.
3122 * target.cc (process_target::process_qsupported): Define.
3124 Update the derived classes and callers below.
3126 * linux-low.cc (linux_target_ops): Update.
3127 (linux_process_qsupported): Turn into ...
3128 (linux_process_target::process_qsupported): ... this.
3129 * linux-low.h (class linux_process_target): Update.
3130 * lynx-low.cc (lynx_target_ops): Update.
3131 * nto-low.cc (nto_target_ops): Update.
3132 * win32-low.cc (win32_target_ops): Update.
3134 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136 Turn process_stratum_target's read_loadmap op into a method of
3139 * target.h (struct process_stratum_target): Remove the target op.
3140 (class process_target): Add the target op. Also add
3141 'supports_read_loadmap'.
3142 * target.cc (process_target::read_loadmap): Define.
3143 (process_target::supports_read_loadmap): Define.
3145 Update the derived classes and callers below.
3147 * server.cc (handle_qxfer_fdpic): Update.
3148 (handle_query): Update.
3149 * linux-low.cc (linux_target_ops): Update.
3150 (linux_process_target::supports_read_loadmap): Define.
3151 (linux_read_loadmap): Turn into ...
3152 (linux_process_target::read_loadmap): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160 Turn process_stratum_target's core_of_thread op into a method of
3163 * target.h (struct process_stratum_target): Remove the target op.
3164 (class process_target): Add the target op.
3165 (target_core_of_thread): Update the macro.
3166 * target.cc (process_target::core_of_thread): Define.
3168 Update the derived classes and callers below.
3170 * linux-low.cc (linux_target_ops): Update.
3171 (linux_process_target::core_of_thread): Define.
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 handle_monitor_command op into a
3180 method of process_target.
3182 * target.h (struct process_stratum_target): Remove the target op.
3183 (class process_target): Add the target op.
3184 (target_handle_monitor_command): Update the macro.
3185 * target.cc (process_target::handle_monitor_command): Define.
3187 Update the derived classes and callers below.
3189 * server.cc (handle_query): Update.
3190 * linux-low.cc (linux_target_ops): Update.
3191 (linux_process_target::handle_monitor_command): Define.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's handle_new_gdb_connection op into a
3200 method of process_target.
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op.
3204 (target_handle_new_gdb_connection): Update the macro.
3205 * target.cc (process_target::handle_new_gdb_connection): Define.
3207 Update the derived classes and callers below.
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_handle_new_gdb_connection): Turn into ...
3211 (linux_process_target::handle_new_gdb_connection): ... this.
3212 * linux-low.h (class linux_process_target): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.cc (win32_target_ops): Update.
3217 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3219 Turn process_stratum_target's supports_fork_events,
3220 supports_vfork_events, and supports_exec_events ops into methods
3223 * target.h (struct process_stratum_target): Remove the target ops.
3224 (class process_target): Add the target ops.
3225 (target_supports_fork_events): Update the macro.
3226 (target_supports_vfork_events): Update the macro.
3227 (target_supports_exec_events): Update the macro.
3228 * target.cc (process_target::supports_fork_events): Define.
3229 (process_target::supports_vfork_events): Define.
3230 (process_target::supports_exec_events): Define.
3232 Update the derived classes and callers below.
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_supports_fork_events): Turn into ...
3236 (linux_process_target::supports_fork_events): ... this.
3237 (linux_supports_vfork_events): Turn into ...
3238 (linux_process_target::supports_vfork_events): ... this.
3239 (linux_supports_exec_events): Turn into ...
3240 (linux_process_target::supports_exec_events): ... this.
3241 * linux-low.h (class linux_process_target): Update.
3242 * lynx-low.cc (lynx_target_ops): Update.
3243 * nto-low.cc (nto_target_ops): Update.
3244 * win32-low.cc (win32_target_ops): Update.
3246 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248 Turn process_stratum_target's supports_multi_process op into a
3249 method of process_target.
3251 * target.h (struct process_stratum_target): Remove the target op.
3252 (class process_target): Add the target op.
3253 * target.cc (process_target::supports_multi_process): Define.
3254 (target_supports_multi_process): Update.
3256 Update the derived classes and callers below.
3258 * linux-low.cc (linux_target_ops): Update.
3259 (linux_supports_multi_process): Turn into ...
3260 (linux_process_target::supports_multi_process): ... this.
3261 * linux-low.h (class linux_process_target): Update.
3262 * lynx-low.cc (lynx_target_ops): Update.
3263 * nto-low.cc (nto_target_ops): Update.
3264 * win32-low.cc (win32_target_ops): Update.
3266 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3268 Turn process_stratum_target's supports_non_stop, async, and
3269 start_non_stop ops into methods of process_target.
3271 * target.h (struct process_stratum_target): Remove the target ops.
3272 (class process_target): Add the target ops.
3273 (target_supports_non_stop): Update the macro.
3274 (target_async): Update the macro.
3275 (start_non_stop): Remove declaration.
3276 * target.cc (process_target::supports_non_stop): Define.
3277 (process_target::async): Define.
3278 (process_target::start_non_stop): Define.
3279 (start_non_stop): Remove.
3281 Update the derived classes and callers below.
3283 * server.cc (handle_qxfer_siginfo): Update.
3284 (handle_query): Update.
3285 * linux-low.cc (linux_target_ops): Update.
3286 (linux_supports_non_stop): Turn into ...
3287 (linux_process_target::supports_non_stop): ... this.
3288 (linux_async): Turn into ...
3289 (linux_process_target::async): ... this.
3290 (linux_start_non_stop): Turn into ...
3291 (linux_process_target::start_non_stop): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 (nto_supports_non_stop): Remove; rely on the default behavior
3297 * win32-low.cc (win32_target_ops): Update.
3299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301 Turn process_stratum_target's qxfer_siginfo op into a method of
3304 * target.h (struct process_stratum_target): Remove the target op.
3305 (class process_target): Add the target op. Also add
3306 'supports_qxfer_siginfo'.
3307 * target.cc (process_target::qxfer_siginfo): Define.
3308 (process_target::supports_qxfer_siginfo): Define.
3310 Update the derived classes and callers below.
3312 * server.cc (handle_qxfer_siginfo): Update.
3313 (handle_query): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_process_target::supports_qxfer_siginfo): Define.
3316 (linux_xfer_siginfo): Turn into ...
3317 (linux_process_target::qxfer_siginfo): ... this.
3318 * linux-low.h (class linux_process_target): Update.
3319 * lynx-low.cc (lynx_target_ops): Update.
3320 * nto-low.cc (nto_target_ops): Update.
3321 * win32-low.cc (win32_target_ops): Update.
3323 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3325 Turn process_stratum_target's qxfer_osdata op into a method of
3328 * target.h (struct process_stratum_target): Remove the target op.
3329 (class process_target): Add the target op. Also add
3330 'supports_qxfer_osdata'.
3331 * target.cc (process_target::qxfer_osdata): Define.
3332 (process_target::supports_qxfer_osdata): Define.
3334 Update the derived classes and callers below.
3336 * server.cc (handle_qxfer_osdata): Update.
3337 (handle_query): Update.
3338 * linux-low.cc (linux_target_ops): Update.
3339 (linux_process_target::supports_qxfer_osdata): Define.
3340 (linux_qxfer_osdata): Turn into ...
3341 (linux_process_target::qxfer_osdata): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 * win32-low.cc (win32_target_ops): Update.
3347 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349 Turn process_stratum_target's hostio_last_error op into a
3350 method of process_target.
3352 * target.h (struct process_stratum_target): Remove the target op.
3353 (class process_target): Add the target op.
3354 * target.cc: Add "hostio.h" to includes.
3355 (process_target::hostio_last_error): Define.
3357 Update the derived classes and callers below.
3359 * hostio.cc (hostio_error): Update.
3360 * linux-low.cc: Remove "hostio.h" from includes.
3361 (linux_target_ops): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.h (class win32_process_target): Update.
3365 * win32-low.cc (win32_target_ops): Update.
3366 (wince_hostio_last_error): Turn into ...
3367 (win32_process_target::hostio_last_error): ... this.
3369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371 Turn process_stratum_target's get_tls_address op into a method of
3374 * target.h (struct process_stratum_target): Remove the target op.
3375 (class process_target): Add the target op. Also add
3376 'supports_get_tls_address'.
3377 * target.cc (process_target::get_tls_address): Define.
3378 (process_target::supports_get_tls_address): Define.
3380 Update the derived classes and callers below.
3382 * server.cc (handle_query): Update.
3383 * linux-low.cc (linux_target_ops): Update.
3384 (linux_process_target::supports_get_tls_address): Define.
3385 (linux_process_target::get_tls_address): Define.
3386 * linux-low.h (class linux_process_target): Update.
3387 * lynx-low.cc (lynx_target_ops): Update.
3388 * nto-low.cc (nto_target_ops): Update.
3389 * win32-low.cc (win32_target_ops): Update.
3391 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3393 Turn process_stratum_target's read_offsets op into a method of
3396 * target.h (struct process_stratum_target): Remove the target op.
3397 (class process_target): Add the target op. Also add
3398 'supports_read_offsets'.
3399 * target.cc (process_target::read_offsets): Define.
3400 (process_target::supports_read_offsets): Define.
3402 Update the derived classes and callers below.
3404 * server.cc (handle_query): Update.
3405 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3406 (linux_target_ops): Update.
3407 (linux_process_target::supports_read_offsets): Define.
3408 (linux_read_offsets): Turn into ...
3409 (linux_process_target::read_offsets): ... this.
3410 * linux-low.h (class linux_process_target): Update.
3411 * lynx-low.cc (lynx_target_ops): Update.
3412 * nto-low.cc (nto_target_ops): Update.
3413 * win32-low.cc (win32_target_ops): Update.
3415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3417 Turn process_stratum_target's stopped_by_watchpoint and
3418 stopped_data_address ops into methods of process_target.
3420 * target.h (struct process_stratum_target): Remove the target ops.
3421 (class process_target): Add the target ops.
3422 * target.cc (process_target::stopped_by_watchpoint): Define.
3423 (process_target::stopped_data_address): Define.
3425 Update the derived classes and callers below.
3427 * remote-utils.cc (prepare_resume_reply): Update.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_stopped_by_watchpoint): Turn into ...
3430 (linux_process_target::stopped_by_watchpoint): ... this.
3431 (linux_stopped_data_address): Turn into ...
3432 (linux_process_target::stopped_data_address): ... this.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 (nto_stopped_by_watchpoint): Turn into ...
3437 (nto_process_target::stopped_by_watchpoint): ... this.
3438 (nto_stopped_data_address): Turn into ...
3439 (nto_process_target::stopped_data_address): ... this.
3440 * nto-low.h (class nto_process_target): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3442 (win32_stopped_by_watchpoint): Turn into ...
3443 (win32_process_target::stopped_by_watchpoint): ... this.
3444 (win32_stopped_data_address): Turn into ...
3445 (win32_process_target::stopped_data_address): ... this.
3446 * win32-low.h (class win32_process_target): Update.
3448 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3450 Turn process_stratum_target's supports_hardware_single_step op into
3451 a method of process_target.
3453 * target.h (struct process_stratum_target): Remove the target op.
3454 (class process_target): Add the target op.
3455 (target_supports_hardware_single_step): Update the macro.
3456 (target_can_do_hardware_single_step): Remove declaration.
3457 * target.cc (process_target::supports_hardware_single_step): Define.
3458 (target_can_do_hardware_single_step): Remove.
3460 Update the derived classes and callers below.
3462 * linux-low.h (class linux_process_target): Update.
3463 * linux-low.cc (linux_target_ops): Update.
3464 (linux_supports_hardware_single_step): Turn into ...
3465 (linux_process_target::supports_hardware_single_step): ... this.
3466 * lynx-low.h (class lynx_process_target): Update.
3467 * lynx-low.cc (lynx_target_ops): Update.
3468 (lynx_process_target::supports_hardware_single_step): Define.
3469 * nto-low.h (class nto_process_target): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 (nto_process_target::supports_hardware_single_step): Define.
3472 * win32-low.h (class win32_process_target): Update.
3473 * win32-low.cc (win32_target_ops): Update.
3474 (win32_process_target::supports_hardware_single_step): Define.
3476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3479 ops into methods of process_target.
3481 * target.h (struct process_stratum_target): Remove the target ops.
3482 (class process_target): Add the target ops.
3483 (target_stopped_by_hw_breakpoint): Update the macro.
3484 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3485 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3486 (process_target::supports_stopped_by_hw_breakpoint): Define.
3488 Update the derived classes and callers below.
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_stopped_by_hw_breakpoint): Turn into ...
3492 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3493 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3494 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3495 * linux-low.h (class linux_process_target): Update.
3496 * lynx-low.cc (lynx_target_ops): Update.
3497 * nto-low.cc (nto_target_ops): Update.
3498 * win32-low.cc (win32_target_ops): Update.
3500 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3503 ops into methods of process_target.
3505 * target.h (struct process_stratum_target): Remove the target ops.
3506 (class process_target): Add the target ops.
3507 (target_stopped_by_sw_breakpoint): Update the macro.
3508 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3509 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3510 (process_target::supports_stopped_by_sw_breakpoint): Define.
3512 Update the derived classes and callers below.
3514 * linux-low.cc (linux_target_ops): Update.
3515 (linux_stopped_by_sw_breakpoint): Turn into ...
3516 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3517 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3518 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3519 * linux-low.h (class linux_process_target): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526 Turn process_stratum_target's insert_point and remove_point ops
3527 into methods of process_target.
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops.
3531 * target.cc (process_target::insert_point): Define.
3532 (process_target::remove_point): Define.
3534 Update the derived classes and callers below.
3536 * mem-break.cc (set_raw_breakpoint_at): Update.
3537 (delete_raw_breakpoint): Update.
3538 (uninsert_raw_breakpoint): Update.
3539 (reinsert_raw_breakpoint): Update.
3540 * linux-low.cc (linux_target_ops): Update.
3541 (linux_insert_point): Turn into ...
3542 (linux_process_target::insert_point): ... this.
3543 (linux_remove_point): Turn into ...
3544 (linux_process_target::remove_point): ... this.
3545 * linux-low.h (class linux_process_target): Update.
3546 * lynx-low.cc (lynx_target_ops): Update.
3547 * nto-low.cc (nto_target_ops): Update.
3548 (nto_insert_point): Turn into ...
3549 (nto_process_target::insert_point): ... this.
3550 (nto_remove_point): Turn into ...
3551 (nto_process_target::remove_point): ... this.
3552 * nto-low.h (class nto_process_target): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3554 (win32_insert_point): Turn into ...
3555 (win32_process_target::insert_point): ... this.
3556 (win32_remove_point): Turn into ...
3557 (win32_process_target::remove_point): ... this.
3558 * win32-low.h (class win32_process_target): Update.
3560 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3562 Turn process_stratum_target's supports_z_point_type op into a
3563 method of process_target.
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op.
3567 * target.cc (process_target::supports_z_point_type): Define.
3569 Update the derived classes and callers below.
3571 * mem-break.cc (z_type_supported): Update.
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_supports_z_point_type): Turn into ...
3574 (linux_process_target::supports_z_point_type): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 (nto_supports_z_point_type): Turn into ...
3579 (nto_process_target::supports_z_point_type): ... this.
3580 * nto-low.h (class nto_process_target): Update.
3581 * win32-low.cc (win32_target_ops): Update.
3582 (win32_supports_z_point_type): Turn into ...
3583 (win32_process_target::supports_z_point_type): ... this.
3584 * win32-low.h (class win32_process_target): Update.
3586 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3588 Turn process_stratum_target's read_auxv op into a method of
3591 * target.h (class process_stratum_target): Remove the target op.
3592 (struct process_target): Add the target op. Also add
3593 'supports_read_auxv'.
3594 * target.cc (process_target::read_auxv): Define.
3595 (process_target::supports_read_auxv): Define.
3597 Update the derived classes and callers below.
3599 * server.cc (handle_qxfer_auxv): Update.
3600 (handle_query): Update.
3601 * linux-low.cc (linux_target_ops): Update.
3602 (linux_process_target::supports_read_auxv): Define.
3603 (linux_read_auxv): Turn into ...
3604 (linux_process_target::read_auxv): ... this.
3605 * linux-low.h (class linux_process_target): Update.
3606 * lynx-low.cc (lynx_target_ops): Update.
3607 * nto-low.cc (nto_target_ops): Update.
3608 (nto_process_target::supports_read_auxv): Define.
3609 (nto_read_auxv): Turn into ...
3610 (nto_process_target::read_auxv): ... this.
3611 * nto-low.h (class nto_process_target): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3614 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616 Turn process_stratum_target's request_interrupt op into a method of
3619 * target.h (struct process_stratum_target): Remove the target op.
3620 (class process_target): Add the target op.
3622 Update the derived classes and callers below.
3624 * remote-utils.cc (putpkt_binary_1): Update.
3625 (input_interrupt): Update.
3627 * server.cc (handle_v_requests): Update.
3628 * linux-low.cc (linux_target_ops): Update.
3629 (linux_request_interrupt): Turn into ...
3630 (linux_process_target::request_interrupt): ... this.
3631 * linux-low.h (class linux_process_target): Update.
3632 * lynx-low.cc (lynx_target_ops): Update.
3633 (lynx_request_interrupt): Turn into ...
3634 (lynx_process_target::request_interrupt): ... this.
3635 * lynx-low.h (class lynx_process_target): Update.
3636 * nto-low.cc (nto_target_ops): Update.
3637 (nto_request_interrupt): Turn into ...
3638 (nto_process_target::request_interrupt): ... this.
3639 * nto-low.h (class nto_process_target): Update.
3640 * win32-low.cc (win32_target_ops): Update.
3641 (win32_request_interrupt): Turn into ...
3642 (win32_process_target::request_interrupt): ... this.
3643 * win32-low.h (class win32_process_target): Update.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's look_up_symbols op into a method of
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op.
3652 * target.cc (process_target::look_up_symbols): Define.
3654 Update the derived classes and callers below.
3656 * server.cc (handle_query): Update.
3657 * linux-low.cc (linux_target_ops): Update.
3658 (linux_look_up_symbols): Turn into ...
3659 (linux_process_target::look_up_symbols): ... this.
3660 * linux-low.h (class linux_process_target): Update.
3661 * lynx-low.cc (lynx_target_ops): Update.
3662 * nto-low.cc (nto_target_ops): Update.
3663 * win32-low.cc (win32_target_ops): Update.
3665 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3667 Turn process_stratum_target's read_memory and write_memory
3668 ops into methods of process_target.
3670 * target.h (struct process_stratum_target): Remove the target ops.
3671 (class process_target): Add the target ops.
3673 Update the derived classes and callers below.
3675 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3676 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3677 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3678 (arm_get_syscall_trapinfo): Update.
3679 * linux-cris-low.cc (cris_breakpoint_at): Update.
3680 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3681 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3682 * linux-mips-low.cc (mips_breakpoint_at): Update.
3683 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3684 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3685 * linux-sh-low.cc (sh_breakpoint_at): Update.
3686 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3687 (sparc_store_gregset_from_stack): Update.
3688 (sparc_breakpoint_at): Update.
3689 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3690 * linux-tile-low.cc (tile_breakpoint_at): Update.
3691 * linux-x86-low.cc (x86_breakpoint_at): Update.
3692 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3693 * mem-brea.cc (insert_memory_breakpoint): Update.
3694 (validate_inserted_breakpoint): Update.
3695 * target.cc (read_inferior_memory): Update.
3696 (target_write_memory): Update.
3697 * linux-low.cc (linux_target_ops): Update.
3698 (linux_read_memory): Make a wrapper around the read_memory target
3700 (linux_process_target::read_memory): Rename from linux_read_memory.
3701 (linux_write_memory): Turn into ...
3702 (linux_process_target::write_memory): ... this.
3703 * linux-low.h (class linux_process_target): Update.
3704 * lynx-low.cc (lynx_target_ops): Update.
3705 (lynx_read_memory): Turn into ...
3706 (lynx_process_target::read_memory): ... this.
3707 (lynx_write_memory): Turn into ...
3708 (lynx_process_target::write_memory): ... this.
3709 * lynx-low.h (class lynx_process_target): Update.
3710 * nto-low.cc (nto_target_ops): Update.
3711 (nto_read_memory): Turn into ...
3712 (nto_process_target::read_memory): ... this.
3713 (nto_write_memory): Turn into ...
3714 (nto_process_target::write_memory): ... this.
3715 * nto-low.h (class nto_process_target): Update.
3716 * win32-low.cc (win32_target_ops): Update.
3717 (win32_read_inferior_memory): Turn into ...
3718 (win32_process_target::read_memory): ... this.
3719 (win32_write_inferior_memory): Turn into ...
3720 (win32_process_target::write_memory): ... this.
3721 * win32-low.h (class win32_process_target): Update.
3723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725 Turn process_stratum_target's prepare_to_access_memory and
3726 done_accessing_memory ops into methods of process_target.
3728 * target.h (struct process_stratum_target): Remove the target ops.
3729 (class process_target): Add the target ops.
3730 * target.cc (process_target::prepare_to_access_memory): Define.
3731 (process_target::done_accessing_memory): Define.
3732 (prepare_to_access_memory): Update.
3733 (done_accessing_memory): Update.
3735 Update the derived classes and callers below.
3737 * linux-low.cc (linux_target_ops): Update.
3738 (linux_prepare_to_access_memory): Turn into ...
3739 (linux_process_target::prepare_to_access_memory): ... this.
3740 (linux_done_accessing_memory): Turn into ...
3741 (linux_process_target::done_accessing_memory): ... this.
3742 * linux-low.h (class linux_process_target): Update.
3743 * lynx-low.cc (lynx_target_ops): Update.
3744 * nto-low.cc (nto_target_ops): Update.
3745 * win32-low.cc (win32_target_ops): Update.
3747 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3749 Turn process_stratum_target's fetch_registers and store_registers
3750 ops into methods of process_target.
3752 * target.h (struct process_stratum_target): Remove the target ops.
3753 (class process_target): Add the target ops.
3754 (fetch_inferior_registers): Update the macro.
3755 (store_inferior_registers): Update the macro.
3757 Update the derived classes and callers below.
3759 * linux-low.cc (linux_target_ops): Update.
3760 (linux_fetch_registers): Turn into ...
3761 (linux_process_target::fetch_registers): ... this.
3762 (linux_store_registers): Turn into ...
3763 (linux_process_target::store_registers): ... this.
3764 * linux-low.h (class linux_process_target): Update.
3765 * lynx-low.cc (lynx_target_ops): Update.
3766 (lynx_fetch_registers): Turn into ...
3767 (lynx_process_target::fetch_registers): ... this.
3768 (lynx_store_registers): Turn into ...
3769 (lynx_process_target::store_registers): ... this.
3770 * lynx-low.h (class lynx_process_target): Update.
3771 * nto-low.cc (nto_target_ops): Update.
3772 (nto_fetch_registers): Turn into ...
3773 (nto_process_target::fetch_registers): ... this.
3774 (nto_store_registers): Turn into ...
3775 (nto_process_target::store_registers): ... this.
3776 * nto-low.h (class nto_process_target): Update.
3777 * win32-low.cc (win32_target_ops): Update.
3778 (win32_fetch_inferior_registers): Turn into ...
3779 (win32_process_target::fetch_registers): ... this.
3780 (win32_store_inferior_registers): Turn into ...
3781 (win32_process_target::store_registers): ... this.
3782 * win32-low.h (class win32_process_target): Update.
3784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3786 Turn process_stratum_target's wait op into a method of
3789 * target.h (struct process_stratum_target): Remove the target op.
3790 (class process_target): Add the target op.
3792 Update the derived classes and callers below.
3794 * target.cc (target_wait): Update.
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_wait): Turn into ...
3797 (linux_process_target::wait): ... this.
3798 * linux-low.h (class linux_process_target): Update.
3799 * lynx-low.cc (lynx_target_ops): Update.
3800 (lynx_wait): Turn into ...
3801 (lynx_process_target::wait): ... this.
3802 * lynx-low.h (class lynx_process_target): Update.
3803 * nto-low.cc (nto_target_ops): Update.
3804 (nto_wait): Turn into ...
3805 (nto_process_target::wait): ... this.
3806 * nto-low.h (class nto_process_target): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3808 (win32_wait): Turn into ...
3809 (win32_process_target::wait): ... this.
3810 (do_initial_child_stuff): Update.
3811 * win32-low.h (class win32_process_target): Update.
3813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815 Turn process_stratum_target's resume op into a method of
3818 * target.h (struct process_stratum_target): Remove the target op.
3819 (class process_target): Add the target op.
3821 Update the derived classes and callers below.
3823 * server.cc (resume): Update.
3824 * target.cc (target_stop_and_wait): Update.
3825 (target_continue_no_signal): Update.
3826 (target_continue): Update.
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_resume): Turn into ...
3829 (linux_process_target::resume): ... this.
3830 * linux-low.h (class linux_process_target): Update.
3831 * lynx-low.cc (lynx_target_ops): Update.
3832 (lynx_resume): Turn into ...
3833 (lynx_process_target::resume): ... this.
3834 * lynx-low.h (class lynx_process_target): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 (nto_resume): Turn into ...
3837 (nto_process_target::resume): ... this.
3838 * nto-low.h (class nto_process_target): Update.
3839 * win32-low.cc (win32_target_ops): Update.
3840 (win32_resume): Turn into ...
3841 (win32_process_target::resume): ... this.
3842 (win32_process_target::detach): Update.
3843 (do_initial_child_stuff): Update.
3844 * win32-low.h (class win32_process_target): Update.
3846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848 Turn process_stratum_target's thread_alive op into a method of
3851 * target.h (struct process_stratum_target): Remove the target op.
3852 (class process_target): Add the target op.
3853 (mythread_alive): Update the macro.
3855 Update the derived classes and callers below.
3857 * linux-low.cc (linux_target_ops): Update.
3858 (linux_thread_alive): Turn into ...
3859 (linux_process_target::thread_alive): ... this.
3860 (wait_for_sigstop): Update.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_thread_alive): Turn into ...
3864 (lynx_process_target::thread_alive): ... this.
3865 * lynx-low.h (class lynx_process_target): Update.
3866 * nto-low.cc (nto_target_ops): Update.
3867 (nto_thread_alive): Turn into ...
3868 (nto_process_target::thread_alive): ... this.
3869 * nto-low.h (class nto_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_thread_alive): Turn into ...
3872 (win32_process_target::thread_alive): ... this.
3873 * win32-low.h (class win32_process_target): Update.
3875 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877 Turn process_stratum_target's join op into a method of
3880 * target.h (struct process_stratum_target): Remove the target op.
3881 (class process_target): Add the target op.
3882 (join_inferior): Update the macro.
3884 Update the derived classes and callers below.
3886 * linux-low.cc (linux_target_ops): Update.
3887 (linux_join): Turn into ...
3888 (linux_process_target::join): ... this.
3889 * linux-low.h (class linux_process_target): Update.
3890 * lynx-low.cc (lynx_target_ops): Update.
3891 (lynx_join): Turn into ...
3892 (lynx_process_target::join): ... this.
3893 * lynx-low.h (class lynx_process_target): Update.
3894 * nto-low.cc (nto_target_ops): Update.
3895 (nto_process_target::join): Define.
3896 * nto-low.h (class nto_process_target): Update.
3897 * win32-low.cc (win32_target_ops): Update.
3898 (win32_join): Turn into ...
3899 (win32_process_target::join): ... this.
3900 * win32-low.h (class win32_process_target): Update.
3902 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3904 Turn process_stratum_target's mourn op into a method of
3907 * target.h (struct process_stratum_target): Remove the target op.
3908 (class process_target): Add the target op.
3910 Update the derived classes and callers below.
3912 * target.cc (target_mourn_inferior): Update.
3913 * linux-low.cc (linux_target_ops): Update.
3914 (linux_mourn): Turn into ...
3915 (linux_process_target::mourn): ... this.
3916 (handle_extended_wait): Update.
3917 (linux_process_target::kill): Update.
3918 (linux_process_target::detach): Update.
3919 * linux-low.h (class linux_process_target): Update.
3920 * lynx-low.cc (lynx_target_ops): Update.
3921 (lynx_mourn): Turn into ...
3922 (lynx_process_target::mourn): ... this.
3923 * lynx-low.h (class lynx_process_target): Update.
3924 * nto-low.cc (nto_target_ops): Update.
3925 (nto_mourn): Turn into ...
3926 (nto_process_target::mourn): ... this.
3927 * nto-low.h (class nto_process_target): Update.
3928 * win32-low.cc (win32_target_ops): Update.
3929 (win32_mourn): Turn into ...
3930 (win32_process_target::mourn): ... this.
3931 * win32-low.h (class win32_process_target): Update.
3933 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3935 Turn process_stratum_target's detach op into a method of
3938 * target.h (struct process_stratum_target): Remove the target op.
3939 (class process_target): Add the target op.
3940 (detach_inferior): Update the macro.
3942 Update the derived classes and callers below.
3944 * linux-low.cc (linux_target_ops): Update.
3945 (linux_detach): Turn into ...
3946 (linux_process_target::detach): ... this.
3947 * linux-low.h (class linux_process_target): Update.
3948 * lynx-low.cc (lynx_target_ops): Update.
3949 (lynx_detach): Turn into ...
3950 (lynx_process_target::detach): ... this.
3951 * lynx-low.h (class lynx_process_target): Update.
3952 * nto-low.cc (nto_target_ops): Update.
3953 (nto_detach): Turn into ...
3954 (nto_process_target::detach): ... this.
3955 * nto-low.h (class nto_process_target): Update.
3956 * win32-low.cc (win32_target_ops): Update.
3957 (win32_detach): Turn into ...
3958 (win32_process_target::detach): ... this.
3959 * win32-low.h (class win32_process_target): Update.
3961 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963 Turn process_stratum_target's kill op into a method of
3966 * target.h (struct process_stratum_target): Remove the target op.
3967 (class process_target): Add the target op.
3969 Update the derived classes and callers below.
3971 * target.cc (kill_inferior): Update.
3972 * linux-low.cc (linux_target_ops): Update.
3973 (linux_kill): Turn into ...
3974 (linux_process_target::kill): ... this.
3975 * linux-low.h (class linux_process_target): Update.
3976 * lynx-low.cc (lynx_target_ops): Update.
3977 (lynx_kill): Turn into ...
3978 (lynx_process_target::kill): ... this.
3979 * lynx-low.h (class lynx_process_target): Update.
3980 * nto-low.cc (nto_target_ops): Update.
3981 (nto_kill): Turn into ...
3982 (nto_process_target::kill): ... this.
3983 * nto-low.h (class nto_process_target): Update.
3984 * win32-low.cc (win32_target_ops): Update.
3985 (win32_kill): Turn into ...
3986 (win32_process_target::kill): ... this.
3987 * win32-low.h (class win32_process_target): Update.
3989 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3991 Turn process_stratum_target's attach op into a method of
3994 * target.h (struct process_stratum_target): Remove the target op.
3995 (class process_target): Add the target op.
3996 (myattach): Update the macro.
3998 Update the derived classes and callers below.
4000 * linux-low.cc (linux_target_ops): Update.
4001 (linux_attach): Turn into ...
4002 (linux_process_target::attach): ... this.
4003 * linux-low.h (class linux_process_target): Update.
4004 * lynx-low.cc (lynx_target_ops): Update.
4005 (lynx_attach): Turn into ...
4006 (lynx_process_target::attach): ... this.
4007 * lynx-low.h (class lynx_process_target): Update.
4008 * nto-low.cc (nto_target_ops): Update.
4009 (nto_attach): Turn into ...
4010 (nto_process_target::attach): ... this.
4011 * nto-low.h (class nto_process_target): Update.
4012 * win32-low.cc (win32_target_ops): Update.
4013 (win32_attach): Turn into ...
4014 (win32_process_target::attach): ... this.
4015 * win32-low.h (class win32_process_target): Update.
4017 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4019 Turn process_stratum_target's post_create_inferior op into a method
4022 * target.h (struct process_stratum_target): Remove the target op.
4023 (class process_target): Add the target op.
4024 (target_post_create_inferior): Update the macro.
4025 * target.cc (process_target::post_create_inferior): Define.
4027 Update the derived classes and callers below.
4029 * linux-low.cc (linux_target_ops): Update.
4030 (linux_post_create_inferior): Turn into ...
4031 (linux_process_target::post_create_inferior): ... this.
4032 * linux-low.h (class linux_process_target): Update.
4033 * lynx-low.cc (lynx_target_ops): Update.
4034 * nto-low.cc (nto_target_ops): Update.
4035 * win32-low.cc (win32_target_ops): Update.
4037 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4039 Turn process_stratum_target's create_inferior op into a method of
4042 * target.h (struct process_stratum_target): Remove the target op.
4043 (class process_target): Add the target op.
4044 (create_inferior): Rename the macro to ...
4045 (target_create_inferior): ... this.
4047 Update the derived classes and callers below.
4049 * server.cc (handle_v_run): Update.
4050 (captured_main): Update.
4051 (process_serial_event): Update.
4052 * linux-low.cc (linux_target_ops): Update.
4053 (linux_create_inferior): Turn into ...
4054 (linux_process_target::create_inferior): ... this.
4055 * linux-low.h (class linux_process_target): Update.
4056 * lynx-low.cc (lynx_target_ops): Update.
4057 (lynx_create_inferior): Turn into ...
4058 (lynx_process_target::create_inferior): ... this.
4059 * lynx-low.h (class lynx_process_target): Update.
4060 * nto-low.cc (nto_target_ops): Update.
4061 (nto_create_inferior): Turn into ...
4062 (nto_process_target::create_inferior): ... this.
4063 * nto-low.h (class nto_process_target): Update.
4064 * win32-low.cc (win32_target_ops): Update.
4065 (win32_create_inferior): Turn into ...
4066 (win32_process_target::create_inferior): ... this.
4067 * win32-low.h (class win32_process_target): Update.
4069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4071 * target.h (class process_target): New class definition.
4072 (struct process_stratum_target) <pt>: New field with type
4074 * linux-low.h (class linux_process_target): Define as a derived
4075 class of 'process_target'.
4076 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4078 * lynx-low.h (class lynx_process_target): Define as a derived
4079 class of 'process_target'.
4080 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4082 * nto-low.h (class nto_process_target): Define as a derived
4083 class of 'process_target'.
4084 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4086 * win32-low.h (class win32_process_target): Define as a derived
4087 class of 'process_target'.
4088 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4091 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4093 * configure: Regenerate.
4095 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4096 Andrew Burgess <andrew.burgess@embecosm.com>
4098 * linux-riscv-low.cc: New file.
4099 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4100 and nat/riscv-linux-tdesc.c.
4101 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4102 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4105 2020-02-14 Tom Tromey <tom@tromey.com>
4107 * acinclude.m4: Don't include acx_configure_dir.m4.
4108 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4109 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4110 (all, install-only, uninstall, clean-info, clean)
4111 (maintainer-clean): Don't recurse.
4112 (subdir_do, all-lib): Remove.
4113 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4115 (generated_files): Update.
4116 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4117 * configure: Rebuild.
4118 * configure.ac: Don't configure gnulib or libiberty.
4121 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4123 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4124 preparing the command line for CreateProcess.
4125 (win32_create_inferior): Reflect the program name in debugging
4126 output that shows the process and its command line.
4128 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4130 * Makefile.in: Rename source files from .c to .cc.
4131 * %.c: Rename to %.cc.
4132 * configure.ac: Rename server.c to server.cc.
4133 * configure: Re-generate.
4135 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4137 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4139 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4141 * win32-low.c (win32_create_inferior): Set signal_pid.
4143 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4144 Pedro Alves <palves@redhat.com>
4146 Skip building gdbserver in a cross-configuration.
4147 * configure.srv: Set $gdbserver_host depending on whether $target
4148 is $host. Use $gdbserver_host instead of $host.
4150 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4152 * configure: Re-generate.
4154 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4156 * configure: Re-generate.
4158 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4160 * acinclude.m4: Update warning.m4 path.
4162 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4164 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4165 (handle_exception): Set siginfo_er.
4166 (win32_xfer_siginfo): New function.
4168 2020-02-07 Tom Tromey <tom@tromey.com>
4169 Pedro Alves <palves@redhat.com>
4171 * README: Update build documentation.
4172 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4174 * configure.ac: Update paths.
4175 * configure: Rebuild.
4176 * acinclude.m4: Update paths.
4177 * Makefile.in: Update include paths.
4178 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4179 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4180 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4181 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4182 (%-generated.c): Update paths.
4183 * Move entire directory from ../gdb/gdbserver.
4185 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4187 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4189 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4191 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4192 assignment instead of srv_linux_obj.
4194 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4196 * server.c (handle_qxfer_libraries): Write segment-address with
4199 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4201 * Makefile.in (install-strip): New target.
4202 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4203 * aclocal.m4: Regenerate.
4204 * configure: Regenerate.
4205 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4207 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4209 * Makefile.in (SFILES): Adjust paths to point to real files.
4210 (OBS): Move waitstatus.o to target/waitstatus.o.
4211 (TAGS): Transform paths appropriately.
4213 (nat/%.o): ... this pattern rule.
4215 (target/%.o): ... this pattern rule.
4216 * configure.srv: Adjust paths throughout to include nat/ prefix
4217 with the revant files.
4218 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4219 * configure: Regenerate.
4221 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4223 * Makefile.in (TAGS): Remove config files from the recipe.
4225 2020-01-14 Tom Tromey <tom@tromey.com>
4227 * configure: Rebuild.
4228 * configure.ac: Remove any checks that were added to common.m4.
4229 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4232 2020-01-14 Tom Tromey <tom@tromey.com>
4234 * server.h: Include config.h.
4235 * gdbreplay.c: Include config.h.
4236 * configure: Rebuild.
4237 * configure.ac: Don't source common.host.
4238 * acinclude.m4: Update path.
4239 * Makefile.in (INCSUPPORT): New variable.
4240 (INCLUDE_CFLAGS): Add INCSUPPORT.
4241 (SFILES): Update paths.
4242 (version-generated.c): Update path to create-version.sh.
4243 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4245 2020-01-14 Tom Tromey <tom@tromey.com>
4247 * configure.ac (LIBS): Use WIN32APILIBS.
4248 (USE_WIN32API): Don't define.
4249 * configure: Rebuild.
4251 2020-01-14 Tom Tromey <tom@tromey.com>
4253 * configure: Rebuild.
4255 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4257 * Makefile.in (%-generated.c): Remove rule for files from
4260 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4262 * configure: Re-generate.
4264 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4266 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4268 * tracepoint.c (stop_tracing, flush_trace_buffer,
4269 about_to_request_buffer_space, get_trace_state_variable_value,
4270 set_trace_state_variable_value, gdb_collect): Add declaration.
4272 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4274 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4275 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4276 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4277 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4278 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4281 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4283 * inferiors.c: Include gdbsupport/common-inferior.h.
4285 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4287 * hostio-errno.c: Include hostio.h.
4289 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4291 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4294 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4296 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4297 * linux-arm-tdesc.h: Include arch/arm.h.
4299 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4301 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4303 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4305 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4306 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4308 2020-01-10 Pedro Alves <palves@redhat.com>
4310 * fork-child.c (post_fork_inferior): Pass target down to
4312 * inferiors.c (switch_to_thread): Add process_stratum_target
4314 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4315 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4316 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4317 * remote-utils.c (prepare_resume_reply): Pass the target to
4319 * target.c (the_target): Now a process_stratum_target.
4320 (done_accessing_memory): Pass the target to switch_to_thread.
4321 (set_target_ops): Ajust to use process_stratum_target.
4322 * target.h (struct target_ops): Rename to ...
4323 (struct process_stratum_target): ... this.
4324 (the_target, set_target_ops): Adjust.
4325 (prepare_to_access_memory): Adjust comment.
4326 * win32-low.c (child_xfer_memory): Adjust to use
4327 process_stratum_target.
4328 (win32_target_ops): Now a process_stratum_target.
4330 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4331 Pedro Alves <palves@redhat.com>
4333 * win32-low.c (get_child_debug_event): Extract the fatal exception
4334 from the exit status and convert to the equivalent Posix signal
4336 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4337 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4339 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4341 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4343 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4345 * server.c (gdbserver_version): Change copyright year to 2020.
4346 * gdbreplay.c (gdbreplay_version): Likewise.
4348 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4350 * configure: Regenerate.
4351 * configure.ac: Quote variable arguments of test.
4353 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4355 * Makefile.in: Fix build with GNU Make 3.81
4357 2019-12-16 Tom Tromey <tromey@adacore.com>
4359 * server.c (get_exec_file): Constify result.
4361 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4363 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4364 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4365 * config.in: Regenerate.
4366 * configure: Regenerate.
4367 * configure.ac: Don't check for strerror.
4368 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4369 Call safe_strerror instead of strerror.
4370 * server.h (strerror): Remove this now-unnecessary declaration.
4371 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4373 (gdb_agent_helper_thread): Likewise.
4374 * utils.c (perror_with_name): Likewise.
4376 2019-11-26 Tom Tromey <tom@tromey.com>
4378 * configure, config.in: Rebuild.
4380 2019-11-26 Tom Tromey <tom@tromey.com>
4382 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4383 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4385 * configure, config.in: Rebuild.
4387 2019-11-26 Tom Tromey <tom@tromey.com>
4389 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4390 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4391 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4392 * acinclude.m4: Include ax_pthread.m4.
4393 * config.in, configure: Rebuild.
4395 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4397 * debug.c (debug_set_output): Call safe_strerror instead of
4399 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4400 (linux_kill_one_lwp): Likewise.
4401 (linux_detach_one_lwp): Likewise.
4402 (linux_wait_for_event_filtered): Likewise.
4403 (store_register): Likewise.
4404 * lynx-low.c (lynx_attach): Likewise.
4405 * mem-break.c (insert_memory_breakpoint): Likewise.
4406 (remove_memory_breakpoint): Likewise.
4407 (delete_fast_tracepoint_jump): Likewise.
4408 (set_fast_tracepoint_jump): Likewise.
4409 (uninsert_fast_tracepoint_jumps_at): Likewise.
4410 (reinsert_fast_tracepoint_jumps_at): Likewise.
4411 * nto-low.c (nto_xfer_memory): Likewise.
4412 (nto_resume): Likewise.
4414 2019-11-20 Luis Machado <luis.machado@linaro.org>
4416 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4417 instead of register count.
4418 * tdesc.c (tdesc_contains_feature): New function.
4419 * tdesc.h (tdesc_contains_feature): New prototype.
4421 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4423 * Makefile.in: Add safe-strerror.c.
4424 * configure: Regenerate.
4425 * configure.ac: Don't source common.host.
4427 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4429 * config.in: Regenerate.
4430 * configure: Regenerate.
4432 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4434 * ax.c (ax_printf): Handle size_t_arg.
4436 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4438 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4439 * mi/mi-main.c (output_cores): Likewise.
4440 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4441 (linux_xfer_osdata_modules): Likewise.
4442 * remote.c (register_remote_support_xml): Likewise.
4443 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4444 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4446 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4448 * configure: Regenerate.
4449 * configure.ac: Remove check for strerror_r.
4451 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4453 * config.in: Regenerate.
4454 * configure: Regenerate.
4455 * configure.ac: Also check for strerror_r.
4457 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4459 * ax.h (debug_agent): Remove duplicate declaration.
4461 2019-10-26 Tom de Vries <tdevries@suse.de>
4463 * linux-aarch64-low.c: Fix typos in comments.
4464 * linux-arm-low.c: Same.
4465 * linux-low.c: Same.
4466 * linux-ppc-low.c: Same.
4467 * proc-service.c: Same.
4470 * tracepoint.c: Same.
4471 * win32-low.c: Same.
4473 2019-10-25 Tom Tromey <tromey@adacore.com>
4475 * utils.c (xstrdup): Remove.
4477 2019-10-23 Tom Tromey <tom@tromey.com>
4479 * configure, config.in: Rebuild.
4481 2019-10-23 Tom Tromey <tom@tromey.com>
4483 * configure: Rebuild.
4484 * acinclude.m4: Use m4_include, not sinclude.
4486 2019-10-17 Tom Tromey <tromey@adacore.com>
4488 * configure: Rebuild.
4489 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4490 in AC_CONFIG_FILES invocation.
4491 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4494 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4496 * server.c: Include xml-builtin.h.
4497 (get_xml_features): Don't declare xml_builtins here.
4499 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4501 * Makefile.in: Remove references to vec-ipa.o.
4503 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4505 * Makefile.in: Remove references to vec.c.
4507 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4509 * server.c (server_waiting): Change to bool.
4510 (extended_protocol): Likewise.
4511 (response_needed): Likewise.
4512 (exit_requested): Likewise.
4513 (run_once): Likewise.
4514 (report_no_resumed): Likewise.
4515 (non_stop): Likewise.
4516 (disable_packet_vCont): Likewise.
4517 (disable_packet_Tthread): Likewise.
4518 (disable_packet_qC): Likewise.
4519 (disable_packet_qfThreadInfo): Likewise.
4520 (handle_general_set): Update.
4521 (handle_detach): Update.
4522 (handle_monitor_command): Update.
4523 (handle_query): Update.
4524 (captured_main): Update.
4525 (process_serial_event): Update.
4526 * server.h (server_waiting): Change to bool.
4527 (disable_packet_vCont): Likewise.
4528 (disable_packet_Tthread): Likewise.
4529 (disable_packet_qC): Likewise.
4530 (disable_packet_qfThreadInfo): Likewise.
4531 (run_once): Likewise.
4532 (non_stop): Likewise.
4533 * target.c (target_stop_and_wait): Update.
4535 2019-10-02 Tom Tromey <tromey@adacore.com>
4537 * Makefile.in (SFILES): Add common-inferior.c.
4538 (OBS): Add common-inferior.o.
4539 * server.c (startup_with_shell): Don't define.
4541 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4543 * linux-low.c (linux_low_read_btrace): Update for change to
4546 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4548 * debug.c (debug_threads): Remove comment in favor of the header.
4549 * debug.h (using_threads): Add declaration.
4550 (debug_threads): Add comment.
4551 * linux-aarch64-low.c: Include debug.h and remove declaration of
4553 * nto-low.c: Likewise.
4554 * remote-utils.c: Likewise.
4555 * thread-db.c: Likewise.
4557 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4559 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4560 and powerpc-cell64l-ipa.o.
4561 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4562 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4563 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4566 * spu-low.c: Remove file.
4568 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4569 (parse_spufs_run): Remove.
4570 (ppc_get_pc): Remove Cell/B.E. support.
4571 (ppc_set_pc): Likewise.
4572 (ppc_breakpoint_at): Likewise.
4573 (ppc_arch_setup): Likewise.
4574 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4575 tdesc_powerpc_cell32l.
4576 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4577 or init_registers_powerpc_cell32l.
4578 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4579 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4580 or init_registers_powerpc_cell32l.
4581 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4582 (init_registers_powerpc_cell32l): Remove prototype.
4583 (init_registers_powerpc_cell64l): Likewise.
4585 * target.h (struct target_ops): Remove qxfer_spu member.
4586 * server.c (handle_qxfer_spu): Remove.
4587 (qxfer_packets): Remove entry for "spu".
4588 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4589 * linux-low.c (SPUFS_MAGIC): Remove.
4590 (spu_enumerate_spu_ids): Remove.
4591 (linux_qxfer_spu): Remove.
4592 (linux_target_ops): Remove qxfer_spu member.
4593 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4594 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4595 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4597 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4599 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4600 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4601 * config.in: Regenerate.
4602 * configure: Regenerate.
4604 2019-08-15 Tom Tromey <tromey@adacore.com>
4606 * target.c (target_write_memory): Use gdb::byte_vector.
4608 2019-08-15 Tom Tromey <tromey@adacore.com>
4610 * tracepoint.c (write_inferior_data_pointer)
4611 (write_inferior_integer, write_inferior_int8)
4612 (write_inferior_uinteger, m_tracepoint_action_download)
4613 (r_tracepoint_action_download, x_tracepoint_action_download)
4614 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4615 (download_agent_expr, download_tracepoint_1)
4616 (download_trace_state_variables, upload_fast_traceframes): Update.
4617 * server.c (gdb_write_memory): Update.
4618 * remote-utils.c (relocate_instruction): Update.
4619 * proc-service.c (ps_pdwrite): Update.
4620 * mem-break.c (remove_memory_breakpoint)
4621 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4622 (uninsert_fast_tracepoint_jumps_at)
4623 (reinsert_fast_tracepoint_jumps_at): Update.
4624 * linux-x86-low.c (append_insns)
4625 (i386_install_fast_tracepoint_jump_pad)
4626 (amd64_write_goto_address, i386_write_goto_address): Update.
4627 * linux-s390-low.c (append_insns, s390_write_goto_address):
4629 * linux-ppc-low.c (ppc_relocate_instruction)
4630 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4631 (ppc_write_goto_address): Update.
4632 * linux-aarch64-low.c (append_insns): Update.
4633 * target.h (struct target_ops): Update.
4634 (write_inferior_memory): Don't declare.
4635 * target.c (target_write_memory): Rename from
4636 write_inferior_memory. Remove old target_write_memory.
4638 2019-08-15 Tom Tromey <tromey@adacore.com>
4640 * target.c (write_inferior_memory): Use std::vector.
4642 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4645 * configure.ac: Drop enable-libmcheck support.
4646 * configure, config.in: Rebuild.
4647 * acinclude.m4: Don't include it.
4649 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4651 * configure.srv: Remove Arm xml files.
4653 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4655 * configure.srv: Add new files. Remove xml generated files.
4656 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4658 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4659 * linux-aarch32-tdesc.c: New file.
4660 * linux-aarch32-tdesc.h: New file.
4661 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4662 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4663 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4664 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4665 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4666 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4667 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4668 (arm_read_description): Call arm_linux_read_description.
4669 (initialize_low_arch): Don't init registers.
4670 * linux-arm-tdesc.c: New file.
4671 * linux-arm-tdesc.h: New file.
4673 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4675 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4676 Move counter inside for.
4677 (arm_read_description): Check ptrace earlier.
4678 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4680 2019-07-09 Tom Tromey <tom@tromey.com>
4682 * configure: Rebuild.
4683 * configure.ac: Change common to gdbsupport.
4684 * acinclude.m4: Change common to gdbsupport.
4685 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4686 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4687 common to gdbsupport.
4688 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4689 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4690 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4691 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4692 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4693 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4694 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4695 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4696 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4697 common to gdbsupport.
4699 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4701 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4703 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4705 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4707 * configure.srv: Remove legacy xml.
4708 * linux-aarch64-low.c (initialize_low_arch): Remove
4709 initialize_low_tdesc call.
4710 * linux-aarch64-tdesc-selftest.c: Remove file.
4711 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4712 * linux-x86-low.c (initialize_low_arch): Remove
4713 initialize_low_tdesc call.
4714 * linux-x86-tdesc-selftest.c: Remove file.
4715 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4717 2019-06-20 Tom de Vries <tdevries@suse.de>
4719 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4720 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4722 2019-06-19 Tom de Vries <tdevries@suse.de>
4724 * debug.h (debug_write): Change return type to ssize_t.
4725 * debug.c (debug_write): Same.
4727 2019-06-14 Tom Tromey <tom@tromey.com>
4729 * configure.ac: Use new path to gnulib.
4730 * configure: Rebuild.
4731 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4734 2019-06-11 Tom Tromey <tom@tromey.com>
4736 * Makefile.in (SFILES): Add alloc.c.
4738 (IPA_OBJS): Add alloc-ipa.o.
4739 (alloc-ipa.o): New target.
4740 (%.o: ../%.c): New pattern rule.
4742 2019-06-10 Tom Tromey <tromey@adacore.com>
4744 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4745 end warning with a newline.
4746 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4748 * thread-db.c (attach_thread): Don't end warning with a newline.
4749 (thread_db_notice_clone): Likewise.
4750 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4752 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4753 end warning with a newline.
4755 2019-06-04 Pedro Alves <palves@redhat.com>
4757 * server.c (captured_main): Use make_unique_xstrdup.
4759 2019-06-02 Tom Tromey <tom@tromey.com>
4761 * gdbreplay.c (fromhex): Remove.
4762 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4764 2019-05-29 Tom Tromey <tromey@adacore.com>
4766 * configure: Rebuild.
4768 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4770 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4771 sign extension code on 32-bit builds.
4773 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4776 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4778 2019-04-19 Tom Tromey <tom@tromey.com>
4780 * server.c (struct vstop_notif): Derive from notif_event.
4782 (queue_stop_reply): Update.
4783 (remove_all_on_match_ptid): Change type. Rewrite.
4784 (discard_queued_stop_replies): Rewrite.
4785 (in_queued_stop_replies_ptid): Change type.
4786 (in_queued_stop_replies): Rewrite.
4787 (notif_stop): Update.
4788 (queue_stop_reply_callback): Update.
4789 (captured_main): Don't call initialize_notif.
4790 (push_stop_notification): Update.
4791 * notif.c (notif_write_event, handle_notif_ack)
4792 (notif_event_enque, notif_push): Update.
4793 (notif_event_xfree, initialize_notif): Remove.
4794 * notif.h (struct notif_event): Include <list>, not
4796 (struct notif_server) <queue>: Now a std::list.
4797 (notif_event_p): Remove typedef.
4798 (initialize_notif): Don't declare.
4799 (struct notif_event): Add virtual destructor.
4801 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4803 * ax.c (ax_vdebug): Call debug_printf.
4804 * debug.c (debug_write): New function.
4805 * debug.h (debug_write): New declaration.
4806 * linux-low.c (sigchld_handler): Call debug_write.
4808 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4810 * debug.c (debug_set_output): New function.
4811 (debug_vprintf): Send output to debug_file.
4812 (debug_flush): Likewise.
4813 * debug.h (debug_set_output): New declaration.
4814 * server.c (handle_monitor_command): Add debug-file option.
4815 (captured_main): Likewise.
4817 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4819 * debug.c (remote_debug): Add definition.
4820 * debug.h (remote_debug): Add declaration.
4821 * hostio.c (remote_debug): Remove declaration.
4822 * remote-utils.c (struct ui_file): Likewise.
4823 (remote_debug): Likewise.
4824 * remote-utils.h (remote_debug): Likewise,
4825 * server.c (remote_debug): Remove definition.
4827 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4829 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4830 when using a 64-bit gdbserver.
4832 2019-04-09 Tom Tromey <tromey@adacore.com>
4834 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4836 2019-04-08 Tom Tromey <tom@tromey.com>
4838 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4840 (linux_resume_one_lwp): Likewise.
4842 2019-04-08 Tom Tromey <tom@tromey.com>
4844 * gdbreplay.c: Update.
4845 * linux-low.c: Update.
4848 2019-04-08 Tom Tromey <tom@tromey.com>
4850 * server.c: Use C++ exception handling.
4851 * linux-low.c: Use C++ exception handling.
4852 * gdbreplay.c: Use C++ exception handling.
4854 2019-04-08 Tom Tromey <tom@tromey.com>
4856 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4857 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4858 (captured_main, main): Update.
4859 * gdbreplay.c (main): Update.
4861 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4863 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4864 value in argument pointer, return 1 if the entry is found and 0
4865 otherwise. Move comment.
4866 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4867 * linux-low.h (linux_get_auxv): Declare.
4868 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4870 2019-04-05 Tom Tromey <tromey@adacore.com>
4872 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4875 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4877 * linux-low.c (AT_HWCAP2): Add define if not already included.
4879 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4881 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4882 (aarch64_arch_setup): Call linux_get_hwcap.
4883 * linux-arm-low.c (arm_get_hwcap): Remove function.
4884 (arm_read_description): Call linux_get_hwcap.
4885 * linux-low.c (linux_get_auxv): New function.
4886 (linux_get_hwcap): Likewise.
4887 (linux_get_hwcap2): Likewise.
4888 * linux-low.h (linux_get_hwcap): New declaration.
4889 (linux_get_hwcap2): Likewise.
4890 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4891 (ppc_arch_setup): Call linux_get_hwcap.
4892 * linux-s390-low.c (s390_get_hwcap): Remove function.
4893 (s390_arch_setup): Call linux_get_hwcap.
4895 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4896 Jiong Wang <jiong.wang@arm.com>
4898 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4899 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4901 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4903 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4904 Jiong Wang <jiong.wang@arm.com>
4906 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4907 (aarch64_get_hwcap): New function.
4908 (aarch64_arch_setup): Read APIA hwcap.
4910 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4911 Jiong Wang <jiong.wang@arm.com>
4913 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4914 (initialize_low_tracepoint): Likewise.
4915 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4916 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4917 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4918 (aarch64_linux_read_description): Likewise.
4919 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4921 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4923 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4924 i386_create_target_description for 'segments' parameter.
4925 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4926 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4927 * win32-i386-low.c (i386_arch_setup): Likewise.
4929 2019-03-12 Tom Tromey <tromey@adacore.com>
4931 * linux-low.c (iterate_over_lwps): Update.
4933 2019-03-06 Tom Tromey <tom@tromey.com>
4935 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4936 (captured_main): Use SCOPE_EXIT.
4938 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4940 * configure.srv: Use '$enable_unittest' instead of '$development'
4941 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4944 2019-02-27 Tom Tromey <tromey@adacore.com>
4946 * gdbreplay.c (logchar): Handle \r\n.
4948 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4950 * linux-low.c (linux_attach): Add process before lwp.
4951 * server.c (attach_inferior): Check if already attached.
4953 2019-02-07 Tom Tromey <tom@tromey.com>
4955 * x86-tdesc.h: Rename include guard.
4956 * x86-low.h: Add include guard.
4957 * wincecompat.h: Rename include guard.
4958 * win32-low.h: Add include guard.
4959 * utils.h: Rename include guard.
4960 * tracepoint.h: Rename include guard.
4961 * tdesc.h: Rename include guard.
4962 * target.h: Rename include guard.
4963 * server.h: Rename include guard.
4964 * remote-utils.h: Rename include guard.
4965 * regcache.h: Rename include guard.
4966 * nto-low.h: Rename include guard.
4967 * notif.h: Add include guard.
4968 * mem-break.h: Rename include guard.
4969 * lynx-low.h: Add include guard.
4970 * linux-x86-tdesc.h: Add include guard.
4971 * linux-s390-tdesc.h: Add include guard.
4972 * linux-ppc-tdesc-init.h: Add include guard.
4973 * linux-low.h: Add include guard.
4974 * linux-aarch64-tdesc.h: Add include guard.
4975 * linux-aarch32-low.h: Add include guard.
4976 * inferiors.h: Rename include guard.
4977 * i387-fp.h: Rename include guard.
4978 * hostio.h: Rename include guard.
4979 * gdbthread.h: Rename include guard.
4980 * gdb_proc_service.h: Rename include guard.
4981 * event-loop.h: Rename include guard.
4982 * dll.h: Rename include guard.
4983 * debug.h: Rename include guard.
4984 * ax.h: Rename include guard.
4986 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4989 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4990 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4992 2019-01-25 Tom Tromey <tom@tromey.com>
4994 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4996 2019-01-25 Tom Tromey <tom@tromey.com>
4998 * win32-low.c: Fix common/ includes.
4999 * win32-i386-low.c: Fix common/ includes.
5000 * tracepoint.c: Fix common/ includes.
5001 * thread-db.c: Fix common/ includes.
5002 * target.h: Fix common/ includes.
5003 * symbol.c: Fix common/ includes.
5004 * spu-low.c: Fix common/ includes.
5005 * server.h: Fix common/ includes.
5006 * server.c: Fix common/ includes.
5007 * remote-utils.c: Fix common/ includes.
5008 * regcache.h: Fix common/ includes.
5009 * regcache.c: Fix common/ includes.
5010 * nto-x86-low.c: Fix common/ includes.
5011 * notif.h: Fix common/ includes.
5012 * mem-break.h: Fix common/ includes.
5013 * lynx-low.c: Fix common/ includes.
5014 * lynx-i386-low.c: Fix common/ includes.
5015 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5016 * linux-x86-low.c: Fix common/ includes.
5017 * linux-low.c: Fix common/ includes.
5018 * inferiors.h: Fix common/ includes.
5019 * i387-fp.c: Fix common/ includes.
5020 * hostio.c: Fix common/ includes.
5021 * hostio-errno.c: Fix common/ includes.
5022 * gdbthread.h: Fix common/ includes.
5023 * gdbreplay.c: Fix common/ includes.
5024 * fork-child.c: Fix common/ includes.
5025 * event-loop.c: Fix common/ includes.
5027 (enum gdb_agent_op): Fix common/ includes.
5029 2019-01-21 Tom Tromey <tom@tromey.com>
5031 * tracepoint.c: Fix includes.
5032 * remote-utils.c: Fix includes.
5033 * linux-x86-low.c: Fix includes.
5035 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5037 * gdbreplay.c (gdbreplay_version): Update copyright year in
5039 * server.c (gdbserver_version): Likewise.
5041 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5043 * linux-low.c (add_lwp): Switch ordering.
5045 2018-11-29 Tom Tromey <tom@tromey.com>
5047 * win32-low.c (win32_join): Take pid, not process.
5048 * target.h (struct target_ops) <join>: Change argument type.
5049 (join_inferior): Change argument name.
5050 * spu-low.c (spu_join): Take pid, not process.
5051 * server.c (handle_detach): Preserve pid before destroying
5053 * lynx-low.c (lynx_join): Take pid, not process.
5054 * linux-low.c (linux_join): Take pid, not process.
5056 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5058 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5059 (aarch64_cannot_fetch_register): Likewise.
5060 (struct linux_target_ops): Update references.
5062 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5064 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5066 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5068 * configure.srv (ipa_ppc_linux_regobj): Add
5069 powerpc-isa207-htm-vsx32l-ipa.o and
5070 powerpc-isa207-htm-vsx64l-ipa.o.
5071 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5072 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5073 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5074 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5075 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5076 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5077 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5078 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5079 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5080 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5081 (init_registers_powerpc_isa207_htm_vsx32l)
5082 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5083 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5084 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5085 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5086 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5087 (ppc_store_tm_ctarregset): New functions.
5088 (ppc_regsets): Add entries for HTM regsets.
5089 (ppc_arch_setup): Set htm in features struct when needed. Set
5090 sizes for the HTM regsets.
5091 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5092 (initialize_low_arch): Call
5093 init_registers_powerpc_isa207_htm_vsx32l and
5094 init_registers_powerpc_isa207_htm_vsx64l.
5095 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5096 PPC_TDESC_ISA207_HTM_VSX.
5097 (initialize_low_tracepoint): Call
5098 init_registers_powerpc_isa207_htm_vsx32l and
5099 init_registers_powerpc_isa207_htm_vsx64l.
5101 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5103 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5104 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5105 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5106 (ppc_store_pmuregset): New functions.
5107 (ppc_regsets): Add entries for ebb and pmu regsets.
5108 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5109 pmu regsets are available. Set sizes for these regsets.
5111 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5113 * configure.srv (ipa_ppc_linux_regobj): Add
5114 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5115 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5116 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5117 rs6000/powerpc-isa207-vsx32l.xml, and
5118 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5119 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5120 <PPC_TDESC_ISA207_VSX>: New enum value.
5121 (init_registers_powerpc_isa207_vsx32l): Declare.
5122 (init_registers_powerpc_isa207_vsx64l): Declare.
5123 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5124 (ppc_store_tarregset): New function.
5125 (ppc_regsets): Add entry for the TAR regset.
5126 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5127 size for the TAR regsets.
5128 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5129 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5130 and init_registers_powerpc_isa207_vsx64l.
5131 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5132 (initialize_low_tracepoint): Call
5133 init_registers_powerpc_isa207_vsx32l and
5134 init_registers_powerpc_isa207_vsx64l.
5136 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5137 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5139 * configure.srv (ipa_ppc_linux_regobj): Add
5140 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5141 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5142 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5143 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5144 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5145 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5146 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5147 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5148 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5149 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5150 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5151 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5152 (ppc_hwcap): Add comment.
5153 (ppc_hwcap2): New global.
5154 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5155 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5156 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5157 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5158 when needed. Set sizes for the the DSCR and PPR regsets.
5159 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5160 (initialize_low_arch): Call
5161 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5162 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5163 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5164 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5165 (initialize_low_tracepoint): Call
5166 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5167 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5169 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5171 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5173 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5174 Simon Marchi <simark@simark.ca>
5176 * acinclude.m4: Include "../selftest.m4".
5177 * configure: Regenerate.
5178 * configure.ac: Use "GDB_AC_SELFTEST".
5179 * configure.srv: Use "$enable_unittests" instead of
5180 "$development" when checking whether unit tests have been
5182 * server.c (captured_main): Update message informing that
5183 selftests have been disabled.
5185 2018-10-04 Tom Tromey <tom@tromey.com>
5187 * configure: Rebuild.
5189 2018-10-04 Tom Tromey <tom@tromey.com>
5191 * server.c (handle_status): Rename inner "thread".
5192 (process_serial_event): Declare "res" in 'm' case.
5193 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5194 (iterate_over_lwps): Rename inner "thread".
5195 (linux_qxfer_libraries_svr4): Rename inner "len".
5196 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5198 2018-10-01 Gary Benson <gbenson@redhat.com>
5200 * gdb_proc_service.h: Moved common code to
5201 common/gdb_proc_service.h.
5203 2018-10-01 Gary Benson <gbenson@redhat.com>
5205 * gdb_proc_service.h: Synchronize comments and whitespace with
5206 GDB's version of this file.
5208 2018-09-25 Tom Tromey <tom@tromey.com>
5210 * configure: Rebuild.
5211 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5213 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5215 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5216 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5217 ($(IPA_LIB)): Sort IPA_OBJS.
5219 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5221 * Makefile.in: Remove references to $(ADD_DEPS).
5223 2018-09-16 Tom Tromey <tom@tromey.com>
5225 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5227 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5230 2018-09-05 Tom Tromey <tom@tromey.com>
5232 * configure: Rebuild.
5234 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5237 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5239 2018-08-27 Tom Tromey <tom@tromey.com>
5242 * configure: Rebuild.
5244 2018-08-27 Tom Tromey <tom@tromey.com>
5246 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5247 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5248 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5249 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5250 (s390x_emit_stack_adjust): Add casts to unsigned char.
5252 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5256 * server.h (struct client_state) <disable_randomization>:
5259 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5261 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5263 (mips_supply_ptrace_register): Likewise.
5265 2018-07-22 Tom Tromey <tom@tromey.com>
5267 * configure: Rebuild.
5269 2018-07-22 Tom Tromey <tom@tromey.com>
5271 * win32-low.c (win32_create_inferior): Remove unused variables.
5272 * gdbreplay.c (remote_open): Remove unused variable.
5273 * remote-utils.c (remote_prepare): Remove unused variable.
5274 * x86-tdesc.h (X86_TDESC_H): Define.
5275 (amd64_expedite_regs): Define conditionally.
5276 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5277 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5278 * remote-utils.c (readchar): Remove unused variable.
5280 2018-07-13 Pedro Alves <palves@redhat.com>
5282 * linux-low.c (linux_kill): Change parameter to process_info
5283 pointer instead of pid. Adjust.
5284 * lynx-low.c (lynx_kill): Likewise.
5285 * nto-low.c (nto_kill): Likewise.
5286 * spu-low.c (spu_kill): Likewise.
5287 * win32-low.c (win32_kill): Likewise.
5288 * server.c (handle_v_kill, kill_inferior_callback)
5289 (detach_or_kill_for_exit): Adjust.
5290 * target.c (kill_inferior): Change parameter to process_info
5291 pointer instead of pid. Adjust.
5292 * target.h (struct target_ops) <kill>: Change parameter to
5293 process_info pointer instead of pid. Adjust all implementations
5295 (kill_inferior): Likewise.
5297 2018-07-13 Pedro Alves <palves@redhat.com>
5299 * linux-low.c (linux_detach, linux_join): Change parameter to
5300 process_info pointer instead of pid. Adjust.
5301 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5302 * nto-low.c (nto_detach): Likewise.
5303 * spu-low.c (spu_detach, spu_join): Likewise.
5304 * win32-low.c (win32_detach, win32_join): Likewise.
5305 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5306 * target.h (struct target_ops) <detach, join>: Change parameter to
5307 process_info pointer instead of pid. Adjust all implementations
5309 (detach_inferior, join_inferior): Rename 'pid' parameter to
5312 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5313 Jan Kratochvil <jan.kratochvil@redhat.com>
5314 Paul Fertser <fercerpav@gmail.com>
5315 Tsutomu Seki <sekiriki@gmail.com>
5317 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5318 (OBS): Add 'common/netstuff.o'.
5319 (GDBREPLAY_OBS): Likewise.
5320 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5321 (remote_open): Implement support for IPv6
5323 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5325 (handle_accept_event): Accept connections from IPv6 sources.
5326 (remote_prepare): Handle IPv6-style hostnames; implement
5327 support for IPv6 connections.
5328 (remote_open): Implement support for printing connections from
5331 2018-07-11 Pedro Alves <palves@redhat.com>
5334 * mem-break.c (any_persistent_commands): Add process_info
5335 parameter and use it instead of relying on the current process.
5336 Change return type to bool.
5337 * mem-break.h (any_persistent_commands): Add process_info
5338 parameter and change return type to bool.
5339 * server.c (handle_detach): Remove require_running_or_return call.
5340 Look up the process_info for the process we're about to detach.
5341 If not found, return back error to GDB. Adjust
5342 any_persistent_commands call to pass down a process pointer.
5344 2018-07-11 Pedro Alves <palves@redhat.com>
5346 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5347 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5348 instead of collect_register_by_name.
5349 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5350 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5352 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5353 Pedro Alves <palves@redhat.com>
5355 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5357 2018-07-03 Tom Tromey <tom@tromey.com>
5359 * linux-low.c: Update.
5360 * lynx-low.c: Update.
5361 * mem-break.c: Update.
5362 * nto-low.c: Update.
5363 * remote-utils.c: Update.
5365 * spu-low.c: Update.
5367 * win32-low.c: Update.
5369 2018-07-03 Tom Tromey <tom@tromey.com>
5373 2018-07-03 Tom Tromey <tom@tromey.com>
5375 * linux-low.c: Update.
5377 2018-07-03 Tom Tromey <tom@tromey.com>
5381 2018-07-03 Tom Tromey <tom@tromey.com>
5383 * linux-low.c: Update.
5384 * linux-mips-low.c: Update.
5385 * lynx-low.c: Update.
5386 * nto-low.c: Update.
5387 * remote-utils.c: Update.
5389 * spu-low.c: Update.
5391 * thread-db.c: Update.
5393 2018-07-03 Tom Tromey <tom@tromey.com>
5395 * linux-low.c: Update.
5396 * linux-mips-low.c: Update.
5397 * lynx-low.c: Update.
5398 * mem-break.c: Update.
5399 * nto-low.c: Update.
5400 * remote-utils.c: Update.
5402 * spu-low.c: Update.
5404 * tracepoint.c: Update.
5406 2018-07-03 Tom Tromey <tom@tromey.com>
5408 * linux-low.c: Update.
5409 * linux-ppc-low.c: Update.
5410 * linux-x86-low.c: Update.
5411 * proc-service.c: Update.
5413 * spu-low.c: Update.
5414 * thread-db.c: Update.
5415 * win32-low.c: Update.
5417 2018-07-03 Tom Tromey <tom@tromey.com>
5419 * linux-low.c: Update.
5420 * lynx-low.c: Update.
5421 * nto-low.c: Update.
5422 * remote-utils.c: Update.
5423 * spu-low.c: Update.
5424 * thread-db.c: Update.
5425 * win32-low.c: Update.
5427 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5429 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5430 parameter in call to 'amd64_create_target_description'.
5432 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 * x86-tdesc.h: Remove executable permission flag.
5436 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5438 * configure.ac: Remove AC_PREREQ, add missing quoting.
5439 * configure: Re-generate.
5440 * config.in: Re-generate.
5441 * aclocal.m4: Re-generate.
5443 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5445 * tracepoint.h (current_traceframe): Remove declaration.
5447 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5449 * linux-aarch64-low.c (is_sve_tdesc): New function.
5450 (aarch64_sve_regs_copy_to_regcache): Likewise.
5451 (aarch64_sve_regs_copy_from_regcache): Likewise.
5452 (aarch64_regs_info): Add SVE checks.
5453 (initialize_low_arch): Initialize SVE.
5455 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5457 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5459 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5461 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5462 (initialize_low_tracepoint): Likewise
5463 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5464 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5466 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5468 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5470 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5472 * server.h (PBUFSIZ): Increase size
5474 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5476 * regcache.c (regcache::raw_compare): New function.
5477 * regcache.h (regcache::raw_compare): New declaration.
5479 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5481 * regcache.c (new_register_cache): Use new.
5482 (free_register_cache): Use delete.
5483 (register_data): Use const.
5484 (supply_register): Move body inside regcache.
5485 (regcache::raw_supply): New override function.
5486 (collect_register): Move body inside regcache.
5487 (regcache::raw_collect): New override function.
5488 (regcache::get_register_status): New override function.
5489 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5491 2018-06-09 Tom Tromey <tom@tromey.com>
5493 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5495 (event_queue): Use std::queue.
5496 (gdb_event_xfree): Remove.
5497 (initialize_event_loop, process_event, wait_for_event): Update.
5499 2018-06-08 Stan Cox <scox@redhat.com>
5501 * win32-low.c (win32_create_inferior): last_ptid and last_status
5502 moved to client_state.
5504 2018-06-08 Pedro Alves <palves@redhat.com>
5506 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5507 common/common-exceptions.o, common/common-utils.o,
5508 common/errors.o, common/print-utils.o and utils.o.
5509 * gdbreplay.c: Include "common-defs.h" instead of the two
5510 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5511 string.h or alloca.h.
5512 (perror_with_name): Delete.
5513 (remote_open): Use xstrdup instead of strdup.
5514 (main): Rename to ...
5515 (captured_main): ... this.
5518 2018-06-08 Tom Tromey <tom@tromey.com>
5520 * linux-low.c (linux_low_read_btrace): Update.
5522 2018-06-04 Stan Cox <scox@redhat.com>
5524 * server.h (struct client_state): New.
5525 * server.c (cont_thread, general_thread, multi_process)
5526 (report_fork_events, report_vfork_events, report_exec_events)
5527 (report_thread_events, swbreak_feature, hwbreak_feature)
5528 (vCont_supported, disable_randomization, pass_signals)
5529 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5530 Moved to client_state.
5531 * remote-utils.c (remote_debug, noack_mode)
5532 (transport_is_reliable): Moved to client_state.
5533 * tracepoint.c (current_traceframe): Moved to client_state.
5536 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5537 linux-low.c, remote-utils.h, target.c: Use client_state.
5539 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5541 * configure.srv: Add new c/h file.
5543 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5545 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5548 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5550 * gdb.arch/mips-fpregset-core.exp: New test.
5551 * gdb.arch/mips-fpregset-core.c: New test source.
5553 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5556 * hostio.c (require_int): Do not report overflow for integers
5557 between 0xfffffff and 0x7fffffff.
5559 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5561 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5562 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5563 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5565 (the_low_target): Wire them.
5567 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5569 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5570 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5571 mode. Call collect_register_by_name with vscr using
5572 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5573 (ppc_store_vrregset): Add and set vscr_offset variable as in
5574 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5577 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5579 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5580 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5581 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5583 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5585 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5586 (ppc_store_vsxregset): Likewise.
5587 (ppc_fill_vrregset): Likewise.
5588 (ppc_store_vrregset): Likewise.
5589 (ppc_fill_evrregset): Likewise.
5590 (ppc_store_evrregset): Likewise.
5591 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5592 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5595 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5597 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5598 wordsize of the inferior. Call ppc_linux_target_wordsize.
5600 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5602 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5603 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5604 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5605 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5606 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5607 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5608 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5609 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5610 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5611 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5612 (tdesc_powerpc_e500l): Remove.
5613 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5614 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5615 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5616 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5618 (ppc_arch_setup): Remove target description matching code. Fill a
5619 ppc_linux_features struct and call ppc_linux_match_description
5622 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5624 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5625 width of the requested register exceeds the width of the
5627 (mips_cannot_store_register): Likewise.
5629 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5631 * linux-mips-low.c (mips_fetch_register): New function. Update
5633 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5634 (the_low_target): Wire `mips_fetch_register'.
5636 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5638 * lynx-i386-low.c (LYNXOS_178): New macro.
5639 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5640 the layout on LynxOS-178.
5641 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5642 handle floating point registers that are not supported by
5645 2018-05-10 Tom Tromey <tom@tromey.com>
5647 * configure: Rebuild.
5649 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5652 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5653 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5654 Use it to set the expedite_regs field in the given tdesc.
5655 * x86-tdesc.h: New file.
5656 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5657 Adjust following the addition of the new expedite_regs parameter
5658 to init_target_desc.
5659 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5660 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5661 (i386_linux_read_description, amd64_linux_read_description):
5662 Adjust following the addition of the new expedite_regs parameter
5663 to init_target_desc.
5664 * lynx-i386-low.c: #include "x86-tdesc.h".
5665 (lynx_i386_arch_setup): Adjust following the addition of the new
5666 expedite_regs parameter to init_target_desc.
5667 * nto-x86-low.c: #include "x86-tdesc.h".
5668 (nto_x86_arch_setup): Adjust following the addition of the new
5669 expedite_regs parameter to init_target_desc.
5670 * win32-i386-low.c: #include "x86-tdesc.h".
5671 (i386_arch_setup): Adjust following the addition of the new
5672 expedite_regs parameter to init_target_desc.
5674 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5677 * win32-low.c (win32_create_inferior): Add call to my_wait
5678 setting last_status global.
5680 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5683 * win32-low.c (create_process): Only call gdb_tilde_expand if
5684 inferior_cwd is not NULL.
5686 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5688 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5689 registers to the cache if their values have changed.
5690 (i387_xsave_to_cache): Provide default values for x87 control
5691 registers when these features are available, but disabled.
5692 * regcache.c (supply_register_by_name_zeroed): New function.
5693 * regcache.h (supply_register_by_name_zeroed): Declare new
5696 2018-05-07 Tom Tromey <tom@tromey.com>
5698 * configure: Rebuild.
5700 2018-05-04 Tom Tromey <tom@tromey.com>
5702 * configure: Rebuild.
5704 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5705 Pedro Alves <palves@redhat.com>
5707 * linux-aarch64-low.c (aarch64_stopped_data_address):
5710 2018-04-27 Tom Tromey <tom@tromey.com>
5712 * configure: Rebuild.
5714 2018-04-23 Tom Tromey <tom@tromey.com>
5716 * configure: Rebuild.
5718 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5720 * Makefile.in (depcomp): Add "..".
5721 (all_deps_files): New and use it.
5723 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5725 * configure.srv (aarch64*-*-linux*): Don't include xml.
5726 (i[34567]86-*-cygwin*): Likewise.
5727 (i[34567]86-*-linux*): Likewise.
5728 (i[34567]86-*-lynxos*): Likewise.
5729 (i[34567]86-*-mingw32ce*): Likewise.
5730 (i[34567]86-*-mingw*): Likewise.
5731 (i[34567]86-*-nto*): Likewise.
5732 (tic6x-*-uclinux): Likewise.
5733 (x86_64-*-linux*): Likewise.
5734 (x86_64-*-mingw*): Likewise.
5735 (x86_64-*-cygwin*): Likewise.
5737 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5739 * tdesc.c: Remove xml parameter.
5741 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5743 * server.c (get_features_xml): Remove cast.
5744 * tdesc.c (void target_desc::accept): Fill in function.
5745 (tdesc_get_features_xml): Remove old xml creation.
5746 (print_xml_feature::visit_pre): Add xml vistor.
5747 * tdesc.h (struct target_desc): Make xmltarget mutable.
5748 (tdesc_get_features_xml): Remove declaration.
5750 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5752 * tdesc.c (tdesc_architecture_name): Add new function.
5753 (tdesc_osabi_name): Likewise.
5754 (tdesc_get_features_xml): Use new functions.
5756 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5758 * tdesc.c (tdesc_create_flags): Remove.
5759 (tdesc_add_flag): Likewise.
5760 (tdesc_named_type): Likewise.
5761 (tdesc_create_union): Likewise.
5762 (tdesc_create_struct): Likewise.
5763 (tdesc_create_vector): Likewise.
5764 (tdesc_add_bitfield): Likewise.
5765 (tdesc_add_field): Likewise.
5766 (tdesc_set_struct_size): Likewise.
5768 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5770 * tdesc.c (~target_desc): Remove implictly deleted items.
5771 (init_target_desc): Iterate all features.
5772 (tdesc_get_features_xml): Use vector.
5773 (tdesc_create_feature): Create feature.
5774 * tdesc.h (tdesc_feature) Remove
5775 (target_desc): Add features.
5777 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5779 * Makefile.in: Add common/tdesc.c
5780 * tdesc.c (init_target_desc): init all reg_defs from register
5782 (tdesc_create_reg): Create tdesc_reg.
5783 * tdesc.h (tdesc_feature): Add register vector.
5785 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5787 * tdesc.h (struct target_desc) <features>: Change type to
5788 std::vector<std::string>.
5789 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5791 (tdesc_get_features_xml): Likewise.
5792 (tdesc_create_feature): Likewise.
5794 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5796 * regcache.c (find_register_by_number): Return a ref.
5797 (find_regno): Use references.
5798 (register_size): Likewise.
5799 (register_data): Likewise.
5800 * tdesc.c (target_desc::~target_desc): Remove free calls.
5801 (target_desc::operator==): Use std::vector compare.
5802 (init_target_desc): Use reference.
5803 (tdesc_create_reg): Use reg constructors.
5804 * tdesc.h (struct target_desc): Replace pointer with object.
5806 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5808 * regcache.c (find_register_by_number): Make static.
5809 (find_regno): Use find_register_by_number
5810 * regcache.h (struct reg): Remove declaration.
5812 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5814 * tdesc.c (target_desc::~target_desc): Move to here.
5815 (target_desc::operator==): Likewise.
5816 * tdesc.h (target_desc::~target_desc): Move from here.
5817 (target_desc::operator==): Likewise.
5819 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5821 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5823 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5825 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5827 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5828 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5829 and init_registers_s390_gs_linux64.
5831 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5833 * linux-s390-low.c (s390_fill_gs): Remove function.
5834 (s390_fill_gsbc): Remove function.
5835 (s390_regsets): Set fill functions for the guarded storage regsets
5838 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5840 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5841 the word size. Add comment.
5842 (s390_get_wordsize): New function.
5843 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5844 pswm with it. Instead, use s390_get_wordsize to determine the
5845 word size first and derive the correct tdesc from that directly.
5847 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5849 * Makefile.in: Include silent-rules.mk.
5850 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5851 (COMPILE): Add ECHO_CXX.
5852 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5853 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5854 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5855 (version-generated.c): Add ECHO_GEN.
5856 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5857 (IPAGENT_COMPILE): Add ECHO_CXX.
5858 (%-generated.c): Add ECHO_REGDAT.
5860 2018-03-14 Tom Tromey <tom@tromey.com>
5863 * ax.c (ax_printf): Special case for NULL.
5865 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5867 * linux-low.c (linux_qxfer_libraries_svr4): Use
5868 xml_escape_text_append.
5870 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5872 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5874 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5876 * server.c (handle_general_set): Remove unnecessary xstrdup.
5878 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5880 * server.c (parse_debug_format_options): Adjust to
5881 delim_string_to_char_ptr_vec changes.
5882 * thread-db.c (thread_db_load_search): Adjust to
5883 dirnames_to_char_ptr_vec changes.
5885 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5887 * target.h (target_enable_btrace, target_disable_btrace)
5888 (target_read_btrace, target_read_btrace_conf): Turn macro into
5889 inline function. Throw error if target method is not defined.
5890 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5891 check for btrace target method. Be prepared to handle exceptions
5892 from btrace target methods.
5894 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5896 * server.c (captured_main): Change order of error message printed
5897 when the current working directory cannot be found.
5899 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5901 * server.c: Include "filenames.h" and "pathstuff.h".
5902 (program_name): Delete variable.
5903 (program_path): New anonymous class.
5904 (get_exec_wrapper): Use "program_path" instead of
5906 (handle_v_run): Likewise.
5907 (captured_main): Likewise.
5908 (process_serial_event): Likewise.
5910 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5912 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5913 (OBJS): Add "pathstuff.o".
5914 * server.c (current_directory): New global variable.
5915 (captured_main): Initialize "current_directory".
5917 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5919 * tdesc.c: Use common/tdesc.h.
5920 * tdesc.h: Likewise.
5922 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5923 Simon Marchi <simon.marchi@ericsson.com>
5925 * Makefile.in: Switch order of make rules.
5927 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5929 * Makefile.in: Add common directory in build.
5930 * configure.ac: Add common reference.
5931 * configure: Regenerate.
5933 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5935 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5936 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5937 * spu-low.c (spu_target_ops): Likewise.
5938 * win32-low.c (win32_target_ops): Likewise.
5939 * server.c (supported_btrace_packets): Report packets unconditionally.
5940 * target.h (target_ops) <supports_btrace>: Remove.
5941 (target_supports_btrace): Remove.
5943 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5945 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5946 (handle_btrace_disable): Change return type to void. Use exceptions
5948 (handle_btrace_general_set): Catch exception and copy message to
5951 2018-02-08 Tom Tromey <tom@tromey.com>
5953 * linux-low.c (install_software_single_step_breakpoints): Use
5954 make_scoped_restore.
5955 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5956 (do_restore_current_thread_cleanup): Remove.
5957 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5960 2018-02-08 Tom Tromey <tom@tromey.com>
5962 * mem-break.c (set_raw_breakpoint_at): Use
5963 gdb::unique_xmalloc_ptr.
5965 2018-01-30 Pedro Alves <palves@redhat.com>
5968 * target.c (target_terminal::terminal_state): Rename to ...
5969 (target_terminal::m_terminal_state): ... this.
5971 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5973 * linux-low.c (handle_extended_wait): Surround call to
5974 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5976 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5978 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5979 linux_ptrace_attach_fail_reason_string now returning an
5981 (linux_attach): Likewise.
5982 * thread-db.c (attach_thread): Likewise.
5984 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5987 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5988 checking for fs_base/gs_base fields in struct user_regs_struct.
5989 * configure: Regenerate.
5991 2018-01-16 Yao Qi <yao.qi@linaro.org>
5994 * linux-low.c (fetch_register): Call supply_register instead of
5997 2018-01-08 Yao Qi <yao.qi@linaro.org>
5998 Simon Marchi <simon.marchi@ericsson.com>
6000 * Makefile.in (OBS): Remove selftest.o.
6001 * configure.ac: Set srv_selftest_objs if $development is true.
6002 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6003 * configure: Re-generated.
6004 * server.c (captured_main): Wrap variable selftest_filter with
6007 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6009 * server.c (parse_debug_format_options): Return std::string.
6010 (handle_monitor_command, captured_main): Adjust.
6012 2018-01-05 Pedro Alves <palves@redhat.com>
6015 * server.c (captured_main): Pass quiet=false to
6016 save_original_signals_state.
6018 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6020 * gdbreplay.c (gdbreplay_version): Update copyright year in
6022 * server.c (gdbserver_version): Likewise.
6024 2017-12-08 Tom Tromey <tom@tromey.com>
6026 * ax.c (ax_printf): Update.
6028 2017-12-07 Yao Qi <yao.qi@linaro.org>
6030 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6031 aarch64_linux_read_description.
6032 * linux-amd64-ipa.c (idx2mask): New array.
6033 (get_ipa_tdesc): Move idx2mask out.
6034 (initialize_low_tracepoint): Initialize target descriptions.
6035 * linux-i386-ipa.c (idx2mask): New array.
6036 (get_ipa_tdesc): Move idx2mask out.
6037 (initialize_low_tracepoint): Initialize target descriptions.
6039 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6041 * tdesc.c (struct tdesc_type): Change return type.
6042 (tdesc_add_flag): Change parameter type.
6043 (tdesc_add_bitfield): Likewise.
6044 (tdesc_add_field): Likewise.
6045 (tdesc_set_struct_size): Likewise.
6047 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6049 * regcache.c (registers_to_string): Remove unused variable.
6051 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6053 * inferiors.c (for_each_inferior_with_data): Remove.
6054 * inferiors.h (for_each_inferior_with_data): Remove.
6055 * server.c (handle_qxfer_threads_worker): Change parameter type.
6056 (handle_qxfer_threads_proper): Use for_each_thread.
6058 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6060 * inferiors.c (for_each_inferior): Remove.
6061 (clear_inferiors): Use for_each_thread.
6062 * inferiors.h (for_each_inferior): Remove.
6063 * linux-low.c (linux_wait_for_event_filtered): Use
6065 (linux_stabilize_threads): Likewise.
6066 * regcache.c (regcache_release): Likewise.
6067 * server.c (gdb_wants_all_threads_stopped): Likewise.
6068 (clear_pending_status_callback): Remove.
6069 (handle_status): Use for_each_thread.
6070 (captured_main): Likewise.
6071 * win32-low.c (child_init_thread_list): Likewise.
6072 (win32_clear_inferiors): Likewise.
6073 (fake_breakpoint_event): Likewise.
6075 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6077 * inferiors.h (find_inferior): Remove.
6078 * inferiors.c (find_inferior): Remove.
6080 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6082 * linux-low.c (resume_status_pending_p): Update comment.
6083 (need_step_over_p): Update comment.
6085 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6087 * linux-low.c (proceed_one_lwp): Return void, change parameter
6089 (unsuspend_and_proceed_one_lwp): Likewise.
6090 (proceed_all_lwps): Use for_each_thread.
6091 (unstop_all_lwps): Likewise.
6093 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6095 * linux-low.c (linux_resume_one_thread): Return void, take
6097 (linux_resume): Use for_each_thread.
6099 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6101 * linux-low.c (send_sigstop_callback): Return void, change
6102 parameter type. Rename to...
6103 (send_sigstop): ... this.
6104 (suspend_and_send_sigstop_callback): Return void, change parameter
6106 (suspend_and_send_sigstop): ... this.
6107 (stop_all_lwps): Use for_each_thread.
6109 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6111 * linux-low.c (lwp_running): Return bool, remove unused
6113 (linux_stabilize_threads): Use find_thread.
6115 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6117 * linux-low.c (select_singlestep_lwp_callback): Remove.
6118 (count_events_callback): Remove.
6119 (select_event_lwp_callback): Remove.
6120 (select_event_lwp): Use find_thread/for_each_thread.
6122 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6124 * linux-low.c (not_stopped_callback): Return bool, take filter
6126 (linux_wait_for_event_filtered): Use find_thread.
6127 (linux_wait_1): Likewise.
6129 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6131 * linux-low.c (same_lwp): Remove.
6132 (find_lwp_pid): Use find_thread.
6134 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6136 * linux-low.c (delete_lwp_callback): Remove.
6137 (linux_mourn): Use for_each_thread.
6139 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6141 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6142 args parameter, don't check for pid.
6143 (linux_detach): Use for_each_thread.
6145 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6147 * linux-low.c (struct counter): Remove.
6148 (second_thread_of_pid_p): Remove.
6149 (last_thread_of_process_p): Use find_thread.
6151 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6153 * inferiors.c (find_inferior_in_random): Remove.
6154 * inferiors.h (find_inferior_in_random): Remove.
6155 * linux-low.c (status_pending_p_callback): Return bool, accept
6156 parameter ptid directly.
6157 (linux_wait_for_event_filtered): Use find_thread_in_random.
6158 (linux_wait_1): Likewise.
6160 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6162 * inferiors.c (find_inferior_id): Remove.
6163 (find_thread_ptid): Move implemention from find_inferior_id to
6165 * inferiors.h (find_inferior_id): Remove.
6166 * server.c (handle_status): Use find_thread_ptid.
6167 (process_serial_event): Likewise.
6168 * thread-db.c (find_one_thread): Likewise.
6169 (thread_db_thread_handle): Likewise.
6170 * win32-low.c (thread_rec): Likewise.
6171 (child_delete_thread): Likewise.
6172 (win32_thread_alive): Likewise.
6173 (get_child_debug_event): Likewise.
6175 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6177 * linux-mips-low.c (update_watch_registers_callback): Return
6178 void, remove pid_p parameter, don't check for pid.
6179 (mips_insert_point, mips_remove_point): Use for_each_thread.
6181 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6183 * lynx.low (lynx_delete_thread_callback): Remove.
6184 (lynx_mourn): Use for_each_thread.
6186 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6188 * regcache.c (regcache_invalidate_one): Remove.
6189 (regcache_invalidate_pid): use for_each_thread.
6191 2017-11-26 Tom Tromey <tom@tromey.com>
6193 * linux-low.c (linux_create_inferior): Update.
6195 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6197 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6199 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6201 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6202 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6203 * linux-aarch64-tdesc-selftest.c: New file.
6204 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6206 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6208 * configure.srv: Add new file.
6209 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6210 * linux-aarch64-tdesc-selftest.c: New file.
6211 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6213 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6215 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6216 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6217 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6219 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6221 * configure.srv: Add new files.
6222 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6223 aarch64_linux_read_description.
6224 * linux-aarch64-low.c (aarch64_linux_read_description):
6225 Merge with aarch64_arch_setup.
6226 (aarch64_arch_setup): Call aarch64_linux_read_description.
6227 * linux-aarch64-tdesc.c: New file.
6228 * linux-aarch64-tdesc.h: New file.
6230 2017-11-24 Yao Qi <yao.qi@linaro.org>
6232 * configure.srv: Set $srv_regobj for tic6x-linux.
6233 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6234 (tic6x_read_description): Move some code to tic6x_arch_setup.
6235 (tic6x_tdesc_test): New function.
6236 (initialize_low_arch): Call selftests::register_test.
6238 2017-11-22 Yao Qi <yao.qi@linaro.org>
6240 * remote-utils.c (prepare_resume_reply): Use memcpy.
6242 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6244 * linux-low.c (kill_one_lwp_callback): Return void, take
6245 argument directly, don't filter on pid.
6246 (linux_kill): Use for_each_thread.
6248 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6250 * linux-low.c (need_step_over_p): Return bool, remove dummy
6252 (linux_resume, proceed_all_lwps): Use find_thread.
6254 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6256 * linux-low.c (resume_status_pending_p): Return bool, remove
6258 (linux_resume): Use find_thread.
6260 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6262 * linux-low.c (struct thread_resume_array): Remove.
6263 (linux_set_resume_request): Return void, take arguments
6265 (linux_resume): Use for_each_thread.
6267 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6269 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6270 return bool, remove data argument.
6271 (linux_stabilize_threads): Use find_thread.
6273 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6275 * linux-low.c (unsuspend_one_lwp): Remove.
6276 (unsuspend_all_lwps): Use for_each_thread, inline code from
6279 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6281 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6282 * linux-low.c (struct iterate_over_lwps_args): Remove.
6283 (iterate_over_lwps_filter): Remove.
6284 (iterate_over_lwps): Use find_thread.
6286 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6288 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6289 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6290 code from reset_lwp_ptrace_options_callback.
6292 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6294 * linux-arm-low.c (struct update_registers_data): Remove.
6295 (update_registers_callback): Return void, take arguments
6296 directly, don't check thread's pid.
6297 (arm_insert_point, arm_remove_point): Use for_each_thread.
6299 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6301 * win32-low.c (continue_one_thread): Return void, take argument
6303 (child_continue): Use for_each_thread.
6305 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6307 * win32-i386-low.c (update_debug_registers_callback): Rename
6309 (update_debug_registers): ... this, return void, remove pid_p arg.
6310 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6312 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6314 * inferiors.h (struct process_info): Add constructor, initialize
6316 <syscalls_to_catch>: Change type to std::vector<int>.
6317 * inferiors.c (add_process): Allocate process_info with new.
6318 (remove_process): Free process_info with delete.
6319 * linux-low.c (handle_extended_wait): Adjust.
6320 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6321 * server.c (handle_general_set): Adjust.
6323 2017-11-16 Pedro Alves <palves@redhat.com>
6325 * remote-utils.c (remote_close): Block SIGIO signals instead of
6326 uninstalling the SIGIO handler.
6328 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6330 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6332 2017-11-16 Yao Qi <yao.qi@linaro.org>
6334 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6335 (tic6x_store_gregset): Likewise.
6336 (tic6x_usrregs_info): Move it up.
6338 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6340 * Makefile.in: Update arch rules.
6341 * configure.srv: Explicitly mark arch/ files.
6343 2017-11-13 Andreas Schwab <schwab@suse.de>
6345 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6349 2017-11-06 Pedro Alves <palves@redhat.com>
6351 * config.in, configure: Regenerate.
6353 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6355 * target.c (struct thread_search): Remove.
6356 (thread_search_callback): Remove.
6357 (prepare_to_access_memory): Use for_each_thread instead of
6358 find_inferior. Inline code from thread_search_callback.
6360 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6362 * server.c (struct visit_actioned_threads_data): Remove.
6363 (visit_actioned_threads): Change prototype to take arguments
6365 (resume): Use find_thread instead of find_inferior.
6367 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6369 * server.c (queue_stop_reply_callback): Change prototype, return
6371 (find_status_pending_thread_callback): Remove.
6372 (handle_status): Replace find_inferior with find_thread and
6375 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6377 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6379 (aarch64_store_gregset): Likewise.
6380 (aarch64_fill_fpregset): Likewise.
6381 (aarch64_store_fpregset): Likewise.
6383 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6385 * gdbthread.h (find_thread, for_each_thread): New functions.
6386 * inferiors.c (thread_of_pid): Remove.
6387 (find_any_thread_of_pid): Use find_thread.
6388 * linux-low.c (num_lwps): Use for_each_thread.
6390 2017-10-17 Yao Qi <yao.qi@linaro.org>
6392 * Makefile.in: Remove one rule.
6393 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6395 2017-10-17 Yao Qi <yao.qi@linaro.org>
6397 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6398 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6400 2017-10-17 Yao Qi <yao.qi@linaro.org>
6402 * configure.srv: Rename arm.o with arch/arm.o.
6404 2017-10-17 Yao Qi <yao.qi@linaro.org>
6406 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6407 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6408 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6409 (arch-i386.o, arch-amd64.o): Remove rules.
6410 (arch/%.o): New rule.
6411 Update POSTCOMPILE and COMPILE.pre.
6412 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6413 * configure: Re-generated.
6414 * configure.srv: Replace arch-i386.o with arch/i386.o.
6415 Replace arch-amd64.o with arch/amd64.o.
6417 2017-10-16 Yao Qi <yao.qi@linaro.org>
6419 * configure: Regenerated.
6421 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6423 * inferiors.h: (struct inferior_list): Remove.
6424 (struct inferior_list_entry); Remove.
6425 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6426 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6427 get_first_inferior): Remove.
6428 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6429 find_inferior_id, find_inferior_in_random): Change signature.
6430 * inferiors.c (all_threads): Change type to
6431 std::list<thread_info *>.
6432 (get_thread): Remove macro.
6433 (find_inferior, find_inferior_id): Change signature, implement
6435 (find_inferior_in_random): Change signature, implement using
6436 find_thread_in_random.
6437 (for_each_inferior, for_each_inferior_with_data): Change
6438 signature, implement using for_each_thread.
6439 (add_inferior_to_list, remove_inferior): Remove.
6440 (add_thread, get_first_thread, thread_of_pid,
6441 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6442 (get_first_inferior, one_inferior_p, clear_inferior_list):
6444 (clear_inferiors, get_thread_process): Update.
6445 * gdbthread.h: Include <list>.
6446 (struct thread_info) <entry>: Remove field.
6448 (all_threads): Change type to std::list<thread_info *>.
6449 (get_first_inferior): Add doc.
6450 (find_thread, for_each_thread, find_thread_in_random): New
6452 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6453 * linux-arm-low.c (update_registers_callback): Update.
6454 * linux-low.c (second_thread_of_pid_p): Update.
6455 (kill_one_lwp_callback, linux_detach_lwp_callback,
6456 delete_lwp_callback, status_pending_p_callback, same_lwp,
6457 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6458 iterate_over_lwps, not_stopped_callback,
6459 resume_stopped_resumed_lwps, count_events_callback,
6460 select_singlestep_lwp_callback, select_event_lwp_callback,
6461 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6462 suspend_and_send_sigstop_callback, wait_for_sigstop,
6463 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6464 lwp_running, linux_set_resume_request, resume_status_pending_p,
6465 need_step_over_p, start_step_over, linux_resume_one_thread,
6466 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6467 reset_lwp_ptrace_options_callback): Update.
6468 * linux-mips-low.c (update_watch_registers_callback): Update.
6469 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6471 (free_register_cache_thread_one): Remove.
6472 (regcache_release): Update.
6473 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6474 handle_qxfer_threads_worker): Update.
6475 (handle_query): Update, use list iterator.
6476 (visit_actioned_threads, handle_pending_status,
6477 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6478 clear_pending_status_callback, set_pending_status_callback,
6479 find_status_pending_thread_callback, handle_status,
6480 process_serial_event): Update.
6481 * target.c (thread_search_callback): Update.
6482 * thread-db.c (thread_db_get_tls_address): Update.
6483 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6485 * win32-i386-low.c (update_debug_registers_callback): Update.
6486 * win32-low.c (delete_thread_info, child_delete_thread,
6487 continue_one_thread, suspend_one_thread,
6488 get_child_debug_event): Adjust.
6490 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6492 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6493 * inferiors.h: Include <list>.
6494 (struct process_info) <entry>: Remove field.
6496 (pid_of): Change macro to function.
6497 (ptid_of, lwpid_of): Remove macro.
6498 (all_processes): Change type to std::list<process_info *>.
6499 (ALL_PROCESSES): Remove macro.
6500 (for_each_process, find_process): New function.
6501 * inferiors.c (all_processes): Change type to
6502 std::list<process_info *>.
6503 (find_thread_process): Adjust.
6504 (add_process): Likewise.
6505 (remove_process): Likewise.
6506 (find_process_pid): Likewise.
6507 (get_first_process): Likewise.
6508 (started_inferior_callback): Remove.
6509 (have_started_inferiors_p): Adjust.
6510 (attached_inferior_callback): Remove.
6511 (have_attached_inferiors_p): Adjust.
6512 * linux-low.c (check_zombie_leaders): Likewise.
6513 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6514 (x86_linux_update_xmltarget): Adjust.
6515 * server.c (handle_query): Likewise.
6516 (gdb_reattached_process): Remove.
6517 (handle_status): Adjust.
6518 (kill_inferior_callback): Likewise.
6519 (detach_or_kill_inferior): Remove.
6520 (print_started_pid): Likewise.
6521 (print_attached_pid): Likewise.
6522 (detach_or_kill_for_exit): Update.
6523 (process_serial_event): Likewise.
6524 * linux-arm-low.c (arm_new_fork): Likewise.
6526 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6528 * dll.h: Include <list>.
6529 (struct dll_info): Add constructor.
6530 <entry>: Remove field.
6531 (all_dlls): Change type to std::list<dll_info>.
6532 * dll.c: Include <algorithm>.
6533 (get_dll): Remove macro.
6534 (all_dlls): Change type to std::list<dll_info *>.
6535 (free_one_dll): Remove.
6536 (match_dll): Likewise.
6537 (loaded_dll): Adjust.
6538 (unloaded_dll): Adjust to all_dlls type change, use
6539 std::find_if. Inline code from match_dll.
6540 (clear_dlls): Adjust to all_dlls type change.
6541 * server.c (emit_dll_description): Remove.
6542 (handle_qxfer_libraries): Adjust to all_dlls type change,
6543 integrate emit_dll_description's functionality.
6545 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6547 * linux-low.h (struct linux_target_ops) <delete_process>: New
6549 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6550 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6551 (struct linux_target_ops): Add delete_process callback.
6552 * linux-arm-low.c (arm_delete_process): New.
6553 (struct linux_target_ops): Add delete_process callback.
6554 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6555 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6556 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6557 * linux-mips-low.c (mips_linux_delete_process): New.
6558 (struct linux_target_ops): Add delete_process callback.
6559 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6560 * linux-s390-low.c (struct linux_target_ops): Likewise.
6561 * linux-sh-low.c (struct linux_target_ops): Likewise.
6562 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6563 * linux-tile-low.c (struct linux_target_ops): Likewise.
6564 * linux-x86-low.c (x86_linux_delete_process): New.
6565 (struct linux_target_ops): Add delete_process callback.
6566 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6568 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6570 * linux-aarch64-low.c (the_low_target): Add thread delete
6572 * linux-arm-low.c (arm_delete_thread): New function.
6573 (the_low_target): Add thread delete callback.
6574 * linux-bfin-low.c (the_low_target): Likewise.
6575 * linux-crisv32-low.c (the_low_target): Likewise.
6576 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6578 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6580 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6581 * linux-mips-low.c (mips_linux_delete_thread): New function.
6582 (the_low_target): Add thread delete callback.
6583 * linux-ppc-low.c (the_low_target): Likewise.
6584 * linux-s390-low.c (the_low_target): Likewise.
6585 * linux-sh-low.c (the_low_target): Likewise.
6586 * linux-tic6x-low.c (the_low_target): Likewise.
6587 * linux-tile-low.c (the_low_target): Likewise.
6588 * linux-x86-low.c (the_low_target): Likewise.
6589 * linux-xtensa-low.c (the_low_target): Likewise.
6591 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6593 * win32-low.c: Include "common-inferior.h".
6595 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6597 * inferiors.c (set_inferior_cwd): New function.
6598 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6599 (handle_query): Inform that QSetWorkingDir is supported.
6600 * win32-low.c (create_process): Pass the inferior's cwd to
6603 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6605 * inferiors.c (current_inferior_cwd): New global variable.
6606 (get_inferior_cwd): New function.
6607 * inferiors.h (struct process_info) <cwd>: New field.
6609 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6611 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6612 (OBS): Add gdb_tilde_expand.o.
6614 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6616 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6617 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6619 2017-09-29 Pedro Alves <palves@redhat.com>
6621 * ax.c (gdb_parse_agent_expr): Constify.
6622 * ax.h (gdb_parse_agent_expr): Constify.
6623 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6625 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6626 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6627 * remote-utils.h (read_ptid): Constify.
6628 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6629 (process_point_options, process_serial_event): Constify.
6630 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6631 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6632 (cmd_qtbuffer): Constify.
6634 2017-09-29 Pedro Alves <palves@redhat.com>
6636 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6639 2017-09-29 Pedro Alves <palves@redhat.com>
6641 * linux-low.c (handle_extended_wait): Pass parent thread instead
6642 of process to thread_db_notice_clone.
6643 * linux-low.h (thread_db_notice_clone): Replace parent process
6644 parameter with parent thread parameter.
6645 * thread-db.c (find_one_thread): Add comment.
6646 (thread_db_notice_clone): Replace parent process parameter with
6647 parent thread parameter. Temporarily switch to the parent thread.
6649 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6651 * gdbthread.h: Include "common-gdbthread.h".
6652 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6653 "if" when validating the ptid.
6654 * remote-utils.c: Include "gdbthread.h".
6655 (prepare_resume_reply): Use "switch_to_thread".
6656 * target.c (done_accessing_memory): Likewise.
6658 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6660 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6661 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6662 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6663 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6664 s390x-gs-linux64-ipa.o to ipa_obj.
6665 * linux-s390-low.c (HWCAP_S390_GS): New define.
6666 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6668 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6669 (s390_arch_setup): Check for guarded-storage support and choose
6671 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6672 init_registers_s390x_gs_linux64.
6673 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6675 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6676 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6678 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6680 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6682 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6684 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6685 (thread_db_thread_handle): Declare.
6686 * linux-low.c (linux_target_ops): Initialize thread_handle.
6687 * server.c (handle_qxfer_threads_worker): Add support for
6689 * target.h (struct target_ops): Add new function pointer,
6691 (target_thread_handle): Define.
6692 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6694 (thread_db_thread_handle): New function.
6696 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6698 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6699 * linux-low.h (thread_db_notice_clone): Declare.
6700 * thread-db.c (thread_db_notice_clone): New function.
6702 2017-09-21 Pedro Alves <palves@redhat.com>
6704 * server.c (gdb_read_memory, handle_status, process_serial_event)
6705 (handle_serial_event, handle_target_event): Adjust to
6706 set_desired_thread prototype change.
6707 * target.c (set_desired_thread): Remove 'use_general' parameter
6709 * target.h (set_desired_thread): Remove 'use_general' parameter.
6711 2017-09-20 Tom Tromey <tom@tromey.com>
6713 * target.c (target_terminal::terminal_state): Define.
6714 (target_terminal::init): Rename from target_terminal_init.
6715 (target_terminal::inferior): Rename from
6716 target_terminal_inferior.
6717 (target_terminal::ours): Rename from target_terminal_ours.
6718 (target_terminal::ours_for_output, target_terminal::info): New.
6720 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6722 * server.c (accumulate_file_name_length): Remove.
6723 (emit_dll_description): Adjust to std::string change.
6724 (handle_qxfer_libraries): Use std::string to hold document.
6726 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6728 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6729 return type of xml_escape_text.
6730 * server.c (emit_dll_description): Likewise.
6732 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6734 * server.c (captured_main): Accept argument for --selftest.
6735 Update run_tests call.
6736 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6737 when registering selftests.
6739 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6741 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6742 instead of "VEC" for "target_desc.reg_defs".
6743 (regcache_cpy): Likewise.
6744 (registers_to_string): Likewise.
6745 (registers_from_string): Likewise.
6746 (find_regno): Likewise.
6747 (supply_regblock): Likewise.
6748 (regcache_raw_read_unsigned): Likewise.
6749 * tdesc.c (init_target_desc): Likewise.
6750 (tdesc_create_reg): Likewise.
6751 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6752 (struct target_desc) <reg_defs>: Convert to "std::vector".
6753 (target_desc): Do not initialize "reg_defs".
6754 (~target_desc): Update code to use "std::vector" instead of "VEC"
6755 for "target_desc.reg_defs".
6756 (operator==): Likewise.
6758 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6760 * inferiors.h (thread_to_gdb_id): Remove.
6761 * inferiors.c (thread_to_gdb_id): Remove.
6762 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6763 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6764 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6766 * nto-low.c (nto_fetch_registers, nto_store_registers,
6767 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6769 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6771 * inferiors.h (gdb_id_to_thread_id): Remove.
6772 * inferiors.c (gdb_id_to_thread_id): Remove.
6773 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6774 removal. Move pid declaration closer to where it's used.
6776 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6778 * server.c (handle_detach): New function.
6779 (process_serial_event): Move code out, call handle_detach.
6781 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6783 * server.c (require_running): Rename to ...
6784 (require_running_or_return): ... this ...
6785 (require_running_or_break): ... and this.
6786 (handle_query, process_serial_event): Adjust.
6788 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6790 * linux-low.c (linux_set_resume_request): Remove unused
6793 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6795 * server.c (first_thread_of): Remove.
6796 (process_serial_event): Replace usage of first_thread_of with
6797 find_any_thread_of_pid.
6798 * tracepoint.c (same_process_p): Remove.
6799 (gdb_agent_about_to_close): Replace usage of same_process_p with
6800 find_any_thread_of_pid.
6801 * linux-x86-low.c (same_process_callback): Remove.
6802 (x86_arch_setup_process_callback): Replace usage of
6803 same_process_callback with find_any_thread_of_pid.
6804 * thread-db.c (any_thread_of): Remove.
6805 (switch_to_process): Replace usage of any_thread_of with
6806 find_any_thread_of_pid.
6807 * inferiors.c (thread_pid_matches_callback): Remove.
6808 (find_thread_process): Adjust to use find_any_thread_of_pid.
6810 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6812 * regcache.c (get_thread_regcache): Guard calls to "memset"
6815 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6817 * linux-low.c (handle_extended_wait): Use
6818 "allocate_target_description" instead of "XNEW".
6819 * linux-x86-low.c (initialize_low_arch): Likewise.
6821 2017-09-05 Yao Qi <yao.qi@linaro.org>
6823 * configure.srv (srv_i386_regobj): Remove.
6824 (srv_amd64_regobj): Remove.
6825 (srv_regobj): Set it to "" for x86 non-linux targets.
6826 * linux-x86-tdesc.c (i386_linux_read_description):
6827 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6828 (init_registers_i386): Remove the declaration.
6829 (tdesc_i386): Remove the declaration.
6830 (lynx_i386_arch_setup): Call i386_create_target_description.
6831 * nto-x86-low.c: Likewise.
6832 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6833 [!__x86_64__]: include arch/i386.h.
6834 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6836 2017-09-05 Yao Qi <yao.qi@linaro.org>
6838 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6839 i386/amd64-XXX-linux from it.
6841 2017-09-05 Yao Qi <yao.qi@linaro.org>
6843 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6845 (ipa_amd64_linux_regobj): Remove.
6846 (ipa_x32_linux_regobj): Remove.
6848 2017-09-05 Yao Qi <yao.qi@linaro.org>
6850 * Makefile.in (arch-amd64.o): New rule.
6851 * configure.srv: Append arch-amd64.o.
6852 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6853 (get_ipa_tdesc): Call amd64_linux_read_description.
6854 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6855 and init_registers_amd64_XXX.
6856 * linux-x86-low.c (x86_linux_read_description): Call
6857 amd64_linux_read_description.
6858 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6859 (initialize_low_arch): Don't call init_registers_x32_XXX and
6860 init_registers_amd64_XXX.
6861 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6862 and tdesc_amd64_XXX.
6863 [__x86_64__] (amd64_tdesc_test): New function.
6864 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6865 and init_registers_amd64_XXX.
6866 * linux-x86-tdesc.c: Include arch/amd64.h.
6867 (xcr0_to_tdesc_idx): New function.
6868 (i386_linux_read_description): New function.
6869 (amd64_get_ipa_tdesc_idx): New function.
6870 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6871 (amd64_get_ipa_tdesc): Declare.
6873 2017-09-05 Yao Qi <yao.qi@linaro.org>
6875 * configure.srv (srv_i386_linux_xmlfiles): Remove
6876 i386/i386-XXX-linux.xml from it.
6878 2017-09-05 Yao Qi <yao.qi@linaro.org>
6880 * configure.srv: Set srv_i386_linux_regobj empty if $development
6882 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6883 initialize_low_tdesc.
6884 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6885 with #if initialize_low_tdesc.
6886 * linux-x86-tdesc-selftest.c: New file.
6887 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6889 2017-09-05 Yao Qi <yao.qi@linaro.org>
6891 * Makefile.in (arch-i386.o): New rule.
6892 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6893 (x86_64-*-linux*): Likewise.
6894 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6895 include arch/i386.h.
6896 (i386_linux_read_description): Remove code and call
6897 i386_create_target_description.
6898 * tdesc.c (allocate_target_description): New function.
6899 * tdesc.h (set_tdesc_architecture): Remove declaration.
6900 (set_tdesc_osabi): Likewise.
6902 2017-09-05 Yao Qi <yao.qi@linaro.org>
6904 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6905 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6906 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6908 * server.c (get_features_xml): Call tdesc_get_features_xml.
6909 * tdesc.c (set_tdesc_architecture): New function.
6910 (set_tdesc_osabi): New function.
6911 (tdesc_get_features_xml): New function.
6912 (tdesc_create_feature): Add an argument.
6913 * tdesc.h (struct target_desc) <features>: New field.
6914 <arch, osabi>: New field.
6915 (~target_desc): xfree features, arch, and osabi.
6916 (target_desc::oerator==): Don't compare .xmltarget.
6917 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6918 (set_tdesc_osabi): Likewise.
6919 (tdesc_get_features_xml): Likewise.
6921 2017-09-05 Yao Qi <yao.qi@linaro.org>
6923 * linux-x86-tdesc.c: Include selftest.h.
6924 (i386_tdesc_test): New function.
6925 (initialize_low_tdesc): Call selftests::register_test.
6926 * tdesc.h: Include regdef.h.
6927 (target_desc): Override operator == and !=.
6929 2017-09-05 Yao Qi <yao.qi@linaro.org>
6931 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6932 (ipa_obj): Likewise.
6933 * linux-i386-ipa.c: Include common/x86-xstate.h
6934 (get_ipa_tdesc): Call i386_linux_read_description.
6935 (initialize_low_tracepoint): Don't call init_registers_XXX
6936 functions, call initialize_low_tdesc instead.
6937 * linux-x86-low.c (x86_linux_read_description): Call
6938 i386_linux_read_description.
6939 (initialize_low_arch): Don't call init_registers_i386_XXX
6940 functions, call initialize_low_tdesc.
6941 * linux-x86-tdesc.c: New file.
6942 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6943 (i386_get_ipa_tdesc_idx): Declare.
6944 (i386_get_ipa_tdesc): Declare.
6945 (initialize_low_tdesc): Declare.
6947 2017-09-05 Yao Qi <yao.qi@linaro.org>
6949 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6952 2017-09-05 Yao Qi <yao.qi@linaro.org>
6954 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6955 * regcache.c (get_thread_regcache): Use VEC_length.
6956 (init_register_cache): Likewise.
6957 (regcache_cpy): Likewise.
6958 (registers_to_string): Iterate reg_defs via VEC_iterate.
6959 (find_regno): Likewise.
6960 (find_register_by_number): Use VEC_index.
6961 (register_size): Call find_register_by_number.
6962 (register_data): Call find_register_by_number.
6963 (supply_regblock): Use VEC_length.
6964 (regcache_raw_read_unsigned): Likewise.
6965 * tdesc.c (init_target_desc): Iterate reg_defs via
6967 (default_description): Update initializer.
6968 (copy_target_description): Don't update field num_registers.
6969 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6970 <num_registers>: Remove.
6972 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6974 * Makefile.in (.SECONDARY): Define target.
6976 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6978 * linux-low.c (linux_wait_1): Adjust.
6979 * server.c (queue_stop_reply_callback): Adjust.
6981 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6983 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6984 QEnvironmentUnset and QEnvironmentReset packets.
6985 (handle_query): Inform remote that QEnvironmentHexEncoded,
6986 QEnvironmentUnset and QEnvironmentReset are supported.
6988 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6990 * inferiors.h (inferior_target_data): Rename to ...
6991 (thread_target_data): ... this.
6992 (inferior_regcache_data): Rename to ...
6993 (thread_regcache_data): ... this.
6994 (set_inferior_regcache_data): Rename to ...
6995 (set_thread_regcache_data): ... this.
6996 * inferiors.c (inferior_target_data): Rename to ...
6997 (thread_target_data): ... this.
6998 (inferior_regcache_data): Rename to ...
6999 (thread_regcache_data): ... this.
7000 (set_inferior_regcache_data): Rename to ...
7001 (set_thread_regcache_data): ... this.
7002 (free_one_thread): Update.
7003 * linux-low.h (get_thread_lwp): Update.
7004 * regcache.c (get_thread_regcache): Update.
7005 (regcache_invalidate_thread): Update.
7006 (free_register_cache_thread): Update.
7007 * win32-i386-low.c (update_debug_registers_callback): Update.
7008 (win32_get_current_dr): Update.
7009 * win32-low.c (thread_rec): Update.
7010 (delete_thread_info): Update.
7011 (continue_one_thread): Update.
7012 (suspend_one_thread): Update.
7014 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7016 * inferiors.c (set_inferior_target_data): Remove.
7017 * inferiors.h (set_inferior_target_data): Remove.
7019 2017-08-18 Yao Qi <yao.qi@linaro.org>
7021 * Makefile.in (OBS): Add selftest.o.
7022 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7023 * configure, config.in: Re-generated.
7024 * server.c: Include common/sefltest.h.
7025 (captured_main): Handle option --selftest.
7027 2017-08-09 Yao Qi <yao.qi@linaro.org>
7029 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7030 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7031 i386-avx-mpx.o and i386-mmx.o.
7032 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7033 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7034 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7035 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7036 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7037 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7038 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7039 i386/amd64-avx-mpx.xml.
7041 2017-08-09 Yao Qi <yao.qi@linaro.org>
7043 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7044 and x32-avx-avx512.o.
7045 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7046 i386/x32-avx-avx512.xml.
7048 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7050 * tracepoint.h (enum class fast_tpoint_collect_result): New
7052 (fast_tracepoint_collecting): Change return type to
7053 fast_tpoint_collect_result.
7054 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7055 * linux-low.h: Include tracepoint.h.
7056 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7057 fast_tpoint_collect_result.
7058 * linux-low.c (handle_tracepoints): Adjust.
7059 (linux_fast_tracepoint_collecting): Change return type to
7060 fast_tpoint_collect_result.
7061 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7062 linux_wait_1, stuck_in_jump_pad_callback,
7063 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7064 proceed_one_lwp): Adjust to type change.
7066 2017-07-10 Yao Qi <yao.qi@linaro.org>
7068 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7070 2017-06-29 Yao Qi <yao.qi@linaro.org>
7072 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7074 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7076 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7078 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7080 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7082 * linux-low.c (linux_create_inferior): Adjust code to access the
7083 environment information via 'gdb_environ' class.
7084 * lynx-low.c (lynx_create_inferior): Likewise.
7085 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7086 (get_environ): Return a pointer to 'our_environ'.
7087 (captured_main): Initialize 'our_environ'.
7088 * server.h (get_environ): Adjust prototype.
7089 * spu-low.c (spu_create_inferior): Adjust code to access the
7090 environment information via 'gdb_environ' class.
7092 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7094 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7095 usage of "register" keyword.
7097 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7099 * configure: Re-generate.
7101 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7103 * configure: Re-generate.
7105 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7107 * Makefile.in (COMPILE.pre): Add "-x c++".
7109 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7111 * fork-child.c: Conditionally include <signal.h>.
7113 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7115 * server.c (handle_general_set): Handle new packet
7116 "QStartupWithShell".
7117 (handle_query): Add "QStartupWithShell" to the list of supported
7119 (gdbserver_usage): Add help text explaining the
7120 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7122 (captured_main): Recognize and act upon the presence of the new
7125 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7126 Pedro Alves <palves@redhat.com>
7128 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7129 * configure: Regenerate.
7130 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7132 (i[34567]86-*-lynxos*): Likewise.
7133 (spu*-*-*): Likewise.
7134 * fork-child.c: New file.
7135 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7137 (linux_ptrace_fun): New function.
7138 (linux_create_inferior): Adjust function prototype to reflect
7139 change on "target.h". Adjust function code to use
7141 (linux_request_interrupt): Delete "signal_pid".
7142 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7143 (lynx_ptrace_fun): New function.
7144 (lynx_create_inferior): Adjust function prototype to reflect
7145 change on "target.h". Adjust function code to use
7147 * nto-low.c (nto_create_inferior): Adjust function prototype and
7148 code to reflect change on "target.h". Update comments.
7149 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7150 "common-terminal.h" and "environ.h".
7151 (terminal_fd): Moved to fork-child.c.
7152 (old_foreground_pgrp): Likewise.
7153 (restore_old_foreground_pgrp): Likewise.
7154 (last_status): Make it global.
7155 (last_ptid): Likewise.
7156 (our_environ): New variable.
7157 (startup_with_shell): Likewise.
7158 (program_name): Likewise.
7159 (program_argv): Rename to...
7160 (program_args): ...this.
7161 (wrapper_argv): New variable.
7162 (start_inferior): Delete function.
7163 (get_exec_wrapper): New function.
7164 (get_exec_file): Likewise.
7165 (get_environ): Likewise.
7166 (prefork_hook): Likewise.
7167 (post_fork_inferior): Likewise.
7168 (postfork_hook): Likewise.
7169 (postfork_child_hook): Likewise.
7170 (handle_v_run): Update code to deal with arguments coming from the
7171 remote host. Update calls from "start_inferior" to
7173 (captured_main): Likewise. Initialize environment variable. Call
7175 * server.h (post_fork_inferior): New prototype.
7176 (get_environ): Likewise.
7177 (last_status): Declare.
7178 (last_ptid): Likewise.
7179 (signal_pid): Likewise.
7180 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7181 (spu_ptrace_fun): New function.
7182 (spu_create_inferior): Adjust function prototype to reflect change
7183 on "target.h". Adjust function code to use "fork_inferior".
7184 * target.c (target_terminal_init): New function.
7185 (target_terminal_inferior): Likewise.
7186 (target_terminal_ours): Likewise.
7187 * target.h: Include <vector>.
7188 (struct target_ops) <create_inferior>: Update prototype.
7189 (create_inferior): Update macro.
7190 * utils.c (gdb_flush_out_err): New function.
7191 * win32-low.c (win32_create_inferior): Adjust function prototype
7192 and code to reflect change on "target.h".
7194 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7196 * inferiors.c (switch_to_thread): New function.
7198 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7200 * Makefile.in (SFILE): Add "common/job-control.c".
7201 (OBS): Add "job-control.o".
7203 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7205 * Makefile: Remove "@host_makefile_frag@".
7207 2017-05-05 Pedro Alves <palves@redhat.com>
7209 * configure: Regenerate.
7211 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7213 * configure: Regenerate.
7215 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7217 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7218 software_single_step change of return type to
7219 std::vector<CORE_ADDR>.
7220 * linux-low.c (install_software_single_step_breakpoints):
7222 * linux-low.h (install_software_single_step_breakpoints):
7225 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7227 * remote-utils.c: Include "gdb_termios.h" instead of
7229 * terminal.h: Delete file.
7231 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7233 * server.c: Include <vector>.
7234 <program_argv, wrapper_argv>: Convert to std::vector.
7235 (start_inferior): Rewrite function to use C++.
7236 (handle_v_run): Likewise. Update code that calculates the argv
7237 based on the vRun packet; use C++.
7238 (captured_main): Likewise.
7240 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7242 * server.c (handle_v_cont): Initialize thread_resume::thread
7245 2017-04-05 Pedro Alves <palves@redhat.com>
7247 * configure: Regenerate.
7249 2017-04-05 Pedro Alves <palves@redhat.com>
7251 * gdbreplay.c (sync_error): Constify.
7252 * linux-x86-low.c (push_opcode): Constify.
7254 2017-04-05 Pedro Alves <palves@redhat.com>
7256 * win32-low.c (get_child_debug_event)
7257 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7258 Report TARGET_WAITKIND_SPURIOUS instead.
7260 2017-04-05 Pedro Alves <palves@redhat.com>
7262 * remote-utils.c (remote_prepare, remote_open): Constify.
7263 * remote-utils.h (remote_prepare, remote_open): Constify.
7264 * server.c (captured_main): Constify 'port' handling.
7266 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7268 * Makefile.in (clean): Clear .deps.
7270 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7272 * .gitignore: Remove generated files, replace with wildcard.
7273 * (clean): Replace removal of generated files with wildcard.
7274 (version.c): Replace with...
7275 (version-generated.c): ...this.
7276 (xml-builtin.c): Replace with...
7277 (xml-builtin-generated.c): ...this.
7278 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7279 (%.c: *regformats*): Replace with...
7280 (%-generated.c: *regformats*): ...this.
7282 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7284 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7285 (xtensa_fill_gregset): Call collect_register_by_name for
7287 (xtensa_store_gregset): Call supply_register_by_name for
7290 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7292 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7293 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7294 (xtensa_store_gregset): Call supply_register for all registers in
7295 a0_regnum..a0_regnum + C0_NREGS range.
7297 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7299 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7300 (ax-ipa.o: ax.c): Remove.
7301 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7302 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7303 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7304 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7305 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7307 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7309 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7310 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7311 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7312 (errors-ipa.o: ../common/errors.c): Remove.
7313 (format-ipa.o: ../common/format.c): Remove.
7314 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7316 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7318 * Makefile.in (%-ipa.o: %.c): New rule.
7319 (tracepoint-ipa.o: tracepoint.c): Remove.
7320 (utils-ipa.o: utils.c): Remove.
7321 (remote-utils-ipa.o: remote-utils.c): Remove.
7322 (regcache-ipa.o: regcache.c): Remove.
7323 (i386-linux-ipa.o: i386-linux.c): Remove.
7324 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7325 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7326 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7327 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7328 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7329 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7330 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7331 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7332 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7333 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7334 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7335 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7336 (aarch64-ipa.o: aarch64.c): Remove.
7337 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7338 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7339 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7340 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7341 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7342 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7343 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7344 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7345 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7346 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7347 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7348 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7349 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7350 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7351 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7352 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7353 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7354 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7355 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7356 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7357 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7358 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7359 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7360 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7361 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7362 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7363 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7364 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7365 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7366 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7367 (tdesc-ipa.o: tdesc.c): Remove.
7368 (x32-linux-ipa.o: x32-linux.c): Remove.
7369 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7370 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7372 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7374 * Makefile.in (%.o: ../arch/%.c): New rule.
7375 (arm.o: ../arch/arm.c): Remove.
7376 (arm-linux.o: ../arch/arm-linux.c): Remove.
7377 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7378 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7380 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7382 * Makefile.in (%.o: ../nat/%.c): New rule.
7383 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7384 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7385 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7386 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7387 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7388 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7389 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7390 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7391 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7392 (linux-personality.o: ../nat/linux-personality.c): Remove.
7393 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7394 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7395 (x86-linux.o: ../nat/x86-linux.c): Remove.
7396 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7397 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7399 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7401 * Makefile.in (%.o: ../common/%.c): New rule.
7402 (signals.o: ../common/signals.c): Remove.
7403 (print-utils.o: ../common/print-utils.c): Remove.
7404 (rsp-low.o: ../common/rsp-low.c): Remove.
7405 (common-utils.o: ../common/common-utils.c): Remove.
7406 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7407 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7408 (vec.o: ../common/vec.c): Remove.
7409 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7410 (xml-utils.o: ../common/xml-utils.c): Remove.
7411 (ptid.o: ../common/ptid.c): Remove.
7412 (buffer.o: ../common/buffer.c): Remove.
7413 (format.o: ../common/format.c): Remove.
7414 (filestuff.o: ../common/filestuff.c): Remove.
7415 (agent.o: ../common/agent.c): Remove.
7416 (errors.o: ../common/errors.c): Remove.
7417 (environ.o: ../common/environ.c): Remove.
7418 (common-debug.o: ../common/common-debug.c): Remove.
7419 (cleanups.o: ../common/cleanups.c): Remove.
7420 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7421 (fileio.o: ../common/fileio.c): Remove.
7422 (common-regcache.o: ../common/common-regcache.c): Remove.
7423 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7424 (new-op.o: ../common/new-op.c): Remove.
7425 (btrace-common.o: ../common/btrace-common.c): Remove.
7427 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7429 * Makefile.in (%.o: ../target/%.c): New rule.
7430 (waitstatus.o: ../target/waitstatus.c): Remove.
7432 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7435 (%.c: ../regformats/%.dat,
7436 (%.c: ../regformats/arm/%.dat,
7437 (%.c: ../regformats/i386/%.dat,
7438 (%.c: ../regformats/rs6000/%.dat): New rules.
7439 (aarch64.c): Remove.
7440 (reg-arm.c): Remove.
7441 (arm-with-iwmmxt.c): Remove.
7442 (arm-with-vfpv2.c): Remove.
7443 (arm-with-vfpv3.c): Remove.
7444 (arm-with-neon.c): Remove.
7445 (reg-bfin.c): Remove.
7446 (reg-cris.c): Remove.
7447 (reg-crisv32.c): Remove.
7449 (i386-linux.c): Remove.
7450 (i386-avx.c): Remove.
7451 (i386-avx-linux.c): Remove.
7452 (i386-avx-avx512.c): Remove.
7453 (i386-avx-avx512-linux.c): Remove.
7454 (i386-mpx.c): Remove.
7455 (i386-mpx-linux.c): Remove.
7456 (i386-avx-mpx-avx512-pku.c): Remove.
7457 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7458 (i386-avx-mpx.c): Remove.
7459 (i386-avx-mpx-linux.c): Remove.
7460 (i386-mmx.c): Remove.
7461 (i386-mmx-linux.c): Remove.
7462 (reg-ia64.c): Remove.
7463 (reg-m32r.c): Remove.
7464 (reg-m68k.c): Remove.
7466 (mips-linux.c): Remove.
7467 (mips-dsp-linux.c): Remove.
7468 (mips64-linux.c): Remove.
7469 (mips64-dsp-linux.c): Remove.
7470 (nios2-linux.c): Remove.
7471 (powerpc-32.c): Remove.
7472 (powerpc-32l.c): Remove.
7473 (powerpc-altivec32l.c): Remove.
7474 (powerpc-cell32l.c): Remove.
7475 (powerpc-vsx32l.c): Remove.
7476 (powerpc-isa205-32l.c): Remove.
7477 (powerpc-isa205-altivec32l.c): Remove.
7478 (powerpc-isa205-vsx32l.c): Remove.
7479 (powerpc-e500l.c): Remove.
7480 (powerpc-64l.c): Remove.
7481 (powerpc-altivec64l.c): Remove.
7482 (powerpc-cell64l.c): Remove.
7483 (powerpc-vsx64l.c): Remove.
7484 (powerpc-isa205-64l.c): Remove.
7485 (powerpc-isa205-altivec64l.c): Remove.
7486 (powerpc-isa205-vsx64l.c): Remove.
7487 (s390-linux32.c): Remove.
7488 (s390-linux32v1.c): Remove.
7489 (s390-linux32v2.c): Remove.
7490 (s390-linux64.c): Remove.
7491 (s390-linux64v1.c): Remove.
7492 (s390-linux64v2.c): Remove.
7493 (s390-te-linux64.c): Remove.
7494 (s390-vx-linux64.c): Remove.
7495 (s390-tevx-linux64.c): Remove.
7496 (s390x-linux64.c): Remove.
7497 (s390x-linux64v1.c): Remove.
7498 (s390x-linux64v2.c): Remove.
7499 (s390x-te-linux64.c): Remove.
7500 (s390x-vx-linux64.c): Remove.
7501 (s390x-tevx-linux64.c): Remove.
7502 (tic6x-c64xp-linux.c): Remove.
7503 (tic6x-c64x-linux.c): Remove.
7504 (tic6x-c62x-linux.c): Remove.
7506 (reg-sparc64.c): Remove.
7507 (reg-spu.c): Remove.
7509 (amd64-linux.c): Remove.
7510 (amd64-avx.c): Remove.
7511 (amd64-avx-linux.c): Remove.
7512 (amd64-avx-avx512.c): Remove.
7513 (amd64-avx-avx512-linux.c): Remove.
7514 (amd64-mpx.c): Remove.
7515 (amd64-mpx-linux.c): Remove.
7516 (amd64-avx-mpx-avx512-pku.c): Remove.
7517 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7518 (amd64-avx-mpx.c): Remove.
7519 (amd64-avx-mpx-linux.c): Remove.
7521 (x32-linux.c): Remove.
7522 (x32-avx.c): Remove.
7523 (x32-avx-linux.c): Remove.
7524 (x32-avx-avx512.c): Remove.
7525 (x32-avx-avx512-linux.c): Remove.
7526 (reg-xtensa.c): Remove.
7527 (reg-tilegx.c): Remove.
7528 (reg-tilegx32.c): Remove.
7530 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7532 * Makefile.in (SFILES): Add "common/environ.c".
7533 (OBJS): Add "common/environ.h".
7535 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7537 * configure.ac: Check if the fs_base and gs_base members of
7538 `struct user_regs_struct' exist.
7539 * config.in: Regenerated.
7540 * configure: Likewise.
7542 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7544 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7546 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7547 (get_next_pcs_syscall_next_pc): Likewise.
7549 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7551 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7552 * nto-x86-low.c: Likewise.
7554 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7556 * Makefile.in: Include disable-implicit-rules.mk.
7558 2016-11-23 Pedro Alves <palves@redhat.com>
7560 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7561 (debug_vprintf): Use std::chrono::steady_clock instead of
7562 gettimeofday. Use '.' instead of ':'.
7563 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7564 (get_timestamp): Use std::chrono::steady_clock instead of
7567 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7569 * Makefile.in: Fix whitespace formatting.
7571 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7573 * Makefile.in (SFILES, OBS): Flatten list and order
7576 2016-11-23 Pedro Alves <palves@redhat.com>
7578 * event-loop.c (handle_file_event): Use warning.
7579 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7580 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7583 2016-11-23 Pedro Alves <palves@redhat.com>
7585 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7587 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7588 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7589 debug_printf and debug_flush for debug output.
7590 * server.c (handle_general_set): Likewise.
7591 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7594 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7596 * Makefile.in (.c.o): Replace rule with ...
7597 (%.o: %.c): ... this one.
7599 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7601 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7602 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7604 * configure.ac: Remove checks for the make program.
7605 * configure: Re-generate.
7607 2016-10-28 Pedro Alves <palves@redhat.com>
7609 * Makefile.in (CXX_DIALECT): Get from configure.
7610 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7611 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7612 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7613 * config.in: Regenerate.
7614 * configure: Regenerate.
7616 2016-10-27 Yao Qi <yao.qi@linaro.org>
7618 * linux-low.c (linux_supports_range_stepping): Return true if
7619 can_software_single_step return true.
7621 2016-10-27 Yao Qi <yao.qi@linaro.org>
7623 * inferiors.c (find_inferior_in_random): New function.
7624 * inferiors.h (find_inferior_in_random): Declare.
7625 * linux-low.c (linux_wait_for_event_filtered): Call
7626 find_inferior_in_random instead of find_inferior.
7628 2016-10-27 Yao Qi <yao.qi@linaro.org>
7630 * linux-low.c (linux_wait_1): If single-step breakpoints are
7631 inserted, remove them.
7633 2016-10-26 Pedro Alves <palves@redhat.com>
7635 * linux-low.c (handle_extended_wait): Link parent/child fork
7637 (linux_wait_1): Unlink them.
7638 (linux_set_resume_request): Ignore resume requests for
7639 already-resumed and unhandled fork child threads.
7640 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7641 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7643 (handle_v_requests) <vCont>: Don't call require_running.
7644 * server.h (in_queued_stop_replies): New declaration.
7646 2016-10-24 Yao Qi <yao.qi@linaro.org>
7649 * linux-aarch64-low.c (append_insns): Cast the return value to
7652 2016-10-10 Yao Qi <yao.qi@linaro.org>
7654 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7656 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7658 * target.c (target_supports_multi_process): New function, moved
7660 * target.h (target_supports_multi_process): ... here. Remove
7663 2016-10-05 Tom Tromey <tom@tromey.com>
7666 * tracepoint.c (handle_tracepoint_bkpts): Check
7667 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7669 2016-10-05 Yao Qi <yao.qi@linaro.org>
7671 * configure.srv: Update the path of arm-*.xml files.
7673 2016-10-05 Terry Guo <terry.guo@arm.com>
7674 Yao Qi <yao.qi@linaro.org>
7676 * Makefile.in: Adjust the path of rules.
7677 * configure.srv: Update the path of xml files.
7678 * regformats/arm-with-iwmmxt.dat: Regenerated.
7679 * regformats/arm-with-neon.dat: Likewise.
7680 * regformats/arm-with-vfpv2.dat: Likewise.
7681 * regformats/arm-with-vfpv3.dat Likewise.
7683 2016-09-30 Yao Qi <yao.qi@linaro.org>
7686 * target.c (target_stop_and_wait): Don't call
7687 target_continue_no_signal, use resume_stop instead.
7689 2016-09-26 Yao Qi <yao.qi@linaro.org>
7691 * linux-low.c (linux_wait_1): Call debug_exit.
7693 2016-09-23 Pedro Alves <palves@redhat.com>
7695 * Makefile.in (SFILES): Add common/new-op.c.
7696 (OBS): Add common/new-op.o.
7697 (new-op.o): New rule.
7699 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7701 * .gitinore: Ignore more files.
7703 2016-09-21 Yao Qi <yao.qi@linaro.org>
7705 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7708 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7710 * server.c (start_inferior): Call target_mourn_inferior instead of
7711 mourn_inferior; pass ptid_t argument to it.
7713 (handle_target_event): Likewise.
7714 * target.c (target_mourn_inferior): New function.
7715 * target.h (mourn_inferior): Delete macro.
7717 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7719 * linux-low.c (lwp_is_stepping): New function.
7721 2016-09-06 Carl Love <cel@us.ibm.com>
7723 * server.c (start_inferior): Fixed comment, requested comment change
7724 didn't get updated correctly. Removed reference to ptrace () call as
7725 it is only true on Linux systems.
7727 2016-09-06 Carl Love <cel@us.ibm.com>
7729 * server.c (start_inferior): Do not call
7730 function target_post_create_inferior () if the
7731 inferior process has already exited.
7733 2016-09-05 Pedro Alves <palves@redhat.com>
7735 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7736 (COMPILE.pre, CC_LD): Use CXX directly.
7737 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7738 * acinclude.m4: Don't include build-with-cxx.m4.
7739 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7740 * configure: Regenerate.
7742 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7745 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7746 call writing data to own_buf.
7748 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7750 * target.c (mywait): Call target_wait instead of
7752 (target_wait): New function.
7754 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7756 * server.c (start_inferior): New variable 'ptid'. Replace calls
7757 to the_target->resume by target_continue{,_no_signal}, depending
7759 * target.c (target_stop_and_wait): Call target_continue_no_signal
7760 instead of the_target->resume.
7761 (target_continue): New function.
7763 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7765 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7767 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7770 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7772 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7773 * linux-arm-low.c (ps_get_thread_area): Likewise.
7774 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7775 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7776 * linux-mips-low.c (ps_get_thread_area): Likewise.
7777 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7778 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7779 * linux-x86-low.c (ps_get_thread_area): Likewise.
7780 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7782 2016-08-19 Pedro Alves <palves@redhat.com>
7784 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7786 2016-08-19 Pedro Alves <palves@redhat.com>
7788 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7789 comment. Use memcpy instead of casting through unsigned long.
7791 2016-08-19 Pedro Alves <palves@redhat.com>
7793 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7794 allocating around 0x80000000.
7796 2016-08-19 Pedro Alves <palves@redhat.com>
7799 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7800 (x32-avx512-linux-ipa.o): New rules.
7801 * configure.ac (x86_64-*-linux*): New x32 check.
7802 * configure.srv (ipa_x32_linux_regobj): New.
7803 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7804 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7806 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7808 * configure: Regenerate.
7810 2016-08-09 Pedro Alves <palves@redhat.com>
7813 * Makefile.in (OBS): Add signals-state-save-restore.o.
7814 (signals-state-save-restore.o): New rule.
7815 * config.in: Regenerate.
7816 * configure: Regenerate.
7817 * linux-low.c: Include "signals-state-save-restore.h".
7818 (linux_create_inferior): Call
7819 restore_original_signals_state.
7820 * server.c: Include "dispositions-save-restore.h".
7821 (captured_main): Call save_original_signals_state.
7823 2016-08-05 Pedro Alves <palves@redhat.com>
7825 * configure: Regenerate.
7827 2016-08-04 Yao Qi <yao.qi@linaro.org>
7829 * linux-low.c (regsets_fetch_inferior_registers): Check
7830 errno is ESRCH or not.
7832 2016-08-02 Yao Qi <yao.qi@linaro.org>
7834 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7835 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7836 (thread_db_load_search): Update.
7837 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7838 td_ta_set_event and td_ta_event_getmsg.
7840 2016-07-26 Pedro Alves <palves@redhat.com>
7843 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7844 of unsigned long for 64-bit registers and use uint32_t instead of
7845 unsigned int for 32-bit registers.
7847 2016-07-26 Pedro Alves <palves@redhat.com>
7849 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7852 2016-07-21 Tom Tromey <tom@tromey.com>
7854 * configure: Rebuild.
7856 2016-07-21 Yao Qi <yao.qi@linaro.org>
7858 * mem-break.c (find_gdb_breakpoint): Cast bp to
7859 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7861 2016-07-21 Yao Qi <yao.qi@linaro.org>
7863 * server.c (handle_v_requests): Support s and S actions
7864 if target_supports_software_single_step return true.
7866 2016-07-21 Yao Qi <yao.qi@linaro.org>
7868 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7869 is resume_step, call maybe_hw_step.
7870 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7872 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7874 (proceed_one_lwp): If resume request is resume_step, install
7875 reinsert breakpoints and call maybe_hw_step.
7877 2016-07-21 Yao Qi <yao.qi@linaro.org>
7879 * linux-low.c (proceed_one_lwp): Declare.
7880 (linux_resume_one_thread): Remove local variable 'step'.
7881 Lift code enqueue signal. Call proceed_one_lwp instead of
7882 linux_resume_one_lwp.
7884 2016-07-21 Yao Qi <yao.qi@linaro.org>
7886 * linux-low.c (linux_resume_one_thread): Call
7887 enqueue_pending_signal.
7889 2016-07-21 Yao Qi <yao.qi@linaro.org>
7891 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7892 * inferiors.c (do_restore_current_thread_cleanup): New function.
7893 (make_cleanup_restore_current_thread): Likewise.
7894 * linux-low.c (install_software_single_step_breakpoints): Call
7895 make_cleanup_restore_current_thread. Switch current_thread to
7898 2016-07-21 Yao Qi <yao.qi@linaro.org>
7900 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7901 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7902 (clone_one_breakpoint): Likewise.
7903 (delete_reinsert_breakpoints): Change parameter to thread.
7905 (has_reinsert_breakpoints): Likewise.
7906 (uninsert_reinsert_breakpoints): Likewise.
7907 (reinsert_reinsert_breakpoints): Likewise.
7908 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7909 (delete_reinsert_breakpoints): Likewise.
7910 (reinsert_reinsert_breakpoints): Likewise.
7911 (uninsert_reinsert_breakpoints): Likewise.
7912 (has_reinsert_breakpoints): Likewise.
7914 2016-07-21 Yao Qi <yao.qi@linaro.org>
7916 * inferiors.c (get_thread_process): Make parameter const.
7917 * inferiors.h (get_thread_process): Update declaration.
7918 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7919 Add new parameters child_thread and parent_thread. Callers
7921 * mem-break.h (clone_all_breakpoints): Update declaration.
7923 2016-07-21 Yao Qi <yao.qi@linaro.org>
7925 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7926 <command_list, handler>: Remove.
7927 (struct gdb_breakpoint): New.
7928 (struct other_breakpoint): New.
7929 (struct reinsert_breakpoint): New.
7930 (is_gdb_breakpoint): New function.
7931 (any_persistent_commands): Update command_list if
7932 is_gdb_breakpoint returns true.
7933 (set_breakpoint): Create breakpoints according to their types.
7934 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7935 (set_gdb_breakpoint_1): Likewise.
7936 (set_gdb_breakpoint): Likewise.
7937 (clear_breakpoint_conditions): Change parameter type to
7938 'struct gdb_breakpoint *'.
7939 (clear_breakpoint_commands): Likewise.
7940 (clear_breakpoint_conditions_and_commands): Likewise.
7941 (add_condition_to_breakpoint): Likewise.
7942 (add_breakpoint_condition): Likewise.
7943 (add_commands_to_breakpoint): Likewise.
7944 (check_breakpoints): Check other_breakpoint.
7945 (clone_one_breakpoint): Clone breakpopint according to its type.
7946 * mem-break.h (struct gdb_breakpoint): Declare.
7947 (set_gdb_breakpoint): Update declaration.
7948 (clear_breakpoint_conditions_and_commands): Likewise.
7949 (add_breakpoint_condition): Likewise.
7950 (add_breakpoint_commands): Likewise.
7951 * server.c (process_point_options): Change parameter type to
7952 'struct gdb_breakpoint *'.
7954 2016-07-21 Yao Qi <yao.qi@linaro.org>
7956 * mem-break.c (set_breakpoint_at): Rename it to ...
7957 (set_breakpoint_type_at): ... it.
7958 (set_breakpoint_at): Call set_breakpoint_type_at.
7959 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7960 * mem-break.h (set_breakpoint_at): Update comments.
7962 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7964 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7966 (nios2_store_gregset): Likewise.
7968 2016-07-01 Pedro Alves <palves@redhat.com>
7969 Antoine Tremblay <antoine.tremblay@ericsson.com>
7971 * linux-low.c: Change interface to take the target lwp_info
7972 pointer directly and return void. Handle detaching from a zombie
7974 (linux_detach_lwp_callback): New function.
7975 (linux_detach): Detach from the leader thread after detaching from
7978 2016-06-28 Yao Qi <yao.qi@linaro.org>
7980 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7981 for variable new_offset.
7982 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7983 (aarch64_ftrace_insn_reloc_cb): Likewise.
7984 (aarch64_ftrace_insn_reloc_tb): Likewise.
7985 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7986 PRIx64 instead of PRIx32.
7988 2016-06-28 Yao Qi <yao.qi@linaro.org>
7990 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7991 (the_low_target): Install arm_get_syscall_trapinfo.
7993 2016-06-28 Yao Qi <yao.qi@linaro.org>
7995 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7997 (the_low_target): Install aarch64_get_syscall_trapinfo.
7999 2016-06-28 Yao Qi <yao.qi@linaro.org>
8001 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8003 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8004 Remove parameter sysno.
8005 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8008 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8010 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8011 (s390_emit_ne_goto): Likewise.
8012 (s390_emit_lt_goto): Likewise.
8013 (s390_emit_le_goto): Likewise.
8014 (s390_emit_gt_goto): Likewise.
8015 (s390_emit_ge_goto): Likewise.
8016 (s390x_emit_eq_goto): Likewise.
8017 (s390x_emit_ne_goto): Likewise.
8018 (s390x_emit_lt_goto): Likewise.
8019 (s390x_emit_le_goto): Likewise.
8020 (s390x_emit_gt_goto): Likewise.
8021 (s390x_emit_ge_goto): Likewise.
8022 (s390_emit_ops_impl): Mark variable static.
8023 (s390x_emit_ops): Likewise.
8025 2016-06-17 Yao Qi <yao.qi@linaro.org>
8027 * linux-low.c (handle_extended_wait): Call
8028 uninsert_reinsert_breakpoints for the parent process. Remove
8029 reinsert breakpoints from the child process. Reinsert them to
8030 the parent process when vfork is done.
8031 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8032 (reinsert_reinsert_breakpoints): New function.
8033 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8034 (reinsert_reinsert_breakpoints): Declare.
8036 2016-06-17 Yao Qi <yao.qi@linaro.org>
8038 * linux-low.c (handle_extended_wait): If the parent is doing
8039 step-over, remove the reinsert breakpoints from the forked child.
8041 2016-06-17 Yao Qi <yao.qi@linaro.org>
8043 * linux-low.c (unsuspend_all_lwps): Declare.
8044 (linux_low_filter_event): If thread exited, call finish_step_over.
8045 If step-over is finished, unsuspend other threads.
8047 2016-06-17 Yao Qi <yao.qi@linaro.org>
8049 * linux-low.c (linux_resume_one_lwp_throw): Assert
8050 has_reinsert_breakpoints returns false.
8051 * mem-break.c (delete_disabled_breakpoints): Assert
8052 bp type isn't reinsert_breakpoint.
8054 2016-06-17 Yao Qi <yao.qi@linaro.org>
8056 * linux-low.c (maybe_hw_step): New function.
8057 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8058 (finish_step_over): Switch current_thread to lwp temporarily,
8059 and assert has_reinsert_breakpoints returns true.
8060 (proceed_one_lwp): Call maybe_hw_step.
8061 * mem-break.c (has_reinsert_breakpoints): New function.
8062 * mem-break.h (has_reinsert_breakpoints): Declare.
8064 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8066 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8068 2016-05-17 Yao Qi <yao.qi@linaro.org>
8070 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8071 instead of find_inferior.
8073 2016-05-05 Yao Qi <yao.qi@linaro.org>
8075 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8076 Initialize res to zero.
8078 2016-05-05 Yao Qi <yao.qi@linaro.org>
8080 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8083 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8085 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8086 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8087 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8089 2016-04-28 Par Olsson <par.olsson@windriver.com>
8090 Simon Marchi <simon.marchi@ericsson.com>
8092 * tracepoint.c (write_inferior_int8): New function.
8093 (cmd_qtenable_disable): Write enable flag using
8094 write_inferior_int8.
8096 2016-04-25 Yao Qi <yao.qi@linaro.org>
8098 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8099 (need_step_over_p): Return zero if the LWP has pending signals
8100 can be delivered on software single step target.
8102 2016-04-25 Yao Qi <yao.qi@linaro.org>
8104 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8105 return instead of error.
8107 2016-04-22 Yao Qi <yao.qi@linaro.org>
8109 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8112 2016-04-22 Yao Qi <yao.qi@linaro.org>
8114 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8115 signal when stepping over breakpoint with software single
8118 2016-04-21 Pedro Alves <palves@redhat.com>
8120 * linux-s390-low.c (s390_collect_ptrace_register)
8121 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8123 (s390_check_regset): Use void * instead of gdb_byte *.
8125 2016-04-20 Pedro Alves <palves@redhat.com>
8127 * configure: Renegerate.
8129 2016-04-20 Yao Qi <yao.qi@linaro.org>
8131 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8132 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8134 (arm_store_gregset): Likewise.
8136 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8138 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8139 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8140 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8141 (amd64-avx-mpx-linux.c): New rules.
8142 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8143 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8144 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8145 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8146 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8147 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8148 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8149 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8150 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8151 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8152 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8153 * linux-x86-low.c (x86_linux_read_description): Add case for
8154 X86_XSTATE_AVX_MPX_MASK.
8155 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8156 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8157 init_registers_i386_avx_mpx_linux.
8158 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8159 (initialize_low_tracepoint): Call
8160 init_registers_i386_avx_mpx_linux.
8161 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8162 (initialize_low_tracepoint): Call
8163 init_registers_amd64_avx_mpx_linux.
8164 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8165 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8166 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8169 2016-04-18 Pedro Alves <palves@redhat.com>
8171 * configure: Regenerate.
8173 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8175 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8176 (aarch64_emit_sub): Likewise.
8178 2016-04-12 Pedro Alves <palves@redhat.com>
8180 * utils.c (prepare_to_throw_exception): Delete.
8182 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8184 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8186 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8188 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8190 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8192 * linux-aarch64-ipa.c: Add <elf.h> include.
8193 * linux-ppc-ipa.c: Add <elf.h> include.
8194 * linux-s390-ipa.c: Add <elf.h> include.
8196 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8198 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8199 (get_raw_reg_ptr): Likewise.
8200 (get_trace_state_variable_value_ptr): Likewise.
8201 (set_trace_state_variable_value_ptr): Likewise.
8202 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8205 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8206 Marcin Kościelnicki <koriakin@0x04.net>
8209 * linux-ppc-low.c (emit_insns): New function.
8210 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8211 (ppc_emit_prologue): New function.
8212 (ppc_emit_epilogue): New function.
8213 (ppc_emit_add): New function.
8214 (ppc_emit_sub): New function.
8215 (ppc_emit_mul): New function.
8216 (ppc_emit_lsh): New function.
8217 (ppc_emit_rsh_signed): New function.
8218 (ppc_emit_rsh_unsigned): New function.
8219 (ppc_emit_ext): New function.
8220 (ppc_emit_zero_ext): New function.
8221 (ppc_emit_log_not): New function.
8222 (ppc_emit_bit_and): New function.
8223 (ppc_emit_bit_or): New function.
8224 (ppc_emit_bit_xor): New function.
8225 (ppc_emit_bit_not): New function.
8226 (ppc_emit_equal): New function.
8227 (ppc_emit_less_signed): New function.
8228 (ppc_emit_less_unsigned): New function.
8229 (ppc_emit_ref): New function.
8230 (ppc_emit_const): New function.
8231 (ppc_emit_reg): New function.
8232 (ppc_emit_pop): New function.
8233 (ppc_emit_stack_flush): New function.
8234 (ppc_emit_swap): New function.
8235 (ppc_emit_stack_adjust): New function.
8236 (ppc_emit_call): New function.
8237 (ppc_emit_int_call_1): New function.
8238 (ppc_emit_void_call_2): New function.
8239 (ppc_emit_if_goto): New function.
8240 (ppc_emit_goto): New function.
8241 (ppc_emit_eq_goto): New function.
8242 (ppc_emit_ne_goto): New function.
8243 (ppc_emit_lt_goto): New function.
8244 (ppc_emit_le_goto): New function.
8245 (ppc_emit_gt_goto): New function.
8246 (ppc_emit_ge_goto): New function.
8247 (ppc_write_goto_address): New function.
8248 (ppc_emit_ops_impl): New static variable.
8249 (ppc64v1_emit_prologue): New function.
8250 (ppc64v2_emit_prologue): New function.
8251 (ppc64_emit_epilogue): New function.
8252 (ppc64_emit_add): New function.
8253 (ppc64_emit_sub): New function.
8254 (ppc64_emit_mul): New function.
8255 (ppc64_emit_lsh): New function.
8256 (ppc64_emit_rsh_signed): New function.
8257 (ppc64_emit_rsh_unsigned): New function.
8258 (ppc64_emit_ext): New function.
8259 (ppc64_emit_zero_ext): New function.
8260 (ppc64_emit_log_not): New function.
8261 (ppc64_emit_bit_and): New function.
8262 (ppc64_emit_bit_or): New function.
8263 (ppc64_emit_bit_xor): New function.
8264 (ppc64_emit_bit_not): New function.
8265 (ppc64_emit_equal): New function.
8266 (ppc64_emit_less_signed): New function.
8267 (ppc64_emit_less_unsigned): New function.
8268 (ppc64_emit_ref): New function.
8269 (ppc64_emit_const): New function.
8270 (ppc64v1_emit_reg): New function.
8271 (ppc64v2_emit_reg): New function.
8272 (ppc64_emit_pop): New function.
8273 (ppc64_emit_stack_flush): New function.
8274 (ppc64_emit_swap): New function.
8275 (ppc64v1_emit_call): New function.
8276 (ppc64v2_emit_call): New function.
8277 (ppc64v1_emit_int_call_1): New function.
8278 (ppc64v2_emit_int_call_1): New function.
8279 (ppc64v1_emit_void_call_2): New function.
8280 (ppc64v2_emit_void_call_2): New function.
8281 (ppc64_emit_if_goto): New function.
8282 (ppc64_emit_eq_goto): New function.
8283 (ppc64_emit_ne_goto): New function.
8284 (ppc64_emit_lt_goto): New function.
8285 (ppc64_emit_le_goto): New function.
8286 (ppc64_emit_gt_goto): New function.
8287 (ppc64_emit_ge_goto): New function.
8288 (ppc64v1_emit_ops_impl): New static variable.
8289 (ppc64v2_emit_ops_impl): New static variable.
8290 (ppc_emit_ops): New function.
8291 (linux_low_target): Wire in ppc_emit_ops.
8293 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8294 Marcin Kościelnicki <koriakin@0x04.net>
8297 * Makefile.in: Add powerpc-*-ipa.o
8298 * configure.srv: Add ipa_obj for powerpc*-linux.
8299 * linux-ppc-ipa.c: New file.
8300 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8302 (PPC_FIELD): New macro.
8303 (PPC_SEXT): New macro.
8304 (PPC_OP6): New macro.
8305 (PPC_BO): New macro.
8306 (PPC_LI): New macro.
8307 (PPC_BD): New macro.
8308 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8309 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8310 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8311 (ppc_get_thread_area): New function.
8312 (is_elfv2_inferior): New function.
8313 (gen_ds_form): New function.
8314 (GEN_STD): New macro.
8315 (GEN_STDU): New macro.
8316 (GEN_LD): New macro.
8317 (GEN_LDU): New macro.
8318 (gen_d_form): New function.
8319 (GEN_ADDI): New macro.
8320 (GEN_ADDIS): New macro.
8321 (GEN_LI): New macro.
8322 (GEN_LIS): New macro.
8323 (GEN_ORI): New macro.
8324 (GEN_ORIS): New macro.
8325 (GEN_LWZ): New macro.
8326 (GEN_STW): New macro.
8327 (GEN_STWU): New macro.
8328 (gen_xfx_form): New function.
8329 (GEN_MFSPR): New macro.
8330 (GEN_MTSPR): New macro.
8331 (GEN_MFCR): New macro.
8332 (GEN_MTCR): New macro.
8333 (GEN_SYNC): New macro.
8334 (GEN_LWSYNC): New macro.
8335 (gen_x_form): New function.
8336 (GEN_OR): New macro.
8337 (GEN_MR): New macro.
8338 (GEN_LWARX): New macro.
8339 (GEN_STWCX): New macro.
8340 (GEN_CMPW): New macro.
8341 (gen_md_form): New function.
8342 (GEN_RLDICL): New macro.
8343 (GEN_RLDICR): New macro.
8344 (gen_i_form): New function.
8346 (GEN_BL): New macro.
8347 (gen_b_form): New function.
8348 (GEN_BNE): New macro.
8349 (GEN_LOAD): New macro.
8350 (GEN_STORE): New macro.
8351 (gen_limm): New function.
8352 (gen_atomic_xchg): New function.
8353 (gen_call): New function.
8354 (ppc_relocate_instruction): New function.
8355 (ppc_install_fast_tracepoint_jump_pad): New function.
8356 (ppc_get_min_fast_tracepoint_insn_len): New function.
8357 (ppc_get_ipa_tdesc_idx): New function.
8358 (the_low_target): Wire in the new functions.
8359 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8361 * linux-ppc-tdesc.h: New file.
8363 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8365 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8366 (alloc_jump_pad_buffer): New function.
8367 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8368 (alloc_jump_pad_buffer): New function.
8369 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8370 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8371 (alloc_jump_pad_buffer): New function.
8372 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8373 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8374 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8375 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8377 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8379 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8380 * linux-amd64-ipa.c: Likewise.
8381 * linux-i386-ipa.c: Likewise.
8382 * linux-s390-ipa.c: Likewise.
8383 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8384 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8385 set_trace_state_variable_value_ptr.
8386 (struct ipa_sym_addresses): Likewise.
8387 (symbol_list): Likewise.
8388 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8389 accessing gdb_collect directly.
8390 (gdb_collect_ptr_type): New typedef.
8391 (get_raw_reg_ptr_type): New typedef.
8392 (get_trace_state_variable_value_ptr_type): New typedef.
8393 (set_trace_state_variable_value_ptr_type): New typedef.
8394 (gdb_collect_ptr): New global.
8395 (get_raw_reg_ptr): New global.
8396 (get_trace_state_variable_value_ptr): New global.
8397 (set_trace_state_variable_value_ptr): New global.
8398 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8399 accessing get_raw_reg directly.
8400 (get_get_tsv_func_addr): Likewise for
8401 get_trace_state_variable_value_ptr.
8402 (get_set_tsv_func_addr): Likewise for
8403 set_trace_state_variable_value_ptr.
8404 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8406 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8408 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8410 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8412 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8414 (relocate_instruction): Remove own_buf.
8415 * server.c (own_buf): Make global.
8416 (handle_v_requests): Make global.
8417 * server.h (own_buf): New declaration.
8418 (handle_v_requests): New prototype.
8420 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8423 * linux-s390-low.c (add_insns): New function.
8424 (s390_emit_prologue): New function.
8425 (s390_emit_epilogue): New function.
8426 (s390_emit_add): New function.
8427 (s390_emit_sub): New function.
8428 (s390_emit_mul): New function.
8429 (s390_emit_lsh): New function.
8430 (s390_emit_rsh_signed): New function.
8431 (s390_emit_rsh_unsigned): New function.
8432 (s390_emit_ext): New function.
8433 (s390_emit_log_not): New function.
8434 (s390_emit_bit_and): New function.
8435 (s390_emit_bit_or): New function.
8436 (s390_emit_bit_xor): New function.
8437 (s390_emit_bit_not): New function.
8438 (s390_emit_equal): New function.
8439 (s390_emit_less_signed): New function.
8440 (s390_emit_less_unsigned): New function.
8441 (s390_emit_ref): New function.
8442 (s390_emit_if_goto): New function.
8443 (s390_emit_goto): New function.
8444 (s390_write_goto_address): New function.
8445 (s390_emit_litpool): New function.
8446 (s390_emit_const): New function.
8447 (s390_emit_call): New function.
8448 (s390_emit_reg): New function.
8449 (s390_emit_pop): New function.
8450 (s390_emit_stack_flush): New function.
8451 (s390_emit_zero_ext): New function.
8452 (s390_emit_swap): New function.
8453 (s390_emit_stack_adjust): New function.
8454 (s390_emit_set_r2): New function.
8455 (s390_emit_int_call_1): New function.
8456 (s390_emit_void_call_2): New function.
8457 (s390_emit_eq_goto): New function.
8458 (s390_emit_ne_goto): New function.
8459 (s390_emit_lt_goto): New function.
8460 (s390_emit_le_goto): New function.
8461 (s390_emit_gt_goto): New function.
8462 (s390_emit_ge_goto): New function.
8463 (s390x_emit_prologue): New function.
8464 (s390x_emit_epilogue): New function.
8465 (s390x_emit_add): New function.
8466 (s390x_emit_sub): New function.
8467 (s390x_emit_mul): New function.
8468 (s390x_emit_lsh): New function.
8469 (s390x_emit_rsh_signed): New function.
8470 (s390x_emit_rsh_unsigned): New function.
8471 (s390x_emit_ext): New function.
8472 (s390x_emit_log_not): New function.
8473 (s390x_emit_bit_and): New function.
8474 (s390x_emit_bit_or): New function.
8475 (s390x_emit_bit_xor): New function.
8476 (s390x_emit_bit_not): New function.
8477 (s390x_emit_equal): New function.
8478 (s390x_emit_less_signed): New function.
8479 (s390x_emit_less_unsigned): New function.
8480 (s390x_emit_ref): New function.
8481 (s390x_emit_if_goto): New function.
8482 (s390x_emit_const): New function.
8483 (s390x_emit_call): New function.
8484 (s390x_emit_reg): New function.
8485 (s390x_emit_pop): New function.
8486 (s390x_emit_stack_flush): New function.
8487 (s390x_emit_zero_ext): New function.
8488 (s390x_emit_swap): New function.
8489 (s390x_emit_stack_adjust): New function.
8490 (s390x_emit_int_call_1): New function.
8491 (s390x_emit_void_call_2): New function.
8492 (s390x_emit_eq_goto): New function.
8493 (s390x_emit_ne_goto): New function.
8494 (s390x_emit_lt_goto): New function.
8495 (s390x_emit_le_goto): New function.
8496 (s390x_emit_gt_goto): New function.
8497 (s390x_emit_ge_goto): New function.
8498 (s390_emit_ops): New function.
8499 (struct linux_target_ops): Fill in emit_ops hook.
8501 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8504 * Makefile.in: Add s390 IPA files.
8505 * configure.srv: Build IPA for s390.
8506 * linux-s390-ipa.c: New file.
8507 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8508 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8509 (tdesc_s390_linux32): Likewise.
8510 (init_registers_s390_linux32v1): Likewise.
8511 (tdesc_s390_linux32v1): Likewise.
8512 (init_registers_s390_linux32v2): Likewise.
8513 (tdesc_s390_linux32v2): Likewise.
8514 (init_registers_s390_linux64): Likewise.
8515 (tdesc_s390_linux64): Likewise.
8516 (init_registers_s390_linux64v1): Likewise.
8517 (tdesc_s390_linux64v1): Likewise.
8518 (init_registers_s390_linux64v2): Likewise.
8519 (tdesc_s390_linux64v2): Likewise.
8520 (init_registers_s390_te_linux64): Likewise.
8521 (tdesc_s390_te_linux64): Likewise.
8522 (init_registers_s390_vx_linux64): Likewise.
8523 (tdesc_s390_vx_linux64): Likewise.
8524 (init_registers_s390_tevx_linux64): Likewise.
8525 (tdesc_s390_tevx_linux64): Likewise.
8526 (init_registers_s390x_linux64): Likewise.
8527 (tdesc_s390x_linux64): Likewise.
8528 (init_registers_s390x_linux64v1): Likewise.
8529 (tdesc_s390x_linux64v1): Likewise.
8530 (init_registers_s390x_linux64v2): Likewise.
8531 (tdesc_s390x_linux64v2): Likewise.
8532 (init_registers_s390x_te_linux64): Likewise.
8533 (tdesc_s390x_te_linux64): Likewise.
8534 (init_registers_s390x_vx_linux64): Likewise.
8535 (tdesc_s390x_vx_linux64): Likewise.
8536 (init_registers_s390x_tevx_linux64): Likewise.
8537 (tdesc_s390x_tevx_linux64): Likewise.
8538 (have_hwcap_s390_vx): New static variable.
8539 (s390_arch_setup): Fill have_hwcap_s390_vx.
8540 (s390_get_thread_area): New function.
8541 (s390_ft_entry_gpr_esa): New const.
8542 (s390_ft_entry_gpr_zarch): New const.
8543 (s390_ft_entry_misc): New const.
8544 (s390_ft_entry_fr): New const.
8545 (s390_ft_entry_vr): New const.
8546 (s390_ft_main_31): New const.
8547 (s390_ft_main_64): New const.
8548 (s390_ft_exit_fr): New const.
8549 (s390_ft_exit_vr): New const.
8550 (s390_ft_exit_misc): New const.
8551 (s390_ft_exit_gpr_esa): New const.
8552 (s390_ft_exit_gpr_zarch): New const.
8553 (append_insns): New function.
8554 (s390_relocate_instruction): New function.
8555 (s390_install_fast_tracepoint_jump_pad): New function.
8556 (s390_get_min_fast_tracepoint_insn_len): New function.
8557 (s390_get_ipa_tdesc_idx): New function.
8558 (struct linux_target_ops): Wire in the above functions.
8559 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8560 * linux-s390-tdesc.h: New file.
8562 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8564 * linux-s390-low.c (s390_supports_tracepoints): New function.
8565 (struct linux_target_ops): Fill supports_tracepoints hook.
8567 2016-03-18 Yao Qi <yao.qi@linaro.org>
8569 * linux-low.c (lwp_signal_can_be_delivered): New function.
8570 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8572 2016-03-18 Yao Qi <yao.qi@linaro.org>
8574 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8575 0 if signal is enqueued. Remove 'signal' from one debugging
8576 message. Move one debugging message to some lines below.
8577 Remove code setting 'signal' to 0.
8579 2016-03-18 Yao Qi <yao.qi@linaro.org>
8581 * linux-low.c (linux_low_filter_event): Remove redundant
8582 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8584 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8586 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8587 (struct linux_target_ops): Wire in the above.
8589 2016-03-03 Yao Qi <yao.qi@linaro.org>
8591 * linux-low.c: Update comments to start_step_over.
8593 2016-03-03 Yao Qi <yao.qi@linaro.org>
8596 * linux-low.c (handle_extended_wait): Set child suspended
8597 if event_lwp->bp_reinsert isn't zero.
8599 2016-03-02 Yao Qi <yao.qi@linaro.org>
8601 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8602 enqueue_pending_signal.
8604 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8606 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8609 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8611 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8612 (s390_regmap_3264) [!__s390x__]: New global.
8613 (s390_collect_ptrace_register): Skip map entries containing -1.
8614 (s390_supply_ptrace_register): Ditto.
8615 (s390_fill_gprs_high): New function.
8616 (s390_store_gprs_high): New function.
8617 (s390_regsets): Add NT_S390_HIGH_GPRS.
8618 (s390_get_hwcap): Enable on 31-bit.
8619 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8620 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8621 Detect NT_S390_HIGH_GPRS.
8622 (s390_usrregs_info_3264): Enable on 31-bit.
8623 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8624 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8626 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8629 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8630 * configure.srv: Ditto.
8631 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8632 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8633 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8634 (init_registers_amd64_linux): Remove prototype.
8635 (tdesc_amd64_linux): Remove declaration.
8636 (get_ipa_tdesc): New function.
8637 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8638 initialize remaining tdescs.
8639 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8640 (init_registers_i386_linux): Remove prototype.
8641 (tdesc_i386_linux): Remove declaration.
8642 (get_ipa_tdesc): New function.
8643 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8644 initialize remaining tdescs.
8645 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8646 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8647 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8648 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8649 (x86_get_ipa_tdesc_idx): New function.
8650 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8651 * linux-x86-tdesc.h: New file.
8652 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8653 (target_get_ipa_tdesc_idx): New macro.
8654 * tracepoint.c (ipa_tdesc_idx): New macro.
8655 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8656 (symbol_list): Add ipa_tdesc_idx.
8657 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8658 (ipa_tdesc): Remove.
8659 (ipa_tdesc_idx): New variable.
8660 (get_context_regcache): Use get_ipa_tdesc.
8661 (gdb_collect): Ditto.
8663 * tracepoint.h (get_ipa_tdesc): New prototype.
8664 (ipa_tdesc): Remove.
8666 2016-02-24 Pedro Alves <palves@redhat.com>
8668 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8669 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8670 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8671 Factor out common code between the USE_SIGTRAP_SIGINFO and
8672 !USE_SIGTRAP_SIGINFO blocks.
8673 (linux_low_filter_event): Call save_stop_reason instead of
8674 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8676 (linux_wait_1): Update comments.
8678 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8680 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8681 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8682 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8683 ppc_insert_point, ppc_remove_point.
8685 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8687 * linux-s390-low.c (s390_supports_z_point_type): New function.
8688 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8690 2016-02-16 Yao Qi <yao.qi@linaro.org>
8692 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8693 PC. Get pc from regcache_read_pc.
8695 2016-02-12 Yao Qi <yao.qi@linaro.org>
8697 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8698 or linux_get_pc_32bit.
8699 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8701 2016-02-12 Yao Qi <yao.qi@linaro.org>
8703 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8704 arm_linux_get_next_pcs_fixup.
8706 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8708 * tracepoint.c (x_tracepoint_action_download): Change
8709 write_inferior_data_ptr to write_inferior_data_pointer.
8710 (cmd_qtstart): Likewise.
8711 (write_inferior_data_ptr): Remove.
8712 (download_agent_expr): Change write_inferior_data_ptr to
8713 write_inferior_data_pointer.
8714 (download_tracepoint_1): Likewise.
8715 (download_tracepoint): Likewise.
8716 (download_trace_state_variables): Likewise.
8718 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8719 Marcin Kościelnicki <koriakin@0x04.net>
8721 * tracepoint.c (struct tracepoint_action_ops): Remove.
8722 (struct tracepoint_action): Remove ops.
8723 (m_tracepoint_action_download, r_tracepoint_action_download)
8724 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8725 size and offset accordingly.
8726 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8727 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8728 (tracepoint_action_send, tracepoint_action_download): New functions.
8729 Helpers for trace action handlers.
8730 (add_tracepoint_action): Remove setup actions ops.
8731 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8733 2016-02-10 Yao Qi <yao.qi@linaro.org>
8735 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8737 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8739 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8741 * configure: Regenerate.
8743 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8745 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8746 void * to gdb_byte *.
8747 * linux-low.c (siginfo_fixup): Likewise.
8748 (linux_xfer_siginfo): Likewise.
8749 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8751 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8753 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8755 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8757 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8759 * linux-x86-low.c [__x86_64__]: Include
8760 "nat/amd64-linux-siginfo.h".
8761 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8762 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8763 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8764 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8765 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8766 (cpt_si_fd, si_timerid, si_overrun): Move from
8767 nat/amd64-linux-siginfo.c.
8768 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8770 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8772 * server.c (skip_to_semicolon): Remove.
8773 (process_point_options): Use strchrnul instead of
8776 2016-01-26 Yao Qi <yao.qi@linaro.org>
8778 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8779 * linux-low.c (install_software_single_step_breakpoints): Don't
8780 call regcache_read_pc.
8781 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8784 2016-01-26 Yao Qi <yao.qi@linaro.org>
8786 * linux-low.c (install_software_single_step_breakpoints): Call
8787 regcache_read_pc instead of get_pc.
8789 2016-01-26 Yao Qi <yao.qi@linaro.org>
8791 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8792 (unblock_async_io): Rename to ...
8793 (block_unblock_async_io): ... it. New function.
8794 (enable_async_io): Don't install SIGIO handler. Unblock it
8796 (disable_async_io): Don't ignore SIGIO. Block it instead.
8797 (initialize_async_io): Install SIGIO handler. Don't call
8800 2016-01-26 Yao Qi <yao.qi@linaro.org>
8802 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8803 first character is '\003', call *the_target->request_interrupt.
8805 2016-01-25 Yao Qi <yao.qi@linaro.org>
8807 * remote-utils.c (new_thread_notify): Remove.
8808 (dead_thread_notify): Likewise.
8809 * remote-utils.h (new_thread_notify): Remove declaration.
8810 (dead_thread_notify): Likewise.
8812 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8814 * gdb.trace/pending.exp: Fix expected message on continue.
8816 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8818 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8819 it works properly on big-endian machines where sizeof (CORE_ADDR)
8822 2016-01-21 Pedro Alves <palves@redhat.com>
8824 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8825 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8826 * configure: Regenerate.
8828 2016-01-21 Yao Qi <yao.qi@linaro.org>
8830 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8831 is_thumb and set it according to CPSR saved on the stack.
8832 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8833 arm_sigreturn_next_pc.
8835 2016-01-18 Yao Qi <yao.qi@linaro.org>
8837 * linux-low.c (linux_set_pc_64bit): New function.
8838 (linux_get_pc_64bit): New function.
8839 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8841 * linux-sparc-low.c (debug_threads): Remove declaration.
8842 (sparc_get_pc): Remove.
8843 (the_low_target): Use linux_get_pc_64bit instead of
8845 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8846 (the_low_target): Use linux_get_pc_64bit and
8849 2016-01-18 Yao Qi <yao.qi@linaro.org>
8851 * linux-arm-low.c (debug_threads): Remove declaration.
8852 (arm_get_pc, arm_set_pc): Remove.
8853 (the_low_target): Use linux_get_pc_32bit and
8855 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8856 (the_low_target): Use linux_get_pc_32bit and
8858 * linux-cris-low.c (debug_threads): Remove declaration.
8859 (cris_get_pc, cris_set_pc,): Remove.
8860 (the_low_target): Use linux_get_pc_32bit and
8862 * linux-crisv32-low.c (debug_threads): Remove declaration.
8863 (cris_get_pc, cris_set_pc): Remove.
8864 (the_low_target): Use linux_get_pc_32bit and
8866 * linux-low.c: Include inttypes.h.
8867 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8868 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8869 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8870 (the_low_target): Use linux_get_pc_32bit and
8872 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8873 (the_low_target): Use linux_get_pc_32bit and
8875 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8876 (the_low_target): Use linux_get_pc_32bit and
8878 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8879 (the_low_target): Use linux_get_pc_32bit and
8881 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8882 (the_low_target): Use linux_get_pc_32bit and
8885 2016-01-18 Gary Benson <gbenson@redhat.com>
8887 * configure.ac (AC_FUNC_FORK): New check.
8888 * config.in: Regenerate.
8889 * configure: Likewise.
8891 2016-01-14 Yao Qi <yao.qi@linaro.org>
8893 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8894 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8895 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8896 arm_get_next_pcs_ctor.
8898 2016-01-12 Josh Stone <jistone@redhat.com>
8899 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901 * inferiors.h: Include "gdb_vecs.h".
8902 (struct process_info): Add syscalls_to_catch.
8903 * inferiors.c (remove_process): Free syscalls_to_catch.
8904 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8905 syscall_return stops.
8906 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8907 * server.c (handle_general_set): Handle QCatchSyscalls.
8908 (handle_query): Report support for QCatchSyscalls.
8909 * target.h (struct target_ops): Add supports_catch_syscall.
8910 (target_supports_catch_syscall): New macro.
8911 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8912 (struct lwp_info): Add syscall_state.
8913 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8914 Maintain syscall_state and syscalls_to_catch across exec.
8915 (get_syscall_trapinfo): New function, proxy to the_low_target.
8916 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8917 (linux_low_filter_event): Toggle syscall_state entry/return for
8918 syscall traps, and set it ignored for all others.
8919 (gdb_catching_syscalls_p): New function.
8920 (gdb_catch_this_syscall_p): New function.
8921 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8922 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8923 (linux_supports_catch_syscall): New function.
8924 (linux_target_ops): Install it.
8925 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8926 (the_low_target): Install it.
8928 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8930 * acinclude.m4: Include new ../warning.m4 file.
8931 * configure: Regenerated.
8932 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8934 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8936 * ax.c (is_goto_target): Mark static.
8937 * linux-low.c (register_addr): Likewise.
8938 (linux_fetch_registers, linux_store_registers): Likewise.
8939 * mem-break.c (any_persistent_commands): Fix old prototype.
8940 (add_commands_to_breakpoint): Mark static.
8941 * regcache.c (find_register_by_name): Delete unused func.
8942 * remote-utils.c (hex_or_minus_one): Mark static.
8943 * server.c (monitor_show_help): Mark static.
8944 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8945 handle_v_requests): Likewise.
8947 2016-01-12 Pedro Alves <palves@redhat.com>
8949 Remove use of the registered trademark symbol throughout.
8951 2016-01-08 Yao Qi <yao.qi@linaro.org>
8953 * remote-utils.c (getpkt): If c is '\003', call target hook
8956 2016-01-06 Yao Qi <yao.qi@linaro.org>
8958 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8959 linux-aarch32-low.c.
8960 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8961 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8962 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8963 (thumb2_breakpoint): Declare.
8964 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8965 linux-aarch32-low.h.
8966 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8967 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8968 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8970 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8972 * gdbreplay.c (gdbreplay_version): Change copyright year in
8974 * server.c (gdbserver_version): Likewise.
8976 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8978 * server.c (crc32_table): Delete.
8979 (crc32): Use libiberty's xcrc32 function.
8981 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8983 * lynx-low.c (lynx_delete_thread_callback): New function.
8984 (lynx_mourn): Properly delete our process and all of its
8985 threads. Remove call to clear_inferiors.
8987 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8989 * target.c (thread_search_callback): Add check that
8990 the thread_stopped target callback is not NULL before
8993 2015-12-21 Yao Qi <yao.qi@linaro.org>
8995 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8998 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9000 * server.c (handle_query): Call target_supports_software_single_step.
9002 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9004 * linux-low.c (single_step): New function.
9005 (linux_resume_one_lwp_throw): Call single_step.
9006 (start_step_over): Likewise.
9008 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9010 * Makefile.in (SFILES): Append arch/arm-linux.c,
9011 arch/arm-get-next-pcs.c.
9012 (arm-linux.o): New rule.
9013 (arm-get-next-pcs.o): New rule.
9014 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9016 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9017 to linux-aarch32-low.c.
9018 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9019 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9020 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9021 (thumb2_breakpoint_len): Likewise.
9022 (arm_is_thumb_mode): Make non-static.
9023 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9024 from linux-aarch32-low.c.
9025 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9026 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9027 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9028 (thumb2_breakpoint_len): Likewise.
9029 (arm_is_thumb_mode): New declaration.
9030 * linux-arm-low.c: Include arch/arm-linux.h
9031 aarch/arm-get-next-pcs.h, sys/syscall.h.
9032 (get_next_pcs_ops): New struct.
9033 (get_next_pcs_addr_bits_remove): New function.
9034 (get_next_pcs_is_thumb): New function.
9035 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9036 (arm_sigreturn_next_pc): Likewise.
9037 (get_next_pcs_syscall_next_pc): Likewise.
9038 (arm_gdbserver_get_next_pcs): Likewise.
9039 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9041 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9042 * server.h: Include gdb_vecs.h.
9044 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9046 * Makefile.in (SFILES): Append common/common-regcache.c.
9047 (OBS): Append common-regcache.o.
9048 (common-regcache.o): New rule.
9049 * regcache.c (init_register_cache): Initialize cache to
9051 (regcache_raw_read_unsigned): New function.
9052 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9053 register_status enum.
9055 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9057 * linux-aarch64-low.c (the_low_targets): Rename
9058 breakpoint_reinsert_addr to get_next_pcs.
9059 * linux-arm-low.c (the_low_targets): Likewise.
9060 * linux-bfin-low.c (the_low_targets): Likewise.
9061 * linux-cris-low.c (the_low_targets): Likewise.
9062 * linux-crisv32-low.c (the_low_targets): Likewise.
9063 * linux-low.c (can_software_single_step): Likewise.
9064 (install_software_single_step_breakpoints): New function.
9065 (start_step_over): Use install_software_single_step_breakpoints.
9066 * linux-low.h: New CORE_ADDR vector.
9067 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9069 * linux-mips-low.c (the_low_targets): Likewise.
9070 * linux-nios2-low.c (the_low_targets): Likewise.
9071 * linux-sparc-low.c (the_low_targets): Likewise.
9073 2015-12-17 Pedro Alves <palves@redhat.com>
9075 * linux-low.c (linux_kill_one_lwp): Remove references to
9077 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9079 (linux_init_signals): Delete.
9080 (initialize_low): Adjust.
9081 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9083 2015-12-16 Pedro Alves <palves@redhat.com>
9085 * configure.ac (compiler warning flags): When testing a
9086 -Wno-foo option, check whether -Wfoo works instead.
9087 * configure: Regenerate.
9089 2015-12-11 Don Breazeal <donb@codesourcery.com>
9091 * server.c (process_serial_event): Don't exit from gdbserver
9092 in remote mode if there are still active inferiors.
9094 2015-12-11 Yao Qi <yao.qi@linaro.org>
9096 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9097 arm_breakpoint_at if the process is 32-bit.
9099 2015-12-11 Yao Qi <yao.qi@linaro.org>
9101 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9104 2015-12-07 Yao Qi <yao.qi@linaro.org>
9106 * configure.srv: Append arm.o to srv_tgtobj for
9107 aarch64*-*-linux* target.
9108 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9109 from linux-arm-low.c.
9110 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9111 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9112 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9113 (thumb2_breakpoint_len): Likewise.
9114 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9115 (arm_breakpoint_kinds): Likewise.
9116 (arm_breakpoint_kind_from_pc): Likewise.
9117 (arm_sw_breakpoint_from_kind): Likewise.
9118 (arm_breakpoint_kind_from_current_state): Likewise.
9119 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9120 (arm_sw_breakpoint_from_kind): Declare.
9121 (arm_breakpoint_kind_from_current_state): Declare.
9122 (arm_breakpoint_at): Declare.
9123 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9124 arm_sw_breakpoint_from_kind if process is 32-bit.
9125 (aarch64_breakpoint_kind_from_pc): New function.
9126 (aarch64_breakpoint_kind_from_current_state): New function.
9127 (the_low_target): Initialize fields breakpoint_kind_from_pc
9128 and breakpoint_kind_from_current_state.
9129 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9130 linux-aarch32-low.c.
9131 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9132 (arm_breakpoint, arm_breakpoint_len): Likewise.
9133 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9134 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9135 (arm_is_thumb_mode): Likewise.
9136 (arm_breakpoint_at): Likewise.
9137 (arm_breakpoint_kind_from_pc): Likewise.
9138 (arm_sw_breakpoint_from_kind): Likewise.
9139 (arm_breakpoint_kind_from_current_state): Likewise.
9142 2015-08-04 Yao Qi <yao.qi@linaro.org>
9144 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9145 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9146 * server.c (extended_protocol): Remove "static".
9147 * server.h (extended_protocol): Declare it.
9149 2015-12-04 Josh Stone <jistone@redhat.com>
9151 * target.h (struct target_ops) <arch_setup>: Rename to ...
9152 (struct target_ops) <post_create_inferior>: ... this.
9153 (target_arch_setup): Rename to ...
9154 (target_post_create_inferior): ... this, calling post_create_inferior.
9155 * server.c (start_inferior): Update target_arch_setup calls to
9156 target_post_create_inferior.
9157 * linux-low.c (linux_low_ptrace_options): Forward declare.
9158 (linux_arch_setup): Update its comment for general use.
9159 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9160 (struct linux_target_ops): Use linux_post_create_inferior.
9161 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9162 to post_create_inferior.
9163 * nto-low.c (struct nto_target_ops): Likewise.
9164 * spu-low.c (struct spu_target_ops): Likewise.
9165 * win32-low.c (struct win32_target_ops): Likewise.
9167 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9169 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9171 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9173 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9174 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9175 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9176 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9177 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9178 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9179 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9180 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9181 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9182 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9183 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9184 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9186 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9188 * linux-low.c (linux_look_up_symbols): Don't call
9189 linux_supports_traceclone.
9190 * linux-low.h (thread_db_init): Remove use_events argument.
9191 * thread-db.c (thread_db_use_event): Remove global variable.
9192 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9193 (struct thread_db) <td_create_bp>: Remove field.
9194 (thread_db_create_event): Remove function.
9195 (thread_db_enable_reporting): Likewise.
9196 (find_one_thread): Don't check for thread_db_use_events.
9197 (attach_thread): Likewise.
9198 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9199 (try_thread_db_load_1): Don't check for thread_db_use_events.
9200 (thread_db_init): Remove use_events argument and thread events
9202 (remove_thread_event_breakpoints): Remove function.
9203 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9205 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9207 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9209 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9210 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9211 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9212 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9213 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9215 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9218 * linux-low.c (can_hardware_single_step): Use
9219 supports_hardware_single_step.
9220 (can_software_single_step): New function.
9221 (start_step_over): Call can_software_single_step.
9222 (linux_supports_hardware_single_step): New function.
9223 (struct target_ops) <supports_software_single_step>: Initialize.
9224 * linux-low.h (struct linux_target_ops)
9225 <supports_hardware_single_step>: Initialize.
9226 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9227 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9228 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9229 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9230 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9231 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9232 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9233 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9234 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9235 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9237 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9238 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9240 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9241 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9242 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9244 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9245 * target.h (struct target_ops): <supports_software_single_step>:
9247 (target_supports_software_single_step): New macro.
9249 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9251 * linux-low.c (linux_wait_1): Fix pc advance condition.
9252 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9253 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9255 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9257 * linux-arm-low.c (arm_is_thumb_mode): New function.
9258 (arm_breakpoint_at): Use arm_is_thumb_mode.
9259 (arm_breakpoint_kind_from_current_state): New function.
9260 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9262 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9263 (linux_breakpoint_kind_from_current_state): New function.
9264 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9265 * linux-low.h (struct linux_target_ops)
9266 <breakpoint_kind_from_current_state>: New field.
9267 * target.h (struct target_ops): Likewise.
9268 (target_breakpoint_kind_from_current_state): New macro.
9270 2015-11-30 Pedro Alves <palves@redhat.com>
9272 * linux-low.c (linux_resume): Wake up the event loop before
9275 2015-11-30 Pedro Alves <palves@redhat.com>
9277 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9279 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9281 * target.c (struct thread_search): New structure.
9282 (thread_search_callback): New function.
9283 (prev_general_thread): New global.
9284 (prepare_to_access_memory, done_accessing_memory): New functions.
9285 * target.h (prepare_to_access_memory, done_accessing_memory):
9286 Replace macros with function declarations.
9288 2015-11-30 Pedro Alves <palves@redhat.com>
9291 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9292 report TARGET_WAITKIND_NO_RESUMED.
9293 * remote-utils.c (prepare_resume_reply): Handle
9294 TARGET_WAITKIND_NO_RESUMED.
9295 * server.c (report_no_resumed): New global.
9296 (handle_query) <qSupported>: Handle "no-resumed+". Report
9297 "no-resumed+" support.
9298 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9299 return error if the client doesn't support no-resumed events.
9300 (push_stop_notification): New function.
9301 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9302 events if the client supports them.
9304 2015-11-30 Pedro Alves <palves@redhat.com>
9306 * linux-low.c (thread_still_has_status_pending_p): Don't check
9308 (lwp_resumed): New function.
9309 (status_pending_p_callback): Return early if the LWP is not
9310 supposed to be resumed.
9312 2015-11-30 Pedro Alves <palves@redhat.com>
9314 * linux-low.c (handle_extended_wait): Assert that the LWP's
9315 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9316 thread create events, leave the new child's status pending.
9317 (linux_low_filter_event): If GDB wants to hear about thread exit
9318 events, leave the LWP marked dead and don't delete it.
9319 (linux_wait_for_event_filtered): Don't check for thread exit.
9320 (filter_exit_event): New function.
9321 (linux_wait_1): Use it, when returning an exit event.
9322 (linux_resume_one_lwp_throw): Assert that the LWP's
9323 waitstatus is TARGET_WAITKIND_IGNORE.
9324 * remote-utils.c (prepare_resume_reply): Handle
9325 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9326 * server.c (report_thread_events): New global.
9327 (handle_general_set): Handle QThreadEvents.
9328 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9329 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9330 TARGET_WAITKIND_THREAD_EXITED.
9331 * server.h (report_thread_events): Declare.
9333 2015-11-30 Pedro Alves <palves@redhat.com>
9335 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9336 the thread's last_resume_kind was resume_stop.
9338 2015-11-30 Pedro Alves <palves@redhat.com>
9340 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9343 2015-11-30 Pedro Alves <palves@redhat.com>
9345 * server.c (handle_v_requests): Handle vCtrlC.
9347 2015-11-30 Pedro Alves <palves@redhat.com>
9349 * gdbthread.h (find_any_thread_of_pid): Declare.
9350 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9352 * server.c (handle_query): If current_thread is NULL, look for
9353 another thread of the selected process.
9355 2015-11-26 Daniel Colascione <dancol@dancol.org>
9356 Simon Marchi <simon.marchi@ericsson.com>
9358 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9359 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9361 * target.h (struct target_ops) <thread_name>: New field.
9362 (target_thread_name): New macro.
9364 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9366 * regcache.h (regcache_invalidate_pid): Add declaration.
9367 * regcache.c (regcache_invalidate_pid): New function, extracted
9368 from regcache_invalidate.
9369 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9370 Add trivial documentation comment.
9371 * lynx-low.c: Use regcache_invalidate_pid instead of
9372 regcache_invalidate.
9374 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9376 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9377 and Elf64_auxv_t if the target is Android.
9379 2015-11-22 Doug Evans <xdje42@gmail.com>
9381 * target.h: #include <sys/types.h>.
9383 2015-11-19 Pedro Alves <palves@redhat.com>
9385 * linux-low.c (linux_process_qsupported): Change prototype.
9387 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9389 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9390 and adjust to loop over all features.
9391 * server.c (handle_query) <qSupported>: Adjust to call
9392 target_process_qsupported once, passing it a vector of unprocessed
9394 * target.h (struct target_ops) <process_qsupported>: Change
9396 (target_process_qsupported): Adjust.
9398 2015-11-19 Pedro Alves <palves@redhat.com>
9400 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9402 * configure: Regenerate.
9404 2015-11-19 Pedro Alves <palves@redhat.com>
9406 * configure: Regenerate.
9408 2015-11-19 Yao Qi <yao.qi@linaro.org>
9410 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9413 2015-11-19 Yao Qi <yao.qi@linaro.org>
9415 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9416 (struct aarch64_operand): Move enum out.
9418 2015-11-19 Yao Qi <yao.qi@linaro.org>
9420 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9421 struct user_fpsimd_state *.
9422 (aarch64_store_fpregset): Likewise.
9424 2015-11-19 Yao Qi <yao.qi@linaro.org>
9426 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9427 struct user_pt_regs *.
9428 (aarch64_store_gregset): Likewise.
9430 2015-11-18 Pedro Alves <palves@redhat.com>
9432 * Makefile.in (all_object_files): Add $IPA_OBJS.
9434 2015-11-17 Pedro Alves <palves@redhat.com>
9436 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9437 GDB_SIGNAL_0 and gdb_signal_to_string.
9439 2015-11-17 Pedro Alves <palves@redhat.com>
9441 * win32-low.c (handle_output_debug_string): Remove parameter.
9442 (win32_kill): Remove our_status local and adjust call to
9443 handle_output_debug_string.
9444 (get_child_debug_event): Adjust call to
9445 handle_output_debug_string.
9447 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9449 * linux-mips-low.c (mips_fill_gregset): Add cast.
9450 (mips_store_gregset): Likewise.
9451 (mips_fill_fpregset): Likewise.
9452 (mips_store_fpregset): Likewise.
9454 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9456 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9459 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9461 * linux-mips-low.c (mips_linux_new_thread): Change type of
9462 watch_type to enum target_hw_bp_type.
9464 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9466 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9467 Change return type to arm_hwbp_type.
9469 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9471 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9472 (arm_store_gregset): Likewise.
9473 * linux-arm-low.c (arm_get_hwcap): Likewise.
9474 (arm_read_description): Likewise.
9476 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9478 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9480 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9482 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9483 (ppc_fill_vsxregset): Likewise.
9484 (ppc_store_vsxregset): Likewise.
9485 (ppc_fill_vrregset): Likewise.
9486 (ppc_store_vrregset): Likewise.
9487 (ppc_fill_evrregset): Likewise.
9488 (ppc_store_evrregset): Likewise.
9490 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9492 * linux-ppc-low.c (ppc_usrregs_info): Remove
9493 forward-declaration.
9494 (ppc_arch_setup): Move lower in file.
9496 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9498 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9499 (ps_pdwrite): Likewise.
9501 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9503 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9504 to after assert checks.
9506 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9508 * proc-service.c (ps_pdread): Add/adjust casts.
9509 (ps_pdwrite): Add/adjust casts.
9511 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9513 * server.c (handle_search_memory_1): Cast return value of
9516 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9518 * server.c (write_qxfer_response): Change type of data to
9521 2015-10-29 Pedro Alves <palves@redhat.com>
9523 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9525 2015-10-29 Pedro Alves <palves@redhat.com>
9527 * tracepoint.c (clear_installed_tracepoints): Add casts.
9529 2015-10-29 Pedro Alves <palves@redhat.com>
9531 * server.c (handle_v_cont, process_serial_event): Add enum
9532 gdb_signal casts to signal parsing code.
9534 2015-10-29 Pedro Alves <palves@redhat.com>
9536 * linux-low.h (NULL_REGSET): Define.
9537 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9538 * linux-arm-low.c (arm_regsets): Likewise.
9539 * linux-crisv32-low.c (cris_regsets): Likewise.
9540 * linux-m68k-low.c (m68k_regsets): Likewise.
9541 * linux-mips-low.c (mips_regsets): Likewise.
9542 * linux-nios2-low.c (nios2_regsets): Likewise.
9543 * linux-ppc-low.c (ppc_regsets): Likewise.
9544 * linux-s390-low.c (s390_regsets): Likewise.
9545 * linux-sh-low.c (sh_regsets): Likewise.
9546 * linux-sparc-low.c (sparc_regsets): Likewise.
9547 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9548 * linux-tile-low.c (tile_regsets): Likewise.
9549 * linux-x86-low.c (x86_regsets): Likewise.
9550 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9552 2015-10-29 Pedro Alves <palves@redhat.com>
9554 * linux-low.h (NULL_REGSET): Define.
9555 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9556 * linux-arm-low.c (arm_regsets): Likewise.
9557 * linux-crisv32-low.c (cris_regsets): Likewise.
9558 * linux-m68k-low.c (m68k_regsets): Likewise.
9559 * linux-mips-low.c (mips_regsets): Likewise.
9560 * linux-nios2-low.c (nios2_regsets): Likewise.
9561 * linux-ppc-low.c (ppc_regsets): Likewise.
9562 * linux-s390-low.c (s390_regsets): Likewise.
9563 * linux-sh-low.c (sh_regsets): Likewise.
9564 * linux-sparc-low.c (sparc_regsets): Likewise.
9565 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9566 * linux-tile-low.c (tile_regsets): Likewise.
9567 * linux-x86-low.c (x86_regsets): Likewise.
9568 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9570 2015-10-26 Doug Evans <dje@google.com>
9572 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9574 2015-10-26 Doug Evans <dje@google.com>
9576 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9578 2015-10-26 Doug Evans <dje@google.com>
9580 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9582 (attach_thread, find_new_threads_callback): Ditto.
9584 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9586 * mem-break.h (set_breakpoint_data): Remove.
9588 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9590 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9591 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9592 (initialize_low): Remove set_breakpoint_data call.
9593 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9594 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9595 (initialize_low): Remove set_breakpoint_data call.
9596 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9597 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9598 (initialize_low): Remove set_breakpoint_data call.
9600 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9602 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9603 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9604 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9605 * target.h (target_breakpoint_kind_from_pc): New macro.
9607 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9610 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9611 the default breakpoint kind.
9613 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9615 * linux-arm-low.c (arm_supports_z_point_type): Add software
9618 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620 * linux-arm-low.c: Refactor breakpoint definitions.
9621 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9622 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9624 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9626 * Makefile.in: Add arm.c/o.
9627 * configure.srv: Likewise.
9628 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9629 (arm_breakpoint_kind_from_pc): New function.
9630 (arm_sw_breakpoint_from_kind): Return proper kind.
9631 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9633 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9635 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9637 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9638 (struct raw_breakpoint) <size>: Remove.
9639 (struct raw_breakpoint) <kind>: Add.
9640 (bp_size): New function.
9641 (bp_opcode): Likewise.
9642 (find_raw_breakpoint_at): Adjust for kind.
9643 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9644 (remove_memory_breakpoint): Adjust for kind call bp_size.
9645 (set_raw_breakpoint_at): Adjust for kind.
9646 (set_breakpoint): Likewise.
9647 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9648 (delete_raw_breakpoint): Adjust for kind.
9649 (delete_breakpoint): Likewise.
9650 (find_gdb_breakpoint): Likewise.
9651 (set_gdb_breakpoint_1): Likewise.
9652 (set_gdb_breakpoint): Likewise.
9653 (delete_gdb_breakpoint_1): Likewise.
9654 (delete_gdb_breakpoint): Likewise.
9655 (uninsert_raw_breakpoint): Likewise.
9656 (reinsert_raw_breakpoint): Likewise.
9657 (set_breakpoint_data): Remove.
9658 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9659 (check_mem_read): Adjust for kind call bp_size.
9660 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9661 (clone_one_breakpoint): Adjust for kind.
9662 * mem-break.h (set_gdb_breakpoint): Likewise.
9663 (delete_gdb_breakpoint): Likewise.
9664 * server.c (process_serial_event): Likewise.
9666 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9668 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9669 (struct linux_target_ops) <breakpoint>: Remove.
9670 (struct linux_target_ops) <breakpoint_len>: Remove.
9671 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9672 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9673 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9674 (arm_sw_breakpoint_from_kind): New function.
9675 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9676 (struct linux_target_ops) <breakpoint>: Remove.
9677 (struct linux_target_ops) <breakpoint_len>: Remove.
9678 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9679 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9680 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9681 (struct linux_target_ops) <breakpoint>: Remove.
9682 (struct linux_target_ops) <breakpoint_len>: Remove.
9683 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9684 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9685 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9686 (struct linux_target_ops) <breakpoint>: Remove.
9687 (struct linux_target_ops) <breakpoint_len>: Remove.
9688 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9689 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9690 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9691 and sw_breakpoint_from_kind to increment the pc.
9692 (linux_breakpoint_kind_from_pc): New function.
9693 (linux_sw_breakpoint_from_kind): New function.
9694 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9695 (initialize_low): Call breakpoint_kind_from_pc and
9696 sw_breakpoint_from_kind to replace breakpoint_data/len.
9697 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9699 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9700 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9701 (struct linux_target_ops) <breakpoint>: Remove.
9702 (struct linux_target_ops) <breakpoint_len>: Remove.
9703 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9704 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9705 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9706 (struct linux_target_ops) <breakpoint>: Remove.
9707 (struct linux_target_ops) <breakpoint_len>: Remove.
9708 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9709 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9710 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9711 (struct linux_target_ops) <breakpoint>: Remove.
9712 (struct linux_target_ops) <breakpoint_len>: Remove.
9713 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9715 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9716 (struct linux_target_ops) <breakpoint>: Remove.
9717 (struct linux_target_ops) <breakpoint_len>: Remove.
9718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9720 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9721 (struct linux_target_ops) <breakpoint>: Remove.
9722 (struct linux_target_ops) <breakpoint_len>: Remove.
9723 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9724 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9725 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9726 (struct linux_target_ops) <breakpoint>: Remove.
9727 (struct linux_target_ops) <breakpoint_len>: Remove.
9728 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9729 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9730 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9731 (struct linux_target_ops) <breakpoint>: Remove.
9732 (struct linux_target_ops) <breakpoint_len>: Remove.
9733 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9734 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9735 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9736 (struct linux_target_ops) <breakpoint>: Remove.
9737 (struct linux_target_ops) <breakpoint_len>: Remove.
9738 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9739 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9740 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9741 (struct linux_target_ops) <breakpoint>: Remove.
9742 (struct linux_target_ops) <breakpoint_len>: Remove.
9743 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9744 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9745 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9746 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9747 (struct linux_target_ops) <breakpoint>: Remove.
9748 (struct linux_target_ops) <breakpoint_len>: Remove.
9749 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9750 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9751 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9752 (struct linux_target_ops) <breakpoint>: Remove.
9753 (struct linux_target_ops) <breakpoint_len>: Remove.
9754 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9755 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9757 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9759 * linux-cris-low.c (cris_get_pc): Remove void arg.
9761 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9763 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9766 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9768 * inferiors.c (thread_pid_matches_callback): New function.
9769 (find_thread_process): New function.
9770 (remove_thread): Reset current_thread.
9771 (remove_process): Assert threads have been removed first.
9773 2015-10-15 Yao Qi <yao.qi@linaro.org>
9775 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9777 (aarch64_remove_point): Likewise.
9778 * regcache.c (regcache_register_size): New function.
9780 2015-10-12 Yao Qi <yao.qi@linaro.org>
9782 * linux-aarch64-low.c: Update all callers as emit_load_store
9783 is renamed to aarch64_emit_load_store.
9785 2015-10-12 Yao Qi <yao.qi@linaro.org>
9787 * linux-aarch64-low.c: Update all callers of function renaming
9788 from emit_insn to aarch64_emit_insn.
9790 2015-10-12 Yao Qi <yao.qi@linaro.org>
9792 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9793 arch/aarch64-insn.h.
9794 (struct aarch64_memory_operand): Likewise.
9796 (emit_insn): Move to arch/aarch64-insn.c.
9797 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9798 (emit_load_store): Move to arch/aarch64-insn.c.
9799 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9800 (can_encode_int32): Remove.
9802 2015-10-12 Yao Qi <yao.qi@linaro.org>
9804 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9805 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9806 (aarch64_relocate_instruction): Likewise.
9807 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9808 (struct aarch64_insn_visitor): Likewise.
9810 2015-10-12 Yao Qi <yao.qi@linaro.org>
9812 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9813 (struct aarch64_insn_visitor): New.
9814 (struct aarch64_insn_relocation_data): New.
9815 (aarch64_ftrace_insn_reloc_b): New function.
9816 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9817 (aarch64_ftrace_insn_reloc_cb): Likewise.
9818 (aarch64_ftrace_insn_reloc_tb): Likewise.
9819 (aarch64_ftrace_insn_reloc_adr): Likewise.
9820 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9821 (aarch64_ftrace_insn_reloc_others): Likewise.
9823 (aarch64_relocate_instruction): Use visitor.
9825 2015-10-12 Yao Qi <yao.qi@linaro.org>
9827 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9828 int. Add argument buf.
9829 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9830 aarch64_relocate_instruction.
9832 2015-10-12 Yao Qi <yao.qi@linaro.org>
9834 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9835 argument insn. Remove local variable insn. Don't call
9837 (aarch64_install_fast_tracepoint_jump_pad): Call
9840 2015-09-30 Yao Qi <yao.qi@linaro.org>
9842 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9843 (emit_load_store_pair): Likewise.
9845 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9847 * dll.c (match_dll): Add cast(s).
9848 (unloaded_dll): Likewise.
9849 * linux-low.c (second_thread_of_pid_p): Likewise.
9850 (delete_lwp_callback): Likewise.
9851 (count_events_callback): Likewise.
9852 (select_event_lwp_callback): Likewise.
9853 (linux_set_resume_request): Likewise.
9854 * server.c (accumulate_file_name_length): Likewise.
9855 (emit_dll_description): Likewise.
9856 (handle_qxfer_threads_worker): Likewise.
9857 (visit_actioned_threads): Likewise.
9858 * thread-db.c (any_thread_of): Likewise.
9859 * tracepoint.c (same_process_p): Likewise.
9860 (match_blocktype): Likewise.
9861 (build_traceframe_info_xml): Likewise.
9863 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9865 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9867 (gdb_unparse_agent_expr): Likewise.
9868 * hostio.c (require_data): Likewise.
9869 (handle_pread): Likewise.
9870 * linux-low.c (disable_regset): Likewise.
9871 (fetch_register): Likewise.
9872 (store_register): Likewise.
9873 (get_dynamic): Likewise.
9874 (linux_qxfer_libraries_svr4): Likewise.
9875 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9876 (set_fast_tracepoint_jump): Likewise.
9877 (uninsert_fast_tracepoint_jumps_at): Likewise.
9878 (reinsert_fast_tracepoint_jumps_at): Likewise.
9879 (validate_inserted_breakpoint): Likewise.
9880 (clone_agent_expr): Likewise.
9881 * regcache.c (init_register_cache): Likewise.
9882 * remote-utils.c (putpkt_binary_1): Likewise.
9883 (decode_M_packet): Likewise.
9884 (decode_X_packet): Likewise.
9885 (look_up_one_symbol): Likewise.
9886 (relocate_instruction): Likewise.
9887 (monitor_output): Likewise.
9888 * server.c (handle_search_memory): Likewise.
9889 (handle_qxfer_exec_file): Likewise.
9890 (handle_qxfer_libraries): Likewise.
9891 (handle_qxfer): Likewise.
9892 (handle_query): Likewise.
9893 (handle_v_cont): Likewise.
9894 (handle_v_run): Likewise.
9895 (captured_main): Likewise.
9896 * target.c (write_inferior_memory): Likewise.
9897 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9898 * tracepoint.c (init_trace_buffer): Likewise.
9899 (add_tracepoint_action): Likewise.
9900 (add_traceframe): Likewise.
9901 (add_traceframe_block): Likewise.
9902 (cmd_qtdpsrc): Likewise.
9903 (cmd_qtdv): Likewise.
9904 (cmd_qtstatus): Likewise.
9905 (response_source): Likewise.
9906 (response_tsv): Likewise.
9907 (cmd_qtnotes): Likewise.
9908 (gdb_collect): Likewise.
9909 (initialize_tracepoint): Likewise.
9911 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9913 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9914 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9915 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9917 (enum aarch64_condition_codes): New enum.
9918 (w0): New static global.
9921 (struct aarch64_memory_operand) <type>: New
9922 MEMORY_OPERAND_POSTINDEX type.
9923 (postindex_memory_operand): New helper function.
9924 (emit_ret): New function.
9925 (emit_load_store_pair): New function, factored out of emit_stp
9926 with support for MEMORY_OPERAND_POSTINDEX.
9927 (emit_stp): Rewrite using emit_load_store_pair.
9928 (emit_ldp): New function.
9929 (emit_load_store): Likewise.
9930 (emit_ldr): Mention post-index instruction in comment.
9931 (emit_ldrh): New function.
9932 (emit_ldrb): New function.
9933 (emit_ldrsw): Mention post-index instruction in comment.
9934 (emit_str): Likewise.
9935 (emit_subs): New function.
9936 (emit_cmp): Likewise.
9937 (emit_and): Likewise.
9938 (emit_orr): Likewise.
9939 (emit_orn): Likewise.
9940 (emit_eor): Likewise.
9941 (emit_mvn): Likewise.
9942 (emit_lslv): Likewise.
9943 (emit_lsrv): Likewise.
9944 (emit_asrv): Likewise.
9945 (emit_mul): Likewise.
9946 (emit_sbfm): Likewise.
9947 (emit_sbfx): Likewise.
9948 (emit_ubfm): Likewise.
9949 (emit_ubfx): Likewise.
9950 (emit_csinc): Likewise.
9951 (emit_cset): Likewise.
9952 (emit_nop): Likewise.
9953 (emit_ops_insns): New helper function.
9954 (emit_pop): Likewise.
9955 (emit_push): Likewise.
9956 (aarch64_emit_prologue): New function.
9957 (aarch64_emit_epilogue): Likewise.
9958 (aarch64_emit_add): Likewise.
9959 (aarch64_emit_sub): Likewise.
9960 (aarch64_emit_mul): Likewise.
9961 (aarch64_emit_lsh): Likewise.
9962 (aarch64_emit_rsh_signed): Likewise.
9963 (aarch64_emit_rsh_unsigned): Likewise.
9964 (aarch64_emit_ext): Likewise.
9965 (aarch64_emit_log_not): Likewise.
9966 (aarch64_emit_bit_and): Likewise.
9967 (aarch64_emit_bit_or): Likewise.
9968 (aarch64_emit_bit_xor): Likewise.
9969 (aarch64_emit_bit_not): Likewise.
9970 (aarch64_emit_equal): Likewise.
9971 (aarch64_emit_less_signed): Likewise.
9972 (aarch64_emit_less_unsigned): Likewise.
9973 (aarch64_emit_ref): Likewise.
9974 (aarch64_emit_if_goto): Likewise.
9975 (aarch64_emit_goto): Likewise.
9976 (aarch64_write_goto_address): Likewise.
9977 (aarch64_emit_const): Likewise.
9978 (aarch64_emit_call): Likewise.
9979 (aarch64_emit_reg): Likewise.
9980 (aarch64_emit_pop): Likewise.
9981 (aarch64_emit_stack_flush): Likewise.
9982 (aarch64_emit_zero_ext): Likewise.
9983 (aarch64_emit_swap): Likewise.
9984 (aarch64_emit_stack_adjust): Likewise.
9985 (aarch64_emit_int_call_1): Likewise.
9986 (aarch64_emit_void_call_2): Likewise.
9987 (aarch64_emit_eq_goto): Likewise.
9988 (aarch64_emit_ne_goto): Likewise.
9989 (aarch64_emit_lt_goto): Likewise.
9990 (aarch64_emit_le_goto): Likewise.
9991 (aarch64_emit_gt_goto): Likewise.
9992 (aarch64_emit_ge_got): Likewise.
9993 (aarch64_emit_ops_impl): New static global variable.
9994 (aarch64_emit_ops): New target function, return
9995 &aarch64_emit_ops_impl.
9996 (struct linux_target_ops): Install it.
9998 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10000 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10001 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10003 * linux-aarch64-ipa.c: New file.
10004 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10006 (aarch64_get_thread_area): New target method.
10007 (extract_signed_bitfield): New helper function.
10008 (aarch64_decode_ldr_literal): New function.
10009 (enum aarch64_opcodes): New enum.
10010 (struct aarch64_register): New struct.
10011 (struct aarch64_operand): New struct.
10012 (x0): New static global.
10021 (aarch64_register): New helper function.
10022 (register_operand): Likewise.
10023 (immediate_operand): Likewise.
10024 (struct aarch64_memory_operand): New struct.
10025 (offset_memory_operand): New helper function.
10026 (preindex_memory_operand): Likewise.
10027 (enum aarch64_system_control_registers): New enum.
10028 (ENCODE): New macro.
10029 (emit_insn): New helper function.
10030 (emit_b): New function.
10031 (emit_bcond): Likewise.
10032 (emit_cb): Likewise.
10033 (emit_tb): Likewise.
10034 (emit_blr): Likewise.
10035 (emit_stp): Likewise.
10036 (emit_ldp_q_offset): Likewise.
10037 (emit_stp_q_offset): Likewise.
10038 (emit_load_store): Likewise.
10039 (emit_ldr): Likewise.
10040 (emit_ldrsw): Likewise.
10041 (emit_str): Likewise.
10042 (emit_ldaxr): Likewise.
10043 (emit_stxr): Likewise.
10044 (emit_stlr): Likewise.
10045 (emit_data_processing_reg): Likewise.
10046 (emit_data_processing): Likewise.
10047 (emit_add): Likewise.
10048 (emit_sub): Likewise.
10049 (emit_mov): Likewise.
10050 (emit_movk): Likewise.
10051 (emit_mov_addr): Likewise.
10052 (emit_mrs): Likewise.
10053 (emit_msr): Likewise.
10054 (emit_sevl): Likewise.
10055 (emit_wfe): Likewise.
10056 (append_insns): Likewise.
10057 (can_encode_int32_in): New helper function.
10058 (aarch64_relocate_instruction): New function.
10059 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10060 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10061 (struct linux_target_ops): Install aarch64_get_thread_area,
10062 aarch64_install_fast_tracepoint_jump_pad and
10063 aarch64_get_min_fast_tracepoint_insn_len.
10065 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10067 * Makefile.in (aarch64-insn.o): New rule.
10068 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10070 2015-09-21 Yao Qi <yao.qi@linaro.org>
10072 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10074 2015-09-21 Yao Qi <yao.qi@linaro.org>
10076 * tracepoint.c (max_jump_pad_size): Remove.
10078 2015-09-18 Yao Qi <yao.qi@linaro.org>
10080 * linux-aarch64-low.c: Don't include sys/uio.h.
10081 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10083 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10085 * tracepoint.c (eval_result_type): Change prototype.
10086 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10088 2015-09-15 Pedro Alves <palves@redhat.com>
10090 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10091 Check whether to report exec events instead of checking whether
10092 multiprocess is enabled.
10094 2015-09-15 Pedro Alves <palves@redhat.com>
10097 * remote-utils.c (prepare_resume_reply): Merge
10098 TARGET_WAITKIND_VFORK_DONE switch case with the
10099 TARGET_WAITKIND_FORKED case.
10101 2015-09-15 Yao Qi <yao.qi@linaro.org>
10103 * server.c (handle_query): Check string comparison using
10104 "else if" instead of "if".
10106 2015-09-15 Yao Qi <yao.qi@linaro.org>
10108 * server.c (vCont_supported): New global variable.
10109 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10110 matches. Append ";vContSupported+" to own_buf.
10111 (handle_v_requests): Append ";s;S" to own_buf if target supports
10112 hardware single step or vCont_supported is false.
10113 (capture_main): Set vCont_supported to zero.
10115 2015-09-15 Yao Qi <yao.qi@linaro.org>
10117 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10119 (linux_supports_hardware_single_step): ... New function.
10120 (linux_target_ops): Update.
10121 * lynx-low.c (lynx_target_ops): Set field
10122 supports_hardware_single_step to target_can_do_hardware_single_step.
10123 * nto-low.c (nto_target_ops): Likewise.
10124 * spu-low.c (spu_target_ops): Likewise.
10125 * win32-low.c (win32_target_ops): Likewise.
10126 * target.c (target_can_do_hardware_single_step): New function.
10127 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10128 Remove. <supports_hardware_single_step>: New field.
10129 (target_supports_conditional_breakpoints): Remove.
10130 (target_supports_hardware_single_step): New macro.
10131 (target_can_do_hardware_single_step): Declare.
10132 * server.c (handle_query): Use target_supports_hardware_single_step
10133 instead of target_supports_conditional_breakpoints.
10135 2015-09-15 Yao Qi <yao.qi@linaro.org>
10137 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10139 (struct linux_target_ops the_low_target): Install
10140 aarch64_linux_siginfo_fixup.
10142 2015-09-11 Don Breazeal <donb@codesourcery.com>
10143 Luis Machado <lgustavo@codesourcery.com>
10145 * linux-low.c (linux_mourn): Static declaration.
10146 (linux_arch_setup): Move in front of
10147 handle_extended_wait.
10148 (linux_arch_setup_thread): New function.
10149 (handle_extended_wait): Handle exec events. Call
10150 linux_arch_setup_thread. Make event_lwp argument a
10151 pointer-to-a-pointer.
10152 (check_zombie_leaders): Do not check stopped threads.
10153 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10154 (linux_low_filter_event): Add lwp and thread for exec'ing
10155 non-leader thread if leader thread has been deleted.
10156 Refactor code into linux_arch_setup_thread and call it.
10157 Pass child lwp pointer by reference to handle_extended_wait.
10158 (linux_wait_for_event_filtered): Update comment.
10159 (linux_wait_1): Prevent clobbering exec event status.
10160 (linux_supports_exec_events): New function.
10161 (linux_target_ops) <supports_exec_events>: Initialize new member.
10162 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10164 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10165 * server.c (report_exec_events): New global variable.
10166 (handle_query): Handle qSupported query for exec-events feature.
10167 (captured_main): Initialize report_exec_events.
10168 * server.h (report_exec_events): Declare new global variable.
10169 * target.h (struct target_ops) <supports_exec_events>: New
10171 (target_supports_exec_events): New macro.
10172 * win32-low.c (win32_target_ops) <supports_exec_events>:
10173 Initialize new member.
10175 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10177 * linux-low.c (linux_low_enable_btrace): Remove.
10178 (linux_target_ops): Replace linux_low_enable_btrace with
10179 linux_enable_btrace.
10181 2015-09-03 Yao Qi <yao.qi@linaro.org>
10183 * linux-aarch64-low.c (aarch64_insert_point): Call
10184 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10187 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10189 * linux-low.c (check_stopped_by_breakpoint): Use
10190 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10192 2015-08-27 Pedro Alves <palves@redhat.com>
10194 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10196 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10198 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10199 the XNEW-family equivalent.
10200 (compile_bytecodes): Likewise.
10201 * dll.c (loaded_dll): Likewise.
10202 * event-loop.c (append_callback_event): Likewise.
10203 (create_file_handler): Likewise.
10204 (create_file_event): Likewise.
10205 * hostio.c (handle_open): Likewise.
10206 * inferiors.c (add_thread): Likewise.
10207 (add_process): Likewise.
10208 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10209 * linux-arm-low.c (arm_new_process): Likewise.
10210 (arm_new_thread): Likewise.
10211 * linux-low.c (add_to_pid_list): Likewise.
10212 (linux_add_process): Likewise.
10213 (handle_extended_wait): Likewise.
10214 (add_lwp): Likewise.
10215 (enqueue_one_deferred_signal): Likewise.
10216 (enqueue_pending_signal): Likewise.
10217 (linux_resume_one_lwp_throw): Likewise.
10218 (linux_resume_one_thread): Likewise.
10219 (linux_read_memory): Likewise.
10220 (linux_write_memory): Likewise.
10221 * linux-mips-low.c (mips_linux_new_process): Likewise.
10222 (mips_linux_new_thread): Likewise.
10223 (mips_add_watchpoint): Likewise.
10224 * linux-x86-low.c (initialize_low_arch): Likewise.
10225 * lynx-low.c (lynx_add_process): Likewise.
10226 * mem-break.c (set_raw_breakpoint_at): Likewise.
10227 (set_breakpoint): Likewise.
10228 (add_condition_to_breakpoint): Likewise.
10229 (add_commands_to_breakpoint): Likewise.
10230 (clone_agent_expr): Likewise.
10231 (clone_one_breakpoint): Likewise.
10232 * regcache.c (new_register_cache): Likewise.
10233 * remote-utils.c (look_up_one_symbol): Likewise.
10234 * server.c (queue_stop_reply): Likewise.
10235 (start_inferior): Likewise.
10236 (queue_stop_reply_callback): Likewise.
10237 (handle_target_event): Likewise.
10238 * spu-low.c (fetch_ppc_memory): Likewise.
10239 (store_ppc_memory): Likewise.
10240 * target.c (set_target_ops): Likewise.
10241 * thread-db.c (thread_db_load_search): Likewise.
10242 (try_thread_db_load_1): Likewise.
10243 * tracepoint.c (add_tracepoint): Likewise.
10244 (add_tracepoint_action): Likewise.
10245 (create_trace_state_variable): Likewise.
10246 (cmd_qtdpsrc): Likewise.
10247 (cmd_qtro): Likewise.
10248 (add_while_stepping_state): Likewise.
10249 * win32-low.c (child_add_thread): Likewise.
10250 (get_image_name): Likewise.
10252 2015-08-25 Yao Qi <yao.qi@linaro.org>
10254 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10256 2015-08-25 Yao Qi <yao.qi@linaro.org>
10258 * Makefile.in (aarch64-linux.o): New rule.
10259 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10261 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10262 (aarch64_init_debug_reg_state): Make it extern.
10263 (aarch64_linux_prepare_to_resume): Remove.
10265 2015-08-25 Yao Qi <yao.qi@linaro.org>
10267 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10268 lwp_arch_private_info and ptid_of_lwp.
10270 2015-08-25 Yao Qi <yao.qi@linaro.org>
10272 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10273 Find proc_info by find_process_pid. All callers updated.
10275 2015-08-25 Yao Qi <yao.qi@linaro.org>
10277 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10279 (debug_reg_change_callback): Remove.
10280 (aarch64_notify_debug_reg_change): Remove.
10282 2015-08-25 Yao Qi <yao.qi@linaro.org>
10284 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10285 Call current_lwp_ptid.
10287 2015-08-25 Yao Qi <yao.qi@linaro.org>
10289 * linux-aarch64-low.c (debug_reg_change_callback): Use
10292 2015-08-25 Yao Qi <yao.qi@linaro.org>
10294 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10296 2015-08-25 Yao Qi <yao.qi@linaro.org>
10298 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10300 2015-08-25 Yao Qi <yao.qi@linaro.org>
10302 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10305 2015-08-25 Yao Qi <yao.qi@linaro.org>
10307 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10309 (debug_reg_change_callback): Remove argument entry and add argument
10310 lwp. Remove local variable thread. Don't print thread id in the
10311 debugging output. Don't check whether pid of thread equals to pid.
10312 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10313 iterate_over_lwps instead find_inferior.
10315 2015-08-24 Pedro Alves <palves@redhat.com>
10317 * inferiors.c (get_first_process): New function.
10318 * inferiors.h (get_first_process): New declaration.
10319 * remote-utils.c (read_ptid): Default to the first process in the
10320 list, instead of to the current thread's process.
10322 2015-08-24 Pedro Alves <palves@redhat.com>
10324 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10325 * event-loop.c: Likewise.
10326 * remote-utils.c: Likewise.
10327 * tracepoint.c: Likewise.
10329 2015-08-24 Pedro Alves <palves@redhat.com>
10331 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10334 2015-08-21 Pedro Alves <palves@redhat.com>
10336 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10337 instead of literal 1.
10339 2015-08-21 Pedro Alves <palves@redhat.com>
10341 * tdesc.c (default_description): Explicitly zero-initialize.
10343 2015-08-21 Pedro Alves <palves@redhat.com>
10346 * inferiors.c (remove_thread): Discard any pending stop reply for
10348 * server.c (remove_all_on_match_pid): Rename to ...
10349 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10351 (discard_queued_stop_replies): Change parameter to a ptid. Now
10353 (handle_v_kill, kill_inferior_callback, captured_main)
10354 (process_serial_event): Adjust.
10355 * server.h (discard_queued_stop_replies): Declare.
10357 2015-08-21 Pedro Alves <palves@redhat.com>
10359 * linux-low.c (wait_for_sigstop): Always switch to no thread
10360 selected if the previously current thread dies.
10361 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10362 process instead of the current thread's.
10363 * remote-utils.c (input_interrupt): Don't check if there's no
10365 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10366 current thread to the general thread fails, error out.
10367 (handle_qxfer_auxv, handle_qxfer_libraries)
10368 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10369 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10370 (handle_query): Check if there's a thread selected instead of
10371 checking whether there's any thread in the thread list.
10372 (handle_qxfer_threads, handle_qxfer_btrace)
10373 (handle_qxfer_btrace_conf): Don't error out early if there's no
10374 thread in the thread list.
10375 (handle_v_cont, myresume): Don't set the current thread to the
10377 (process_serial_event) <Hg handling>: Also set thread_id if the
10378 previous general thread is still alive.
10379 (process_serial_event) <g/G handling>: If setting the current
10380 thread to the general thread fails, error out.
10381 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10382 thread's lwp instead of the current thread's.
10383 * target.c (set_desired_thread): If the desired thread was not
10384 found, leave the current thread pointing to NULL. Return an int
10385 (boolean) indicating success.
10386 * target.h (set_desired_thread): Change return type to int.
10388 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10390 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10391 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10393 (ps_get_thread_area): New function.
10395 2015-08-19 Gary Benson <gbenson@redhat.com>
10397 * hostio.c (handle_pread): Do not attempt to read more data
10398 than hostio_reply_with_data can fit in a packet.
10400 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10402 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10404 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10406 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10408 2015-08-06 Pedro Alves <palves@redhat.com>
10410 * tracepoint.c (expr_eval_result): Now an int.
10412 2015-08-06 Pedro Alves <palves@redhat.com>
10414 * gdbthread.h (struct regcache): Forward declare.
10415 (struct thread_info) <regcache_data>: Now a struct regcache
10417 * inferiors.c (inferior_regcache_data)
10418 (set_inferior_regcache_data): Now work with struct regcache
10420 * inferiors.h (struct regcache): Forward declare.
10421 (inferior_regcache_data, set_inferior_regcache_data): Now work
10422 with struct regcache pointers.
10423 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10424 (free_register_cache_thread): Remove struct regcache pointer
10427 2015-08-06 Pedro Alves <palves@redhat.com>
10429 * server.c (captured_main): On error, print the exception message
10430 to stderr, and if run_once is set, throw a quit.
10432 2015-08-06 Pedro Alves <palves@redhat.com>
10434 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10435 the current thread.
10437 2015-08-06 Pedro Alves <palves@redhat.com>
10439 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10440 reading beyond the passed in buffer length.
10442 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10444 * tracepoint.c (symbol_list) <required>: Remove.
10446 2015-08-06 Pedro Alves <palves@redhat.com>
10448 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10449 count if stopping and suspending threads.
10450 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10451 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10452 (linux_detach): Complete an ongoing step-over.
10453 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10455 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10456 (linux_wait_1): If passing a signal to the inferior after
10457 finishing a step-over, unsuspend and re-resume all lwps. If we
10458 see a single-step event but the thread should be continuing, don't
10459 pass the trap to gdb.
10460 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10461 internal_error instead of gdb_assert.
10462 (enqueue_pending_signal): New function.
10463 (check_ptrace_stopped_lwp_gone): Add debug output.
10464 (start_step_over): Use internal_error instead of gdb_assert.
10465 (complete_ongoing_step_over): New function.
10466 (linux_resume_one_thread): Don't resume a suspended thread.
10467 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10470 2015-08-06 Pedro Alves <palves@redhat.com>
10472 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10473 (linux_thread_alive): Use lwp_is_marked_dead.
10474 (extended_event_reported): Delete.
10475 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10476 instead of extended_event_reported.
10477 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10479 (lwp_is_marked_dead): New function.
10480 (lwp_running): Use lwp_is_marked_dead.
10481 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10484 2015-08-06 Pedro Alves <palves@redhat.com>
10486 * linux-low.c (linux_wait_1): Move fork event output out of the
10487 !report_to_gdb check. Pass event_child->waitstatus to
10488 target_waitstatus_to_string instead of ourstatus.
10490 2015-08-04 Yao Qi <yao.qi@linaro.org>
10492 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10493 if current_thread is 32 bit.
10495 2015-08-04 Yao Qi <yao.qi@linaro.org>
10497 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10498 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10499 * server.c (extended_protocol): Remove "static".
10500 * server.h (extended_protocol): Declare it.
10502 2015-08-04 Yao Qi <yao.qi@linaro.org>
10504 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10505 both aarch64 and aarch32.
10506 (aarch64_set_pc): Likewise.
10508 2015-08-04 Yao Qi <yao.qi@linaro.org>
10510 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10511 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10512 arm-with-neon.xml to srv_xmlfiles.
10513 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10514 (is_64bit_tdesc): New function.
10515 (aarch64_linux_read_description): New function.
10516 (aarch64_arch_setup): Call aarch64_linux_read_description.
10517 (regs_info): Rename to regs_info_aarch64.
10518 (aarch64_regs_info): Return right regs_info.
10519 (initialize_low_arch): Call initialize_low_arch_aarch32.
10521 2015-08-04 Yao Qi <yao.qi@linaro.org>
10523 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10524 * linux-aarch32-low.c: New file.
10525 * linux-aarch32-low.h: New file.
10526 * linux-arm-low.c (arm_fill_gregset): Move it to
10527 linux-aarch32-low.c.
10528 (arm_store_gregset): Likewise.
10529 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10530 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10531 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10532 (regs_info): Rename to regs_info_arm.
10533 (arm_regs_info): Return regs_info_aarch32 if
10534 have_ptrace_getregset is 1 and target description is
10535 arm_with_neon or arm_with_vfpv3.
10536 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10537 Call initialize_low_arch_aarch32 instead.
10539 2015-08-04 Yao Qi <yao.qi@linaro.org>
10541 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10542 * linux-low.c: ... here.
10543 * linux-low.h (have_ptrace_getregset): Declare it.
10545 2015-08-04 Pedro Alves <palves@redhat.com>
10547 * thread-db.c (struct thread_db): Use new typedefs.
10548 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10550 (disable_thread_event_reporting): Cast result of dlsym to
10551 destination function pointer type.
10552 (thread_db_mourn): Use td_ta_delete_ftype.
10554 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10556 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10558 (CDX_BREAKPOINT): Define for R2.
10559 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10560 (the_low_target): Add comments.
10562 2015-07-30 Yao Qi <yao.qi@linaro.org>
10564 * linux-arm-low.c (arm_hwcap): Remove it.
10565 (arm_read_description): New local variable arm_hwcap. Don't
10566 set arm_hwcap to zero.
10568 2015-07-30 Yao Qi <yao.qi@linaro.org>
10570 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10571 Use regcache->tdesc instead.
10572 (arm_store_wmmxregset): Likewise.
10573 (arm_fill_vfpregset): Likewise.
10574 (arm_store_vfpregset): Likewise.
10576 2015-07-30 Yao Qi <yao.qi@linaro.org>
10578 * linux-arm-low.c: Include arch/arm.h.
10579 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10580 (arm_store_gregset): Likewise.
10582 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10584 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10585 ptrace's 4th parameter.
10587 2015-07-27 Yao Qi <yao.qi@linaro.org>
10589 * configure.srv (case aarch64*-*-linux*): Don't set
10592 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10594 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10596 * linux-arm-low.c: Likewise.
10597 * linux-cris-low.c: Likewise.
10598 * linux-crisv32-low.c: Likewise.
10599 * linux-low.c: Likewise.
10600 * linux-m68k-low.c: Likewise.
10601 * linux-mips-low.c: Likewise.
10602 * linux-nios2-low.c: Likewise.
10603 * linux-s390-low.c: Likewise.
10604 * linux-sparc-low.c: Likewise.
10605 * linux-tic6x-low.c: Likewise.
10606 * linux-tile-low.c: Likewise.
10607 * linux-x86-low.c: Likewise.
10609 2015-07-24 Pedro Alves <palves@redhat.com>
10611 * config.in: Regenerate.
10612 * configure: Regenerate.
10614 2015-07-24 Pedro Alves <palves@redhat.com>
10616 * acinclude.m4: Include ../ptrace.m4.
10617 * configure.ac: Call GDB_AC_PTRACE.
10618 * config.in, configure: Regenerate.
10620 2015-07-24 Yao Qi <yao.qi@linaro.org>
10622 * linux-low.c (linux_create_inferior): Remove setting to
10623 proc->priv->new_inferior.
10624 (linux_attach): Likewise.
10625 (linux_low_filter_event): Likewise.
10626 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10628 2015-07-24 Yao Qi <yao.qi@linaro.org>
10630 * linux-low.c (linux_arch_setup): New function.
10631 (linux_low_filter_event): If proc->tdesc is NULL and
10632 proc->attached is true, call the_low_target.arch_setup.
10633 Otherwise, keep status pending, and return.
10634 (linux_resume_one_lwp_throw): Don't call get_pc if
10635 thread->while_stepping isn't NULL. Don't call
10636 get_thread_regcache if proc->tdesc is NULL.
10637 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10638 (linux_target_ops): Install arch_setup.
10639 * server.c (start_inferior): Call the_target->arch_setup.
10640 * target.h (struct target_ops) <arch_setup>: New field.
10641 (target_arch_setup): New marco.
10642 * lynx-low.c (lynx_target_ops): Update.
10643 * nto-low.c (nto_target_ops): Update.
10644 * spu-low.c (spu_target_ops): Update.
10645 * win32-low.c (win32_target_ops): Update.
10647 2015-07-24 Yao Qi <yao.qi@linaro.org>
10649 * linux-low.c (linux_add_process): Don't set
10650 proc->priv->new_inferior.
10651 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10652 (linux_attach): Likewise.
10654 2015-07-24 Yao Qi <yao.qi@linaro.org>
10656 * server.c (start_inferior): Code refactor.
10658 2015-07-24 Yao Qi <yao.qi@linaro.org>
10660 * server.c (process_serial_event): Set general_thread.
10662 2015-07-21 Yao Qi <yao.qi@linaro.org>
10664 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10665 aarch64_linux_get_debug_reg_capacity.
10667 2015-07-17 Yao Qi <yao.qi@linaro.org>
10669 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10670 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10671 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10672 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10673 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10674 (AARCH64_HWP_ALIGNMENT): Likewise.
10675 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10676 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10677 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10678 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10679 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10680 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10681 (struct aarch64_debug_reg_state): Likewise.
10682 (struct arch_lwp_info): Likewise.
10683 (aarch64_align_watchpoint): Likewise.
10684 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10685 (aarch64_watchpoint_length): Likewise.
10686 (aarch64_point_encode_ctrl_reg): Likewise
10687 (aarch64_point_is_aligned): Likewise.
10688 (aarch64_align_watchpoint): Likewise.
10689 (aarch64_linux_set_debug_regs):
10690 (aarch64_dr_state_insert_one_point): Likewise.
10691 (aarch64_dr_state_remove_one_point): Likewise.
10692 (aarch64_handle_breakpoint): Likewise.
10693 (aarch64_handle_aligned_watchpoint): Likewise.
10694 (aarch64_handle_unaligned_watchpoint): Likewise.
10695 (aarch64_handle_watchpoint): Likewise.
10697 2015-07-17 Yao Qi <yao.qi@linaro.org>
10699 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10700 and don't aarch64_get_debug_reg_state. All callers update.
10701 (aarch64_handle_aligned_watchpoint): Likewise.
10702 (aarch64_handle_unaligned_watchpoint): Likewise.
10703 (aarch64_handle_watchpoint): Likewise.
10704 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10705 (aarch64_remove_point): Likewise.
10707 2015-07-17 Yao Qi <yao.qi@linaro.org>
10709 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10711 (aarch64_handle_unaligned_watchpoint): Likewise.
10713 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10715 Revert the previous 3 commits:
10716 Move gdb_regex* to common/
10717 Move linux_find_memory_regions_full & co.
10718 gdbserver build-id attribute generator
10720 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10721 Jan Kratochvil <jan.kratochvil@redhat.com>
10723 gdbserver build-id attribute generator.
10724 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10725 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10726 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10728 (get_dynamic): Use find_pdhr to traverse program headers.
10729 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10730 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10731 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10732 (get_hex_build_id): New.
10733 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10734 to reply XML document.
10736 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10737 Jan Kratochvil <jan.kratochvil@redhat.com>
10739 * target.c: Include target/target-utils.h and fcntl.h.
10740 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10741 (target_fileio_read_stralloc): New functions.
10743 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10745 * Makefile.in (OBS): Add gdb_regex.o.
10746 (gdb_regex.o): New.
10747 * config.in: Rebuilt.
10748 * configure: Rebuilt.
10750 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10751 Jan Kratochvil <jan.kratochvil@redhat.com>
10753 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10754 * Makefile.in (OBS): Add target-utils.o.
10755 (linux-maps.o, target-utils.o): New.
10756 * configure.srv (srv_linux_obj): Add linux-maps.o.
10758 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10760 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10761 function, return 1.
10762 (the_low_target): Install it.
10764 2015-07-14 Pedro Alves <palves@redhat.com>
10766 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10767 Instead, ignore ECHILD, and throw an error for other errnos.
10769 2015-07-10 Pedro Alves <palves@redhat.com>
10771 * event-loop.c (struct callback_event) <data>: Change type to
10772 gdb_client_data instance instead of gdb_client_data pointer.
10773 (append_callback_event): Adjust.
10775 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10777 * linux-aarch64-low.c: Add comments for each linux_target_ops
10778 method. Remove comments already covered in target_ops and
10779 linux_target_ops definitions.
10780 (the_low_target): Add comments for each unimplemented method.
10782 2015-07-09 Yao Qi <yao.qi@linaro.org>
10784 * linux-aarch64-low.c (aarch64_regmap): Remove.
10785 (aarch64_usrregs_info): Remove.
10786 (regs_info): Set field usrregs to NULL.
10788 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10790 * linux-low.c: Include "rsp-low.h"
10791 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10792 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10793 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10794 (handle_btrace_enable_pt): New.
10795 (handle_btrace_general_set): Support "pt".
10796 (handle_btrace_conf_general_set): Support "pt:size".
10798 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10800 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10803 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10805 * linux-aarch64-low.c: Remove comment about endianness.
10806 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10807 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10810 2015-06-24 Gary Benson <gbenson@redhat.com>
10812 * linux-i386-ipa.c (stdint.h): Do not include.
10813 * lynx-i386-low.c (stdint.h): Likewise.
10814 * lynx-ppc-low.c (stdint.h): Likewise.
10815 * mem-break.c (stdint.h): Likewise.
10816 * thread-db.c (stdint.h): Likewise.
10817 * tracepoint.c (stdint.h): Likewise.
10818 * win32-low.c (stdint.h): Likewise.
10820 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10822 * server.c (write_qxfer_response): Update call to
10823 remote_escape_output.
10825 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10826 Jan Kratochvil <jan.kratochvil@redhat.com>
10828 Merge multiple hex conversions.
10829 * gdbreplay.c (tohex): Rename to 'fromhex'.
10830 (logchar): Use fromhex.
10832 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 * server.c (handle_qxfer_libraries): Set `version' attribute for
10837 2015-06-10 Gary Benson <gbenson@redhat.com>
10839 * target.h (struct target_ops) <multifs_open>: New field.
10840 <multifs_unlink>: Likewise.
10841 <multifs_readlink>: Likewise.
10842 * linux-low.c (nat/linux-namespaces.h): New include.
10843 (linux_target_ops): Initialize the_target->multifs_open,
10844 the_target->multifs_unlink and the_target->multifs_readlink.
10845 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10846 * hostio.c (hostio_fs_pid): New static variable.
10847 (hostio_handle_new_gdb_connection): New function.
10848 (handle_setfs): Likewise.
10849 (handle_open): Use the_target->multifs_open as appropriate.
10850 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10851 (handle_readlink): Use the_target->multifs_readlink as
10853 (handle_vFile): Handle vFile:setfs packets.
10854 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10855 after target_handle_new_gdb_connection.
10857 2015-06-10 Gary Benson <gbenson@redhat.com>
10859 * configure.ac (AC_CHECK_FUNCS): Add setns.
10860 * config.in: Regenerate.
10861 * configure: Likewise.
10862 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10863 (linux-namespaces.o): New rule.
10864 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10866 2015-06-09 Gary Benson <gbenson@redhat.com>
10868 * hostio.c (handle_open): Process mode argument with
10869 fileio_to_host_mode.
10871 2015-06-01 Yao Qi <yao.qi@linaro.org>
10873 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10874 * linux-x86-low.c: Likewise.
10876 2015-05-28 Don Breazeal <donb@codesourcery.com>
10878 * linux-low.c (handle_extended_wait): Initialize
10879 thread_info.last_resume_kind for new fork children.
10881 2015-05-15 Pedro Alves <palves@redhat.com>
10883 * target.h (target_handle_new_gdb_connection): Rewrite using if
10884 wrapped in do/while.
10886 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10888 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10889 * configure, config.in: Regenerate.
10890 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10893 2015-05-12 Don Breazeal <donb@codesourcery.com>
10895 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10896 PTRACE_EVENT_VFORK_DONE.
10897 (linux_low_ptrace_options, extended_event_reported): Add vfork
10899 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10900 and "vforkdone" for RSP 'T' Stop Reply Packet.
10901 * server.h (report_vfork_events): Declare
10904 2015-05-12 Don Breazeal <donb@codesourcery.com>
10906 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10907 (the_low_target) <new_fork>: Initialize new member.
10908 * linux-arm-low.c (arm_new_fork): New function.
10909 (the_low_target) <new_fork>: Initialize new member.
10910 * linux-low.c (handle_extended_wait): Call new target function
10912 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10913 * linux-mips-low.c (mips_add_watchpoint): New function
10914 extracted from mips_insert_point.
10915 (the_low_target) <new_fork>: Initialize new member.
10916 (mips_linux_new_fork): New function.
10917 (mips_insert_point): Call mips_add_watchpoint.
10918 * linux-x86-low.c (x86_linux_new_fork): New function.
10919 (the_low_target) <new_fork>: Initialize new member.
10921 2015-05-12 Don Breazeal <donb@codesourcery.com>
10923 * linux-low.c (handle_extended_wait): Implement return value,
10924 rename argument 'event_child' to 'event_lwp', handle
10925 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10926 (linux_low_ptrace_options): New function.
10927 (linux_low_filter_event): Call linux_low_ptrace_options,
10928 use different argument fo linux_enable_event_reporting,
10929 use return value from handle_extended_wait.
10930 (extended_event_reported): New function.
10931 (linux_wait_1): Call extended_event_reported and set
10932 status to report fork events.
10933 (linux_write_memory): Add pid to debug message.
10934 (reset_lwp_ptrace_options_callback): New function.
10935 (linux_handle_new_gdb_connection): New function.
10936 (linux_target_ops): Initialize new structure member.
10937 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10938 * lynx-low.c: Initialize new structure member.
10939 * remote-utils.c (prepare_resume_reply): Implement stop reason
10940 "fork" for "T" stop message.
10941 * server.c (handle_query): Call handle_new_gdb_connection.
10942 * server.h (report_fork_events): Declare global flag.
10943 * target.h (struct target_ops) <handle_new_gdb_connection>:
10945 (target_handle_new_gdb_connection): New macro.
10946 * win32-low.c: Initialize new structure member.
10948 2015-05-12 Don Breazeal <donb@codesourcery.com>
10950 * mem-break.c (APPEND_TO_LIST): Define macro.
10951 (clone_agent_expr): New function.
10952 (clone_one_breakpoint): New function.
10953 (clone_all_breakpoints): New function.
10954 * mem-break.h: Declare new functions.
10956 2015-05-12 Don Breazeal <donb@codesourcery.com>
10958 * linux-low.c (linux_supports_fork_events): New function.
10959 (linux_supports_vfork_events): New function.
10960 (linux_target_ops): Initialize new structure members.
10961 (initialize_low): Call linux_check_ptrace_features.
10962 * lynx-low.c (lynx_target_ops): Initialize new structure
10964 * server.c (report_fork_events, report_vfork_events):
10966 (handle_query): Add new features to qSupported packet and
10968 (captured_main): Initialize new global variables.
10969 * target.h (struct target_ops) <supports_fork_events>:
10971 <supports_vfork_events>: New member.
10972 (target_supports_fork_events): New macro.
10973 (target_supports_vfork_events): New macro.
10974 * win32-low.c (win32_target_ops): Initialize new structure
10977 2015-05-12 Gary Benson <gbenson@redhat.com>
10979 * server.c (handle_qxfer_exec_file): Use current process
10982 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10984 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10985 Remove HAVE_PTRACE_GETREGS conditionals.
10986 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10987 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10989 2015-05-08 Yao Qi <yao.qi@linaro.org>
10991 * linux-low.c (linux_supports_conditional_breakpoints): New
10993 (linux_target_ops): Install new target method.
10994 * lynx-low.c (lynx_target_ops): Install NULL hook for
10995 supports_conditional_breakpoints.
10996 * nto-low.c (nto_target_ops): Likewise.
10997 * spu-low.c (spu_target_ops): Likewise.
10998 * win32-low.c (win32_target_ops): Likewise.
10999 * server.c (handle_query): Check
11000 target_supports_conditional_breakpoints.
11001 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11003 (target_supports_conditional_breakpoints): New macro.
11005 2015-05-06 Pedro Alves <palves@redhat.com>
11008 * server.c (start_inferior): If the process exits, mourn it.
11010 2015-04-21 Gary Benson <gbenson@redhat.com>
11012 * hostio.c (fileio_open_flags_to_host): Factored out to
11013 fileio_to_host_openflags in common/fileio.c. Single use
11016 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11018 * linux-xtensa-low.c (xtensa_fill_gregset)
11019 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11022 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11024 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11025 (regs_info): Replace usrregs pointer with NULL.
11027 2015-04-17 Gary Benson <gbenson@redhat.com>
11029 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11030 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11031 * server.c (handle_qxfer_exec_file): New function.
11032 (qxfer_packets): Add exec-file entry.
11033 (handle_query): Report qXfer:exec-file:read as supported packet.
11035 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11037 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11039 2015-04-09 Gary Benson <gbenson@redhat.com>
11041 * hostio-errno.c (errno_to_fileio_error): Remove function.
11042 Update caller to use remote_fileio_to_fio_error.
11044 2015-04-09 Yao Qi <yao.qi@linaro.org>
11046 * linux-low.c (linux_insert_point): Call
11047 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11048 (linux_remove_point): Call remove_memory_breakpoint if type is
11050 * linux-x86-low.c (x86_insert_point): Don't call
11051 insert_memory_breakpoint.
11052 (x86_remove_point): Don't call remove_memory_breakpoint.
11054 2015-04-01 Pedro Alves <palves@redhat.com>
11055 Cleber Rosa <crosa@redhat.com>
11057 * server.c (gdbserver_usage): Reorganize and extend the usage
11060 2015-03-24 Pedro Alves <palves@redhat.com>
11062 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11063 output. Also dump TRAP_TRACE.
11064 (linux_low_filter_event): In debug output, distinguish a
11065 resume_stop SIGSTOP from a delayed SIGSTOP.
11067 2015-03-24 Gary Benson <gbenson@redhat.com>
11069 * linux-x86-low.c (x86_linux_new_thread): Moved to
11071 (x86_linux_prepare_to_resume): Likewise.
11073 2015-03-24 Gary Benson <gbenson@redhat.com>
11075 * Makefile.in (x86-linux-dregs.o): New rule.
11076 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11077 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11078 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11079 (x86_linux_dr_get): Likewise.
11080 (x86_linux_dr_set): Likewise.
11081 (update_debug_registers_callback): Likewise.
11082 (x86_linux_dr_set_addr): Likewise.
11083 (x86_linux_dr_get_addr): Likewise.
11084 (x86_linux_dr_set_control): Likewise.
11085 (x86_linux_dr_get_control): Likewise.
11086 (x86_linux_dr_get_status): Likewise.
11087 (x86_linux_update_debug_registers): Likewise.
11089 2015-03-24 Gary Benson <gbenson@redhat.com>
11091 * linux-x86-low.c (x86_linux_update_debug_registers):
11092 New function, factored out from...
11093 (x86_linux_prepare_to_resume): ...this.
11095 2015-03-24 Gary Benson <gbenson@redhat.com>
11097 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11098 (x86_linux_dr_set): Likewise.
11099 (update_debug_registers_callback): Likewise.
11100 (x86_linux_dr_set_addr): Likewise.
11101 (x86_linux_dr_get_addr): Likewise.
11102 (x86_linux_dr_set_control): Likewise.
11103 (x86_linux_dr_get_control): Likewise.
11104 (x86_linux_dr_get_status): Likewise.
11105 (x86_linux_prepare_to_resume): Likewise.
11107 2015-03-24 Gary Benson <gbenson@redhat.com>
11109 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11110 Use perror_with_name. Pass string through gettext.
11111 (x86_linux_dr_set): Likewise.
11113 2015-03-24 Gary Benson <gbenson@redhat.com>
11115 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11116 (x86_linux_dr_set_addr): ...this.
11117 (x86_dr_low_get_addr): Rename to...
11118 (x86_linux_dr_get_addr): ...this.
11119 (x86_dr_low_set_control): Rename to...
11120 (x86_linux_dr_set_control): ...this.
11121 (x86_dr_low_get_control): Rename to...
11122 (x86_linux_dr_get_control): ...this.
11123 (x86_dr_low_get_status): Rename to...
11124 (x86_linux_dr_get_status): ...this.
11125 (x86_dr_low): Update with new function names.
11127 2015-03-24 Gary Benson <gbenson@redhat.com>
11129 * Makefile.in (x86-linux.o): New rule.
11130 * configure.srv: Add x86-linux.o to relevant targets.
11131 * linux-low.c (lwp_set_arch_private_info): New function.
11132 (lwp_arch_private_info): Likewise.
11133 * linux-x86-low.c: Include nat/x86-linux.h.
11134 (arch_lwp_info): Removed structure.
11135 (update_debug_registers_callback):
11136 Use lwp_set_debug_registers_changed.
11137 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11138 and lwp_set_debug_registers_changed.
11139 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11141 2015-03-24 Gary Benson <gbenson@redhat.com>
11143 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11144 * linux-arm-low.c (arm_new_thread): Likewise.
11145 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11146 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11147 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11148 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11150 2015-03-24 Gary Benson <gbenson@redhat.com>
11152 * linux-low.c (ptid_of_lwp): New function.
11153 (lwp_is_stopped): Likewise.
11154 (lwp_stop_reason): Likewise.
11155 * linux-x86-low.c (update_debug_registers_callback):
11156 Use lwp_is_stopped.
11157 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11160 2015-03-24 Gary Benson <gbenson@redhat.com>
11162 * linux-low.h (linux_stop_lwp): Remove declaration.
11164 2015-03-24 Gary Benson <gbenson@redhat.com>
11166 * linux-low.h: Include nat/linux-nat.h.
11167 * linux-low.c (iterate_over_lwps_args): New structure.
11168 (iterate_over_lwps_filter): New function.
11169 (iterate_over_lwps): Likewise.
11170 * linux-x86-low.c (update_debug_registers_callback):
11171 Update signature to what iterate_over_lwps expects.
11172 Remove PID check that iterate_over_lwps now performs.
11173 (x86_dr_low_set_addr): Use iterate_over_lwps.
11174 (x86_dr_low_set_control): Likewise.
11176 2015-03-24 Gary Benson <gbenson@redhat.com>
11178 * linux-x86-low.c (x86_debug_reg_state): New function.
11179 (x86_linux_prepare_to_resume): Use the above.
11181 2015-03-24 Gary Benson <gbenson@redhat.com>
11183 * linux-low.c (current_lwp_ptid): New function.
11184 * linux-x86-low.c: Include nat/linux-nat.h.
11185 (x86_dr_low_get_addr): Use current_lwp_ptid.
11186 (x86_dr_low_get_control): Likewise.
11187 (x86_dr_low_get_status): Likewise.
11189 2015-03-20 Pedro Alves <palves@redhat.com>
11191 * tracepoint.c (cmd_qtstatus): Make "str" const.
11193 2015-03-20 Pedro Alves <palves@redhat.com>
11195 * server.c (handle_general_set): Make "req_str" const.
11197 2015-03-19 Pedro Alves <palves@redhat.com>
11199 * linux-low.c (linux_resume_one_lwp): Rename to ...
11200 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11201 instead call perror_with_name.
11202 (check_ptrace_stopped_lwp_gone): New function.
11203 (linux_resume_one_lwp): Reimplement as wrapper around
11204 linux_resume_one_lwp_throw that swallows errors if the LWP is
11207 2015-03-19 Pedro Alves <palves@redhat.com>
11209 * linux-low.c (count_events_callback, select_event_lwp_callback):
11210 No longer check whether the thread has resume_stop as last resume
11213 2015-03-19 Pedro Alves <palves@redhat.com>
11215 * linux-low.c (count_events_callback, select_event_lwp_callback):
11216 Use the lwp's status_pending_p field, not the thread's.
11218 2015-03-19 Pedro Alves <palves@redhat.com>
11220 * linux-low.c (select_event_lwp_callback): Update comments to
11221 no longer mention SIGTRAP.
11223 2015-03-18 Gary Benson <gbenson@redhat.com>
11225 * server.c (handle_query): Do not report vFile:fstat as supported.
11227 2015-03-11 Gary Benson <gbenson@redhat.com>
11229 * hostio.c (sys/types.h): New include.
11230 (sys/stat.h): Likewise.
11231 (common-remote-fileio.h): Likewise.
11232 (handle_fstat): New function.
11233 (handle_vFile): Handle vFile:fstat packets.
11235 2015-03-11 Gary Benson <gbenson@redhat.com>
11237 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11238 struct stat.st_blocks and struct stat.st_blksize.
11239 * configure: Regenerate.
11240 * config.in: Likewise.
11241 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11242 (OBS): Add common-remote-fileio.o.
11243 (common-remote-fileio.o): New rule.
11245 2015-03-09 Pedro Alves <palves@redhat.com>
11247 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11248 'struct sockaddr' pointer in 'accept' call.
11250 2015-03-09 Pedro Alves <palves@redhat.com>
11253 2015-03-07 Pedro Alves <palves@redhat.com>
11254 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11255 or <winsock2.h> here. Instead include "gdb_socket.h".
11256 (remote_open): Use union gdb_sockaddr_u.
11257 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11258 or <winsock2.h> here. Instead include "gdb_socket.h".
11259 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11260 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11262 (init_named_socket, gdb_agent_helper_thread): Use union
11265 2015-03-07 Pedro Alves <palves@redhat.com>
11267 * configure.ac (build_warnings): Move
11268 -Wdeclaration-after-statement to the C-specific set.
11269 * configure: Regenerate.
11271 2015-03-07 Pedro Alves <palves@redhat.com>
11273 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11274 or <winsock2.h> here. Instead include "gdb_socket.h".
11275 (remote_open): Use union gdb_sockaddr_u.
11276 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11277 or <winsock2.h> here. Instead include "gdb_socket.h".
11278 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11279 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11281 (init_named_socket, gdb_agent_helper_thread): Use union
11284 2015-03-07 Pedro Alves <palves@redhat.com>
11286 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11289 2015-03-06 Yao Qi <yao.qi@linaro.org>
11291 * linux-aarch64-low.c (aarch64_insert_point): Use
11292 show_debug_regs as a boolean.
11293 (aarch64_remove_point): Likewise.
11295 2015-03-05 Pedro Alves <palves@redhat.com>
11297 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11298 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11299 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11300 * nto-low.c (nto_target_ops): Likewise.
11301 * spu-low.c (spu_target_ops): Likewise.
11302 * win32-low.c (win32_target_ops): Likewise.
11304 2015-03-04 Pedro Alves <palves@redhat.com>
11306 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11307 Decide whether a breakpoint triggered based on the SIGTRAP's
11309 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11310 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11311 (linux_low_filter_event): Check for breakpoints before checking
11313 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11315 (linux_stopped_by_sw_breakpoint)
11316 (linux_supports_stopped_by_sw_breakpoint)
11317 (linux_stopped_by_hw_breakpoint)
11318 (linux_supports_stopped_by_hw_breakpoint): New functions.
11319 (linux_target_ops): Install new target methods.
11321 2015-03-04 Pedro Alves <palves@redhat.com>
11323 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11324 * server.c (swbreak_feature, hwbreak_feature): New globals.
11325 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11326 (captured_main): Clear swbreak_feature and hwbreak_feature.
11327 * server.h (swbreak_feature, hwbreak_feature): Declare.
11328 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11329 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11330 supports_stopped_by_hw_breakpoint>: New fields.
11331 (target_supports_stopped_by_sw_breakpoint)
11332 (target_stopped_by_sw_breakpoint)
11333 (target_supports_stopped_by_hw_breakpoint)
11334 (target_stopped_by_hw_breakpoint): Declare.
11336 2015-03-04 Pedro Alves <palves@redhat.com>
11338 enum lwp_stop_reason -> enum target_stop_reason
11339 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11340 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11341 (linux_wait_1, stuck_in_jump_pad_callback)
11342 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11343 (linux_stopped_by_watchpoint):
11344 * linux-low.h (enum lwp_stop_reason): Delete.
11345 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11346 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11348 2015-03-04 Yao Qi <yao.qi@linaro.org>
11350 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11352 2015-03-03 Gary Benson <gbenson@redhat.com>
11354 * hostio.c (handle_vFile): Fix prefix lengths.
11356 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11358 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11361 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11363 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11364 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11365 (clean): Add "rm -f" for above C files.
11366 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11367 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11368 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11369 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11370 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11371 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11372 (init_registers_s390x_vx_linux64)
11373 (init_registers_s390x_tevx_linux64)
11374 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11375 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11377 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11378 (s390_store_vxrs_high): New functions.
11379 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11381 (s390_arch_setup): Add logic for selecting one of the new target
11382 descriptions. Activate the new vector regsets if applicable.
11383 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11384 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11385 and init_registers_s390x_tevx_linux64.
11387 2015-03-01 Pedro Alves <palves@redhat.com>
11389 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11392 2015-02-27 Pedro Alves <palves@redhat.com>
11394 * linux-x86-low.c (u_debugreg_offset): New function.
11395 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11397 2015-02-27 Pedro Alves <palves@redhat.com>
11399 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11400 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11401 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11402 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11403 (ps_lsetfpregs, ps_getpid)
11404 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11405 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11406 (ps_lsetxregs, ps_plog): Declare.
11408 2015-02-27 Pedro Alves <palves@redhat.com>
11410 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11411 IP_AGENT_EXPORT_FUNC.
11412 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11413 IP_AGENT_EXPORT_FUNC.
11414 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11415 (IP_AGENT_EXPORT): Delete.
11416 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11417 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11418 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11419 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11420 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11421 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11422 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11423 (traceframe_read_count, traceframe_write_count)
11424 (traceframes_created, trace_state_variables, get_raw_reg)
11425 (get_trace_state_variable_value, set_trace_state_variable_value)
11426 (ust_loaded, helper_thread_id, cmd_buf): Use
11427 IPA_SYM_EXPORTED_NAME.
11428 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11429 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11430 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11431 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11432 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11433 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11434 EXTERN_C_PUSH/EXTERN_C_POP.
11435 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11436 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11437 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11438 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11439 (traceframe_write_count, traceframe_read_count)
11440 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11441 (about_to_request_buffer_space, get_trace_state_variable_value)
11442 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11443 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11444 EXTERN_C_PUSH/EXTERN_C_POP.
11445 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11446 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11447 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11448 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11449 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11450 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11451 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11452 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11454 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11455 (IP_AGENT_EXPORT_VAR_DECL): Define.
11456 (tracing): Declare.
11457 (gdb_agent_get_raw_reg): Declare.
11459 2015-02-27 Tom Tromey <tromey@redhat.com>
11460 Pedro Alves <palves@redhat.com>
11462 Rename symbols whose names are reserved C++ keywords throughout.
11464 2015-02-27 Pedro Alves <palves@redhat.com>
11466 * Makefile.in (COMPILER): New, get it from autoconf.
11467 (CXX): Get from autoconf instead.
11468 (COMPILE.pre): Use COMPILER.
11469 (CC-LD): Rename to ...
11470 (CC_LD): ... this. Use COMPILER.
11471 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11472 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11473 * acinclude.m4: Include build-with-cxx.m4.
11474 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11475 Disable -Werror by default if building in C++ mode.
11476 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11477 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11478 the C++ compiler. Save/restore CXXFLAGS too.
11479 * configure: Regenerate.
11481 2015-02-27 Pedro Alves <palves@redhat.com>
11483 * acinclude.m4: Include libiberty.m4.
11484 * configure.ac: Call libiberty_INIT.
11485 * config.in, configure: Regenerate.
11487 2015-02-26 Pedro Alves <palves@redhat.com>
11489 * linux-low.c (linux_wait_1): When incrementing the PC past a
11490 program breakpoint always use the_low_target.breakpoint_len as
11491 increment, rather than the maximum between that and
11492 the_low_target.decr_pc_after_break.
11494 2015-02-23 Pedro Alves <palves@redhat.com>
11496 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11497 thread was doing a step-over; always adjust the PC if
11498 we stepped over a permanent breakpoint.
11499 (linux_wait_1): If we stepped over breakpoint that was on top of a
11500 permanent breakpoint, manually advance the PC past it.
11502 2015-02-23 Pedro Alves <palves@redhat.com>
11504 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11506 (x86_fill_gregset, x86_store_gregset): Use it when handling
11509 2015-02-20 Pedro Alves <palves@redhat.com>
11511 * thread-db.c: Include "nat/linux-procfs.h".
11512 (thread_db_init): Skip listing new threads if the kernel supports
11513 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11515 2015-02-20 Pedro Alves <palves@redhat.com>
11517 * linux-low.c (status_pending_p_callback): Use ptid_match.
11519 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11521 PR breakpoints/16812
11522 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11523 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11524 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11526 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11528 PR breakpoints/15956
11529 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11531 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11533 * linux-low.c (linux_low_btrace_conf): Print size.
11534 * server.c (handle_btrace_conf_general_set): New.
11535 (hanle_general_set): Call handle_btrace_conf_general_set.
11536 (handle_query): Report Qbtrace-conf:bts:size as supported.
11538 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11540 * linux-low.c (linux_low_enable_btrace): Update parameters.
11541 (linux_low_btrace_conf): New.
11542 (linux_target_ops)<to_btrace_conf>: Initialize.
11543 * server.c (current_btrace_conf): New.
11544 (handle_btrace_enable): Rename to ...
11545 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11546 to target_enable_btrace. Update comment. Update users.
11547 (handle_qxfer_btrace_conf): New.
11548 (qxfer_packets): Add btrace-conf entry.
11549 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11550 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11551 (target_ops)<read_btrace_conf>: New.
11552 (target_enable_btrace): Update parameters.
11553 (target_read_btrace_conf): New.
11555 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11557 * server.c (handle_btrace_general_set): Remove call to
11558 target_supports_btrace.
11559 (supported_btrace_packets): New.
11560 (handle_query): Call supported_btrace_packets.
11561 * target.h: include btrace-common.h.
11562 (btrace_target_info): Removed.
11563 (supports_btrace, target_supports_btrace): Update parameters.
11565 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11567 * Makefile.in (SFILES): Add common/btrace-common.c.
11568 (OBS): Add common/btrace-common.o.
11569 (btrace-common.o): Add build rules.
11570 * linux-low: Include btrace-common.h.
11571 (linux_low_read_btrace): Use struct btrace_data. Call
11572 btrace_data_init and btrace_data_fini.
11574 2015-02-06 Pedro Alves <palves@redhat.com>
11576 * thread-db.c (find_new_threads_callback): Add debug output.
11578 2015-02-04 Pedro Alves <palves@redhat.com>
11580 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11581 (resume_stopped_resumed_lwps): New function.
11582 (linux_wait_for_event_filtered): Use it.
11584 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11586 * Makefile.in (SFILES): Add linux-personality.c.
11587 (linux-personality.o): New rule.
11588 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11589 list of objects to be built.
11590 * linux-low.c: Include nat/linux-personality.h.
11591 (linux_create_inferior): Remove code to disable address space
11592 randomization (moved to ../nat/linux-personality.c). Create
11593 cleanup to disable address space randomization.
11595 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11597 * Makefile.in (posix-strerror.o): New rule.
11598 (mingw-strerror.o): Likewise.
11599 * configure: Regenerated.
11600 * configure.ac: Source file ../common/common.host. Initialize new
11601 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11603 2015-01-14 Yao Qi <yao@codesourcery.com>
11605 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11606 (ppc-linux.o): New rule.
11607 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11608 * configure.ac: AC_CHECK_FUNCS(getauxval).
11609 * config.in: Re-generated.
11610 * configure: Re-generated.
11611 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11612 ppc64_64bit_inferior_p
11614 2015-01-14 Yao Qi <yao@codesourcery.com>
11616 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11617 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11618 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11619 (PT_ORIG_R3, PT_TRAP): Likewise.
11620 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11621 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11622 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11624 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11626 * i387-fp.c (i387_cache_to_xsave): In look over
11627 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11628 zmmh_low_space field by use of zmmh_high_space.
11630 2015-01-09 Pedro Alves <palves@redhat.com>
11632 * linux-low.c (step_over_bkpt): Move higher up in the file.
11633 (handle_extended_wait): Don't store the stop_pc here.
11634 (get_stop_pc): Adjust comments and rename to ...
11635 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11636 stopped for a software breakpoint or hardware breakpoint.
11637 (thread_still_has_status_pending_p): New function.
11638 (status_pending_p_callback): Use
11639 thread_still_has_status_pending_p. If the event is no longer
11640 interesting, resume the LWP.
11641 (handle_tracepoints): Add assert.
11642 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11643 (wstatus_maybe_breakpoint): New function.
11644 (cancel_breakpoint): Delete function.
11645 (check_stopped_by_watchpoint): New function, factored out from
11646 linux_low_filter_event.
11647 (lp_status_maybe_breakpoint): Delete function.
11648 (linux_low_filter_event): Remove filter_ptid argument.
11649 Leave thread group exits pending here. Store the LWP's stop PC.
11650 Always leave events pending.
11651 (linux_wait_for_event_filtered): Pull all events out of the
11652 kernel, and leave them all pending.
11653 (count_events_callback, select_event_lwp_callback): Consider all
11655 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11656 (select_event_lwp): Only give preference to the stepping LWP in
11657 all-stop mode. Adjust comments.
11658 (ignore_event): New function.
11659 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11660 references to cancel_breakpoints. Adjust to renames. Also give
11661 equal priority to all LWPs that have had events in non-stop mode.
11662 If reporting a software breakpoint event, unadjust the LWP's PC.
11663 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11664 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11666 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11667 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11668 (linux_stopped_by_watchpoint): Adjust.
11669 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11670 * linux-low.h (enum lwp_stop_reason): New.
11671 (struct lwp_info) <stop_pc>: Adjust comment.
11672 <stopped_by_watchpoint>: Delete field.
11673 <stop_reason>: New field.
11674 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11675 * mem-break.c (software_breakpoint_inserted_here)
11676 (hardware_breakpoint_inserted_here): New function.
11677 * mem-break.h (software_breakpoint_inserted_here)
11678 (hardware_breakpoint_inserted_here): Declare.
11679 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11680 (cancel_breakpoints): Delete.
11681 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11682 (upload_fast_traceframes): Remove references to
11683 cancel_breakpoints.
11685 2015-01-09 Pedro Alves <palves@redhat.com>
11687 * thread-db.c (find_new_threads_callback): Ignore thread if the
11688 kernel thread ID is -1.
11690 2015-01-09 Pedro Alves <palves@redhat.com>
11692 * linux-low.c (linux_attach_fail_reason_string): Move to
11693 nat/linux-ptrace.c, and rename.
11694 (linux_attach_lwp): Update comment.
11695 (attach_proc_task_lwp_callback): New function.
11696 (linux_attach): Adjust to rename and use
11697 linux_proc_attach_tgid_threads.
11698 (linux_attach_fail_reason_string): Delete declaration.
11700 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11702 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11703 * server.c (gdbserver_version): Likewise.
11705 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11707 * remote-utils.c: Include ctype.h.
11708 (input_interrupt): Explicitly handle the case when the char
11709 received is the NUL byte. Improve the printing of non-ASCII
11712 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11714 * linux-low.c (linux_low_filter_event): Update call to
11715 linux_enable_event_reporting following the addition of
11716 a new parameter to that function.
11718 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11721 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11722 (AARCH64_FPCR_REGNO): Likewise.
11723 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11724 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11725 (aarch64_store_fpregset): Likewise.
11727 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11729 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11730 Remove FIXME comment about assumption about N.
11732 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11734 * configure.ac: If large-file support is disabled in GDBserver,
11735 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11736 * configure: Regenerate.
11738 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11740 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11741 warning upon ENODATA from ptrace.
11742 * linux-s390-low.c (s390_store_tdb): New.
11743 (s390_regsets): Add regset for NT_S390_TDB.
11745 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11747 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11748 without a fill_function.
11749 * linux-s390-low.c (s390_fill_last_break): Remove.
11750 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11751 (s390_arch_setup): Use regset's size instead of fill_function for
11752 loop end condition.
11754 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11756 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11757 the regset's store function when ptrace returned an error.
11758 * regcache.c (get_thread_regcache): Invalidate register cache
11759 before fetching inferior's registers.
11761 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11763 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11764 while-loop as for-loop.
11765 (regsets_store_inferior_registers): Likewise.
11767 2014-11-28 Yao Qi <yao@codesourcery.com>
11769 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11770 * config.in, configure: Re-generate.
11771 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11774 2014-11-21 Yao Qi <yao@codesourcery.com>
11776 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11777 (AC_CHECK_HEADERS): Remove malloc.h.
11778 * configure: Re-generated.
11779 * config.in: Re-generated.
11780 * server.h: Don't include alloca.h and malloc.h.
11781 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11782 Don't include malloc.h.
11784 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11786 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11787 corresponding ERRNO check in same block.
11789 2014-11-12 Pedro Alves <palves@redhat.com>
11791 * server.c (cont_thread): Update comment.
11792 (start_inferior, attach_inferior): No longer clear cont_thread.
11793 (handle_v_cont): No longer set cont_thread.
11794 (captured_main): Clear cont_thread each time a GDB connects.
11796 2014-11-12 Pedro Alves <palves@redhat.com>
11798 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11799 thread, and don't resume all threads if the Hc thread has exited.
11801 2014-11-12 Pedro Alves <palves@redhat.com>
11803 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11804 the process group instead of to a specific LWP.
11806 2014-10-15 Pedro Alves <palves@redhat.com>
11809 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11811 (arm_set_thread_context): Delete.
11812 (the_low_target): Adjust.
11813 * win32-i386-low.c (debug_registers_changed)
11814 (debug_registers_used): Delete.
11815 (update_debug_registers_callback): New function.
11816 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11817 needing to update their debug registers.
11818 (win32_get_current_dr): New function.
11819 (x86_dr_low_get_addr, x86_dr_low_get_control)
11820 (x86_dr_low_get_status): Fetch the debug register from the thread
11822 (i386_initial_stuff): Adjust.
11823 (i386_get_thread_context): Remove current_event parameter. Don't
11824 clear debug_registers_changed nor copy DR values to
11826 (i386_set_thread_context): Delete.
11827 (i386_prepare_to_resume): New function.
11828 (i386_thread_added): Mark the thread as needing to update irs
11830 (the_low_target): Remove i386_set_thread_context and install
11831 i386_prepare_to_resume.
11832 * win32-low.c (win32_get_thread_context): Adjust.
11833 (win32_set_thread_context): Use SetThreadContext
11835 (win32_prepare_to_resume): New function.
11836 (win32_require_context): New function, factored out from ...
11837 (thread_rec): ... this.
11838 (continue_one_thread): Call win32_prepare_to_resume on each thread
11839 we're about to continue.
11840 (win32_resume): Call win32_prepare_to_resume on the event thread.
11841 * win32-low.h (struct win32_thread_info)
11842 <debug_registers_changed>: New field.
11843 (struct win32_target_ops): Change prototype of set_thread_context,
11844 delete set_thread_context and add prepare_to_resume.
11845 (win32_require_context): New declaration.
11847 2014-10-08 Gary Benson <gbenson@redhat.com>
11849 * server.h: Do not include common-exceptions.h.
11851 2014-10-08 Gary Benson <gbenson@redhat.com>
11853 * server.h: Do not include cleanups.h.
11855 2014-09-30 James Hogan <james.hogan@imgtec.com>
11857 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11858 mips64-dsp-linux.c.
11860 2014-09-23 Yao Qi <yao@codesourcery.com>
11862 * linux-low.c (lp_status_maybe_breakpoint): New function.
11863 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11864 (count_events_callback): Likewise.
11865 (select_event_lwp_callback): Likewise.
11866 (cancel_breakpoints_callback): Likewise.
11868 2014-09-19 Don Breazeal <donb@codesourcery.com>
11870 * linux-low.c (handle_extended_wait): Call
11871 linux_ptrace_get_extended_event.
11872 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11873 linux_is_extended_waitstatus.
11875 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11877 * Makefile.in (CPPFLAGS): Define.
11878 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11879 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11881 2014-09-16 Gary Benson <gbenson@redhat.com>
11883 * inferiors.h (current_inferior): Renamed as...
11884 (current_thread): New variable. All uses updated.
11885 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11886 (maybe_move_out_of_jump_pad): Likewise.
11887 (cancel_breakpoint): Likewise.
11888 (linux_low_filter_event): Likewise.
11889 (wait_for_sigstop): Likewise.
11890 (linux_resume_one_lwp): Likewise.
11891 (need_step_over_p): Likewise.
11892 (start_step_over): Likewise.
11893 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11894 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11895 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11896 and save_inferior as saved_thread.
11897 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11899 (regcache_invalidate_thread): Likewise.
11900 * remote-utils.c (prepare_resume_reply): Likewise.
11901 * thread-db.c (thread_db_get_tls_address): Likewise.
11902 (disable_thread_event_reporting): Likewise.
11903 (remove_thread_event_breakpoints): Likewise.
11904 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11906 * target.h (set_desired_inferior): Renamed as...
11907 (set_desired_thread): New declaration. All uses updated.
11908 * server.c (myresume): Updated comment to reference thread instead
11910 (handle_serial_event): Likewise.
11911 (handle_target_event): Likewise.
11913 2014-09-12 Tom Tromey <tromey@redhat.com>
11914 Gary Benson <gbenson@redhat.com>
11916 * regcache.h: Include common-regcache.h.
11917 (regcache_read_pc): Don't declare.
11918 * regcache.c (get_thread_regcache_for_ptid): New function.
11920 2014-09-11 Tom Tromey <tromey@redhat.com>
11921 Gary Benson <gbenson@redhat.com>
11923 * symbol.c: New file.
11924 * Makefile.in (SFILES): Add symbol.c.
11925 (OBS): Add symbol.o.
11927 2014-09-11 Gary Benson <gbenson@redhat.com>
11929 * target.c (target_stop_ptid, target_continue_ptid): New
11932 2014-09-11 Tom Tromey <tromey@redhat.com>
11933 Gary Benson <gbenson@redhat.com>
11935 * target.h: Include target/target.h.
11936 * target.c (target_read_memory, target_read_uint32)
11937 (target_write_memory): New functions.
11939 2014-09-11 Gary Benson <gbenson@redhat.com>
11941 * server.h (debug_hw_points): Don't declare.
11942 * server.c (debug_hw_points): Don't define. Replace all uses
11943 with show_debug_regs.
11944 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11945 all uses with show_debug_regs.
11947 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11949 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11950 endianness into account.
11951 (ppc_supply_ptrace_register): Likewise.
11953 2014-09-03 James Hogan <james.hogan@imgtec.com>
11955 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11956 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11958 2014-09-03 Gary Benson <gbenson@redhat.com>
11960 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11961 ALL_DEBUG_ADDRESS_REGISTERS.
11963 2014-09-02 Gary Benson <gbenson@redhat.com>
11965 * i386-low.h: Renamed as...
11966 * x86-low.h: New file. All type, function and variable name
11967 prefixes changed from "i386_" to "x86_". All references updated.
11968 * i386-low.c: Renamed as...
11969 * x86-low.c: New file. All type, function and variable name
11970 prefixes changed from "i386_" to "x86_". All references updated.
11972 2014-09-02 Gary Benson <gbenson@redhat.com>
11974 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11975 (x86_linux_new_thread): Likewise.
11977 2014-08-29 Gary Benson <gbenson@redhat.com>
11979 * server.h (setjmp.h): Do not include.
11980 (toplevel): Do not declare.
11981 (common-exceptions.h): Include.
11982 (cleanups.h): Likewise.
11983 * server.c (toplevel): Do not define.
11984 (exit_code): New static global.
11985 (detach_or_kill_for_exit_cleanup): New function.
11986 (main): New function. Original main renamed to...
11987 (captured_main): New function.
11988 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11990 2014-08-29 Gary Benson <gbenson@redhat.com>
11992 * Makefile.in (SFILES): Add common/common-exceptions.c.
11993 (OBS): Add common-exceptions.o.
11994 (common-exceptions.o): New rule.
11995 * utils.c (prepare_to_throw_exception): New function.
11997 2014-08-29 Gary Benson <gbenson@redhat.com>
11999 * config.in: Regenerate.
12000 * configure: Likewise.
12002 2014-08-29 Gary Benson <gbenson@redhat.com>
12004 * Makefile.in (SFILES): Add common/cleanups.c.
12006 (cleanups.o): New rule.
12008 2014-08-29 Gary Benson <gbenson@redhat.com>
12010 * utils.c (internal_vwarning): New function.
12012 2014-08-28 Gary Benson <gbenson@redhat.com>
12014 * utils.h (fatal): Remove declaration.
12015 * utils.c (fatal): Remove function.
12017 2014-08-28 Gary Benson <gbenson@redhat.com>
12019 * tracepoint.c (gdb_agent_init): Replace fatal with
12021 (initialize_tracepoint): Likewise.
12023 2014-08-28 Gary Benson <gbenson@redhat.com>
12025 * remote-utils.c (remote_prepare): Replace fatal with error.
12027 2014-08-28 Gary Benson <gbenson@redhat.com>
12029 * linux-low.c (linux_async): Replace fatal with warning.
12030 Tidy up and return.
12031 (linux_start_non_stop): Return -1 if linux_async failed.
12033 2014-08-28 Gary Benson <gbenson@redhat.com>
12035 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12037 (i386_dr_low_get_addr): Remove vague comment.
12038 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12041 2014-08-28 Gary Benson <gbenson@redhat.com>
12043 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12044 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12046 (linux_resume_one_lwp): Likewise.
12047 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12049 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12050 with internal_error.
12051 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12052 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12053 (find_register_by_name): Replace fatal with internal_error.
12054 (find_regno): Likewise.
12055 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12056 * thread-db.c (thread_db_create_event): Likewise.
12057 (thread_db_load_search): Likewise.
12058 (try_thread_db_load_1): Likewise.
12059 * tracepoint.c (get_jump_space_head): Replace fatal with
12061 (claim_trampoline_space): Likewise.
12062 (have_fast_tracepoint_trampoline_buffer): Likewise.
12063 (cmd_qtstart): Likewise.
12064 (stop_tracing): Likewise.
12065 (fast_tracepoint_collecting): Likewise.
12066 (target_malloc): Likewise.
12067 (download_tracepoint): Likewise.
12068 (download_trace_state_variables): Replace check with gdb_assert.
12069 (upload_fast_traceframes): Replace fatal with internal_error.
12071 2014-08-19 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12074 * Makefile.in (SFILES): Add common/common-debug.c.
12075 (OBS): Add common-debug.o.
12076 (common-debug.o): New rule.
12077 * debug.h (debug_printf): Don't declare.
12078 * debug.c (debug_printf): Renamed and rewritten as...
12079 (debug_vprintf): New function.
12081 2014-08-19 Gary Benson <gbenson@redhat.com>
12083 * utils.h: Do not include print-utils.h.
12085 2014-08-19 Tom Tromey <tromey@redhat.com>
12086 Gary Benson <gbenson@redhat.com>
12088 * server.h: Add static assertion.
12089 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12091 2014-08-19 Tom Tromey <tromey@redhat.com>
12092 Gary Benson <gbenson@redhat.com>
12094 * Makefile.in (SFILES): Add common/errors.c.
12095 (OBS): Add errors.o.
12096 (IPA_OBS): Add errors-ipa.o.
12097 (errors.o): New rule.
12098 (errors-ipa.o): Likewise.
12099 * utils.h (perror_with_name, error, warning): Don't declare.
12100 * utils.c (warning): Renamed and rewritten as...
12101 (vwarning): New function.
12102 (error): Renamed and rewritten as...
12103 (verror): New function.
12104 (internal_error): Renamed and rewritten as...
12105 (internal_verror): New function.
12107 2014-08-07 Gary Benson <gbenson@redhat.com>
12109 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12110 * configure: Regenerate.
12111 * config.in: Likewise.
12112 * server.h: Do not include errno.h.
12113 * event-loop.c: Likewise.
12114 * hostio-errno.c: Likewise.
12115 * linux-low.c: Likewise.
12116 * remote-utils.c: Likewise.
12117 * spu-low.c: Likewise.
12118 * utils.c: Likewise.
12119 * gdbreplay.c: Unconditionally include errno.h.
12121 2014-08-07 Gary Benson <gbenson@redhat.com>
12123 * server.h: Do not include string.h.
12124 * event-loop.c: Likewise.
12125 * linux-low.c: Likewise.
12126 * regcache.c: Likewise.
12127 * remote-utils.c: Likewise.
12128 * spu-low.c: Likewise.
12129 * utils.c: Likewise.
12131 2014-08-07 Gary Benson <gbenson@redhat.com>
12133 * server.h: Do not include gdb_assert.h.
12135 2014-08-07 Gary Benson <gbenson@redhat.com>
12137 * server.h: Do not include common-utils.h.
12139 2014-08-07 Gary Benson <gbenson@redhat.com>
12141 * server.h: Do not include ptid.h.
12142 * notif.h: Likewise.
12144 2014-08-07 Gary Benson <gbenson@redhat.com>
12146 * server.h: Do not include gdb_locale.h.
12148 2014-08-07 Gary Benson <gbenson@redhat.com>
12150 * server.h: Do not include gdb/signals.h.
12151 * win32-low.c: Likewise.
12153 2014-08-07 Gary Benson <gbenson@redhat.com>
12155 * server.h: Do not include pathmax.h.
12157 2014-08-07 Gary Benson <gbenson@redhat.com>
12159 * server.h: Do not include libiberty.h.
12160 * linux-bfin-low.c: Likewise.
12162 2014-08-07 Gary Benson <gbenson@redhat.com>
12164 * server.h: Do not include ansidecl.h.
12166 2014-08-07 Gary Benson <gbenson@redhat.com>
12168 * linux-x86-low.c: Do not include stddef.h.
12169 * lynx-ppc-low.c: Likewise.
12170 * tracepoint.c: Likewise.
12172 2014-08-07 Gary Benson <gbenson@redhat.com>
12174 * server.h: Do not include stdarg.h.
12175 * nto-low.c: Likewise.
12177 2014-08-07 Gary Benson <gbenson@redhat.com>
12179 * server.h: Do not include stdlib.h.
12180 * inferiors.c: Likewise.
12181 * linux-low.c: Likewise.
12182 * regcache.c: Likewise.
12183 * spu-low.c: Likewise.
12184 * tracepoint.c: Likewise.
12185 * utils.c: Likewise.
12187 2014-08-07 Gary Benson <gbenson@redhat.com>
12189 * server.h: Do not include stdio.h.
12190 * linux-low.c: Likewise.
12191 * remote-utils.c: Likewise.
12192 * spu-low.c: Likewise.
12193 * utils.c: Likewise.
12194 * wincecompat.c: Likewise.
12196 2014-08-06 Gary Benson <gbenson@redhat.com>
12198 * regcache.c (init_register_cache): Move conditionals inside if.
12200 2014-08-06 Gary Benson <gbenson@redhat.com>
12202 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12204 2014-07-31 Gary Benson <gbenson@redhat.com>
12206 * ax.h: Do not include server.h.
12207 * gdbthread.h: Likewise.
12208 * lynx-low.h: Likewise.
12209 * notif.h: Likewise.
12211 2014-07-30 Gary Benson <gbenson@redhat.com>
12213 * server.h: Include common-defs.h.
12214 Do not include config.h or build-gnulib-gdbserver/config.h.
12216 2014-07-30 Gary Benson <gbenson@redhat.com>
12218 * hostio-errno.c: Move server.h to top of includes list.
12219 * inferiors.c: Likewise.
12220 * linux-x86-low.c: Likewise.
12221 * notif.c: Include server.h.
12223 2014-07-24 Tom Tromey <tromey@redhat.com>
12224 Gary Benson <gbenson@redhat.com>
12226 * server.h (CORE_ADDR): Now unsigned.
12228 2014-07-16 Pedro Alves <palves@redhat.com>
12230 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12232 2014-07-15 Pedro Alves <palves@redhat.com>
12234 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12237 2014-07-11 Pedro Alves <palves@redhat.com>
12239 * linux-low.c (kill_wait_lwp): New function, based on
12240 kill_one_lwp_callback, but use my_waitpid directly.
12241 (kill_one_lwp_callback, linux_kill): Use it.
12243 2014-06-23 Pedro Alves <palves@redhat.com>
12245 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12246 before setting DR0..DR3.
12248 2014-06-20 Gary Benson <gbenson@redhat.com>
12250 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12251 * configure: Regenerated.
12252 * config.in: Likewise.
12254 2014-06-20 Gary Benson <gbenson@redhat.com>
12256 * Makefile.in (SFILES): Update locations for files moved
12257 from common to nat.
12258 (object file files): Reordered.
12260 2014-06-20 Gary Benson <gbenson@redhat.com>
12262 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12263 (i386_dr_low_set_addr): Likewise.
12264 (i386_dr_low_get_addr): Likewise.
12265 (i386_dr_low_can_set_control): Likewise.
12266 (i386_dr_low_set_control): Likewise.
12267 (i386_dr_low_get_control): Likewise.
12268 (i386_dr_low_get_status): Likewise.
12269 (i386_get_debug_register_length): Likewise.
12270 * linux-x86-low.c (i386_dr_low_set_addr):
12271 Changed signature. Made static.
12272 (i386_dr_low_get_addr): Likewise.
12273 (i386_dr_low_set_control): Likewise.
12274 (i386_dr_low_get_control): Likewise.
12275 (i386_dr_low_get_status): Likewise.
12276 (i386_dr_low): New global variable.
12277 * win32-i386-low.c (i386_dr_low_set_addr):
12278 Changed signature. Made static.
12279 (i386_dr_low_get_addr): Likewise.
12280 (i386_dr_low_set_control): Likewise.
12281 (i386_dr_low_get_control): Likewise.
12282 (i386_dr_low_get_status): Likewise.
12283 (i386_dr_low): New global variable.
12285 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12287 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12288 * Makefile.in (AR, AR_FLAGS): Define.
12289 * configure: Regenerate.
12291 2014-06-19 Gary Benson <gbenson@redhat.com>
12293 * Makefile.in (i386-dregs.o): New rule.
12294 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12295 * i386-low.c (target.h): Remove include.
12296 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12297 (DR_CONTROL_SHIFT): Likewise.
12298 (DR_CONTROL_SIZE): Likewise.
12299 (DR_RW_EXECUTE): Likewise.
12300 (DR_RW_WRITE): Likewise.
12301 (DR_RW_READ): Likewise.
12302 (DR_RW_IORW): Likewise.
12303 (DR_LEN_1): Likewise.
12304 (DR_LEN_2): Likewise.
12305 (DR_LEN_4): Likewise.
12306 (DR_LEN_8): Likewise.
12307 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12308 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12309 (DR_ENABLE_SIZE): Likewise.
12310 (DR_LOCAL_SLOWDOWN): Likewise.
12311 (DR_GLOBAL_SLOWDOWN): Likewise.
12312 (DR_CONTROL_RESERVED): Likewise.
12313 (I386_DR_CONTROL_MASK): Likewise.
12314 (I386_DR_VACANT): Likewise.
12315 (I386_DR_LOCAL_ENABLE): Likewise.
12316 (I386_DR_GLOBAL_ENABLE): Likewise.
12317 (I386_DR_DISABLE): Likewise.
12318 (I386_DR_SET_RW_LEN): Likewise.
12319 (I386_DR_GET_RW_LEN): Likewise.
12320 (I386_DR_WATCH_HIT): Likewise.
12321 (i386_wp_op_t): Likewise.
12322 (i386_show_dr): Likewise.
12323 (i386_length_and_rw_bits): Likewise.
12324 (i386_insert_aligned_watchpoint): Likewise.
12325 (i386_remove_aligned_watchpoint): Likewise.
12326 (i386_handle_nonaligned_watchpoint): Likewise.
12327 i386_update_inferior_debug_regs(): Likewise.
12328 (i386_dr_insert_watchpoint): Likewise.
12329 (i386_dr_remove_watchpoint): Likewise.
12330 (i386_dr_region_ok_for_watchpoint): Likewise.
12331 (i386_dr_stopped_data_address): Likewise.
12332 (i386_dr_stopped_by_watchpoint): Likewise.
12334 2014-06-19 Gary Benson <gbenson@redhat.com>
12336 * i386-low.c (i386_dr_show): Renamed to
12337 i386_show_dr and made static. All uses updated.
12338 (i386_dr_length_and_rw_bits): Renamed to
12339 i386_length_and_rw_bits and made static.
12341 (i386_dr_insert_aligned_watchpoint): Renamed to
12342 i386_insert_aligned_watchpoint and made static.
12344 (i386_dr_remove_aligned_watchpoint): Renamed to
12345 i386_remove_aligned_watchpoint and made static.
12347 (i386_dr_update_inferior_debug_regs): Renamed to
12348 i386_update_inferior_debug_regs and made static.
12351 2014-06-18 Gary Benson <gbenson@redhat.com>
12353 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12354 (i386_dr_low_can_set_control): Likewise.
12355 (i386_get_debug_register_length): Likewise.
12356 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12357 (i386_dr_low_can_set_control): Likewise.
12358 (i386_get_debug_register_length): Likewise.
12360 2014-06-17 Gary Benson <gbenson@redhat.com>
12362 * i386-low.h (i386-dregs.h): New include.
12363 (DR_FIRSTADDR): Now in i386-dregs.h.
12364 (DR_LASTADDR): Likewise.
12365 (DR_NADDR): Likewise.
12366 (DR_STATUS): Likewise.
12367 (DR_CONTROL): Likewise.
12368 (i386_debug_reg_state): Likewise.
12369 (i386_dr_insert_watchpoint): Likewise.
12370 (i386_dr_remove_watchpoint): Likewise.
12371 (i386_dr_region_ok_for_watchpoint): Likewise.
12372 (i386_dr_stopped_data_address): Likewise.
12373 (i386_dr_stopped_by_watchpoint): Likewise.
12374 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12376 2014-06-18 Gary Benson <gbenson@redhat.com>
12378 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12379 i386_dr_insert_watchpoint.
12380 (i386_low_remove_watchpoint): Renamed to
12381 i386_dr_remove_watchpoint.
12382 (i386_low_region_ok_for_watchpoint): Renamed to
12383 i386_dr_region_ok_for_watchpoint.
12384 (i386_low_stopped_data_address): Renamed to
12385 i386_dr_stopped_data_address.
12386 (i386_low_stopped_by_watchpoint): Renamed to
12387 i386_dr_stopped_by_watchpoint.
12388 * i386-low.c (i386_show_dr): Renamed to
12389 i386_dr_show and made nonstatic. All uses updated.
12390 (i386_length_and_rw_bits): Renamed to
12391 i386_dr_length_and_rw_bits and made nonstatic.
12393 (i386_insert_aligned_watchpoint): Renamed to
12394 i386_dr_insert_aligned_watchpoint and made nonstatic.
12396 (i386_remove_aligned_watchpoint): Renamed to
12397 i386_dr_remove_aligned_watchpoint and made nonstatic.
12399 (i386_update_inferior_debug_regs): Renamed to
12400 i386_dr_update_inferior_debug_regs and made nonstatic.
12402 (i386_low_insert_watchpoint): Renamed to
12403 i386_dr_insert_watchpoint. All uses updated.
12404 (i386_low_remove_watchpoint): Renamed to
12405 i386_dr_remove_watchpoint. All uses updated.
12406 (i386_low_region_ok_for_watchpoint): Renamed to
12407 i386_dr_region_ok_for_watchpoint. All uses updated.
12408 (i386_low_stopped_data_address): Renamed to
12409 i386_dr_stopped_data_address. All uses updated.
12410 (i386_low_stopped_by_watchpoint): Renamed to
12411 i386_dr_stopped_by_watchpoint. All uses updated.
12413 2014-06-18 Gary Benson <gbenson@redhat.com>
12415 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12416 (i386_dr_low_can_set_control): Likewise.
12417 (i386_insert_aligned_watchpoint): New check.
12419 2014-06-18 Gary Benson <gbenson@redhat.com>
12421 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12424 2014-06-18 Gary Benson <gbenson@redhat.com>
12426 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12427 instead of fatal and error.
12428 (i386_handle_nonaligned_watchpoint): Likewise.
12430 2014-06-18 Gary Benson <gbenson@redhat.com>
12432 * i386-low.c (i386_get_debug_register_length): New macro.
12433 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12434 (i386_show_dr): Use debug_printf instead of fprintf. Use
12435 phex to format values.
12437 2014-06-18 Gary Benson <gbenson@redhat.com>
12439 * i386-low.h: Comment changes.
12440 * i386-low.c: Likewise.
12442 2014-06-18 Gary Benson <gbenson@redhat.com>
12444 * i386-low.c: Whitespace changes.
12446 2014-06-12 Tom Tromey <tromey@redhat.com>
12448 * utils.c (freeargv): Remove.
12450 2014-06-12 Tom Tromey <tromey@redhat.com>
12452 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12453 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12454 (parse_debug_format_options): Likewise.
12455 (gdbserver_usage): Likewise.
12456 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12457 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12458 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12460 ($(LIBGNU)): Depend on libiberty.
12461 (all-lib): Recurse into all subdirs.
12462 (install-only): Invoke "install" target in subdirs.
12463 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12465 * configure: Rebuild.
12466 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12467 for vasprintf, vsnprintf, or gettimeofday.
12468 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12471 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12473 * development.sh: Delete.
12474 * Makefile.in (config.status): Adjust dependency on development.sh.
12475 * configure.ac: Adjust development.sh source call.
12476 * configure: Regenerate.
12478 2014-06-02 Pedro Alves <palves@redhat.com>
12480 * ax.c (gdb_free_agent_expr): New function.
12481 * ax.h (gdb_free_agent_expr): New declaration.
12482 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12484 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12486 (clear_breakpoint_conditions_and_commands): New function.
12487 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12488 (clear_breakpoint_conditions_and_commands): New declaration.
12490 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12492 * linux-aarch64-low.c (asm/ptrace.h): Include.
12494 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12496 Fix TLS access for -static -pthread.
12497 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12498 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12499 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12501 2014-05-20 Pedro Alves <palves@redhat.com>
12503 * linux-aarch64-low.c (aarch64_insert_point)
12504 (aarch64_remove_point): No longer check whether the type is
12505 supported here. Adjust to new interface.
12506 (the_low_target): Install aarch64_supports_z_point_type as
12507 supports_z_point_type method.
12508 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12509 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12510 instead of a Z packet char. Adjust.
12511 (arm_supports_z_point_type): New function.
12512 (arm_insert_point, arm_remove_point): Adjust to new interface.
12513 (the_low_target): Install arm_supports_z_point_type.
12514 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12515 (cris_insert_point, cris_remove_point): Adjust to new interface.
12516 Don't check whether the type is supported here.
12517 (the_low_target): Install cris_supports_z_point_type.
12518 * linux-low.c (linux_supports_z_point_type): New function.
12519 (linux_insert_point, linux_remove_point): Adjust to new interface.
12520 * linux-low.h (struct linux_target_ops) <insert_point,
12521 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12522 raw_breakpoint pointer parameter.
12523 <supports_z_point_type>: New method.
12524 * linux-mips-low.c (mips_supports_z_point_type): New function.
12525 (mips_insert_point, mips_remove_point): Adjust to new interface.
12526 Use mips_supports_z_point_type.
12527 (the_low_target): Install mips_supports_z_point_type.
12528 * linux-ppc-low.c (the_low_target): Install NULL as
12529 supports_z_point_type method.
12530 * linux-s390-low.c (the_low_target): Install NULL as
12531 supports_z_point_type method.
12532 * linux-sparc-low.c (the_low_target): Install NULL as
12533 supports_z_point_type method.
12534 * linux-x86-low.c (x86_supports_z_point_type): New function.
12535 (x86_insert_point): Adjust to new insert_point interface. Use
12536 insert_memory_breakpoint. Adjust to new
12537 i386_low_insert_watchpoint interface.
12538 (x86_remove_point): Adjust to remove_point interface. Use
12539 remove_memory_breakpoint. Adjust to new
12540 i386_low_remove_watchpoint interface.
12541 (the_low_target): Install x86_supports_z_point_type.
12542 * lynx-low.c (lynx_target_ops): Install NULL as
12543 supports_z_point_type callback.
12544 * nto-low.c (nto_supports_z_point_type): New.
12545 (nto_insert_point, nto_remove_point): Adjust to new interface.
12546 (nto_target_ops): Install nto_supports_z_point_type.
12547 * mem-break.c: Adjust intro comment.
12548 (struct raw_breakpoint) <raw_type, size>: New fields.
12549 <inserted>: Update comment.
12550 <shlib_disabled>: Delete field.
12551 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12552 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12553 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12554 (raw_bkpt_type_to_target_hw_bp_type): New function.
12555 (find_enabled_raw_code_breakpoint_at): New function.
12556 (find_raw_breakpoint_at): New type and size parameters. Use them.
12557 (insert_memory_breakpoint): New function, based off
12558 set_raw_breakpoint_at.
12559 (remove_memory_breakpoint): New function.
12560 (set_raw_breakpoint_at): Reimplement.
12561 (set_breakpoint): New, based on set_breakpoint_at.
12562 (set_breakpoint_at): Reimplement.
12563 (delete_raw_breakpoint): Go through the_target->remove_point
12564 instead of assuming memory breakpoints.
12565 (find_gdb_breakpoint_at): Delete.
12566 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12567 (find_gdb_breakpoint): New function.
12568 (set_gdb_breakpoint_at): Delete.
12569 (z_type_supported): New function.
12570 (set_gdb_breakpoint_1): New function, loosely based off
12571 set_gdb_breakpoint_at.
12572 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12573 (delete_gdb_breakpoint_at): Delete.
12574 (delete_gdb_breakpoint_1): New function, loosely based off
12575 delete_gdb_breakpoint_at.
12576 (delete_gdb_breakpoint): New function.
12577 (clear_gdb_breakpoint_conditions): Rename to ...
12578 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12580 (add_condition_to_breakpoint): Make static.
12581 (add_breakpoint_condition): Take a struct breakpoint pointer
12582 instead of an address. Adjust.
12583 (gdb_condition_true_at_breakpoint): Rename to ...
12584 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12586 (gdb_condition_true_at_breakpoint): Reimplement.
12587 (add_breakpoint_commands): Take a struct breakpoint pointer
12588 instead of an address. Adjust.
12589 (gdb_no_commands_at_breakpoint): Rename to ...
12590 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12591 parameter. Return true if no breakpoint was found. Change debug
12593 (gdb_no_commands_at_breakpoint): Reimplement.
12594 (run_breakpoint_commands): Rename to ...
12595 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12596 and change return type to boolean.
12597 (run_breakpoint_commands): New function.
12598 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12599 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12600 breakpoint. Go through the_target->remove_point instead of
12601 assuming memory breakpoint.
12602 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12603 software and hardware breakpoints.
12604 (reinsert_raw_breakpoint): Go through the_target->insert_point
12605 instead of assuming memory breakpoint.
12606 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12607 software and hardware breakpoints.
12608 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12609 Check both software and hardware breakpoints.
12610 (validate_inserted_breakpoint): Assert the breakpoint is a
12611 software breakpoint. Set the inserted flag to -1 instead of
12612 setting shlib_disabled.
12613 (delete_disabled_breakpoints): Adjust.
12614 (validate_breakpoints): Only validate software breakpoints.
12615 Adjust to inserted flag change.
12616 (check_mem_read, check_mem_write): Skip breakpoint types other
12617 than software breakpoints. Adjust to inserted flag change.
12618 * mem-break.h (enum raw_bkpt_type): New enum.
12619 (raw_breakpoint, struct process_info): Forward declare.
12620 (Z_packet_to_target_hw_bp_type): Delete declaration.
12621 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12622 (set_gdb_breakpoint, delete_gdb_breakpoint)
12623 (clear_breakpoint_conditions): New declarations.
12624 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12625 (breakpoint_inserted_here): Update comment.
12626 (add_breakpoint_condition, add_breakpoint_commands): Replace
12627 address parameter with a breakpoint pointer parameter.
12628 (gdb_breakpoint_here): Update comment.
12629 (delete_gdb_breakpoint_at): Delete.
12630 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12631 * server.c (process_point_options): Take a struct breakpoint
12632 pointer instead of an address. Adjust.
12633 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12634 delete_gdb_breakpoint.
12635 * spu-low.c (spu_target_ops): Install NULL as
12636 supports_z_point_type method.
12637 * target.h: Include mem-break.h.
12638 (struct target_ops) <prepare_to_access_memory>: Update comment.
12639 <supports_z_point_type>: New field.
12640 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12641 instead of a char. Also take a raw breakpoint pointer.
12642 * win32-arm-low.c (the_low_target): Install NULL as
12643 supports_z_point_type.
12644 * win32-i386-low.c (i386_supports_z_point_type): New function.
12645 (i386_insert_point, i386_remove_point): Adjust to new interface.
12646 (the_low_target): Install i386_supports_z_point_type.
12647 * win32-low.c (win32_supports_z_point_type): New function.
12648 (win32_insert_point, win32_remove_point): Adjust to new interface.
12649 (win32_target_ops): Install win32_supports_z_point_type.
12650 * win32-low.h (struct win32_target_ops):
12651 <supports_z_point_type>: New method.
12652 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12653 instead of a char. Also take a raw breakpoint pointer.
12655 2014-05-20 Pedro Alves <palves@redhat.com>
12657 * mem-break.h: Include break-common.h.
12658 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12659 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12660 (Z_packet_to_target_hw_bp_type): New declaration.
12661 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12662 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12663 (Z_PACKET_ACCESS_WP): Delete macros.
12664 (Z_packet_to_hw_type): Delete function.
12665 * i386-low.h: Don't include break-common.h here.
12666 (Z_packet_to_hw_type): Delete declaration.
12667 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12668 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12669 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12670 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12671 * linux-aarch64-low.c: Don't include break-common.h here.
12672 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12673 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12674 (Z_packet_to_target_hw_bp_type): Delete function.
12675 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12677 (mips_insert_point, mips_remove_point): Use
12678 Z_packet_to_target_hw_bp_type.
12680 2014-05-20 Pedro Alves <palves@redhat.com>
12682 * linux-aarch64-low.c: Include break-common.h.
12683 (enum target_point_type): Delete.
12684 (Z_packet_to_point_type): Rename to ...
12685 (Z_packet_to_target_hw_bp_type): ... this, and return a
12686 target_hw_bp_type instead.
12687 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12688 instead of an enum target_point_type.
12689 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12691 (aarch64_dr_state_insert_one_point)
12692 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12693 (aarch64_handle_aligned_watchpoint)
12694 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12695 Take an enum target_hw_bp_type instead of an enum
12697 (aarch64_supports_z_point_type): New function.
12698 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12699 use Z_packet_to_target_hw_bp_type.
12701 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12703 * configure.ac: Only use -Werror by default when DEVELOPMENT
12705 * configure: Regenerate.
12707 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12709 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12710 * linux-x86-low.c (X86_64_USER_REGS): New.
12711 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12713 2014-04-28 Yao Qi <yao@codesourcery.com>
12715 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12718 2014-04-25 Pedro Alves <palves@redhat.com>
12721 * linux-low.c (linux_attach_fail_reason_string): New function.
12722 (linux_attach_lwp): Delete.
12723 (linux_attach_lwp_1): Rename to ...
12724 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12725 argument. Remove "initial" parameter. Return int instead of
12726 void. Don't error or warn here.
12727 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12728 failure to attach to the tgid. Call warning when failing to
12730 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12731 argument. Remove "initial" parameter. Return int instead of
12732 void. Don't error or warn here.
12733 (linux_attach_fail_reason_string): New declaration.
12734 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12735 interface change. Use linux_attach_fail_reason_string.
12737 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12738 Walfred Tedeschi <walfred.tedeschi@intel.com>
12740 * Makefile.in: Added rules to handle new files
12741 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12742 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12743 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12744 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12745 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12746 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12747 x32-avx512-linux.o.
12748 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12749 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12750 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12751 i386/x32-avx512.xml.
12752 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12753 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12754 i386/x32-avx512-linux.xml.
12755 * i387-fp.c (num_avx512_k_registers): New constant for number
12757 (num_avx512_zmmh_low_registers): New constant for number of
12758 lower ZMM registers (0-15).
12759 (num_avx512_zmmh_high_registers): New constant for number of
12760 higher ZMM registers (16-31).
12761 (num_avx512_ymmh_registers): New contant for number of higher
12762 YMM registers (ymm16-31 added by avx521 on x86_64).
12763 (num_avx512_xmm_registers): New constant for number of higher
12764 XMM registers (xmm16-31 added by AVX512 on x86_64).
12765 (struct i387_xsave): Add space for AVX512 registers.
12766 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12767 Add code to handle AVX512 registers.
12768 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12769 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12770 prototypei from generated file.
12771 (tdesc_amd64_avx512_linux): Likewise.
12772 (init_registers_x32_avx512_linux): Likewise.
12773 (tdesc_x32_avx512_linux): Likewise.
12774 (init_registers_i386_avx512_linux): Likewise.
12775 (tdesc_i386_avx512_linux): Likewise.
12776 (x86_64_regmap): Add AVX512 registers.
12777 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12779 (initialize_low_arch): Add code to initialize AVX512 registers.
12781 2014-04-23 Pedro Alves <palves@redhat.com>
12783 * mem-break.c (find_gdb_breakpoint_at): Make static.
12784 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12786 2014-04-23 Pedro Alves <palves@redhat.com>
12788 * i386-low.c: Don't include break-common.h here.
12789 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12790 prototype to take target_hw_bp_type as argument instead of a Z
12792 * i386-low.h: Include break-common.h here.
12793 (Z_packet_to_hw_type): Declare.
12794 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12796 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12797 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12798 (x86_remove_point): Convert the packet number to a
12799 target_hw_bp_type before calling i386_low_remove_watchpoint.
12800 * win32-i386-low.c (i386_insert_point): Convert the packet number
12801 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12802 (i386_remove_point): Convert the packet number to a
12803 target_hw_bp_type before calling i386_low_remove_watchpoint.
12805 2014-04-23 Pedro Alves <palves@redhat.com>
12807 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12809 2014-04-10 Pedro Alves <palves@redhat.com>
12811 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12812 Check if the condition or command is NULL before checking if the
12813 breakpoint is known. On success, return true.
12814 * mem-break.h (add_breakpoint_condition): Document return.
12815 (add_breakpoint_commands): Add describing comment.
12816 * server.c (skip_to_semicolon): New function.
12817 (process_point_options): Use it.
12819 2014-04-09 Pedro Alves <palves@redhat.com>
12821 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12824 2014-02-27 Pedro Alves <palves@redhat.com>
12827 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12829 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12831 (last_thread_of_process_p): Take a PID argument instead of a
12833 (linux_wait_for_lwp): Delete.
12834 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12836 (linux_low_filter_event): New function, party factored out from
12837 linux_wait_for_event.
12838 (linux_wait_for_event): Rename to ...
12839 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12840 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12841 sigsuspend. Check for zombie leaders.
12842 (linux_wait_for_event): Reimplement as wrapper around
12843 linux_wait_for_event_filtered.
12844 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12845 a normal or signal exit is seen, it's the whole process exiting.
12846 (wait_for_sigstop): No longer a for_each_inferior callback.
12847 Rewrite on top of linux_wait_for_event_filtered.
12848 (stop_all_lwps): Call wait_for_sigstop directly.
12849 * server.c (resume, handle_target_event): Handle
12850 TARGET_WAITKIND_NO_RESUMED.
12852 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12854 * win32-low.c (psapi_get_dll_name,
12855 * win32_CreateToolhelp32Snapshot): Delete.
12856 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12857 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12859 (handle_load_dll): Add function description.
12860 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12862 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12864 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12866 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12867 base address when calling win32_add_one_solib.
12868 (handle_load_dll): Delete local variable load_addr.
12869 Remove 0x1000 offset applied to DLL base address when calling
12870 win32_add_one_solib.
12871 (handle_unload_dll): Add comment.
12873 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12875 * win32-low.c (win32_add_all_dlls): Renames
12876 win32_ensure_ntdll_loaded. Rewrite function documentation.
12877 Adjust implementation to always load all DLLs.
12878 Add 0x1000 offset to DLL base address when calling
12879 win32_add_one_solib.
12880 (child_initialization_done): New static global.
12881 (do_initial_child_stuff): Set child_initialization_done to
12882 zero during child initialization, and 1 after. Replace call
12883 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12885 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12886 (handle_unload_dll): Add function documentation.
12887 (get_child_debug_event): Ignore load and unload DLL events
12888 during child initialization.
12890 2014-02-20 Doug Evans <dje@google.com>
12892 Remove global all_lwps.
12893 * inferiors.h (ptid_of): Move here from linux-low.h.
12894 (pid_of, lwpid_of): Ditto.
12895 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12896 parameter is a struct thread_info * now.
12897 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12898 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12899 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12901 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12902 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12903 * linux-arm-low.c (update_registers_callback): Update, "entry"
12904 parameter is a struct thread_info * now.
12905 Fetch lwpid from current_inferior directly.
12906 (arm_insert_point): Pass &all_threads to find_inferior instead of
12908 (arm_remove_point): Ditto.
12909 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12910 (arm_prepare_to_resume): Fetch pid from thread.
12911 (arm_read_description): Fetch lwpid from current_inferior directly.
12912 * linux-low.c (all_lwps): Delete.
12913 (delete_lwp): Delete call to remove_inferior.
12914 (handle_extended_wait): Fetch lwpid from thread.
12915 (add_lwp): Don't set lwp->entry.id. Remove call to
12916 add_inferior_to_list.
12917 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12918 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12919 (kill_one_lwp_callback): Ditto.
12920 (linux_kill): Don't dereference NULL pointer.
12921 Fetch ptid,lwpid from thread.
12922 (get_detach_signal): Fetch ptid from thread.
12923 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12924 Simplify call to regcache_invalidate_thread.
12925 (delete_lwp_callback): Update, "entry" parameter is a
12926 struct thread_info * now. Fetch pid from thread.
12927 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12928 (status_pending_p_callback): Update, "entry" parameter is a
12929 struct thread_info * now. Fetch ptid from thread.
12930 (find_lwp_pid): Update, "entry" parameter is a
12931 struct thread_info * now.
12932 (linux_wait_for_lwp): Fetch pid from thread.
12933 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12934 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12935 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12936 (dequeue_one_deferred_signal): Ditto.
12937 (cancel_breakpoint): Fetch ptid from current_inferior.
12938 (linux_wait_for_event): Pass &all_threads to find_inferior,
12939 not &all_lwps. Fetch ptid, lwpid from thread.
12940 (count_events_callback): Update, "entry" parameter is a
12941 struct thread_info * now.
12942 (select_singlestep_lwp_callback): Ditto.
12943 (select_event_lwp_callback): Ditto.
12944 (cancel_breakpoints_callback): Ditto.
12945 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12947 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12948 (unsuspend_one_lwp): Update, "entry" parameter is a
12949 struct thread_info * now.
12950 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12952 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12953 Fetch lwpid from thread, not lwp.
12954 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12955 Pass &all_threads to find_inferior, not &all_lwps.
12956 (send_sigstop): Fetch lwpid from thread, not lwp.
12957 (send_sigstop_callback): Update, "entry" parameter is a
12958 struct thread_info * now.
12959 (suspend_and_send_sigstop_callback): Ditto.
12960 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12961 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12962 struct thread_info * now.
12963 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12965 (lwp_running): Update, "entry" parameter is a
12966 struct thread_info * now.
12967 (stop_all_lwps): Fetch ptid from thread.
12968 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12969 (linux_resume_one_lwp): Fetch lwpid from thread.
12970 (linux_set_resume_request): Update, "entry" parameter is a
12971 struct thread_info * now. Fetch pid, lwpid from thread.
12972 (resume_status_pending_p): Update, "entry" parameter is a
12973 struct thread_info * now.
12974 (need_step_over_p): Ditto. Fetch lwpid from thread.
12975 (start_step_over): Fetch lwpid from thread.
12976 (linux_resume_one_thread): Update, "entry" parameter is a
12977 struct thread_info * now. Fetch lwpid from thread.
12978 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12979 (proceed_one_lwp): Update, "entry" parameter is a
12980 struct thread_info * now. Fetch lwpid from thread.
12981 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12982 struct thread_info * now.
12983 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12984 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12985 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12987 (regsets_store_inferior_registers): Ditto.
12988 (fetch_register, store_register): Ditto.
12989 (linux_read_memory, linux_write_memory): Ditto.
12990 (linux_request_interrupt): Ditto.
12991 (linux_read_auxv): Ditto.
12992 (linux_xfer_siginfo): Ditto.
12993 (linux_qxfer_spu): Ditto.
12994 (linux_qxfer_libraries_svr4): Ditto.
12995 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12996 moved to inferiors.h.
12998 (get_thread_lwp): Update.
12999 (struct lwp_info): Delete member "entry". Simplify comment for
13001 (all_lwps): Delete.
13002 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13003 current_inferior directly.
13004 (update_watch_registers_callback): Update, "entry" parameter is a
13005 struct thread_info * now. Fetch pid from thread.
13006 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13007 (mips_insert_point): Fetch lwpid from current_inferior.
13008 Pass &all_threads to find_inferior, not &all_lwps.
13009 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13010 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13012 (mips_stopped_data_address): Ditto.
13013 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13015 * linux-tile-low.c (tile_arch_setup): Ditto.
13016 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13017 (update_debug_registers_callback): Update, "entry" parameter is a
13018 struct thread_info * now. Fetch pid from thread.
13019 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13020 Pass &all_threads to find_inferior, not &all_lwps.
13021 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13022 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13023 Pass &all_threads to find_inferior, not &all_lwps.
13024 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13025 (i386_dr_low_get_status): Ditto.
13026 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13027 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13028 (x86_linux_read_description): Ditto.
13029 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13031 2014-02-20 Doug Evans <dje@google.com>
13033 * inferiors.c (get_first_inferior): Fix buglet.
13035 2014-02-19 Doug Evans <dje@google.com>
13037 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13038 * inferiors.c (add_thread): Change result type to struct thread_info *.
13039 All callers updated.
13040 (add_lwp): Call add_thread here instead of in callers.
13041 All callers updated.
13042 * linux-low.h (get_lwp_thread): Rewrite.
13043 (struct lwp_info): New member "thread".
13045 2014-02-19 Doug Evans <dje@google.com>
13047 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13048 All callers updated.
13050 2014-02-19 Doug Evans <dje@google.com>
13052 * inferiors.c (add_thread): Fix whitespace.
13054 2014-02-19 Doug Evans <dje@google.com>
13056 * dll.c (clear_dlls): Replace accessing list implemention details
13058 * gdbthread.h (get_first_thread): Declare.
13059 * inferiors.c (for_each_inferior_with_data): New function.
13060 (get_first_thread): New function.
13061 (find_thread_ptid): Simplify.
13062 (get_first_inferior): New function.
13063 (clear_list): Delete.
13064 (one_inferior_p): New function.
13065 (clear_inferior_list): New function.
13066 (clear_inferiors): Update.
13067 * inferiors.h (for_each_inferior_with_data): Declare.
13068 (clear_inferior_list): Declare.
13069 (one_inferior_p): Declare.
13070 (get_first_inferior): Declare.
13071 * linux-low.c (linux_wait_for_event): Replace accessing list
13072 implemention details with API function.
13073 * server.c (target_running): Ditto.
13074 (accumulate_file_name_length): New function.
13075 (emit_dll_description): New function.
13076 (handle_qxfer_libraries): Replace accessing list implemention
13077 details with API function.
13078 (handle_qxfer_threads_worker): New function.
13079 (handle_qxfer_threads_proper): Replace accessing list implemention
13080 details with API function.
13081 (handle_query): Ditto.
13082 (visit_actioned_threads_callback_ftype): New typedef.
13083 (visit_actioned_threads_data): New struct.
13084 (visit_actioned_threads): Rewrite to be find_inferior callback.
13085 (resume): Call find_inferior.
13086 (handle_status): Replace accessing list implemention
13087 details with API function.
13088 (process_serial_event): Replace accessing list implemention details
13090 * target.c (set_desired_inferior): Replace accessing list implemention
13091 details with API function.
13092 * tracepoint.c (same_process_p): New function.
13093 (gdb_agent_about_to_close): Replace accessing list implemention
13094 details with API function.
13095 * win32-low.c (child_delete_thread): Replace accessing list
13096 implemention details with API function.
13097 (match_dll_by_basename): New function.
13098 (dll_is_loaded_by_basename): New function.
13099 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13100 details call to dll_is_loaded_by_basename.
13102 2014-02-19 Doug Evans <dje@google.com>
13104 * dll.h (struct dll_info): Add comment.
13105 * gdbthread.h (struct thread_info): Add comment.
13106 (current_ptid): Simplify.
13107 * inferiors.c (add_process): Update.
13108 (remove_process): Update.
13109 * inferiors.h (struct process_info): Rename member "head" to "entry".
13110 * linux-low.c (delete_lwp): Update.
13112 (last_thread_of_process_p): Update.
13113 (kill_one_lwp_callback, linux_kill): Update.
13114 (status_pending_p_callback): Update.
13115 (wait_for_sigstop): Update. Simplify read of ptid.
13116 (start_step_over): Update.
13117 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13118 (get_lwp_thread): Update.
13119 (struct lwp_info): Rename member "head" to "entry".
13120 * regcache.h (inferior_list_entry): Delete.
13121 * server.c (kill_inferior_callback): Update.
13122 (detach_or_kill_inferior_callback): Update.
13123 (print_started_pid): Update.
13124 (print_attached_pid): Update.
13125 (process_serial_event): Simplify read of ptid.
13126 * thread-db.c (thread_db_create_event): Update.
13127 (thread_db_get_tls_address): Update.
13128 * win32-low.c (current_inferior_ptid): Simplify.
13130 2014-02-19 Tom Tromey <tromey@redhat.com>
13132 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13134 (target_supports_btrace): Update.
13136 2014-02-14 Yao Qi <yao@codesourcery.com>
13138 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13139 (rsp-low-ipa.o): New target.
13141 2014-02-12 Tom Tromey <tromey@redhat.com>
13143 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13144 convert_ascii_to_int.
13145 * regcache.c (registers_to_string): Likewise.
13146 * remote-utils.c (decode_M_packet): Likewise.
13147 * server.c (process_serial_event): Likewise.
13149 2014-02-12 Tom Tromey <tromey@redhat.com>
13151 * server.c (handle_query, handle_v_run): Use hex2bin, not
13153 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13155 2014-02-12 Tom Tromey <tromey@redhat.com>
13157 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13158 convert_int_to_ascii.
13159 * regcache.c (registers_to_string, collect_register_as_string):
13161 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13163 * server.c (process_serial_event): Likewise.
13164 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13165 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13167 2014-02-12 Tom Tromey <tromey@redhat.com>
13169 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13170 bin2hex, not hexify.
13171 * tracepoint.c (cmd_qtstatus): Likewise.
13173 2014-02-12 Tom Tromey <tromey@redhat.com>
13175 * remote-utils.c (monitor_output): Pass explicit length to
13178 2014-02-12 Tom Tromey <tromey@redhat.com>
13180 * tracepoint.c: Include rsp-low.h.
13181 * server.c: Include rsp-low.h.
13182 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13183 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13185 * remote-utils.c: Include rsp-low.h.
13186 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13187 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13188 (convert_int_to_ascii, convert_ascii_to_int): Move to
13190 * regcache.c: Include rsp-low.h.
13191 * ax.c: Include rsp-low.h.
13192 * Makefile.in (SFILES): Add common/rsp-low.c.
13193 (OBS): Add rsp-low.o.
13194 (rsp-low.o): New target.
13196 2014-02-12 Tom Tromey <tromey@redhat.com>
13198 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13199 Include print-utils.h.
13200 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13201 (plongest, thirty_two, phex_nz): Remove.
13202 * Makefile.in (SFILES): Add common/print-utils.c.
13203 (OBS): Add print-utils.o.
13204 (print-utils-ipa.o): New target.
13205 (print-utils.o): New target.
13206 (IPA_OBJS): Add print-utils-ipa.o.
13208 2014-02-06 Tom Tromey <tromey@redhat.com>
13210 * Makefile.in (SFILES): Fix indentation.
13212 2014-02-05 Doug Evans <dje@google.com>
13214 * linux-low.c (linux_wait_for_event): Improve comment.
13215 (linux_wait_1): Keep current_inferior in sync with event_child.
13217 2014-01-22 Doug Evans <dje@google.com>
13219 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13221 2014-01-22 Doug Evans <dje@google.com>
13223 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13224 * configure: Regenerate.
13225 * config.in: Regenerate.
13226 * Makefile.in (SFILES): Add debug.c.
13227 (OBS): Add debug.o.
13228 * debug.c: New file.
13229 * debug.h: New file.
13230 * linux-aarch64-low.c (*): Update all debugging printfs to use
13231 debug_printf instead of fprintf.
13232 * linux-arm-low.c (*): Ditto.
13233 * linux-cris-low.c (*): Ditto.
13234 * linux-crisv32-low.c (*): Ditto.
13235 * linux-m32r-low.c (*): Ditto.
13236 * linux-sparc-low.c (*): Ditto.
13237 * linux-x86.c (*): Ditto.
13238 * linux-low.c (*): Ditto.
13239 (linux_wait_1): Add calls to debug_enter, debug_exit.
13240 (linux_wait): Remove redundant debugging printf.
13241 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13242 (linux_resume, unstop_all_lwps): Ditto.
13243 * mem-break.c (*): Update all debugging printfs to use
13244 debug_printf instead of fprintf.
13245 * remote-utils.c (*): Ditto.
13246 * thread-db.c (*): Ditto.
13247 * server.c #include <ctype.h>, "gdb_vecs.h".
13248 (debug_threads): Moved to debug.c.
13249 (*): Update all debugging printfs to use debug_printf instead of
13251 (start_inferior): Replace call to fflush with call to debug_flush.
13252 (monitor_show_help): Mention set debug-format.
13253 (parse_debug_format_options): New function.
13254 (handle_monitor_command): Handle "monitor set debug-format".
13255 (gdbserver_usage): Mention --debug-format.
13256 (main): Parse --debug-format.
13257 * server.h (debug_threads): Declaration moved to debug.h.
13258 #include "debug.h".
13259 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13260 trace_debug_1 that uses debug_printf.
13261 (tracepoint_look_up_symbols): Update all debugging printfs to use
13262 debug_printf instead of fprintf.
13264 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13266 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13269 2014-01-17 Pedro Alves <palves@redhat.com>
13272 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13273 defined after including gdb_proc_service.h.
13275 2014-01-16 Doug Evans <dje@google.com>
13277 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13278 (match_dll): Use it.
13280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13282 * target.h (target_ops) <read_btrace>: Change parameters and
13283 return type to allow error reporting.
13284 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13285 trace reading errors on.
13286 * linux-low.c (linux_low_read_btrace): Pass trace reading
13288 (linux_low_disable_btrace): New.
13290 2014-01-15 Doug Evans <dje@google.com>
13292 * inferiors.c (thread_id_to_gdb_id): Delete.
13293 * inferiors.h (thread_id_to_gdb_id): Delete.
13295 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13297 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13298 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13301 2014-01-08 Pedro Alves <palves@redhat.com>
13303 * server.c (handle_status): Don't discard previous queued stop
13304 replies or thread's pending status here.
13305 (main) <disconnection>: Do it here instead.
13307 2014-01-08 Pedro Alves <palves@redhat.com>
13309 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13310 * server.c (visit_actioned_threads, handle_pending_status): New
13312 (handle_v_cont): Factor out parts to ...
13313 (resume): ... this new function. If in all-stop, and a thread
13314 being resumed has a pending status, report it without actually
13316 (myresume): Adjust to use the new 'resume' function.
13317 (clear_pending_status_callback, set_pending_status_callback)
13318 (find_status_pending_thread_callback): New functions.
13319 (handle_status): Handle the case of multiple threads having
13320 interesting statuses to report. Report threads' real last signal
13321 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13322 with an interesting thread to report the status for, instead of
13323 always reporting the status of the first thread.
13325 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13327 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13328 * gdbreplay.c (gdbreplay_version): Likewise.
13330 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13332 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13333 iov.iov_len with the real length in use.
13335 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13337 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13338 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13339 for all targets that use win32-low.c.
13340 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13341 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13343 2013-12-13 Pedro Alves <palves@redhat.com>
13345 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13346 if equal to TARGET_WAITKIND_LOADED.
13347 * win32-low.c (cached_status): New static global.
13348 (win32_wait): Add declaration.
13349 (do_initial_child_stuff): Flush all initial pending debug events
13350 up to the initial breakpoint.
13351 (win32_wait): If CACHED_STATUS was set, return that instead
13352 of doing a real wait. Remove the code resuming the execution
13353 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13354 during the initial phase. Also remove the code changing
13355 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13356 TARGET_WAITKIND_STOPPED.
13358 2013-12-11 Yao Qi <yao@codesourcery.com>
13360 * notif.c (handle_notif_ack): Return 0 if no notification
13363 2013-11-20 Doug Evans <dje@google.com>
13365 * linux-low.c (linux_set_resume_request): Fix comment.
13367 2013-11-20 Doug Evans <dje@google.com>
13369 * linux-low.c (resume_status_pending_p): Tweak comment.
13371 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13373 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13374 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13375 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13376 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13377 (srv_amd64_regobj): Add amd64-mpx.o.
13378 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13379 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13380 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13381 * i387-fp.c (num_pl_bnd_register) Added constant.
13382 (num_pl_bnd_cfg_registers) Added constant.
13383 (struct i387_xsave) Added reserved area and MPX fields.
13384 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13385 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13387 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13388 (init_registers_amd64_mpx_linux): Declare new function.
13389 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13390 (x86_64_regmap): Add MPX registers.
13391 (x86_linux_read_description): Add MPX case.
13392 (initialize_low_arch): Initialize MPX targets.
13394 2013-11-18 Tom Tromey <tromey@redhat.com>
13396 * configure: Rebuild.
13397 * configure.ac: Don't check for stdlib.h.
13398 * gdbreplay.c: Unconditionally include stdlib.h.
13400 2013-11-18 Tom Tromey <tromey@redhat.com>
13402 * config.in: Rebuild.
13403 * configure: Rebuild.
13404 * configure.ac: Don't use AC_HEADER_DIRENT.
13406 2013-11-18 Tom Tromey <tromey@redhat.com>
13408 * server.h: Don't check HAVE_STRING_H.
13409 * gdbreplay.c: Don't check HAVE_STRING_H.
13410 * configure: Rebuild.
13412 2013-11-18 Tom Tromey <tromey@redhat.com>
13414 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13417 2013-11-08 Tom Tromey <tromey@redhat.com>
13419 * configure, config.in: Rebuild.
13420 * configure.ac: Remove unused configury.
13422 2013-11-08 Tom Tromey <tromey@redhat.com>
13424 * acinclude.m4: Include common.m4, codeset.m4.
13425 * configure, config.in: Rebuild.
13426 * configure.ac: Use GDB_AC_COMMON.
13428 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13430 * linux-s390-low.c (HWCAP_S390_TE): New define.
13431 (s390_arch_setup): Consider the TE field in the HWCAP for
13432 determining 'have_regset_tdb'.
13434 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13437 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13440 2013-10-02 Pedro Alves <palves@redhat.com>
13442 * server.c (process_serial_event): Don't output "GDBserver
13443 exiting" if GDB is connected through stdio.
13444 * target.c (mywait): Likewise, be silent if GDB is connected
13447 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13449 * lynx-low.c (lynx_add_threads_after_attach): New function.
13450 (lynx_attach): Remove call to add_thread. Add call to
13451 lynx_add_threads_after_attach instead.
13453 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13455 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13456 * config.in, configure: Regenerated.
13458 2013-09-18 Yao Qi <yao@codesourcery.com>
13461 * server.c (start_inferior): Clear 'resume_info'.
13463 2013-09-16 Jiong Wang <jiwang@tilera.com>
13465 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13468 2013-09-16 Jiong Wang <jiwang@tilera.com>
13470 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13471 linux-tile-low.o to srv_tgtobj.
13473 2013-09-16 Will Newton <will.newton@linaro.org>
13475 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13478 2013-09-06 Pedro Alves <palves@redhat.com>
13480 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13481 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13482 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13483 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13484 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13485 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13487 2013-09-06 Pedro Alves <palves@redhat.com>
13489 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13490 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13492 2013-09-06 Pedro Alves <palves@redhat.com>
13494 * linux-amd64-ipa.c: Include tracepoint.h.
13495 * linux-i386-ipa.c: Include tracepoint.h.
13497 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13499 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13500 (ps_get_thread_area): New function.
13502 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13504 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13505 (initialize_low_arch): Call init_registers_crisv32 rather than
13506 init_register_crisv32.
13508 2013-09-05 Pedro Alves <palves@redhat.com>
13510 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13512 * hostio.h: ... this new file.
13513 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13514 win32-low.c: Include hostio.h.
13516 2013-09-05 Pedro Alves <palves@redhat.com>
13518 * server.h (gdb_client_data, handler_func, callback_handler_func)
13519 (delete_file_handler, add_file_handler, append_callback_event)
13520 (delete_callback_event, start_event_loop, initialize_event_loop):
13521 Move to event-loop.h and include it.
13522 * event-loop.h: New file.
13524 2013-09-05 Pedro Alves <palves@redhat.com>
13526 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13527 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13528 (loaded_dll, unloaded_dll): Move to ...
13529 * dll.h: ... this new file.
13530 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13532 2013-09-05 Pedro Alves <palves@redhat.com>
13534 * server.h (current_process, get_thread_process, all_processes)
13535 (add_inferior_to_list, for_each_inferior, current_inferior)
13536 (remove_inferior, add_process, remove_process, find_process_pid)
13537 (have_started_inferiors_p, have_attached_inferiors_p)
13538 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13539 (clear_inferiors, find_inferior, find_inferior_id)
13540 (inferior_target_data, set_inferior_target_data)
13541 (inferior_regcache_data, set_inferior_regcache_data): Move to
13542 inferiors.h, and include it.
13543 * inferiors.h: New file.
13545 2013-09-05 Pedro Alves <palves@redhat.com>
13547 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13551 2013-09-05 Pedro Alves <palves@redhat.com>
13553 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13555 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13556 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13557 (handle_tracepoint_general_set, handle_tracepoint_query)
13558 (tracepoint_finished_step, tracepoint_was_hit)
13559 (release_while_stepping_state_list, current_traceframe)
13560 (in_readonly_region, traceframe_read_mem)
13561 (fetch_traceframe_registers, traceframe_read_sdata)
13562 (traceframe_read_info, struct fast_tpoint_collect_status)
13563 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13564 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13565 (supply_fast_tracepoint_registers)
13566 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13567 (ipa_tdesc, claim_trampoline_space)
13568 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13569 (agent_mem_read, agent_get_trace_state_variable_value)
13570 (agent_set_trace_state_variable_value, agent_tsv_read)
13571 (agent_mem_read_string, get_raw_reg_func_addr)
13572 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13573 * tracepoint.h: ... this new file.
13575 2013-09-05 Pedro Alves <palves@redhat.com>
13577 * server.h (perror_with_name, error, fatal, warning, paddress)
13578 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13580 * utils.h: New file.
13582 2013-09-05 Pedro Alves <palves@redhat.com>
13584 * server.h (remote_debug, noack_mode, transport_is_reliable)
13585 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13586 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13587 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13588 (write_enn, initialize_async_io, enable_async_io)
13589 (disable_async_io, check_remote_input_interrupt_request)
13590 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13591 (dead_thread_notify, prepare_resume_reply)
13592 (decode_address_to_semicolon, decode_address, decode_m_packet)
13593 (decode_M_packet, decode_X_packet, decode_xfer_write)
13594 (decode_search_memory_packet, unhexify, hexify)
13595 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13596 (look_up_one_symbol, relocate_instruction)
13597 (monitor_output): Move to remote-utils.h, and include it.
13598 * remote-utils.h: New file.
13600 2013-09-05 Pedro Alves <palves@redhat.com>
13602 * server.h (_): Delete.
13604 2013-09-02 Pedro Alves <palves@redhat.com>
13606 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13607 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13609 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13611 2013-09-02 Pierre Muller <muller@sourceware.org>
13613 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13614 or WriteProcessMemory complete successfully and handle
13615 ERROR_PARTIAL_COPY error.
13617 2013-09-02 Pedro Alves <palves@redhat.com>
13619 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13620 error instead of EIO.
13622 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13625 * linux-low.c: Include filestuff.h.
13626 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13627 * lynx-low.c: Include filestuff.h.
13628 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13629 * server.c: Include filestuff.h.
13630 (main): Call notice_open_fds.
13631 * spu-low.c: Include filestuff.h.
13632 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13634 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13636 * Makefile.in: Explain why ../target and ../nat are not
13637 listed as include file search paths.
13638 (linux-waitpid.o): New object file rule.
13639 * configure.srv (srv_native_linux_obj): New variable.
13640 Replace all occurrences of linux native object files with
13641 $srv_native_linux_obj.
13642 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13643 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13644 (linux_enable_event_reporting): Remove declaration.
13645 (my_waitpid): Moved to common/linux-waitpid.c.
13646 (linux_wait_for_event): Pass ptid when calling
13647 linux_enable_event_reporting.
13648 (linux_supports_tracefork_flag): Remove.
13649 (linux_enable_event_reporting): Likewise.
13650 (linux_tracefork_grandchild): Remove.
13651 (STACK_SIZE): Moved to common/linux-ptrace.c.
13652 (linux_tracefork_child): Remove.
13653 (linux_test_for_tracefork): Remove.
13654 (linux_look_up_symbols): Call linux_supports_traceclone.
13655 (initialize_low): Remove call to linux_test_for_tracefork.
13656 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13657 common/linux-ptrace.h.
13658 (PTRACE_TYPE_ARG4): Likewise.
13659 Include linux-ptrace.h.
13661 2013-08-21 Pedro Alves <palves@redhat.com>
13663 * config.in: Renegerate.
13665 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13667 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13668 (SFILES): Remove $(srcdir)/common/target-common.c and
13669 add $(srcdir)/target/waitstatus.c.
13670 (OBS): Remove target-common.o and add waitstatus.o.
13671 (server_h): Remove $(srcdir)/../common/target-common.h and
13672 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13673 and $(srcdir)/../target/waitstatus.h.
13674 (target-common.o): Remove.
13675 (waitstatus.o): New target object file.
13676 * target.h: Do not include target-common.h and
13677 include target/resume.h, target/wait.h and
13678 target/waitstatus.h.
13680 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13682 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13683 to PTRACE_TYPE_ARG3.
13684 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13685 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13687 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13688 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13690 2013-07-27 Jie Zhang <jie@codesourcery.com>
13691 Daniel Jacobowitz <dan@codesourcery.com>
13692 Yao Qi <yao@codesourcery.com>
13694 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13695 (mips-linux-watch.o): New rule.
13696 (mips_linux_watch_h): New variable.
13697 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13699 * linux-mips-low.c: Include mips-linux-watch.h.
13700 (struct arch_process_info, struct arch_lwp_info): New.
13701 (update_watch_registers_callback): New function.
13702 (mips_linux_new_process, mips_linux_new_thread) New functions.
13703 (mips_linux_prepare_to_resume, mips_insert_point): New
13705 (mips_remove_point, mips_stopped_by_watchpoint): New
13707 (rsp_bp_type_to_target_hw_bp_type): New function.
13708 (mips_stopped_data_address): New function.
13709 (the_low_target): Add watchpoint support functions.
13711 2013-07-27 Yao Qi <yao@codesourcery.com>
13713 * i386-low.c: Include break-common.h.
13714 (enum target_hw_bp_type): Remove.
13716 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13718 * Makefile.in (SFILES): /common/target-common.c.
13719 (OBS): Add target-common.o.
13720 (server_h): Add $(srcdir)/../common/target-common.h.
13721 (target-common.o): New target.
13722 * server.c (queue_stop_reply_callback): Free
13723 status string after use.
13724 * target.c (target_waitstatus_to_string): Remove.
13725 * target.h: Include target-common.h.
13726 (resume_kind): Likewise.
13727 (target_waitkind): Likewise.
13728 (target_waitstatus): Likewise.
13729 (TARGET_WNOHANG): Likewise.
13731 2013-07-04 Yao Qi <yao@codesourcery.com>
13733 * Makefile.in (host_alias): Use @host_noncanonical@.
13734 (target_alias): Use @target_noncanonical@.
13735 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13736 ACX_NONCANONICAL_HOST.
13737 * configure: Regenerated.
13740 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13742 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13743 * configure: Rebuild.
13744 * Makefile.in (version_host, version_target): Get from configure.
13745 (version.c): Use $(version_host) and $(version_target).
13747 2013-07-03 Pedro Alves <palves@redhat.com>
13749 * Makefile.in (config.status): Depend on development.sh.
13750 * acinclude.m4: Include libmcheck.m4.
13751 * configure: Regenerate.
13753 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13755 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13756 attribute inside the parentheses.
13757 (winapi_DebugSetProcessKillOnExit): Ditto.
13758 (winapi_DebugBreakProcess): Ditto.
13759 (winapi_GenerateConsoleCtrlEvent): Ditto.
13761 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13763 * notif.h (notif_event): Add a dummy member to avoid compiler
13766 2013-07-01 Pedro Alves <palves@redhat.com>
13768 * hostio.c (HOSTIO_PATH_MAX): Define.
13769 (require_filename, handle_open, handle_unlink, handle_readlink):
13772 2013-07-01 Pedro Alves <palves@redhat.com>
13774 * server.h: Include "pathmax.h".
13775 * linux-low.c: Don't include sys/param.h.
13776 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13778 * win32-low.c: Don't include sys/param.h.
13779 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13781 2013-07-01 Pedro Alves <palves@redhat.com>
13783 * event-loop.c: Don't check HAVE_UNISTD_H before including
13785 * gdbreplay.c: Likewise.
13786 * remote-utils.c: Likewise.
13787 * server.c: Likewise.
13788 * configure.ac: Don't check for unistd.h.
13789 * configure: Regenerate.
13791 2013-06-28 Tom Tromey <tromey@redhat.com>
13793 * Makefile.in (version.c): Use version.in, not
13796 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13798 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13799 * configure: Rebuild.
13800 * Makefile.in (version_host, version_target): Get from configure.
13801 (version.c): Use $(version_host) and $(version_target).
13803 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13805 Fix trace-status to output user name without trailing colon.
13806 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13808 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13810 Fix trace-status to output proper start-time and stop-time.
13811 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13812 output start time and stop time in hex as gdb expects.
13814 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13816 * tracepoint.c (build_traceframe_info_xml): Output trace state
13817 variables present in the trace buffer.
13819 2013-06-24 Tom Tromey <tromey@redhat.com>
13821 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13823 (version.o): Remove.
13824 * gdbreplay.c: Include version.h.
13825 (version, host_name): Don't declare.
13826 * server.h: Include version.h.
13827 (version, host_name): Don't declare.
13829 2013-06-12 Pedro Alves <palves@redhat.com>
13831 * linux-x86-low.c (linux_is_elf64): Delete global.
13832 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13833 with local linux_pid_exe_is_elf_64_file use.
13835 2013-06-11 Pedro Alves <palves@redhat.com>
13837 * linux-low.c (regset_disabled, disable_regset): New functions.
13838 (regsets_fetch_inferior_registers)
13839 (regsets_store_inferior_registers): Use them.
13840 (initialize_regsets_info); Don't allocate the disabled_regsets
13842 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13845 2013-06-11 Pedro Alves <palves@redhat.com>
13847 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13850 2013-06-11 Pedro Alves <palves@redhat.com>
13852 * linux-x86-low.c (initialize_low_arch): Call
13853 init_registers_x32_avx_linux.
13855 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13857 Fix compatibility with Android Bionic.
13858 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13861 2013-06-07 Pedro Alves <palves@redhat.com>
13864 * Makefile.in (OBS): Add tdesc.o.
13865 (IPA_OBJS): Add tdesc-ipa.o.
13866 (tdesc-ipa.o): New rule.
13867 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13869 * linux-low.c (new_inferior): Delete.
13870 (disabled_regsets, num_regsets): Delete.
13871 (linux_add_process): Adjust to set the new per-process
13873 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13874 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13875 was a stop. When calling arch_setup, switch the current inferior
13876 to the thread that got an event.
13877 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13878 (regsets_fetch_inferior_registers)
13879 (regsets_store_inferior_registers): New regsets_info parameter.
13881 (linux_register_in_regsets): New regs_info parameter. Adjust to
13883 (register_addr, fetch_register, store_register): New usrregs_info
13884 parameter. Adjust to use it.
13885 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13886 parameter regs_info. Adjust to use it.
13887 (linux_fetch_registers): Get the current inferior's regs_info, and
13889 (linux_store_registers): Ditto.
13890 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13891 (initialize_low): Don't initialize the target_regsets here. Call
13892 initialize_low_arch.
13893 * linux-low.h (target_regsets): Delete declaration.
13894 (struct regsets_info): New.
13895 (struct usrregs_info): New.
13896 (struct regs_info): New.
13897 (struct process_info_private) <new_inferior>: New field.
13898 (struct linux_target_ops): Delete the num_regs, regmap, and
13899 regset_bitmap fields. New field regs_info.
13900 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13901 * i387-fp.c (num_xmm_registers): Delete.
13902 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13903 calls to new interface.
13904 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13905 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13906 Infer the number of xmm registers from the regcache's target
13908 * i387-fp.h (num_xmm_registers): Delete.
13909 * inferiors.c (add_thread): Don't install the thread's regcache
13911 * proc-service.c (gregset_info): Fetch the current inferior's
13912 regs_info. Adjust to use it.
13913 * regcache.c: Include tdesc.h.
13914 (register_bytes, reg_defs, num_registers)
13915 (gdbserver_expedite_regs): Delete.
13916 (get_thread_regcache): If the thread doesn't have a regcache yet,
13917 create one, instead of aborting gdbserver.
13918 (regcache_invalidate_one): Rename to ...
13919 (regcache_invalidate_thread): ... this.
13920 (regcache_invalidate_one): New.
13921 (regcache_invalidate): Only invalidate registers of the current
13923 (init_register_cache): Add target_desc parameter, and use it.
13924 (new_register_cache): Ditto. Assert the target description has a
13925 non zero registers_size.
13926 (regcache_cpy): Add assertions. Adjust.
13927 (realloc_register_cache, set_register_cache): Delete.
13928 (registers_to_string, registers_from_string): Adjust.
13929 (find_register_by_name, find_regno, find_register_by_number)
13930 (register_cache_size): Add target_desc parameter, and use it.
13931 (free_register_cache_thread, free_register_cache_thread_one)
13932 (regcache_release, register_cache_size): New.
13933 (register_size): Add target_desc parameter, and use it.
13934 (register_data, supply_register, supply_register_zeroed)
13935 (supply_regblock, supply_register_by_name, collect_register)
13936 (collect_register_as_string, collect_register_by_name): Adjust.
13937 * regcache.h (struct target_desc): Forward declare.
13938 (struct regcache) <tdesc>: New field.
13939 (init_register_cache, new_register_cache): Add target_desc
13941 (regcache_invalidate_thread): Declare.
13942 (regcache_invalidate_one): Delete declaration.
13943 (regcache_release): Declare.
13944 (find_register_by_number, register_cache_size, register_size)
13945 (find_regno): Add target_desc parameter.
13946 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13948 * remote-utils.c: Include tdesc.h.
13949 (outreg, prepare_resume_reply): Adjust.
13950 * server.c: Include tdesc.h.
13951 (gdbserver_xmltarget): Delete declaration.
13952 (get_features_xml, process_serial_event): Adjust.
13953 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13955 (struct process_info) <tdesc>: New field.
13956 (ipa_tdesc): Declare.
13957 * tdesc.c: New file.
13958 * tdesc.h: New file.
13959 * tracepoint.c: Include tdesc.h.
13960 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13961 (get_context_regcache): Adjust to pass ipa_tdesc down.
13962 (do_action_at_tracepoint): Adjust to get the register cache size
13963 from the context regcache's description.
13964 (traceframe_walk_blocks): Adjust to get the register cache size
13965 from the current trace frame's description.
13966 (traceframe_get_pc): Adjust to get current trace frame's
13967 description and pass it down.
13968 (gdb_collect): Adjust to get the register cache size from the
13970 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13971 (gdbserver_xmltarget): Delete.
13972 (initialize_low_tracepoint): Set the ipa's target description.
13973 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13974 (initialize_low_tracepoint): Set the ipa's target description.
13975 * linux-x86-low.c: Include tdesc.h.
13976 [__x86_64__] (is_64bit_tdesc): New.
13977 (ps_get_thread_area, x86_get_thread_area): Use it.
13978 (i386_cannot_store_register): Rename to ...
13979 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13980 (i386_cannot_fetch_register): Rename to ...
13981 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13982 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13984 (target_regsets): Rename to ...
13985 (x86_regsets): ... this.
13986 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13988 (x86_siginfo_fixup): Use is_64bit_tdesc.
13989 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13990 (tdesc_x32_avx_linux, tdesc_x32_linux)
13991 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13993 (x86_linux_update_xmltarget): Delete.
13994 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13995 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13996 (AMD64_LINUX_USER64_CS): New.
13997 (x86_linux_read_description): New, based on
13998 x86_linux_update_xmltarget.
13999 (same_process_callback): New.
14000 (x86_arch_setup_process_callback): New.
14001 (x86_linux_update_xmltarget): New.
14002 (x86_regsets_info): New.
14003 (amd64_linux_regs_info): New.
14004 (i386_linux_usrregs_info): New.
14005 (i386_linux_regs_info): New.
14006 (x86_linux_regs_info): New.
14007 (x86_arch_setup): Reimplement.
14008 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14009 (x86_emit_ops): Ditto.
14010 (the_low_target): Adjust. Install x86_linux_regs_info,
14011 x86_cannot_fetch_register, and x86_cannot_store_register.
14012 (initialize_low_arch): New.
14013 * linux-ia64-low.c (tdesc_ia64): Declare.
14014 (ia64_fetch_register): Adjust.
14015 (ia64_usrregs_info, regs_info): New globals.
14016 (ia64_regs_info): New function.
14017 (the_low_target): Adjust.
14018 (initialize_low_arch): New function.
14019 * linux-sparc-low.c (tdesc_sparc64): Declare.
14020 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14022 (sparc_arch_setup): New function.
14023 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14024 (the_low_target): Adjust.
14025 (initialize_low_arch): New function.
14026 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14027 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14028 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14029 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14030 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14031 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14032 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14033 (tdesc_powerpc_isa205_vsx64l): Declare.
14034 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14035 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14036 (ppc_set_pc, ppc_get_hwcap): Adjust.
14037 (ppc_usrregs_info): Forward declare.
14038 (!__powerpc64__) ppc_regmap_adjusted: New global.
14039 (ppc_arch_setup): Adjust to the current process'es target
14041 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14042 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14043 (ppc_store_evrregset): Adjust.
14044 (target_regsets): Rename to ...
14045 (ppc_regsets): ... this, and make static.
14046 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14047 (ppc_regs_info): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14051 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14052 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14053 (tdesc_s390x_linux64v2): Declare.
14054 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14055 (s390_fill_gregset, s390_store_last_break): Adjust.
14056 (target_regsets): Rename to ...
14057 (s390_regsets): ... this, and make static.
14058 (s390_get_pc, s390_set_pc): Adjust.
14059 (s390_get_hwcap): New target_desc parameter, and use it.
14060 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14061 (s390_arch_setup): Adjust to set the current process'es target
14062 description. Don't adjust the regmap.
14063 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14064 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14065 (regs_info_3264): New globals.
14066 (s390_regs_info): New function.
14067 (the_low_target): Adjust.
14068 (initialize_low_arch): New function.
14069 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14070 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14071 [__mips64] (init_registers_mips_linux)
14072 (init_registers_mips_dsp_linux): Delete defines.
14073 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14074 (have_dsp): New global.
14075 (mips_read_description): New, based on mips_arch_setup.
14076 (mips_arch_setup): Reimplement.
14077 (get_usrregs_info): New function.
14078 (mips_cannot_fetch_register, mips_cannot_store_register)
14079 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14080 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14081 (target_regsets): Rename to ...
14082 (mips_regsets): ... this, and make static.
14083 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14084 (dsp_regs_info, regs_info): New globals.
14085 (mips_regs_info): New function.
14086 (the_low_target): Adjust.
14087 (initialize_low_arch): New function.
14088 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14089 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14091 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14092 (arm_read_description): New, with bits factored from
14094 (arm_arch_setup): Reimplement.
14095 (target_regsets): Rename to ...
14096 (arm_regsets): ... this, and make static.
14097 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14098 (arm_regs_info): New function.
14099 (the_low_target): Adjust.
14100 (initialize_low_arch): New function.
14101 * linux-m68k-low.c (tdesc_m68k): Declare.
14102 (target_regsets): Rename to ...
14103 (m68k_regsets): ... this, and make static.
14104 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14105 (m68k_regs_info): New function.
14106 (m68k_arch_setup): New function.
14107 (the_low_target): Adjust.
14108 (initialize_low_arch): New function.
14109 * linux-sh-low.c (tdesc_sharch): Declare.
14110 (target_regsets): Rename to ...
14111 (sh_regsets): ... this, and make static.
14112 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14113 (sh_regs_info, sh_arch_setup): New functions.
14114 (the_low_target): Adjust.
14115 (initialize_low_arch): New function.
14116 * linux-bfin-low.c (tdesc_bfin): Declare.
14117 (bfin_arch_setup): New function.
14118 (bfin_usrregs_info, regs_info): New globals.
14119 (bfin_regs_info): New function.
14120 (the_low_target): Adjust.
14121 (initialize_low_arch): New function.
14122 * linux-cris-low.c (tdesc_cris): Declare.
14123 (cris_arch_setup): New function.
14124 (cris_usrregs_info, regs_info): New globals.
14125 (cris_regs_info): New function.
14126 (the_low_target): Adjust.
14127 (initialize_low_arch): New function.
14128 * linux-cris-low.c (tdesc_crisv32): Declare.
14129 (cris_arch_setup): New function.
14130 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14131 (cris_regs_info): New function.
14132 (the_low_target): Adjust.
14133 (initialize_low_arch): New function.
14134 * linux-m32r-low.c (tdesc_m32r): Declare.
14135 (m32r_arch_setup): New function.
14136 (m32r_usrregs_info, regs_info): New globals.
14137 (m32r_regs_info): Adjust.
14138 (initialize_low_arch): New function.
14139 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14140 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14141 (tic6x_usrregs_info): Forward declare.
14142 (tic6x_read_description): New function, based on ...
14143 (tic6x_arch_setup): ... this. Reimplement.
14144 (target_regsets): Rename to ...
14145 (tic6x_regsets): ... this, and make static.
14146 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14147 (tic6x_regs_info): New function.
14148 (the_low_target): Adjust.
14149 (initialize_low_arch): New function.
14150 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14151 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14152 (target_regsets): Rename to ...
14153 (xtensa_regsets): ... this, and make static.
14154 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14156 (xtensa_arch_setup, xtensa_regs_info): New functions.
14157 (the_low_target): Adjust.
14158 (initialize_low_arch): New function.
14159 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14160 (nios2_arch_setup): Set the current process'es tdesc.
14161 (target_regsets): Rename to ...
14162 (nios2_regsets): ... this.
14163 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14164 (nios2_regs_info): New function.
14165 (the_low_target): Adjust.
14166 (initialize_low_arch): New function.
14167 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14168 (aarch64_arch_setup): Set the current process'es tdesc.
14169 (target_regsets): Rename to ...
14170 (aarch64_regsets): ... this.
14171 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14172 (aarch64_regs_info): New function.
14173 (the_low_target): Adjust.
14174 (initialize_low_arch): New function.
14175 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14177 (target_regsets): Rename to ...
14178 (tile_regsets): ... this.
14179 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14180 (tile_regs_info): New function.
14181 (tile_arch_setup): Set the current process'es tdesc.
14182 (the_low_target): Adjust.
14183 (initialize_low_arch): New function.
14184 * spu-low.c (tdesc_spu): Declare.
14185 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14186 * win32-arm-low.c (tdesc_arm): Declare.
14187 (arm_arch_setup): New function.
14188 (the_low_target): Install arm_arch_setup instead of
14189 init_registers_arm.
14190 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14191 (init_windows_x86): Rename to ...
14192 (i386_arch_setup): ... this. Set `win32_tdesc'.
14193 (the_low_target): Adjust.
14194 * win32-low.c (win32_tdesc): New global.
14195 (child_add_thread): Don't create the thread cache here.
14196 (do_initial_child_stuff): Set the new process'es tdesc.
14197 * win32-low.h (struct target_desc): Forward declare.
14198 (win32_tdesc): Declare.
14199 * lynx-i386-low.c (tdesc_i386): Declare global.
14200 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14201 * lynx-low.c (lynx_tdesc): New global.
14202 (lynx_add_process): Set the new process'es tdesc.
14203 * lynx-low.h (struct target_desc): Forward declare.
14204 (lynx_tdesc): Declare global.
14205 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14206 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14207 * nto-low.c (nto_tdesc): New global.
14208 (do_attach): Set the new process'es tdesc.
14209 * nto-low.h (struct target_desc): Forward declare.
14210 (nto_tdesc): Declare.
14211 * nto-x86-low.c (tdesc_i386): Declare.
14212 (nto_x86_arch_setup): Set `nto_tdesc'.
14214 2013-06-04 Gary Benson <gbenson@redhat.com>
14216 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14217 to qSupported response when appropriate.
14218 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14219 with nonzero-length annex.
14220 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14221 arguments supplied in annex.
14223 2013-05-31 Doug Evans <dje@google.com>
14226 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14227 64 bits in 64-cross-32 environment.
14229 2013-05-28 Pedro Alves <palves@redhat.com>
14231 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14232 (aarch64-without-fpu.c): Delete rule.
14233 * configure.srv (aarch64*-*-linux*): Remove references to
14234 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14235 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14238 2013-05-24 Pedro Alves <palves@redhat.com>
14240 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14241 instead of strchr/decode_address. Error if the range isn't split
14242 with a ','. Don't assume there's be a ':' in the action.
14244 2013-05-23 Yao Qi <yao@codesourcery.com>
14245 Pedro Alves <palves@redhat.com>
14247 * linux-low.c (lwp_in_step_range): New function.
14248 (linux_wait_1): If the thread was range stepping and stopped
14249 outside the stepping range, report the stop to GDB. Otherwise,
14250 continue stepping. Add range stepping debug output.
14251 (linux_set_resume_request): Copy the step range from the resume
14252 request to the lwp.
14253 (linux_supports_range_stepping): New.
14254 (linux_target_ops) <supports_range_stepping>: Set to
14255 linux_supports_range_stepping.
14256 * linux-low.h (struct linux_target_ops)
14257 <supports_range_stepping>: New field.
14258 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14259 * linux-x86-low.c (x86_supports_range_stepping): New.
14260 (the_low_target) <supports_range_stepping>: Set to
14261 x86_supports_range_stepping.
14262 * server.c (handle_v_cont): Handle 'r' action.
14263 (handle_v_requests): Append ";r" if the target supports range
14265 * target.h (struct thread_resume) <step_range_start,
14266 step_range_end>: New fields.
14267 (struct target_ops) <supports_range_stepping>:
14269 (target_supports_range_stepping): New macro.
14271 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14273 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14274 confusion in comment.
14276 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14278 * lynx-low.c (struct process_info_private): New type.
14279 (lynx_add_process): New function.
14280 (lynx_create_inferior, lynx_attach): Replace calls to
14281 add_process by calls to lynx_add_process.
14282 (lynx_resume): If PTID is null, then try using
14283 current_process()->private->last_wait_event_ptid.
14285 (lynx_clear_inferiors): Delete. The contents of that function
14286 has been inlined in lynx_mourn;
14287 (lynx_wait_1): Save the ptid in the process's private data.
14288 (lynx_mourn): Free the process' private data. Replace call
14289 to lynx_clear_inferiors by call to clear_inferiors.
14291 2013-05-17 Yao Qi <yao@codesourcery.com>
14293 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14296 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14298 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14299 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14300 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14301 PT_TEXT_END_ADDR guards. Update comments.
14302 (linux_target_op) <read_offsets>: Conditionally define to
14303 linux_read_offsets if the target is UCLIBC and if it defines
14304 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14306 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14307 Andrew Jenner <andrew@codesourcery.com>
14309 * Makefile.in (SFILES): Add linux-nios2-low.c.
14310 (clean): Add action to delete nios2-linux.c.
14311 (nios2-linux.c): New rule.
14312 * configure.srv: Add nios2*-*-linux*.
14313 * linux-nios2-low.c: New.
14315 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14317 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14319 2013-04-25 Hui Zhu <hui@codesourcery.com>
14322 * ax.c (ax_printf): Add fflush.
14324 2013-04-22 Tom Tromey <tromey@redhat.com>
14326 * Makefile.in (SFILES): Add filestuff.c.
14327 (OBS): Add filestuff.o.
14328 (filestuff.o): New target.
14329 * config.in, configure: Rebuild.
14330 * configure.ac: Check for fdwalk, pipe2.
14332 2013-04-17 Pedro Alves <palves@redhat.com>
14334 * configure.ac (USE_THREAD_DB): Delete variable.
14335 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14336 Don't AC_SUBST USE_THREAD_DB.
14337 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14338 * config.in, configure: Regenerate.
14340 2013-04-16 Pedro Alves <palves@redhat.com>
14342 * linux-low.h (struct lwp_info) <thread_known>: Move under
14343 the USE_THREAD_DB #ifdef.
14345 2013-04-16 Pedro Alves <palves@redhat.com>
14347 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14348 (linux-low.o): Delete rule.
14349 * linux-low.h: Always include "gdb_thread_db.h" instead of
14350 conditionally including thread_db.h.
14351 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14354 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14356 * Makefile.in (install-only): Fix make install regression.
14358 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14360 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14361 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14363 * gdbserver.1: Remove.
14365 2013-03-22 Pedro Alves <palves@redhat.com>
14367 * linux-low.c (handle_extended_wait): Don't call
14368 linux_enable_event_reporting.
14370 2013-03-15 Tony Theodore <tonyt@logyst.com>
14373 * Makefile.in (SHELL): Use @SHELL@.
14375 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14377 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14380 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14382 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14383 Remove extraneous NULL element.
14385 2013-03-13 Yao Qi <yao@codesourcery.com>
14387 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14388 'V' block in trace frame.
14390 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14392 * target.h (struct target_ops): Add btrace ops.
14393 (target_supports_btrace): New macro.
14394 (target_enable_btrace): New macro.
14395 (target_disable_btrace): New macro.
14396 (target_read_btrace): New macro.
14397 * gdbthread.h (struct thread_info): Add btrace field.
14398 * server.c: Include btrace-common.h.
14399 (handle_btrace_general_set): New function.
14400 (handle_btrace_enable): New function.
14401 (handle_btrace_disable): New function.
14402 (handle_general_set): Call handle_btrace_general_set.
14403 (handle_qxfer_btrace): New function.
14404 (struct qxfer qxfer_packets[]): Add btrace entry.
14405 * inferiors.c (remove_thread): Disable btrace.
14406 * linux-low: Include linux-btrace.h.
14407 (linux_low_enable_btrace): New function.
14408 (linux_low_read_btrace): New function.
14409 (linux_target_ops): Add btrace ops.
14410 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14411 Add srv_linux_btrace=yes.
14412 (x86_64-*-linux*): Add linux-btrace.o.
14413 Add srv_linux_btrace=yes.
14414 * configure.ac: Define HAVE_LINUX_BTRACE.
14415 * config.in: Regenerated.
14416 * configure: Regenerated.
14418 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14420 * server.c (handle_qxfer): Preserve error message if -3 is
14422 (qxfer): Document the -3 return value.
14424 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14426 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14427 (linux_btrace_h): New variable.
14428 (linux-btrace.o): New rule.
14430 2013-03-08 Stan Shebs <stan@codesourcery.com>
14431 Hafiz Abid Qadeer <abidh@codesourcery.com>
14433 * tracepoint.c (trace_buffer_size): New global.
14434 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14435 (init_trace_buffer): Change to one-argument function. Allocate
14436 trace buffer memory.
14437 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14438 handle QTBuffer:size packet.
14439 (cmd_bigqtbuffer_size): New function.
14440 (initialize_tracepoint): Call init_trace_buffer with
14441 DEFAULT_TRACE_BUFFER_SIZE.
14442 * server.c (handle_query): Add QTBuffer:size in the
14445 2013-03-07 Yao Qi <yao@codesourcery.com>
14447 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14448 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14450 (cmd_qtsp): Adjust condition. Do post increment.
14451 Set cur_action and cur_step_action back to 0.
14453 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14456 * linux-low.c (linux_write_memory): Return early success if LEN is
14459 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14461 * configure.srv: Add x86_64-*-cygwin* as target.
14463 2013-02-28 Tom Tromey <tromey@redhat.com>
14465 * configure.ac: Invoke AC_SYS_LARGEFILE.
14466 * configure, config.in: Rebuild.
14468 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14470 * win32-low.c: Throughout, fix format strings and casts of
14471 printf-like functions to avoid type related warnings on all
14473 (get_child_debug_event): Print dwDebugEventCode as hex since
14474 that's how it's usually documented.
14476 2013-02-28 Yao Qi <yao@codesourcery.com>
14478 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14481 2013-02-27 Jiong Wang <jiwang@tilera.com>
14483 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14484 (reg-tilegx32.c): New rule.
14485 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14486 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14487 different register info initializer according to elf class.
14488 (init_registers_tilgx32): New function. The tilegx32 register info
14490 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14491 (tile_store_gregset): Likewise.
14493 2013-02-27 Yao Qi <yao@codesourcery.com>
14495 * server.c (process_point_options): Print debug message when
14496 debug_threads is true.
14498 2013-02-26 Yao Qi <yao@codesourcery.com>
14500 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14502 2013-02-19 Pedro Alves <palves@redhat.com>
14503 Kai Tietz <ktietz@redhat.com>
14507 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14508 instead of strtoul to extract address from packet.
14509 (process_serial_event) <'z'>: Likewise.
14511 2013-02-18 Yao Qi <yao@codesourcery.com>
14513 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14515 2013-02-14 Pedro Alves <palves@redhat.com>
14519 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14520 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14522 2013-02-14 Pedro Alves <palves@redhat.com>
14524 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14526 2013-02-14 Pedro Alves <palves@redhat.com>
14528 * tracepoint.c (save_string): Delete.
14529 (add_tracepoint_action): Use savestring instead of save_string.
14531 2013-02-12 Pedro Alves <palves@redhat.com>
14533 * linux-xtensa-low.c: Ditto.
14534 * xtensa-xtregs.c: Ditto.
14536 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14538 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14541 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14543 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14544 aarch64_num_wp_regs and aarch64_num_bp_regs to
14545 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14547 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14549 * linux-aarch64-low.c (ps_get_thread_area): Replace
14550 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14552 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14553 Marcus Shawcroft <marcus.shawcroft@arm.com>
14554 Nigel Stephens <nigel.stephens@arm.com>
14555 Yufeng Zhang <yufeng.zhang@arm.com>
14557 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14558 (aarch64.c, aarch64-without-fpu.c): New targets.
14559 * configure.srv (aarch64*-*-linux*): New.
14560 * linux-aarch64-low.c: New file.
14562 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14564 * linux-low.c (handle_extended_wait, linux_create_inferior)
14565 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14566 (dequeue_one_deferred_signal, linux_resume_one_thread)
14567 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14568 (linux_tracefork_grandchild, linux_test_for_tracefork)
14569 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14570 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14571 where the argument is 0.
14573 2013-01-25 Yao Qi <yao@codesourcery.com>
14575 * event-loop.c: Include "queue.h".
14576 (gdb_event_p): New typedef.
14577 (struct gdb_event) <next_event>: Remove.
14578 (event_queue): Change to QUEUE(gdb_event_p).
14579 (async_queue_event): Remove.
14580 (gdb_event_xfree): New.
14581 (initialize_event_loop): New.
14582 (process_event): Use API from QUEUE.
14583 (wait_for_event): Likewise.
14584 * server.c (main): Call initialize_event_loop.
14585 * server.h (initialize_event_loop): Declare.
14587 2013-01-18 Yao Qi <yao@codesourcery.com>
14589 * ax.h (struct eval_agent_expr_context): New.
14590 (gdb_eval_agent_expr): Update declaration.
14591 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14592 TFRAME. Add new argument CTX.
14593 * server.h (struct eval_agent_expr_context): Declare.
14594 (agent_mem_read, agent_tsv_read): Update declaration.
14595 (agent_mem_read_string): Likewise.
14596 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14597 (add_traceframe_block): Add new argument TPOINT.
14598 Increase TPOINT->traceframe_usage.
14599 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14600 eval_tracepoint_agent_expr.
14601 (condition_true_at_tracepoint): Likewise.
14602 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14603 (agent_mem_read_string, agent_tsv_read): Likewise.
14605 2013-01-16 Yao Qi <yao@codesourcery.com>
14607 * linux-low.c (linux_resume_one_lwp): Don't check
14608 'lwp->bp_reinsert != 0'.
14610 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14611 Pedro Alves <palves@redhat.com>
14613 * lynx-low.c (ptrace_request_to_str): Define a temporary
14614 macro and use it to simplify this function's implementation.
14616 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14618 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14621 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14623 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14625 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14627 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14629 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14631 * lynx-low.c (lynx_resume): Use the resume_info parameter
14632 to determine the ptid for the lynx_ptrace call, unless
14633 it is equal to minus_one_ptid, in which case we use the
14634 ptid of the current_inferior.
14635 (lynx_wait_1): After having received a thread create/exit
14636 event, resume the inferior's execution using the signaling
14637 thread's ptid, rather than the old ptid.
14639 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14641 * lynx-low.c (lynx_resume): Delete variable ret.
14643 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14645 * gdbreplay.c (gdbreplay_version): Update copyright year.
14646 * server.c (gdbserver_version): Likewise.
14648 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14650 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14653 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14655 * lynx-low.c (ptrace_request_to_str): Add handling for
14656 PTRACE_GETTRACESIG.
14658 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14660 * lynx-low.c (lynx_attach): Delete variable new_process.
14662 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14664 * lynx-low.c (lynx_create_inferior): Delete variable
14667 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14669 * lynx-low.c (ptrace_request_to_str): Do not handle
14670 PTRACE_GETTHREADLIST if this macro does not exist.
14672 2012-12-15 Yao Qi <yao@codesourcery.com>
14674 * Makefile.in (OBS): Add notif.o.
14675 * notif.c, notif.h: New.
14676 * server.c: Include "notif.h".
14677 (struct vstop_notif) <next>: Remove.
14679 (queue_stop_reply): Update.
14680 (push_event, send_next_stop_reply): Remove.
14681 (discard_queued_stop_replies): Update.
14682 (notif_stop): New variable.
14683 (handle_v_stopped): Remove.
14684 (handle_v_requests): Don't call handle_v_stopped. Call
14685 handle_ack_notif instead.
14686 (queue_stop_reply_callback): Call notif_event_enque instead
14687 of queue_stop_reply.
14688 (handle_status): Don't call send_next_stop_reply, call
14689 notif_write_event instead.
14690 (kill_inferior_callback): Likewise.
14691 (detach_or_kill_inferior_callback): Likewise.
14692 (main): Call initialize_notif.
14693 (process_serial_event): Call QUEUE_is_empty.
14694 (handle_target_event): Call notif_push instead of push event.
14695 * server.h (push_event): Remove declaration.
14697 2012-12-10 Tom Tromey <tromey@redhat.com>
14699 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14700 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14703 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14704 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14705 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14706 (amd64-linux-ipa.o, ax.o): Rewrite.
14707 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14708 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14709 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14710 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14711 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14712 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14713 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14714 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14715 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14716 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14717 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14718 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14719 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14720 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14721 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14722 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14723 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14724 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14725 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14726 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14727 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14728 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14729 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14730 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14731 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14732 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14733 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14734 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14735 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14736 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14737 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14738 (reg-tilegx.o): Remove.
14739 (all_object_files): New macro.
14740 Include .deps files.
14741 * aclocal.m4, configure: Rebuild.
14742 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14743 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14744 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14746 2012-12-05 Tom Tromey <tromey@redhat.com>
14749 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14751 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14753 * configure.ac: Check for linux/perf_event.h.
14754 * config.in: Regenerated.
14755 * configure: Regenerated.
14757 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14759 * hostio.c (handle_readlink): Decrease buffer size
14760 parameter passed to readlink by one byte.
14762 2012-11-26 Yao Qi <yao@codesourcery.com>
14764 * configure.ac (build_warnings): Append '-Wempty-body'.
14765 * configure: Regenerated.
14766 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14769 2012-11-15 Pierre Muller <muller@sourceware.org>
14771 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14772 * config.in: Regenerate.
14773 * configure: Regenerate.
14774 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14775 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14776 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14777 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14779 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14780 instead of <sys/wait.h> header.
14781 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14783 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14785 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14786 (various make rules): Remove -DGDBSERVER
14788 2012-11-09 Yao Qi <yao@codesourcery.com>
14790 * spu-low.c (current_ptid): Move it to ..
14791 * gdbthread.h: ... here. New.
14792 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14793 * server.c (myresume, process_serial_event): Likewise.
14794 * thread-db.c (thread_db_find_new_threads): Likewise.
14795 * tracepoint.c (run_inferior_command): Likewise.
14797 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14799 * server.c (handle_search_memory_1): Include access length in
14802 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14804 * linux-crisv32-low.c: Fix compile errors.
14806 2012-09-04 Yao Qi <yao@codesourcery.com>
14808 * tracepoint.c (cmd_qtsv): Adjust debug message.
14809 Don't check CUR_TPOINT.
14811 2012-08-28 Yao Qi <yao@codesourcery.com>
14813 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14814 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14815 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14816 Remove declarations of xmalloc, xreallloc, xstrdup and
14818 * Makefile.in (libiberty_h): New.
14819 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14820 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14822 2012-08-23 Yao Qi <yao@codesourcery.com>
14824 * server.h: Remove declaration of 'xsnprintf'.
14826 2012-08-22 Keith Seitz <keiths@redhat.com>
14828 * server.h: Include build-gnulib-gbserver/config.h.
14829 * gdbreplay.c: Likewise.
14831 2012-08-08 Doug Evans <dje@google.com>
14833 * Makefile.in (SFILES): Add gdb_vecs.c.
14834 (OBS): Add gdb_vecs.o.
14835 (gdb_vecs_h, host_defs_h): New variables.
14836 (thread-db.o): Add $(gdb_vecs_h) dependency.
14837 (gdb_vecs.o): New rule.
14838 * thread-db.c: #include "gdb_vecs.h".
14839 (thread_db_load_search): Use a vector to iterate over path elements.
14840 Handle text appearing after "$pdir".
14842 * configure.ac: Add check for strstr.
14843 * config.in: Regenerate.
14844 * configure: Regenerate.
14846 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14848 * hostio.c (handle_pread): If pread fails, fall back to attempting
14850 (handle_pwrite): Likewise for pwrite.
14852 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14854 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14855 between unsupported TYPE and unimplementable ADDR/LEN combination.
14856 (arm_insert_point): Act on new return value.
14858 2012-07-31 Pedro Alves <palves@redhat.com>
14860 * server.c (process_point_options): Only skip tokens if we find
14861 one that is unrecognized. Don't treat 'X' specially while
14862 skipping unrecognized tokens.
14864 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14866 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14867 to 4-byte-align HW breakpoint addresses for Thumb.
14869 2012-07-27 Yao Qi <yao@codesourcery.com>
14873 * server.h: Declare gdb_agent_about_to_close.
14874 * target.c (kill_inferior): Include "agent.h".
14875 New. Send command 'kill'.
14876 * target.h (kill_inferior): Removed macro.
14877 * tracepoint.c (gdb_agent_about_to_close): New.
14878 (gdb_agent_helper_thread): Handle command 'close'.
14879 Wait endlessly until the inferior stops.
14880 Install gdb_agent_remove_socket to atexit hook.
14881 (agent_socket_name): New static variable.
14882 (gdb_agent_socket_init): Replace local variable 'name' with
14883 'agent_socket_name'.
14884 (gdb_agent_remove_socket): New.
14886 2012-07-27 Yao Qi <yao@codesourcery.com>
14888 * server.c (process_point_options): Stop at 'X' when parsing.
14890 2012-07-19 Michael Eager <eager@eagercon.com>
14892 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14894 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14895 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14896 hardware breakpoint.
14898 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14900 * gdbserver/linux-low.c (initialize_low): Call
14901 linux_ptrace_init_warnings.
14903 2012-07-02 Doug Evans <dje@google.com>
14905 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14908 2012-07-02 Stan Shebs <stan@codesourcery.com>
14910 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14911 (ax.o): Add it to build rule.
14913 (OBS): Add format.o.
14914 (IPA_OBS): Add format.o.
14915 * server.c (handle_query): Claim support for breakpoint commands.
14916 (process_point_options): Add command case.
14917 (process_serial_event): Leave running if there are printfs in
14919 * mem-break.h (any_persistent_commands): Declare.
14920 (add_breakpoint_commands): Declare.
14921 (gdb_no_commands_at_breakpoint): Declare.
14922 (run_breakpoint_commands): Declare.
14923 * mem-break.c (struct point_command_list): New struct.
14924 (struct breakpoint): New field command_list.
14925 (any_persistent_commands): New function.
14926 (add_commands_to_breakpoint): New function.
14927 (add_breakpoint_commands): New function.
14928 (gdb_no_commands_at_breakpoint): New function.
14929 (run_breakpoint_commands): New function.
14930 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14932 * ax.c: Include format.h.
14933 (ax_printf): New function.
14934 (gdb_eval_agent_expr): Add printf opcode.
14936 2012-06-13 Yao Qi <yao@codesourcery.com>
14938 * server.c (start_inferior): Remove duplicated writes to fields
14939 'last_resume_kind' and 'last_status' of 'current_inferior'.
14941 2012-06-12 Yao Qi <yao@codesourcery.com>
14942 Pedro Alves <palves@redhat.com>
14944 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14946 * server.c (handle_v_cont): Extend comment.
14948 2012-06-11 Yao Qi <yao@codesourcery.com>
14950 * linux-low.c (linux_attach): Add 'static'.
14952 2012-06-06 Yao Qi <yao@codesourcery.com>
14954 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14956 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14958 Fix gcc -flto compilation warning.
14959 * server.c (main): Make variable multi_mode and attach volatile.
14961 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14963 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14964 if the platform doesn't know about it.
14966 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14968 * Makefile.in (SFILES): Add linux-tile-low.c.
14969 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14970 * configure.srv: Handle tilegx-*-linux*.
14971 * linux-tile-low.c: New file.
14973 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14975 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14977 2012-05-24 Pedro Alves <palves@redhat.com>
14981 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14983 2012-05-24 Pedro Alves <palves@redhat.com>
14987 Replace target_signal with gdb_signal throughout.
14989 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14991 * linux-low.c (linux_store_registers): Avoid the copying sequence
14992 when no data has been retrieved by ptrace.
14994 2012-05-22 Will Deacon <will.deacon@arm.com>
14996 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14997 Include asm/ptrace.h.
14998 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15001 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15003 * linux-low.c (linux_store_registers): Don't re-retrieve data
15004 with ptrace that has already been obtained from /proc. Always
15005 copy any data retrieved with ptrace to the buffer supplied.
15007 2012-05-11 Yao Qi <yao@codesourcery.com>
15008 Pedro Alves <palves@redhat.com>
15010 * linux-low.c (enum stopping_threads_kind): New.
15011 (stopping_threads): Change type to `enum stopping_threads_kind'.
15012 (handle_extended_wait): If stopping and suspending threads, leave
15013 the new_lwp suspended too.
15014 (linux_wait_for_event): Adjust.
15015 (stop_all_lwps): Set `stopping_threads' to
15016 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15017 whether we're suspending threads or just stopping them. Assert no
15020 2012-04-29 Yao Qi <yao@codesourcery.com>
15022 * server.h: Move some code to ...
15023 * gdbthread.h: ... here. New.
15024 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15025 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15026 (nto-low.o, win32-low.o): Likewise.
15027 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15028 * regcache.c, remote-utils.c, server.c: Likewise.
15029 * target.c, tracepoint.c, win32-low.c: Likewise.
15031 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15033 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15034 (PTRACE_ARG4_TYPE): Likewise.
15035 (PTRACE_XFER_TYPE): Likewise.
15036 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15037 ptrace to PTRACE_ARG3_TYPE.
15038 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15039 (PTRACE_ARG4_TYPE): Likewise.
15040 (PTRACE_XFER_TYPE): Likewise.
15041 (linux_detach_one_lwp): Cast fourth argument of
15042 ptrace to long then PTRACE_ARG4_TYPE.
15043 (regsets_fetch_inferior_registers): Cast third argument of
15044 ptrace to long then PTRACE_ARG3_TYPE.
15045 (regsets_store_inferior_registers): Likewise.
15047 2012-04-20 Pedro Alves <palves@redhat.com>
15049 * configure: Regenerate.
15051 2012-04-19 Pedro Alves <palves@redhat.com>
15053 * Makefile.in (GNULIB_BUILDDIR): New.
15054 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15055 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15056 (all, install-only, uninstall, clean-info, all-lib, clean): No
15057 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15058 (maintainer-clean realclean distclean): Use subdir_do.
15060 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15061 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15062 * acinclude.m4: Include acx_configure_dir.m4.
15063 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15064 calls. Call AC_PROG_RANLIB. Configure gnulib using
15067 (GNULIB_STDINT_H): Adjust.
15068 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15069 * gdbreplay.c: Include build-gnulib/config.h.
15070 * server.h: Likewise.
15071 * aclocal.m4: Regenerate.
15072 * config.in: Regenerate.
15073 * configure: Regenerate.
15075 2012-04-19 Pedro Alves <palves@redhat.com>
15077 * Makefile.in (LIBGNU, INCGNU): Adjust.
15078 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15079 (all, install-only, uninstall, clean-info, all-lib, clean)
15080 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15081 * configure.ac: Adjust AC_OUTPUT output.
15082 * aclocal.m4: Regenerate.
15083 * configure: Regenerate.
15085 2012-04-19 Pedro Alves <palves@redhat.com>
15087 * Makefile.in (generated_files): New.
15088 (server_h): Remove the explicit dependency on config.h, and depend
15089 on $generated_files.
15091 2012-04-19 Pedro Alves <palves@redhat.com>
15093 * Makefile.in (INCGNU): Add -Ignulib.
15095 2012-04-19 Pedro Alves <palves@redhat.com>
15097 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15098 (INCGNU): ... this, and spell out -I here.
15099 (GNULIB_LIB): Rename to ...
15100 (LIBGNU): ... this.
15101 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15103 2012-04-19 Pedro Alves <palves@redhat.com>
15105 * config.in: Regenerate.
15107 2012-04-19 Pedro Alves <palves@redhat.com>
15109 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15110 * server.h (memmem): Remove declaration.
15111 * config.in: Regenerate.
15112 * configure: Regenerate.
15114 2012-04-19 Yao Qi <yao@codesourcery.com>
15116 * Makefile.in (SFILES): Add common/vec.c.
15120 2012-04-19 Yao Qi <yao@codesourcery.com>
15122 * remote-utils.c (prepare_resume_reply): Replace with macro
15123 target_core_of_thread.
15124 * server.c (handle_qxfer_threads_proper): Likewise.
15125 * target.h (traget_core_of_thread): New macro.
15127 2012-04-18 Pedro Alves <palves@redhat.com>
15129 * aclocal.m4: Regenerate.
15130 * configure: Regenerate.
15132 2012-04-16 Yao Qi <yao@codesourcery.com>
15134 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15135 duplicated on address.
15137 2012-04-16 Yao Qi <yao@codesourcery.com>
15139 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15140 (struct tracepoint_action_ops) <send>: New field.
15141 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15142 (agent_expr_send, x_tracepoint_action_send): New.
15143 (l_tracepoint_action_send): New.
15144 (cmd_qtdp): Download and install tracepoint
15145 according to `use_agent'.
15146 (run_inferior_command): Add one more parameter `len'.
15148 (tracepoint_send_agent): New.
15149 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15151 2012-04-16 Yao Qi <yao@codesourcery.com>
15153 * tracepoint.c (download_tracepoints): Moved to ...
15154 (cmd_qtstart): ... here.
15156 2012-04-14 Yao Qi <yao@codesourcery.com>
15158 * tracepoint.c: Include inttypes.h.
15159 (struct collect_memory_action): Use sized types.
15160 (struct tracepoint): Likewise.
15161 (cmd_qtdp, stop_tracing): Update print specifiers.
15162 (cmd_qtp, response_tracepoint): Likewise.
15163 (collect_data_at_tracepoint): Likewise.
15164 (collect_data_at_step): Likewise.
15166 2012-04-14 Yao Qi <yao@codesourcery.com>
15168 Import gnulib module inttypes.
15169 * aclocal.m4, config.in, configure: Regenerated.
15171 2012-04-14 Yao Qi <yao@codesourcery.com>
15173 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15174 Makefile and config.status at last.
15176 2012-04-13 Yao Qi <yao@codesourcery.com>
15178 * tracepoint.c: Include stdint.h unconditionally.
15180 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15182 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15183 on BFD_HAVE_SYS_PROCFS_TYPE.
15184 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15185 * configure: Regenerate.
15186 * config.in: Likewise.
15188 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15190 * Makefile.in (clean): Also remove x32.c x32-linux.c
15191 x32-avx.c x32-avx-linux.c.
15192 (x32.o): New target.
15194 (x32-linux.o): Likewise.
15195 (x32-linux.c): Likewise.
15196 (x32-avx.o): Likewise.
15197 (x32-avx.c): Likewise.
15198 (x32-avx-linux.o): Likewise.
15199 (x32-avx-linux.c): Likewise.
15201 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15202 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15203 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15204 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15205 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15206 i386/x32-avx-linux.xml.
15208 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15209 (init_registers_x32_avx_linux): Likwise.
15210 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15211 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15213 2012-04-13 Pedro Alves <palves@redhat.com>
15215 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15216 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15217 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15218 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15221 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15223 * linux-x86-low.c (compat_x32_clock_t): New.
15224 (compat_x32_siginfo_t): Likewise.
15225 (compat_x32_siginfo_from_siginfo): Likewise.
15226 (siginfo_from_compat_x32_siginfo): Likewise.
15227 (linux_is_elf64): Likewise.
15228 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15229 and siginfo_from_compat_x32_siginfo for x32.
15230 (x86_arch_setup): Set linux_is_elf64.
15232 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15235 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15237 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15238 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15239 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15240 compatible with process.
15242 2012-04-12 Yao Qi <yao@codesourcery.com>
15244 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15245 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15246 (install-only, install-info, clean): Handle sub dir gnulib.
15247 (all-lib, am--refresh): New targets.
15248 (memmem.o): Remove target.
15249 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15250 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15251 (AC_REPLACE_FUNCS): Remove memmem.
15252 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15253 (AC_OUTPUT): Generate Makefile in gnulib/.
15254 * aclocal.m4, config.in, configure: Regenerated.
15256 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15258 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15260 2012-04-05 Pedro Alves <palves@redhat.com>
15262 -Werror=strict-aliasing
15264 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15267 2012-04-04 Pedro Alves <palves@redhat.com>
15269 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15270 (sparc_store_gregset_from_stack, sparc_store_gregset)
15271 (sparc_breakpoint_at): Fix formatting.
15273 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15275 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15277 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15278 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15279 * config.in: Regenerate.
15280 * configure: Likewise.
15282 2012-03-29 Pedro Alves <palves@redhat.com>
15284 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15285 Correct ptrace arguments.
15287 2012-03-28 Pedro Alves <palves@redhat.com>
15289 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15290 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15291 (IA64_FR1_REGNUM): New defines.
15292 (ia64_fetch_register): New.
15293 (the_low_target): Install it.
15294 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15296 * linux-low.c (linux_fetch_registers): Try the
15297 the_low_target.fetch_register hook first.
15299 * linux-arm-low.c (the_low_target): Adjust.
15300 * linux-bfin-low.c (the_low_target): Adjust.
15301 * linux-cris-low.c (the_low_target): Adjust.
15302 * linux-crisv32-low.c (the_low_target): Adjust.
15303 * linux-m32r-low.c (the_low_target): Adjust.
15304 * linux-m68k-low.c (the_low_target): Adjust.
15305 * linux-mips-low.c (the_low_target): Adjust.
15306 * linux-ppc-low.c (the_low_target): Adjust.
15307 * linux-s390-low.c (the_low_target): Adjust.
15308 * linux-sh-low.c (the_low_target): Adjust.
15309 * linux-sparc-low.c (the_low_target): Adjust.
15310 * linux-tic6x-low.c (the_low_target): Adjust.
15311 * linux-x86-low.c (the_low_target): Adjust.
15312 * linux-xtensa-low.c (the_low_target): Adjust.
15314 2012-03-26 Pedro Alves <palves@redhat.com>
15316 * server.c (handle_qxfer_libraries): Don't bail early if
15317 the_target->qxfer_libraries_svr4 is not NULL.
15319 2012-03-26 Pedro Alves <palves@redhat.com>
15321 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15323 2012-03-23 Pedro Alves <palves@redhat.com>
15325 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15326 "library-list-svr4" element's start tag when the the DSO list is
15329 2012-03-23 Pedro Alves <palves@redhat.com>
15331 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15332 a variable whose type size is the same as the inferior's pointer
15335 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15337 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15339 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15340 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15341 * linux-low.h: Include <signal.h>.
15342 (struct siginfo): Remove forward declaration.
15343 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15346 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15348 * .gitignore: Ignore more files.
15350 2012-03-19 Pedro Alves <palves@redhat.com>
15351 Jan Kratochvil <jan.kratochvil@redhat.com>
15353 * server.c (cont_thread, general_thread): Add describing comments.
15354 (start_inferior): Clear `cont_thread'.
15355 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15358 2012-03-15 Yao Qi <yao@codesourcery.com>
15360 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15362 (cmd_qtdp): ... here.
15364 2012-03-15 Yao Qi <yao@codesourcery.com>
15366 * tracepoint.c (struct tracepoint_action_ops): New.
15367 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15368 (m_tracepoint_action_download): New.
15369 (r_tracepoint_action_download): New.
15370 (x_tracepoint_action_download): New.
15371 (l_tracepoint_action_download): New.
15372 (add_tracepoint_action): Install `action->ops' according type.
15373 (download_tracepoint_1): Move code `download' function pointer
15374 of various tracepoint_action_ops.
15376 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15378 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15379 linux_ptrace_attach_warnings.
15381 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15383 * Makefile.in (linux-ptrace.o): New.
15384 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15385 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15386 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15387 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15388 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15390 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15392 2012-03-08 Yao Qi <yao@codesourcery.com>
15393 Pedro Alves <palves@redhat.com>
15395 Fix PR server/13392.
15396 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15397 offset of JMP insn.
15398 * tracepoint.c (remove_tracepoint): New.
15399 (cmd_qtdp): Call remove_tracepoint when failed to install.
15401 2012-03-07 Pedro Alves <palves@redhat.com>
15403 * linux-low.c (get_detach_signal): New.
15404 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15405 Pass on pending signals to PTRACE_DETACH. Check the result of the
15407 * server.c (program_signals, program_signals_p): New.
15408 (handle_general_set): Handle QProgramSignals.
15409 * server.h (program_signals, program_signals_p): Declare.
15411 2012-03-05 Pedro Alves <palves@redhat.com>
15412 Jan Kratochvil <jan.kratochvil@redhat.com>
15414 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15417 2012-03-03 Yao Qi <yao@codesourcery.com>
15419 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15420 agent_look_up_symbols.
15422 2012-03-03 Yao Qi <yao@codesourcery.com>
15424 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15425 (linux-x86-low.o): Likewise.
15426 * server.h: Remove in_process_agent_loaded.
15427 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15431 2012-03-03 Yao Qi <yao@codesourcery.com>
15433 * tracepoint.c (gdb_agent_capability): New global.
15434 (in_process_agent_loaded_ust): Renamed to
15435 `in_process_agent_supports_ust'.
15437 (in_process_agent_supports_ust): Call agent_capability_check.
15438 (clear_installed_tracepoints): Assert that agent supports
15441 2012-03-03 Yao Qi <yao@codesourcery.com>
15443 * linux-low.c (linux_supports_agent): New.
15444 (linux_target_ops): Initialize field `supports_agent' with
15445 linux_supports_agent.
15446 * target.h (struct target_ops) <supports_agent>: New.
15447 (target_supports_agent): New macro.
15448 * server.c (handle_general_set): Handle packet 'QAgent'.
15449 (handle_query): Send `QAgent+'.
15450 * Makefile.in (server.o): Depends on agent.h.
15452 2012-03-03 Yao Qi <yao@codesourcery.com>
15454 * Makefile.in (OBS): Add agent.o.
15455 Add new rule for agent.o.
15456 Track dependence of tracepoint.c on agent.h.
15457 * tracepoint.c (run_inferior_command_1):
15458 (run_inferior_command): Call agent_run_command.
15459 (gdb_ust_connect_sync_socket): Deleted. Move it to
15461 (resume_thread, stop_thread): Likewise.
15462 (gdb_ust_socket_init): Renamed to ...
15463 (gdb_agent_socket_init): ... New.
15464 (gdb_ust_thread): Renamed to ...
15465 (gdb_agent_helper_thread): ... New.
15466 (gdb_ust_init): Move some code to ...
15467 (gdb_agent_init): ... here. New.
15468 [HAVE_UST]: Call gdb_ust_init.
15469 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15470 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15471 * config.in, configure: Regenerated.
15473 2012-03-02 Pedro Alves <palves@redhat.com>
15475 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15476 * linux-low.c (struct simple_pid_list): New.
15477 (stopped_pids): New a struct simple_pid_list pointer.
15478 (add_to_pid_list, pull_pid_from_list): New.
15479 (handle_extended_wait): Don't assume the first signal new children
15480 report is SIGSTOP. Adjust call to pull_pid_from_list.
15481 (linux_wait_for_lwp): Adjust.
15483 2012-03-02 Yao Qi <yao@codesourcery.com>
15485 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15488 2012-03-02 Yao Qi <yao@codesourcery.com>
15490 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15491 `stop_pc' and `tpoint'. Update caller.
15493 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15495 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15496 * linux-low.c (use_linux_regsets): New macro.
15497 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15498 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15499 (linux_register_in_regsets): New function.
15500 (usr_fetch_inferior_registers): Skip registers covered by
15502 (usr_store_inferior_registers): Likewise.
15503 (usr_fetch_inferior_registers): New macro.
15504 (usr_store_inferior_registers): Likewise.
15505 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15506 (linux_store_registers): Likewise.
15507 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15509 (init_registers_mips64_dsp_linux): Likewise.
15510 (init_registers_mips_linux): New macro.
15511 (init_registers_mips_dsp_linux): Likewise.
15512 (mips_dsp_num_regs): Likewise.
15513 (DSP_BASE, DSP_CONTROL): New fallback macros.
15514 (mips_base_regs): New macro.
15515 (mips_regmap): Use it. Fix the size.
15516 (mips_dsp_regmap): New variable.
15517 (mips_dsp_regset_bitmap): Likewise.
15518 (mips_arch_setup): New function.
15519 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15521 (mips_cannot_store_register): Likewise.
15522 (the_low_target): Update .arch_setup, .num_regs and .regmap
15523 initializers. Add .regset_bitmap initializer.
15524 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15526 * linux-bfin-low.c (the_low_target): Likewise.
15527 * linux-cris-low.c (the_low_target): Likewise.
15528 * linux-crisv32-low.c (the_low_target): Likewise.
15529 * linux-ia64-low.c (the_low_target): Likewise.
15530 * linux-m32r-low.c (the_low_target): Likewise.
15531 * linux-m68k-low.c (the_low_target): Likewise.
15532 * linux-ppc-low.c (the_low_target): Likewise.
15533 * linux-s390-low.c (the_low_target): Likewise.
15534 * linux-sh-low.c (the_low_target): Likewise.
15535 * linux-sparc-low.c (the_low_target): Likewise.
15536 * linux-tic6x-low.c (the_low_target): Likewise.
15537 * linux-x86-low.c (the_low_target): Likewise.
15538 * linux-xtensa-low.c (the_low_target): Likewise.
15539 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15540 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15541 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15543 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15544 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15546 2012-02-29 Yao Qi <yao@codesourcery.com>
15547 Pedro Alves <palves@redhat.com>
15549 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15550 `step_over_finished' is true.
15552 2012-02-27 Pedro Alves <palves@redhat.com>
15554 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15555 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15557 2012-02-27 Pedro Alves <palves@redhat.com>
15560 * linux-low.c (pid_is_stopped): New.
15561 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15563 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15565 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15568 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15570 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15572 2012-02-24 Luis Machado <lgustavo@codesourcery>
15574 * server.c (handle_query): Advertise support for target-side
15575 breakpoint condition evaluation.
15576 (process_point_options): New function.
15577 (process_serial_event): When inserting a breakpoint, check for
15578 a target-side condition that should be evaluated.
15580 * mem-break.c: Include regcache.h and ax.h.
15581 (point_cond_list_t): New data structure.
15582 (breakpoint) <cond_list>: New field.
15583 (find_gdb_breakpoint_at): Make non-static.
15584 (delete_gdb_breakpoint_at): Clear any target-side
15586 (clear_gdb_breakpoint_conditions): New function.
15587 (add_condition_to_breakpoint): Likewise.
15588 (add_breakpoint_condition): Likewise.
15589 (gdb_condition_true_at_breakpoint): Likewise.
15590 (gdb_breakpoint_here): Return result directly instead
15591 of going through a local variable.
15593 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15594 (clear_gdb_breakpoint_conditions): Likewise.
15595 (add_breakpoint_condition): Likewise.
15596 (gdb_condition_true_at_breakpoint): Likewise.
15598 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15599 (need_step_over_p): Take target-side breakpoint condition into
15602 2012-02-24 Luis Machado <lgustavo@codesourcery>
15604 * server.h: Include tracepoint.h.
15605 (agent_mem_read, agent_get_trace_state_variable_value,
15606 agent_set_trace_state_variable_value,
15607 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15608 get_set_tsv_func_addr): New prototypes.
15610 * ax.h: New include file.
15611 * ax.c: New source file.
15613 * tracepoint.c: Include ax.h.
15614 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15615 agent_expr, eval_result_type): Move to ax.h.
15616 (parse_agent_expr): Rename to ...
15617 (gdb_parse_agent_expr): ... this, make it non-static and move
15619 (unparse_agent_expr) Rename to ...
15620 (gdb_unparse_agent_expr): ... this, make it non-static and move
15622 (eval_agent_expr): Rename to ...
15623 (eval_tracepoint_agent_expr): ... this.
15624 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15625 forward declarations.
15626 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15627 (agent_get_trace_state_variable_value): New function.
15628 (agent_set_trace_state_variable_value): New function.
15629 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15630 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15631 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15632 (condition_true_at_tracepoint): Likewise.
15633 (parse_agent_expr): Rename to ...
15634 (gdb_parse_agent_expr): ... this and move to ax.c.
15635 (unparse_agent_expr): Rename to ...
15636 (gdb_unparse_agent_expr): ... this and move to ax.c.
15637 (gdb_agent_op_name): Move to ax.c.
15638 (eval_agent_expr): Rename to ...
15639 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15641 (eval_tracepoint_agent_expr): New function.
15642 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15644 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15646 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15647 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15648 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15649 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15650 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15651 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15652 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15653 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15654 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15655 (compile_bytecodes): Remove forward declaration.
15656 (is_goto_target): Move to ax.c.
15657 (compile_bytecodes): Move to ax.c and call
15658 agent_get_trace_state_variable_value (...) and
15659 agent_set_trace_state_variable_value (...).
15661 * Makefile.in: Update ax.c and IPA dependencies.
15663 2012-02-24 Pedro Alves <palves@redhat.com>
15665 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15666 (cmd_bigqtbuffer_circular): ... this. Only handle
15667 'QTBuffer:circular:'.
15668 (handle_tracepoint_general_set): Adjust.
15670 2012-02-16 Yao Qi <yao@codesourcery.com>
15672 * inferiors.c: Move code to ...
15673 * dll.c: .... here. New.
15674 * server.h: Declare clear_dlls.
15675 * Makefile.in (SFILES): Add dll.c.
15679 2012-02-11 Yao Qi <yao@codesourcery.com>
15681 * server.c: (handle_monitor_command): Add a new parameter
15683 (handle_query): Update caller.
15685 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15687 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15688 * configure, config.in: Regenerate.
15689 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15692 2012-02-02 Pedro Alves <palves@redhat.com>
15694 Try SIGKILL first, then PTRACE_KILL.
15695 * linux-low.c (linux_kill_one_lwp): New.
15696 (linux_kill_one_lwp): Rename to ...
15697 (kill_one_lwp_callback): ... this. Use the new
15698 linux_kill_one_lwp.
15700 2012-02-02 Pedro Alves <palves@redhat.com>
15702 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15705 2012-01-27 Pedro Alves <palves@redhat.com>
15707 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15708 (elf_64_file_p): Make static.
15709 (linux_pid_exe_is_elf_64_file): New.
15710 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15711 Delete declarations.
15712 (linux_pid_exe_is_elf_64_file): Declare.
15713 * linux-x86-low.c (x86_arch_setup): Use
15714 linux_pid_exe_is_elf_64_file.
15716 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15718 * linux-low.c (linux_wait_for_event_1): Rename to ...
15719 (linux_wait_for_event): ... here and merge it with former
15720 linux_wait_for_event - new variable wait_ptid, use it.
15721 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15723 2012-01-23 Pedro Alves <palves@redhat.com>
15725 * server.c (main): Avoid yet another case of infinite loop while
15726 detaching/killing after a longjmp.
15728 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15731 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15733 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15735 * hostio.c (handle_readlink): New function.
15736 (handle_vFile): Call it to handle "vFile:readlink" packets.
15738 2012-01-20 Pedro Alves <palves@redhat.com>
15739 Ulrich Weigand <ulrich.weigand@linaro.org>
15741 * server.c (handle_v_requests): Only support vAttach and vRun to
15742 start multiple processes when in extended protocol mode.
15744 2012-01-17 Pedro Alves <palves@redhat.com>
15746 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15747 memalign plus mprotect to allocate the scratch buffer.
15749 2012-01-13 Pedro Alves <palves@redhat.com>
15751 * server.c (attach_inferior): Clear `cont_thread'.
15753 2012-01-13 Pedro Alves <palves@redhat.com>
15755 * server.c (main): Avoid infinite loop while detaching/killing
15758 2012-01-09 Doug Evans <dje@google.com>
15760 * server.c (start_inferior): Set last_ptid in --wrapper case.
15762 2012-01-06 Yao Qi <yao@codesourcery.com>
15764 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15766 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15768 2012-01-04 Yao Qi <yao@codesourcery.com>
15770 * tracepoint.c (cmd_qtdp): Print debug message
15771 for static tracepoint.
15773 2012-01-04 Yao Qi <yao@codesourcery.com>
15775 * tracepoint.c (trace_vdebug): Differentiate debug message
15776 between gdbserver and IPA.
15778 2012-01-03 Yao Qi <yao@codesourcery.com>
15780 * tracepoint.c (tracepoint_was_hit): Don't collect for
15783 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15785 * terminal.h: Reformat copyright header.
15787 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15789 * server.c (gdbserver_version): Update copyright year.
15790 * gdbreplay.c (gdbreplay_version): Likewise.
15792 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15794 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15797 2011-12-18 Hui Zhu <teawater@gmail.com>
15798 * linux-low.c (linux_create_inferior): Save return value to ret.
15800 2011-12-18 Hui Zhu <teawater@gmail.com>
15802 * linux-low.c (linux_create_inferior): Save return value to ret.
15804 2011-12-16 Doug Evans <dje@google.com>
15806 * linux-low.c (linux_create_inferior): If stdio connection,
15807 redirect stdin from /dev/null, stdout to stderr.
15808 * remote-utils.c (remote_is_stdio): New static global.
15809 (remote_connection_is_stdio): New function.
15810 (remote_prepare): Handle stdio connection.
15811 (remote_open): Ditto.
15812 (remote_close): Don't close stdin for stdio connections.
15813 (read_prim,write_prim): New functions. Replace all calls to
15814 read/write to these.
15815 * server.c (main): Watch for "-" argument. Move call to
15816 remote_prepare before start_inferior.
15817 * server.h (STDIO_CONNECTION_NAME): New macro.
15818 (remote_connection_is_stdio): Declare.
15820 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15821 in debugging output.
15823 2011-12-15 Yao Qi <yao@codesourcery.com>
15825 * tracepoint.c: Include sys/syscall.h.
15826 (gdb_ust_thread): Remove preprocessor conditional.
15828 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15830 * linux-low.c (linux_detach_one_lwp): Call
15831 the_low_target.prepare_to_resume before detaching.
15833 2011-12-14 Yao Qi <yao@codesourcery.com>
15835 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15838 2011-12-14 Yao Qi <yao@codesourcery.com>
15840 * i386-low.c (i386_low_stopped_data_address): Initialize local
15841 variable `control'.
15843 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15847 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15848 DR_CONTROL unless necessary. Extend comments.
15849 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15850 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15852 2011-12-13 Yao Qi <yao@codesourcery.com>
15854 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15856 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15858 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15860 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15861 Print new debug message for such case.
15863 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15865 Fix overlapping memcpy.
15866 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15867 the read_inferior_memory transfer.
15868 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15869 write_inferior_memory transfer.
15870 (set_fast_tracepoint_jump): New variable buf. Use it for the
15871 read_inferior_memory and write_inferior_memory transfers.
15872 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15873 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15874 Use it for the write_inferior_memory transfer.
15875 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15878 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15880 * linux-low.c (fetch_register, store_register): Make code
15881 consistent, fix formatting.
15883 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15885 * linux-low.c (usr_store_inferior_registers): Factor out code
15886 to handle individual registers into...
15887 (store_register): ... this new function.
15889 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15891 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15892 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15893 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15894 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15895 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15896 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15897 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15898 (srv_xmlfiles): Add new XML files.
15900 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15902 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15903 (init_registers_s390_linux32v1): Add prototype.
15904 (init_registers_s390_linux32v2): Likewise.
15905 (init_registers_s390_linux64v1): Likewise.
15906 (init_registers_s390_linux64v2): Likewise.
15907 (init_registers_s390x_linux64v1): Likewise.
15908 (init_registers_s390x_linux64v2): Likewise.
15909 (s390_num_regs): Increment to 52.
15910 (s390_regmap): Add orig_r2 register.
15911 (s390_num_regs_3264): Increment to 68.
15912 (s390_regmap_3264): Add orig_r2 register.
15913 (s390_collect_ptrace_register): Handle orig_r2 register.
15914 (s390_supply_ptrace_register): Likewise.
15915 (s390_fill_last_break): New function.
15916 (s390_store_last_break): Likewise.
15917 (s390_fill_system_call): New function.
15918 (s390_store_system_call): Likewise.
15919 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15921 (s390_check_regset): New function.
15922 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15923 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15924 Update target_regsets for available register sets.
15926 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15927 Jan Kratochvil <jan.kratochvil@redhat.com>
15929 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15930 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15932 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15933 * linux-low.h (struct process_info_private): New member r_debug.
15934 * server.c (handle_qxfer_libraries): Call
15935 the_target->qxfer_libraries_svr4.
15936 (handle_qxfer_libraries_svr4): New function.
15937 (qxfer_packets): New entry "libraries-svr4".
15938 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15939 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15940 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15941 PACKET_qXfer_libraries_svr4.
15943 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15945 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15946 PSW address/mask between 8-byte and 16-byte formats.
15947 (s390_supply_ptrace_register): Likewise.
15948 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15949 basic addressing mode bit.
15951 2011-11-24 Stan Shebs <stan@codesourcery.com>
15953 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15955 2011-11-17 Stan Shebs <stan@codesourcery.com>
15957 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15958 (tracing_start_time): New global.
15959 (tracing_stop_time): New global.
15960 (tracing_user_name): New global.
15961 (tracing_notes): New global.
15962 (tracing_stop_note): New global.
15963 (cmd_qtstart): Set traceframe_usage, start_time.
15964 (stop_tracing): Set stop_time.
15965 (cmd_qtstatus): Report additional status.
15966 (cmd_qtp): New function.
15967 (handle_tracepoint_query): Call it.
15968 (cmd_qtnotes): New function.
15969 (handle_tracepoint_general_set): Call it.
15970 (get_timestamp): Rename from tsv_get_timestamp.
15972 2011-11-14 Stan Shebs <stan@codesourcery.com>
15973 Kwok Cheung Yeung <kcy@codesourcery.com>
15975 * linux-x86-low.c (small_jump_insn): New.
15976 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15977 trampoline and error message, build a trampoline and issue a small
15978 jump instruction to it.
15979 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15980 trampoline and error message.
15981 (x86_get_min_fast_tracepoint_insn_len): New.
15982 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15983 * linux-low.h (struct linux_target_ops): Add arguments to
15984 install_fast_tracepoint_jump_pad operation, add new operation.
15985 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15987 (linux_get_min_fast_tracepoint_insn_len): New function.
15988 (linux_target_op): Add new operation.
15989 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15990 (gdb_trampoline_buffer_end): Ditto.
15991 (gdb_trampoline_buffer_error): Ditto.
15992 (struct ipa_sym_addresses): Add fields for new IPA variables.
15993 (symbol_list): Add entries for new IPA variables.
15994 (struct tracepoint): Add fields to hold the address range of the
15995 trampoline used by the tracepoint.
15996 (trampoline_buffer_head): New static variable.
15997 (trampoline_buffer_tail): Ditto.
15998 (claim_trampoline_space): New function.
15999 (have_fast_tracepoint_trampoline_buffer): New function.
16000 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16002 (install_fast_tracepoint): Ditto, also add error buffer argument.
16003 (cmd_qtminftpilen): New function.
16004 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16005 (fast_tracepoint_from_trampoline_address): New function.
16006 (fast_tracepoint_collecting): Handle trampoline as part of jump
16008 (set_trampoline_buffer_space): New function.
16009 (initialize_tracepoint): Initialize new IPA variables.
16010 * target.h (struct target_ops): Add arguments to
16011 install_fast_tracepoint_jump_pad operation, add new
16012 get_min_fast_tracepoint_insn_len operation.
16013 (target_get_min_fast_tracepoint_insn_len): New.
16014 (install_fast_tracepoint_jump_pad): Add arguments.
16015 * server.h (IPA_BUFSIZ): Define.
16016 * linux-i386-ipa.c: Include extra header files.
16017 (initialize_fast_tracepoint_trampoline_buffer): New function.
16018 (initialize_low_tracepoint): Call it.
16019 * server.h (set_trampoline_buffer_space): Declare.
16020 (claim_trampoline_space): Ditto.
16021 (have_fast_tracepoint_trampoline_buffer): Ditto.
16023 2011-11-14 Yao Qi <yao@codesourcery.com>
16025 * server.c (handle_query): Handle InstallInTrace for qSupported.
16026 * tracepoint.c (add_tracepoint): Sort list.
16027 (install_tracepoint, download_tracepoint): New.
16028 (cmd_qtdp): Call them to install and download tracepoints.
16029 (sort_tracepoints): Removed.
16030 (cmd_qtstart): Update.
16032 2011-11-14 Yao Qi <yao@codesourcery.com>
16034 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16035 * mem-break.h: Declare.
16036 * tracepoint.c (cmd_qtstart): Move some code to ...
16037 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16039 (download_tracepoints): Move some code to ...
16040 (download_tracepoint_1): ... here. New.
16042 2011-11-08 Yao Qi <yao@codesourcery.com>
16044 * remote-utils.c (relocate_instruction): A comment fix.
16046 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16048 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16049 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16050 dr_status_mirror and dr_control_mirror from debug_reg_state.
16051 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16052 (i386_initial_stuff): Remove use of deleted globals.
16053 (i386_get_thread_context, i386_set_thread_context,
16054 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16055 from debug_reg_state.
16057 2011-11-05 Yao Qi <yao@codesourcery.com>
16059 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16060 address as TPOINT's.
16062 2011-11-02 Stan Shebs <stan@codesourcery.com>
16064 * tracepoint.c (agent_mem_read_string): New function.
16065 (eval_agent_expr): Call it for tracenz.
16066 * server.c (handle_query): Report support for tracenz.
16068 2011-11-02 Yao Qi <yao@codesourcery.com>
16070 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16072 2011-11-02 Yao Qi <yao@codesourcery.com>
16074 * target.h: Fix a typo in comment.
16076 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16078 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16079 clobber the breakpoints' shadows with fast tracepoint jumps.
16080 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16081 * target.c (write_inferior_memory): Also pass MYADDR down to
16084 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16086 * configure.ac: Check support for personality routine.
16087 * configure: Regenerate.
16088 * config.in: Likewise.
16089 * linux-low.c: Include <sys/personality.h>.
16090 Define ADDR_NO_RANDOMIZE if necessary.
16091 (linux_create_inferior): Disable address space randomization when
16092 forking inferior, if requested.
16093 (linux_supports_disable_randomization): New function.
16094 (linux_target_ops): Install it.
16095 * server.h (disable_randomization): Declare.
16096 * server.c (disable_randomization): New global variable.
16097 (handle_general_set): Handle QDisableRandomization.
16098 (handle_query): Likewise for qSupported.
16099 (main): Support --disable-randomization and --no-disable-randomization
16100 command line arguments.
16101 * target.h (struct target_ops): Add supports_disable_randomization.
16102 (target_supports_disable_randomization): New macro.
16104 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16106 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16108 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16109 [!PT_GETDSBT] (target_loadmap): New definition.
16110 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16111 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16112 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16113 and PT_GETDSBT to LINUX_LOADMAP.
16114 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16115 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16117 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16119 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16120 (arm_linux_hwbp_cap): New static variable.
16121 (arm_linux_get_hwbp_cap): Replace by ...
16122 (arm_linux_init_hwbp_cap): ... this new function.
16123 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16124 (arm_linux_get_hw_watchpoint_count): Likewise.
16125 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16126 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16127 (arm_prepare_to_resume): Use perror_with_name instead of error.
16129 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16131 * linux-arm-low.c: Include <signal.h>.
16132 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16133 (struct arm_linux_hwbp_cap): New data type.
16134 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16135 (struct arm_linux_hw_breakpoint): New data type.
16136 (MAX_BPTS, MAX_WPTS): Define.
16137 (struct arch_process_info, struct arch_lwp_info): New data types.
16138 (arm_linux_get_hwbp_cap): New function.
16139 (arm_linux_get_hw_breakpoint_count): Likewise.
16140 (arm_linux_get_hw_watchpoint_count): Likewise.
16141 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16142 (arm_hwbp_control_initialize): Likewise.
16143 (arm_hwbp_control_is_enabled): Likewise.
16144 (arm_hwbp_control_is_initialized): Likewise.
16145 (arm_hwbp_control_disable): Likewise.
16146 (arm_linux_hw_breakpoint_equal): Likewise.
16147 (arm_linux_hw_point_initialize): Likewise.
16148 (struct update_registers_data): New data structure.
16149 (update_registers_callback: New function.
16150 (arm_insert_point): Likewise.
16151 (arm_remove_point): Likewise.
16152 (arm_stopped_by_watchpoint): Likewise.
16153 (arm_stopped_data_address): Likewise.
16154 (arm_new_process): Likewise.
16155 (arm_new_thread): Likewise.
16156 (arm_prepare_to_resume): Likewise.
16157 (the_low_target): Register arm_insert_point, arm_remove_point,
16158 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16159 arm_new_thread, and arm_prepare_to_resume.
16161 2011-09-15 Stan Shebs <stan@codesourcery.com>
16163 * server.h (struct emit_ops): Add compare-goto fields.
16164 * tracepoint.c (gdb_agent_op_sizes): New table.
16165 (emit_eq_goto): New function.
16166 (emit_ne_goto): New function.
16167 (emit_lt_goto): New function.
16168 (emit_le_goto): New function.
16169 (emit_gt_goto): New function.
16170 (emit_ge_goto): New function.
16171 (is_goto_target): New function.
16172 (compile_bytecodes): Recognize special cases of compare-goto
16173 combinations and call specialized emitters for them.
16174 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16175 (amd64_emit_ne_goto): New function.
16176 (amd64_emit_lt_goto): New function.
16177 (amd64_emit_le_goto): New function.
16178 (amd64_emit_gt_goto): New function.
16179 (amd64_emit_ge_goto): New function.
16180 (amd64_emit_ops): Add the new functions.
16181 (i386_emit_eq_goto): New function.
16182 (i386_emit_ne_goto): New function.
16183 (i386_emit_lt_goto): New function.
16184 (i386_emit_le_goto): New function.
16185 (i386_emit_gt_goto): New function.
16186 (i386_emit_ge_goto): New function.
16187 (i386_emit_ops): Add the new functions.
16189 2011-09-08 Stan Shebs <stan@codesourcery.com>
16191 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16192 (i386_emit_epilogue): Restore %ebx.
16194 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16196 * server.c (step_thread): Remove definition.
16197 (process_serial_event): Don't handle Hs.
16198 * server.h (step_thread): Remove declaration.
16199 * target.c (set_desired_inferior): Remove use of step_thread.
16201 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16203 * linux-low.c: Include linux-procfs.h.
16204 (linux_attach_lwp_1): Update comments.
16205 (linux_attach): Scan for existing threads when attaching to a
16206 process that is the tgid.
16207 * Makefile.in: Update dependencies.
16209 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16211 * configure.srv: Add linux-procfs.o dependencies.
16213 2011-08-14 Yao Qi <yao@codesourcery.com>
16215 * target.h (struct target_ops): Fix indent.
16216 * win32-low.c (win32_target_ops): Fix comment.
16218 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16219 Yao Qi <yao@codesourcery.com>
16221 * Makefile.in (clean): Remove tic6x-*.c files.
16222 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16223 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16224 (tic6x-c64xp-linux.c): Likewise.
16225 * configure.srv: Add support for tic6x-*-uclinux.
16226 * linux-tic6x-low.c: New.
16227 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16229 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16230 Yao Qi <yao@codesourcery.com>
16232 * target.h (struct target_ops): Add read_loadmap.
16233 * linux-low.c (struct target_loadseg): New type.
16234 (struct target_loadmap): New type.
16235 (linux_read_loadmap): New function.
16236 (linux_target_ops): Add linux_read_loadmap.
16237 * server.c (handle_query): Support qXfer:fdpic:read packet.
16238 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16241 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16243 * win32-low.c: Include <stdint.h>.
16245 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16247 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16248 to the inferior here.
16249 (i386_remove_aligned_watchpoint): Ditto.
16250 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16251 fit part of the watchpoint in the debug registers.
16252 (i386_update_inferior_debug_regs): New.
16253 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16254 registers, and only update the inferior on success.
16255 (i386_low_remove_watchpoint): Ditto.
16257 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16259 * linux-low.c (compare_ints, unique, list_threads, show_process,
16260 linux_core_of_thread): Delete.
16261 (linux_target_ops): Change linux_core_of_thread to
16262 linux_common_core_of_thread.
16263 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16264 * utils.c (malloc_failure): Change type of argument.
16265 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16266 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16267 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16268 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16269 (IPA_OBJS): Add common-utils-ipa.o.
16270 (ptid_h, linux_osdata_h): New macros.
16271 (server_h): Add common/common-utils.h, common/xml-utils.h,
16272 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16274 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16275 ptid.o, buffer.o): New rules.
16276 (linux-low.o): Add common/linux-osdata.h as a dependency.
16277 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16278 * configure.ac: Add AC_HEADER_DIRENT check.
16279 * config.in: Regenerate.
16280 * configure: Regenerate.
16281 * remote-utils.c (xml_escape_text): Delete.
16282 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16283 buffer_xml_printf): Move to common/buffer.c.
16284 * server.c (main): Remove call to initialize_inferiors.
16285 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16286 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16287 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16288 internal_error, gdb_assert, gdb_assert_fail): Delete.
16289 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16290 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16292 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16293 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16294 initialize_inferiors): Delete.
16296 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16298 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16301 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16303 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16305 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16307 2011-05-26 Yao Qi <yao@codesourcery.com>
16309 * Makefile.in (thread-db.o): Track dependence to
16310 common/gdb_thread_db.h.
16311 * thread-db.c: include gdb_thread_db.h from right place.
16313 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16315 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16316 __FILE__ and __LINE__ to internal_error.
16318 2011-05-13 Doug Evans <dje@google.com>
16320 * thread-db.c (try_thread_db_load_from_sdir): New function.
16321 (try_thread_db_load_from_dir): New function.
16322 (thread_db_load_search): Handle $sdir, ignore $pdir.
16323 Remove trying of system directories if search of
16324 libthread-db-search-path fails, that is now done via $sdir.
16326 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16328 * server.c (handle_query): Add EnableDisableTracepoints to the list
16329 of supported features.
16330 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16332 (cmd_qtenable_disable): New.
16333 (cmd_qtstart): Install tracepoints even if disabled.
16334 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16335 receiving a QTEnable or QTDisable packet.
16336 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16337 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16339 (gdb_probe): Skip data collection if static tracepoint is disabled.
16341 2011-05-10 Doug Evans <dje@google.com>
16343 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16345 2011-05-04 Doug Evans <dje@google.com>
16347 * linux-low.c (linux_join): Skip process lookup.
16348 * spu-low.c (spu_join): Ditto.
16349 * server.c (join_inferiors_callback): Delete.
16350 (process_serial_event): For 'D' packet (detach) call join_inferior
16353 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16355 * README: Don't mention xscale*-*-linux*.
16356 * configure.srv (xscale*-*-linux*): Don't handle target.
16358 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16360 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16362 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16363 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16364 (i386_emit_void_call_2): Likewise.
16366 2011-04-26 Yao Qi <yao@codesourcery.com>
16368 * linux-low.c: Move common macros to linux-ptrace.h.
16369 Include linux-ptrace.h.
16370 * Makefile.in (linux_ptrace_h): New.
16371 (linux-low.o): Depends on linux-ptrace.h.
16373 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16375 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16376 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16377 (remote_prepare): New function with most of the TCP code from ...
16378 (remote_open): ... here. Detect PORT here unconditionally. Move also
16379 setting transport_is_reliable.
16380 * server.c (run_once): New variable.
16381 (gdbserver_usage): Document it.
16382 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16383 the first run if RUN_ONCE.
16384 * server.h (run_once, remote_prepare): New declarations.
16386 2011-04-19 Tom Tromey <tromey@redhat.com>
16388 * win32-low.c (handle_load_dll): Remove duplicate "the".
16390 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16392 Remove support for old Cygwin 1.5 versions.
16393 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16394 function to avoid warning.
16395 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16398 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16400 * gdbserver/server.h (Macro _): Define it if not available.
16402 2011-03-14 Michael Snyder <msnyder@vmware.com>
16404 * hostio.c (handle_close): Remove unnecessary null test.
16406 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16408 * Makefile.in (maintainer-clean realclean distclean): Remove
16409 "make ... subdir_do" command.
16411 2011-03-10 Michael Snyder <msnyder@vmware.com>
16413 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16415 * server.c (handle_v_run): Free alloced buffer on early return.
16417 2011-03-09 Yao Qi <yao@codesourcery.com>
16420 2011-03-04 Yao Qi <yao@codesourcery.com>
16422 * Makefile.in: Remove GNU make feature --directory.
16424 2011-03-05 Yao Qi <yao@codesourcery.com>
16426 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16427 (subdir_do): New make target. Copied from gdb/Makefile.
16428 (maintainer-clean, realclean, distclean, clean): Call corresponding
16429 make targets in common/Makefile.
16431 2011-02-11 Yao Qi <yao@codesourcery.com>
16433 * configure.ac: Call AC_PROG_RANLIB.
16434 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16435 * configure: Regenerate.
16437 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16439 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16441 2011-03-06 Yao Qi <yao@codesourcery.com>
16443 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16445 2011-03-05 Yao Qi <yao@codesourcery.com>
16447 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16448 (subdir_do): New make target. Copied from gdb/Makefile.
16449 (maintainer-clean, realclean, distclean, clean): Call corresponding
16450 make targets in common/Makefile.
16452 2011-03-04 Yao Qi <yao@codesourcery.com>
16454 * Makefile.in: Remove GNU make feature --directory.
16456 2011-03-04 Michael Snyder <msnyder@vmware.com>
16458 * server.c (queue_stop_reply): Call xmalloc not malloc.
16460 2011-03-02 Michael Snyder <msnyder@vmware.com>
16462 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16464 2011-02-28 Michael Snyder <msnyder@vmware.com>
16466 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16467 (cmd_qtframe): Ditto.
16468 (cmd_qtbuffer): Ditto.
16469 (cmd_bigqtbuffer): Ditto.
16471 * utils.c (decimal2str): Initialize 'width' to nine, then
16472 don't mess with it.
16474 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16476 * hostio.c (require_data): Free *data, not data.
16478 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16480 * hostio.c (require_data): Use free, not xfree.
16482 2011-02-27 Michael Snyder <msnyder@vmware.com>
16484 * server.c (handle_query): Discard unused value.
16486 * hostio.c (require_data): Free malloc memory before returning
16489 2011-02-26 Michael Snyder <msnyder@vmware.com>
16491 * linux-low.c (list_threads): Call closedir for dirent.
16493 2011-02-27 Michael Snyder <msnyder@vmware.com>
16495 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16496 a case statement falls through.
16498 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16500 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16503 2011-02-26 Michael Snyder <msnyder@vmware.com>
16505 * utils.c (decimal2str): Eliminate dead code and dead param.
16506 (pulongest): Drop dead param from call to decimal2str.
16509 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16511 Revert the following patch (not approved yet):
16512 2011-02-21 Hui Zhu <teawater@gmail.com>
16513 * tracepoint.c (tp_printf): New function.
16514 (eval_agent_expr): Handle gdb_agent_op_printf.
16516 2011-02-21 Hui Zhu <teawater@gmail.com>
16518 * tracepoint.c (tp_printf): New function.
16519 (eval_agent_expr): Handle gdb_agent_op_printf.
16521 2011-02-18 Tom Tromey <tromey@redhat.com>
16523 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16524 (tracepoint.o): Likewise.
16525 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16526 (gdb_agent_op_names): Likewise.
16528 2011-02-18 Tom Tromey <tromey@redhat.com>
16530 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16531 gdb_agent_op_rot>: New constants.
16532 (gdb_agent_op_names): Add pick and roll.
16533 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16536 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16538 * aclocal.m4: Regenerated with aclocal-1.11.1.
16540 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16542 * server.c (handle_qxfer_traceframe_info): New.
16543 (qxfer_packets): Register "traceframe-info".
16544 (handle_query): Report support for qXfer:traceframe-info:read+.
16545 * tracepoint.c (match_blocktype): New.
16546 (traceframe_find_block_type): Rename to ...
16547 (traceframe_walk_blocks): ... this. Add callback filter argument,
16549 (traceframe_find_block_type): New, reimplemented on top of
16550 traceframe_walk_blocks.
16551 (build_traceframe_info_xml): New.
16552 (traceframe_read_info): New.
16553 * server.h (traceframe_read_info): Declare.
16555 2011-02-11 Yao Qi <yao@codesourcery.com>
16557 * configure.ac: Call AC_PROG_RANLIB.
16558 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16559 * configure: Regenerate.
16561 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16563 * server.c (gdb_read_memory): Change return semantics to allow
16565 (handle_search_memory_1): Adjust.
16566 (process_serial_event) <'m' packet>: Handle partial transfers.
16567 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16569 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16571 * regcache.c (init_register_cache): Initialize
16572 regcache->register_status.
16573 (free_register_cache): Release regcache->register_status.
16574 (regcache_cpy): Copy register_status.
16575 (registers_to_string): Print 'x's for unavailable registers.
16576 (supply_register): Mark the register's status valid or
16577 unavailable, depending on whether a buffer was passed in or not.
16578 (supply_register_zeroed): New.
16579 (supply_regblock): Mark the registers' status valid or
16580 unavailable, depending on whether a buffer was passed in or not.
16581 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16582 (struct regcache): New `register_status' field.
16583 (supply_register_zeroed): Declare.
16584 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16585 supply_register_zeroed, rather than passing a NULL buffer to
16587 * tracepoint.c (fetch_traceframe_registers): Update comment.
16589 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16591 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16594 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16596 * server.h (decode_xfer_write): Change prototype.
16597 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16598 and don't extract the annex here.
16599 * server.c (decode_xfer_read): Remove `annex' parameter,
16600 and don't extract the annex here.
16601 (decode_xfer): New.
16602 (struct qxfer): New.
16603 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16604 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16605 (handle_qxfer_statictrace): New functions, abstracted out from
16606 handle_query, and made to use the struct qxfer interface.
16607 (handle_threads_qxfer_proper): Rename to ...
16608 (handle_qxfer_threads_proper): ... this.
16609 (handle_threads_qxfer): Rename to ...
16610 (handle_qxfer_threads): ... this. Adjust.
16611 (qxfer_packets): New array.
16612 (handle_qxfer): New function.
16613 (handle_query): Use handle_qxfer.
16615 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16617 * gdbreplay.c: Shorten lines of >= 80 columns.
16618 * linux-low.c: Ditto.
16619 * linux-ppc-low.c: Ditto.
16620 * linux-s390-low.c: Ditto.
16621 * linux-sparc-low.c: Ditto.
16622 * linux-x86-low.c: Ditto.
16623 * linux-xtensa-low.c: Ditto.
16624 * mem-break.c: Ditto.
16625 * nto-low.c: Ditto.
16626 * regcache.h: Ditto.
16627 * remote-utils.c: Ditto.
16630 * thread-db.c: Ditto.
16631 * tracepoint.c: Ditto.
16633 * win32-low.h: Ditto.
16635 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16637 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16640 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16642 * server.c (gdbserver_version): Update copyright year in version
16644 * gdbreplay.c (gdbreplay_version): Ditto.
16646 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16648 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16649 * linux-bfin-low.c: New file.
16650 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16651 PT_DATA_ADDR for BFIN targets.
16652 * Makefile.in (SFILES): Add linux-bfin-low.c.
16653 (clean): Remove reg-bfin.c.
16654 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16655 * README: Mention supported Blackfin targets.
16657 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16659 * .gitignore: New file.
16661 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16663 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16665 2010-10-22 Jie Zhang <jie@codesourcery.com>
16667 * Makefile.in: Add FLAGS_TO_PASS variable.
16668 (install): Remove dependency of install-only and recursively
16669 invoke make for install-only.
16671 2010-10-04 Doug Evans <dje@google.com>
16673 * Makefile.in (uninstall): Use $(DESTDIR).
16675 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16679 * linux-x86-low.c (compat_siginfo_from_siginfo)
16680 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16681 si_code is < 0. Check for si_code == SI_TIMER before checking for
16684 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16686 * lynx-i386-low.c: New file.
16687 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16689 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16691 * lynx-low.c (ptrace_request_to_str): Remove handling for
16692 request values that have been removed in LynxOS 5.x.
16694 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16696 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16699 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16701 * configure.ac: Add --enable-inprocess-agent option.
16702 * configure: Rebuilt.
16704 2010-09-06 Yao Qi <yao@codesourcery.com>
16706 * linux-low.c (linux_kill): Remove unused variable.
16707 (linux_stabilize_threads): Likewise.
16708 * server.c (start_inferior): Likewise.
16709 (queue_stop_reply_callback): Likewise.
16710 * tracepoint.c (do_action_at_tracepoint): Likewise.
16712 2010-09-06 Yao Qi <yao@codesourcery.com>
16714 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16717 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16719 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16721 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16723 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16726 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16728 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16729 gdbserver/lynx-ppc-low.c: New files.
16730 * Makefile.in (lynx_low_h): New variable.
16731 (lynx-low.o, lynx-ppc-low.o): New rules.
16732 * configure.ac: On LynxOS, link with -lnetinet.
16733 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16734 * configure: regenerate.
16736 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16738 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16739 * configure.ac: Add check for vasprintf and vsnprintf.
16740 * configure, config.in: Regenerate.
16741 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16743 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16745 * gdbreplay.c: Move include of alloca.h up, next to include of
16747 * server.h: Add include of malloc.h.
16748 * mem-break.c: Remove include of malloc.h.
16749 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16751 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16753 * Makefile.in (memmem.o): Build with -Wno-error.
16755 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16757 * utils.c (xsnprintf): Make non-static.
16758 * server.h: Add xsnprintf declaration.
16759 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16760 replace calls to snprintf by calls to xsnprintf throughout.
16762 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16764 * configure.ac: Add configure check for alloca.
16765 * configure, config.in: Regenerate.
16766 * server.h: Include alloca.h if it exists.
16767 * gdbreplay.c: Include alloca.h if it exists.
16769 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16771 * linux-low.c (__SIGRTMIN): Define if not already defined.
16772 (linux_create_inferior): Check for __ANDROID__ rather than
16774 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16775 are already deferred.
16776 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16777 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16778 stopped and already has a pending signal to report.
16779 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16780 a pending signal to report or is moving out of a jump pad.
16781 (linux_init_signals): Check for __ANDROID__ rather than
16784 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16786 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16787 debug_threads check. Avoid a linear search when not doing debug
16790 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16792 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16793 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16794 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16795 (process_event): Change local fd's type to gdb_fildes_t.
16796 (create_file_handler): Adjust prototype.
16797 (delete_file_handler): Adjust prototype.
16798 (handle_file_event): Adjust prototype. Use pfildes.
16799 (create_file_event): Adjsut prototype.
16800 * remote-utils.c (remote_desc, listen_desc): Change type to
16802 * server.h: New gdb_fildes_t typedef.
16803 [USE_WIN32API]: Include winsock2.h.
16804 (delete_file_handler, add_file_handler): Adjust prototypes.
16805 (pfildes): Declare.
16806 * utils.c (pfildes): New.
16808 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16810 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16811 * configure: Regenerate.
16813 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16815 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16816 (linux_done_accessing_memory): ... this.
16817 (linux_target_ops): Adjust.
16818 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16819 * nto-low.c (nto_target_ops): Adjust comment.
16820 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16821 * spu-low.c (spu_target_ops): Adjust comment.
16822 * target.h (target_ops): Rename unprepare_to_access_memory field
16823 to done_accessing_memory.
16824 (unprepare_to_access_memory): Rename to ...
16825 (done_accessing_memory): ... this.
16827 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16829 * linux-low.c (linux_prepare_to_access_memory): New.
16830 (linux_unprepare_to_access_memory): New.
16831 (linux_target_ops): Install them.
16832 * server.c (read_memory): Rename to ...
16833 (gdb_read_memory): ... this. Use
16834 prepare_to_access_memory/prepare_to_access_memory.
16835 (write_memory): Rename to ...
16836 (gdb_write_memory): ... this. Use
16837 prepare_to_access_memory/prepare_to_access_memory.
16838 (handle_search_memory_1): Adjust.
16839 (process_serial_event): Adjust.
16840 * target.h (struct target_ops): New fields
16841 prepare_to_access_memory and unprepare_to_access_memory.
16842 (prepare_to_access_memory, unprepare_to_access_memory): New.
16843 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16844 prepare_to_access_memory/prepare_to_access_memory.
16845 * nto-low.c (nto_target_ops): Adjust.
16846 * spu-low.c (spu_target_ops): Adjust.
16847 * win32-low.c (win32_target_ops): Adjust.
16849 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16851 * Makefile.in (WARN_CFLAGS): Get it from configure.
16852 (WERROR_CFLAGS): New.
16853 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16854 * configure.ac: Introduce --enable-werror, which adds -Werror to
16855 the compiler command line. Enabled by default. Disable with
16856 --disable-werror. Add -Wdeclaration-after-statement
16857 Wpointer-arith and -Wformat-nonliteral to warning flags.
16858 * configure: Regenerate.
16860 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16862 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16864 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16866 * gdbreplay.c (remote_error): New.
16868 (expect): Use gdbchar. Check for error reading from GDB.
16869 Clarify sync error output.
16870 (play): Check for errors writing to GDB.
16871 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16872 * remote-utils.c (getpkt): Check for errors writing to the remote
16875 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16877 * linux-low.c (linux_wait_1): Move non-debugging code out of
16878 `debug_threads' control.
16880 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16882 * linux-low.c (linux_wait_1): Don't set last_status here.
16883 * server.c (push_event, queue_stop_reply_callback): Assert we're
16884 not pushing a TARGET_WAITKIND_IGNORE event.
16885 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16886 (myresume, handle_target_event): Set the thread's last_resume_kind
16887 and last_status from the target returned status.
16889 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16893 * linux-x86-low.c (update_debug_registers_callback): New.
16894 (i386_dr_low_set_addr): Use it.
16895 (i386_dr_low_get_addr): New.
16896 (i386_dr_low_set_control): Use update_debug_registers_callback.
16897 (i386_dr_low_get_control): New.
16898 (i386_dr_low_get_status): Adjust.
16899 * linux-low.c (linux_stop_lwp): New.
16900 * linux-low.h (linux_stop_lwp): Declare.
16902 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16903 argument instead of a i386_debug_reg_state.
16904 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16905 a i386_debug_reg_state.
16906 (i386_insert_aligned_watchpoint): Adjust.
16907 (i386_remove_aligned_watchpoint): Adjust.
16908 (i386_low_stopped_data_address): Read the debug registers from the
16909 inferior instead of from the mirrors.
16910 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16911 (i386_dr_low_get_addr): Declare.
16912 (i386_dr_low_get_control): Declare.
16913 (i386_dr_low_get_status): Change prototype.
16915 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16916 (i386_dr_low_get_addr): New.
16917 (i386_dr_low_get_control): New.
16918 (i386_dr_low_get_status): Adjust prototype. Return
16920 (i386_initial_stuff): Clear dr_status_mirror and
16922 (i386_get_thread_context): Adjust.
16923 (i386_set_thread_context): Adjust.
16924 (i386_thread_added): Adjust.
16926 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16928 * linux-low.h (linux_thread_area): Delete declaration.
16930 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16932 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16933 after its termination.
16935 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16937 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16938 (gdb_wants_all_stopped): Delete.
16939 (linux_wait_1): Don't call them.
16940 * server.c (handle_v_cont): Tag all threads as want-stopped.
16941 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16942 stopped as "client-wants-stopped".
16944 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16946 * Makefile.in (signals_h): New.
16947 (server_h): Depend on it.
16948 (server.o): Don't depend on $(signals_def).
16949 (signals.o): Depend on $(signals_def).
16951 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16953 * Makefile.in (signals_def): New.
16954 (server_h): Append include/gdb/signals.h and signals_def.
16955 (server.o): Append signals_def.
16957 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16959 * server.c (handle_target_event): Use target_signal_to_host for
16960 resume_info.sig initialization.
16961 * target.h (struct thread_resume) <sig>: New comment.
16963 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16965 * server.c (handle_query): strcpy() the returned string from paddress()
16966 instead of sprintf().
16967 * utils.c (paddress): Return phex_nz().
16969 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16971 * server.c (handle_v_cont): Call mourn_inferior if process
16973 (myresume): Likewise.
16975 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16977 Static tracepoints, and integration with UST.
16979 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16980 * mem-break.c (uninsert_all_breakpoints)
16981 (reinsert_all_breakpoints): New.
16982 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16983 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16984 (gdb_agent_ust_loaded, helper_thread_id)
16985 (gdb_agent_helper_thread_id): New macros.
16986 (struct ipa_sym_addresses): Add addr_ust_loaded,
16987 addr_helper_thread_id, addr_cmd_buf.
16988 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16989 (in_process_agent_loaded_ust): New.
16990 (write_e_ust_not_loaded): New.
16991 (maybe_write_ipa_ust_not_loaded): New.
16992 (struct collect_static_trace_data_action): New.
16993 (enum tracepoint_type) <static_tracepoint>: New.
16994 (struct tracepoint) <handle>: Mention static tracepoints.
16995 (struct static_tracepoint_ctx): New.
16996 (CMD_BUF_SIZE): New.
16997 (add_tracepoint_action): Handle static tracepoint actions.
16998 (unprobe_marker_at): New.
16999 (clear_installed_tracepoints): Handle static tracepoints.
17000 (cmd_qtdp): Handle static tracepoints.
17001 (probe_marker_at): New.
17002 (cmd_qtstart): Handle static tracepoints.
17003 (response_tracepoint): Handle static tracepoints.
17004 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17005 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17006 (get_context_regcache): Handle static tracepoints.
17007 (do_action_at_tracepoint): Handle static tracepoint actions.
17008 (traceframe_find_block_type): Handle static trace data blocks.
17009 (traceframe_read_sdata): New.
17010 (download_tracepoints): Download static tracepoint actions.
17011 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17012 (GDB_PROBE_NAME): New.
17014 (GET_UST_SYM): New.
17017 (ust_marker_to_static_tracepoint): New.
17019 (collect_ust_data_at_tracepoint): New.
17020 (gdb_ust_probe): New.
17021 (UNIX_PATH_MAX, SOCK_DIR): New.
17022 (gdb_ust_connect_sync_socket): New.
17023 (resume_thread, stop_thread): New.
17024 (run_inferior_command): New.
17025 (init_named_socket): New.
17026 (gdb_ust_socket_init): New.
17027 (cstr_to_hexstr): New.
17029 (first_marker, next_marker): New.
17030 (response_ust_marker): New.
17031 (cmd_qtfstm, cmd_qtsstm): New.
17032 (unprobe_marker_at, probe_marker_at): New.
17033 (cmd_qtstmat, gdb_ust_thread): New.
17034 (gdb_ust_init): New.
17035 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17036 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17037 (ST_REGENTRY): New.
17038 (x86_64_st_collect_regmap): New.
17039 (X86_64_NUM_ST_COLLECT_GREGS): New.
17040 (AMD64_RIP_REGNUM): New.
17041 (supply_static_tracepoint_registers): New.
17042 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17043 (ST_REGENTRY): New.
17044 (i386_st_collect_regmap): New.
17045 (i386_NUM_ST_COLLECT_GREGS): New.
17046 (supply_static_tracepoint_registers): New.
17047 * server.c (handle_query): Handle qXfer:statictrace:read.
17048 <qSupported>: Report support for StaticTracepoints, and
17049 qXfer:statictrace:read features.
17050 * server.h (traceframe_read_sdata)
17051 (supply_static_tracepoint_registers): Declare.
17052 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17053 (unpack_varlen_hex): Include in IPA build.
17054 * Makefile.in (ustlibs, ustinc): New.
17055 (IPA_OBJS): Add remote-utils-ipa.o.
17056 ($(IPA_LIB)): Link -ldl and -lpthread.
17058 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17059 * config.in, configure: Regenerate.
17061 2010-06-20 Ian Lance Taylor <iant@google.com>
17062 Pedro Alves <pedro@codesourcery.com>
17064 * linux-x86-low.c (always_true): Delete.
17065 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17066 trying to fool the compiler with always_true.
17068 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17070 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17071 conditions in gdbserver.
17073 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17075 * spu-low.c (spu_read_memory): Wrap around local store limit.
17076 (spu_write_memory): Likewise.
17078 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17080 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17081 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17083 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17085 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17086 uses with LONGEST uses.
17088 2010-06-14 Stan Shebs <stan@codesourcery.com>
17089 Pedro Alves <pedro@codesourcery.com>
17093 * linux-x86-low.c: Include limits.h.
17095 (always_true): New.
17098 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17099 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17100 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17101 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17102 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17103 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17104 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17105 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17106 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17107 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17108 (amd64_emit_void_call_2): New.
17109 (amd64_emit_ops): New.
17110 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17111 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17112 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17113 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17114 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17115 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17116 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17117 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17118 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17119 (i386_emit_stack_adjust, i386_emit_int_call_1)
17120 (i386_emit_void_call_2): New.
17121 (i386_emit_ops): New.
17122 (x86_emit_ops): New.
17123 (the_low_target): Install x86_emit_ops.
17124 * server.h (struct emit_ops): New.
17125 (get_raw_reg_func_addr): Declare.
17126 (current_insn_ptr, emit_error): Declare.
17127 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17128 (set_trace_state_variable_value): New defines.
17129 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17130 addr_get_trace_state_variable_value and
17131 addr_set_trace_state_variable_value.
17132 (symbol_list): New fields for get_raw_reg,
17133 get_trace_state_variable_value and set_trace_state_variable_value.
17134 (condfn): New typedef.
17135 (struct tracepoint): New field `compiled_cond'.
17136 (do_action_at_tracepoint): Clear compiled_cond.
17137 (get_trace_state_variable_value, set_trace_state_variable_value):
17139 (condition_true_at_tracepoint): If there's a compiled condition,
17141 (current_insn_ptr, emit_error): New globals.
17142 (struct bytecode_address): New.
17143 (get_raw_reg_func_addr): New.
17144 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17145 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17146 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17147 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17148 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17149 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17150 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17151 (compile_tracepoint_condition, compile_bytecodes): New.
17152 * target.h (emit_ops): Forward declare.
17153 (struct target_ops): New field emit_ops.
17154 (target_emit_ops): New.
17155 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17156 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17157 * linux-low.c (linux_emit_ops): New.
17158 (linux_target_ops): Install it.
17159 * linux-low.h (struct linux_target_ops): New field emit_ops.
17161 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17163 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17164 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17166 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17167 Stan Shebs <stan@codesourcery.com>
17169 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17170 (all): Depend on $(extra_libraries).
17171 (install-only): Install the IPA.
17172 (IPA_OBJS, IPA_LIB): New.
17173 (clean): Remove the IPA lib.
17174 (IPAGENT_CFLAGS): New.
17175 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17176 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17177 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17178 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17179 * configure.ac: Check for atomic builtins support in the compiler.
17180 (IPA_DEPFILES, extra_libraries): Define.
17181 * configure.srv (ipa_obj): Add description.
17182 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17183 (i[34567]86-*-linux*): Set ipa_obj.
17184 (x86_64-*-linux*): Set ipa_obj.
17185 * linux-low.c (stabilizing_threads): New.
17186 (supports_fast_tracepoints): New.
17187 (linux_detach): Stabilize threads before detaching.
17188 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17189 the lwp is either not stabilizing, or is moving out of a jump pad.
17190 (linux_fast_tracepoint_collecting): New.
17191 (maybe_move_out_of_jump_pad): New.
17192 (enqueue_one_deferred_signal): New.
17193 (dequeue_one_deferred_signal): New.
17194 (linux_wait_for_event_1): If moving out of a jump pad, defer
17195 pending signals to later.
17196 (linux_stabilize_threads): New.
17197 (linux_wait_1): Check if threads need moving out of jump pads, and
17199 (stuck_in_jump_pad_callback): New.
17200 (move_out_of_jump_pad_callback): New.
17201 (lwp_running): New.
17202 (linux_resume_one_lwp): Handle moving out of jump pads.
17203 (linux_set_resume_request): Dequeue deferred signals.
17204 (need_step_over_p): Also step over fast tracepoint jumps.
17205 (start_step_over): Also uninsert fast tracepoint jumps.
17206 (finish_step_over): Also reinsert fast tracepoint jumps.
17207 (linux_install_fast_tracepoint_jump): New.
17208 (linux_target_ops): Install linux_stabilize_threads and
17209 linux_install_fast_tracepoint_jump_pad.
17210 * linux-low.h (linux_target_ops) <get_thread_area,
17211 install_fast_tracepoint_jump_pad>: New fields.
17212 (struct lwp_info) <collecting_fast_tracepoint,
17213 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17214 (linux_get_thread_area): Declare.
17215 * linux-x86-low.c (jump_insn): New.
17216 (x86_get_thread_area): New.
17217 (append_insns): New.
17218 (push_opcode): New.
17219 (amd64_install_fast_tracepoint_jump_pad): New.
17220 (i386_install_fast_tracepoint_jump_pad): New.
17221 (x86_install_fast_tracepoint_jump_pad): New.
17222 (the_low_target): Install x86_get_thread_area and
17223 x86_install_fast_tracepoint_jump_pad.
17224 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17225 (struct fast_tracepoint_jump): New.
17226 (fast_tracepoint_jump_insn): New.
17227 (fast_tracepoint_jump_shadow): New.
17228 (find_fast_tracepoint_jump_at): New.
17229 (fast_tracepoint_jump_here): New.
17230 (delete_fast_tracepoint_jump): New.
17231 (set_fast_tracepoint_jump): New.
17232 (uninsert_fast_tracepoint_jumps_at): New.
17233 (reinsert_fast_tracepoint_jumps_at): New.
17234 (set_breakpoint_at): Use write_inferior_memory.
17235 (uninsert_raw_breakpoint): Use write_inferior_memory.
17236 (check_mem_read): Mask out fast tracepoint jumps.
17237 (check_mem_write): Mask out fast tracepoint jumps.
17238 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17239 (set_fast_tracepoint_jump): Declare.
17240 (delete_fast_tracepoint_jump)
17241 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17242 (reinsert_fast_tracepoint_jumps_at): Declare.
17243 * regcache.c: Don't compile many functions when building the
17244 in-process agent library.
17245 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17246 the register buffer in the heap.
17247 (free_register_cache): If the register buffer isn't owned by the
17248 regcache, don't free it.
17249 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17250 pre-existing register caches.
17251 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17253 (convert_ascii_to_int): : Constify `from' parameter type.
17254 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17255 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17256 the needed buffer in-place.
17257 (relocate_instruction): New.
17258 * server.c (handle_query) <qSymbols>: If the target supports
17259 tracepoints, give it a chance of looking up symbols. Report
17260 support for fast tracepoints.
17261 (handle_status): Stabilize threads.
17262 (process_serial_event): Adjust.
17263 * server.h (struct fast_tracepoint_jump): Forward declare.
17264 (struct process_info) <fast_tracepoint_jumps>: New field.
17265 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17266 (decode_X_packet, decode_M_packet): Adjust.
17267 (relocate_instruction): Declare.
17268 (in_process_agent_loaded): Declare.
17269 (tracepoint_look_up_symbols): Declare.
17270 (struct fast_tpoint_collect_status): Declare.
17271 (fast_tracepoint_collecting): Declare.
17272 (force_unlock_trace_buffer): Declare.
17273 (handle_tracepoint_bkpts): Declare.
17274 (initialize_low_tracepoint)
17275 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17276 * target.h (struct target_ops) <stabilize_threads,
17277 install_fast_tracepoint_jump_pad>: New fields.
17278 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17279 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17280 [HAVE_STDINT_H]: Include stdint.h.
17281 (trace_debug_1): Rename to ...
17282 (trace_vdebug): ... this.
17283 (trace_debug): Rename to ...
17284 (trace_debug_1): ... this. Add `level' parameter.
17285 (trace_debug): New.
17286 (ATTR_USED, ATTR_NOINLINE): New.
17287 (IP_AGENT_EXPORT): New.
17288 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17289 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17290 (about_to_request_buffer_space, trace_buffer_is_full)
17291 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17292 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17293 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17294 (traceframe_write_count, traceframes_created)
17295 (trace_state_variables)
17296 New renaming defines.
17297 (struct ipa_sym_addresses): New.
17298 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17299 (symbol_list): New.
17300 (ipa_sym_addrs): New.
17301 (all_tracepoint_symbols_looked_up): New.
17302 (in_process_agent_loaded): New.
17303 (write_e_ipa_not_loaded): New.
17304 (maybe_write_ipa_not_loaded): New.
17305 (tracepoint_look_up_symbols): New.
17306 (debug_threads) [IN_PROCESS_AGENT]: New.
17307 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17308 (UNKNOWN_SIDE_EFFECTS): New.
17309 (stop_tracing): New.
17310 (flush_trace_buffer): New.
17311 (stop_tracing_bkpt): New.
17312 (flush_trace_buffer_bkpt): New.
17313 (read_inferior_integer): New.
17314 (read_inferior_uinteger): New.
17315 (read_inferior_data_pointer): New.
17316 (write_inferior_data_pointer): New.
17317 (write_inferior_integer): New.
17318 (write_inferior_uinteger): New.
17319 (struct collect_static_trace_data_action): Delete.
17320 (enum tracepoint_type): New.
17321 (struct tracepoint) <type>: New field `type'.
17322 <actions_str, step_actions, step_actions_str>: Only include in
17324 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17325 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17326 (tracepoints): Use IP_AGENT_EXPORT.
17327 (last_tracepoint): Don't include in the IPA.
17328 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17329 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17330 (alloced_trace_state_variables): New.
17331 (trace_state_variables): Use IP_AGENT_EXPORT.
17332 (traceframe_t): Delete unused variable.
17333 (circular_trace_buffer): Don't include in the IPA.
17334 (trace_buffer_start): Delete.
17335 (struct trace_buffer_control): New.
17336 (trace_buffer_free): Delete.
17337 (struct ipa_trace_buffer_control): New.
17338 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17339 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17341 (trace_buffer_ctrl): New.
17342 (TRACE_BUFFER_CTRL_CURR): New.
17343 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17344 Reimplement as macros.
17345 (trace_buffer_wrap): Delete.
17346 (traceframe_write_count, traceframe_read_count)
17347 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17348 (struct tracepoint_hit_ctx) <type>: New field.
17349 (struct fast_tracepoint_ctx): New.
17350 (memory_barrier): New.
17352 (record_tracepoint_error): Update atomically in the IPA.
17353 (clear_inferior_trace_buffer): New.
17354 (about_to_request_buffer_space): New.
17355 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17356 updating the same buffer.
17357 (add_tracepoint): Default the tracepoint's type to trap
17358 tracepoint, and orig_size to -1.
17359 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17360 internal variables.
17361 (create_trace_state_variable): New parameter `gdb'. Handle it.
17362 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17363 (cmd_qtdp): Handle fast tracepoints.
17364 (cmd_qtdv): Adjust.
17365 (max_jump_pad_size): New.
17366 (gdb_jump_pad_head): New.
17367 (get_jump_space_head): New.
17368 (claim_jump_space): New.
17369 (sort_tracepoints): New.
17370 (MAX_JUMP_SIZE): New.
17371 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17373 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17374 support. Upload fast traceframes, and delete internal IPA
17376 (stop_tracing_handler): New.
17377 (flush_trace_buffer_handler): New.
17378 (cmd_qtstop): Upload fast tracepoints.
17379 (response_tracepoint): Handle fast tracepoints.
17380 (tracepoint_finished_step): Upload fast traceframes. Set the
17381 tracepoint hit context's tracepoint type.
17382 (handle_tracepoint_bkpts): New.
17383 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17384 type. Add comment about fast tracepoints.
17385 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17386 non-existing action_str field.
17387 (get_context_regcache): Handle fast tracepoints.
17388 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17390 (fast_tracepoint_from_jump_pad_address): New.
17391 (fast_tracepoint_from_ipa_tpoint_address): New.
17392 (collecting_t): New.
17393 (force_unlock_trace_buffer): New.
17394 (fast_tracepoint_collecting): New.
17396 (gdb_collect): New.
17397 (write_inferior_data_ptr): New.
17398 (target_tp_heap): New.
17399 (target_malloc): New.
17400 (download_agent_expr): New.
17402 (download_tracepoints): New.
17403 (download_trace_state_variables): New.
17404 (upload_fast_traceframes): New.
17405 (IPA_FIRST_TRACEFRAME): New.
17406 (IPA_NEXT_TRACEFRAME_1): New.
17407 (IPA_NEXT_TRACEFRAME): New.
17408 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17409 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17410 (gdb_jump_pad_buffer_end): New.
17411 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17412 (initialize_tracepoint): Adjust.
17413 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17414 buffer. Initialize the low module.
17415 * utils.c (PREFIX, TOOLNAME): New.
17416 (malloc_failure): Use PREFIX.
17417 (error): In the IPA, an error causes an exit.
17418 (fatal, warning): Use PREFIX.
17419 (internal_error): Use TOOLNAME.
17420 (NUMCELLS): Increase to 10.
17421 * configure, config.in: Regenerate.
17423 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17425 * server.c (handle_query) <qSupported>: Do two passes over the
17426 qSupported string to avoid nesting strtok.
17428 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17430 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17432 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17433 -Wl,--dynamic-list.
17434 * configure: Regenerate.
17435 * proc-service.list: New.
17437 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17439 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17442 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17444 * gdbreplay.c (remote_open): Check error return from socket() call by
17445 its equality to -1 not by it being negative.
17446 * remote-utils.c (remote_open): Likewise.
17448 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17450 * config.h: Regenerate.
17452 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17454 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17455 doesn't provide PTRACE_GET_THREAD_AREA.
17457 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17459 * linux-m68k-low.c: Include <asm/ptrace.h>
17460 (ps_get_thread_area): Implement.
17462 2010-05-03 Doug Evans <dje@google.com>
17464 * event-loop.c (struct callback_event): New struct.
17465 (callback_list): New global.
17466 (append_callback_event, delete_callback_event): New functions.
17467 (process_callback): New function.
17468 (start_event_loop): Call it.
17469 * remote-utils.c (NOT_SCHEDULED): Define.
17470 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17471 moved out of readchar.
17472 (readchar): Rewrite. Call reschedule before returning.
17473 (reset_readchar): New function.
17474 (remote_close): Call it.
17475 (process_remaining, reschedule): New functions.
17476 * server.h (callback_handler_func): New typedef.
17477 (append_callback_event, delete_callback_event): Declare.
17479 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17481 * proc-service.c (ps_pglobal_lookup): Use
17482 thread_db_look_up_one_symbol.
17483 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17484 parameter. Use it instead of all_symbols_looked_up.
17485 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17487 (all_symbols_looked_up): Don't declare.
17488 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17489 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17491 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17492 Set all_symbols_looked_up here.
17493 (thread_db_look_up_one_symbol): New.
17494 (thread_db_get_tls_address): Adjust.
17495 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17496 thread_db object on the heap, and tentatively set it in the
17498 (thread_db_init): Don't set all_symbols_looked_up here.
17499 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17501 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17503 * linux-low.c (linux_kill, linux_detach): Adjust.
17504 (status_pending_p_callback): Remove redundant statement. Check
17505 for !TARGET_WAITIKIND_IGNORE, instead of
17506 TARGET_WAITKIND_STOPPED.
17507 (handle_tracepoints): Make sure LWP is locked. Adjust.
17508 (linux_wait_for_event_1): Adjust.
17509 (linux_cancel_breakpoints): New.
17510 (unsuspend_one_lwp): New.
17511 (unsuspend_all_lwps): New.
17512 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17513 (send_sigstop_callback): Change return type to int, add new
17514 `except' parameter and handle it.
17515 (suspend_and_send_sigstop_callback): New.
17516 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17517 pass them down. If SUSPEND, also increment the lwp's suspend
17519 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17520 (need_step_over_p): Don't consider suspended LWPs.
17521 (start_step_over): Adjust.
17522 (proceed_one_lwp): Change return type to int, add new `except'
17523 parameter and handle it.
17524 (unsuspend_and_proceed_one_lwp): New.
17525 (proceed_all_lwps): Use find_inferior instead of
17527 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17528 also decrement the suspend count of LWPs. Pass `except' down,
17529 instead of hacking its suspend count.
17530 (linux_pause_all): Add `freeze' parameter. Adjust.
17531 (linux_unpause_all): New.
17532 (linux_target_ops): Install linux_unpause_all.
17533 * server.c (handle_status): Adjust.
17534 * target.h (struct target_ops): New fields `unpause_all' and
17535 `cancel_breakpoints'. Add new parameter to `pause_all'.
17536 (pause_all): Add new `freeze' parameter.
17537 (unpause_all): New.
17538 (cancel_breakpoints): New.
17539 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17540 cancel breakpoints.
17541 (cmd_qtstart): Pause threads.
17542 (stop_tracing): Pause threads, and cancel breakpoints.
17543 * win32-low.c (win32_target_ops): Adjust.
17545 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17547 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17548 the inferior right away from here...
17549 (linux_wait_1): ... to here, and adjust to check the thread's
17550 last_resume_kind instead of the lwp's step or stop_expected flags.
17552 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17554 * README: Use consistent `GDB' and `GDBserver' spellings.
17556 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17558 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17559 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17560 (linux_detach_one_lwp): Assume the lwp is stopped.
17561 (any_thread_of): Delete.
17562 (linux_detach): Stop all lwps here. Don't blindly delete all
17564 (delete_lwp_callback): New.
17565 (linux_mourn): Delete all lwps of the process that is gone.
17566 (linux_wait_1): Don't delete the last lwp of the process here.
17567 * mem-break.h (mark_breakpoints_out): Declare.
17568 * mem-break.c (mark_breakpoints_out): New.
17569 (free_all_breakpoints): Use it.
17570 * server.c (handle_target_event): If the process is gone, mark
17572 * thread-db.c (struct thread_db) <create_bp>: New field.
17573 (thread_db_enable_reporting): Fix prototype. Store a thread event
17574 breakpoint reference in the thread_db struct.
17575 (thread_db_load_search): Clear the thread_db object.
17576 (try_thread_db_load_1): Ditto.
17577 (switch_to_process): New.
17578 (disable_thread_event_reporting): Use it.
17579 (remove_thread_event_breakpoints): New.
17580 (thread_db_detach, thread_db_mourn): Use it.
17582 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17584 * linux-low.c (linux_enable_event_reporting): New.
17585 (linux_wait_for_event_1, handle_extended_wait): Use it.
17587 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17589 * linux-low.c (linux_kill_one_lwp, linux_kill)
17590 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17591 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17592 SIGSTOP even if the LWP is stopped.
17593 (send_sigstop_callback): New.
17594 (stop_all_lwps): Use send_sigstop_callback instead.
17595 (linux_resume_one_thread): Adjust.
17596 (proceed_one_lwp): Still proceed an LWP that the client has
17597 requested to stop, if we haven't reported it as stopped yet. Make
17598 sure that LWPs the client want stopped, have a pending SIGSTOP.
17600 2010-04-26 Doug Evans <dje@google.com>
17602 * server.c (handle_general_set): Make static.
17604 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17605 Print received char after testing for error/eof instead of before.
17606 (input_interrupt): Tweak comment.
17608 2010-04-23 Doug Evans <dje@google.com>
17610 * server.c (start_inferior): Print inferior argv if --debug.
17612 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17614 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17615 * nto-x86-low.c: Include server.h
17617 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17619 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17620 be consistent with other sources of this directory.
17621 (init_registers_amd64): Correct name of source file of this function
17624 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17626 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17627 64-bit executables.
17629 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17631 * win32-i386-low.c: Add 64-bit support.
17632 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17633 (init_registers_amd64): Declare.
17634 (mappings): Add 64-bit version of array.
17635 (init_windows_x86): New function.
17636 (the_low_target): Change init_arch field to init_windows_x86.
17638 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17640 * win32-low.c: Adapt to support also 64-bit architecture.
17641 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17642 (get_image_name): Use SIZE_T type for local variable `done'.
17643 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17644 (toolhelp_get_dll_name): Idem.
17645 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17646 Use uintptr_t typecast to avoid warning.
17647 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17648 (handle_exception): Use phex_nz to avoid warning.
17649 (win32_wait): Remove unused local variable `process'.
17651 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17653 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17656 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17658 * configure.ac: Use `ws2_32' library for srv_mingw.
17659 * configure: Regenerate.
17660 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17661 * remote-utils.c: Likewise.
17663 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17665 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17666 if __x86_64__ is defined.
17668 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17670 * configure: Regenerate.
17672 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17674 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17675 * target.h (target_ops): New get_tib_address field.
17676 * win32-low.h (win32_thread_info): Add thread_local_base field.
17677 * win32-low.c (child_add_thread): Add tlb argument.
17678 Set thread_local_base field to TLB.
17679 (get_child_debug_event): Adapt to child_add_thread change.
17680 (win32_get_tib_address): New function.
17681 (win32_target_ops): Set get_tib_address field to
17682 win32_get_tib_address.
17683 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17685 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17687 * linux-low.c (linux_mourn): Also remove the process.
17688 * server.c (handle_target_event): Don't remove the process here.
17689 * nto-low.c (nto_mourn): New.
17690 (nto_target_ops): Install it.
17691 * spu-low.c (spu_mourn): New.
17692 (spu_target_ops): Install it.
17693 * win32-low.c (win32_mourn): New.
17694 (win32_target_ops): Install it.
17696 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17698 * server.h (buffer_xml_printf): Remove redundant `;'.
17700 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17702 * regcache.c (set_register_cache): Invalidate regcaches before
17703 changing the register cache layout.
17704 (regcache_invalidate_one): Allow a NULL regcache.
17705 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17706 regcaches before changing the register cache layout or the target
17709 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17711 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17712 variable warning on Linux/x86-64.
17714 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17716 GDBserver disconnected tracing support.
17718 * linux-low.c (linux_remove_process): Delete.
17719 (add_lwp): Don't set last_resume_kind here.
17720 (linux_kill): Use `mourn'.
17721 (linux_detach): Use `thread_db_detach', and `mourn'.
17722 (linux_mourn): New.
17723 (linux_attach_lwp_1): Adjust comment.
17724 (linux_attach): last_resume_kind moved the thread_info; adjust.
17725 (status_pending_p_callback): Adjust.
17726 (linux_wait_for_event_1): Adjust.
17727 (count_events_callback, select_singlestep_lwp_callback)
17728 (select_event_lwp_callback, cancel_breakpoints_callback)
17729 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17730 (proceed_one_lwp): Adjust.
17731 (linux_async): Add debug output.
17732 (linux_thread_stopped): New.
17733 (linux_pause_all): New.
17734 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17736 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17737 (thread_db_free): Delete declaration.
17738 (thread_db_detach, thread_db_mourn): Declare.
17739 * thread-db.c (thread_db_init): Use thread_db_mourn.
17740 (thread_db_free): Delete, split in two.
17741 (disable_thread_event_reporting): New.
17742 (thread_db_detach): New.
17743 (thread_db_mourn): New.
17745 * server.h (struct thread_info) <last_resume_kind>: New field.
17746 <attached>: Add comment.
17747 <gdb_detached>: New field.
17748 (handler_func): Change return type to int.
17749 (handle_serial_event, handle_target_event): Ditto.
17750 (gdb_connected): Declare.
17752 (disconnected_tracing): Declare.
17753 (stop_tracing): Declare.
17755 * server.c (handle_query) <qSupported>: Report support for
17756 disconnected tracing.
17757 (queue_stop_reply_callback): Account for running threads.
17758 (gdb_wants_thread_stopped): New.
17759 (gdb_wants_all_threads_stopped): New.
17760 (gdb_reattached_process): New.
17761 (handle_status): Clear the `gdb_detached' flag of all processes.
17762 In all-stop, stop all threads.
17763 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17764 (process_serial_event): If the remote connection breaks, or if an
17765 exit was forced with "monitor exit", force an event loop exit.
17766 Handle disconnected tracing on detach.
17767 (handle_serial_event): Adjust.
17768 (handle_target_event): If GDB isn't connected, forward events back
17769 to the inferior, unless the last process exited, in which case,
17770 exit gdbserver. Adjust interface.
17772 * remote-utils.c (remote_open): Don't block in accept. Instead
17773 register an event loop source on the listen socket file
17774 descriptor. Refactor bits into ...
17775 (listen_desc): ... this new global.
17776 (gdb_connected): ... this new function.
17777 (enable_async_notification): ... this new function.
17778 (handle_accept_event): ... this new function.
17779 (remote_close): Clear remote_desc.
17781 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17783 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17785 (mourn_inferior): Define.
17786 (target_process_qsupported): Avoid the dangling else problem.
17787 (thread_stopped): Define.
17788 (pause_all): Define.
17789 (target_waitstatus_to_string): Declare.
17790 * target.c (target_waitstatus_to_string): New.
17792 * tracepoint.c (tracing): Make extern.
17793 (disconnected_tracing): New.
17794 (stop_tracing): Make extern. Handle tracing stops due to GDB
17796 (cmd_qtdisconnected): New.
17797 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17798 (handle_tracepoint_general_set): Handle QTDisconnected.
17800 * event-loop.c (event_handler_func): Change return type to int.
17801 (process_event): Bail out if the event handler wants the event
17803 (handle_file_event): Ditto.
17804 (start_event_loop): Bail out if the event handler wants the event
17807 * nto-low.c (nto_target_ops): Adjust.
17808 * spu-low.c (spu_wait): Don't remove the process here.
17809 (spu_target_ops): Adjust.
17810 * win32-low.c (win32_wait): Don't remove the process here.
17811 (win32_target_ops): Adjust.
17813 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17815 * regcache.c (realloc_register_cache): Invalidate inferior's
17816 regcache before recreating it.
17818 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17820 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17822 2010-04-09 Stan Shebs <stan@codesourcery.com>
17823 Pedro Alves <pedro@codesourcery.com>
17825 * server.h (LONGEST): New.
17826 (struct thread_info) <while_stepping>: New field.
17827 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17829 (initialize_tracepoint, handle_tracepoint_general_set)
17830 (handle_tracepoint_query, tracepoint_finished_step)
17831 (tracepoint_was_hit, release_while_stepping_state_list):
17832 (current_traceframe): Declare.
17833 * server.c (handle_general_set): Handle tracepoint packets.
17834 (read_memory): New.
17835 (write_memory): New.
17836 (handle_search_memory_1): Use read_memory.
17837 (handle_query): Report support for conditional tracepoints, trace
17838 state variables, and tracepoint sources. Handle tracepoint
17840 (main): Initialize the tracepoints module.
17841 (process_serial_event): Handle traceframe reads/writes.
17843 * linux-low.c (handle_tracepoints): New.
17844 (linux_wait_1): Call it.
17845 (linux_resume_one_lwp): Handle while-stepping.
17846 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17847 (linux_target_ops): Install them.
17848 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17850 * linux-x86-low.c (x86_supports_tracepoints): New.
17851 (the_low_target). Install it.
17853 * mem-break.h (delete_breakpoint): Declare.
17854 * mem-break.c (delete_breakpoint): Make external.
17856 * target.h (struct target_ops): Add `supports_tracepoints',
17857 `read_pc', and `write_pc' fields.
17858 (target_supports_tracepoints): Define.
17859 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17862 * regcache.h (struct regcache) <registers_owned>: New field.
17863 (init_register_cache, regcache_cpy): Declare.
17864 (regcache_read_pc, regcache_write_pc): Declare.
17865 (register_cache_size): Declare.
17866 (supply_regblock): Declare.
17867 * regcache.c (init_register_cache): New.
17868 (new_register_cache): Use it.
17869 (regcache_cpy): New.
17870 (register_cache_size): New.
17871 (supply_regblock): New.
17872 (regcache_read_pc, regcache_write_pc): New.
17874 * tracepoint.c: New.
17876 * Makefile.in (OBS): Add tracepoint.o.
17877 (tracepoint.o): New rule.
17879 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17881 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17883 (i386-mmx.c): Likewise.
17884 (i386-mmx-linux.o): Likewise.
17885 (i386-mmx-linux.c): Likewise.
17887 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17888 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17889 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17890 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17892 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17893 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17894 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17896 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17898 * Makefile.in (clean): Updated.
17900 (i386-avx.c): Likewise.
17901 (i386-avx-linux.o): Likewise.
17902 (i386-avx-linux.c): Likewise.
17903 (amd64-avx.o): Likewise.
17904 (amd64-avx.c): Likewise.
17905 (amd64-avx-linux.o): Likewise.
17906 (amd64-avx-linux.c): Likewise.
17908 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17909 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17910 (srv_amd64_regobj): Add amd64-avx.o.
17911 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17912 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17913 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17914 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17915 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17916 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17917 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17919 * i387-fp.c: Include "i386-xstate.h".
17921 (i387_cache_to_xsave): Likewise.
17922 (i387_xsave_to_cache): Likewise.
17923 (x86_xcr0): Likewise.
17925 * i387-fp.h (i387_cache_to_xsave): Likewise.
17926 (i387_xsave_to_cache): Likewise.
17927 (x86_xcr0): Likewise.
17929 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17930 * linux-crisv32-low.c (target_regsets): Likewise.
17931 * linux-m68k-low.c (target_regsets): Likewise.
17932 * linux-mips-low.c (target_regsets): Likewise.
17933 * linux-ppc-low.c (target_regsets): Likewise.
17934 * linux-s390-low.c (target_regsets): Likewise.
17935 * linux-sh-low.c (target_regsets): Likewise.
17936 * linux-sparc-low.c (target_regsets): Likewise.
17937 * linux-xtensa-low.c (target_regsets): Likewise.
17939 * linux-low.c: Include <sys/uio.h>.
17940 (regsets_fetch_inferior_registers): Support nt_type.
17941 (regsets_store_inferior_registers): Likewise.
17942 (linux_process_qsupported): New.
17943 (linux_target_ops): Add linux_process_qsupported.
17945 * linux-low.h (regset_info): Add nt_type.
17946 (linux_target_ops): Add process_qsupported.
17948 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17950 (init_registers_i386_avx_linux): New.
17951 (init_registers_amd64_avx_linux): Likewise.
17952 (xmltarget_i386_linux_no_xml): Likewise.
17953 (xmltarget_amd64_linux_no_xml): Likewise.
17954 (PTRACE_GETREGSET): Likewise.
17955 (PTRACE_SETREGSET): Likewise.
17956 (x86_fill_xstateregset): Likewise.
17957 (x86_store_xstateregset): Likewise.
17958 (use_xml): Likewise.
17959 (x86_linux_update_xmltarget): Likewise.
17960 (x86_linux_process_qsupported): Likewise.
17961 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17962 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17963 init_registers_i386_linux here. Call
17964 x86_linux_update_xmltarget.
17965 (the_low_target): Add x86_linux_process_qsupported.
17967 * server.c (handle_query): Call target_process_qsupported.
17969 * target.h (target_ops): Add process_qsupported.
17970 (target_process_qsupported): New.
17972 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17974 * inferiors.c (add_thread): Set last_status kind to
17975 TARGET_WAITKIND_IGNORE.
17976 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17977 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17978 (linux_wait_1): Move `thread' local definition to block that uses
17979 it. Don't NULL initialize `event_child'.
17980 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17981 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17982 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17984 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17986 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17987 an extended waitstatus, or by a watchpoint.
17988 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17989 thread was stepping or has been stopped by a watchpoint.
17991 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17993 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17994 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17995 of another, then delete the previous, and validate all
17997 (validate_inserted_breakpoint): New.
17998 (delete_disabled_breakpoints): New.
17999 (validate_breakpoints): New.
18000 (check_mem_read): Validate breakpoints before trusting their
18001 shadow. Delete disabled breakpoints.
18002 (check_mem_write): Validate breakpoints before trusting they
18003 should be inserted. Delete disabled breakpoints.
18004 * mem-break.h (validate_breakpoints):
18005 * server.c (handle_query): Validate breakpoints when we see a
18008 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18010 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18011 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18012 if we could tell there's a GDB breakpoint at stop_pc.
18013 (need_step_over_p): Don't do a step over if we find a GDB
18014 breakpoint at the resume PC.
18016 * mem-break.c (struct raw_breakpoint): New.
18017 (enum bkpt_type): New type `gdb_breakpoint'.
18018 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18019 fields. New field `raw'.
18020 (find_raw_breakpoint_at): New.
18021 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18022 breakpoint instead.
18023 (set_breakpoint_at): Adjust.
18024 (delete_raw_breakpoint): New.
18025 (release_breakpoint): New.
18026 (delete_breakpoint): Rename to...
18027 (delete_breakpoint_1): ... this. Add proc parameter. Use
18028 release_breakpoint. Return ENOENT.
18029 (delete_breakpoint): Reimplement.
18030 (find_breakpoint_at): Delete.
18031 (find_gdb_breakpoint_at): New.
18032 (delete_breakpoint_at): Delete.
18033 (set_gdb_breakpoint_at): New.
18034 (delete_gdb_breakpoint_at): New.
18035 (gdb_breakpoint_here): New.
18036 (set_reinsert_breakpoint): Use release_breakpoint.
18037 (uninsert_breakpoint): Rename to ...
18038 (uninsert_raw_breakpoint): ... this.
18039 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18040 (reinsert_raw_breakpoint): Change parameter type to
18042 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18044 (check_breakpoints): Adjust. Use release_breakpoint.
18045 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18046 (breakpoint_inserted_here): Ditto.
18047 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18048 Don't trust the breakpoint's shadow if it is not inserted.
18049 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18050 (delete_all_breakpoints): Adjust.
18051 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18052 use delete_breakpoint_1.
18054 * mem-break.h (breakpoints_supported): Delete declaration.
18055 (set_gdb_breakpoint_at): Declare.
18056 (gdb_breakpoint_here): Declare.
18057 (delete_breakpoint_at): Delete.
18058 (delete_gdb_breakpoint_at): Declare.
18060 * server.h (struct raw_breakpoint): Forward declare.
18061 (struct process_info): New field `raw_breakpoints'.
18063 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18066 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18068 * linux-low.c (status_pending_p_callback): Fix comment.
18069 (linux_wait_for_event_1): Move most of the internal breakpoint
18070 handling from here...
18071 (linux_wait_1): ... to here.
18072 (count_events_callback): New.
18073 (select_singlestep_lwp_callback): New.
18074 (select_event_lwp_callback): New.
18075 (cancel_breakpoints_callback): New.
18076 (select_event_lwp): New.
18077 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18078 priority to all LWPs that have had events that should be reported
18079 to the client. Cancel breakpoints when about to reporting the
18080 event to the client, not while stopping lwps. No longer cancel
18081 finished single-steps here.
18082 (cancel_finished_single_step): Delete.
18083 (cancel_finished_single_steps): Delete.
18085 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18087 * mem-break.c (enum bkpt_type): New.
18088 (struct breakpoint): New field `type'.
18089 (set_breakpoint_at): Change return type to struct breakpoint
18090 pointer. Set type to `other_breakpoint' by default.
18091 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18092 in the breakpoint list.
18093 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18094 (reinsert_breakpoint): Rename to ...
18095 (reinsert_raw_breakpoint): ... this.
18096 (reinsert_breakpoints_at): Adjust.
18097 * mem-break.h (struct breakpoint): Declare.
18098 (set_breakpoint_at): Change return type to struct breakpoint
18101 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18103 * server.c (handle_query): Assign, not compare.
18105 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18107 Teach linux gdbserver to step-over-breakpoints.
18109 * linux-low.c (can_hardware_single_step): New.
18110 (supports_breakpoints): New.
18111 (handle_extended_wait): If stopping threads, read the stop pc of
18112 the new cloned LWP.
18114 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18115 low target doesn't support retrieving the PC.
18116 (add_lwp): Set last_resume_kind to resume_continue.
18117 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18118 (linux_attach): Don't clear stop_expected. Set the lwp's
18119 last_resume_kind to resume_stop.
18120 (linux_detach_one_lwp): Don't check for removed breakpoints.
18121 (check_removed_breakpoint): Delete.
18122 (status_pending_p): Rename to ...
18123 (status_pending_p_callback): ... this. Don't check for removed
18124 breakpoints. Don't consider threads that are stopped from GDB's
18126 (linux_wait_for_lwp): Always read the stop_pc here.
18127 (cancel_breakpoint): New.
18128 (step_over_bkpt): New global.
18129 (linux_wait_for_event_1): Implement stepping over breakpoints.
18130 (gdb_wants_lwp_stopped): New.
18131 (gdb_wants_all_stopped): New.
18132 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18133 single-step traps here. Store the thread's last reported target
18135 (send_sigstop): Don't clear stop_expected. Always set it,
18137 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18138 (cancel_finished_single_step): New.
18139 (cancel_finished_single_steps): New.
18140 (wait_for_sigstop): Don't cancel finished single-step traps here.
18141 (linux_resume_one_lwp): Don't check for removed breakpoints.
18142 Don't set `step' on non-hardware step archs.
18143 (linux_set_resume_request): Ignore resume_stop requests if already
18144 stopping or stopped. Set the lwp's last_resume_kind.
18145 (resume_status_pending_p): Don't check for removed breakpoints.
18146 (need_step_over_p): New.
18147 (start_step_over): New.
18148 (finish_step_over): New.
18149 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18150 requests. Clear the thread's last reported target waitstatus.
18151 Don't use the `suspended' flag. Don't consider pending breakpoints.
18152 (linux_resume): Start a step-over if necessary.
18153 (proceed_one_lwp): New.
18154 (proceed_all_lwps): New.
18155 (unstop_all_lwps): New.
18156 * linux-low.h (struct lwp_info): Rewrite comment for the
18157 `suspended' flag. Add the `stop_pc' field. Delete the
18158 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18159 Add `'last_resume_kind' and `need_step_over' fields.
18160 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18161 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18162 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18163 (set_raw_breakpoint_at): New.
18164 (set_breakpoint_at): Rewrite to use it.
18165 (reinsert_breakpoint_handler): Delete.
18166 (set_reinsert_breakpoint): New.
18167 (reinsert_breakpoint_by_bp): Delete.
18168 (delete_reinsert_breakpoints): New.
18169 (uninsert_breakpoint): Rewrite.
18170 (uninsert_breakpoints_at): New.
18171 (reinsert_breakpoint): Rewrite.
18172 (reinsert_breakpoints_at): New.
18173 (check_breakpoints): Rewrite.
18174 (breakpoint_here): New.
18175 (breakpoint_inserted_here): New.
18176 (check_mem_read): Adjust.
18177 * mem-break.h (breakpoints_supported, breakpoint_here)
18178 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18179 (reinsert_breakpoint_by_bp): Delete declaration.
18180 (delete_reinsert_breakpoints): Declare.
18181 (reinsert_breakpoint): Delete declaration.
18182 (reinsert_breakpoints_at): Declare.
18183 (uninsert_breakpoint): Delete declaration.
18184 (uninsert_breakpoints_at): Declare.
18185 (check_breakpoints): Adjust prototype.
18186 * server.h: Adjust include order.
18187 (struct thread_info): Declare here. Add a `last_status' field.
18189 2010-03-23 Michael Snyder <msnyder@vmware.com>
18191 * server.c (crc32): New function.
18192 (handle_query): Add handling for 'qCRC:' request.
18194 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18196 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18197 lwp had been stopped by a watchpoint.
18199 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18201 * server.h (internal_error): Declare.
18202 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18203 * utils.c (internal_error): New function.
18205 2010-03-15 Andreas Schwab <schwab@redhat.com>
18207 * configure.srv: Fix typo setting srv_regobj.
18209 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18211 * linux-low.c (fetch_register): Avoid passing a non string literal
18213 (usr_store_inferior_registers): Ditto.
18215 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18217 * linux-low.c (linux_write_memory): Bail out early if peeking
18220 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18222 * linux-low.h (struct lwp_info): New fields
18223 `stopped_by_watchpoint' and `stopped_data_address'.
18224 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18225 here, and cache them in the lwp object.
18226 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18228 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18230 (linux_stopped_by_watchpoint): Rewrite.
18231 (linux_stopped_data_address): Rewrite.
18233 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18235 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18236 switching the current inferior, not before.
18238 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18240 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18241 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18242 i386-linux.c and amd64-linux.c.
18243 (reg-i386.o): Removed.
18244 (reg-i386.c): Likewise.
18245 (reg-i386-linux.o): Likewise.
18246 (reg-i386-linux.c): Likewise.
18247 (reg-x86-64.o): Likewise.
18248 (reg-x86-64.c): Likewise.
18249 (reg-x86-64-linux.o): Likewise.
18250 (reg-x86-64-linux.c): Likewise.
18252 (i386.c): Likewise.
18253 (i386-linux.o): Likewise.
18254 (i386-linux.c): Likewise.
18255 (amd64.o): Likewise.
18256 (amd64.c): Likewise.
18257 (amd64-linux.o): Likewise.
18258 (amd64-linux.c): Likewise.
18260 * configure.srv (srv_i386_regobj): New.
18261 (srv_i386_linux_regobj): Likewise.
18262 (srv_amd64_regobj): Likewise.
18263 (srv_amd64_linux_regobj): Likewise.
18264 (srv_i386_32bit_xmlfiles): Likewise.
18265 (srv_i386_64bit_xmlfiles): Likewise.
18266 (srv_i386_xmlfiles): Likewise.
18267 (srv_amd64_xmlfiles): Likewise.
18268 (srv_i386_linux_xmlfiles): Likewise.
18269 (srv_amd64_linux_xmlfiles): Likewise.
18270 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18271 srv_xmlfiles to $srv_i386_xmlfiles.
18272 (i[34567]86-*-mingw32ce*): Likewise.
18273 (i[34567]86-*-mingw*): Likewise.
18274 (i[34567]86-*-nto*): Likewise.
18275 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18276 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18277 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18278 (x86_64-*-linux*): Likewise.
18280 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18281 (init_registers_amd64_linux): New.
18282 (x86_arch_setup): Replace init_registers_x86_64_linux with
18283 init_registers_amd64_linux.
18285 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18287 * configure.ac: Check for libdl. If it is not available link against
18288 static libthread_db.
18289 * configure: Regenerate.
18291 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18295 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18296 handing a read watchpoint.
18297 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18299 2010-02-12 Doug Evans <dje@google.com>
18301 * linux-low.c (linux_supports_tracefork_flag): Document.
18302 (linux_look_up_symbols): Add comment.
18304 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18306 * regcache.c (supply_register): Clear regcache if buf is NULL.
18308 2010-02-02 Nicolas Roche <roche@sourceware.org>
18309 Joel Brobecker <brobecker@adacore.com>
18311 * inferiors.c (find_inferior): Add function documentation.
18312 (unloaded_dll): Handle the case where the unloaded dll has not
18313 been previously registered in the dll list.
18315 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18317 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18318 (thumb2_breakpoint): New.
18319 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18321 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18323 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18324 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18327 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18329 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18331 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18333 * linux-s390-low.c (s390_collect_ptrace_register)
18334 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18336 2010-01-21 Doug Evans <dje@google.com>
18338 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18339 (PTRACE_ARG4_TYPE): New macro.
18340 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18341 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18342 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18343 (usr_store_inferior_registers): Ditto.
18344 (linux_read_memory, linux_write_memory): Ditto.
18345 (linux_test_for_tracefork): Ditto.
18347 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18348 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18350 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18352 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18355 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18357 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18358 prototype to take a regcache. Adjust.
18360 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18362 * regcache.h (struct thread_info): Forward declare.
18363 (struct regcache): New.
18364 (new_register_cache): Adjust prototype.
18365 (get_thread_regcache): Declare.
18366 (free_register_cache): Adjust prototype.
18367 (registers_to_string, registers_from_string): Ditto.
18368 (supply_register, supply_register_by_name, collect_register)
18369 (collect_register_as_string, collect_register_by_name): Ditto.
18370 * regcache.c (struct inferior_regcache_data): Delete.
18371 (get_regcache): Rename to ...
18372 (get_thread_regcache): ... this. Adjust. Switch inferior before
18373 fetching registers.
18374 (regcache_invalidate_one): Adjust.
18375 (regcache_invalidate): Fix prototype.
18376 (new_register_cache): Return the new register cache.
18377 (free_register_cache): Change prototype.
18378 (realloc_register_cache): Adjust.
18379 (registers_to_string): Change prototype to take a regcache. Adjust.
18380 (registers_from_string): Ditto.
18381 (register_data): Ditto.
18382 (supply_register): Ditto.
18383 (supply_register_by_name): Ditto.
18384 (collect_register): Ditto.
18385 (collect_register_as_string): Ditto.
18386 (collect_register_by_name): Ditto.
18387 * server.c (process_serial_event): Adjust.
18388 * linux-low.h (regset_fill_func, regset_store_func): Change
18390 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18392 * linux-low.c (get_stop_pc): Adjust.
18393 (check_removed_breakpoint): Adjust.
18394 (linux_wait_for_event): Adjust.
18395 (linux_resume_one_lwp): Adjust.
18396 (fetch_register): Add regcache parameter. Adjust.
18397 (usr_store_inferior_registers): Ditto.
18398 (regsets_fetch_inferior_registers): Ditto.
18399 (regsets_store_inferior_registers): Ditto.
18400 (linux_fetch_registers, linux_store_registers): Ditto.
18401 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18403 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18405 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18406 prototype to take a regcache.
18407 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18408 * remote-utils.c (convert_ascii_to_int, outreg)
18409 (prepare_resume_reply): Change prototype to take a regcache.
18411 * target.h (struct target_ops) <fetch_registers, store_registers>:
18412 Change prototype to take a regcache.
18413 (fetch_inferior_registers, store_inferior_registers): Change
18414 prototype to take a regcache. Adjust.
18415 * proc-service.c (ps_lgetregs): Adjust.
18416 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18417 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18418 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18419 take a regcache. Adjust.
18420 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18421 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18422 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18423 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18424 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18425 (cris_cannot_fetch_register):
18426 (cris_breakpoint_at): Change prototype to take a regcache.
18428 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18429 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18430 to take a regcache. Adjust.
18431 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18433 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18434 take a regcache. Adjust.
18435 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18436 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18437 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18438 * linux-mips-low.c (mips_get_pc):
18439 (mips_set_pc): Change prototype to take a regcache. Adjust.
18440 (mips_reinsert_addr): Adjust.
18441 (mips_collect_register): Change prototype to take a regcache.
18443 (mips_supply_register):
18444 (mips_collect_register_32bit, mips_supply_register_32bit)
18445 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18446 (mips_store_fpregset): Ditto.
18447 * linux-ppc-low.c (ppc_supply_ptrace_register)
18448 (ppc_supply_ptrace_register): Ditto.
18449 (parse_spufs_run): Adjust.
18450 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18451 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18452 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18453 take a regcache. Adjust.
18454 * linux-s390-low.c (s390_collect_ptrace_register)
18455 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18456 (s390_set_pc): Change prototype to take a regcache. Adjust.
18457 (s390_arch_setup): Adjust.
18458 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18459 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18460 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18461 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18462 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18464 (sparc_breakpoint_at): Adjust.
18465 * linux-xtensa-low.c (xtensa_fill_gregset):
18466 (xtensa_store_gregset):
18467 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18468 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18469 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18470 prototype to take a regcache. Adjust.
18471 * win32-arm-low.c (arm_fetch_inferior_register)
18472 (arm_store_inferior_register): Change prototype to take a
18474 * win32-i386-low.c (i386_fetch_inferior_register)
18475 (i386_store_inferior_register): Change prototype to take a
18477 * win32-low.c (child_fetch_inferior_registers)
18478 (child_store_inferior_registers): Change prototype to take a
18480 (win32_wait): Adjust.
18481 (win32_fetch_inferior_registers): Change prototype to take a
18483 (win32_store_inferior_registers): Adjust.
18484 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18485 store_inferior_register>: Change prototype to take a regcache.
18487 2010-01-20 Doug Evans <dje@google.com>
18489 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18491 (linux_wait_for_event1, linux_init_signals): Ditto.
18492 (W_STOPCODE): Provide definition if missing.
18494 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18496 * linux-low.c (linux_core_of_thread): New.
18497 (compare_ints, show_process, list_threads): New.
18498 (linux_qxfer_osdata): Report threads and cores.
18499 (linux_target_op): Register linux_core_of_thread.
18500 * remote-utils.c (prepare_resume_reply): Report the core.
18501 (buffer_xml_printf): Support %d specifier.
18502 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18504 (handle_query): Handle qXfer:threads. Announce availability
18506 * target.h (struct target_ops): New field core_of_thread.
18508 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18510 * Makefile.in (clean): Remove new generated files.
18511 (reg-s390.o, reg-s390.c): Remove rules.
18512 (reg-s390x.o, reg-s390x.c): Likewise.
18513 (s390-linux32.o, s390-linux32.c): Add rules.
18514 (s390-linux64.o, s390-linux64.c): Likewise.
18515 (s390x-linux64.o, s390x-linux64.c): Likewise.
18516 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18517 * linux-s390-low.c: Include <elf.h>.
18518 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18519 (init_registers_s390): Remove prototype.
18520 (init_registers_s390x): Likewise.
18521 (init_registers_s390_linux32): Add prototype.
18522 (init_registers_s390_linux64): Likewise.
18523 (init_registers_s390x_linux64): Likewise.
18524 (s390_num_regs_3264): New define.
18525 (s390_regmap_3264): New global variable.
18526 (s390_cannot_fetch_register): Remove obsolete check.
18527 (s390_cannot_store_register): Likewise.
18528 (s390_collect_ptrace_register): Handle upper/lower register halves.
18529 (s390_supply_ptrace_register): Likewise.
18530 (s390_fill_gregset): Update to register number changes.
18531 (s390_get_hwcap): New routine.
18532 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18533 Install appropriate regmap and register set.
18535 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18537 * server.c (gdbserver_version): Update copyright year to 2010.
18538 * gdbreplay.c (gdbreplay_version): Likewise.
18540 2009-12-28 Doug Evans <dje@google.com>
18542 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18543 elf/external.h. Include <elf.h> instead but only if necessary.
18545 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18547 * linux-low.c (linux_remove_process): Remove `detaching'
18548 parameter. Don't release/detach from thread_db here.
18549 (linux_kill): Release/detach from thread_db here, ...
18550 (linux_detach): ... and here, before actually detaching.
18551 (linux_wait_1): ... and here, when a process exits.
18552 * thread-db.c (any_thread_of): New.
18553 (thread_db_free): Switch the current inferior to a thread of the
18556 2009-12-21 Doug Evans <dje@google.com>
18558 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18560 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18561 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18562 warning ifndef __NR_tkill. Move setting of errno there too.
18563 Delete unnecessary resetting of errno after syscall.
18564 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18566 * configure.ac: Check for dladdr.
18567 * config.in: Regenerate.
18568 * configure: Regenerate.
18569 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18570 (try_thread_db_load): Update.
18572 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18574 2009-12-18 Doug Evans <dje@google.com>
18576 * event-loop.c: Include unistd.h if it exists.
18578 * linux-low.c (my_waitpid): Move definition away from being in
18579 between linux_tracefork_child/linux_test_for_tracefork.
18581 * gdb_proc_service.h (psaddr_t): Fix type.
18582 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18583 signature to match glibc.
18585 2009-12-16 Doug Evans <dje@google.com>
18587 * linux-low.c (linux_read_memory): Fix argument to read.
18589 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18591 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18592 events, don't leave current_inferior pointing at null.
18594 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18596 * win32-low.c (LOG): Delete.
18597 (OUTMSG): Output to stderr.
18598 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18599 on compile time LOG macro.
18600 (win32_wait): Fix debug output.
18602 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18604 * win32-low.c (win32_add_one_solib): If the dll name is
18605 "ntdll.dll", prepend the system directory to the dll path.
18607 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18609 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18611 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18612 Vladimir Prus <vladimir@codesourcery.com>
18614 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18615 * configure.ac: Check for __mcoldfire__ and set
18616 gdb_cv_m68k_is_coldfire.
18617 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18618 reg-cf.o and reg-m68k.o.
18619 * configure: Regenerated.
18621 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18623 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18624 Pass it to thread_db_free.
18625 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18626 proper `detaching' argument to linux_remove_process.
18627 * linux-low.h (thread_db_free): Add `detaching' parameter.
18628 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18630 (thread_db_free): Add `detaching' parameter. Only
18631 call td_ta_clear_event if detaching from process.
18633 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18635 * thread-db.c (thread_db_free): Fix typo.
18637 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18640 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18642 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18644 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18645 with an i686 compiler.
18646 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18648 * configure: Rebuilt.
18650 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18654 * server.c (handle_search_memory_1): Correct read_addr initialization
18655 in loop for searching subsequent chunks.
18657 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18659 * configure.ac: New --with-libthread-db option.
18660 * thread-db.c: Allow direct dependence on libthread_db.
18661 (thread_db_free): Adjust.
18662 * config.in: Regenerate.
18663 * configure: Likewise.
18665 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18668 * thread-db.c (attach_thread): New function.
18669 (maybe_attach_thread): Return success/failure.
18670 (find_new_threads_callback): Adjust.
18671 (thread_db_find_new_threads): Loop until no new threads.
18673 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18675 * proc-service.c (ps_lgetregs): Formatting.
18677 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18679 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18680 * configure.ac: Adjust.
18681 * linux-low.h (struct process_info_private): Move members to struct
18683 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18684 * linux-low.c (linux_remove_process): Adjust.
18685 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18686 * server.c (handle_query): Move code ...
18687 (handle_monitor_command): ... here. New function.
18688 * target.h (struct target_ops): New member.
18689 * thread-db.c (struct thread_db): New.
18690 (libthread_db_search_path): New variable.
18691 (thread_db_create_event, thread_db_enable_reporting)
18692 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18693 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18694 (try_thread_db_load_1, dladdr_to_soname): New functions.
18695 (try_thread_db_load, thread_db_load_search): New functions.
18696 (thread_db_init): Search for libthread_db.
18697 (thread_db_free): New function.
18698 (thread_db_handle_monitor_command): Likewise.
18699 * config.in: Regenerate.
18700 * configure: Regenerate.
18702 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18704 * spu-low.c (spu_kill): Wait for inferior to terminate.
18705 Call clear_inferiors.
18706 (spu_detach): Call clear_inferiors.
18708 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18710 * aclocal.m4: Regenerate.
18711 * config.in: Likewise.
18712 * configure: Likewise.
18714 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18716 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18717 (parse_spufs_run): New function.
18718 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18719 (ppc_breakpoint_at): Handle SPU breakpoints.
18721 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18723 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18724 (SPUFS_MAGIC): Define.
18725 (spu_enumerate_spu_ids): New function.
18726 (linux_qxfer_spu): New function.
18727 (linux_target_ops): Install linux_qxfer_spu.
18729 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18731 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18732 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18733 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18734 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18735 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18736 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18737 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18738 (init_registers_powerpc_cell32l): Add prototype.
18739 (init_registers_powerpc_cell64l): Likewise.
18740 (ppc_arch_setup): Detect Cell/B.E. architecture.
18742 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18744 * Makefile.in (datarootdir): New variable.
18746 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18748 * linux-low.c (linux_write_memory): Update debugging output.
18749 * Makefile.in (clean): Add new descriptions.
18750 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18751 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18752 * configure.srv: Add new files for arm*-*-linux*.
18753 * linux-arm-low.c: Add new declarations.
18754 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18755 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18756 (HWCAP_VFPv3D16): New.
18757 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18758 instead of __IWMMXT__.
18759 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18760 (arm_arch_setup): New.
18761 (target_regsets): Remove #ifdef. Add VFP regset.
18762 (the_low_target): Use arm_arch_setup.
18764 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18766 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18767 the main thread again.
18769 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18771 Adding Neutrino gdbserver.
18772 * configure: Regenerated.
18773 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18774 * configure.srv (i[34567]86-*-nto*): New target.
18775 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18776 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18777 (nto_comctrl) [__QNX__]: New function.
18778 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18780 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18782 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18785 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18786 Pedro Alves <pedro@codesourcery.com>
18788 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18789 don't support CONTEXT_EXTENDED_REGISTERS.
18790 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18791 (the_low_target): Install them.
18792 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18793 failing with ERROR_PIPE_NOT_CONNECTED.
18795 2009-06-30 Doug Evans <dje@google.com>
18796 Pierre Muller <muller@ics.u-strasbg.fr>
18798 Add h/w watchpoint support to x86-linux, win32-i386.
18799 * Makefile.in (SFILES): Add i386-low.c
18800 (i386_low_h): Define.
18801 (i386-low.o): Add dependencies.
18802 (linux-x86-low.o): Add i386-low.h dependency.
18803 (win32-i386-low.o): Ditto.
18804 * i386-low.c: New file.
18805 * i386-low.h: New file.
18806 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18807 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18808 * linux-low.c (linux_add_process): Initialize arch_private.
18809 (linux_remove_process): Free arch_private.
18810 (add_lwp): Initialize arch_private.
18811 (delete_lwp): Free arch_private.
18812 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18814 * linux-low.h (process_info_private): New member arch_private.
18815 (lwp_info): New member arch_private.
18816 (linux_target_ops): New members new_process, new_thread,
18818 (ptid_of): New macro.
18819 * linux-x86-low.c: Include stddef.h, i386-low.h.
18820 (arch_process_info): New struct.
18821 (arch_lwp_info): New struct.
18822 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18823 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18824 (i386_dr_low_get_status): New function.
18825 (x86_insert_point, x86_remove_point): New functions.
18826 (x86_stopped_by_watchpoint): New function.
18827 (x86_stopped_data_address): New function.
18828 (x86_linux_new_process, x86_linux_new_thread): New functions.
18829 (x86_linux_prepare_to_resume): New function.
18830 (the_low_target): Add entries for insert_point, remove_point,
18831 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18833 * server.c (debug_hw_points): New global.
18834 (monitor_show_help): Document set debug-hw-points.
18835 (handle_query): Process "set debug-hw-points".
18836 * server.h (debug_hw_points): Declare.
18837 (paddress): Declare.
18838 * utils.c (NUMCELLS, CELLSIZE): New macros.
18839 (get_sell, xsnprintf, paddress): New functions.
18840 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18841 remove_point, stopped_by_watchpoint, stopped_data_address.
18842 * win32-i386-low.c: Include i386-low.h.
18843 (debug_reg_state): Replaces dr.
18844 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18845 (i386_dr_low_get_status): New function.
18846 (i386_insert_point, i386_remove_point): New functions.
18847 (i386_stopped_by_watchpoint): New function.
18848 (i386_stopped_data_address): New function.
18849 (i386_initial_stuff): Update.
18850 (get_thread_context,set_thread_context,i386_thread_added): Update.
18851 (the_low_target): Add entries for insert_point,
18852 remove_point, stopped_by_watchpoint, stopped_data_address.
18853 * win32-low.c (win32_insert_watchpoint): New function.
18854 (win32_remove_watchpoint): New function.
18855 (win32_stopped_by_watchpoint): New function.
18856 (win32_stopped_data_address): New function.
18857 (win32_target_ops): Add entries for insert_watchpoint,
18858 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18859 * win32-low.h (win32_target_ops): New members insert_point,
18860 remove_point, stopped_by_watchpoint, stopped_data_address.
18862 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18864 * server.c (process_serial_event): Re-return unsupported, not
18865 error, if the type isn't recognized. Re-allow supporting only
18866 insert or remove packets. Also call require_running for
18867 breakpoints. Add missing break statement to default case. Tidy.
18868 * target.h (struct target_ops): Rename insert_watchpoint to
18869 insert_point, and remove_watchpoint to remove_point.
18871 * linux-low.h (struct linux_target_ops): Likewise.
18872 * linux-low.c (linux_insert_watchpoint): Rename to ...
18873 (linux_insert_point): ... this. Adjust.
18874 (linux_remove_watchpoint): Rename to ...
18875 (linux_remove_point): ... this. Adjust.
18876 (linux_target_ops): Adjust.
18877 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18878 (cris_insert_point): ... this.
18879 (cris_remove_watchpoint): Rename to ...
18880 (cris_remove_point): ... this.
18881 (the_low_target): Adjust.
18883 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18885 * server.c (handle_v_kill): Pass signal_pid to
18886 kill_inferior if multi_process is zero.
18888 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18890 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18891 * target.h (target_ops): Comment for *_watchpoint to make it clear
18892 the functions can get types '0' and '1'.
18894 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18896 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18897 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18898 * regcache.c (get_regcache): Likewise.
18899 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18900 * win32-low.c (child_fetch_inferior_registers): Remove check for
18903 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18904 Pedro Alves <pedro@codesourcery.com>
18906 * target.h (struct target_ops) <supports_multi_process>: New
18908 (target_supports_multi_process): New.
18909 * server.c (handle_query): Even if GDB reports support, only
18910 enable multi-process if the target also supports it. Report
18911 multi-process support only if the target backend supports it.
18912 * linux-low.c (linux_supports_multi_process): New function.
18913 (linux_target_ops): Install it as target_supports_multi_process
18916 2009-05-24 Doug Evans <dje@google.com>
18918 Global renaming of find_thread_pid to find_thread_ptid.
18919 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18920 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18921 All callers updated.
18923 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18924 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18927 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18928 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18929 (linux_resume_one_lwp): Ditto.
18931 2009-05-23 Doug Evans <dje@google.com>
18933 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18934 from struct inferior_list_entry * to struct lwp_info *.
18935 All callers updated.
18937 2009-05-13 Doug Evans <dje@google.com>
18939 * linux-x86-low.c: Don't include assert.h.
18940 (x86_siginfo_fixup): Use fatal, not assert.
18941 (x86_arch_setup): Fix comment.
18943 2009-05-12 Doug Evans <dje@google.com>
18945 Biarch support for i386/amd64 gdbserver.
18946 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18947 Add linux-x86-low.c.
18948 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18949 (linux-x86-low.o): Add.
18950 * linux-x86-64-low.c: Delete.
18951 * linux-i386-low.c: Delete.
18952 * linux-x86-low.c: New file.
18953 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18955 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18957 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18958 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18959 (linux_child_pid_to_exec_file): New function.
18960 (elf_64_header_p, elf_64_file_p): New functions.
18961 (siginfo_fixup): New function.
18962 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18963 give target a chance to convert layout.
18964 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18965 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18967 2009-05-07 Doug Evans <dje@google.com>
18969 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18970 (regsets_store_inferior_registers): Ditto.
18972 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18976 * linux-low.c (must_set_ptrace_flags): Delete.
18977 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18979 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18980 `lwp->must_set_ptrace_flags' instead.
18981 (linux_wait_for_event_1): Set ptrace options here.
18982 (linux_wait_1): ... not here.
18984 2009-04-30 Doug Evans <dje@google.com>
18986 * inferiors.c (started_inferior_callback): New function.
18987 (attached_inferior_callback): New function.
18988 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18989 * server.c (print_started_pid, print_attached_pid): New functions.
18990 (detach_or_kill_for_exit): New function.
18991 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18992 * server.h (have_started_inferiors_p): Declare.
18993 (have_attached_inferiors_p): Declare.
18995 * inferiors.c (remove_process): Fix memory leak, free process.
18996 * linux-low.c (linux_remove_process): New function.
18997 (linux_kill): Call it instead of remove_process.
18998 (linux_detach, linux_wait_1): Ditto.
19000 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19002 * configure.srv: Add x86 Windows CE target.
19004 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19006 * inferiors.c (get_thread_process): Make global.
19007 * server.h (get_thread_process): Add prototype.
19008 * thread-db.c (find_one_thread): Use get_thread_process
19009 instead of current_process.
19010 (thread_db_get_tls_address): Do not crash if called when
19011 thread layer is not yet initialized.
19013 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19015 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19016 * spu-low.c (current_tid): Rename to ...
19017 (current_ptid): ... this.
19018 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19019 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19020 ptid_get_lwp (current_ptid) instead of current_tid.
19021 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19022 instead of current_tid. Use find_process_pid to verify pid
19023 argument is valid. Pass proper argument to remove_process.
19024 (spu_thread_alive): Compare current_ptid instead of current_tid.
19025 (spu_resume): Likewise.
19027 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19029 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19032 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19034 Implement the multiprocess extensions, and add linux multiprocess
19037 * server.h (ULONGEST): Declare.
19038 (struct ptid, ptid_t): New.
19039 (minus_one_ptid, null_ptid): Declare.
19040 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19041 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19042 (struct inferior_list_entry): Change `id' type from unsigned from
19044 (struct sym_cache, struct breakpoint, struct
19045 process_info_private): Forward declare.
19046 (struct process_info): Declare.
19047 (current_process): Declare.
19048 (all_processes): Declare.
19049 (initialize_inferiors): Declare.
19050 (add_thread): Adjust to use ptid_t.
19051 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19052 (add_process, remove_process, find_thread_pid): Declare.
19053 (find_inferior_id): Adjust to use ptid_t.
19054 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19055 (multi_process): Declare.
19056 (push_event): Adjust to use ptid_t.
19057 (read_ptid, write_ptid): Declare.
19058 (prepare_resume_reply): Adjust to use ptid_t.
19059 (clear_symbol_cache): Declare.
19060 * inferiors.c (all_processes): New.
19061 (null_ptid, minus_one_ptid): New.
19062 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19063 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19064 (add_thread): Change unsigned long to ptid. Remove gdb_id
19066 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19067 (gdb_id_to_thread): Rename to ...
19068 (find_thread_pid): ... this. Change unsigned long to ptid.
19069 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19070 (loaded_dll, pull_pid_from_list): Adjust.
19071 (add_process, remove_process, find_process_pid)
19072 (get_thread_process, current_process, initialize_inferiors): New.
19073 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19074 (struct target_waitstatus) <related_pid>: Ditto.
19075 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19076 return type to int.
19077 (struct target_ops) <join>: Add `pid' argument.
19078 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19079 (struct target_ops) <wait>: Add `ptid' field. Change return type
19081 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19082 (mywait): Add `ptid' argument. Change return type to ptid_t.
19083 (target_pid_to_str): Declare.
19084 * target.c (set_desired_inferior): Adjust to use ptids.
19085 (mywait): Add new `ptid' argument. Adjust.
19086 (target_pid_to_str): New.
19087 * mem-break.h (free_all_breakpoints): Declare.
19088 * mem-break.c (breakpoints): Delelete.
19089 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19090 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19091 to use per-process breakpoint list.
19092 (free_all_breakpoints): New.
19093 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19094 (symbol_cache, all_symbols_looked_up): Delete.
19096 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19098 (prepare_resume_reply): Change ptid argument's type from unsigned
19099 long to ptid_t. Adjust. Implement W;process and X;process.
19100 (free_sym_cache, clear_symbol_cache): New.
19101 (look_up_one_symbol): Adjust to per-process symbol cache. *
19102 * server.c (cont_thread, general_thread, step_thread): Change type
19104 (attached): Delete.
19105 (multi_process): New.
19106 (last_ptid): Change type to ptid_t.
19107 (struct vstop_notif) <ptid>: Change type to ptid_t.
19108 (queue_stop_reply, push_event): Change `ptid' argument's type to
19110 (discard_queued_stop_replies): Add `pid' argument.
19111 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19112 changes. Don't reference the `attached' global.
19113 (attach_inferior): Adjust to mywait interface changes.
19114 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19115 features. Handle and report "multiprocess+". Handle
19117 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19119 (handle_v_kill): New.
19120 (handle_v_stopped): Adjust to use target_pid_to_str.
19121 (handle_v_requests): Allow multiple attaches and runs when
19122 multiprocess extensions are in effect. Handle "vKill".
19123 (myresume): Adjust to use ptids.
19124 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19125 (handle_status): Adjust to discard_queued_stop_replies interface
19127 (first_thread_of, kill_inferior_callback)
19128 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19129 (main): Call initialize_inferiors. Adjust to use ptids, killing
19130 and detaching from all inferiors. Handle multiprocess packet
19132 * linux-low.h: Include gdb_proc_service.h.
19133 (struct process_info_private): New.
19134 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19135 <lwpid_of>: Use ptid_get_lwp.
19136 (get_lwp_thread): Adjust.
19137 (struct lwp_info): Add `dead' member.
19138 (find_lwp_pid): Declare.
19139 * linux-low.c (thread_db_active): Delete.
19140 (new_inferior): Adjust comment.
19141 (inferior_pid): Delete.
19142 (linux_add_process): New.
19143 (handle_extended_wait): Adjust.
19144 (add_lwp): Change unsigned long to ptid.
19145 (linux_create_inferior): Add process to processes table. Adjust
19146 to use ptids. Don't set new_inferior here.
19147 (linux_attach_lwp): Rename to ...
19148 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19149 it. Adjust to use ptids.
19150 (linux_attach_lwp): New.
19151 (linux_attach): Add process to processes table. Don't set
19153 (struct counter): New.
19154 (second_thread_of_pid_p, last_thread_of_process_p): New.
19155 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19156 multiple processes.
19157 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19158 processes. Remove process from process table.
19159 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19160 to multiple processes.
19161 (any_thread_of): New.
19162 (linux_detach): Add `pid' argument, and handle it. Remove process
19163 from processes table.
19164 (linux_join): Add `pid' argument. Handle it.
19165 (linux_thread_alive): Change unsighed long argument to ptid_t.
19166 Consider dead lwps as not being alive.
19167 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19168 threads we're not interested in.
19169 (same_lwp, find_lwp_pid): New.
19170 (linux_wait_for_lwp): Change `pid' argument's type from int to
19172 (linux_wait_for_event): Rename to ...
19173 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19174 from int to ptid_t. Adjust.
19175 (linux_wait_for_event): New.
19176 (linux_wait_1): Add `ptid' argument. Change return type to
19177 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19178 that exit from the process table.
19179 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19181 (mark_lwp_dead): New.
19182 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19183 stopping all threads, mark its main lwp as dead.
19184 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19186 (fetch_register, usr_store_inferior_registers)
19187 (regsets_fetch_inferior_registers)
19188 (regsets_store_inferior_registers, linux_read_memory)
19189 (linux_write_memory): Inline `inferior_pid'.
19190 (linux_look_up_symbols): Adjust to use per-process
19191 `thread_db_active'.
19192 (linux_request_interrupt): Adjust to use ptids.
19193 (linux_read_auxv): Inline `inferior_pid'.
19194 (initialize_low): Don't reference thread_db_active.
19195 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19196 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19197 (ps_getpid): Return the pid of the current inferior.
19198 * thread-db.c (proc_handle, thread_agent): Delete.
19199 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19201 (find_one_thread): Change argument type to ptid_t. Adjust to
19203 (maybe_attach_thread): Adjust to per-process data and ptids.
19204 (thread_db_find_new_threads): Ditto.
19205 (thread_db_init): Ditto.
19206 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19207 processes table. Adjust to use ptids.
19208 (spu_kill, spu_detach): Adjust interface. Remove process from
19210 (spu_join, spu_thread_alive): Adjust interface.
19211 (spu_wait): Adjust interface. Remove process from processes
19212 table. Adjust to use ptids.
19213 * win32-low.c (current_inferior_tid): Delete.
19214 (current_inferior_ptid): New.
19215 (debug_event_ptid): New.
19216 (thread_rec): Take a ptid. Adjust.
19217 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19218 (child_delete_thread): Ditto.
19219 (do_initial_child_stuff): Add `attached' argument. Add process to
19221 (child_fetch_inferior_registers, child_store_inferior_registers):
19223 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19224 (win32_attach): Pass 1 to do_initial_child_stuff.
19225 (win32_kill): Adjust interface. Remove process from processes
19227 (win32_detach): Ditto.
19228 (win32_join): Adjust interface.
19229 (win32_thread_alive): Take a ptid.
19230 (win32_resume): Adjust to use ptids.
19231 (get_child_debug_event): Ditto.
19232 (win32_wait): Adjust interface. Remove exiting process from
19235 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19237 Non-stop mode support.
19239 * server.h (non_stop): Declare.
19240 (gdb_client_data, handler_func): Declare.
19241 (delete_file_handler, add_file_handler, start_event_loop):
19243 (handle_serial_event, handle_target_event, push_event)
19244 (putpkt_notif): Declare.
19245 * target.h (enum resume_kind): New.
19246 (struct thread_resume): Replace `step' field by `kind' field.
19247 (TARGET_WNOHANG): Define.
19248 (struct target_ops) <wait>: Add `options' argument.
19249 <supports_non_stop, async, start_non_stop>: New fields.
19250 (target_supports_non_stop, target_async): New.
19251 (start_non_stop): Declare.
19252 (mywait): Add `options' argument.
19253 * target.c (mywait): Add `options' argument. Print child exit
19254 notifications here.
19255 (start_non_stop): New.
19256 * server.c (non_stop, own_buf, mem_buf): New globals.
19257 (struct vstop_notif): New.
19258 (notif_queue): New global.
19259 (queue_stop_reply, push_event, discard_queued_stop_replies)
19260 (send_next_stop_reply): New.
19261 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19263 (attach_inferior): In non-stop mode, don't wait for the target
19265 (handle_general_set): Handle QNonStop.
19266 (handle_query): When handling qC, return the current general
19267 thread, instead of the first thread of the list.
19268 (handle_query): If the backend supports non-stop mode, include
19269 QNonStop+ in the qSupported query response.
19270 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19272 (handle_v_attach, handle_v_run): Handle non-stop mode.
19273 (handle_v_stopped): New.
19274 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19275 (myresume): Adjust to use resume_kind. Handle non-stop.
19276 (queue_stop_reply_callback): New.
19277 (handle_status): Handle non-stop mode.
19278 (main): Clear non_stop flag on reconnection. Use the event-loop.
19279 Refactor serial protocol handling from here ...
19280 (process_serial_event): ... to this new function. When GDB
19281 selects any thread, select one here. In non-stop mode, wait until
19282 GDB acks all pending events before exiting.
19283 (handle_serial_event, handle_target_event): New.
19284 * remote-utils.c (remote_open): Install remote_desc in the event
19286 (remote_close): Remove remote_desc from the event loop.
19287 (putpkt_binary): Rename to...
19288 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19289 (putpkt_binary): New as wrapper around putpkt_binary_1.
19290 (putpkt_notif): New.
19291 (prepare_resume_reply): In non-stop mode, don't change the
19293 * event-loop.c: New.
19294 * Makefile.in (OBJ): Add event-loop.o.
19295 (event-loop.o): New rule.
19297 * linux-low.h (pid_of): Moved here.
19299 (get_lwp_thread): Use lwpid_of.
19300 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19301 * linux-low.c (pid_of): Delete.
19302 (inferior_pid): Use lwpid_of.
19303 (linux_event_pipe): New.
19304 (target_is_async_p): New.
19306 (handle_extended_wait): Use lwpid_of.
19307 (add_lwp): Don't set lwpid field.
19308 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19309 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19310 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19311 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19312 first. Adjust to linux_wait_for_event interface changes. Use
19314 (linux_detach): Don't delete the main lwp here.
19315 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19316 (status_pending_p): Don't consider explicitly suspended lwps.
19317 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19318 pointer. Add OPTIONS argument. Change return type to int. Use
19319 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19320 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19321 pointer. Add status pointer argument. Return a pid instead of a
19322 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19323 changes. In non-stop mode, don't switch to a random thread.
19324 (linux_wait): Rename to...
19325 (linux_wait_1): ... this. Add target_options argument, and handle
19326 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19327 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19328 clean exit and signal exit code. Don't stop all threads in
19329 non-stop mode. In all-stop mode, only stop all threads when
19330 reporting a stop to GDB. Handle explicit thread stop requests.
19331 (async_file_flush, async_file_mark): New.
19333 (send_sigstop): Use lwpid_of.
19334 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19335 interface changes. In non-stop mode, don't switch to a random
19337 (linux_resume_one_lwp): Use lwpid_of.
19338 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19339 (linux_resume_one_thread): ... this. Handle resume_stop. In
19340 non-stop mode, don't look for pending flag in all threads.
19341 (resume_status_pending_p): Don't consider explicitly suspended
19343 (my_waitpid): Reimplement. Emulate __WALL.
19344 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19346 (sigchld_handler, linux_supports_non_stop, linux_async)
19347 (linux_start_non_stop): New.
19348 (linux_target_ops): Register linux_supports_non_stop, linux_async
19349 and linux_start_non_stop.
19350 (initialize_low): Install SIGCHLD handler.
19351 * thread-db.c (thread_db_create_event, find_one_thread)
19352 (thread_db_get_tls_address): Use lwpid_of.
19353 * win32-low.c (win32_detach): Adjust to use resume_kind.
19354 (win32_wait): Add `options' argument.
19355 * spu-low.c (spu_resume): Adjust to use resume_kind.
19356 (spu_wait): Add `options' argument.
19358 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19360 Decouple target code from remote protocol.
19362 * target.h (enum target_waitkind): New.
19363 (struct target_waitstatus): New.
19364 (struct target_ops) <wait>: Return an unsigned long. Take a
19365 target_waitstatus pointer instead of a char pointer.
19366 (mywait): Likewise.
19367 * target.c (mywait): Change prototype to return an unsigned long.
19368 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19369 * server.h (thread_from_wait, old_thread_from_wait): Delete
19371 (prepare_resume_reply): Change prototype to take a
19373 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19374 (last_status, last_ptid): New.
19375 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19376 pid instead of a signal.
19377 (attach_inferior): Remove "status" and "signal" parameters.
19379 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19381 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19382 (handle_v_requests, myresume): Remove "status" and "signal"
19383 parameters. Adjust.
19384 (handle_status): New.
19385 (main): Delete local `status'. Adjust.
19386 * remote-utils.c: Include target.h.
19387 (prepare_resume_reply): Change prototype to take a
19388 target_waitstatus. Adjust.
19390 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19392 * spu-low.c (spu_wait): Adjust.
19393 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19395 (win32_wait): Adjust.
19397 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19399 * target.h (struct thread_resume): Delete leave_stopped member.
19400 (struct target_ops): Add a `n' argument to the `resume' callback.
19401 * server.c (start_inferior): Adjust.
19402 (handle_v_cont, myresume): Adjust.
19403 * linux-low.c (check_removed_breakpoint): Adjust to resume
19404 interface change, and to removed leave_stopped field.
19405 (resume_ptr): Delete.
19406 (struct thread_resume_array): New.
19407 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19408 resume interface change.
19409 (linux_continue_one_thread, linux_queue_one_thread)
19410 (resume_status_pending_p): Check if the resume field is NULL
19411 instead of checking the leave_stopped member.
19412 (linux_resume): Adjust to the target resume interface change.
19413 * spu-low.c (spu_resume): Adjust to the target resume interface
19415 * win32-low.c (win32_detach, win32_resume): Ditto.
19417 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19419 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19421 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19423 (linux_continue_one_thread): Only preserve the stepping flag if
19424 there's a pending breakpoint.
19426 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19428 * server.c (main): After the inferior having exited, call
19429 remote_close before exiting gdbserver.
19431 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19433 Fix size of FPSCR in Power 7 processors.
19434 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19435 (PPC_FEATURE_HAS_DFP): New #define.
19436 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19439 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19441 * server.c (handle_query) Whitespace and formatting.
19443 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19445 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19446 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19447 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19448 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19449 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19450 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19451 Makefile.in, configure.ac: Fix whitespace throughout.
19452 * configure: Regenerate.
19454 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19456 * inferiors.c (find_inferior): Make it safe for the callback
19457 function to delete the currently iterated inferior.
19459 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19461 * Makefile.in (linuw_low_h): Move higher.
19462 (thread-db.o): Depend on $(linux_low_h).
19464 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19466 Rename "process" to "lwp" throughout.
19468 * linux-low.c (all_processes): Rename to...
19469 (all_lwps): ... this.
19470 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19471 (add_process): Rename to ...
19472 (add_lwp): ... this. Adjust.
19473 (linux_create_inferior): Adjust.
19474 (linux_attach_lwp): Adjust.
19475 (linux_attach): Adjust.
19476 (linux_kill_one_process): Rename to ...
19477 (linux_kill_one_lwp): ... this. Adjust.
19478 (linux_kill): Adjust.
19479 (linux_detach_one_process): Rename to ...
19480 (linux_detach_one_lwp): ... this. Adjust.
19481 (linux_detach): Adjust.
19482 (check_removed_breakpoint): Adjust.
19483 (status_pending_p): Adjust.
19484 (linux_wait_for_process): Rename to ...
19485 (linux_wait_for_lwp): ... this. Adjust.
19486 (linux_wait_for_event): Adjust.
19487 (send_sigstop): Adjust.
19488 (wait_for_sigstop): Adjust.
19489 (stop_all_processes): Rename to ...
19490 (stop_all_lwps): ... this.
19491 (linux_resume_one_process): Rename to ...
19492 (linux_resume_one_lwp): ... this. Adjust.
19493 (linux_set_resume_request, linux_continue_one_thread)
19494 (linux_queue_one_thread, resume_status_pending_p)
19495 (usr_store_inferior_registers, regsets_store_inferior_registers)
19496 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19498 * linux-low.h (get_process): Rename to ...
19499 (get_lwp): ... this. Adjust.
19500 (get_thread_process): Rename to ...
19501 (get_thread_lwp): ... this. Adjust.
19502 (get_process_thread): Rename to ...
19503 (get_lwp_thread): ... this. Adjust.
19504 (struct process_info): Rename to ...
19505 (struct lwp_info): ... this.
19506 (all_processes): Rename to ...
19507 (all_lwps): ... this.
19508 * proc-service.c (ps_lgetregs): Adjust.
19509 * thread-db.c (thread_db_create_event, find_one_thread)
19510 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19512 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19514 * server.c (handle_query): Handle "qAttached".
19516 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19518 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19519 GPLv3, update license URL.
19521 2009-03-01 Doug Evans <dje@google.com>
19523 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19524 (server_h): Add gdb_signals.h.
19525 (signals.o): Update.
19526 * server.h (target_signal_from_host,target_signal_to_host_p)
19527 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19529 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19531 * remote-utils.c (getpkt): Also generate remote-debug
19532 information if noack_mode is set.
19534 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19536 * server.c (handle_query): Report qXfer:siginfo:read and
19537 qXfer:siginfo:write as supported and handle them.
19538 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19539 * linux-low.c (linux_xfer_siginfo): New.
19540 (linux_target_ops): Set it.
19542 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19544 * server.c (gdbserver_usage): Mention --remote-debug.
19545 (main): Accept '--remote-debug' switch.
19547 2009-01-18 Doug Evans <dje@google.com>
19549 * regcache.c (new_register_cache): No need to check result of xcalloc.
19550 * server.c (handle_search_memory): Back out calls to xmalloc,
19551 result is checked and error is returned to user upon failure.
19552 (handle_query): Ditto. Add more checks for result of malloc.
19553 (handle_v_cont): Check result of malloc, report error back to
19555 (handle_v_run): Ditto. Call freeargv.
19556 * server.h (freeargv): Declare.
19557 * utils.c (freeargv): New fn.
19559 2009-01-15 Doug Evans <dje@google.com>
19561 * gdbreplay.c (perror_with_name): Make arg const char *.
19562 * server.h (target_signal_to_name): Make return type const char *.
19563 * thread-db.c (thread_db_err_str): Make return type const char *.
19564 * utils.c (perror_with_name): Make arg const char *.
19566 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19568 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19569 when handling a EXIT_PROCESS_DEBUG_EVENT.
19571 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19573 * gdbreplay.c (gdbreplay_version): Update copyright year.
19574 * server.c (gdbserver_version): Likewise.
19576 2009-01-05 Doug Evans <dje@google.com>
19578 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19579 (handle_extended_wait): Improve comment.
19581 2008-12-13 Doug Evans <dje@google.com>
19583 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19584 * server.h (ATTR_MALLOC): New macro.
19585 (xmalloc,xcalloc,xstrdup): Declare.
19586 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19587 * inferiors.c: Ditto.
19588 * linux-low.c: Ditto.
19589 * mem-break.c: Ditto.
19590 * regcache.c: Ditto.
19591 * remote-utils.c: Ditto.
19594 * win32-low.c: Ditto.
19596 2008-12-12 Doug Evans <dje@google.com>
19598 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19599 in debugging printf.
19601 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19603 2008-12-09 Doug Evans <dje@google.com>
19605 * linux-low.h (struct process_info): Delete member tid, unused.
19606 * thread-db.c (find_one_thread): Update.
19607 (maybe_attach_thread): Update.
19609 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19611 * target.h (struct target_ops): Add qxfer_osdata member.
19612 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19614 (linux_qxfer_osdata): New functions.
19615 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19617 * server.c (handle_query): Handle "qXfer:osdata:read:".
19618 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19619 (buffer_xml_printf): New functions.
19620 * server.h (struct buffer): New.
19621 (buffer_grow_str, buffer_grow_str0): New macros.
19622 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19623 (buffer_xml_printf): Declare.
19625 2008-11-24 Doug Evans <dje@google.com>
19627 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19629 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19631 * server.c (handle_v_run): Always use the supplied argument list.
19633 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19635 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19636 (xtensa_regmap_table): Add entry for scompare1.
19638 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19640 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19641 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19642 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19643 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19644 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19645 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19646 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19647 XML target descriptions.
19648 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19649 when inferior is running on an ISA 2.05 or later processor. Add
19650 special case to return offset for full 64-bit slot of FPSCR when
19653 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19655 * Makefile.in (SFILES, clean): Added sparc64 files.
19656 (reg-sparc64.o, reg-sparc64.c): New.
19657 * configure.srv (sparc*-*-linux*): New configuration.
19658 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19659 syscall arguments for SPARC.
19660 (regsets_store_inferior_registers): Likewise.
19661 * linux-sparc-low.c: New file.
19663 2008-10-21 Doug Evans <dje@google.com>
19665 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19666 (READLINE_DIR,READLINE_DEP): Delete.
19667 (INTERNAL_CFLAGS): Update.
19668 (LINTFLAGS): Update.
19670 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19672 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19673 whole argv from the last run, not just argv[0].
19675 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19677 * regcache.c (new_register_cache): Return NULL if the register
19678 cache size isn't known yet.
19679 (free_register_cache): Avoid dereferencing a NULL regcache.
19681 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19683 * configure.srv: Merge MIPS and MIPS64.
19685 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19687 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19689 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19691 * Makefile.in: Add required vsx dependencies.
19693 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19694 Declare init_registers_powerpc_vsx32l.
19695 Declare init_registers_powerpc_vsx64l.
19696 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19697 (ppc_arch_setup): Check for VSX in hwcap.
19698 (ppc_fill_vsxregset): New function.
19699 (ppc_store_vsxregset): New function.
19700 Add new VSX entry in regset_info target_regsets.
19702 * configure.srv: Add new VSX dependencies.
19704 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19706 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19707 (remote_open): Set or clear transport_is_reliable.
19708 (putpkt_binary): Don't expect acks in noack mode.
19709 (getpkt): Don't send ack/nac in noack mode.
19710 * server.c (handle_general_set): Handle QStartNoAckMode.
19711 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19713 (main): Reset noack_mode on every connection.
19714 * server.h (noack_mode): Declare.
19716 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19718 * Makefile.in (GDBREPLAY_OBS): New variable.
19719 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19721 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19722 Daniel Jacobowitz <dan@codesourcery.com>
19724 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19725 (usr_store_inferior_registers): Likewise.
19726 (regsets_store_inferior_registers): Likewise.
19728 2008-07-31 Rolf Jansen <rj@surtec.com>
19729 Pedro Alves <pedro@codesourcery.com>
19731 * configure.ac: Check for memmem declaration.
19732 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19733 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19734 (disable_packet_qfThreadInfo): Unconditionally compile.
19735 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19736 * configure, config.in: Regenerate.
19738 2008-07-28 Doug Kwan <dougkwan@google.com>
19740 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19741 (linux_write_memory): Remove declaration of errno.
19743 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19745 * linux-low.c (handle_extended_wait): Do not use "status"
19746 variable uninitialized.
19748 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19750 * server.c (handle_v_attach): Inhibit reporting dll changes.
19752 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19754 * remote-utils.c (prepare_resume_reply): If requested, don't
19755 output "thread:TID" in the T stop reply.
19757 * server.c (disable_packet_vCont, disable_packet_Tthread)
19758 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19759 (handle_query): If requested, disable support for qC, qfThreadInfo
19761 (handle_v_requests): If requested, disable support for vCont.
19762 (gdbserver_show_disableable): New.
19763 (main): Handle --disable-packet and --disable-packet=LIST.
19765 * server.h (disable_packet_vCont, disable_packet_Tthread)
19766 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19768 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19770 * server.c (gdbserver_usage): Mention --version.
19772 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19774 * Makefile.in (gdbreplay.o): New rule.
19776 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19778 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19779 message, not gdbserver.
19781 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19782 Nathan Sidwell <nathan@codesourcery.com>
19783 Joseph Myers <joseph@codesourcery.com>
19785 * acinclude.m4: Include ../../config/acx.m4.
19786 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19787 * configure, config.in: Regenerate.
19788 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19789 * server.c (gdbserver_version): Print PKGVERSION.
19790 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19791 (main): Adjust gdbserver_usage calls.
19792 * gdbreplay.c (version, host_name): Add declarations.
19793 (gdbreplay_version, gdbreplay_usage): New.
19794 (main): Accept --version and --help options.
19796 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19798 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19799 (arm_breakpoint_at): Handle Thumb.
19800 (the_low_target): Add comment.
19802 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19804 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19806 2008-05-09 Doug Evans <dje@google.com>
19808 * server.h (decode_search_memory_packet): Declare.
19809 * remote-utils.c (decode_search_memory_packet): New fn.
19810 * server.c (handle_search_memory_1): New fn.
19811 (handle_search_memory): New fn.
19812 (handle_query): Process qSearch:memory packets.
19814 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19816 * regcache.c (registers_length): Remove.
19817 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19818 full register packet.
19819 * regcache.h (registers_length): Remove prototype.
19820 * server.h (PBUFSIZ): Define to 16384.
19822 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19824 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19825 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19826 powerpc-64l.o, and powerpc-altivec64l.o.
19827 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19828 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19829 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19830 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19831 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19834 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19835 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19836 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19837 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19838 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19839 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19840 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19841 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19842 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19843 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19846 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19847 (init_registers_powerpc_32l): ... this new prototype.
19848 (init_registers_powerpc_32): Remove, replace by ...
19849 (init_registers_powerpc_altivec32l): ... this new prototype.
19850 (init_registers_powerpc_e500): Remove, replace by ...
19851 (init_registers_powerpc_e500l): ... this new prototype.
19852 (init_registers_ppc64): Remove, replace by ...
19853 (init_registers_powerpc_64l): ... this new prototype.
19854 (init_registers_powerpc_64): Remove, replace by ...
19855 (init_registers_powerpc_altivec64l): ... this new prototype.
19856 (ppc_num_regs): Set to 73.
19857 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19858 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19859 (ppc_cannot_store_register): Handle orig_r3 and trap.
19860 (ppc_arch_setup): Update init_registers_... calls.
19861 (ppc_fill_gregset): Handle orig_r3 and trap.
19863 * inferiors.c (clear_inferiors): Reset current_inferior.
19865 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19867 * acinclude.m4: Add override.m4.
19868 * configure: Regenerate.
19870 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19872 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19873 initial call to init_register_ppc64.
19875 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19877 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19878 single powerpc*-*-linux* case.
19879 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19881 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19883 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19884 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19886 * linux-ppc-low.c: Include <elf.h>.
19887 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19888 (ppc_hwcap): New global variable.
19889 (ppc_regmap): Remove __SPE__ #ifdef sections.
19890 (ppc_regmap_e500): New global variable.
19891 (ppc_cannot_store_register): Update __SPE__ special case.
19892 (ppc_get_hwcap): New function.
19893 (ppc_arch_setup): Use it to determine whether inferior supports
19894 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19895 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19896 Do not access registers if target does not support AltiVec.
19897 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19898 Do not access registers if target does not support SPE.
19899 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19901 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19903 * linux-low.c (disabled_regsets, num_regsets): New.
19904 (use_regsets_p): Delete.
19905 (linux_wait_for_process): Clear disabled_regsets.
19906 (regsets_fetch_inferior_registers): Check and set it.
19907 (regsets_store_inferior_registers): Likewise.
19908 (linux_fetch_registers, linux_store_registers): Do not use
19910 (initialize_low): Allocate disabled_regsets.
19912 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19914 * Makefile.in (LIBOBJS): New.
19915 (OBS): Use LIBOBJS.
19916 (memmem.o): New rule.
19917 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19918 * configure: Regenerated.
19920 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19922 * server.c (handle_query): Never return "unsupported" for
19923 qXfer:features:read queries.
19925 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19927 * server.c (get_features_xml): Fix inverted condition.
19928 (handle_query): Always support qXfer:feature:read.
19930 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19932 * server.c (wrapper_argv): New.
19933 (start_inferior): Handle wrapper_argv. If set, expect an extra
19935 (gdbserver_usage): Document --wrapper.
19936 (main): Parse --wrapper.
19938 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19940 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19941 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19942 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19943 (ppc_set_pc): Likewise.
19944 (ppc_arch_setup): New function.
19945 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19946 of collect_register.
19947 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19949 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19951 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19952 instead of linux-ppc64-low.o.
19953 * linux-ppc64-low.c: Remove file.
19954 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19955 (linux-ppc64-low.o): Remove rule.
19957 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19958 (init_registers_powerpc_64): Likewise.
19959 (ppc_regmap): Conditionally define depending on __powerpc64__.
19960 (ppc_cannot_store_register): Do not special-case "fpscr" when
19961 compiled on __powerpc64__.
19962 (ppc_collect_ptrace_register): New function.
19963 (ppc_supply_ptrace_register): New function.
19964 (ppc_breakpoint): Change type to "unsigned int".
19965 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19966 (the_low_target): Conditionally provide initializers for the
19967 arch_setup member depending on __powerpc64__. Install
19968 collect_ptrace_register and supply_ptrace_register members.
19970 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19972 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19973 * server.c (gdbserver_xmltarget): Define.
19974 (get_features_xml): Use it to replace "target.xml" and arch_string.
19976 * configure.srv: Remove srv_xmltarget. Add XML files that were
19977 mentioned there to srv_xmlfiles instead. Remove conditional tests
19978 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19979 srv_xmlfiles and srv_regobj to include all possible choices.
19980 * configure.ac (srv_xmltarget): Remove.
19981 (srv_xmlfiles): Do not add "target.xml".
19982 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19983 checks for supplementary target information.
19984 * configure: Regenerate.
19985 * Makefile.in (XML_TARGET): Remove.
19986 (target.xml): Remove rule.
19987 (clean): Do not clean up target.xml.
19988 (.PRECIOUS): Do not mention target.xml.
19990 * target.h (struct target_ops): Remove arch_string member.
19991 * linux-low.c (linux_arch_string): Remove.
19992 (linux_target_ops): Remove arch_string initializer.
19993 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19994 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19995 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19996 * spu-low.c (spu_arch_string): Remove.
19997 (spu_target_ops): Remove arch_string initializer.
19998 * win32-low.c (win32_arch_string): Remove.
19999 (win32_target_ops): Remove arch_string initializer.
20000 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20001 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20002 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20004 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20006 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20007 by collect_ptrace_register and supply_ptrace_register hooks.
20008 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20009 instead of checking for the_low_target.left_pad_xfer.
20010 (usr_store_inferior_registers): Use collect_ptrace_register callback
20011 instead of checking for the_low_target.left_pad_xfer.
20013 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20014 (s390_supply_ptrace_register): Likewise.
20015 (s390_fill_gregset): Call s390_collect_ptrace_register.
20016 (the_low_target): Update.
20018 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20019 (ppc_supply_ptrace_register): Likewise.
20020 (the_low_target): Update.
20022 * linux-i386-low.c (the_low_target): Update.
20023 * linux-x86-64-low.c (the_low_target): Update.
20025 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20027 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20028 reg-s390.o and reg-s390x.o.
20030 * linux-low.c (new_inferior): New global variable.
20031 (linux_create_inferior, linux_attach): Set it.
20032 (linux_wait_for_process): Call the_low_target.arch_setup after the
20033 target has stopped for the first time.
20034 (initialize_low): Do not call the_low_target.arch_setup.
20036 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20037 (s390_set_pc): Likewise.
20038 (s390_arch_setup): New function.
20039 (the_low_target): Use s390_arch_setup as arch_setup routine.
20041 * regcache.c (realloc_register_cache): New function.
20042 (set_register_cache): Call it for each existing regcache.
20044 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20046 * server.h (init_registers): Remove prototype.
20048 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20049 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20050 instead of init_registers ().
20051 * linux-arm-low.c (init_registers_arm): Add prototype.
20052 (init_registers_arm_with_iwmmxt): Likewise.
20053 (the_low_target): Add initializer for arch_setup field.
20054 * linux-cris-low.c (init_registers_cris): Add prototype.
20055 (the_low_target): Add initializer for arch_setup field.
20056 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20057 (the_low_target): Add initializer for arch_setup field.
20058 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20059 (the_low_target): Add initializer for arch_setup field.
20060 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20061 (the_low_target): Add initializer for arch_setup field.
20062 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20063 (the_low_target): Add initializer for arch_setup field.
20064 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20065 (the_low_target): Add initializer for arch_setup field.
20066 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20067 (init_registers_mips64_linux): Likewise.
20068 (the_low_target): Add initializer for arch_setup field.
20069 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20070 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20071 (the_low_target): Add initializer for arch_setup field.
20072 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20073 (init_registers_powerpc_64): Likewise.
20074 (the_low_target): Add initializer for arch_setup field.
20075 * linux-s390-low.c (init_registers_s390): Add prototype.
20076 (init_registers_s390x): Likewise.
20077 (the_low_target): Add initializer for arch_setup field.
20078 * linux-sh-low.c (init_registers_sh): Add prototype.
20079 (the_low_target): Add initializer for arch_setup field.
20080 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20081 (the_low_target): Add initializer for arch_setup field.
20082 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20083 (the_low_target): Add initializer for arch_setup field.
20085 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20086 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20087 instead of init_registers ().
20088 * win32-arm-low.c (init_registers_arm): Add prototype.
20089 (the_low_target): Add initializer for arch_setup field.
20090 * win32-i386-low.c (init_registers_i386): Add prototype.
20091 (the_low_target): Add initializer for arch_setup field.
20093 * spu-low.c (init_registers_spu): Add prototype.
20094 (initialize_low): Call initialie_registers_spu () instead of
20095 initialize_registers ().
20097 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20099 * server.c (handle_v_requests): When handling the vRun and vAttach
20100 packets, if already debugging a process, don't kill it. Return an
20103 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20105 * server.c (handle_query): Correct length check.
20107 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20109 * win32-low.c (do_initial_child_stuff): Add process handle
20110 parameter. Set current_process_handle and current_process_id from the
20111 parameters. Clear globals.
20112 (win32_create_inferior): Don't set current_process_handle and
20113 current_process_id here. Instead pass them on the call to
20114 do_initial_child_stuff.
20115 (win32_attach): Likewise.
20116 (win32_clear_inferiors): New.
20117 (win32_kill): Don't close the current process handle or the
20118 current thread handle here. Instead call win32_clear_inferiors.
20119 (win32_detach): Don't open a new handle to the process. Call
20120 win32_clear_inferiors.
20121 (win32_join): Don't rely on current_process_handle; open a new
20122 handle using the process id.
20123 (win32_wait): Call win32_clear_inferiors when the inferior process
20126 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20128 * server.c (monitor_show_help): Add "exit".
20130 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20132 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20133 (clean): Add reg-xtensa.c.
20134 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20135 * configure.srv (xtensa*-*-linux*) New target.
20136 * linux-xtensa-low.c: New.
20137 * xtensa-xtregs.c: New.
20139 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20141 * hostio.c: Don't include errno.h.
20142 (errno_to_fileio_errno): Move to hostio-errno.
20143 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20144 error number outputting to the target->hostio_last_error callback.
20145 (hostio_packet_error): Use FILEIO_EINVAL directly.
20146 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20147 calls to hostio_error.
20148 * hostio-errno.c: New.
20149 * server.h (hostio_last_error_from_errno): Declare.
20150 * target.h (target_ops): Add hostio_last_error member.
20151 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20152 as hostio_last_error handler.
20153 * spu-low.c (spu_target_ops): Likewise.
20154 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20155 (wince_hostio_last_error): New functions.
20156 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20157 as hostio_last_error handler.
20158 (win32_target_ops) [!_WIN32_WCE]: Register
20159 hostio_last_error_from_errno as hostio_last_error handler.
20160 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20161 (hostio-errno.o): New rule.
20162 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20163 * configure.srv (srv_hostio_err_objs): New variable. Default to
20165 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20166 * configure: Regenerate.
20168 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20170 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20171 (linux_kill, linux_detach): Clean up the process list.
20172 * remote-utils.c (remote_open): Improve port number parsing.
20173 (putpkt_binary, input_interrupt): Only send interrupts if the target
20175 * server.c (extended_protocol): Make static.
20176 (attached): Define earlier.
20177 (exit_requested, response_needed, program_argv): New variables.
20178 (target_running): New.
20179 (start_inferior): Clear attached here.
20180 (attach_inferior): Set attached here.
20181 (require_running): Define.
20182 (handle_query): Use require_running and target_running. Implement
20184 (handle_v_attach, handle_v_run): New.
20185 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20186 (gdbserver_usage): Update.
20187 (main): Redo argument parsing. Handle --debug and --multi. Handle
20188 --attach along with other options or after the port. Save
20189 program_argv. Support no initial program. Resynchronize
20190 communication with GDB after an error. Handle "monitor exit".
20191 Use require_running and target_running. Always allow the extended
20192 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20193 restart in extended mode.
20194 * README: Refer to the GDB manual. Update --attach usage.
20196 2007-12-20 Andreas Schwab <schwab@suse.de>
20198 * linux-low.c (STACK_SIZE): Define.
20199 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20200 (linux_test_for_tracefork): Likewise.
20202 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20204 * linux-low.c (linux_wait_for_event): Update messages. Do not
20205 reinsert auto-delete breakpoints.
20206 * mem-break.c (struct breakpoint): Change return type of handler to
20208 (set_breakpoint_at): Update handler type.
20209 (reinsert_breakpoint_handler): Return 1 instead of calling
20211 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20213 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20214 * mem-break.h (set_breakpoint_at): Update handler type.
20215 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20216 * win32-low.c (auto_delete_breakpoint): New.
20217 (get_child_debug_event): Use it.
20219 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20221 * configure.ac: Check for pread and pwrite.
20222 * hostio.c (handle_pread): Fall back to lseek and read.
20223 (handle_pwrite): Fall back to lseek and write.
20224 * config.in, configure: Regenerated.
20226 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20228 * server.c (myresume): Add own_buf argument.
20229 (main): Update calls.
20231 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20233 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20234 * remote-utils.c (remote_open): Do not call disable_async_io.
20235 (block_async_io): Delete.
20236 (unblock_async_io): Make static.
20237 (initialize_async_io): New.
20238 * server.c (handle_v_cont): Handle async I/O here.
20239 (myresume): Likewise. Move other common resume tasks here...
20240 (main): ... from here. Call initialize_async_io. Disable async
20241 I/O before the main loop.
20242 * server.h (initialize_async_io): Declare.
20243 (block_async_io, unblock_async_io): Delete prototypes.
20244 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20246 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20248 * remote-utils.c (readchar): Allow binary data in received messages.
20250 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20252 * win32-low.c (attaching): New global.
20253 (win32_create_inferior): Clear the `attaching' global.
20254 (win32_attach): Set the `attaching' global.
20255 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20256 attaching. Only set a breakpoint at the entry point if not
20259 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20261 * server.c (main): Don't report dll events on the initial
20262 connection on attaches.
20264 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20266 * server.c (main): Relax numerical bases supported for the pid of
20267 the --attach command line argument.
20269 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20271 * win32-low.c (win32_attach): Call OpenProcess before
20272 DebugActiveProcess, not after. Add last error output to error
20275 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20277 * win32-low.c (win32_get_thread_context)
20278 (win32_set_thread_context): New functions.
20279 (thread_rec): Use win32_get_thread_context.
20280 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20281 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20284 2007-12-03 Leo Zayas
20285 Pedro Alves <pedro_alves@portugalmail.pt>
20287 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20289 (child_add_thread): Minor cleanup.
20290 (child_continue): Resume artificially suspended threads before
20291 calling ContinueDebugEvent.
20292 (suspend_one_thread): New.
20293 (fake_breakpoint_event): New.
20294 (get_child_debug_event): Change return type to int. Check here if
20295 gdb sent an interrupt request. If a soft interrupt was requested,
20296 fake a breakpoint event. Return 0 if there is no event to handle,
20298 (win32_wait): Don't check here if gdb sent an interrupt request.
20299 Ensure there is a valid event to handle.
20300 (win32_request_interrupt): Add soft interruption method as last
20303 2007-12-03 Leo Zayas
20304 Pedro Alves <pedro_alves@portugalmail.pt>
20306 * win32-low.h (win32_thread_info): Add descriptions to the
20307 structure members. Replace `suspend_count' counter by a
20309 * win32-low.c (thread_rec): Update condition of when to get the
20310 context from the inferior. Rely on ContextFlags being set if it
20311 has already been retrieved. Only suspend the inferior thread if
20312 we haven't already. Warn if that fails.
20313 (continue_one_thread): s/suspend_count/suspended/. Only call
20314 ResumeThread once. Warn if that fails.
20316 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20318 * win32-low.c (win32_wait): Don't read from the inferior when it
20319 has already exited.
20321 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20323 * Makefile.in (win32_low_h): New variable.
20324 (win32-low.o): Add dependency on $(win32_low_h).
20325 (win32-arm-low.o, win32-i386-low.o): New rules.
20327 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20329 * hostio.c: Correct copyright year.
20331 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20333 * Makefile.in (OBS): Add hostio.o.
20334 (hostio.o): New rule.
20335 * server.h (handle_vFile): Declare.
20336 * hostio.c: New file.
20337 * server.c (handle_v_requests): Take packet_len and new_packet_len
20338 for binary packets. Call handle_vFile.
20339 (main): Update call to handle_v_requests.
20341 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20343 * linux-low.c: Include <sched.h>.
20345 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20347 * linux-low.c (linux_tracefork_grandchild): New.
20348 (linux_tracefork_child): Use clone.
20349 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20351 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20353 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20355 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20357 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20359 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20361 * inferiors.c (change_inferior_id): Delete.
20362 (add_pid_to_list, pull_pid_from_list): New.
20363 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20364 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20365 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20366 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20367 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20368 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20369 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20370 (using_threads): Always set to 1.
20371 (handle_extended_wait): New.
20372 (add_process): Do not set TID.
20373 (linux_create_inferior): Set must_set_ptrace_flags.
20374 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20375 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20376 (linux_thread_alive): Rename TID argument to LWPID.
20377 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20378 (linux_wait_for_event): Do not use TID or check using_threads. Update
20379 call to dead_thread_notify. Call handle_extended_wait.
20380 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20381 (send_sigstop): Delete sigstop_sent.
20382 (wait_for_sigstop): Avoid TID.
20383 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20384 (linux_test_for_tracefork): New.
20385 (linux_lookup_signals): Use thread_db_active and
20386 linux_supports_tracefork_flag.
20387 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20388 * linux-low.h (get_process_thread): Avoid TID.
20389 (struct process_ifo): Move thread_known and tid to the end. Remove
20391 (linux_attach_lwp, thread_db_init): Update prototypes.
20392 * server.h (change_inferior_id): Delete prototype.
20393 (add_pid_to_list, pull_pid_from_list): New prototypes.
20394 * thread-db.c (thread_db_use_events): New.
20395 (find_first_thread): Rename to...
20396 (find_one_thread): ...this. Update callers and messages. Do not
20397 call fatal. Check thread_db_use_events. Do not call
20398 change_inferior_id or new_thread_notify.
20399 (maybe_attach_thread): Update. Do not call new_thread_notify.
20400 (thread_db_init): Set thread_db_use_events. Check use_events.
20401 * utils.c (fatal, warning): Correct message prefix.
20403 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20405 * Makefile.in (clean): Remove new files.
20406 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20407 (powerpc-64.o, powerpc-64.c): New rules.
20408 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20409 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20411 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20413 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20414 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20415 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20416 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20417 (target_regsets): Add AltiVec and SPE register sets.
20418 * configure.ac: Check for AltiVec and SPE.
20419 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20420 (ppc_fill_vrregset, ppc_store_vrregset): New.
20421 (target_regsets): Add AltiVec register set.
20422 * configure: Regenerated.
20424 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20426 * linux-low.c (O_LARGEFILE): Define.
20427 (linux_read_memory): Use /proc/PID/mem.
20428 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20429 * configure, config.in: Regenerated.
20431 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20433 * linux-low.c (linux_wait_for_event): Do not pass signals while
20436 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20438 * win32-low.c (create_process): New.
20439 (win32_create_inferior): Use create_process instead of
20440 CreateProcess. If create_process failed retry appending an ".exe"
20441 suffix. Store the GetLastError result immediatelly after
20442 create_process calls and use it on the call to error.
20444 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20446 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20448 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20450 * configure.ac: Switch license to GPLv3.
20452 2007-08-01 Michael Snyder <msnyder@access-company.com>
20454 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20456 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20458 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20460 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20461 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20462 CloseToolhelp32Snapshot.
20463 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20464 CloseToolhelp32Snapshot.
20466 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20468 * server.c (main): Check for inferior exit before main loop.
20470 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20472 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20473 instead of on tmp_desc.
20475 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20476 Daniel Jacobowitz <dan@codesourcery.com>
20478 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20479 (add_thread): Minor cleanups.
20480 (clear_inferiors): Move lower in the file. Clear the DLL
20482 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20483 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20484 (xml_escape_text): New.
20485 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20487 (handle_v_cont): Report errors.
20488 (gdbserver_version): Update.
20489 (main): Correct size of own_buf. Do not report initial DLL events.
20490 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20491 (unloaded_dll, xml_escape_text): New.
20492 * win32-low.c (enum target_waitkind): Update comments.
20493 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20494 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20495 (win32_EnumProcessModules, win32_GetModuleInformation)
20496 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20497 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20498 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20499 (win32_Module32First, win32_Module32Next, load_toolhelp)
20500 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20501 (get_child_debug_event): Handle DLL events.
20502 (win32_wait): Likewise.
20504 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20506 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20507 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20509 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20511 * win32-low.c (handle_output_debug_string): Ignore event if not
20514 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20516 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20518 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20520 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20522 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20524 * inferiors.c (change_inferior_id): Add comment.
20525 * linux-low.c (check_removed_breakpoint): Add an early
20526 prototype. Improve debug output.
20527 (linux_attach): Doc update.
20528 (linux_detach_one_process, linux_detach): Clean up before releasing
20530 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20531 * linux-low.h (struct process_info): Doc improvement.
20532 * mem-break.c (delete_all_breakpoints): New.
20533 * mem-break.h (delete_all_breakpoints): New prototype.
20534 * thread-db.c (find_first_thread): New.
20535 (thread_db_create_event): Call it instead of
20536 thread_db_find_new_threads. Clean up unused variables.
20537 (maybe_attach_thread): Remove first thread handling.
20538 (thread_db_find_new_threads): Use find_first_thread.
20539 (thread_db_get_tls_address): Likewise.
20541 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20543 * thread-db.c (thread_db_find_new_threads): Add prototype.
20544 (thread_db_create_event): Check for the main thread before adding
20546 (maybe_attach_thread): Only enable event reporting if TID == 0.
20547 (thread_db_get_tls_address): Check for new threads.
20549 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20551 * linux-low.c (linux_create_inferior): Try execv before execvp.
20552 * spu-low.c (spu_create_inferior): Likewise.
20554 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20556 * linux-low.c (linux_create_inferior): Change execv to execvp.
20557 * spu-low.c (spu_create_inferior): Likewies.
20559 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20561 * Makefile.in (clean): Clean new files instead of deleted ones.
20562 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20563 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20565 * configure.srv: Specify XML files and new regformats for MIPS and
20567 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20568 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20569 an entry for the restart register.
20570 (mips_cannot_fetch_register, mips_cannot_store_register)
20571 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20572 register names to match the XML descriptions.
20573 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20574 restart register instead of $0.
20576 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20577 Markus Deuling <deuling@de.ibm.com>
20579 * remote-utils.c (decode_xfer_write): New function.
20580 * server.h (decode_xfer_write): Add prototype.
20581 * server.c (handle_query): Add PACKET_LEN argument. Support
20582 qXfer:spu:read and qXfer:spu:write packets.
20583 (main): Pass packet_len to handle_query.
20584 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20585 * target.h (target_ops): Add qxfer_spu.
20587 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20589 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20590 accessing non-seekable spufs files.
20592 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20594 * server.c (handle_query): Add reply for qC packet.
20596 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20597 Leo Zayas <lerele@champenstudios@com>
20599 * server.h (check_remote_input_interrupt_request): New function.
20600 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20601 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20602 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20603 (check_remote_input_interrupt_request): New function.
20604 * server.h (check_remote_input_interrupt_request): Declare.
20605 * win32-low.c (winapi_DebugBreakProcess,
20606 winapi_GenerateConsoleCtrlEvent): New typedefs.
20607 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20609 (win32_wait): Check for remote interrupt request
20610 with check_remote_input_interrupt_request.
20611 (win32_request_interrupt): New function.
20612 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20614 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20616 * win32-low.c (debug_registers_changed,
20617 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20618 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20619 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20620 (thread_rec): Get context using the low target.
20621 (child_add_thread): Call thread_added on the low target,
20622 which does the same thing.
20624 (do_initial_child_stuff): Remove debug registers references.
20625 Set context using the low target. Resume threads after
20626 setting the contexts.
20627 (child_continue): Remove dead variable. Remove debug
20628 registers references.
20629 (child_fetch_inferior_registers): Go through the low target.
20630 (do_child_store_inferior_registers): Remove.
20631 (child_store_inferior_registers): Go through the low target.
20632 (win32_resume): Remove debug registers references.
20633 Set context using the low target.
20634 (handle_exception): Change return type to void. Don't record
20635 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20636 first chance exception.
20637 (get_child_debug_event): Change return type to void. Remove
20638 goto loop. Always return after waiting for debug event.
20639 (win32_wait): Convert to switch statement. Handle spurious
20642 * win32-i386-low.c (debug_registers_changed,
20643 debug_registers_used): New.
20644 (initial_stuff): Rename to ...
20645 (i386_initial_stuff): ... this. Clear debug registers
20647 (store_debug_registers): Delete.
20648 (i386_get_thread_context): New.
20649 (load_debug_registers): Delete.
20650 (i386_set_thread_context): New.
20651 (i386_thread_added): New.
20652 (single_step): Rename to ...
20653 (i386_single_step): ... this.
20654 (do_fetch_inferior_registers): Rename to ...
20655 (i386_fetch_inferior_register): ... this.
20656 (i386_store_inferior_register): New.
20657 (the_low_target): Adapt to new interface.
20659 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20660 (arm_get_thread_context): New.
20661 (arm_set_thread_context): New.
20663 (do_fetch_inferior_registers): Rename to ...
20664 (arm_fetch_inferior_register): ... this.
20665 (arm_store_inferior_register): New.
20666 (arm_wince_breakpoint): Reimplement as unsigned long.
20667 (arm_wince_breakpoint_len): Define.
20668 (the_low_target): Adapt to new interface.
20670 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20671 load_debug_registers. Add get_thread_context, set_thread_context,
20672 thread_added and store_inferior_register. Rename
20673 fetch_inferior_registers to fetch_inferior_register.
20674 (regptr): Remove declaration.
20676 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20678 * linux-low.c (linux_detach): Change return type to int. Return 0.
20679 * spu-low.c (spu_detach): Likewise.
20681 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20683 * target.h (target_ops): Change return type of detach to int.
20685 (join_inferior): New.
20686 * server.c (main): Don't skip detach support on mingw32.
20687 If the inferior doesn't support detaching return error.
20688 Call join_inferior instead of using waitpid.
20689 * linux-low.c (linux_join): New.
20690 (linux_target_op): Add linux_join.
20691 * spu-low.c (spu_join): New.
20692 (spu_target_ops): Add spu_join.
20693 * win32-low.c (win32_detach): Adapt to new interface.
20694 Reopen current_process_handle before detaching. Issue a child
20695 resume before detaching.
20697 (win32_target_op): Add win32_join.
20699 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20701 * win32-low.c (win32-attach): Fix return value.
20702 * target.h (target_ops): Describe ATTACH return values.
20704 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20706 * win32-low.c (GETPROCADDRESS): Define.
20707 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20708 (winapi_DebugSetProcessKillOnExit): Likewise.
20709 (win32_create_inferior): Force usage of ansi CreateProcessA.
20710 (win32_attach): Use GETPROCADDRESS.
20711 (win32_detach): Likewise.
20713 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20715 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20717 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20719 * win32-low.c: Commit leftover changes from 2007-03-29.
20721 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20723 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20724 fields short instead of int. Add explicit padding.
20725 (i387_cache_to_fsave): Remove unnecessary casts.
20726 (i387_fsave_to_cache): Doc fix.
20727 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20729 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20731 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20732 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20734 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20736 * configure.srv (arm*-*-mingw32ce*): Move near the other
20739 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20741 * configure.ac: Add errno checking.
20742 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20743 sys/file.h and malloc.h.
20744 (AC_CHECK_DECLS): Add perror.
20745 (srv_mingwce): Handle.
20746 * configure.srv (i[34567]86-*-cygwin*): Add
20747 win32-i386-low.o to srv_tgtobj.
20748 (i[34567]86-*-mingw*): Likewise.
20749 (arm*-*-mingw32ce*): Add case.
20750 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20751 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20752 [__MINGW32CE__] (strerror): New function.
20753 [__MINGW32CE__] (errno): Define to GetLastError.
20754 [__MINGW32CE__] (COUNTOF): New macro.
20755 (remote_open): Remove extra close call.
20756 * mem-break.c (delete_breakpoint_at): New function.
20757 * mem-break.h (delete_breakpoint_at): Declare.
20758 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20759 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20760 [USE_WIN32API] (read, write): Add char* casts.
20761 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20762 * server.h: Include wincecompat.h on Windows CE.
20763 [HAVE_ERRNO_H]: Check.
20764 (perror): Declare if not declared.
20765 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20766 (perror_with_name): Remove errno declaration.
20767 * wincecompat.h: New.
20768 * wincecompat.c: New.
20769 * win32-low.h: New.
20770 * win32-arm-low.c: New.
20771 * win32-i386-low.c: New.
20772 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20773 (OUTMSG2): Make it safe.
20775 (COUNTOF): New macro.
20776 (NUM_REGS): Get it from the low target.
20777 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20778 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20779 (thread_rec): Let low target handle debug registers.
20780 (child_add_thread): Likewise.
20781 (child_init_thread_list): Likewise.
20782 (continue_one_thread): Likewise.
20784 (do_child_fetch_inferior_registers): Move to ...
20785 * win32-i386-low.c: ... here, and rename to ...
20786 (do_fetch_inferior_registers): ... this.
20787 * win32-low.c (child_fetch_inferior_registers):
20788 Go through the low target.
20789 (do_child_store_inferior_registers): Use regptr.
20790 (strwinerror): New function.
20791 (win32_create_inferior): Handle Windows CE.
20792 Use strwinerror instead of strerror on Windows error
20793 codes. Add program to the error output.
20794 Don't close the main thread handle on Windows CE.
20795 (win32_attach): Use coredll.dll on Windows CE.
20796 (win32_kill): Close current process and current
20798 (win32_detach): Use coredll.dll on Windows CE.
20799 (win32_resume): Let low target handle debug registers, and
20801 (handle_exception): Add/Remove initial breakpoint. Avoid
20802 non-existant WSTOPSIG on Windows CE.
20803 (win32_read_inferior_memory): Cast to remove warning.
20804 (win32_arch_string): Go through the low target.
20805 (initialize_low): Call set_breakpoint_data with the low
20806 target's breakpoint.
20807 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20808 FOP_REGNUM, mappings): Move to ...
20809 * win32-i386-low.c: ... here.
20810 * win32-low.c (win32_thread_info): Move to ...
20811 * win32-low.h: ... here.
20812 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20813 win32-arm-low.c and wincecompat.c.
20814 (all:): Add $EXEEXT.
20815 (install-only:): Likewise.
20816 (gdbserver:): Likewise.
20817 (gdbreplay:): Likewise.
20818 * config.in: Regenerate.
20819 * configure: Regenerate.
20821 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20823 * win32-low.c: Rename typedef thread_info to
20824 win32_thread_info throughout.
20826 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20828 * win32-i386-low.c: Rename to ...
20829 * win32-low.c: ... this.
20830 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20831 * Makefile.in: Likewise.
20833 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20835 * remote-utils.c (monitor_output): Constify msg parameter.
20836 * server.h (monitor_output): Likewise.
20837 * win32-i386-low.c (handle_output_debug_string): New.
20838 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20839 handle_output_debug_string.
20840 (get_child_debug_event): Likewise.
20842 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20844 * server.c (main): Correct strtoul check.
20846 2007-03-27 Jon Ringle <jon@ringle.org>
20848 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20850 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20852 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20854 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20856 * terminal.h: Check HAVE_SGTTY_H.
20858 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20860 * remote-utils.c (remote_open): Print out the assigned port number.
20862 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20864 * remote-utils.c (monitor_output): New function.
20865 * server.c (debug_threads): Define here.
20866 (monitor_show_help): New function.
20867 (handle_query): Handle qRcmd.
20868 (main): Do not handle 'd' packet.
20869 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20870 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20873 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20875 * Makefile.in (EXEEXT): New.
20876 (clean): Use $(EXEEXT).
20878 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20880 * target.h (target_ops): Rename send_signal to request_interrupt,
20881 and remove enum target_signal parameter.
20882 * linux-low.c (linux_request_interrupt): Rename from
20883 linux_send_signal, and always send SIGINT.
20884 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20885 and always send SIGINT.
20886 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20888 (input_interrupt): Likewise.
20890 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20892 * server.c (get_features_xml): Check if target implemented
20894 * win32-i386-low.c (win32_arch_string): New.
20895 (win32_target_ops): Add win32_arch_string as arch_string member.
20897 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20899 * spu-low.c (spu_arch_string): New.
20900 (spu_target_ops): Add spu_arch_string.
20902 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20904 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20905 * configure.ac: Do not check for terminal.h.
20906 * configure, config.in: Regenerated.
20908 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20910 * Makefile.in (OBS): Add $(XML_BUILTIN).
20911 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20913 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20914 (arm-with-iwmmxt.c): New.
20915 * config.in, configure: Regenerate.
20916 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20917 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20918 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20919 (arm*-*-linux*): Add iWMMXt and regset support.
20920 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20921 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20922 (arm_store_wmmxregset, target_regsets): New.
20923 * server.c (get_features_xml): Take annex argument. Check builtin
20925 (handle_query): Handle multiple annexes.
20927 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20929 * remote-utils.c [USE_WIN32API] (read, write): Define.
20930 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20933 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20935 * linux-i386-low.c (the_low_target): Set arch_string.
20936 * linux-x86-64-low.c (the_low_target): Likewise.
20937 * linux-low.c (linux_arch_string): New.
20938 (linux_target_ops): Add it.
20939 * linux-low.h (struct linux_target_ops): Add arch_string.
20940 * server.c (write_qxfer_response): Use const void * for DATA.
20941 (get_features_xml): New.
20942 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20943 * target.h (struct target_ops): Add arch_string method.
20945 2007-01-03 Denis Pilat <denis.pilat@st.com>
20946 Daniel Jacobowitz <dan@codesourcery.com>
20948 * linux-low.c (linux_kill): Handle being called with no threads.
20949 * win32-i386-low.c (win32_kill): Likewise.
20950 (get_child_debug_event): Clear current_process_handle.
20952 2006-12-30 Denis PILAT <denis.pilat@st.com>
20953 Daniel Jacobowitz <dan@codesourcery.com>
20955 * remote-utils.c (remote_open): Check the type of specified
20956 serial port devices before opening them.
20957 * server.c (main): Kill the inferior if an error occurs during
20958 the first remote_open.
20960 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20962 * README: Update supported targets.
20964 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20966 * Makefile.in (clean): Remove reg-mips64.c.
20967 (reg-mips64.c, reg-mips64.o): New rules.
20968 * configure.srv: Handle mips64. Include regset support for mips.
20969 * linux-mips-low.c (union mips_register): New.
20970 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20971 (mips_breakpoint, mips_breakpoint_at): Use int.
20972 (mips_collect_register, mips_supply_register)
20973 (mips_collect_register_32bit, mips_supply_register_32bit)
20974 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20975 (mips_store_fpregset, target_regsets): New.
20976 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20978 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20980 * configure.srv: Add target "spu*-*-*".
20981 * Makefile.in (clean): Remove reg-spu.c.
20982 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20983 * spu-low.c: New file.
20985 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20987 * configure.ac: Correct td_thr_tls_get_addr test.
20988 * configure: Regenerated.
20990 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20992 * linux-low.c (linux_wait_for_event): Reformat. Use the
20993 pass_signals array.
20994 * remote-utils.c (decode_address_to_semicolon): New.
20995 * server.c (pass_signals, handle_general_set): New.
20996 (handle_query): Mention QPassSignals for qSupported.
20997 (main): Call handle_general_set.
20998 * server.h (pass_signals, decode_address_to_semicolon): New.
21000 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21002 * server.c (handle_query): Correct error handling for read_auxv.
21004 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21006 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21007 and srv_linux_thread_db to yes.
21008 * linux-s390-low.c (s390_fill_gregset): New function.
21009 (target_regsets): Define data structure.
21011 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21013 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21014 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21015 * config.in, configure: Regenerated.
21016 * inferiors.c (gdb_id_to_thread): New function.
21017 (gdb_id_to_thread_id): Use it.
21018 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21019 * linux-low.h (struct process_info): Add th member.
21020 (thread_db_get_tls_address): New prototype.
21021 * remote-utils.c (decode_address): Make non-static.
21022 * server.c (handle_query): Handle qGetTLSAddr.
21023 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21024 * target.h (struct target_ops): Add get_tls_address.
21025 * thread-db.c (maybe_attach_thread): Save the thread handle.
21026 (thread_db_get_tls_address): New.
21028 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21030 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21031 (linux_resume_one_process): Take a siginfo_t *. Update all
21032 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21033 (struct pending_signals): Add a siginfo_t.
21034 (linux_wait_for_process): Always set last_status.
21035 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21036 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21037 * linux-low.h (struct process_info): Add last_status.
21039 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21041 * remote-utils.c (try_rle): New function.
21042 (putpkt_binary): Use it.
21044 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21046 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21047 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21048 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21049 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21050 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21053 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21055 * server.c (terminal_fd): New variable.
21056 (old_foreground_pgrp): Likewise.
21057 (restore_old_foreground_pgrp): New function.
21058 (start_inferior): Record the terminal file descriptor in terminal_fd
21059 and its original foreground group in old_foreground_pgrp. Register
21060 restore_old_foreground_pgrp with atexit().
21062 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21064 * server.c (handle_query): Correct qPart to qXfer.
21066 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21068 * configure.ac: Check for more headers which are missing on
21069 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21070 * configure.srv: Add Cygwin and mingw32.
21071 * remote-utils.c: Don't include headers unconditionally which
21072 are missing on mingw32. Include <winsock.h> for mingw32.
21073 (remote_open): Adjust for mingw32 support. Flush
21074 standard error after writing to it.
21075 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21076 (unblock_async_io, enable_async_io, disable_async_io)
21077 (readchar, getpkt): Update for Winsock support.
21078 (prepare_resume_reply): Expect a protocol signal number.
21079 * server.c: Disable <sys/wait.h> on mingw32.
21080 (start_inferior): Adjust for mingw32 support. Flush
21081 standard error after writing to it.
21082 (attach_inferior): Likewise. Use protocol signal
21084 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21086 * win32-i386-low.c: New file.
21087 * Makefile.in (XM_CLIBS): Set.
21088 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21089 (win32-i386-low.o): New dependency rule.
21090 * linux-low.c (linux_wait): Use target signal numbers.
21091 * target.h (struct target_ops): Doc fix.
21092 * server.h (target_signal_to_name): New prototype.
21093 * gdbreplay.c: Don't include headers unconditionally which
21094 are missing on mingw32. Include <winsock.h> for mingw32.
21095 (remote_close, remote_open): Adjust for Winsock support.
21096 * configure, config.in: Regenerated.
21098 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21100 * server.c (decode_xfer_read, write_qxfer_response): New.
21101 (handle_query): Take a packet length argument. Handle
21102 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21103 the qSupported response.
21104 (main): Update call to handle_query.
21106 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21108 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21109 (putpkt_binary): Renamed from putpkt and adjusted for binary
21111 (putpkt): New wrapper for putpkt_binary.
21112 (readchar): Don't mask off the high bit.
21113 (decode_X_packet): New function.
21114 * server.c (main): Call putpkt_binary if a handler sets the packet
21115 length. Save the length of the incoming packet. Handle 'X'.
21116 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21118 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21120 * server.c (handle_query): Handle qSupported.
21122 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21124 * remote-utils.c (all_symbols_looked_up): New variable.
21125 (look_up_one_symbol): Check it.
21126 * server.h (look_up_one_symbol): New declaration.
21127 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21129 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21131 * Makefile.in (linux-arm-low.o): Update dependencies.
21132 * linux-arm-low.c: Include "gdb_proc_service.h".
21133 (PTRACE_GET_THREAD_AREA): Define.
21134 (ps_get_thread_area): New function.
21136 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21138 * configure.srv (m68k*-*-uclinux*): New target.
21139 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21140 (linux_resume_one_process): Remove extraneous cast.
21141 (linux_read_offsets): New.
21142 (linux_target_op): Add linux_read_offsets on mmuless systems.
21143 * server.c (handle_query): Add qOffsets logic.
21144 * target.h (struct target_ops): Add read_offsets.
21146 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21148 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21149 (PTRACE_GET_THREAD_AREA): Define.
21150 (ps_get_thread_area): New function.
21151 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21152 (linux-x86-64-low.o): Update.
21154 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21156 * configure.ac: Remove checks for prfpregset_t.
21157 * gdb_proc_service.h: New file.
21158 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21159 new "gdb_proc_service.h".
21160 * proc-service.c: Likewise.
21161 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21162 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21163 * Makefile.in (gdb_proc_service_h): Updated.
21164 * configure, config.in: Regenerated.
21166 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21168 * remote-utils.c (prepare_resume_reply): Move declaration
21169 of gdb_id_from_wait to the top of the block.
21171 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21173 * linux-low.c (regsets_store_inferior_registers): Read the regset
21174 from the target before filling it.
21176 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21178 * server.c (attach_inferior): Return SIGTRAP for a successful
21181 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21183 * Makefile.in (OBS): Add version.o.
21184 (STAGESTUFF): Delete.
21185 (version.o): Add dependencies.
21186 (version.c): Replace rule.
21187 (clean): Remove version.c.
21188 * server.c (gdbserver_version): New.
21189 (gdbserver_usage): Use printf.
21190 (main): Handle --version and --help.
21191 * server.h (version, host_name): Add declarations.
21193 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21205 * linux-x86-64-low.c:
21207 * linux-s390-low.c:
21208 * linux-ppc64-low.c:
21210 * linux-mips-low.c:
21211 * linux-m68k-low.c:
21212 * linux-m32r-low.c:
21215 * linux-ia64-low.c:
21216 * linux-i386-low.c:
21217 * linux-crisv32-low.c:
21229 * gdbserver.1: Add (C) after Copyright. Update the FSF
21232 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21234 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21235 (arm_breakpoint_at): Recognize both breakpoints.
21236 (the_low_target): Use the correct breakpoint instruction.
21238 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21240 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21241 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21242 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21243 (the_low_target): Update.
21245 2005-10-25 Andreas Schwab <schwab@suse.de>
21247 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21249 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21250 (ia64_num_regs): Reduce to 462.
21252 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21254 * acinclude.m4: Correct quoting.
21255 * aclocal.m4: Regenerated.
21257 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21258 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21259 (thread_db_init): Call thread_db_err_str.
21260 * configure.ac: Check for TD_VERSION.
21261 * config.in, configure: Regenerated.
21263 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21265 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21267 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21269 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21270 is not available. Define HAVE_PTRACE_GETREGS if it is.
21271 * config.in, configure: Regenerated.
21272 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21273 * linux-i386-low.c, linux-m68k-low.c: Update to use
21274 HAVE_PTRACE_GETREGS.
21275 * linux-low.c (regsets_fetch_inferior_registers)
21276 (regsets_store_inferior_registers): Only return 0 if we processed
21278 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21279 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21281 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21283 * inferiors.c (struct thread_info): Add gdb_id.
21284 (add_thread): Add gdb_id argument.
21285 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21286 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21287 calls to add_thread.
21288 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21289 * server.c (handle_query): Use thread_to_gdb_id.
21290 (handle_v_cont, main): Use gdb_id_to_thread_id.
21291 * server.h (add_thread): Update prototype.
21292 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21295 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21297 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21298 left-padded registers.
21299 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21300 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21302 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21304 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21305 * configure: Regenerate.
21306 * config.in: Regenerate.
21307 * server.h (NEED_DECLARATION_STRERROR):
21308 Replace with !HAVE_DECL_STRERROR.
21310 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21312 * linux-low.c (linux_wait, linux_send_signal): Don't test
21313 an unsigned long variable for > 0 if it could be MAX_ULONG.
21314 * server.c (myresume): Likewise.
21315 * target.c (set_desired_inferior): Likewise.
21317 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21319 * configure.ac: Simplify and improve check for socklen_t.
21320 * configure, config.in: Regenerate.
21322 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21324 * acconfig.h: Remove.
21325 * configure.ac: Add a test for socklen_t. Use three-argument
21326 AC_DEFINE throughout.
21327 * config.in: Regenerated using autoheader 2.59.
21328 * configure: Regenerated.
21330 * gdbreplay.c (socklen_t): Provide a default.
21331 (remote_open): Use socklen_t.
21332 * remote-utils.c (socklen_t): Provide a default.
21333 (remote_open): Use socklen_t.
21334 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21337 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21339 * linux-low.c (linux_read_memory, linux_write_memory)
21340 (linux_read_auxv): Likewise.
21341 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21342 (check_mem_write): Likewise.
21343 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21345 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21346 (registers_from_string, register_data): Likewise.
21347 * server.c (handle_query, main): Likewise.
21348 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21349 (decode_M_packet): Likewise.
21350 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21351 * target.h (struct target_ops): Update read_memory, write_memory,
21353 (read_inferior_memory, write_inferior_memory): Update.
21354 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21355 to unsigned char *.
21356 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21357 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21358 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21359 linux-s390-low.c, linux-sh-low.c: Update for changes in
21360 read_inferior_memory and the_low_target->breakpoint.
21362 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21364 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21365 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21366 * configure.srv: Add powerpc64-*-linux*.
21367 * linux-ppc64-low.c: New file.
21369 2005-05-23 Orjan Friberg <orjanf@axis.com>
21371 * linux-cris-low.c: New file with support for CRIS.
21372 * linux-crisv32-low.c: Ditto for CRISv32.
21373 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21374 (clean): Add reg-cris.c and reg-crisv32.c.
21375 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21376 reg-crisv32.o, and reg-crisv32.c to make rules.
21377 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21378 recognized targets.
21380 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21382 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21383 of sizeof (PTRACE_XFER_TYPE).
21384 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21386 2005-05-12 Orjan Friberg <orjanf@axis.com>
21388 * target.h (struct target_ops): Add insert_watchpoint,
21389 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21390 pointers for hardware watchpoint support.
21391 * linux-low.h (struct linux_target_ops): Ditto.
21392 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21393 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21394 to linux_target_ops.
21395 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21397 * server.c (main): Recognize 'Z' and 'z' packets.
21399 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21401 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21402 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21403 (the_low_target): Add new members.
21405 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21407 * proc-service.c (ps_lgetregs): Search all_processes instead of
21410 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21412 * server.c (start_inferior): Change return type to int.
21413 (attach_inferior): Change sigptr to int *.
21414 (handle_v_cont, handle_v_requests): Change signal to int *.
21415 (main): Change signal to int.
21417 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21419 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21420 * configure.srv: Add m32r*-*-linux*.
21421 * linux-m32r-low.c: New file.
21423 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21425 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21427 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21429 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21430 Take unsigned long arguments for PIDs.
21431 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21432 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21433 (wait_for_sigstop, linux_resume_one_process)
21434 (regsets_fetch_inferior_registers, linux_send_signal)
21435 (linux_read_auxv): Likewise. Update the types of variables holding
21436 PIDs. Update format string specifiers.
21437 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21438 * remote-utils.c (prepare_resume_reply): Likewise.
21439 * server.c (cont_thread, general_thread, step_thread)
21440 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21442 (handle_query): Update format specifiers.
21443 (handle_v_cont, main): Use strtoul for thread IDs.
21444 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21445 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21446 (general_thread, step_thread, thread_from_wait)
21447 (old_thread_from_wait): Update.
21448 * target.h (struct thread_resume): Use unsigned long for THREAD.
21449 (struct target_ops): Use unsigned long for arguments to attach and
21452 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21454 * acinclude.m4: Include bfd/bfd.m4 directly.
21455 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21456 <agriffis@toolchain.org>.
21457 * aclocal.m4, configure: Regenerated.
21459 2005-01-07 Andrew Cagney <cagney@gnu.org>
21461 * configure.ac: Rename configure.in, require autoconf 2.59.
21462 * configure: Re-generate.
21464 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21466 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21467 LIBS when finished.
21468 * aclocal.m4: Regenerated.
21469 * configure: Regenerated.
21471 2004-11-21 Andreas Schwab <schwab@suse.de>
21473 * linux-m68k-low.c (m68k_num_gregs): Define.
21474 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21475 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21476 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21477 (m68k_breakpoint_at): New. Add to the_low_target.
21479 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21480 srv_linux_thread_db to yes.
21482 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21484 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21485 (ARCH_SET_FS): Likewise.
21486 (ARCH_GET_FS): Likewise.
21487 (ARCH_GET_GS): Likewise.
21489 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21491 * linux-i386-low.c (ps_get_thread_area): New.
21492 * linux-x86-64-low.c (ps_get_thread_area): New.
21493 * linux-low.c: Include <sys/syscall.h>.
21494 (linux_kill_one_process): Don't kill the first thread here.
21495 (linux_kill): Kill the first thread here.
21496 (kill_lwp): New function.
21497 (send_sigstop, linux_send_signal): Use it.
21498 * proc-service.c: Clean up #ifdefs.
21499 (fpregset_info): Delete.
21500 (ps_lgetregs): Update and enable implementation.
21501 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21503 * remote-utils.c (struct sym_cache, symbol_cache): New.
21504 (input_interrupt): Print a clearer message.
21505 (async_io_enabled): New variable.
21506 (enable_async_io, disable_async_io): Use it. Update comments.
21507 (look_up_one_symbol): Use the symbol cache.
21508 * thread-db.c (thread_db_look_up_symbols): New function.
21509 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21511 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21513 * configure.in: Test for -rdynamic.
21514 * configure: Regenerated.
21515 * Makefile (INTERNAL_LDFLAGS): New.
21516 (gdbserver, gdbreplay): Use it.
21518 2004-09-02 Andrew Cagney <cagney@gnu.org>
21520 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21522 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21524 * linux-low.c (linux_wait): Clear all_processes list also.
21526 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21528 * linux-low.c: Include <errno.h>. Remove extern declaration of
21531 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21533 * gdbreplay.c, server.h, utils.c: Update copyright years.
21535 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21537 * server.c (main): Print child status or termination signal from
21538 variable 'signal', not 'sig'.
21540 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21542 * linux-low.c (linux_read_memory): Change return type to
21543 int. Check for and return error from ptrace().
21544 * target.c (read_inferior_memory): Change return type to int. Pass
21545 back return status from the_target->read_memory().
21546 * target.h (struct target_ops): Adapt *read_memory() prototype.
21548 (read_inferior_memory): Adapt prototype.
21549 * server.c (main): Return an error packet if
21550 read_inferior_memory() returns an error.
21552 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21554 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21555 Unify with other clean targets.
21557 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21559 * server.c (handle_v_cont): Call set_desired_inferior.
21561 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21563 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21565 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21567 * linux-low.c (linux_wait): Unblock async I/O.
21568 (linux_resume): Block and enable async I/O.
21569 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21570 * server.h (block_async_io, unblock_async_io): Add prototypes.
21572 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21574 * remote-utils.c (remote_open): Print a status notice after
21575 opening a TCP port.
21576 * server.c (attach_inferior): Print a status notice after
21579 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21581 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21583 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21585 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21587 * server.c, target.h: Update copyright years.
21589 2004-02-25 Roland McGrath <roland@redhat.com>
21591 * target.h (struct target_ops): New member `read_auxv'.
21592 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21593 * linux-low.c (linux_read_auxv): New function.
21594 (linux_target_ops): Initialize `read_auxv' member to that.
21596 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21598 Committed by Jim Blandy <jimb@redhat.com>.
21600 * linux-s390-low.c (s390_num_regs): Update.
21601 (s390_regmap): Remove control registers. Use __s390x__ predefine
21602 instead of GPR_SIZE to distiguish s390 and s390x targets.
21604 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21606 * linux-low.c: Update copyright year.
21607 (check_removed_breakpoint): Clear pending_is_breakpoint.
21608 (linux_set_resume_request, linux_queue_one_thread)
21609 (resume_status_pending_p): New functions.
21610 (linux_continue_one_thread): Use process->resume.
21611 (linux_resume): Only resume threads if there are no pending events.
21612 * linux-low.h (struct process_info): Add resume request
21615 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21617 * regcache.c (new_register_cache): Clear the allocated register
21618 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21620 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21622 * linux-low.c (linux_resume): Take a struct thread_resume *
21624 (linux_wait): Update call.
21625 (resume_ptr): New static variable.
21626 (linux_continue_one_thread): Renamed from
21627 linux_continue_one_process. Use resume_ptr.
21628 (linux_resume): Use linux_continue_one_thread.
21629 * server.c (handle_v_cont, handle_v_requests): New functions.
21630 (myresume): New function.
21631 (main): Handle 'v' case.
21632 * target.h (struct thread_resume): New type.
21633 (struct target_ops): Change argument of "resume" to struct
21635 (myresume): Delete macro.
21637 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21639 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21640 (uninstall): Support DESTDIR.
21642 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21644 * configure.srv: Add xscale*linux copy of arm*linux entry.
21646 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21648 * linux-arm-low.c (arm_reinsert_addr): New function.
21649 (the_low_target): Add arm_reinsert_addr.
21651 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21653 * mem-break.c: Remove whitespace at end of file.
21655 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21657 * configure.in: Check whether we need to prototype strerror.
21658 * server.h: Optionally prototype strerror.
21659 * gdbreplay.c (perror_with_name): Use strerror.
21660 * linux-low.c (linux_attach_lwp): Use strerror.
21661 * utils.c (perror_with_name): Use strerror.
21662 * config.in, configure: Regenerated.
21664 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21666 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21667 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21669 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21671 * Makefile.in (SFILES): Update.
21672 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21673 low-sun3.c: Remove files.
21675 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21677 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21678 (linux_detach_one_process, linux_detach): New functions.
21679 (linux_target_ops): Add linux_detach.
21680 * server.c (main): Handle 'D' packet.
21681 * target.h (struct target_ops): Add "detach" member.
21682 (detach_inferior): Define.
21684 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21686 From Kelley Cook <kelleycook@wideopenwest.com>:
21687 * configure.srv: Accept i[34567]86 variants.
21689 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21691 * linux-low.c (linux_wait_for_event): Correct comment typos.
21692 (linux_resume_one_process): Call check_removed_breakpoint.
21693 (linux_send_signal): New function.
21694 (linux_target_ops): Add linux_send_signal.
21695 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21697 * target.h (struct target_ops): Add send_signal.
21699 2003-05-29 Jim Blandy <jimb@redhat.com>
21701 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21702 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21703 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21704 away part of the register's value.
21706 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21708 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21709 (linux_wait_for_event, linux_init_signals): Likewise.
21711 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21713 * configure.in: Check for stdlib.h.
21714 * configure: Regenerated.
21715 * config.in: Regenerated.
21717 2003-01-04 Andreas Schwab <schwab@suse.de>
21719 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21721 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21723 * Makefile.in: Remove obsolete code.
21725 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21727 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21728 defined(PT_FPR0_HI).
21730 2002-11-17 Stuart Hughes <seh@zee2.com>
21732 * linux-arm-low.c (arm_num_regs): Increase.
21733 (arm_regmap): Include status register.
21735 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21737 * linux-low.c (register_addr): Remove incorrect -1 check.
21739 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21741 * linux-low.c (linux_create_inferior): Call setpgid. Return
21743 (unstopped_p, linux_signal_pid): Remove.
21744 (linux_target_ops): Remove linux_signal_pid.
21745 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21746 global instead of target method.
21747 * target.h (struct target_ops): Remove signal_pid. Update comment
21748 for create_inferior.
21749 * server.c (signal_pid): New variable.
21750 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21751 gdbserver. Set the child to be the foreground process group.
21752 (attach_inferior): Set signal_pid.
21754 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21756 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21758 2002-08-20 Jim Blandy <jimb@redhat.com>
21760 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21763 2002-08-01 Andrew Cagney <cagney@redhat.com>
21765 * Makefile.in: Make chill references obsolete.
21767 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21769 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21770 * configure: Regenerate.
21771 * config.in: Regenerate.
21773 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21775 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21776 (perror_with_name, remote_close, remote_open, expect, play): Static.
21778 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21780 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21781 byte offsets instead of an array of indexes.
21782 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21784 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21786 * regcache.c: Add comment.
21788 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21790 * thread-db.c: New file.
21791 * proc-service.c: New file.
21792 * acinclude.m4: New file.
21793 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21794 proc-service.o, and thread-db.o.
21795 (linux-low.o): Add USE_THREAD_DB.
21796 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21797 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21798 * aclocal.m4: Regenerated.
21799 * config.in: Regenerated.
21800 * configure: Regenerated.
21801 * configure.in: Check for proc_service.h, sys/procfs.h,
21802 thread_db.h, and linux/elf.h headrs.
21803 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21804 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21805 Check for -lthread_db and thread support.
21806 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21807 PowerPC, and SuperH.
21808 * i387-fp.c: Constify arguments.
21809 * i387-fp.h: Likewise.
21810 * inferiors.c: (struct thread_info): Renamed from
21811 `struct inferior_info'. Remove PID member. Use generic inferior
21812 list header. All uses updated.
21813 (inferiors, signal_pid): Removed.
21814 (all_threads): New variable.
21815 (get_thread): Define.
21816 (add_inferior_to_list): New function.
21817 (for_each_inferior): New function.
21818 (change_inferior_id): New function.
21819 (add_inferior): Removed.
21820 (remove_inferior): New function.
21821 (add_thread): New function.
21822 (free_one_thread): New function.
21823 (remove_thread): New function.
21824 (clear_inferiors): Use for_each_inferior and free_one_thread.
21825 (find_inferior): New function.
21826 (find_inferior_id): New function.
21827 (inferior_target_data): Update argument type.
21828 (set_inferior_target_data): Likewise.
21829 (inferior_regcache_data): Likewise.
21830 (set_inferior_regcache_data): Likewise.
21831 * linux-low.c (linux_bp_reinsert): Remove.
21832 (all_processes, stopping_threads, using_thrads)
21833 (struct pending_signals, debug_threads, pid_of): New.
21834 (inferior_pid): Replace with macro.
21835 (struct inferior_linux_data): Remove.
21836 (get_stop_pc, add_process): New functions.
21837 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21838 Use add_process and add_thread.
21839 (linux_attach_lwp): New function, based on old linux_attach. Use
21840 add_process and add_thread. Set stop_expected for new threads.
21841 (linux_attach): New function.
21842 (linux_kill_one_process): New function.
21843 (linux_kill): Kill all LWPs.
21844 (linux_thread_alive): Use find_inferior_id.
21845 (check_removed_breakpoints, status_pending_p): New functions.
21846 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21847 Update. Use WNOHANG. Wait for cloned processes also. Update process
21848 struct for the found process.
21849 (linux_wait_for_event): New function.
21850 (linux_wait): Use it. Support LWPs.
21851 (send_sigstop, wait_for_sigstop, stop_all_processes)
21852 (linux_resume_one_process, linux_continue_one_process): New functions.
21853 (linux_resume): Support LWPs.
21854 (REGISTER_RAW_SIZE): Remove.
21855 (fetch_register): Use register_size instead. Call supply_register.
21856 (usr_store_inferior_registers): Likewise. Call collect_register.
21857 Fix recursive case.
21858 (regsets_fetch_inferior_registers): Improve error message.
21859 (regsets_store_inferior_registers): Add debugging.
21860 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21861 (unstopped_p, linux_signal_pid): New functions.
21862 (linux_target_ops): Add linux_signal_pid.
21863 (linux_init_signals): New function.
21864 (initialize_low): Call it. Initialize using_threads.
21865 * regcache.c (inferior_regcache_data): Add valid
21867 (get_regcache): Fetch registers lazily. Add fetch argument
21868 and update all callers.
21869 (regcache_invalidate_one, regcache_invalidate): New
21871 (new_register_cache): Renamed from create_register_cache.
21872 Return the new regcache.
21873 (free_register_cache): Change argument to a void *.
21874 (registers_to_string, registers_from_string): Call get_regcache
21875 with fetch flag set.
21876 (register_data): Make static. Pass fetch flag to get_regcache.
21877 (supply_register): Call get_regcache with fetch flag clear.
21878 (collect_register): Call get_regcache with fetch flag set.
21879 (collect_register_as_string): New function.
21880 * regcache.h: Update.
21881 * remote-utils.c (putpkt): Flush after debug output and use
21883 Handle input interrupts while waiting for an ACK.
21884 (input_interrupt): Use signal_pid method.
21885 (getpkt): Flush after debug output and use stderr.
21886 (outreg): Use collect_register_as_string.
21887 (new_thread_notify, dead_thread_notify): New functions.
21888 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21889 and general_thread.
21890 (look_up_one_symbol): Flush after debug output.
21891 * server.c (step_thread, server_waiting): New variables.
21892 (start_inferior): Don't use signal_pid. Update call to mywait.
21893 (attach_inferior): Update call to mywait.
21894 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21895 (main): Don't fetch/store registers explicitly. Use
21896 set_desired_inferior. Support proposed ``Hs'' packet. Update
21898 * server.h: Update.
21899 (struct inferior_list, struct_inferior_list_entry): New.
21900 * target.c (set_desired_inferior): New.
21901 (write_inferior_memory): Constify.
21902 (mywait): New function.
21903 * target.h: Update.
21904 (struct target_ops): New signal_pid method.
21905 (mywait): Removed macro, added prototype.
21907 * linux-low.h (regset_func): Removed.
21908 (regset_fill_func, regset_store_func): New.
21909 (enum regset_type): New.
21910 (struct regset_info): Add type field. Use new operation types.
21911 (struct linux_target_ops): stop_pc renamed to get_pc.
21912 Add decr_pc_after_break and breakpoint_at.
21913 (get_process, get_thread_proess, get_process_thread)
21914 (strut process_info, all_processes, linux_attach_lwp)
21915 (thread_db_init): New.
21917 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21918 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21919 (the_low_target): Add new members.
21920 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21921 (i386_store_fpxregset): Constify.
21922 (target_regsets): Add new kind identifier.
21923 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21924 (i386_set_pc): Add debugging.
21925 (i386_breakpoint_at): New function.
21926 (the_low_target): Add new members.
21927 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21928 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21929 (mips_breakpoint_at): New.
21930 (the_low_target): Add new members.
21931 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21932 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21933 (the_low_target): Add new members.
21934 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21935 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21936 (the_low_target): Add new members.
21937 * linux-x86-64-low.c (target_regsets): Add new kind
21940 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21942 From Martin Pool <mbp@samba.org>:
21943 * server.c (gdbserver_usage): New function.
21946 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21948 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21949 stop_at -> stop_pc.
21951 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21953 * Makefile.in: Remove obsolete code.
21955 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21957 * linux-low.c (regsets_fetch_inferior_registers),
21958 (regsets_store_inferior_registers): Removed cast to int from
21960 * regcache.h: Added declaration of struct inferior_info.
21962 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21964 * inferiors.c (struct inferior_info): Add regcache_data.
21965 (add_inferior): Call create_register_cache.
21966 (clear_inferiors): Call free_register_cache.
21967 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21968 * regcache.c (struct inferior_regcache_data): New.
21969 (registers): Remove.
21970 (get_regcache): New function.
21971 (create_register_cache, free_register_cache): New functions.
21972 (set_register_cache): Don't initialize the register cache here.
21973 (registers_to_string, registers_from_string, register_data): Call
21975 * regcache.h: Add prototypes.
21976 * server.h: Likewise.
21978 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21980 * mem-break.c: New file.
21981 * mem-break.h: New file.
21982 * Makefile.in: Add mem-break.o rule; update server.h
21984 * inferiors.c (struct inferior_info): Add target_data
21986 (clear_inferiors): Free target_data member if set.
21987 (inferior_target_data, set_inferior_target_data): New functions.
21988 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21989 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21990 * linux-low.c (linux_bp_reinsert): New variable.
21991 (struct inferior_linux_data): New.
21992 (linux_create_inferior): Use set_inferior_target_data.
21993 (linux_attach): Likewise. Call add_inferior.
21994 (linux_wait_for_one_inferior): New function.
21995 (linux_wait): Call it.
21996 (linux_write_memory): Add const.
21997 (initialize_low): Call set_breakpoint_data.
21998 * linux-low.h (struct linux_target_ops): Add breakpoint
22000 * server.c (attach_inferior): Remove extra add_inferior
22002 * server.h: Include mem-break.h. Update inferior.c
22004 * target.c (read_inferior_memory)
22005 (write_inferior_memory): New functions.
22006 * target.h (read_inferior_memory)
22007 (write_inferior_memory): Change macros to prototypes.
22008 (struct target_ops): Update comments. Add const to write_memory
22011 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22013 * linux-low.c (usr_store_inferior_registers): Support
22014 registers which are allowed to fail to store.
22015 * linux-low.h (linux_target_ops): Likewise.
22016 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22017 (ppc_cannot_store_register): FPSCR may not be storable.
22019 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22021 * server.h: Include <string.h> if HAVE_STRING_H.
22022 * ChangeLog: Correct paths in last ChangeLog entry.
22024 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22026 * linux-low.h: Remove obsolete prototypes.
22027 (struct linux_target_ops): New.
22028 (extern the_low_target): New.
22029 * linux-low.c (num_regs, regmap): Remove declarations.
22030 (register_addr): Use the_low_target explicitly.
22031 (fetch_register): Likewise.
22032 (usr_fetch_inferior_registers): Likewise.
22033 (usr_store_inferior_registers): Likewise.
22034 * linux-arm-low.c (num_regs): Remove.
22035 (arm_num_regs): Define.
22036 (arm_regmap): Renamed from regmap, made static.
22037 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22039 (arm_cannot_store_register): Renamed from cannot_store_register,
22041 (the_low_target): New.
22042 * linux-i386-low.c (num_regs): Remove.
22043 (i386_num_regs): Define.
22044 (i386_regmap): Renamed from regmap, made static.
22045 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22047 (i386_cannot_store_register): Renamed from cannot_store_register,
22049 (the_low_target): New.
22050 * linux-ia64-low.c (num_regs): Remove.
22051 (ia64_num_regs): Define.
22052 (ia64_regmap): Renamed from regmap, made static.
22053 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22055 (ia64_cannot_store_register): Renamed from cannot_store_register,
22057 (the_low_target): New.
22058 * linux-m68k-low.c (num_regs): Remove.
22059 (m68k_num_regs): Define.
22060 (m68k_regmap): Renamed from regmap, made static.
22061 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22063 (m68k_cannot_store_register): Renamed from cannot_store_register,
22065 (the_low_target): New.
22066 * linux-mips-low.c (num_regs): Remove.
22067 (mips_num_regs): Define.
22068 (mips_regmap): Renamed from regmap, made static.
22069 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22071 (mips_cannot_store_register): Renamed from cannot_store_register,
22073 (the_low_target): New.
22074 * linux-ppc-low.c (num_regs): Remove.
22075 (ppc_num_regs): Define.
22076 (ppc_regmap): Renamed from regmap, made static.
22077 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22079 (ppc_cannot_store_register): Renamed from cannot_store_register,
22081 (the_low_target): New.
22082 * linux-s390-low.c (num_regs): Remove.
22083 (s390_num_regs): Define.
22084 (s390_regmap): Renamed from regmap, made static.
22085 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22087 (s390_cannot_store_register): Renamed from cannot_store_register,
22089 (the_low_target): New.
22090 * linux-sh-low.c (num_regs): Remove.
22091 (sh_num_regs): Define.
22092 (sh_regmap): Renamed from regmap, made static.
22093 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22095 (sh_cannot_store_register): Renamed from cannot_store_register,
22097 (the_low_target): New.
22098 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22099 (the_low_target): New.
22101 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22103 * Makefile.in: Add stamp-h target.
22104 * configure.in: Create stamp-h.
22105 * configure: Regenerated.
22107 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22109 * inferiors.c: New file.
22110 * target.c: New file.
22111 * target.h: New file.
22112 * Makefile.in: Add target.o and inferiors.o. Update
22114 * linux-low.c (inferior_pid): New static variable,
22115 moved from server.c.
22116 (linux_create_inferior): Renamed from create_inferior.
22117 Call add_inferior. Return 0 on success instead of a PID.
22118 (linux_attach): Renamed from myattach.
22119 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22120 (linux_thread_alive): Renamed from mythread_alive.
22121 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22123 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22124 (regsets_store_inferior_registers): Correct error message.
22125 Add missing ``return 0''.
22126 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22127 (linux_store_registers): Renamed from store_inferior_registers.
22128 (linux_read_memory): Renamed from read_inferior_memory.
22129 (linux_write_memory): Renamed from write_inferior_memory.
22130 (linux_target_ops): New structure.
22131 (initialize_low): Call set_target_ops ().
22132 * remote-utils.c (unhexify): New function.
22133 (hexify): New function.
22134 (input_interrupt): Send signals to ``signal_pid''.
22135 * server.c (inferior_pid): Remove.
22136 (start_inferior): Update create_inferior call.
22137 (attach_inferior): Call add_inferior.
22138 (handle_query): New function.
22139 (main): Call handle_query for `q' packets.
22140 * server.h: Include "target.h". Remove obsolete prototypes.
22141 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22143 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22145 * Makefile.in: Add WARN_CFLAGS. Update configury
22147 * configure.in: Check for <string.h>
22148 * configure: Regenerate.
22149 * config.in: Regenerate.
22150 * gdbreplay.c: Include needed system headers.
22151 (remote_open): Remove strchr prototype.
22152 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22153 * regcache.c (supply_register): Change buf argument to const void *.
22154 (supply_register_by_name): Likewise.
22155 (collect_register): Change buf argument to void *.
22156 (collect_register_by_name): Likewise.
22157 * regcache.h: Add missing prototypes.
22158 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22159 * server.c (handle_query): New function.
22160 (attached): New static variable, moved out of main.
22161 (main): Quiet longjmp clobber warnings.
22162 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22163 * utils.c (error): Remove NORETURN.