1 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
4 (win32_clear_inferiors): Use open_process_used.
5 (get_child_debug_event): Likewise.
7 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10 * linux-low.cc (linux_process_target::create_inferior),
11 lynx-low.cc (lynx_process_target::create_inferior),
12 win32-low.cc (win32_process_target::create_inferior): Use
13 construct_inferior_arguments instead of stringify_argv
14 to get string representation which properly escapes
16 * server.cc (handle_v_run): Just pass empty program arg
17 as such, since any further processing is now handled via
18 construct_inferior_arguments.
20 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
22 * nto-low.cc (nto_process_target::create_inferior): Pass
23 argv to spawnp function as char **.
25 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
27 * server.cc (captured_main), (handle_v_run): No longer
28 insert extra NULL element to args vector.
30 2020-05-23 Pedro Alves <palves@redhat.com>
32 * gdb-safe-ctype.h: New.
34 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
37 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
38 (ia64_target::low_breakpoint_at): Ditto.
40 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
42 * win32-i386-low.cc (i386_supports_z_point_type): Handle
43 Z_PACKET_HW_BP z_type.
44 (i386_insert_point): Handle raw_bkpt_type type.
45 (i386_remove_point): Likewise.
47 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
49 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
51 * win32-arm-low.cc (arm_num_regs): New function.
52 (struct win32_target_ops): Use arm_num_regs.
53 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
55 (i386_get_thread_context): Likewise.
56 (i386_prepare_to_resume): Likewise.
57 (i386_thread_added): Likewise.
58 (i386_single_step): Likewise.
59 (i386_fetch_inferior_register): Likewise.
60 (i386_store_inferior_register): Likewise.
61 (i386_arch_setup): Likewise.
62 (i386_win32_num_regs): New function.
63 (struct win32_target_ops): Use i386_win32_num_regs.
64 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
66 (win32_require_context): Likewise.
67 (child_add_thread): Likewise.
68 (do_initial_child_stuff): Likewise.
69 (continue_one_thread): Likewise.
70 (win32_process_target::resume): Likewise.
71 (load_psapi): Likewise.
72 (win32_add_all_dlls): Likewise.
73 (maybe_adjust_pc): Likewise.
74 (win32_process_target::qxfer_siginfo): Likewise.
75 (initialize_low): Likewise.
76 * win32-low.h (struct win32_target_ops): Change num_regs to
79 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
81 * configure.ac: Remove check for fs_base/gs_base in
83 * configure: Re-generate.
84 * config.in: Re-generate.
85 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
86 x86_store_gregset): Adjust.
88 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
90 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
93 2020-04-16 Tom Tromey <tromey@adacore.com>
95 * win32-low.cc (windows_nat::handle_access_violation): New
98 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
100 * win32-low.cc (get_child_debug_event): Fix format string warning.
102 2020-04-13 Tom Tromey <tom@tromey.com>
104 * server.h (gdb_fildes_t): Remove typedef.
105 * remote-utils.c (remote_desc, list_desc): Now int.
106 (INVALID_DESCRIPTOR): Remove.
107 (gdb_connected, remote_close)
108 (check_remote_input_interrupt_request): Update.
109 * utils.h (pfildes): Don't declare.
110 * utils.c (pfildes): Remove.
112 2020-04-13 Tom Tromey <tom@tromey.com>
114 * server.h (handle_serial_event, handle_target_event): Update.
115 * server.c: Don't call initialize_event_loop.
116 (keep_processing_events): New global.
117 (handle_serial_event): Return void. Set keep_processing_events.
118 (handle_target_event): Return void.
119 (start_event_loop): Move from event-loop.c. Rewrite.
120 * remote-utils.c (handle_accept_event): Return void.
121 (reset_readchar): Use delete_timer.
122 (process_remaining): Return void.
123 (reschedule): Use create_timer.
124 * event-loop.h: Remove.
125 * event-loop.cc: Remove.
126 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
128 2020-04-13 Tom Tromey <tom@tromey.com>
130 * server.c (invoke_async_signal_handlers)
131 (check_async_event_handlers, flush_streams, gdb_select): New
134 2020-04-13 Tom Tromey <tom@tromey.com>
136 * configure: Rebuild.
137 * config.in: Rebuild.
139 2020-04-08 Tom Tromey <tromey@adacore.com>
142 * win32-low.c (child_continue): Call matching_pending_stop.
143 (get_child_debug_event): Call fetch_pending_stop. Push pending
146 2020-04-08 Tom Tromey <tromey@adacore.com>
148 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
149 (win32_process_target::supports_stopped_by_sw_breakpoint):
151 * win32-low.c (win32_supports_z_point_type): Always handle
153 (win32_insert_point): Call insert_memory_breakpoint when needed.
154 (win32_remove_point): Call remove_memory_breakpoint when needed.
155 (win32_process_target::stopped_by_sw_breakpoint)
156 (win32_process_target::supports_stopped_by_sw_breakpoint): New
158 (win32_target_ops): Update.
159 (maybe_adjust_pc): New function.
160 (win32_wait): Call maybe_adjust_pc.
162 2020-04-08 Tom Tromey <tromey@adacore.com>
164 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
166 * win32-i386-low.c (the_low_target): Update.
167 * win32-arm-low.c (the_low_target): Update.
169 2020-04-08 Tom Tromey <tromey@adacore.com>
171 * win32-low.h (win32_process_target::read_pc)
172 (win32_process_target::write_pc): Declare.
173 * win32-low.c (win32_process_target::read_pc)
174 (win32_process_target::write_pc): New methods.
175 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
177 (the_low_target): Update.
178 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
180 (the_low_target): Update.
182 2020-04-08 Tom Tromey <tromey@adacore.com>
184 * win32-low.c (win32_kill, get_child_debug_event): Use
185 wait_for_debug_event.
187 2020-04-08 Tom Tromey <tromey@adacore.com>
189 * win32-low.c (child_continue): Call continue_last_debug_event.
191 2020-04-08 Tom Tromey <tromey@adacore.com>
193 * win32-low.c (handle_exception): Remove.
194 (windows_nat::handle_ms_vc_exception): New function.
195 (get_child_debug_event): Add "continue_status" parameter.
197 (win32_wait): Update.
199 2020-04-08 Tom Tromey <tromey@adacore.com>
201 * win32-low.c (windows_nat::handle_load_dll): Rename from
202 handle_load_dll. No longer static.
203 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
206 2020-04-08 Tom Tromey <tromey@adacore.com>
208 * win32-low.c (handle_output_debug_string): Add parameter. Change
210 (win32_kill, get_child_debug_event): Update.
212 2020-04-08 Tom Tromey <tromey@adacore.com>
214 * win32-low.c (current_process_handle, current_process_id)
215 (main_thread_id, last_sig, current_event, siginfo_er): Move to
218 2020-04-08 Tom Tromey <tromey@adacore.com>
220 * win32-low.c (get_image_name): Remove.
221 (handle_load_dll): Update.
223 2020-04-08 Tom Tromey <tromey@adacore.com>
225 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
226 No longer static. Change parameters.
227 (child_add_thread, child_fetch_inferior_registers)
228 (child_store_inferior_registers, win32_resume)
229 (win32_get_tib_address): Update.
231 2020-04-08 Tom Tromey <tromey@adacore.com>
233 * win32-low.h (struct win32_target_ops): Use qualified names where
235 * win32-i386-low.c: Add "using namespace".
236 * win32-low.c: Add "using namespace".
237 * win32-arm-low.c: Add "using namespace".
239 2020-04-08 Tom Tromey <tromey@adacore.com>
241 * win32-low.c (delete_thread_info): Don't call CloseHandle.
243 2020-04-08 Tom Tromey <tromey@adacore.com>
245 * win32-low.c (win32_require_context, suspend_one_thread): Use
246 windows_thread_info::suspend.
247 (continue_one_thread): Use windows_thread_info::resume.
248 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
250 2020-04-08 Tom Tromey <tromey@adacore.com>
252 * win32-i386-low.c (update_debug_registers)
253 (i386_prepare_to_resume, i386_thread_added): Update.
255 2020-04-08 Tom Tromey <tromey@adacore.com>
257 * win32-low.c (child_add_thread): Use new.
258 (delete_thread_info): Use delete.
260 2020-04-08 Tom Tromey <tromey@adacore.com>
262 * win32-low.h (struct windows_thread_info): Remove.
264 2020-04-08 Tom Tromey <tromey@adacore.com>
266 * win32-low.h (struct windows_thread_info): Rename from
267 win32_thread_info. Remove typedef.
268 (struct win32_target_ops, win32_require_context): Update.
269 * win32-low.c (win32_get_thread_context)
270 (win32_set_thread_context, win32_prepare_to_resume)
271 (win32_require_context, thread_rec, child_add_thread)
272 (delete_thread_info, continue_one_thread)
273 (child_fetch_inferior_registers, child_store_inferior_registers)
274 (win32_resume, suspend_one_thread, win32_get_tib_address):
276 * win32-i386-low.c (update_debug_registers)
277 (win32_get_current_dr, i386_get_thread_context)
278 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
279 (i386_fetch_inferior_register, i386_store_inferior_register):
281 * win32-arm-low.c (arm_get_thread_context)
282 (arm_fetch_inferior_register, arm_store_inferior_register):
285 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
287 * linux-low.h (struct linux_target_ops): Remove.
288 (the_low_target): Remove.
289 * linux-x86-low.cc (the_low_target): Remove.
290 * linux-aarch64-low.cc (the_low_target): Ditto.
291 * linux-arm-low.cc (the_low_target): Ditto.
292 * linux-bfin-low.cc (the_low_target): Ditto.
293 * linux-cris-low.cc (the_low_target): Ditto.
294 * linux-crisv32-low.cc (the_low_target): Ditto.
295 * linux-ia64-low.cc (the_low_target): Ditto.
296 * linux-m32r-low.cc (the_low_target): Ditto.
297 * linux-m68k-low.cc (the_low_target): Ditto.
298 * linux-mips-low.cc (the_low_target): Ditto.
299 * linux-nios2-low.cc (the_low_target): Ditto.
300 * linux-ppc-low.cc (the_low_target): Ditto.
301 * linux-riscv-low.cc (the_low_target): Ditto.
302 * linux-s390-low.cc (the_low_target): Ditto.
303 * linux-sh-low.cc (the_low_target): Ditto.
304 * linux-sparc-low.cc (the_low_target): Ditto.
305 * linux-tic6x-low.cc (the_low_target): Ditto.
306 * linux-tile-low.cc (the_low_target): Ditto.
307 * linux-xtensa-low.cc (the_low_target): Ditto.
309 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
312 linux target define the op by overriding the declaration in
313 process_stratum_target.
315 * linux-low.h (struct linux_target_ops): Remove the op.
316 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
317 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
318 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
319 (x86_get_ipa_tdesc_idx): Turn into...
320 (x86_target::get_ipa_tdesc_idx): ...this.
321 (the_low_target): Remove the op field.
322 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
323 (ppc_get_ipa_tdesc_idx): Turn into...
324 (ppc_target::get_ipa_tdesc_idx): ...this.
325 (the_low_target): Remove the op field.
326 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
327 (s390_get_ipa_tdesc_idx): Turn into...
328 (s390_target::get_ipa_tdesc_idx): ...this.
329 (the_low_target): Remove the op field.
331 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
333 Turn the 'get_syscall_trapinfo' linux target op into a method
334 of process_stratum_target.
336 * linux-low.h (struct linux_target_ops): Remove the op.
337 (class linux_process_target) <get_syscall_trapinfo>
338 <gdb_catch_this_syscall>
339 <low_supports_catch_syscall>
340 <low_get_syscall_trapinfo>: Declare.
341 * linux-low.cc (get_syscall_trapinfo): Turn into...
342 (linux_process_target::get_syscall_trapinfo): ...this.
343 (linux_process_target::low_get_syscall_trapinfo): Define.
344 (gdb_catch_this_syscall_p): Turn into...
345 (linux_process_target::gdb_catch_this_syscall): ...this.
346 (linux_process_target::low_supports_catch_syscall): Define.
348 Update the callers below.
350 (linux_process_target::wait_1)
351 (linux_process_target::supports_catch_syscall)
353 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
354 <low_get_syscall_trapinfo>: Declare.
355 (x86_target::low_supports_catch_syscall): Define.
356 (x86_get_syscall_trapinfo): Turn into...
357 (x86_target::low_get_syscall_trapinfo): ...this.
358 (the_low_target): Remove the op field.
359 * linux-aarch64-low.cc (class aarch64_target)
360 <low_supports_catch_syscall>
361 <low_get_syscall_trapinfo>: Declare.
362 (aarch64_target::low_supports_catch_syscall): Define.
363 (aarch64_get_syscall_trapinfo): Turn into...
364 (aarch64_target::low_get_syscall_trapinfo): ...this.
365 (the_low_target): Remove the op field.
366 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
367 <low_get_syscall_trapinfo>: Declare.
368 (arm_target::low_supports_catch_syscall): Define.
369 (arm_get_syscall_trapinfo): Turn into...
370 (arm_target::low_get_syscall_trapinfo): ...this.
371 (the_low_target): Remove the op field.
372 * linux-ppc-low.cc (the_low_target): Remove the op field.
373 * linux-s390-low.cc (the_low_target): Remove the op field.
375 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377 Remove the 'supports_hardware_single_step' linux target op and
378 override the process_stratum_target's op definition in
379 linux_process_target to return true.
381 * linux-low.h (struct linux_target_ops): Remove the op.
382 (class linux_process_target) <finish_step_over>
383 <maybe_hw_step>: Declare.
384 * linux-low.cc (can_hardware_single_step): Remove.
385 (maybe_hw_step): Turn into...
386 (linux_process_target::maybe_hw_step): ...this.
387 (finish_step_over): Turn into...
388 (linux_process_target::finish_step_over): ...this.
389 (linux_process_target::supports_hardware_single_step): Update
392 Update the callers below.
394 (linux_process_target::single_step)
395 (linux_process_target::resume_one_lwp_throw)
397 * linux-arm-low.cc (class arm_target)
398 <supports_hardware_single_step>: Declare.
399 (arm_supports_hardware_single_step): Turn into...
400 (arm_target::supports_hardware_single_step): ...this.
401 (the_low_target): Remove the op field.
402 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
403 (the_low_target): Remove the op field.
404 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
406 (the_low_target): Remove the op field.
407 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
408 (the_low_target): Remove the op field.
409 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
410 (the_low_target): Remove the op field.
411 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
412 (the_low_target): Remove the op field.
413 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
414 (the_low_target): Remove the op field.
415 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
416 (the_low_target): Remove the op field.
417 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
418 (the_low_target): Remove the op field.
419 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
420 (the_low_target): Remove the op field.
421 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
422 (the_low_target): Remove the op field.
423 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
424 (the_low_target): Remove the op field.
425 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
427 (the_low_target): Remove the op field.
429 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431 Turn the 'supports_range_stepping' linux target op into a method
432 of linux_process_target.
434 * linux-low.h (struct linux_target_ops): Remove the op.
435 (class linux_process_target) <low_supports_range_stepping>: Declare.
436 * linux-low.cc (linux_process_target::low_supports_range_stepping):
438 (linux_process_target::supports_range_stepping): Update the call
440 * linux-x86-low.cc (class x86_target)
441 <low_supports_range_stepping>: Declare.
442 (x86_supports_range_stepping): Turn into...
443 (x86_target::low_supports_range_stepping): ...this.
444 (the_low_target): Remove the op field.
445 * linux-aarch64-low.cc (class aarch64_target)
446 <low_supports_range_stepping>: Declare.
447 (aarch64_supports_range_stepping): Turn into...
448 (aarch64_target::low_supports_range_stepping): ...this.
449 (the_low_target): Remove the op field.
450 * linux-arm-low.cc (the_low_target): Remove the op field.
451 * linux-bfin-low.cc (the_low_target): Ditto.
452 * linux-crisv32-low.cc (the_low_target): Ditto.
453 * linux-m32r-low.cc (the_low_target): Ditto.
454 * linux-m68k-low.cc (the_low_target): Ditto.
455 * linux-ppc-low.cc (the_low_target): Ditto.
456 * linux-s390-low.cc (the_low_target): Ditto.
457 * linux-sh-low.cc (the_low_target): Ditto.
458 * linux-tic6x-low.cc (the_low_target): Ditto.
459 * linux-tile-low.cc (the_low_target): Ditto.
460 * linux-xtensa-low.cc (the_low_target): Ditto.
462 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
464 Remove the 'emit_ops' linux target ops and let the concrete
465 linux target define the op by overriding the declaration of
466 process_stratum_target.
468 * linux-low.h (struct linux_target_ops): Remove the op.
469 (class linux_process_target) <emit_ops>: Remove.
470 * linux-low.cc (linux_process_target::emit_ops): Remove.
471 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
472 (x86_emit_ops): Turn into...
473 (x86_target::emit_ops): ...this.
474 (the_low_target): Remove the op field.
475 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
476 (aarch64_emit_ops): Turn into...
477 (aarch64_target::emit_ops): ...this.
478 (the_low_target): Remove the op field.
479 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
480 (ppc_emit_ops): Turn into...
481 (ppc_target::emit_ops): ...this.
482 (the_low_target): Remove the op field.
483 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
484 (s390_emit_ops): Turn into...
485 (s390_target::emit_ops): ...this.
486 (the_low_target): Remove the op field.
487 * linux-arm-low.cc (the_low_target): Remove the op field.
488 * linux-bfin-low.cc (the_low_target): Ditto.
489 * linux-crisv32-low.cc (the_low_target): Ditto.
490 * linux-m32r-low.cc (the_low_target): Ditto.
491 * linux-m68k-low.cc (the_low_target): Ditto.
492 * linux-sh-low.cc (the_low_target): Ditto.
493 * linux-tic6x-low.cc (the_low_target): Ditto.
494 * linux-tile-low.cc (the_low_target): Ditto.
495 * linux-xtensa-low.cc (the_low_target): Ditto.
497 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499 Remove the 'install_fast_tracepoint_jump_pad' and
500 'get_min_fast_tracepoint_insn_len' linux target ops to let the
501 concrete linux target define the ops by overriding the declarations
502 of process_stratum_target.
504 * linux-low.h (struct linux_target_ops): Remove the ops.
505 (class linux_process_target) <supports_fast_tracepoints>
506 <install_fast_tracepoint_jump_pad>
507 <get_min_fast_tracepoint_insn_len>: Remove.
508 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
509 (linux_process_target::install_fast_tracepoint_jump_pad)
510 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
511 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
512 <install_fast_tracepoint_jump_pad>
513 <get_min_fast_tracepoint_insn_len>: Declare.
514 (x86_target::supports_fast_tracepoints): Define.
515 (x86_install_fast_tracepoint_jump_pad): Turn into...
516 (x86_target::install_fast_tracepoint_jump_pad): ...this.
517 (x86_get_min_fast_tracepoint_insn_len): Turn into...
518 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
519 (the_low_target): Remove the op fields.
520 * linux-aarch64-low.cc (class aarch64_target)
521 <supports_fast_tracepoints>
522 <install_fast_tracepoint_jump_pad>
523 <get_min_fast_tracepoint_insn_len>: Declare.
524 (aarch64_target::supports_fast_tracepoints): Define.
525 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
526 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
527 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
528 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
529 (the_low_target): Remove the op fields.
530 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
531 <install_fast_tracepoint_jump_pad>
532 <get_min_fast_tracepoint_insn_len>: Declare.
533 (ppc_target::supports_fast_tracepoints): Define.
534 (ppc_install_fast_tracepoint_jump_pad): Turn into...
535 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
536 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
537 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
538 (the_low_target): Remove the op fields.
539 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
540 <install_fast_tracepoint_jump_pad>
541 <get_min_fast_tracepoint_insn_len>: Declare.
542 (s390_target::supports_fast_tracepoints): Define.
543 (s390_install_fast_tracepoint_jump_pad): Turn into...
544 (s390_target::install_fast_tracepoint_jump_pad): ...this.
545 (s390_get_min_fast_tracepoint_insn_len): Turn into...
546 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
547 (the_low_target): Remove the op fields.
548 * linux-arm-low.cc (the_low_target): Remove the op fields.
549 * linux-bfin-low.cc (the_low_target): Ditto.
550 * linux-crisv32-low.cc (the_low_target): Ditto.
551 * linux-m32r-low.cc (the_low_target): Ditto.
552 * linux-m68k-low.cc (the_low_target): Ditto.
553 * linux-sh-low.cc (the_low_target): Ditto.
554 * linux-tic6x-low.cc (the_low_target): Ditto.
555 * linux-tile-low.cc (the_low_target): Ditto.
556 * linux-xtensa-low.cc (the_low_target): Ditto.
558 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
560 Turn the 'get_thread_area' linux target op into a method of
561 process_stratum_target.
563 * linux-low.h (struct linux_target_ops): Remove the op.
564 (class linux_process_target) <stuck_in_jump_pad>
565 <linux_fast_tracepoint_collecting>
566 <low_get_thread_area>: Declare.
567 * linux-low.cc (supports_fast_tracepoints): Remove.
568 (linux_fast_tracepoint_collecting): Turn into...
569 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
570 (linux_process_target::low_get_thread_area): Define.
571 (stuck_in_jump_pad_callback): Turn into...
572 (linux_process_target::stuck_in_jump_pad): ...this.
574 Update the caller below.
576 (linux_process_target::stabilize_threads)
578 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
580 (x86_get_thread_area): Turn into...
581 (x86_target::low_get_thread_area): ...this.
582 (the_low_target): Remove the op field.
583 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
585 (aarch64_get_thread_area): Turn into...
586 (aarch64_target::low_get_thread_area): ...this.
587 (the_low_target): Remove the op field.
588 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
590 (ppc_get_thread_area): Turn into...
591 (ppc_target::low_get_thread_area): ...this.
592 (the_low_target): Remove the op field.
593 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
595 (s390_get_thread_area): Turn into...
596 (s390_target::low_get_thread_area): ...this.
597 (the_low_target): Remove the op field.
598 * linux-arm-low.cc (the_low_target): Remove the op field.
599 * linux-bfin-low.cc (the_low_target): Ditto.
600 * linux-crisv32-low.cc (the_low_target): Ditto.
601 * linux-m32r-low.cc (the_low_target): Ditto.
602 * linux-m68k-low.cc (the_low_target): Ditto.
603 * linux-sh-low.cc (the_low_target): Ditto.
604 * linux-tic6x-low.cc (the_low_target): Ditto.
605 * linux-tile-low.cc (the_low_target): Ditto.
606 * linux-xtensa-low.cc (the_low_target): Ditto.
608 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610 Remote the 'supports_tracepoints' linux target op and let the
611 concrete linux target define it by overriding the op declared in
612 process_stratum_target.
614 * linux-low.h (struct linux_target_ops): Remove the op.
615 (class linux_process_target) <supports_tracepoints>: Remove.
616 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
617 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
619 (x86_supports_tracepoints): Turn into...
620 (x86_target::supports_tracepoints): ...this.
621 (the_low_target): Remove the op field.
622 * linux-aarch64-low.cc (class aarch64_target)
623 <supports_tracepoints>: Declare.
624 (aarch64_supports_tracepoints): Turn into...
625 (aarch64_target::supports_tracepoints): ...this.
626 (the_low_target): Remove the op field.
627 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
629 (ppc_supports_tracepoints): Turn into...
630 (ppc_target::supports_tracepoints): ...this.
631 (the_low_target): Remove the op field.
632 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
634 (s390_supports_tracepoints): Turn into...
635 (s390_target::supports_tracepoints): ...this.
636 (the_low_target): Remove the op field.
637 * linux-arm-low.cc (the_low_target): Remove the op field.
638 * linux-bfin-low.cc (the_low_target): Ditto.
639 * linux-crisv32-low.cc (the_low_target): Ditto.
640 * linux-m32r-low.cc (the_low_target): Ditto.
641 * linux-m68k-low.cc (the_low_target): Ditto.
642 * linux-sh-low.cc (the_low_target): Ditto.
643 * linux-tic6x-low.cc (the_low_target): Ditto.
644 * linux-tile-low.cc (the_low_target): Ditto.
645 * linux-xtensa-low.cc (the_low_target): Ditto.
647 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
649 Remove the 'process_qsupported' linux target op and let a concrete
650 linux target define the op by overriding the op declaration in
651 process_stratum_target.
653 * linux-low.h (struct linux_target_ops): Remove the op.
654 (class linux_process_target) <process_qsupported>: Remove.
655 * linux-low.cc (linux_process_target::process_qsupported): Remove.
656 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
657 (x86_linux_process_qsupported): Turn into...
658 (x86_target::process_qsupported): ...this.
659 (the_low_target): Remove the op field.
660 * linux-aarch64-low.cc (the_low_target): Remove the op
662 * linux-arm-low.cc (the_low_target): Ditto.
663 * linux-bfin-low.cc (the_low_target): Ditto.
664 * linux-crisv32-low.cc (the_low_target): Ditto.
665 * linux-m32r-low.cc (the_low_target): Ditto.
666 * linux-m68k-low.cc (the_low_target): Ditto.
667 * linux-ppc-low.cc (the_low_target): Ditto.
668 * linux-s390-low.cc (the_low_target): Ditto.
669 * linux-sh-low.cc (the_low_target): Ditto.
670 * linux-tic6x-low.cc (the_low_target): Ditto.
671 * linux-tile-low.cc (the_low_target): Ditto.
672 * linux-xtensa-low.cc (the_low_target): Ditto.
674 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676 Turn the 'prepare_to_resume' linux target op into a method of
677 linux_process_target.
679 * linux-low.h (struct linux_target_ops): Remove the op.
680 (class linux_process_target) <low_prepare_to_resume>: Declare.
681 * linux-low.cc (linux_process_target::low_prepare_to_resume):
684 Update the callers below:
686 (linux_process_target::resume_one_lwp_throw)
687 (linux_process_target::low_prepare_to_resume)
689 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
691 (x86_target::low_prepare_to_resume): Define.
692 (the_low_target): Remove the op field.
693 * linux-aarch64-low.cc (class aarch64_target)
694 <low_prepare_to_resume>: Declare.
695 (aarch64_target::low_prepare_to_resume): Define.
696 (the_low_target): Remove the op field.
697 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
699 (arm_prepare_to_resume): Turn into...
700 (arm_target::low_prepare_to_resume): ...this.
701 (the_low_target): Remove the op field.
702 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
704 (mips_linux_prepare_to_resume): Turn into...
705 (mips_target::low_prepare_to_resume): ...this.
706 (the_low_target): Remove the op field.
707 * linux-bfin-low.cc (the_low_target): Remove the op field.
708 * linux-crisv32-low.cc (the_low_target): Ditto.
709 * linux-m32r-low.cc (the_low_target): Ditto.
710 * linux-m68k-low.cc (the_low_target): Ditto.
711 * linux-ppc-low.cc (the_low_target): Ditto.
712 * linux-s390-low.cc (the_low_target): Ditto.
713 * linux-sh-low.cc (the_low_target): Ditto.
714 * linux-tic6x-low.cc (the_low_target): Ditto.
715 * linux-tile-low.cc (the_low_target): Ditto.
716 * linux-xtensa-low.cc (the_low_target): Ditto.
718 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720 Turn the 'new_process', 'delete_process', 'new_thread',
721 'delete_thread', and 'new_fork' linux target ops into methods
722 of linux_process_target.
724 * linux-low.h (struct linux_target_ops): Remove the ops.
725 (class linux_process_target) <add_linux_process>
730 <check_zombie_leaders>
736 <low_new_fork>: Declare.
737 * linux-low.cc (delete_lwp): Turn into...
738 (linux_process_target::delete_lwp): ...this.
739 (linux_process_target::low_delete_thread): Define.
740 (linux_add_process): Turn into...
741 (linux_process_target::add_linux_process): ...this.
742 (linux_process_target::low_new_process): Define.
743 (linux_process_target::low_delete_process): Define.
744 (linux_process_target::low_new_fork): Define.
745 (add_lwp): Turn into...
746 (linux_process_target::add_lwp): ...this.
747 (linux_process_target::low_new_thread): Define.
748 (linux_attach_lwp): Turn into...
749 (linux_process_target::attach_lwp): ...this.
750 (linux_detach_one_lwp): Turn into...
751 (linux_process_target::detach_one_lwp): ...this.
752 (linux_detach_lwp_callback): Remove and inline...
753 (linux_process_target::detach): ...here.
754 (check_zombie_leaders): Turn into...
755 (linux_process_target::check_zombie_leaders): ...this.
756 (filter_exit_event): Turn into...
757 (linux_process_target::filter_exit_event): ...this.
759 Update the callers below.
761 (linux_process_target::handle_extended_wait)
762 (linux_process_target::create_inferior)
763 (attach_proc_task_lwp_callback)
764 (linux_process_target::attach)
765 (linux_process_target::detach)
766 (linux_process_target::mourn)
767 * thread-db.cc (attach_thread)
769 * linux-x86-low.cc (class x86_target) <low_new_process>
773 <low_new_fork>: Declare.
774 (x86_linux_new_process): Turn into...
775 (x86_target::low_new_process): ...this.
776 (x86_linux_delete_process): Turn into...
777 (x86_target::low_delete_process): ...this.
778 (x86_target::low_new_thread): Define.
779 (x86_target::low_delete_thread): Define.
780 (x86_linux_new_fork): Turn into...
781 (x86_target::low_new_fork): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
787 <low_new_fork>: Declare.
788 (aarch64_linux_new_process): Turn into...
789 (aarch64_target::low_new_process): ...this.
790 (aarch64_linux_delete_process): Turn into...
791 (aarch64_target::low_delete_process): ...this.
792 (aarch64_target::low_new_thread): Define.
793 (aarch64_target::low_delete_thread): Define.
794 (aarch64_linux_new_fork): Turn into...
795 (aarch64_target::low_new_fork): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-arm-low.cc (class arm_target) <low_new_process>
801 <low_new_fork>: Declare.
802 (arm_new_process): Turn into...
803 (arm_target::low_new_process): ...this.
804 (arm_delete_process): Turn into...
805 (arm_target::low_delete_process): ...this.
806 (arm_new_thread): Turn into...
807 (arm_target::low_new_thread): ...this.
808 (arm_delete_thread): Turn into...
809 (arm_target::low_delete_thread): ...this.
810 (arm_new_fork): Turn into...
811 (arm_target::low_new_fork): ...this.
812 (the_low_target): Remove the op fields.
813 * linux-mips-low.cc (class mips_target) <low_new_process>
817 <low_new_fork>: Declare.
818 (mips_linux_new_process): Turn into...
819 (mips_target::low_new_process): ...this.
820 (mips_linux_delete_process): Turn into...
821 (mips_target::low_delete_process): ...this.
822 (mips_linux_new_thread): Turn into...
823 (mips_target::low_new_thread): ...this.
824 (mips_linux_delete_thread): Turn into...
825 (mips_target::low_delete_thread): ...this.
826 (mips_linux_new_fork): Turn into...
827 (mips_target::low_new_fork): ...this.
828 (the_low_target): Remove the op fields.
829 * linux-bfin-low.cc (the_low_target): Remove the op fields.
830 * linux-crisv32-low.cc (the_low_target): Ditto.
831 * linux-m32r-low.cc (the_low_target): Ditto.
832 * linux-m68k-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
840 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842 Turn the 'siginfo_fixup' linux target op into a method of
843 linux_process_target.
845 * linux-low.h (struct linux_target_ops): Remove the op.
846 (class linux_process_target) <siginfo_fixup>
847 <low_siginfo_fixup>: Declare.
848 * linux-low.cc (siginfo_fixup): Turn into...
849 (linux_process_target::siginfo_fixup): ...this.
850 (linux_process_target::low_siginfo_fixup): Define.
851 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
852 (x86_siginfo_fixup): Turn into...
853 (x86_target::low_siginfo_fixup): ...this.
854 (the_low_target): Remove the op field.
855 * linux-aarch64-low.cc (class aarch64_target):
856 <low_siginfo_fixup>: Declare.
857 (aarch64_linux_siginfo_fixup): Turn into...
858 (aarch64_target::low_siginfo_fixup): ...this.
859 (the_low_target): Remove the op field.
860 * linux-arm-low.cc (the_low_target): Remove the op field.
861 * linux-bfin-low.cc (the_low_target): Ditto.
862 * linux-crisv32-low.cc (the_low_target): Ditto.
863 * linux-m32r-low.cc (the_low_target): Ditto.
864 * linux-m68k-low.cc (the_low_target): Ditto.
865 * linux-mips-low.cc (the_low_target): Ditto.
866 * linux-ppc-low.cc (the_low_target): Ditto.
867 * linux-s390-low.cc (the_low_target): Ditto.
868 * linux-sh-low.cc (the_low_target): Ditto.
869 * linux-tic6x-low.cc (the_low_target): Ditto.
870 * linux-tile-low.cc (the_low_target): Ditto.
871 * linux-xtensa-low.cc (the_low_target): Ditto.
873 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
875 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
876 linux target ops into methods of linux_process_target.
878 * linux-low.h (struct linux_target_ops): Remove the ops.
879 (class linux_process_target) <low_collect_ptrace_register>
880 <low_store_ptrace_register>: Declare.
881 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
882 (linux_process_target::low_supply_ptrace_register): Define.
884 Update the callers below.
886 (linux_process_target::fetch_register)
887 (linux_process_target::store_register)
889 * linux-x86-low.cc (the_low_target): Remove the op fields.
890 * linux-aarch64-low.cc (the_low_target): Ditto.
891 * linux-arm-low.cc (the_low_target): Ditto.
892 * linux-bfin-low.cc (the_low_target): Ditto.
893 * linux-crisv32-low.cc (the_low_target): Ditto.
894 * linux-m32r-low.cc (the_low_target): Ditto.
895 * linux-m68k-low.cc (the_low_target): Ditto.
896 * linux-sh-low.cc (the_low_target): Ditto.
897 * linux-sparc-low.cc (the_low_target): Ditto.
898 * linux-tic6x-low.cc (the_low_target): Ditto.
899 * linux-tile-low.cc (the_low_target): Ditto.
900 * linux-xtensa-low.cc (the_low_target): Ditto.
901 * linux-mips-low.cc (class mips_target)
902 <low_collect_ptrace_register>
903 <low_supply_ptrace_register>: Declare.
904 (mips_collect_ptrace_register): Turn into ...
905 (mips_target::low_collect_ptrace_register): ...this.
906 (mips_supply_ptrace_register): Turn into...
907 (mips_target::low_supply_ptrace_register): ...this.
908 (the_low_target): Remove the op fields.
909 * linux-ppc-low.cc (class ppc_target)
910 <low_collect_ptrace_register>
911 <low_supply_ptrace_register>: Declare.
912 (ppc_collect_ptrace_register): Turn into ...
913 (ppc_target::low_collect_ptrace_register): ...this.
914 (ppc_supply_ptrace_register): Turn into ...
915 (ppc_target::low_supply_ptrace_register): ...this.
916 (ppc_fill_gregset): Update for the calls to
917 low_collect_ptrace_register.
918 (the_low_target): Remove the op fields.
919 * linux-s390-low.cc (class s390_target)
920 <low_collect_ptrace_register>
921 <low_supply_ptrace_register>: Declare.
922 (s390_collect_ptrace_register): Turn into ...
923 (s390_target::low_collect_ptrace_register): ...this.
924 (s390_supply_ptrace_register): Turn into ...
925 (s390_target::low_supply_ptrace_register): ...this.
926 (s390_fill_gregset): Update for the calls to
927 low_collect_ptrace_register.
928 (the_low_target): Remove the op fields.
930 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
933 target ops into methods of linux_process_target.
935 * linux-low.h (struct linux_target_ops): Remove the ops.
936 (class linux_process_target) <check_stopped_by_watchpoint>
937 <low_stopped_by_watchpoint>
938 <low_stopped_data_address>: Declare.
939 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
940 (linux_process_target::check_stopped_by_watchpoint): ...this.
941 (linux_process_target::low_stopped_by_watchpoint): Define.
942 (linux_process_target::low_stopped_data_address): Define.
943 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
944 <low_stopped_data_address>: Declare.
945 (x86_stopped_by_watchpoint): Turn into...
946 (x86_target::low_stopped_by_watchpoint): ...this.
947 (x86_stopped_data_address): Turn into...
948 (x86_target::low_stopped_data_address): ...this.
949 (the_low_target): Remove the op fields.
950 * linux-aarch64-low.cc (class aarch64_target)
951 <low_stopped_by_watchpoint>
952 <low_stopped_data_address>: Declare.
953 (aarch64_stopped_by_watchpoint): Turn into...
954 (aarch64_target::low_stopped_by_watchpoint): ...this.
955 (aarch64_stopped_data_address): Turn into...
956 (aarch64_target::low_stopped_data_address): ...this.
957 (the_low_target): Remove the op fields.
958 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
959 <low_stopped_data_address>: Declare.
960 (arm_stopped_by_watchpoint): Turn into...
961 (arm_target::low_stopped_by_watchpoint): ...this.
962 (arm_stopped_data_address): Turn into...
963 (arm_target::low_stopped_data_address): ...this.
964 (the_low_target): Remove the op fields.
965 * linux-crisv32-low.cc (class crisv32_target)
966 <low_stopped_by_watchpoint>
967 <low_stopped_data_address>: Declare.
968 (cris_stopped_by_watchpoint): Turn into...
969 (crisv32_target::low_stopped_by_watchpoint): ...this.
970 (cris_stopped_data_address): Turn into...
971 (crisv32_target::low_stopped_data_address): ...this.
972 (the_low_target): Remove the op fields.
973 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
974 <low_stopped_data_address>: Declare.
975 (mips_stopped_by_watchpoint): Turn into...
976 (mips_target::low_stopped_by_watchpoint): ...this.
977 (mips_stopped_data_address): Turn into...
978 (mips_target::low_stopped_data_address): ...this.
979 (the_low_target): Remove the op fields.
980 * linux-bfin-low.cc (the_low_target): Remove the op fields.
981 * linux-m32r-low.cc (the_low_target): Ditto.
982 * linux-m68k-low.cc (the_low_target): Ditto.
983 * linux-ppc-low.cc (the_low_target): Ditto.
984 * linux-s390-low.cc (the_low_target): Ditto.
985 * linux-sh-low.cc (the_low_target): Ditto.
986 * linux-sparc-low.cc (the_low_target): Ditto.
987 * linux-tic6x-low.cc (the_low_target): Ditto.
988 * linux-tile-low.cc (the_low_target): Ditto.
989 * linux-xtensa-low.cc (the_low_target): Ditto.
991 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
993 Turn the 'insert_point' and 'remove_point' linux target ops into
994 methods of linux_process_target.
996 * linux-low.h (struct linux_target_ops): Remove the ops.
997 (class linux_process_target) <low_insert_point>
998 <low_remove_point>: Declare.
999 * linux-low.cc (linux_process_target::low_insert_point)
1000 (linux_process_target::low_remove_point): Define.
1001 (linux_process_target::insert_point)
1002 (linux_process_target::remove_point): Update for calls to
1003 low_insert_point and low_remove_point.
1004 * linux-x86-low.cc (class x86_target) <low_insert_point>
1005 <low_remove_point>: Declare.
1006 (x86_insert_point): Turn into...
1007 (x86_target::low_insert_point): ...this.
1008 (x86_remove_point): Turn into...
1009 (x86_target::low_remove_point): ...this.
1010 (the_low_target): Remove the op fields.
1011 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1012 <low_remove_point>: Declare.
1013 (aarch64_insert_point): Turn into...
1014 (aarch64_target::low_insert_point): ...this.
1015 (aarch64_remove_point): Turn into...
1016 (aarch64_target::low_remove_point): ...this.
1017 (the_low_target): Remove the op fields.
1018 * linux-arm-low.cc (class arm_target) <low_insert_point>
1019 <low_remove_point>: Declare.
1020 (arm_insert_point): Turn into...
1021 (arm_target::low_insert_point): ...this.
1022 (arm_remove_point): Turn into...
1023 (arm_target::low_remove_point): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1026 <low_remove_point>: Declare.
1027 (crisv32_insert_point): Turn into...
1028 (crisv32_target::low_insert_point): ...this.
1029 (crisv32_remove_point): Turn into...
1030 (crisv32_target::low_remove_point): ...this.
1031 (the_low_target): Remove the op fields.
1032 * linux-mips-low.cc (class mips_target) <low_insert_point>
1033 <low_remove_point>: Declare.
1034 (mips_insert_point): Turn into...
1035 (mips_target::low_insert_point): ...this.
1036 (mips_remove_point): Turn into...
1037 (mips_target::low_remove_point): ...this.
1038 (the_low_target): Remove the op fields.
1039 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1040 <low_remove_point>: Declare.
1041 (ppc_insert_point): Turn into...
1042 (ppc_target::low_insert_point): ...this.
1043 (ppc_remove_point): Turn into...
1044 (ppc_target::low_remove_point): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1047 * linux-m32r-low.cc (the_low_target): Ditto.
1048 * linux-m68k-low.cc (the_low_target): Ditto.
1049 * linux-s390-low.cc (the_low_target): Ditto.
1050 * linux-sh-low.cc (the_low_target): Ditto.
1051 * linux-sparc-low.cc (the_low_target): Ditto.
1052 * linux-tic6x-low.cc (the_low_target): Ditto.
1053 * linux-tile-low.cc (the_low_target): Ditto.
1054 * linux-xtensa-low.cc (the_low_target): Ditto.
1056 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1058 Remove the 'supports_z_point_type' linux target op and let the
1059 concrete linux target define it by overriding the op declared in
1060 process_stratum_target.
1062 * linux-low.cc (linux_process_target::supports_z_point_type):
1064 * linux-low.h (struct linux_target_ops): Remove the op.
1065 (class linux_process_target) <supports_z_point_type>: Remove.
1066 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1068 (x86_supports_z_point_type): Turn into...
1069 (x86_target::supports_z_point_type): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-aarch64-low.cc (class aarch64_target)
1072 <supports_z_point_type>: Declare.
1073 (aarch64_supports_z_point_type): Turn into...
1074 (aarch64_target::supports_z_point_type): ...this.
1075 (the_low_target): Remove the op field.
1076 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1078 (arm_supports_z_point_type): Turn into...
1079 (arm_target::supports_z_point_type): ...this.
1080 (the_low_target): Remove the op field.
1081 * linux-crisv32-low.cc (class crisv32_target)
1082 <supports_z_point_type>: Declare.
1083 (cris_supports_z_point_type): Turn into...
1084 (crisv32_target::supports_z_point_type): ...this.
1085 (the_low_target): Remove the op field.
1086 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1088 (mips_supports_z_point_type): Turn into...
1089 (mips_target::supports_z_point_type): ...this.
1090 (the_low_target): Remove the op field.
1091 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1093 (ppc_supports_z_point_type): Turn into...
1094 (ppc_target::supports_z_point_type): ...this.
1095 (the_low_target): Remove the op field.
1096 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1098 (s390_supports_z_point_type): Turn into...
1099 (s390_target::supports_z_point_type): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-bfin-low.cc (the_low_target): Remove the op field.
1102 * linux-m32r-low.cc (the_low_target): Ditto.
1103 * linux-m68k-low.cc (the_low_target): Ditto.
1104 * linux-sh-low.cc (the_low_target): Ditto.
1105 * linux-sparc-low.cc (the_low_target): Ditto.
1106 * linux-tic6x-low.cc (the_low_target): Ditto.
1107 * linux-tile-low.cc (the_low_target): Ditto.
1108 * linux-xtensa-low.cc (the_low_target): Ditto.
1110 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1112 Turn the 'breakpoint_at' linux target op into a method of
1113 linux_process_target.
1115 * linux-low.h (struct linux_target_ops): Remove the op.
1116 (class linux_process_target) <low_breakpoint_at>: Declare.
1118 Update the callers below:
1120 * linux-low.cc (linux_process_target::save_stop_reason)
1121 (linux_process_target::thread_still_has_status_pending)
1122 (linux_process_target::wait_1)
1124 * linux-x86-low.cc (class x86_target)
1125 <low_breakpoint_at>: Declare.
1126 (x86_breakpoint_at): Turn into...
1127 (x86_target::low_breakpoint_at): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-aarch64-low.cc (class aarch64_target)
1130 <low_breakpoint_at>: Declare.
1131 (aarch64_breakpoint_at): Turn into...
1132 (aarch64_target::low_breakpoint_at): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-arm-low.cc (class arm_target)
1135 <low_breakpoint_at>: Declare.
1136 (arm_target::low_breakpoint_at): Define.
1137 (the_low_target): Remove the op field.
1138 * linux-bfin-low.cc (class bfin_target)
1139 <low_breakpoint_at>: Declare.
1140 (bfin_breakpoint_at): Turn into...
1141 (bfin_target::low_breakpoint_at): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-cris-low.cc (class cris_target)
1144 <low_breakpoint_at>: Declare.
1145 (cris_breakpoint_at): Turn into...
1146 (cris_target::low_breakpoint_at): ...this.
1147 (the_low_target): Remove the op field.
1148 * linux-crisv32-low.cc (class crisv32_target)
1149 <low_breakpoint_at>: Declare.
1150 (crisv32_breakpoint_at): Turn into...
1151 (crisv32_target::low_breakpoint_at): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-ia64-low.cc (class ia64_target)
1154 <low_breakpoint_at>: Declare.
1155 (ia64_target::low_breakpoint_at): Define.
1156 * linux-m32r-low.cc (class m32r_target)
1157 <low_breakpoint_at>: Declare.
1158 (m32r_breakpoint_at): Turn into...
1159 (m32r_target::low_breakpoint_at): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-m68k-low.cc (class m68k_target)
1162 <low_breakpoint_at>: Declare.
1163 (m68k_breakpoint_at): Turn into...
1164 (m68k_target::low_breakpoint_at): ...this.
1165 (the_low_target): Remove the op field.
1166 * linux-mips-low.cc (class mips_target)
1167 <low_breakpoint_at>: Declare.
1168 (mips_breakpoint_at): Turn into...
1169 (mips_target::low_breakpoint_at): ...this.
1170 (the_low_target): Remove the op field.
1171 * linux-nios2-low.cc (class nios2_target)
1172 <low_breakpoint_at>: Declare.
1173 (nios2_breakpoint_at): Turn into...
1174 (nios2_target::low_breakpoint_at): ...this.
1175 (the_low_target): Remove the op field.
1176 * linux-ppc-low.cc (class ppc_target)
1177 <low_breakpoint_at>: Declare.
1178 (ppc_breakpoint_at): Turn into...
1179 (ppc_target::low_breakpoint_at): ...this.
1180 (the_low_target): Remove the op field.
1181 * linux-riscv-low.cc (class riscv_target)
1182 <low_breakpoint_at>: Declare.
1183 (riscv_breakpoint_at): Turn into...
1184 (riscv_target::low_breakpoint_at): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-s390-low.cc (class s390_target)
1187 <low_breakpoint_at>: Declare.
1188 (s390_breakpoint_at): Turn into...
1189 (s390_target::low_breakpoint_at): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-sh-low.cc (class sh_target)
1192 <low_breakpoint_at>: Declare.
1193 (sh_breakpoint_at): Turn into...
1194 (sh_target::low_breakpoint_at): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-sparc-low.cc (class sparc_target)
1197 <low_breakpoint_at>: Declare.
1198 (sparc_breakpoint_at): Turn into...
1199 (sparc_target::low_breakpoint_at): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-tic6x-low.cc (class tic6x_target)
1202 <low_breakpoint_at>: Declare.
1203 (tic6x_breakpoint_at): Turn into...
1204 (tic6x_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-tile-low.cc (class tile_target)
1207 <low_breakpoint_at>: Declare.
1208 (tile_breakpoint_at): Turn into...
1209 (tile_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-xtensa-low.cc (class xtensa_target)
1212 <low_breakpoint_at>: Declare.
1213 (xtensa_breakpoint_at): Turn into...
1214 (xtensa_target::low_breakpoint_at): ...this.
1215 (the_low_target): Remove the op field.
1217 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219 Turn the 'decr_pc_after_break' linux_target_ops field into
1220 a method of linux_process_target.
1222 * linux-low.h (struct linux_target_ops)
1223 <decr_pc_after_break>: Remove.
1224 (class linux_process_target) <low_decr_pc_after_break>: New method
1226 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1227 New method implementation.
1229 Update the users below.
1231 (linux_process_target::save_stop_reason)
1232 (linux_process_target::wait_1)
1233 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1235 (x86_target::low_decr_pc_after_break): New method implementation.
1236 (the_low_target): Remove the field.
1237 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1239 (bfin_target::low_decr_pc_after_break): New method implementation.
1240 (the_low_target): Remove the field.
1241 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1243 (m68k_target::low_decr_pc_after_break): New method implementation.
1244 (the_low_target): Remove the field.
1245 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1247 (s390_target::low_decr_pc_after_break): New method implementation.
1248 (the_low_target): Remove the field.
1249 * linux-aarch64-low.cc (the_low_target): Remove the field.
1250 * linux-arm-low.cc (the_low_target): Remove the field.
1251 * linux-cris-low.cc (the_low_target): Remove the field.
1252 * linux-crisv32-low.cc (the_low_target): Remove the field.
1253 * linux-m32r-low.cc (the_low_target): Remove the field.
1254 * linux-mips-low.cc (the_low_target): Remove the field.
1255 * linux-nios2-low.cc (the_low_target): Remove the field.
1256 * linux-ppc-low.cc (the_low_target): Remove the field.
1257 * linux-riscv-low.cc (the_low_target): Remove the field.
1258 * linux-sh-low.cc (the_low_target): Remove the field.
1259 * linux-sparc-low.cc (the_low_target): Remove the field.
1260 * linux-tic6x-low.cc (the_low_target): Remove the field.
1261 * linux-tile-low.cc (the_low_target): Remove the field.
1262 * linux-xtensa-low.cc (the_low_target): Remove the field.
1264 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266 Remove the 'supports_software_single_step' linux target op and let
1267 the concrete linux target define it by overriding the op in
1268 process_stratum_target.
1269 Turn the 'get_next_pcs' linux target op into a method of
1270 linux_process_target.
1272 * linux-low.h (struct linux_target_ops): Remove the ops.
1273 (class linux_process_target) <supports_software_single_step>:
1275 <low_get_next_pcs>: Declare.
1276 * linux-low.cc (can_software_single_step): Remove.
1277 (linux_process_target::low_get_next_pcs): Define.
1278 (linux_process_target::supports_software_single_step): Remove.
1280 Update the callers below.
1282 (linux_process_target::handle_extended_wait)
1283 (linux_process_target::wait_1)
1284 (linux_process_target::install_software_single_step_breakpoints)
1285 (linux_process_target::single_step)
1286 (linux_process_target::thread_needs_step_over)
1287 (linux_process_target::proceed_one_lwp)
1288 (linux_process_target::supports_range_stepping)
1290 * linux-x86-low.cc (the_low_target): Remove the op field.
1291 * linux-aarch64-low.cc (the_low_target): Ditto.
1292 * linux-bfin-low.cc (the_low_target): Ditto.
1293 * linux-cris-low.cc (the_low_target): Ditto.
1294 * linux-crisv32-low.cc (the_low_target): Ditto.
1295 * linux-m32r-low.cc (the_low_target): Ditto.
1296 * linux-m68k-low.cc (the_low_target): Ditto.
1297 * linux-mips-low.cc (the_low_target): Ditto.
1298 * linux-nios2-low.cc (the_low_target): Ditto.
1299 * linux-ppc-low.cc (the_low_target): Ditto.
1300 * linux-riscv-low.cc (the_low_target): Ditto.
1301 * linux-s390-low.cc (the_low_target): Ditto.
1302 * linux-sh-low.cc (the_low_target): Ditto.
1303 * linux-sparc-low.cc (the_low_target): Ditto.
1304 * linux-tic6x-low.cc (the_low_target): Ditto.
1305 * linux-tile-low.cc (the_low_target): Ditto.
1306 * linux-xtensa-low.cc (the_low_target): Ditto.
1307 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1308 <supports_software_single_step>: Declare.
1309 (arm_target::supports_software_single_step): Define.
1310 (arm_gdbserver_get_next_pcs): Turn into...
1311 (arm_target::low_get_next_pcs): ...this.
1312 (the_low_target): Remove the op field.
1314 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1316 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1317 the concrete linux target define it by overriding the op
1318 in process_stratum_target.
1320 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1322 * linux-low.h (struct linux_target_ops): Remove the op.
1323 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1324 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1326 (x86_sw_breakpoint_from_kind): Turn into...
1327 (x86_target::sw_breakpoint_from_kind): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-aarch64-low.cc (class aarch64_target)
1330 <sw_breakpoint_from_kind>: Declare.
1331 (aarch64_sw_breakpoint_from_kind): Turn into...
1332 (aarch64_target::sw_breakpoint_from_kind): ...this.
1333 (the_low_target): Remove the op field.
1334 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1336 (arm_target::sw_breakpoint_from_kind): Define.
1337 (the_low_target): Remove the op field.
1338 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1340 (bfin_sw_breakpoint_from_kind): Turn into...
1341 (bfin_target::sw_breakpoint_from_kind): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1345 (cris_sw_breakpoint_from_kind): Turn into...
1346 (cris_target::sw_breakpoint_from_kind): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-crisv32-low.cc (class crisv32_target)
1349 <sw_breakpoint_from_kind>: Declare.
1350 (cris_sw_breakpoint_from_kind): Turn into...
1351 (crisv32_target::sw_breakpoint_from_kind): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1355 (ia64_target::sw_breakpoint_from_kind): Define.
1356 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1358 (m32r_sw_breakpoint_from_kind): Turn into...
1359 (m32r_target::sw_breakpoint_from_kind): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1363 (m68k_sw_breakpoint_from_kind): Turn into...
1364 (m68k_target::sw_breakpoint_from_kind): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1368 (mips_sw_breakpoint_from_kind): Turn into...
1369 (mips_target::sw_breakpoint_from_kind): ...this.
1370 (the_low_target): Remove the op field.
1371 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1373 (nios2_sw_breakpoint_from_kind): Turn into...
1374 (nios2_target::sw_breakpoint_from_kind): ...this.
1375 (the_low_target): Remove the op field.
1376 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1378 (ppc_sw_breakpoint_from_kind): Turn into...
1379 (ppc_target::sw_breakpoint_from_kind): ...this.
1380 (the_low_target): Remove the op field.
1381 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1383 (riscv_sw_breakpoint_from_kind): Turn into...
1384 (riscv_target::sw_breakpoint_from_kind): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1388 (s390_sw_breakpoint_from_kind): Turn into...
1389 (s390_target::sw_breakpoint_from_kind): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1393 (sh_sw_breakpoint_from_kind): Turn into...
1394 (sh_target::sw_breakpoint_from_kind): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1398 (sparc_sw_breakpoint_from_kind): Turn into...
1399 (sparc_target::sw_breakpoint_from_kind): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1403 (tic6x_sw_breakpoint_from_kind): Turn into...
1404 (tic6x_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1408 (tile_sw_breakpoint_from_kind): Turn into...
1409 (tile_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-xtensa-low.cc (class xtensa_target)
1412 <sw_breakpoint_from_kind>: Declare.
1413 (xtensa_sw_breakpoint_from_kind): Turn into...
1414 (xtensa_target::sw_breakpoint_from_kind): ...this.
1415 (the_low_target): Remove the op field.
1417 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1419 Remove the 'breakpoint_kind_from_pc' and
1420 'breakpoint_kind_from_current_state' linux target ops, and let the
1421 concrete linux target define them by overriding the ops of
1422 process_stratum_target.
1424 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1426 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1427 * linux-low.h (struct linux_target_ops): Remove ops.
1428 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1429 <breakpoint_kind_from_current_state>: Remove.
1430 * linux-x86-low.cc (the_low_target): Remove the op fields.
1431 * linux-bfin-low.cc (the_low_target): Ditto.
1432 * linux-cris-low.cc (the_low_target): Ditto.
1433 * linux-crisv32-low.cc (the_low_target): Ditto.
1434 * linux-m32r-low.cc (the_low_target): Ditto.
1435 * linux-m68k-low.cc (the_low_target): Ditto.
1436 * linux-mips-low.cc (the_low_target): Ditto.
1437 * linux-nios2-low.cc (the_low_target): Ditto.
1438 * linux-ppc-low.cc (the_low_target): Ditto.
1439 * linux-s390-low.cc (the_low_target): Ditto.
1440 * linux-sh-low.cc (the_low_target): Ditto.
1441 * linux-sparc-low.cc (the_low_target): Ditto.
1442 * linux-tic6x-low.cc (the_low_target): Ditto.
1443 * linux-tile-low.cc (the_low_target): Ditto.
1444 * linux-xtensa-low.cc (the_low_target): Ditto.
1445 * linux-aarch64-low.cc (class aarch64_target)
1446 <breakpoint_kind_from_pc>
1447 <breakpoint_kind_from_current_state>: Declare.
1448 (aarch64_breakpoint_kind_from_pc): Turn into...
1449 (aarch64_target::breakpoint_kind_from_pc): ...this.
1450 (aarch64_breakpoint_kind_from_current_state): Turn into...
1451 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1452 (the_low_target): Remove the op fields.
1453 * linux-arm-low.cc (class arm_target):
1454 <breakpoint_kind_from_pc>
1455 <breakpoint_kind_from_current_state>: Declare.
1456 (arm_target::breakpoint_kind_from_pc): Define.
1457 (arm_target::breakpoint_kind_from_current_state): Define.
1458 (the_low_target): Remove the op fields.
1459 * linux-riscv-low.cc (class riscv_target):
1460 <breakpoint_kind_from_pc>: Declare.
1461 (riscv_breakpoint_kind_from_pc): Turn into...
1462 (riscv_target::breakpoint_kind_from_pc): ...this.
1463 (the_low_target): Remove the op fields.
1465 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1467 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1468 of linux_process_target.
1470 * linux-low.h (struct linux_target_ops): Remove the ops.
1471 (class linux_process_target) <low_supports_breakpoints>
1473 <low_set_pc>: Declare.
1474 * linux-low.cc (supports_breakpoints): Turn into...
1475 (linux_process_target::low_supports_breakpoints): ...this.
1476 (linux_process_target::low_get_pc): Define.
1477 (linux_process_target::low_set_pc): Define.
1479 Update the callers below.
1481 (linux_process_target::get_pc)
1482 (linux_process_target::save_stop_reason)
1483 (linux_process_target::maybe_move_out_of_jump_pad)
1484 (linux_process_target::wait_1)
1485 (linux_process_target::resume_one_lwp_throw)
1486 (linux_process_target::resume)
1487 (linux_process_target::proceed_all_lwps)
1488 (linux_process_target::read_pc)
1489 (linux_process_target::write_pc)
1491 * linux-x86-low.cc (class linux_process_target)
1492 <low_supports_breakpoints>
1494 <low_set_pc>: Declare.
1495 (x86_target::low_supports_breakpoints): Define.
1496 (x86_get_pc): Turn into...
1497 (x86_target::low_get_pc): ...this.
1498 (x86_set_pc): Turn into...
1499 (x86_target::low_set_pc): ...this.
1500 (the_low_target): Remove the op fields.
1501 * linux-arm-low.cc (class arm_target)
1502 <low_supports_breakpoints>
1504 <low_set_pc>: Declare.
1505 (arm_target::low_supports_breakpoints)
1506 (arm_target::low_get_pc)
1507 (arm_target::low_set_pc): Define.
1508 (the_low_target): Remove the op fields.
1509 * linux-bfin-low.cc (class bfin_target)
1510 <low_supports_breakpoints>
1512 <low_set_pc>: Declare.
1513 (bfin_target::low_supports_breakpoints)
1514 (bfin_target::low_get_pc)
1515 (bfin_target::low_set_pc): Define.
1516 (the_low_target): Remove the op fields.
1517 * linux-cris-low.cc (class cris_target)
1518 <low_supports_breakpoints>
1520 <low_set_pc>: Declare.
1521 (cris_target::low_supports_breakpoints)
1522 (cris_target::low_get_pc)
1523 (cris_target::low_set_pc): Define.
1524 (the_low_target): Remove the op fields.
1525 * linux-crisv32-low.cc (class crisv32_target)
1526 <low_supports_breakpoints>
1528 <low_set_pc>: Declare.
1529 (crisv32_target::low_supports_breakpoints)
1530 (crisv32_target::low_get_pc)
1531 (crisv32_target::low_set_pc): Define.
1532 (the_low_target): Remove the op fields.
1533 * linux-m32r-low.cc (class m32r_target)
1534 <low_supports_breakpoints>
1536 <low_set_pc>: Declare.
1537 (m32r_target::low_supports_breakpoints)
1538 (m32r_target::low_get_pc)
1539 (m32r_target::low_set_pc): Define.
1540 (the_low_target): Remove the op fields.
1541 * linux-m68k-low.cc (class m68k_target)
1542 <low_supports_breakpoints>
1544 <low_set_pc>: Declare.
1545 (m68k_target::low_supports_breakpoints)
1546 (m68k_target::low_get_pc)
1547 (m68k_target::low_set_pc): Define.
1548 (the_low_target): Remove the op fields.
1549 * linux-nios2-low.cc (class nios2_target)
1550 <low_supports_breakpoints>
1552 <low_set_pc>: Declare.
1553 (nios2_target::low_supports_breakpoints)
1554 (nios2_target::low_get_pc)
1555 (nios2_target::low_set_pc): Define.
1556 (the_low_target): Remove the op fields.
1557 * linux-sh-low.cc (class sh_target)
1558 <low_supports_breakpoints>
1560 <low_set_pc>: Declare.
1561 (sh_target::low_supports_breakpoints)
1562 (sh_target::low_get_pc)
1563 (sh_target::low_set_pc): Define.
1564 (the_low_target): Remove the op fields.
1565 * linux-xtensa-low.cc (class xtensa_target)
1566 <low_supports_breakpoints>
1568 <low_set_pc>: Declare.
1569 (xtensa_target::low_supports_breakpoints)
1570 (xtensa_target::low_get_pc)
1571 (xtensa_target::low_set_pc): Define.
1572 (the_low_target): Remove the op fields.
1573 * linux-sparc-low.cc (class sparc_target)
1574 <low_supports_breakpoints>
1575 <low_get_pc>: Declare.
1576 (sparc_target::low_supports_breakpoints)
1577 (sparc_target::low_get_pc): Define.
1578 (the_low_target): Remove the op fields.
1579 * linux-tile-low.cc (class tile_target)
1580 <low_supports_breakpoints>
1582 <low_set_pc>: Declare.
1583 (tile_target::low_supports_breakpoints)
1584 (tile_target::low_get_pc)
1585 (tile_target::low_set_pc): Define.
1586 (the_low_target): Remove the op fields.
1587 * linux-aarch64-low.cc (class aarch64_target)
1588 <low_supports_breakpoints>
1590 <low_set_pc>: Declare.
1591 (aarch64_target::low_supports_breakpoints): Define.
1592 (aarch64_get_pc): Turn into...
1593 (aarch64_target::low_get_pc): ...this.
1594 (aarch64_set_pc): Turn into...
1595 (aarch64_target::low_set_pc): ...this.
1596 (the_low_target): Remove the op fields.
1597 * linux-mips-low.cc (class mips_target)
1598 <low_supports_breakpoints>
1600 <low_set_pc>: Declare.
1601 (mips_target::low_supports_breakpoints): Define.
1602 (mips_get_pc): Turn into...
1603 (mips_target::low_get_pc): ...this.
1604 (mips_set_pc): Turn into...
1605 (mips_target::low_set_pc): ...this.
1606 (the_low_target): Remove the op fields.
1607 * linux-ppc-low.cc (class ppc_target)
1608 <low_supports_breakpoints>
1610 <low_set_pc>: Declare.
1611 (ppc_target::low_supports_breakpoints): Define.
1612 (ppc_get_pc): Turn into...
1613 (ppc_target::low_get_pc): ...this.
1614 (ppc_set_pc): Turn into...
1615 (ppc_target::low_set_pc): ...this.
1616 (the_low_target): Remove the op fields.
1617 * linux-riscv-low.cc (class riscv_target)
1618 <low_supports_breakpoints>
1620 <low_set_pc>: Declare.
1621 (riscv_target::low_supports_breakpoints): Define.
1622 (riscv_get_pc): Turn into...
1623 (riscv_target::low_get_pc): ...this.
1624 (riscv_set_pc): Turn into...
1625 (riscv_target::low_set_pc): ...this.
1626 (the_low_target): Remove the op fields.
1627 * linux-s390-low.cc (class s390_target)
1628 <low_supports_breakpoints>
1630 <low_set_pc>: Declare.
1631 (s390_target::low_supports_breakpoints): Define.
1632 (s390_get_pc): Turn into...
1633 (s390_target::low_get_pc): ...this.
1634 (s390_set_pc): Turn into...
1635 (s390_target::low_set_pc): ...this.
1636 (the_low_target): Remove the op fields.
1637 * linux-tic6x-low.cc (class tic6x_target)
1638 <low_supports_breakpoints>
1640 <low_set_pc>: Declare.
1641 (tic6x_target::low_supports_breakpoints): Define.
1642 (tic6x_get_pc): Turn into...
1643 (tic6x_target::low_get_pc): ...this.
1644 (tic6x_set_pc): Turn into...
1645 (tic6x_target::low_set_pc): ...this.
1646 (the_low_target): Remove the op fields.
1648 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1650 Turn some more static methods in linux-low into private methods
1651 of linux_process_target.
1653 * linux-low.cc (get_pc): Turn into...
1654 (linux_process_target::get_pc): ...this.
1655 (save_stop_reason): Turn into...
1656 (linux_process_target::save_stop_reason): ...this.
1657 (thread_still_has_status_pending_p): Turn into...
1658 (linux_process_target::thread_still_has_status_pending): ...this.
1659 (status_pending_p_callback): Turn into...
1660 (linux_process_target::status_pending_p_callback): ...this.
1661 (resume_stopped_resumed_lwps): Turn into...
1662 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1663 (install_software_single_step_breakpoints): Turn into...
1664 (linux_process_target::install_software_single_step_breakpoints):
1666 (single_step): Turn into...
1667 (linux_process_target::single_step): ...this.
1668 (linux_resume_one_lwp_throw): Turn into...
1669 (linux_process_target::resume_one_lwp_throw): ...this.
1670 (linux_resume_one_lwp): Turn into...
1671 (linux_process_target::resume_one_lwp): ...this.
1672 (resume_status_pending_p): Turn into...
1673 (linux_process_target::resume_status_pending): ...this.
1674 (need_step_over_p): Turn into...
1675 (linux_process_target::thread_needs_step_over): ...this.
1676 (linux_resume_one_thread): Turn into...
1677 (linux_process_target::resume_one_thread): ...this.
1678 (proceed_one_lwp): Turn into...
1679 (linux_process_target::proceed_one_lwp): ...this.
1680 (unsuspend_and_proceed_one_lwp): Turn into...
1681 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1683 Update the calls/references to the above functions below.
1685 (linux_process_target::handle_extended_wait)
1686 (linux_process_target::filter_event)
1687 (linux_process_target::wait_for_event_filtered)
1688 (linux_process_target::wait_1)
1689 (linux_process_target::move_out_of_jump_pad)
1690 (linux_process_target::start_step_over)
1691 (linux_process_target::resume)
1692 (linux_process_target::proceed_all_lwps)
1693 (regsets_store_inferior_registers)
1694 (linux_process_target::store_register)
1696 * linux-low.h (class linux_process_target)
1699 <thread_still_has_status_pending>
1700 <status_pending_p_callback>
1701 <resume_stopped_resumed_lwps>
1702 <install_software_single_step_breakpoints>
1704 <resume_one_lwp_throw>
1706 <resume_status_pending>
1707 <thread_needs_step_over>
1710 <unsuspend_and_proceed_one_lwp>: Declare.
1712 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1714 Turn the 'fetch_register' linux target op into a method of
1715 linux_process_target.
1717 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1718 (class linux_process_target) <low_fetch_register>: Declare.
1719 * linux-x86-low.cc (the_low_target)
1720 * linux-aarch64-low.cc (the_low_target)
1721 * linux-arm-low.cc (the_low_target)
1722 * linux-bfin-low.cc (the_low_target)
1723 * linux-cris-low.cc (the_low_target)
1724 * linux-crisv32-low.cc (the_low_target)
1725 * linux-m32r-low.cc (the_low_target)
1726 * linux-m68k-low.cc (the_low_target)
1727 * linux-nios2-low.cc (the_low_target)
1728 * linux-ppc-low.cc (the_low_target)
1729 * linux-s390-low.cc (the_low_target)
1730 * linux-sh-low.cc (the_low_target)
1731 * linux-sparc-low.cc (the_low_target)
1732 * linux-tic6x-low.cc (the_low_target)
1733 * linux-tile-low.cc (the_low_target)
1734 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1735 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1737 (ia64_fetch_register): Turn into...
1738 (ia64_target::low_fetch_register): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1742 (mips_fetch_register): Turn into...
1743 (mips_target::low_fetch_register): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1747 (riscv_fetch_register): Turn into...
1748 (riscv_target::low_fetch_register): ...this.
1749 (the_low_target): Remove the op field.
1751 Update the callers below.
1753 * linux-low.cc (linux_process_target::fetch_registers)
1754 (linux_process_target::low_fetch_register)
1756 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1759 linux target ops into methods of linux_process_target.
1761 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1762 (class linux_process_target) <fetch_register>
1764 <usr_fetch_inferior_registers>
1765 <usr_store_inferior_registers>
1766 <low_cannot_fetch_register>
1767 <low_cannot_fetch_register> Declare.
1768 * linux-low.cc (fetch_register): Turn into...
1769 (linux_process_target::fetch_register): ...this.
1770 (store_register): Turn into ...
1771 (linux_process_target::store_register): ...this.
1772 (usr_fetch_inferior_registers): Turn into...
1773 (linux_process_target::usr_fetch_inferior_registers): ...this.
1774 (usr_store_inferior_registers): Turn into...
1775 (linux_process_target::usr_store_inferior_registers): ...this.
1776 * linux-x86-low.cc (class x86_target)
1777 <low_cannot_fetch_register>
1778 <low_cannot_store_register>: Declare.
1779 (x86_cannot_store_register): Turn into...
1780 (x86_target::low_cannot_store_register): ...this.
1781 (x86_cannot_fetch_register): Turn into...
1782 (x86_target::low_cannot_fetch_register): ...this.
1783 (the_low_target): Remove the target op fields.
1784 * linux-aarch64-low.cc (class aarch64_target)
1785 <low_cannot_fetch_register>
1786 <low_cannot_store_register>: Declare.
1787 (aarch64_target::low_cannot_fetch_register)
1788 (aarch64_target::low_cannot_store_register): Define.
1789 (the_low_target): Remove the op fields.
1790 * linux-arm-low.cc (class arm_target)
1791 <low_cannot_fetch_register>
1792 <low_cannot_store_register>: Declare.
1793 (arm_cannot_fetch_register): Turn into...
1794 (arm_target::low_cannot_fetch_register): ...this.
1795 (arm_cannot_store_register): Turn into...
1796 (arm_target::low_cannot_store_register): ...this.
1797 (the_low_target): Remove the op fields.
1798 * linux-bfin-low.cc (class bfin_target)
1799 <low_cannot_fetch_register>
1800 <low_cannot_store_register>: Declare.
1801 (bfin_cannot_fetch_register): Turn into...
1802 (bfin_target::low_cannot_fetch_register): ...this.
1803 (bfin_cannot_store_register): Turn into...
1804 (bfin_target::low_cannot_store_register): ...this.
1805 (the_low_target): Remove the op fields.
1806 * linux-cris-low.cc (class cris_target)
1807 <low_cannot_fetch_register>
1808 <low_cannot_store_register>: Declare.
1809 (cris_cannot_fetch_register): Turn into...
1810 (cris_target::low_cannot_fetch_register): ...this.
1811 (cris_cannot_store_register): Turn into...
1812 (cris_target::low_cannot_store_register): ...this.
1813 (the_low_target): Remove the op fields.
1814 * linux-crisv32-low.cc (class crisv32_target)
1815 <low_cannot_fetch_register>
1816 <low_cannot_store_register>: Declare.
1817 (crisv32_target::low_cannot_fetch_register)
1818 (crisv32_target::low_cannot_store_register): Define.
1819 (the_low_target): Remove the op fields.
1820 * linux-ia64-low.cc (class ia64_target)
1821 <low_cannot_fetch_register>
1822 <low_cannot_store_register>: Declare.
1823 (ia64_cannot_fetch_register): Turn into...
1824 (ia64_target::low_cannot_fetch_register): ...this.
1825 (ia64_cannot_store_register): Turn into...
1826 (ia64_target::low_cannot_store_register): ...this.
1827 (the_low_target): Remove the op fields.
1828 * linux-m32r-low.cc (class m32r_target)
1829 <low_cannot_fetch_register>
1830 <low_cannot_store_register>: Declare.
1831 (m32r_cannot_fetch_register): Turn into...
1832 (m32r_target::low_cannot_fetch_register): ...this.
1833 (m32r_cannot_store_register): Turn into...
1834 (m32r_target::low_cannot_store_register): ...this.
1835 (the_low_target): Remove the op fields.
1836 * linux-m68k-low.cc (class m68k_target)
1837 <low_cannot_fetch_register>
1838 <low_cannot_store_register>: Declare.
1839 (m68k_cannot_fetch_register): Turn into...
1840 (m68k_target::low_cannot_fetch_register): ...this.
1841 (m68k_cannot_store_register): Turn into...
1842 (m68k_target::low_cannot_store_register): ...this.
1843 (the_low_target): Remove the op fields.
1844 * linux-mips-low.cc (class mips_target)
1845 <low_cannot_fetch_register>
1846 <low_cannot_store_register>: Declare.
1847 (mips_cannot_fetch_register): Turn into...
1848 (mips_target::low_cannot_fetch_register): ...this.
1849 (mips_cannot_store_register): Turn into...
1850 (mips_target::low_cannot_store_register): ...this.
1851 (get_usrregs_info): Inline at the call sites in
1852 low_cannot_fetch_register and low_cannot_store_register,
1854 (the_low_target): Remove the op fields.
1855 * linux-nios2-low.cc (class nios2_target)
1856 <low_cannot_fetch_register>
1857 <low_cannot_store_register>: Declare.
1858 (nios2_cannot_fetch_register): Turn into...
1859 (nios2_target::low_cannot_fetch_register): ...this.
1860 (nios2_cannot_store_register): Turn into...
1861 (nios2_target::low_cannot_store_register): ...this.
1862 (the_low_target): Remove the op fields.
1863 * linux-ppc-low.cc (class ppc_target)
1864 <low_cannot_fetch_register>
1865 <low_cannot_store_register>: Declare.
1866 (ppc_cannot_fetch_register): Turn into...
1867 (ppc_target::low_cannot_fetch_register): ...this.
1868 (ppc_cannot_store_register): Turn into...
1869 (ppc_target::low_cannot_store_register): ...this.
1870 (the_low_target): Remove the op fields.
1871 * linux-riscv-low.cc (class riscv_target)
1872 <low_cannot_fetch_register>
1873 <low_cannot_store_register>: Declare.
1874 (riscv_target::low_cannot_fetch_register)
1875 (riscv_target::low_cannot_store_register): Define.
1876 (the_low_target): Remove the op fields.
1877 * linux-s390-low.cc (class s390_target)
1878 <low_cannot_fetch_register>
1879 <low_cannot_store_register>: Declare.
1880 (s390_cannot_fetch_register): Turn into...
1881 (s390_target::low_cannot_fetch_register): ...this.
1882 (s390_cannot_store_register): Turn into...
1883 (s390_target::low_cannot_store_register): ...this.
1884 (the_low_target): Remove the op fields.
1885 * linux-sh-low.cc (class sh_target)
1886 <low_cannot_fetch_register>
1887 <low_cannot_store_register>: Declare.
1888 (sh_cannot_fetch_register): Turn into...
1889 (sh_target::low_cannot_fetch_register): ...this.
1890 (sh_cannot_store_register): Turn into...
1891 (sh_target::low_cannot_store_register): ...this.
1892 (the_low_target): Remove the op fields.
1893 * linux-sparc-low.cc (class sparc_target)
1894 <low_cannot_fetch_register>
1895 <low_cannot_store_register>: Declare.
1896 (sparc_cannot_fetch_register): Turn into...
1897 (sparc_target::low_cannot_fetch_register): ...this.
1898 (sparc_cannot_store_register): Turn into...
1899 (sparc_target::low_cannot_store_register): ...this.
1900 (the_low_target): Remove the op fields.
1901 * linux-tic6x-low.cc (class tic6x_target)
1902 <low_cannot_fetch_register>
1903 <low_cannot_store_register>: Declare.
1904 (tic6x_cannot_fetch_register): Turn into...
1905 (tic6x_target::low_cannot_fetch_register): ...this.
1906 (tic6x_cannot_store_register): Turn into...
1907 (tic6x_target::low_cannot_store_register): ...this.
1908 (the_low_target): Remove the op fields.
1909 * linux-tile-low.cc (class tile_target)
1910 <low_cannot_fetch_register>
1911 <low_cannot_store_register>: Declare.
1912 (tile_cannot_fetch_register): Turn into...
1913 (tile_target::low_cannot_fetch_register): ...this.
1914 (tile_cannot_store_register): Turn into...
1915 (tile_target::low_cannot_store_register): ...this.
1916 (the_low_target): Remove the op fields.
1917 * linux-xtensa-low.cc (class xtensa_target)
1918 <low_cannot_fetch_register>
1919 <low_cannot_store_register>: Declare.
1920 (xtensa_target::low_cannot_fetch_register)
1921 (xtensa_target::low_cannot_store_register): Define.
1922 (the_low_target): Remove the op fields.
1924 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1926 Turn the 'regs_info' linux target op into a method of
1927 linux_process_target.
1929 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1930 (class linux_process_target) <get_regs_info>: Define.
1932 Update the callers below.
1934 * linux-low.cc (linux_process_target::fetch_registers)
1935 (linux_process_target::store_registers)
1936 * proc-service.cc (gregset_info)
1938 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1939 (x86_linux_regs_info): Turn into ...
1940 (x86_target::get_regs_info): ...this.
1941 (the_low_target): Remove the op field.
1942 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1944 (aarch64_regs_info): Turn into ...
1945 (aarch64_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1948 (arm_regs_info): Turn into ...
1949 (arm_target::get_regs_info): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1952 (bfin_regs_info): Turn into ...
1953 (bfin_target::get_regs_info): ...this.
1954 (the_low_target): Remove the op field.
1955 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1956 (cris_regs_info): Turn into ...
1957 (cris_target::get_regs_info): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1961 (crisv32_regs_info): Turn into ...
1962 (crisv32_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1965 (ia64_regs_info): Turn into ...
1966 (ia64_target::get_regs_info): ...this.
1967 (the_low_target): Remove the op field.
1968 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1969 (m32r_regs_info): Turn into ...
1970 (m32r_target::get_regs_info): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1973 (m68k_regs_info): Turn into ...
1974 (m68k_target::get_regs_info): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1977 (mips_regs_info): Turn into ...
1978 (mips_target::get_regs_info): ...this.
1979 (the_low_target): Remove the op field.
1980 (get_usrregs_info): Update the call to the op.
1981 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1982 (nios2_regs_info): Turn into ...
1983 (nios2_target::get_regs_info): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1986 (ppc_regs_info): Turn into ...
1987 (ppc_target::get_regs_info): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1990 (riscv_regs_info): Turn into ...
1991 (riscv_target::get_regs_info): ...this.
1992 (the_low_target): Remove the op field.
1993 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1994 (s390_regs_info): Turn into ...
1995 (s390_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997 (s390_collect_ptrace_register)
1998 (s390_supply_ptrace_register)
1999 (s390_fill_gregset): Update the call to the op.
2000 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2001 (sh_regs_info): Turn into ...
2002 (sh_target::get_regs_info): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2005 (sparc_regs_info): Turn into ...
2006 (sparc_target::get_regs_info): ...this.
2007 (the_low_target): Remove the op field.
2008 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2009 (tic6x_regs_info): Turn into ...
2010 (tic6x_target::get_regs_info): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2013 (tile_regs_info): Turn into ...
2014 (tile_target::get_regs_info): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2018 (xtensa_regs_info): Turn into ...
2019 (xtensa_target::get_regs_info): ...this.
2020 (the_low_target): Remove the op field.
2022 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2024 Turn the 'arch_setup' linux target op into a method of
2025 linux_process_target.
2027 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2028 (class linux_process_target) <arch_setup_thread>
2029 <low_arch_setup>: New declarations.
2030 * linux-low.cc (linux_arch_setup): Delete.
2031 (linux_arch_setup_thread): Turn into...
2032 (linux_process_target::arch_setup_thread): ... this.
2034 Update the callers below.
2036 (linux_process_target::handle_extended_wait)
2037 (linux_process_target::post_create_inferior)
2038 (linux_process_target::filter_event)
2040 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2042 (x86_linux_update_xmltarget): Turn into...
2043 (x86_target::update_xmltarget): ...this.
2044 (x86_linux_process_qsupported): Update the call to
2045 x86_linux_update_xmltarget.
2046 (x86_arch_setup): Turn into ...
2047 (x86_target::low_arch_setup): ...this.
2048 (the_low_target): Remove the op field.
2049 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2051 (aarch64_arch_setup): Turn into ...
2052 (aarch64_target::low_arch_setup): ...this.
2053 (the_low_target): Remove the op field.
2054 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2056 (arm_arch_setup): Turn into ...
2057 (arm_target::low_arch_setup): ...this.
2058 (the_low_target): Remove the op field.
2059 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2061 (bfin_arch_setup): Turn into ...
2062 (bfin_target::low_arch_setup): ...this.
2063 (the_low_target): Remove the op field.
2064 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2066 (cris_arch_setup): Turn into ...
2067 (cris_target::low_arch_setup): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2071 (crisv32_arch_setup): Turn into ...
2072 (crisv32_target::low_arch_setup): ...this.
2073 (the_low_target): Remove the op field.
2074 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2076 (ia64_arch_setup): Turn into ...
2077 (ia64_target::low_arch_setup): ...this.
2078 (the_low_target): Remove the op field.
2079 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2081 (m32r_arch_setup): Turn into ...
2082 (m32r_target::low_arch_setup): ...this.
2083 (the_low_target): Remove the op field.
2084 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2086 (m68k_arch_setup): Turn into ...
2087 (m68k_target::low_arch_setup): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2091 (mips_arch_setup): Turn into ...
2092 (mips_target::low_arch_setup): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2096 (nios2_arch_setup): Turn into ...
2097 (nios2_target::low_arch_setup): ...this.
2098 (the_low_target): Remove the op field.
2099 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2101 (ppc_arch_setup): Turn into ...
2102 (ppc_target::low_arch_setup): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2106 (riscv_arch_setup): Turn into ...
2107 (riscv_target::low_arch_setup): ...this.
2108 (the_low_target): Remove the op field.
2109 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2111 (s390_arch_setup): Turn into ...
2112 (s390_target::low_arch_setup): ...this.
2113 (the_low_target): Remove the op field.
2114 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2116 (sh_arch_setup): Turn into ...
2117 (sh_target::low_arch_setup): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2121 (sparc_arch_setup): Turn into ...
2122 (sparc_target::low_arch_setup): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2126 (tic6x_arch_setup): Turn into ...
2127 (tic6x_target::low_arch_setup): ...this.
2128 (the_low_target): Remove the op field.
2129 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2131 (tile_arch_setup): Turn into ...
2132 (tile_target::low_arch_setup): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2136 (xtensa_arch_setup): Turn into ...
2137 (xtensa_target::low_arch_setup): ...this.
2138 (the_low_target): Remove the op field.
2140 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2142 * linux-low.h (the_linux_target): New extern declaration.
2143 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2145 (the_linux_target): Remove.
2146 * linux-x86-low.cc (class x86_target): New class.
2147 (the_x86_target): New static object.
2148 (the_linux_target): Define as pointer to the_x86_target.
2149 * linux-aarch64-low.cc (class aarch64_target): New class.
2150 (the_aarch64_target): New static object.
2151 (the_linux_target): Define as pointer to the_aarch64_target.
2152 * linux-arm-low.cc (class arm_target): New class.
2153 (the_arm_target): New static object.
2154 (the_linux_target): Define as pointer to the_arm_target.
2155 * linux-bfin-low.cc (class bfin_target): New class.
2156 (the_bfin_target): New static object.
2157 (the_linux_target): Define as pointer to the_bfin_target.
2158 * linux-cris-low.cc (class cris_target): New class.
2159 (the_cris_target): New static object.
2160 (the_linux_target): Define as pointer to the_cris_target.
2161 * linux-crisv32-low.cc (class crisv32_target): New class.
2162 (the_crisv32_target): New static object.
2163 (the_linux_target): Define as pointer to the_crisv32_target.
2164 * linux-ia64-low.cc (class ia64_target): New class.
2165 (the_ia64_target): New static object.
2166 (the_linux_target): Define as pointer to the_ia64_target.
2167 * linux-m32r-low.cc (class m32r_target): New class.
2168 (the_m32r_target): New static object.
2169 (the_linux_target): Define as pointer to the_m32r_target.
2170 * linux-m68k-low.cc (class m68k_target): New class.
2171 (the_m68k_target): New static object.
2172 (the_linux_target): Define as pointer to the_m68k_target.
2173 * linux-mips-low.cc (class mips_target): New class.
2174 (the_mips_target): New static object.
2175 (the_linux_target): Define as pointer to the_mips_target.
2176 * linux-nios2-low.cc (class nios2_target): New class.
2177 (the_nios2_target): New static object.
2178 (the_linux_target): Define as pointer to the_nios2_target.
2179 * linux-ppc-low.cc (class ppc_target): New class.
2180 (the_ppc_target): New static object.
2181 (the_linux_target): Define as pointer to the_ppc_target.
2182 * linux-riscv-low.cc (class riscv_target): New class.
2183 (the_riscv_target): New static object.
2184 (the_linux_target): Define as pointer to the_riscv_target.
2185 * linux-s390-low.cc (class s390_target): New class.
2186 (the_s390_target): New static object.
2187 (the_linux_target): Define as pointer to the_s390_target.
2188 * linux-sh-low.cc (class sh_target): New class.
2189 (the_sh_target): New static object.
2190 (the_linux_target): Define as pointer to the_sh_target.
2191 * linux-sparc-low.cc (class sparc_target): New class.
2192 (the_sparc_target): New static object.
2193 (the_linux_target): Define as pointer to the_sparc_target.
2194 * linux-tic6x-low.cc (class tic6x_target): New class.
2195 (the_tic6x_target): New static object.
2196 (the_linux_target): Define as pointer to the_tic6x_target.
2197 * linux-tile-low.cc (class tile_target): New class.
2198 (the_tile_target): New static object.
2199 (the_linux_target): Define as pointer to the_tile_target.
2200 * linux-xtensa-low.cc (class xtensa_target): New class.
2201 (the_xtensa_target): New static object.
2202 (the_linux_target): Define as pointer to the_xtensa_target.
2204 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2206 Turn some static functions in linux-low.cc into private methods of
2207 linux_process_target.
2209 * linux-low.cc (handle_extended_wait): Turn into ...
2210 (linux_process_target::handle_extended_wait): ...this. Call
2211 'mourn' on 'this' object instead of 'the_target'.
2212 (maybe_move_out_of_jump_pad): Turn into...
2213 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2214 (linux_low_filter_event): Turn into...
2215 (linux_process_target::filter_event): ...this.
2216 (linux_wait_for_event_filtered): Turn into...
2217 (linux_process_target::wait_for_event_filtered): ...this.
2218 (linux_wait_for_event): Turn into...
2219 (linux_process_target::wait_for_event): ...this.
2220 (linux_wait_1): Turn into...
2221 (linux_process_target::wait_1): ...this.
2222 (wait_for_sigstop): Turn into...
2223 (linux_process_target::wait_for_sigstop): ...this.
2224 (move_out_of_jump_pad_callback): Turn into...
2225 (linux_process_target::move_out_of_jump_pad): ...this.
2226 (stop_all_lwps): Turn into...
2227 (linux_process_target::stop_all_lwps): ...this.
2228 (start_step_over): Turn into...
2229 (linux_process_target::start_step_over): ...this.
2230 (complete_ongoing_step_over): Turn into...
2231 (linux_process_target::complete_ongoing_step_over): ...this.
2232 (proceed_all_lwps): Turn into...
2233 (linux_process_target::proceed_all_lwps): ...this.
2234 (unstop_all_lwps): Turn into...
2235 (linux_process_target::unstop_all_lwps): ...this.
2237 * linux-low.h (class linux_process_target)
2238 <handle_extended_wait>
2239 <maybe_move_out_of_jump_pad>
2241 <wait_for_event_filtered>
2245 <move_out_of_jump_pad>
2248 <complete_ongoing_step_over>
2250 <unstop_all_lwps>: Declare.
2252 Update the callers below.
2254 * linux-low.cc (linux_process_target::attach): Update.
2255 (linux_process_target::stabilize_threads): Ditto.
2256 (linux_process_target::wait): Ditto.
2258 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260 * linux-low.h (struct linux_target_ops): Update the comment for
2261 'cannot_store_register' to return 0 or 1.
2262 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2265 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2267 * config.in: Re-generate.
2268 * configure: Re-generate.
2270 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2272 * regcache.cc (find_register_by_number): Update.
2273 * tdesc.cc (init_target_desc): Likewise.
2274 * tdesc.h (target_desc::reg_defs): Likewise.
2276 2020-03-12 Tom Tromey <tom@tromey.com>
2278 * configure: Rebuild.
2279 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2280 (WIN32APILIBS): New subst.
2281 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2283 (gdbsupport/%.o): Remove target.
2284 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2285 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2286 (WIN32APILIBS): New variable.
2287 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2288 (gdbreplay$(EXEEXT)): Likewise.
2290 2020-03-12 Tom Tromey <tom@tromey.com>
2292 * config.in, configure: Rebuild.
2293 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2294 * acinclude.m4: Include gettext-sister.m4.
2295 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2297 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2298 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2300 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2302 * acinclude.m4: Update path to selftest.m4.
2304 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2306 * configure.ac: Don't source bfd/development.sh, move
2307 GDB_AC_COMMON higher.
2308 * configure: Re-generate.
2310 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2312 * configure: Re-generate.
2314 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2316 * configure: Re-generate.
2318 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2320 * .dir-locals.el: New file.
2322 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2324 * .gitattributes: New file.
2326 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2328 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2329 reply into an S reply.
2330 * server.cc (disable_packet_T): New global.
2331 (captured_main): Set new global when appropriate.
2332 * server.h (disable_packet_T): Declare.
2334 2020-02-21 Tom Tromey <tom@tromey.com>
2336 * Makefile.in (mostlyclean): New target.
2338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2340 * target.h (struct process_stratum_target): Remove.
2341 (class process_target): Rename to ...
2342 (class process_stratum_target): ... this.
2343 * linux-low.h (class linux_process_target): Derive from
2344 'process_stratum_target'.
2345 * linux-low.cc (linux_target_ops): Remove.
2346 (initialize_low): Set the_target to the singleton instance of
2347 linux_process_target.
2348 * lynx-low.h (class lynx_process_target): Derive from
2349 'process_stratum_target'.
2350 * lynx-low.cc (lynx_target_ops): Remove.
2351 (initialize_low): Set the_target to the singleton instance of
2352 lynx_process_target.
2353 * nto-low.h (class nto_process_target): Derive from
2354 'process_stratum_target'.
2355 * nto-low.cc (nto_target_ops): Remove.
2356 (initialize_low): Set the_target to the singleton instance of
2358 * win32-low.h (class win32_process_target): Derive from
2359 'process_stratum_target'.
2360 * win32-low.cc (win32_target_ops): Remove.
2361 (initialize_low): Set the_target to the singleton instance of
2362 win32_process_target.
2364 Replace 'the_target->pt' with 'the_target' in the uses below.
2366 * hostio.cc (hostio_error)
2371 * linux-aarch32-low.cc (arm_breakpoint_at)
2372 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2373 * linux-arm-low.cc (arm_sigreturn_next_pc)
2375 (arm_get_syscall_trapinfo)
2376 * linux-cris-low.cc (cris_breakpoint_at)
2377 * linux-crisv32-low.cc (cris_breakpoint_at)
2378 * linux-low.cc (handle_extended_wait)
2381 (linux_process_target::breakpoint_kind_from_pc)
2383 * linux-m32r-low.cc (m32r_breakpoint_at)
2384 * linux-mips-low.cc (mips_breakpoint_at)
2385 * linux-nios2-low.cc (nios2_breakpoint_at)
2386 * linux-ppc-low.cc (ppc_breakpoint_at)
2387 * linux-s390-low.cc (s390_get_hwcap)
2388 * linux-sh-low.cc (sh_breakpoint_at)
2389 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2390 (sparc_store_gregset_from_stack)
2391 (sparc_breakpoint_at)
2392 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2393 * linux-tile-low.cc (tile_breakpoint_at)
2394 * linux-x86-low.cc (x86_breakpoint_at)
2395 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2396 * mem-break.cc (bp_size)
2398 (insert_memory_breakpoint)
2399 (set_raw_breakpoint_at)
2400 (delete_raw_breakpoint)
2402 (uninsert_raw_breakpoint)
2403 (reinsert_raw_breakpoint)
2404 (validate_inserted_breakpoint)
2405 * regcache.cc (regcache_read_pc)
2407 * remote-utils.cc (putpkt_binary_1)
2410 (prepare_resume_reply)
2411 * server.cc (handle_general_set)
2414 (handle_qxfer_exec_file)
2415 (handle_qxfer_libraries_svr4)
2416 (handle_qxfer_osdata)
2417 (handle_qxfer_siginfo)
2418 (handle_qxfer_fdpic)
2422 (queue_stop_reply_callback)
2424 * target.cc (prepare_to_access_memory)
2425 (done_accessing_memory)
2426 (read_inferior_memory)
2427 (target_write_memory)
2428 (target_stop_and_wait)
2430 (target_mourn_inferior)
2431 (target_continue_no_signal)
2433 (target_supports_multi_process)
2436 (target_create_inferior)
2437 (target_post_create_inferior)
2439 (target_supports_fork_events)
2440 (target_supports_vfork_events)
2441 (target_supports_exec_events)
2442 (target_handle_new_gdb_connection)
2445 (fetch_inferior_registers)
2446 (store_inferior_registers)
2448 (target_supports_non_stop)
2450 (target_process_qsupported)
2451 (target_supports_catch_syscall)
2452 (target_get_ipa_tdesc_idx)
2453 (target_supports_tracepoints)
2454 (target_supports_fast_tracepoints)
2455 (target_get_min_fast_tracepoint_insn_len)
2456 (target_thread_stopped)
2458 (target_unpause_all)
2459 (target_stabilize_threads)
2460 (target_install_fast_tracepoint_jump_pad)
2462 (target_supports_disable_randomization)
2463 (target_supports_agent)
2464 (target_enable_btrace)
2465 (target_disable_btrace)
2466 (target_read_btrace)
2467 (target_read_btrace_conf)
2468 (target_supports_range_stepping)
2469 (target_supports_stopped_by_sw_breakpoint)
2470 (target_stopped_by_sw_breakpoint)
2471 (target_supports_stopped_by_hw_breakpoint)
2472 (target_supports_hardware_single_step)
2473 (target_stopped_by_hw_breakpoint)
2474 (target_breakpoint_kind_from_pc)
2475 (target_breakpoint_kind_from_current_state)
2476 (target_supports_software_single_step)
2477 (target_core_of_thread)
2478 (target_thread_name)
2479 (target_thread_handle)
2480 * win32-low.cc (do_initial_child_stuff)
2482 Rename target op default definitions listed below.
2484 * target.cc (process_target::post_create_inferior): Rename as ...
2485 (process_stratum_target::post_create_inferior): ... this.
2486 (process_target::prepare_to_access_memory): Rename as ...
2487 (process_stratum_target::prepare_to_access_memory): ... this.
2488 (process_target::done_accessing_memory): Rename as ...
2489 (process_stratum_target::done_accessing_memory): ... this.
2490 (process_target::look_up_symbols): Rename as ...
2491 (process_stratum_target::look_up_symbols): ... this.
2492 (process_target::supports_read_auxv): Rename as ...
2493 (process_stratum_target::supports_read_auxv): ... this.
2494 (process_target::read_auxv): Rename as ...
2495 (process_stratum_target::read_auxv): ... this.
2496 (process_target::supports_z_point_type): Rename as ...
2497 (process_stratum_target::supports_z_point_type): ... this.
2498 (process_target::insert_point): Rename as ...
2499 (process_stratum_target::insert_point): ... this.
2500 (process_target::remove_point): Rename as ...
2501 (process_stratum_target::remove_point): ... this.
2502 (process_target::stopped_by_sw_breakpoint): Rename as ...
2503 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2504 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2505 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2506 (process_target::stopped_by_hw_breakpoint): Rename as ...
2507 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2508 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2509 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2510 (process_target::supports_hardware_single_step): Rename as ...
2511 (process_stratum_target::supports_hardware_single_step): ... this.
2512 (process_target::stopped_by_watchpoint): Rename as ...
2513 (process_stratum_target::stopped_by_watchpoint): ... this.
2514 (process_target::stopped_data_address): Rename as ...
2515 (process_stratum_target::stopped_data_address): ... this.
2516 (process_target::supports_read_offsets): Rename as ...
2517 (process_stratum_target::supports_read_offsets): ... this.
2518 (process_target::read_offsets): Rename as ...
2519 (process_stratum_target::read_offsets): ... this.
2520 (process_target::supports_get_tls_address): Rename as ...
2521 (process_stratum_target::supports_get_tls_address): ... this.
2522 (process_target::get_tls_address): Rename as ...
2523 (process_stratum_target::get_tls_address): ... this.
2524 (process_target::hostio_last_error): Rename as ...
2525 (process_stratum_target::hostio_last_error): ... this.
2526 (process_target::supports_qxfer_osdata): Rename as ...
2527 (process_stratum_target::supports_qxfer_osdata): ... this.
2528 (process_target::qxfer_osdata): Rename as ...
2529 (process_stratum_target::qxfer_osdata): ... this.
2530 (process_target::supports_qxfer_siginfo): Rename as ...
2531 (process_stratum_target::supports_qxfer_siginfo): ... this.
2532 (process_target::qxfer_siginfo): Rename as ...
2533 (process_stratum_target::qxfer_siginfo): ... this.
2534 (process_target::supports_non_stop): Rename as ...
2535 (process_stratum_target::supports_non_stop): ... this.
2536 (process_target::async): Rename as ...
2537 (process_stratum_target::async): ... this.
2538 (process_target::start_non_stop): Rename as ...
2539 (process_stratum_target::start_non_stop): ... this.
2540 (process_target::supports_multi_process): Rename as ...
2541 (process_stratum_target::supports_multi_process): ... this.
2542 (process_target::supports_fork_events): Rename as ...
2543 (process_stratum_target::supports_fork_events): ... this.
2544 (process_target::supports_vfork_events): Rename as ...
2545 (process_stratum_target::supports_vfork_events): ... this.
2546 (process_target::supports_exec_events): Rename as ...
2547 (process_stratum_target::supports_exec_events): ... this.
2548 (process_target::handle_new_gdb_connection): Rename as ...
2549 (process_stratum_target::handle_new_gdb_connection): ... this.
2550 (process_target::handle_monitor_command): Rename as ...
2551 (process_stratum_target::handle_monitor_command): ... this.
2552 (process_target::core_of_thread): Rename as ...
2553 (process_stratum_target::core_of_thread): ... this.
2554 (process_target::supports_read_loadmap): Rename as ...
2555 (process_stratum_target::supports_read_loadmap): ... this.
2556 (process_target::read_loadmap): Rename as ...
2557 (process_stratum_target::read_loadmap): ... this.
2558 (process_target::process_qsupported): Rename as ...
2559 (process_stratum_target::process_qsupported): ... this.
2560 (process_target::supports_tracepoints): Rename as ...
2561 (process_stratum_target::supports_tracepoints): ... this.
2562 (process_target::read_pc): Rename as ...
2563 (process_stratum_target::read_pc): ... this.
2564 (process_target::write_pc): Rename as ...
2565 (process_stratum_target::write_pc): ... this.
2566 (process_target::supports_thread_stopped): Rename as ...
2567 (process_stratum_target::supports_thread_stopped): ... this.
2568 (process_target::thread_stopped): Rename as ...
2569 (process_stratum_target::thread_stopped): ... this.
2570 (process_target::supports_get_tib_address): Rename as ...
2571 (process_stratum_target::supports_get_tib_address): ... this.
2572 (process_target::get_tib_address): Rename as ...
2573 (process_stratum_target::get_tib_address): ... this.
2574 (process_target::pause_all): Rename as ...
2575 (process_stratum_target::pause_all): ... this.
2576 (process_target::unpause_all): Rename as ...
2577 (process_stratum_target::unpause_all): ... this.
2578 (process_target::stabilize_threads): Rename as ...
2579 (process_stratum_target::stabilize_threads): ... this.
2580 (process_target::supports_fast_tracepoints): Rename as ...
2581 (process_stratum_target::supports_fast_tracepoints): ... this.
2582 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2583 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2584 (process_target::emit_ops): Rename as ...
2585 (process_stratum_target::emit_ops): ... this.
2586 (process_target::supports_disable_randomization): Rename as ...
2587 (process_stratum_target::supports_disable_randomization): ... this.
2588 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2589 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2590 (process_target::qxfer_libraries_svr4): Rename as ...
2591 (process_stratum_target::qxfer_libraries_svr4): ... this.
2592 (process_target::supports_agent): Rename as ...
2593 (process_stratum_target::supports_agent): ... this.
2594 (process_target::enable_btrace): Rename as ...
2595 (process_stratum_target::enable_btrace): ... this.
2596 (process_target::disable_btrace): Rename as ...
2597 (process_stratum_target::disable_btrace): ... this.
2598 (process_target::read_btrace): Rename as ...
2599 (process_stratum_target::read_btrace): ... this.
2600 (process_target::read_btrace_conf): Rename as ...
2601 (process_stratum_target::read_btrace_conf): ... this.
2602 (process_target::supports_range_stepping): Rename as ...
2603 (process_stratum_target::supports_range_stepping): ... this.
2604 (process_target::supports_pid_to_exec_file): Rename as ...
2605 (process_stratum_target::supports_pid_to_exec_file): ... this.
2606 (process_target::pid_to_exec_file): Rename as ...
2607 (process_stratum_target::pid_to_exec_file): ... this.
2608 (process_target::supports_multifs): Rename as ...
2609 (process_stratum_target::supports_multifs): ... this.
2610 (process_target::multifs_open): Rename as ...
2611 (process_stratum_target::multifs_open): ... this.
2612 (process_target::multifs_unlink): Rename as ...
2613 (process_stratum_target::multifs_unlink): ... this.
2614 (process_target::multifs_readlink): Rename as ...
2615 (process_stratum_target::multifs_readlink): ... this.
2616 (process_target::breakpoint_kind_from_pc): Rename as ...
2617 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2618 (process_target::breakpoint_kind_from_current_state): Rename as ...
2619 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2620 (process_target::thread_name): Rename as ...
2621 (process_stratum_target::thread_name): ... this.
2622 (process_target::thread_handle): Rename as ...
2623 (process_stratum_target::thread_handle): ... this.
2624 (process_target::supports_software_single_step): Rename as ...
2625 (process_stratum_target::supports_software_single_step): ... this.
2626 (process_target::supports_catch_syscall): Rename as ...
2627 (process_stratum_target::supports_catch_syscall): ... this.
2628 (process_target::get_ipa_tdesc_idx): Rename as ...
2629 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2631 2020-02-20 Pedro Alves <palves@redhat.com>
2633 * target.cc (set_target_ops): Simply copy the given target pointer
2634 instead of creating a copy of the pointed object.
2636 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2641 * target.h (struct process_stratum_target): Remove the target op.
2642 (class process_target): Add the target op.
2643 (target_get_ipa_tdesc_idx): Update the macro.
2644 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2646 Update the derived classes and callers below.
2648 * linux-low.cc (linux_target_ops): Update.
2649 (linux_get_ipa_tdesc_idx): Turn into ...
2650 (linux_process_target::get_ipa_tdesc_idx): ... this.
2651 * linux-low.h (class linux_process_target): Update.
2652 * lynx-low.cc (lynx_target_ops): Update.
2653 * nto-low.cc (nto_target_ops): Update.
2654 * win32-low.cc (win32_target_ops): Update.
2656 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2658 Turn process_stratum_target's supports_catch_syscall op into a
2659 method of process_target.
2661 * target.h (struct process_stratum_target): Remove the target op.
2662 (class process_target): Add the target op.
2663 (target_supports_catch_syscall): Update the macro.
2664 * target.cc (process_target::supports_catch_syscall): Define.
2666 Update the derived classes and callers below.
2668 * linux-low.cc (linux_target_ops): Update.
2669 (linux_supports_catch_syscall): Turn into ...
2670 (linux_process_target::supports_catch_syscall): ... this.
2671 * linux-low.h (class linux_process_target): Update.
2672 * lynx-low.cc (lynx_target_ops): Update.
2673 * nto-low.cc (nto_target_ops): Update.
2674 * win32-low.cc (win32_target_ops): Update.
2676 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2678 Turn process_stratum_target's supports_software_single_step op
2679 into a method of process_target.
2681 * target.h (struct process_stratum_target): Remove the target op.
2682 (class process_target): Add the target op.
2683 (target_supports_software_single_step): Update the macro.
2684 * target.cc (process_target::supports_software_single_step): Define.
2686 Update the derived classes and callers below.
2688 * linux-low.cc (linux_target_ops): Update.
2689 (linux_supports_software_single_step): Turn into ...
2690 (linux_process_target::supports_software_single_step): ... this.
2691 * linux-low.h (class linux_process_target): Update.
2692 * lynx-low.cc (lynx_target_ops): Update.
2693 * nto-low.cc (nto_target_ops): Update.
2694 * win32-low.cc (win32_target_ops): Update.
2696 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698 Turn process_stratum_target's thread_name and thread_handle ops
2699 into methods of process_target.
2701 * target.h (struct process_stratum_target): Remove the target ops.
2702 (class process_target): Add the target ops.
2703 (target_thread_name): Update the macro.
2704 (target_thread_handle): Update the macro.
2705 * target.cc (process_target::thread_name): Define.
2706 (process_target::thread_handle): Define.
2708 Update the derived classes and callers below.
2710 * linux-low.cc (linux_target_ops): Update.
2711 (linux_process_target::thread_name): Define.
2712 (linux_process_target::thread_handle): Define.
2713 * linux-low.h (class linux_process_target): Update.
2714 * lynx-low.cc (lynx_target_ops): Update.
2715 * nto-low.cc (nto_target_ops): Update.
2716 * win32-low.cc (win32_target_ops): Update.
2718 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2720 Turn process_stratum_target's breakpoint_kind_from_pc,
2721 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2722 ops into methods of process_target.
2724 * target.h (struct process_stratum_target): Remove the target op.
2725 (class process_target): Add the target op.
2726 (target_breakpoint_kind_from_pc): Update the macro.
2727 (target_breakpoint_kind_from_current_state): Update the macro.
2728 (default_breakpoint_kind_from_pc): Remove declaration.
2729 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2730 (process_target::breakpoint_kind_from_pc): ... this.
2731 (process_target::breakpoint_kind_from_current_state): Define.
2733 Update the derived classes and callers below.
2735 * mem-break.cc (bp_size): Update.
2736 (bp_opcode): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_wait_1): Update.
2739 (linux_breakpoint_kind_from_pc): Turn into ...
2740 (linux_process_target::breakpoint_kind_from_pc): ... this.
2741 (linux_sw_breakpoint_from_kind): Turn into ...
2742 (linux_process_target::sw_breakpoint_from_kind): ... this.
2743 (linux_breakpoint_kind_from_current_state): Turn into ...
2744 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2745 * linux-low.h (class linux_process_target): Update.
2746 * lynx-low.cc (lynx_target_ops): Update.
2747 (lynx_process_target::sw_breakpoint_from_kind): Define.
2748 * lynx-low.h (class lynx_process_target): Update.
2749 * nto-low.cc (nto_target_ops): Update.
2750 (nto_sw_breakpoint_from_kind): Turn into ...
2751 (nto_process_target::sw_breakpoint_from_kind): ... this.
2752 * nto-low.h (class nto_process_target): Update.
2753 * win32-low.cc (win32_target_ops): Update.
2754 (win32_sw_breakpoint_from_kind): Turn into ...
2755 (win32_process_target::sw_breakpoint_from_kind): ... this.
2756 * win32-low.h (class win32_process_target): Update.
2758 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2760 Turn process_stratum_target's multifs_open, multifs_readlink,
2761 multifs_unlink ops into methods of process_target.
2763 * target.h (struct process_stratum_target): Remove the target ops.
2764 (class process_target): Add the target ops. Also add
2766 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2768 (process_target::supports_multifs): Define.
2769 (process_target::multifs_open): Define.
2770 (process_target::multifs_readlink): Define.
2771 (process_target::multifs_unlink): Define.
2773 Update the derived classes and callers below.
2775 * hostio.cc (handle_setfs): Update.
2776 (handle_open): Update.
2777 (handle_unlink): Update.
2778 (handle_readlink): Update.
2779 * linux-low.cc (linux_target_ops): Update.
2780 (linux_process_target::supports_multifs): Define.
2781 (linux_process_target::multifs_open): Define.
2782 (linux_process_target::multifs_readlink): Define.
2783 (linux_process_target::multifs_unlink): Define.
2784 * linux-low.h (class linux_process_target): Update.
2785 * lynx-low.cc (lynx_target_ops): Update.
2786 * nto-low.cc (nto_target_ops): Update.
2787 * win32-low.cc (win32_target_ops): Update.
2789 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2791 Turn process_stratum_target's pid_to_exec_file op into a method
2794 * target.h (struct process_stratum_target): Remove the target op.
2795 (class process_target): Add the target op. Also add
2796 'supports_pid_to_exec_file'.
2797 * target.cc (process_target::pid_to_exec_file): Define.
2798 (process_target::supports_pid_to_exec_file): Define.
2800 Update the derived classes and callers below.
2802 * server.cc (handle_qxfer_exec_file): Update.
2803 (handle_query): Update.
2804 * linux-low.cc (linux_target_ops): Update.
2805 (linux_process_target::supports_pid_to_exec_file): Define.
2806 (linux_process_target::pid_to_exec_file): Define.
2807 * linux-low.h (class linux_process_target): Update.
2808 * lynx-low.cc (lynx_target_ops): Update.
2809 * nto-low.cc (nto_target_ops): Update.
2810 * win32-low.cc (win32_target_ops): Update.
2812 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814 Turn process_stratum_target's supports_range_stepping op into a
2815 method of process_target.
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2819 (target_supports_range_stepping): Update the macro.
2820 * target.cc (process_target::supports_range_stepping): Define.
2822 Update the derived classes and callers below.
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_supports_range_stepping): Turn into ...
2826 (linux_process_target::supports_range_stepping): ... this.
2827 * linux-low.h (class linux_process_target): Update.
2828 * lynx-low.cc (lynx_target_ops): Update.
2829 * nto-low.cc (nto_target_ops): Update.
2830 * win32-low.cc (win32_target_ops): Update.
2832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2834 Turn process_stratum_target's btrace-related ops (enable_btrace,
2835 disable_btrace, read_btrace, read_btrace_conf) into methods of
2838 * target.h (struct process_stratum_target): Remove the target ops.
2839 (class process_target): Add the target ops.
2840 (target_enable_btrace): Update.
2841 (target_disable_btrace): Update.
2842 (target_read_btrace): Update.
2843 (target_read_btrace_conf): Update.
2844 * target.cc (process_target::enable_btrace): Define.
2845 (process_target::disable_btrace): Define.
2846 (process_target::read_btrace): Define.
2847 (process_target::read_btrace_conf): Define.
2849 Update the derived classes and callers below.
2851 * linux-low.cc (linux_target_ops): Update.
2852 (linux_process_target:enable_btrace): Define as a wrapper around
2853 linux_enable_btrace.
2854 (linux_low_disable_btrace): Turn into ...
2855 (linux_process_target::disable_btrace): ... this.
2856 (linux_low_read_btrace): Turn into ...
2857 (linux_process_target::read_btrace): ... this.
2858 (linux_low_btrace_conf): Turn into ...
2859 (linux_process_target::read_btrace_conf): ... this.
2860 * linux-low.h (class linux_process_target): Update.
2861 * lynx-low.cc (lynx_target_ops): Update.
2862 * nto-low.cc (nto_target_ops): Update.
2863 * win32-low.cc (win32_target_ops): Update.
2865 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2867 Turn process_stratum_target's supports_agent op into a method of
2870 * target.h (struct process_stratum_target): Remove the target op.
2871 (class process_target): Add the target op.
2872 (target_supports_agent): Update the macro.
2873 * target.cc (process_target::supports_agent): Define.
2875 Update the derived classes and callers below.
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_supports_agent): Turn into ...
2879 (linux_process_target::supports_agent): ... this.
2880 * linux-low.h (class linux_process_target): Update.
2881 * lynx-low.cc (lynx_target_ops): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 * win32-low.cc (win32_target_ops): Update.
2885 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2887 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2888 method of process_target.
2890 * target.h (struct process_stratum_target): Remove the target op.
2891 (class process_target): Add the target op. Also add
2892 'supports_qxfer_libraries_svr4'.
2893 * target.cc (process_target::qxfer_libraries_svr4): Define.
2894 (process_target::supports_qxfer_libraries_svr4): Define.
2896 Update the derived classes and callers below.
2898 * server.cc (handle_qxfer_libraries_svr4): Update.
2899 (handle_query): Update.
2900 * linux-low.cc (linux_target_ops): Update.
2901 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2902 (linux_qxfer_libraries_svr4): Turn into ...
2903 (linux_process_target::qxfer_libraries_svr4): ... this.
2904 * linux-low.h (class linux_process_target): Update.
2905 * lynx-low.cc (lynx_target_ops): Update.
2906 * nto-low.cc (nto_target_ops): Update.
2907 * win32-low.cc (win32_target_ops): Update.
2909 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2911 Turn process_stratum_target's supports_disable_randomization op
2912 into a method of process_target.
2914 * target.h (struct process_stratum_target): Remove the target op.
2915 (class process_target): Add the target op.
2916 (target_supports_disable_randomization): Update the macro.
2917 * target.cc (process_target::supports_disable_randomization): Define.
2919 Update the derived classes and callers below.
2921 * linux-low.cc (linux_target_ops): Update.
2922 (linux_supports_disable_randomization): Turn into ...
2923 (linux_process_target::supports_disable_randomization): ... this.
2924 * linux-low.h (class linux_process_target): Update.
2925 * lynx-low.cc (lynx_target_ops): Update.
2926 * nto-low.cc (nto_target_ops): Update.
2927 * win32-low.cc (win32_target_ops): Update.
2929 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2931 Turn process_stratum_target's emit_ops op into a method of
2934 * target.h (struct process_stratum_target): Remove the target op.
2935 (class process_target): Add the target op.
2936 (target_emit_ops): Update the macro.
2937 * target.cc (process_target::emit_ops): Define.
2939 Update the derived classes and callers below.
2941 * linux-low.cc (linux_target_ops): Update.
2942 (linux_emit_ops): Turn into ...
2943 (linux_process_target::emit_ops): ... this.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 * nto-low.cc (nto_target_ops): Update.
2947 * win32-low.cc (win32_target_ops): Update.
2949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2952 and get_min_fast_tracepoint_insn_len ops into methods of
2955 * target.h (struct process_stratum_target): Remove the target ops.
2956 (class process_target): Add the target ops. Also add
2957 'supports_fast_tracepoints'.
2958 (target_supports_fast_tracepoints): Update the macro.
2959 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2960 (install_fast_tracepoint_jump_pad): Update and rename the macro
2962 (target_install_fast_tracepoint_jump_pad): ... this.
2963 * target.cc (process_target::supports_fast_tracepoints): Define.
2964 (process_target::install_fast_tracepoint_jump_pad): Define.
2965 (process_target::get_min_fast_tracepoint_insn_len): Define.
2967 Update the derived classes and callers below.
2969 * tracepoint.cc (install_fast_tracepoint): Update.
2970 * linux-low.cc (linux_target_ops): Update.
2971 (linux_process_target::supports_fast_tracepoints): Define.
2972 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2973 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2974 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2975 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2976 * linux-low.h (class linux_process_target): Update.
2977 * lynx-low.cc (lynx_target_ops): Update.
2978 * nto-low.cc (nto_target_ops): Update.
2979 * win32-low.cc (win32_target_ops): Update.
2981 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983 Turn process_stratum_target's stabilize_threads op into a
2984 method of process_target.
2986 * target.h (struct process_stratum_target): Remove the target op.
2987 (class process_target): Add the target op.
2988 (target_stabilize_threads): Update the macro.
2989 * target.cc (process_target::stabilize_threads): Define.
2991 Update the derived classes and callers below.
2993 * server.cc (handle_status): Update.
2994 * tracepoint.cc (cmd_qtdp): Update.
2995 (cmd_qtstart): Update.
2996 * linux-low.cc (linux_target_ops): Update.
2997 (linux_stabilize_threads): Turn into ...
2998 (linux_process_target::stabilize_threads): ... this.
2999 (linux_wait_1): Update.
3000 * linux-low.h (class linux_process_target): Update.
3001 * lynx-low.cc (lynx_target_ops): Update.
3002 * nto-low.cc (nto_target_ops): Update.
3003 * win32-low.cc (win32_target_ops): Update.
3005 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007 Turn process_stratum_target's pause_all and unpause_all ops
3008 into methods of process_target.
3010 * target.h (struct process_stratum_target): Remove the target ops.
3011 (class process_target): Add the target ops.
3012 (pause_all): Update the macro and rename to...
3013 (target_pause_all): ... this.
3014 (unpause_all): Update the macro and rename to...
3015 (target_unpause_all): ... this.
3016 * target.cc (process_target::pause_all): Define.
3017 (process_target::unpause_all): Define.
3019 Update the derived classes and callers below.
3021 * server.cc (handle_status): Update.
3022 * tracepoint.cc (clear_installed_tracepoints): Update.
3024 (cmd_qtstart): Update.
3025 (stop_tracing): Update.
3026 (cmd_qtstatus): Update.
3027 (upload_fast_traceframes): Update.
3028 (run_inferior_command): Update.
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_pause_all): Turn into ...
3031 (linux_process_target::pause_all): ... this.
3032 (linux_unpause_all): Turn into ...
3033 (linux_process_target::unpause_all): ... this.
3034 (linux_process_target::prepare_to_access_memory): Update.
3035 (linux_process_target::done_accessing_memory): Update.
3036 * linux-low.h (class linux_process_target): 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.
3041 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3043 Turn process_stratum_target's get_tib_address op into a method of
3046 * target.h (struct process_stratum_target): Remove the target op.
3047 (class process_target): Add the target op. Also add
3048 'supports_get_tib_address'.
3049 * target.cc (process_target::get_tib_address): Define.
3050 (process_target::supports_get_tib_address): Define.
3052 Update the derived classes and callers below.
3054 * server.cc (handle_query): Update.
3055 * linux-low.cc (win32_target_ops): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3059 (win32_process_target::supports_get_tib_address): Define.
3060 (win32_get_tib_address): Turn into ...
3061 (win32_process_target::get_tib_address): ... this.
3062 * win32-low.h (class win32_process_target): Update.
3064 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3066 Turn process_stratum_target's thread_stopped op into a method of
3069 * target.h (struct process_stratum_target): Remove the target op.
3070 (class process_target): Add the target op. Also add
3071 'supports_thread_stopped'.
3072 (target_thread_stopped): Update the macro.
3073 * target.cc (process_target::thread_stopped): Define.
3074 (process_target::supports_thread_stopped): Define.
3075 (prepare_to_access_memory): Update.
3077 Update the derived classes and callers below.
3079 * server.cc (queue_stop_reply_callback): Update.
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_process_target::supports_thread_stopped): Define.
3082 (linux_thread_stopped): Turn into ...
3083 (linux_process_target::thread_stopped): ... this.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3091 Turn process_stratum_target's read_pc and write_pc ops into
3092 methods of process_target.
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops.
3096 * target.cc (process_target::read_pc): Define.
3097 (process_target::write_pc): Define.
3099 Update the derived classes and callers below.
3101 * regcache.cc (regcache_read_pc): Update.
3102 (regcache_write_pc): Update.
3103 * linux-low.cc (linux_target_ops): Update.
3104 (linux_read_pc): Turn into ...
3105 (linux_process_target::read_pc): ... this.
3106 (linux_write_pc): Turn into ...
3107 (linux_process_target::write_pc): ... this.
3108 * linux-low.h (class linux_process_target): Update.
3109 * lynx-low.cc (lynx_target_ops): Update.
3110 * nto-low.cc (nto_target_ops): Update.
3111 * win32-low.cc (win32_target_ops): Update.
3113 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3115 Turn process_stratum_target's supports_tracepoints op into a
3116 method of process_target.
3118 * target.h (struct process_stratum_target): Remove the target op.
3119 (class process_target): Add the target op.
3120 (target_supports_tracepoints): Update the macro.
3121 * target.cc (process_target::supports_tracepoints): Define.
3123 Update the derived classes and callers below.
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_supports_tracepoints): Turn into ...
3127 (linux_process_target::supports_tracepoints): ... this.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 * nto-low.cc (nto_target_ops): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3133 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3135 Turn process_stratum_target's process_qsupported op into a method
3138 * target.h (struct process_stratum_target): Remove the target op.
3139 (class process_target): Add the target op.
3140 (target_process_qsupported): Update the macro.
3141 * target.cc (process_target::process_qsupported): Define.
3143 Update the derived classes and callers below.
3145 * linux-low.cc (linux_target_ops): Update.
3146 (linux_process_qsupported): Turn into ...
3147 (linux_process_target::process_qsupported): ... this.
3148 * linux-low.h (class linux_process_target): Update.
3149 * lynx-low.cc (lynx_target_ops): Update.
3150 * nto-low.cc (nto_target_ops): Update.
3151 * win32-low.cc (win32_target_ops): Update.
3153 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3155 Turn process_stratum_target's read_loadmap op into a method of
3158 * target.h (struct process_stratum_target): Remove the target op.
3159 (class process_target): Add the target op. Also add
3160 'supports_read_loadmap'.
3161 * target.cc (process_target::read_loadmap): Define.
3162 (process_target::supports_read_loadmap): Define.
3164 Update the derived classes and callers below.
3166 * server.cc (handle_qxfer_fdpic): Update.
3167 (handle_query): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_process_target::supports_read_loadmap): Define.
3170 (linux_read_loadmap): Turn into ...
3171 (linux_process_target::read_loadmap): ... this.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179 Turn process_stratum_target's core_of_thread op into a method of
3182 * target.h (struct process_stratum_target): Remove the target op.
3183 (class process_target): Add the target op.
3184 (target_core_of_thread): Update the macro.
3185 * target.cc (process_target::core_of_thread): Define.
3187 Update the derived classes and callers below.
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_process_target::core_of_thread): Define.
3191 * linux-low.h (class linux_process_target): Update.
3192 * lynx-low.cc (lynx_target_ops): Update.
3193 * nto-low.cc (nto_target_ops): Update.
3194 * win32-low.cc (win32_target_ops): Update.
3196 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3198 Turn process_stratum_target's handle_monitor_command op into a
3199 method of process_target.
3201 * target.h (struct process_stratum_target): Remove the target op.
3202 (class process_target): Add the target op.
3203 (target_handle_monitor_command): Update the macro.
3204 * target.cc (process_target::handle_monitor_command): Define.
3206 Update the derived classes and callers below.
3208 * server.cc (handle_query): Update.
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_process_target::handle_monitor_command): Define.
3211 * linux-low.h (class linux_process_target): Update.
3212 * lynx-low.cc (lynx_target_ops): Update.
3213 * nto-low.cc (nto_target_ops): Update.
3214 * win32-low.cc (win32_target_ops): Update.
3216 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3218 Turn process_stratum_target's handle_new_gdb_connection op into a
3219 method of process_target.
3221 * target.h (struct process_stratum_target): Remove the target op.
3222 (class process_target): Add the target op.
3223 (target_handle_new_gdb_connection): Update the macro.
3224 * target.cc (process_target::handle_new_gdb_connection): Define.
3226 Update the derived classes and callers below.
3228 * linux-low.cc (linux_target_ops): Update.
3229 (linux_handle_new_gdb_connection): Turn into ...
3230 (linux_process_target::handle_new_gdb_connection): ... this.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238 Turn process_stratum_target's supports_fork_events,
3239 supports_vfork_events, and supports_exec_events ops into methods
3242 * target.h (struct process_stratum_target): Remove the target ops.
3243 (class process_target): Add the target ops.
3244 (target_supports_fork_events): Update the macro.
3245 (target_supports_vfork_events): Update the macro.
3246 (target_supports_exec_events): Update the macro.
3247 * target.cc (process_target::supports_fork_events): Define.
3248 (process_target::supports_vfork_events): Define.
3249 (process_target::supports_exec_events): Define.
3251 Update the derived classes and callers below.
3253 * linux-low.cc (linux_target_ops): Update.
3254 (linux_supports_fork_events): Turn into ...
3255 (linux_process_target::supports_fork_events): ... this.
3256 (linux_supports_vfork_events): Turn into ...
3257 (linux_process_target::supports_vfork_events): ... this.
3258 (linux_supports_exec_events): Turn into ...
3259 (linux_process_target::supports_exec_events): ... this.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3267 Turn process_stratum_target's supports_multi_process op into a
3268 method of process_target.
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op.
3272 * target.cc (process_target::supports_multi_process): Define.
3273 (target_supports_multi_process): Update.
3275 Update the derived classes and callers below.
3277 * linux-low.cc (linux_target_ops): Update.
3278 (linux_supports_multi_process): Turn into ...
3279 (linux_process_target::supports_multi_process): ... this.
3280 * linux-low.h (class linux_process_target): Update.
3281 * lynx-low.cc (lynx_target_ops): Update.
3282 * nto-low.cc (nto_target_ops): Update.
3283 * win32-low.cc (win32_target_ops): Update.
3285 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287 Turn process_stratum_target's supports_non_stop, async, and
3288 start_non_stop ops into methods of process_target.
3290 * target.h (struct process_stratum_target): Remove the target ops.
3291 (class process_target): Add the target ops.
3292 (target_supports_non_stop): Update the macro.
3293 (target_async): Update the macro.
3294 (start_non_stop): Remove declaration.
3295 * target.cc (process_target::supports_non_stop): Define.
3296 (process_target::async): Define.
3297 (process_target::start_non_stop): Define.
3298 (start_non_stop): Remove.
3300 Update the derived classes and callers below.
3302 * server.cc (handle_qxfer_siginfo): Update.
3303 (handle_query): Update.
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_supports_non_stop): Turn into ...
3306 (linux_process_target::supports_non_stop): ... this.
3307 (linux_async): Turn into ...
3308 (linux_process_target::async): ... this.
3309 (linux_start_non_stop): Turn into ...
3310 (linux_process_target::start_non_stop): ... this.
3311 * linux-low.h (class linux_process_target): Update.
3312 * lynx-low.cc (lynx_target_ops): Update.
3313 * nto-low.cc (nto_target_ops): Update.
3314 (nto_supports_non_stop): Remove; rely on the default behavior
3316 * win32-low.cc (win32_target_ops): Update.
3318 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3320 Turn process_stratum_target's qxfer_siginfo op into a method of
3323 * target.h (struct process_stratum_target): Remove the target op.
3324 (class process_target): Add the target op. Also add
3325 'supports_qxfer_siginfo'.
3326 * target.cc (process_target::qxfer_siginfo): Define.
3327 (process_target::supports_qxfer_siginfo): Define.
3329 Update the derived classes and callers below.
3331 * server.cc (handle_qxfer_siginfo): Update.
3332 (handle_query): Update.
3333 * linux-low.cc (linux_target_ops): Update.
3334 (linux_process_target::supports_qxfer_siginfo): Define.
3335 (linux_xfer_siginfo): Turn into ...
3336 (linux_process_target::qxfer_siginfo): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3342 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3344 Turn process_stratum_target's qxfer_osdata op into a method of
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op. Also add
3349 'supports_qxfer_osdata'.
3350 * target.cc (process_target::qxfer_osdata): Define.
3351 (process_target::supports_qxfer_osdata): Define.
3353 Update the derived classes and callers below.
3355 * server.cc (handle_qxfer_osdata): Update.
3356 (handle_query): Update.
3357 * linux-low.cc (linux_target_ops): Update.
3358 (linux_process_target::supports_qxfer_osdata): Define.
3359 (linux_qxfer_osdata): Turn into ...
3360 (linux_process_target::qxfer_osdata): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3366 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3368 Turn process_stratum_target's hostio_last_error op into a
3369 method of process_target.
3371 * target.h (struct process_stratum_target): Remove the target op.
3372 (class process_target): Add the target op.
3373 * target.cc: Add "hostio.h" to includes.
3374 (process_target::hostio_last_error): Define.
3376 Update the derived classes and callers below.
3378 * hostio.cc (hostio_error): Update.
3379 * linux-low.cc: Remove "hostio.h" from includes.
3380 (linux_target_ops): Update.
3381 * lynx-low.cc (lynx_target_ops): Update.
3382 * nto-low.cc (nto_target_ops): Update.
3383 * win32-low.h (class win32_process_target): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385 (wince_hostio_last_error): Turn into ...
3386 (win32_process_target::hostio_last_error): ... this.
3388 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390 Turn process_stratum_target's get_tls_address op into a method of
3393 * target.h (struct process_stratum_target): Remove the target op.
3394 (class process_target): Add the target op. Also add
3395 'supports_get_tls_address'.
3396 * target.cc (process_target::get_tls_address): Define.
3397 (process_target::supports_get_tls_address): Define.
3399 Update the derived classes and callers below.
3401 * server.cc (handle_query): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_get_tls_address): Define.
3404 (linux_process_target::get_tls_address): Define.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412 Turn process_stratum_target's read_offsets op into a method of
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op. Also add
3417 'supports_read_offsets'.
3418 * target.cc (process_target::read_offsets): Define.
3419 (process_target::supports_read_offsets): Define.
3421 Update the derived classes and callers below.
3423 * server.cc (handle_query): Update.
3424 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3425 (linux_target_ops): Update.
3426 (linux_process_target::supports_read_offsets): Define.
3427 (linux_read_offsets): Turn into ...
3428 (linux_process_target::read_offsets): ... this.
3429 * linux-low.h (class linux_process_target): Update.
3430 * lynx-low.cc (lynx_target_ops): Update.
3431 * nto-low.cc (nto_target_ops): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436 Turn process_stratum_target's stopped_by_watchpoint and
3437 stopped_data_address ops into methods of process_target.
3439 * target.h (struct process_stratum_target): Remove the target ops.
3440 (class process_target): Add the target ops.
3441 * target.cc (process_target::stopped_by_watchpoint): Define.
3442 (process_target::stopped_data_address): Define.
3444 Update the derived classes and callers below.
3446 * remote-utils.cc (prepare_resume_reply): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_stopped_by_watchpoint): Turn into ...
3449 (linux_process_target::stopped_by_watchpoint): ... this.
3450 (linux_stopped_data_address): Turn into ...
3451 (linux_process_target::stopped_data_address): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 (nto_stopped_by_watchpoint): Turn into ...
3456 (nto_process_target::stopped_by_watchpoint): ... this.
3457 (nto_stopped_data_address): Turn into ...
3458 (nto_process_target::stopped_data_address): ... this.
3459 * nto-low.h (class nto_process_target): Update.
3460 * win32-low.cc (win32_target_ops): Update.
3461 (win32_stopped_by_watchpoint): Turn into ...
3462 (win32_process_target::stopped_by_watchpoint): ... this.
3463 (win32_stopped_data_address): Turn into ...
3464 (win32_process_target::stopped_data_address): ... this.
3465 * win32-low.h (class win32_process_target): Update.
3467 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469 Turn process_stratum_target's supports_hardware_single_step op into
3470 a method of process_target.
3472 * target.h (struct process_stratum_target): Remove the target op.
3473 (class process_target): Add the target op.
3474 (target_supports_hardware_single_step): Update the macro.
3475 (target_can_do_hardware_single_step): Remove declaration.
3476 * target.cc (process_target::supports_hardware_single_step): Define.
3477 (target_can_do_hardware_single_step): Remove.
3479 Update the derived classes and callers below.
3481 * linux-low.h (class linux_process_target): Update.
3482 * linux-low.cc (linux_target_ops): Update.
3483 (linux_supports_hardware_single_step): Turn into ...
3484 (linux_process_target::supports_hardware_single_step): ... this.
3485 * lynx-low.h (class lynx_process_target): Update.
3486 * lynx-low.cc (lynx_target_ops): Update.
3487 (lynx_process_target::supports_hardware_single_step): Define.
3488 * nto-low.h (class nto_process_target): Update.
3489 * nto-low.cc (nto_target_ops): Update.
3490 (nto_process_target::supports_hardware_single_step): Define.
3491 * win32-low.h (class win32_process_target): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3493 (win32_process_target::supports_hardware_single_step): Define.
3495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3498 ops into methods of process_target.
3500 * target.h (struct process_stratum_target): Remove the target ops.
3501 (class process_target): Add the target ops.
3502 (target_stopped_by_hw_breakpoint): Update the macro.
3503 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3504 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3505 (process_target::supports_stopped_by_hw_breakpoint): Define.
3507 Update the derived classes and callers below.
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_stopped_by_hw_breakpoint): Turn into ...
3511 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3512 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3513 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3514 * linux-low.h (class linux_process_target): Update.
3515 * lynx-low.cc (lynx_target_ops): Update.
3516 * nto-low.cc (nto_target_ops): Update.
3517 * win32-low.cc (win32_target_ops): Update.
3519 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3521 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3522 ops into methods of process_target.
3524 * target.h (struct process_stratum_target): Remove the target ops.
3525 (class process_target): Add the target ops.
3526 (target_stopped_by_sw_breakpoint): Update the macro.
3527 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3528 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3529 (process_target::supports_stopped_by_sw_breakpoint): Define.
3531 Update the derived classes and callers below.
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_stopped_by_sw_breakpoint): Turn into ...
3535 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3536 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3537 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3538 * linux-low.h (class linux_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 * nto-low.cc (nto_target_ops): Update.
3541 * win32-low.cc (win32_target_ops): Update.
3543 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545 Turn process_stratum_target's insert_point and remove_point ops
3546 into methods of process_target.
3548 * target.h (struct process_stratum_target): Remove the target ops.
3549 (class process_target): Add the target ops.
3550 * target.cc (process_target::insert_point): Define.
3551 (process_target::remove_point): Define.
3553 Update the derived classes and callers below.
3555 * mem-break.cc (set_raw_breakpoint_at): Update.
3556 (delete_raw_breakpoint): Update.
3557 (uninsert_raw_breakpoint): Update.
3558 (reinsert_raw_breakpoint): Update.
3559 * linux-low.cc (linux_target_ops): Update.
3560 (linux_insert_point): Turn into ...
3561 (linux_process_target::insert_point): ... this.
3562 (linux_remove_point): Turn into ...
3563 (linux_process_target::remove_point): ... this.
3564 * linux-low.h (class linux_process_target): Update.
3565 * lynx-low.cc (lynx_target_ops): Update.
3566 * nto-low.cc (nto_target_ops): Update.
3567 (nto_insert_point): Turn into ...
3568 (nto_process_target::insert_point): ... this.
3569 (nto_remove_point): Turn into ...
3570 (nto_process_target::remove_point): ... this.
3571 * nto-low.h (class nto_process_target): Update.
3572 * win32-low.cc (win32_target_ops): Update.
3573 (win32_insert_point): Turn into ...
3574 (win32_process_target::insert_point): ... this.
3575 (win32_remove_point): Turn into ...
3576 (win32_process_target::remove_point): ... this.
3577 * win32-low.h (class win32_process_target): Update.
3579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581 Turn process_stratum_target's supports_z_point_type op into a
3582 method of process_target.
3584 * target.h (struct process_stratum_target): Remove the target op.
3585 (class process_target): Add the target op.
3586 * target.cc (process_target::supports_z_point_type): Define.
3588 Update the derived classes and callers below.
3590 * mem-break.cc (z_type_supported): Update.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_supports_z_point_type): Turn into ...
3593 (linux_process_target::supports_z_point_type): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 (nto_supports_z_point_type): Turn into ...
3598 (nto_process_target::supports_z_point_type): ... this.
3599 * nto-low.h (class nto_process_target): Update.
3600 * win32-low.cc (win32_target_ops): Update.
3601 (win32_supports_z_point_type): Turn into ...
3602 (win32_process_target::supports_z_point_type): ... this.
3603 * win32-low.h (class win32_process_target): Update.
3605 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607 Turn process_stratum_target's read_auxv op into a method of
3610 * target.h (class process_stratum_target): Remove the target op.
3611 (struct process_target): Add the target op. Also add
3612 'supports_read_auxv'.
3613 * target.cc (process_target::read_auxv): Define.
3614 (process_target::supports_read_auxv): Define.
3616 Update the derived classes and callers below.
3618 * server.cc (handle_qxfer_auxv): Update.
3619 (handle_query): Update.
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_process_target::supports_read_auxv): Define.
3622 (linux_read_auxv): Turn into ...
3623 (linux_process_target::read_auxv): ... this.
3624 * linux-low.h (class linux_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_process_target::supports_read_auxv): Define.
3628 (nto_read_auxv): Turn into ...
3629 (nto_process_target::read_auxv): ... this.
3630 * nto-low.h (class nto_process_target): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3633 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3635 Turn process_stratum_target's request_interrupt op into a method of
3638 * target.h (struct process_stratum_target): Remove the target op.
3639 (class process_target): Add the target op.
3641 Update the derived classes and callers below.
3643 * remote-utils.cc (putpkt_binary_1): Update.
3644 (input_interrupt): Update.
3646 * server.cc (handle_v_requests): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_request_interrupt): Turn into ...
3649 (linux_process_target::request_interrupt): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 (lynx_request_interrupt): Turn into ...
3653 (lynx_process_target::request_interrupt): ... this.
3654 * lynx-low.h (class lynx_process_target): Update.
3655 * nto-low.cc (nto_target_ops): Update.
3656 (nto_request_interrupt): Turn into ...
3657 (nto_process_target::request_interrupt): ... this.
3658 * nto-low.h (class nto_process_target): Update.
3659 * win32-low.cc (win32_target_ops): Update.
3660 (win32_request_interrupt): Turn into ...
3661 (win32_process_target::request_interrupt): ... this.
3662 * win32-low.h (class win32_process_target): Update.
3664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666 Turn process_stratum_target's look_up_symbols op into a method of
3669 * target.h (struct process_stratum_target): Remove the target op.
3670 (class process_target): Add the target op.
3671 * target.cc (process_target::look_up_symbols): Define.
3673 Update the derived classes and callers below.
3675 * server.cc (handle_query): Update.
3676 * linux-low.cc (linux_target_ops): Update.
3677 (linux_look_up_symbols): Turn into ...
3678 (linux_process_target::look_up_symbols): ... this.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 * nto-low.cc (nto_target_ops): Update.
3682 * win32-low.cc (win32_target_ops): Update.
3684 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3686 Turn process_stratum_target's read_memory and write_memory
3687 ops into methods of process_target.
3689 * target.h (struct process_stratum_target): Remove the target ops.
3690 (class process_target): Add the target ops.
3692 Update the derived classes and callers below.
3694 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3695 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3696 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3697 (arm_get_syscall_trapinfo): Update.
3698 * linux-cris-low.cc (cris_breakpoint_at): Update.
3699 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3700 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3701 * linux-mips-low.cc (mips_breakpoint_at): Update.
3702 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3703 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3704 * linux-sh-low.cc (sh_breakpoint_at): Update.
3705 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3706 (sparc_store_gregset_from_stack): Update.
3707 (sparc_breakpoint_at): Update.
3708 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3709 * linux-tile-low.cc (tile_breakpoint_at): Update.
3710 * linux-x86-low.cc (x86_breakpoint_at): Update.
3711 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3712 * mem-brea.cc (insert_memory_breakpoint): Update.
3713 (validate_inserted_breakpoint): Update.
3714 * target.cc (read_inferior_memory): Update.
3715 (target_write_memory): Update.
3716 * linux-low.cc (linux_target_ops): Update.
3717 (linux_read_memory): Make a wrapper around the read_memory target
3719 (linux_process_target::read_memory): Rename from linux_read_memory.
3720 (linux_write_memory): Turn into ...
3721 (linux_process_target::write_memory): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 (lynx_read_memory): Turn into ...
3725 (lynx_process_target::read_memory): ... this.
3726 (lynx_write_memory): Turn into ...
3727 (lynx_process_target::write_memory): ... this.
3728 * lynx-low.h (class lynx_process_target): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 (nto_read_memory): Turn into ...
3731 (nto_process_target::read_memory): ... this.
3732 (nto_write_memory): Turn into ...
3733 (nto_process_target::write_memory): ... this.
3734 * nto-low.h (class nto_process_target): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3736 (win32_read_inferior_memory): Turn into ...
3737 (win32_process_target::read_memory): ... this.
3738 (win32_write_inferior_memory): Turn into ...
3739 (win32_process_target::write_memory): ... this.
3740 * win32-low.h (class win32_process_target): Update.
3742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3744 Turn process_stratum_target's prepare_to_access_memory and
3745 done_accessing_memory ops into methods of process_target.
3747 * target.h (struct process_stratum_target): Remove the target ops.
3748 (class process_target): Add the target ops.
3749 * target.cc (process_target::prepare_to_access_memory): Define.
3750 (process_target::done_accessing_memory): Define.
3751 (prepare_to_access_memory): Update.
3752 (done_accessing_memory): Update.
3754 Update the derived classes and callers below.
3756 * linux-low.cc (linux_target_ops): Update.
3757 (linux_prepare_to_access_memory): Turn into ...
3758 (linux_process_target::prepare_to_access_memory): ... this.
3759 (linux_done_accessing_memory): Turn into ...
3760 (linux_process_target::done_accessing_memory): ... this.
3761 * linux-low.h (class linux_process_target): Update.
3762 * lynx-low.cc (lynx_target_ops): Update.
3763 * nto-low.cc (nto_target_ops): Update.
3764 * win32-low.cc (win32_target_ops): Update.
3766 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3768 Turn process_stratum_target's fetch_registers and store_registers
3769 ops into methods of process_target.
3771 * target.h (struct process_stratum_target): Remove the target ops.
3772 (class process_target): Add the target ops.
3773 (fetch_inferior_registers): Update the macro.
3774 (store_inferior_registers): Update the macro.
3776 Update the derived classes and callers below.
3778 * linux-low.cc (linux_target_ops): Update.
3779 (linux_fetch_registers): Turn into ...
3780 (linux_process_target::fetch_registers): ... this.
3781 (linux_store_registers): Turn into ...
3782 (linux_process_target::store_registers): ... this.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 (lynx_fetch_registers): Turn into ...
3786 (lynx_process_target::fetch_registers): ... this.
3787 (lynx_store_registers): Turn into ...
3788 (lynx_process_target::store_registers): ... this.
3789 * lynx-low.h (class lynx_process_target): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 (nto_fetch_registers): Turn into ...
3792 (nto_process_target::fetch_registers): ... this.
3793 (nto_store_registers): Turn into ...
3794 (nto_process_target::store_registers): ... this.
3795 * nto-low.h (class nto_process_target): Update.
3796 * win32-low.cc (win32_target_ops): Update.
3797 (win32_fetch_inferior_registers): Turn into ...
3798 (win32_process_target::fetch_registers): ... this.
3799 (win32_store_inferior_registers): Turn into ...
3800 (win32_process_target::store_registers): ... this.
3801 * win32-low.h (class win32_process_target): Update.
3803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3805 Turn process_stratum_target's wait op into a method of
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3811 Update the derived classes and callers below.
3813 * target.cc (target_wait): Update.
3814 * linux-low.cc (linux_target_ops): Update.
3815 (linux_wait): Turn into ...
3816 (linux_process_target::wait): ... this.
3817 * linux-low.h (class linux_process_target): Update.
3818 * lynx-low.cc (lynx_target_ops): Update.
3819 (lynx_wait): Turn into ...
3820 (lynx_process_target::wait): ... this.
3821 * lynx-low.h (class lynx_process_target): Update.
3822 * nto-low.cc (nto_target_ops): Update.
3823 (nto_wait): Turn into ...
3824 (nto_process_target::wait): ... this.
3825 * nto-low.h (class nto_process_target): Update.
3826 * win32-low.cc (win32_target_ops): Update.
3827 (win32_wait): Turn into ...
3828 (win32_process_target::wait): ... this.
3829 (do_initial_child_stuff): Update.
3830 * win32-low.h (class win32_process_target): Update.
3832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3834 Turn process_stratum_target's resume op into a method of
3837 * target.h (struct process_stratum_target): Remove the target op.
3838 (class process_target): Add the target op.
3840 Update the derived classes and callers below.
3842 * server.cc (resume): Update.
3843 * target.cc (target_stop_and_wait): Update.
3844 (target_continue_no_signal): Update.
3845 (target_continue): Update.
3846 * linux-low.cc (linux_target_ops): Update.
3847 (linux_resume): Turn into ...
3848 (linux_process_target::resume): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 (lynx_resume): Turn into ...
3852 (lynx_process_target::resume): ... this.
3853 * lynx-low.h (class lynx_process_target): Update.
3854 * nto-low.cc (nto_target_ops): Update.
3855 (nto_resume): Turn into ...
3856 (nto_process_target::resume): ... this.
3857 * nto-low.h (class nto_process_target): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859 (win32_resume): Turn into ...
3860 (win32_process_target::resume): ... this.
3861 (win32_process_target::detach): Update.
3862 (do_initial_child_stuff): Update.
3863 * win32-low.h (class win32_process_target): Update.
3865 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3867 Turn process_stratum_target's thread_alive op into a method of
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op.
3872 (mythread_alive): Update the macro.
3874 Update the derived classes and callers below.
3876 * linux-low.cc (linux_target_ops): Update.
3877 (linux_thread_alive): Turn into ...
3878 (linux_process_target::thread_alive): ... this.
3879 (wait_for_sigstop): Update.
3880 * linux-low.h (class linux_process_target): Update.
3881 * lynx-low.cc (lynx_target_ops): Update.
3882 (lynx_thread_alive): Turn into ...
3883 (lynx_process_target::thread_alive): ... this.
3884 * lynx-low.h (class lynx_process_target): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 (nto_thread_alive): Turn into ...
3887 (nto_process_target::thread_alive): ... this.
3888 * nto-low.h (class nto_process_target): Update.
3889 * win32-low.cc (win32_target_ops): Update.
3890 (win32_thread_alive): Turn into ...
3891 (win32_process_target::thread_alive): ... this.
3892 * win32-low.h (class win32_process_target): Update.
3894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3896 Turn process_stratum_target's join op into a method of
3899 * target.h (struct process_stratum_target): Remove the target op.
3900 (class process_target): Add the target op.
3901 (join_inferior): Update the macro.
3903 Update the derived classes and callers below.
3905 * linux-low.cc (linux_target_ops): Update.
3906 (linux_join): Turn into ...
3907 (linux_process_target::join): ... this.
3908 * linux-low.h (class linux_process_target): Update.
3909 * lynx-low.cc (lynx_target_ops): Update.
3910 (lynx_join): Turn into ...
3911 (lynx_process_target::join): ... this.
3912 * lynx-low.h (class lynx_process_target): Update.
3913 * nto-low.cc (nto_target_ops): Update.
3914 (nto_process_target::join): Define.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_join): Turn into ...
3918 (win32_process_target::join): ... this.
3919 * win32-low.h (class win32_process_target): Update.
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 Turn process_stratum_target's mourn op into a method of
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3929 Update the derived classes and callers below.
3931 * target.cc (target_mourn_inferior): Update.
3932 * linux-low.cc (linux_target_ops): Update.
3933 (linux_mourn): Turn into ...
3934 (linux_process_target::mourn): ... this.
3935 (handle_extended_wait): Update.
3936 (linux_process_target::kill): Update.
3937 (linux_process_target::detach): Update.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 (lynx_mourn): Turn into ...
3941 (lynx_process_target::mourn): ... this.
3942 * lynx-low.h (class lynx_process_target): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 (nto_mourn): Turn into ...
3945 (nto_process_target::mourn): ... this.
3946 * nto-low.h (class nto_process_target): Update.
3947 * win32-low.cc (win32_target_ops): Update.
3948 (win32_mourn): Turn into ...
3949 (win32_process_target::mourn): ... this.
3950 * win32-low.h (class win32_process_target): Update.
3952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3954 Turn process_stratum_target's detach op into a method of
3957 * target.h (struct process_stratum_target): Remove the target op.
3958 (class process_target): Add the target op.
3959 (detach_inferior): Update the macro.
3961 Update the derived classes and callers below.
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_detach): Turn into ...
3965 (linux_process_target::detach): ... this.
3966 * linux-low.h (class linux_process_target): Update.
3967 * lynx-low.cc (lynx_target_ops): Update.
3968 (lynx_detach): Turn into ...
3969 (lynx_process_target::detach): ... this.
3970 * lynx-low.h (class lynx_process_target): Update.
3971 * nto-low.cc (nto_target_ops): Update.
3972 (nto_detach): Turn into ...
3973 (nto_process_target::detach): ... this.
3974 * nto-low.h (class nto_process_target): Update.
3975 * win32-low.cc (win32_target_ops): Update.
3976 (win32_detach): Turn into ...
3977 (win32_process_target::detach): ... this.
3978 * win32-low.h (class win32_process_target): Update.
3980 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3982 Turn process_stratum_target's kill op into a method of
3985 * target.h (struct process_stratum_target): Remove the target op.
3986 (class process_target): Add the target op.
3988 Update the derived classes and callers below.
3990 * target.cc (kill_inferior): Update.
3991 * linux-low.cc (linux_target_ops): Update.
3992 (linux_kill): Turn into ...
3993 (linux_process_target::kill): ... this.
3994 * linux-low.h (class linux_process_target): Update.
3995 * lynx-low.cc (lynx_target_ops): Update.
3996 (lynx_kill): Turn into ...
3997 (lynx_process_target::kill): ... this.
3998 * lynx-low.h (class lynx_process_target): Update.
3999 * nto-low.cc (nto_target_ops): Update.
4000 (nto_kill): Turn into ...
4001 (nto_process_target::kill): ... this.
4002 * nto-low.h (class nto_process_target): Update.
4003 * win32-low.cc (win32_target_ops): Update.
4004 (win32_kill): Turn into ...
4005 (win32_process_target::kill): ... this.
4006 * win32-low.h (class win32_process_target): Update.
4008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4010 Turn process_stratum_target's attach op into a method of
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op.
4015 (myattach): Update the macro.
4017 Update the derived classes and callers below.
4019 * linux-low.cc (linux_target_ops): Update.
4020 (linux_attach): Turn into ...
4021 (linux_process_target::attach): ... this.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 (lynx_attach): Turn into ...
4025 (lynx_process_target::attach): ... this.
4026 * lynx-low.h (class lynx_process_target): Update.
4027 * nto-low.cc (nto_target_ops): Update.
4028 (nto_attach): Turn into ...
4029 (nto_process_target::attach): ... this.
4030 * nto-low.h (class nto_process_target): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4032 (win32_attach): Turn into ...
4033 (win32_process_target::attach): ... this.
4034 * win32-low.h (class win32_process_target): Update.
4036 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038 Turn process_stratum_target's post_create_inferior op into a method
4041 * target.h (struct process_stratum_target): Remove the target op.
4042 (class process_target): Add the target op.
4043 (target_post_create_inferior): Update the macro.
4044 * target.cc (process_target::post_create_inferior): Define.
4046 Update the derived classes and callers below.
4048 * linux-low.cc (linux_target_ops): Update.
4049 (linux_post_create_inferior): Turn into ...
4050 (linux_process_target::post_create_inferior): ... this.
4051 * linux-low.h (class linux_process_target): Update.
4052 * lynx-low.cc (lynx_target_ops): Update.
4053 * nto-low.cc (nto_target_ops): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4056 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4058 Turn process_stratum_target's create_inferior op into a method of
4061 * target.h (struct process_stratum_target): Remove the target op.
4062 (class process_target): Add the target op.
4063 (create_inferior): Rename the macro to ...
4064 (target_create_inferior): ... this.
4066 Update the derived classes and callers below.
4068 * server.cc (handle_v_run): Update.
4069 (captured_main): Update.
4070 (process_serial_event): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_create_inferior): Turn into ...
4073 (linux_process_target::create_inferior): ... this.
4074 * linux-low.h (class linux_process_target): Update.
4075 * lynx-low.cc (lynx_target_ops): Update.
4076 (lynx_create_inferior): Turn into ...
4077 (lynx_process_target::create_inferior): ... this.
4078 * lynx-low.h (class lynx_process_target): Update.
4079 * nto-low.cc (nto_target_ops): Update.
4080 (nto_create_inferior): Turn into ...
4081 (nto_process_target::create_inferior): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_create_inferior): Turn into ...
4085 (win32_process_target::create_inferior): ... this.
4086 * win32-low.h (class win32_process_target): Update.
4088 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090 * target.h (class process_target): New class definition.
4091 (struct process_stratum_target) <pt>: New field with type
4093 * linux-low.h (class linux_process_target): Define as a derived
4094 class of 'process_target'.
4095 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4097 * lynx-low.h (class lynx_process_target): Define as a derived
4098 class of 'process_target'.
4099 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4101 * nto-low.h (class nto_process_target): Define as a derived
4102 class of 'process_target'.
4103 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4105 * win32-low.h (class win32_process_target): Define as a derived
4106 class of 'process_target'.
4107 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4110 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4112 * configure: Regenerate.
4114 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4115 Andrew Burgess <andrew.burgess@embecosm.com>
4117 * linux-riscv-low.cc: New file.
4118 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4119 and nat/riscv-linux-tdesc.c.
4120 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4121 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4124 2020-02-14 Tom Tromey <tom@tromey.com>
4126 * acinclude.m4: Don't include acx_configure_dir.m4.
4127 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4128 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4129 (all, install-only, uninstall, clean-info, clean)
4130 (maintainer-clean): Don't recurse.
4131 (subdir_do, all-lib): Remove.
4132 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4134 (generated_files): Update.
4135 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4136 * configure: Rebuild.
4137 * configure.ac: Don't configure gnulib or libiberty.
4140 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4142 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4143 preparing the command line for CreateProcess.
4144 (win32_create_inferior): Reflect the program name in debugging
4145 output that shows the process and its command line.
4147 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4149 * Makefile.in: Rename source files from .c to .cc.
4150 * %.c: Rename to %.cc.
4151 * configure.ac: Rename server.c to server.cc.
4152 * configure: Re-generate.
4154 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4156 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4158 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4160 * win32-low.c (win32_create_inferior): Set signal_pid.
4162 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4163 Pedro Alves <palves@redhat.com>
4165 Skip building gdbserver in a cross-configuration.
4166 * configure.srv: Set $gdbserver_host depending on whether $target
4167 is $host. Use $gdbserver_host instead of $host.
4169 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4171 * configure: Re-generate.
4173 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4175 * configure: Re-generate.
4177 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4179 * acinclude.m4: Update warning.m4 path.
4181 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4183 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4184 (handle_exception): Set siginfo_er.
4185 (win32_xfer_siginfo): New function.
4187 2020-02-07 Tom Tromey <tom@tromey.com>
4188 Pedro Alves <palves@redhat.com>
4190 * README: Update build documentation.
4191 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4193 * configure.ac: Update paths.
4194 * configure: Rebuild.
4195 * acinclude.m4: Update paths.
4196 * Makefile.in: Update include paths.
4197 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4198 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4199 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4200 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4201 (%-generated.c): Update paths.
4202 * Move entire directory from ../gdb/gdbserver.
4204 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4206 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4208 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4210 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4211 assignment instead of srv_linux_obj.
4213 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4215 * server.c (handle_qxfer_libraries): Write segment-address with
4218 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4220 * Makefile.in (install-strip): New target.
4221 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4222 * aclocal.m4: Regenerate.
4223 * configure: Regenerate.
4224 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4226 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4228 * Makefile.in (SFILES): Adjust paths to point to real files.
4229 (OBS): Move waitstatus.o to target/waitstatus.o.
4230 (TAGS): Transform paths appropriately.
4232 (nat/%.o): ... this pattern rule.
4234 (target/%.o): ... this pattern rule.
4235 * configure.srv: Adjust paths throughout to include nat/ prefix
4236 with the revant files.
4237 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4238 * configure: Regenerate.
4240 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4242 * Makefile.in (TAGS): Remove config files from the recipe.
4244 2020-01-14 Tom Tromey <tom@tromey.com>
4246 * configure: Rebuild.
4247 * configure.ac: Remove any checks that were added to common.m4.
4248 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4251 2020-01-14 Tom Tromey <tom@tromey.com>
4253 * server.h: Include config.h.
4254 * gdbreplay.c: Include config.h.
4255 * configure: Rebuild.
4256 * configure.ac: Don't source common.host.
4257 * acinclude.m4: Update path.
4258 * Makefile.in (INCSUPPORT): New variable.
4259 (INCLUDE_CFLAGS): Add INCSUPPORT.
4260 (SFILES): Update paths.
4261 (version-generated.c): Update path to create-version.sh.
4262 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4264 2020-01-14 Tom Tromey <tom@tromey.com>
4266 * configure.ac (LIBS): Use WIN32APILIBS.
4267 (USE_WIN32API): Don't define.
4268 * configure: Rebuild.
4270 2020-01-14 Tom Tromey <tom@tromey.com>
4272 * configure: Rebuild.
4274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4276 * Makefile.in (%-generated.c): Remove rule for files from
4279 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4281 * configure: Re-generate.
4283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4285 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4287 * tracepoint.c (stop_tracing, flush_trace_buffer,
4288 about_to_request_buffer_space, get_trace_state_variable_value,
4289 set_trace_state_variable_value, gdb_collect): Add declaration.
4291 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4293 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4294 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4295 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4296 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4297 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4300 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4302 * inferiors.c: Include gdbsupport/common-inferior.h.
4304 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4306 * hostio-errno.c: Include hostio.h.
4308 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4310 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4313 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4315 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4316 * linux-arm-tdesc.h: Include arch/arm.h.
4318 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4320 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4322 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4324 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4325 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4327 2020-01-10 Pedro Alves <palves@redhat.com>
4329 * fork-child.c (post_fork_inferior): Pass target down to
4331 * inferiors.c (switch_to_thread): Add process_stratum_target
4333 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4334 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4335 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4336 * remote-utils.c (prepare_resume_reply): Pass the target to
4338 * target.c (the_target): Now a process_stratum_target.
4339 (done_accessing_memory): Pass the target to switch_to_thread.
4340 (set_target_ops): Ajust to use process_stratum_target.
4341 * target.h (struct target_ops): Rename to ...
4342 (struct process_stratum_target): ... this.
4343 (the_target, set_target_ops): Adjust.
4344 (prepare_to_access_memory): Adjust comment.
4345 * win32-low.c (child_xfer_memory): Adjust to use
4346 process_stratum_target.
4347 (win32_target_ops): Now a process_stratum_target.
4349 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4350 Pedro Alves <palves@redhat.com>
4352 * win32-low.c (get_child_debug_event): Extract the fatal exception
4353 from the exit status and convert to the equivalent Posix signal
4355 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4356 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4358 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4360 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4362 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4364 * server.c (gdbserver_version): Change copyright year to 2020.
4365 * gdbreplay.c (gdbreplay_version): Likewise.
4367 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4369 * configure: Regenerate.
4370 * configure.ac: Quote variable arguments of test.
4372 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4374 * Makefile.in: Fix build with GNU Make 3.81
4376 2019-12-16 Tom Tromey <tromey@adacore.com>
4378 * server.c (get_exec_file): Constify result.
4380 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4382 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4383 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4384 * config.in: Regenerate.
4385 * configure: Regenerate.
4386 * configure.ac: Don't check for strerror.
4387 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4388 Call safe_strerror instead of strerror.
4389 * server.h (strerror): Remove this now-unnecessary declaration.
4390 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4392 (gdb_agent_helper_thread): Likewise.
4393 * utils.c (perror_with_name): Likewise.
4395 2019-11-26 Tom Tromey <tom@tromey.com>
4397 * configure, config.in: Rebuild.
4399 2019-11-26 Tom Tromey <tom@tromey.com>
4401 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4402 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4404 * configure, config.in: Rebuild.
4406 2019-11-26 Tom Tromey <tom@tromey.com>
4408 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4409 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4410 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4411 * acinclude.m4: Include ax_pthread.m4.
4412 * config.in, configure: Rebuild.
4414 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4416 * debug.c (debug_set_output): Call safe_strerror instead of
4418 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4419 (linux_kill_one_lwp): Likewise.
4420 (linux_detach_one_lwp): Likewise.
4421 (linux_wait_for_event_filtered): Likewise.
4422 (store_register): Likewise.
4423 * lynx-low.c (lynx_attach): Likewise.
4424 * mem-break.c (insert_memory_breakpoint): Likewise.
4425 (remove_memory_breakpoint): Likewise.
4426 (delete_fast_tracepoint_jump): Likewise.
4427 (set_fast_tracepoint_jump): Likewise.
4428 (uninsert_fast_tracepoint_jumps_at): Likewise.
4429 (reinsert_fast_tracepoint_jumps_at): Likewise.
4430 * nto-low.c (nto_xfer_memory): Likewise.
4431 (nto_resume): Likewise.
4433 2019-11-20 Luis Machado <luis.machado@linaro.org>
4435 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4436 instead of register count.
4437 * tdesc.c (tdesc_contains_feature): New function.
4438 * tdesc.h (tdesc_contains_feature): New prototype.
4440 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4442 * Makefile.in: Add safe-strerror.c.
4443 * configure: Regenerate.
4444 * configure.ac: Don't source common.host.
4446 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4448 * config.in: Regenerate.
4449 * configure: Regenerate.
4451 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4453 * ax.c (ax_printf): Handle size_t_arg.
4455 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4457 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4458 * mi/mi-main.c (output_cores): Likewise.
4459 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4460 (linux_xfer_osdata_modules): Likewise.
4461 * remote.c (register_remote_support_xml): Likewise.
4462 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4463 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4465 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4467 * configure: Regenerate.
4468 * configure.ac: Remove check for strerror_r.
4470 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4472 * config.in: Regenerate.
4473 * configure: Regenerate.
4474 * configure.ac: Also check for strerror_r.
4476 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4478 * ax.h (debug_agent): Remove duplicate declaration.
4480 2019-10-26 Tom de Vries <tdevries@suse.de>
4482 * linux-aarch64-low.c: Fix typos in comments.
4483 * linux-arm-low.c: Same.
4484 * linux-low.c: Same.
4485 * linux-ppc-low.c: Same.
4486 * proc-service.c: Same.
4489 * tracepoint.c: Same.
4490 * win32-low.c: Same.
4492 2019-10-25 Tom Tromey <tromey@adacore.com>
4494 * utils.c (xstrdup): Remove.
4496 2019-10-23 Tom Tromey <tom@tromey.com>
4498 * configure, config.in: Rebuild.
4500 2019-10-23 Tom Tromey <tom@tromey.com>
4502 * configure: Rebuild.
4503 * acinclude.m4: Use m4_include, not sinclude.
4505 2019-10-17 Tom Tromey <tromey@adacore.com>
4507 * configure: Rebuild.
4508 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4509 in AC_CONFIG_FILES invocation.
4510 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4513 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4515 * server.c: Include xml-builtin.h.
4516 (get_xml_features): Don't declare xml_builtins here.
4518 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4520 * Makefile.in: Remove references to vec-ipa.o.
4522 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4524 * Makefile.in: Remove references to vec.c.
4526 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4528 * server.c (server_waiting): Change to bool.
4529 (extended_protocol): Likewise.
4530 (response_needed): Likewise.
4531 (exit_requested): Likewise.
4532 (run_once): Likewise.
4533 (report_no_resumed): Likewise.
4534 (non_stop): Likewise.
4535 (disable_packet_vCont): Likewise.
4536 (disable_packet_Tthread): Likewise.
4537 (disable_packet_qC): Likewise.
4538 (disable_packet_qfThreadInfo): Likewise.
4539 (handle_general_set): Update.
4540 (handle_detach): Update.
4541 (handle_monitor_command): Update.
4542 (handle_query): Update.
4543 (captured_main): Update.
4544 (process_serial_event): Update.
4545 * server.h (server_waiting): Change to bool.
4546 (disable_packet_vCont): Likewise.
4547 (disable_packet_Tthread): Likewise.
4548 (disable_packet_qC): Likewise.
4549 (disable_packet_qfThreadInfo): Likewise.
4550 (run_once): Likewise.
4551 (non_stop): Likewise.
4552 * target.c (target_stop_and_wait): Update.
4554 2019-10-02 Tom Tromey <tromey@adacore.com>
4556 * Makefile.in (SFILES): Add common-inferior.c.
4557 (OBS): Add common-inferior.o.
4558 * server.c (startup_with_shell): Don't define.
4560 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4562 * linux-low.c (linux_low_read_btrace): Update for change to
4565 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4567 * debug.c (debug_threads): Remove comment in favor of the header.
4568 * debug.h (using_threads): Add declaration.
4569 (debug_threads): Add comment.
4570 * linux-aarch64-low.c: Include debug.h and remove declaration of
4572 * nto-low.c: Likewise.
4573 * remote-utils.c: Likewise.
4574 * thread-db.c: Likewise.
4576 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4578 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4579 and powerpc-cell64l-ipa.o.
4580 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4581 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4582 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4585 * spu-low.c: Remove file.
4587 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4588 (parse_spufs_run): Remove.
4589 (ppc_get_pc): Remove Cell/B.E. support.
4590 (ppc_set_pc): Likewise.
4591 (ppc_breakpoint_at): Likewise.
4592 (ppc_arch_setup): Likewise.
4593 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4594 tdesc_powerpc_cell32l.
4595 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4596 or init_registers_powerpc_cell32l.
4597 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4598 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4599 or init_registers_powerpc_cell32l.
4600 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4601 (init_registers_powerpc_cell32l): Remove prototype.
4602 (init_registers_powerpc_cell64l): Likewise.
4604 * target.h (struct target_ops): Remove qxfer_spu member.
4605 * server.c (handle_qxfer_spu): Remove.
4606 (qxfer_packets): Remove entry for "spu".
4607 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4608 * linux-low.c (SPUFS_MAGIC): Remove.
4609 (spu_enumerate_spu_ids): Remove.
4610 (linux_qxfer_spu): Remove.
4611 (linux_target_ops): Remove qxfer_spu member.
4612 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4613 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4614 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4616 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4618 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4619 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4620 * config.in: Regenerate.
4621 * configure: Regenerate.
4623 2019-08-15 Tom Tromey <tromey@adacore.com>
4625 * target.c (target_write_memory): Use gdb::byte_vector.
4627 2019-08-15 Tom Tromey <tromey@adacore.com>
4629 * tracepoint.c (write_inferior_data_pointer)
4630 (write_inferior_integer, write_inferior_int8)
4631 (write_inferior_uinteger, m_tracepoint_action_download)
4632 (r_tracepoint_action_download, x_tracepoint_action_download)
4633 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4634 (download_agent_expr, download_tracepoint_1)
4635 (download_trace_state_variables, upload_fast_traceframes): Update.
4636 * server.c (gdb_write_memory): Update.
4637 * remote-utils.c (relocate_instruction): Update.
4638 * proc-service.c (ps_pdwrite): Update.
4639 * mem-break.c (remove_memory_breakpoint)
4640 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4641 (uninsert_fast_tracepoint_jumps_at)
4642 (reinsert_fast_tracepoint_jumps_at): Update.
4643 * linux-x86-low.c (append_insns)
4644 (i386_install_fast_tracepoint_jump_pad)
4645 (amd64_write_goto_address, i386_write_goto_address): Update.
4646 * linux-s390-low.c (append_insns, s390_write_goto_address):
4648 * linux-ppc-low.c (ppc_relocate_instruction)
4649 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4650 (ppc_write_goto_address): Update.
4651 * linux-aarch64-low.c (append_insns): Update.
4652 * target.h (struct target_ops): Update.
4653 (write_inferior_memory): Don't declare.
4654 * target.c (target_write_memory): Rename from
4655 write_inferior_memory. Remove old target_write_memory.
4657 2019-08-15 Tom Tromey <tromey@adacore.com>
4659 * target.c (write_inferior_memory): Use std::vector.
4661 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4664 * configure.ac: Drop enable-libmcheck support.
4665 * configure, config.in: Rebuild.
4666 * acinclude.m4: Don't include it.
4668 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4670 * configure.srv: Remove Arm xml files.
4672 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4674 * configure.srv: Add new files. Remove xml generated files.
4675 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4677 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4678 * linux-aarch32-tdesc.c: New file.
4679 * linux-aarch32-tdesc.h: New file.
4680 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4681 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4682 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4683 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4684 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4685 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4686 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4687 (arm_read_description): Call arm_linux_read_description.
4688 (initialize_low_arch): Don't init registers.
4689 * linux-arm-tdesc.c: New file.
4690 * linux-arm-tdesc.h: New file.
4692 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4694 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4695 Move counter inside for.
4696 (arm_read_description): Check ptrace earlier.
4697 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4699 2019-07-09 Tom Tromey <tom@tromey.com>
4701 * configure: Rebuild.
4702 * configure.ac: Change common to gdbsupport.
4703 * acinclude.m4: Change common to gdbsupport.
4704 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4705 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4706 common to gdbsupport.
4707 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4708 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4709 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4710 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4711 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4712 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4713 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4714 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4715 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4716 common to gdbsupport.
4718 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4720 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4722 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4724 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4726 * configure.srv: Remove legacy xml.
4727 * linux-aarch64-low.c (initialize_low_arch): Remove
4728 initialize_low_tdesc call.
4729 * linux-aarch64-tdesc-selftest.c: Remove file.
4730 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4731 * linux-x86-low.c (initialize_low_arch): Remove
4732 initialize_low_tdesc call.
4733 * linux-x86-tdesc-selftest.c: Remove file.
4734 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4736 2019-06-20 Tom de Vries <tdevries@suse.de>
4738 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4739 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4741 2019-06-19 Tom de Vries <tdevries@suse.de>
4743 * debug.h (debug_write): Change return type to ssize_t.
4744 * debug.c (debug_write): Same.
4746 2019-06-14 Tom Tromey <tom@tromey.com>
4748 * configure.ac: Use new path to gnulib.
4749 * configure: Rebuild.
4750 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4753 2019-06-11 Tom Tromey <tom@tromey.com>
4755 * Makefile.in (SFILES): Add alloc.c.
4757 (IPA_OBJS): Add alloc-ipa.o.
4758 (alloc-ipa.o): New target.
4759 (%.o: ../%.c): New pattern rule.
4761 2019-06-10 Tom Tromey <tromey@adacore.com>
4763 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4764 end warning with a newline.
4765 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4767 * thread-db.c (attach_thread): Don't end warning with a newline.
4768 (thread_db_notice_clone): Likewise.
4769 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4771 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4772 end warning with a newline.
4774 2019-06-04 Pedro Alves <palves@redhat.com>
4776 * server.c (captured_main): Use make_unique_xstrdup.
4778 2019-06-02 Tom Tromey <tom@tromey.com>
4780 * gdbreplay.c (fromhex): Remove.
4781 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4783 2019-05-29 Tom Tromey <tromey@adacore.com>
4785 * configure: Rebuild.
4787 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4789 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4790 sign extension code on 32-bit builds.
4792 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4795 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4797 2019-04-19 Tom Tromey <tom@tromey.com>
4799 * server.c (struct vstop_notif): Derive from notif_event.
4801 (queue_stop_reply): Update.
4802 (remove_all_on_match_ptid): Change type. Rewrite.
4803 (discard_queued_stop_replies): Rewrite.
4804 (in_queued_stop_replies_ptid): Change type.
4805 (in_queued_stop_replies): Rewrite.
4806 (notif_stop): Update.
4807 (queue_stop_reply_callback): Update.
4808 (captured_main): Don't call initialize_notif.
4809 (push_stop_notification): Update.
4810 * notif.c (notif_write_event, handle_notif_ack)
4811 (notif_event_enque, notif_push): Update.
4812 (notif_event_xfree, initialize_notif): Remove.
4813 * notif.h (struct notif_event): Include <list>, not
4815 (struct notif_server) <queue>: Now a std::list.
4816 (notif_event_p): Remove typedef.
4817 (initialize_notif): Don't declare.
4818 (struct notif_event): Add virtual destructor.
4820 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4822 * ax.c (ax_vdebug): Call debug_printf.
4823 * debug.c (debug_write): New function.
4824 * debug.h (debug_write): New declaration.
4825 * linux-low.c (sigchld_handler): Call debug_write.
4827 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4829 * debug.c (debug_set_output): New function.
4830 (debug_vprintf): Send output to debug_file.
4831 (debug_flush): Likewise.
4832 * debug.h (debug_set_output): New declaration.
4833 * server.c (handle_monitor_command): Add debug-file option.
4834 (captured_main): Likewise.
4836 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4838 * debug.c (remote_debug): Add definition.
4839 * debug.h (remote_debug): Add declaration.
4840 * hostio.c (remote_debug): Remove declaration.
4841 * remote-utils.c (struct ui_file): Likewise.
4842 (remote_debug): Likewise.
4843 * remote-utils.h (remote_debug): Likewise,
4844 * server.c (remote_debug): Remove definition.
4846 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4848 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4849 when using a 64-bit gdbserver.
4851 2019-04-09 Tom Tromey <tromey@adacore.com>
4853 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4855 2019-04-08 Tom Tromey <tom@tromey.com>
4857 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4859 (linux_resume_one_lwp): Likewise.
4861 2019-04-08 Tom Tromey <tom@tromey.com>
4863 * gdbreplay.c: Update.
4864 * linux-low.c: Update.
4867 2019-04-08 Tom Tromey <tom@tromey.com>
4869 * server.c: Use C++ exception handling.
4870 * linux-low.c: Use C++ exception handling.
4871 * gdbreplay.c: Use C++ exception handling.
4873 2019-04-08 Tom Tromey <tom@tromey.com>
4875 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4876 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4877 (captured_main, main): Update.
4878 * gdbreplay.c (main): Update.
4880 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4882 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4883 value in argument pointer, return 1 if the entry is found and 0
4884 otherwise. Move comment.
4885 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4886 * linux-low.h (linux_get_auxv): Declare.
4887 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4889 2019-04-05 Tom Tromey <tromey@adacore.com>
4891 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4894 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4896 * linux-low.c (AT_HWCAP2): Add define if not already included.
4898 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4900 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4901 (aarch64_arch_setup): Call linux_get_hwcap.
4902 * linux-arm-low.c (arm_get_hwcap): Remove function.
4903 (arm_read_description): Call linux_get_hwcap.
4904 * linux-low.c (linux_get_auxv): New function.
4905 (linux_get_hwcap): Likewise.
4906 (linux_get_hwcap2): Likewise.
4907 * linux-low.h (linux_get_hwcap): New declaration.
4908 (linux_get_hwcap2): Likewise.
4909 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4910 (ppc_arch_setup): Call linux_get_hwcap.
4911 * linux-s390-low.c (s390_get_hwcap): Remove function.
4912 (s390_arch_setup): Call linux_get_hwcap.
4914 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4915 Jiong Wang <jiong.wang@arm.com>
4917 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4918 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4920 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4922 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4923 Jiong Wang <jiong.wang@arm.com>
4925 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4926 (aarch64_get_hwcap): New function.
4927 (aarch64_arch_setup): Read APIA hwcap.
4929 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4930 Jiong Wang <jiong.wang@arm.com>
4932 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4933 (initialize_low_tracepoint): Likewise.
4934 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4935 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4936 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4937 (aarch64_linux_read_description): Likewise.
4938 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4940 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4942 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4943 i386_create_target_description for 'segments' parameter.
4944 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4945 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4946 * win32-i386-low.c (i386_arch_setup): Likewise.
4948 2019-03-12 Tom Tromey <tromey@adacore.com>
4950 * linux-low.c (iterate_over_lwps): Update.
4952 2019-03-06 Tom Tromey <tom@tromey.com>
4954 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4955 (captured_main): Use SCOPE_EXIT.
4957 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4959 * configure.srv: Use '$enable_unittest' instead of '$development'
4960 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4963 2019-02-27 Tom Tromey <tromey@adacore.com>
4965 * gdbreplay.c (logchar): Handle \r\n.
4967 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4969 * linux-low.c (linux_attach): Add process before lwp.
4970 * server.c (attach_inferior): Check if already attached.
4972 2019-02-07 Tom Tromey <tom@tromey.com>
4974 * x86-tdesc.h: Rename include guard.
4975 * x86-low.h: Add include guard.
4976 * wincecompat.h: Rename include guard.
4977 * win32-low.h: Add include guard.
4978 * utils.h: Rename include guard.
4979 * tracepoint.h: Rename include guard.
4980 * tdesc.h: Rename include guard.
4981 * target.h: Rename include guard.
4982 * server.h: Rename include guard.
4983 * remote-utils.h: Rename include guard.
4984 * regcache.h: Rename include guard.
4985 * nto-low.h: Rename include guard.
4986 * notif.h: Add include guard.
4987 * mem-break.h: Rename include guard.
4988 * lynx-low.h: Add include guard.
4989 * linux-x86-tdesc.h: Add include guard.
4990 * linux-s390-tdesc.h: Add include guard.
4991 * linux-ppc-tdesc-init.h: Add include guard.
4992 * linux-low.h: Add include guard.
4993 * linux-aarch64-tdesc.h: Add include guard.
4994 * linux-aarch32-low.h: Add include guard.
4995 * inferiors.h: Rename include guard.
4996 * i387-fp.h: Rename include guard.
4997 * hostio.h: Rename include guard.
4998 * gdbthread.h: Rename include guard.
4999 * gdb_proc_service.h: Rename include guard.
5000 * event-loop.h: Rename include guard.
5001 * dll.h: Rename include guard.
5002 * debug.h: Rename include guard.
5003 * ax.h: Rename include guard.
5005 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5008 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5009 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5011 2019-01-25 Tom Tromey <tom@tromey.com>
5013 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5015 2019-01-25 Tom Tromey <tom@tromey.com>
5017 * win32-low.c: Fix common/ includes.
5018 * win32-i386-low.c: Fix common/ includes.
5019 * tracepoint.c: Fix common/ includes.
5020 * thread-db.c: Fix common/ includes.
5021 * target.h: Fix common/ includes.
5022 * symbol.c: Fix common/ includes.
5023 * spu-low.c: Fix common/ includes.
5024 * server.h: Fix common/ includes.
5025 * server.c: Fix common/ includes.
5026 * remote-utils.c: Fix common/ includes.
5027 * regcache.h: Fix common/ includes.
5028 * regcache.c: Fix common/ includes.
5029 * nto-x86-low.c: Fix common/ includes.
5030 * notif.h: Fix common/ includes.
5031 * mem-break.h: Fix common/ includes.
5032 * lynx-low.c: Fix common/ includes.
5033 * lynx-i386-low.c: Fix common/ includes.
5034 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5035 * linux-x86-low.c: Fix common/ includes.
5036 * linux-low.c: Fix common/ includes.
5037 * inferiors.h: Fix common/ includes.
5038 * i387-fp.c: Fix common/ includes.
5039 * hostio.c: Fix common/ includes.
5040 * hostio-errno.c: Fix common/ includes.
5041 * gdbthread.h: Fix common/ includes.
5042 * gdbreplay.c: Fix common/ includes.
5043 * fork-child.c: Fix common/ includes.
5044 * event-loop.c: Fix common/ includes.
5046 (enum gdb_agent_op): Fix common/ includes.
5048 2019-01-21 Tom Tromey <tom@tromey.com>
5050 * tracepoint.c: Fix includes.
5051 * remote-utils.c: Fix includes.
5052 * linux-x86-low.c: Fix includes.
5054 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5056 * gdbreplay.c (gdbreplay_version): Update copyright year in
5058 * server.c (gdbserver_version): Likewise.
5060 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5062 * linux-low.c (add_lwp): Switch ordering.
5064 2018-11-29 Tom Tromey <tom@tromey.com>
5066 * win32-low.c (win32_join): Take pid, not process.
5067 * target.h (struct target_ops) <join>: Change argument type.
5068 (join_inferior): Change argument name.
5069 * spu-low.c (spu_join): Take pid, not process.
5070 * server.c (handle_detach): Preserve pid before destroying
5072 * lynx-low.c (lynx_join): Take pid, not process.
5073 * linux-low.c (linux_join): Take pid, not process.
5075 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5077 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5078 (aarch64_cannot_fetch_register): Likewise.
5079 (struct linux_target_ops): Update references.
5081 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5083 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5085 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5087 * configure.srv (ipa_ppc_linux_regobj): Add
5088 powerpc-isa207-htm-vsx32l-ipa.o and
5089 powerpc-isa207-htm-vsx64l-ipa.o.
5090 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5091 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5092 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5093 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5094 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5095 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5096 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5097 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5098 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5099 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5100 (init_registers_powerpc_isa207_htm_vsx32l)
5101 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5102 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5103 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5104 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5105 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5106 (ppc_store_tm_ctarregset): New functions.
5107 (ppc_regsets): Add entries for HTM regsets.
5108 (ppc_arch_setup): Set htm in features struct when needed. Set
5109 sizes for the HTM regsets.
5110 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5111 (initialize_low_arch): Call
5112 init_registers_powerpc_isa207_htm_vsx32l and
5113 init_registers_powerpc_isa207_htm_vsx64l.
5114 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5115 PPC_TDESC_ISA207_HTM_VSX.
5116 (initialize_low_tracepoint): Call
5117 init_registers_powerpc_isa207_htm_vsx32l and
5118 init_registers_powerpc_isa207_htm_vsx64l.
5120 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5122 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5123 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5124 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5125 (ppc_store_pmuregset): New functions.
5126 (ppc_regsets): Add entries for ebb and pmu regsets.
5127 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5128 pmu regsets are available. Set sizes for these regsets.
5130 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5132 * configure.srv (ipa_ppc_linux_regobj): Add
5133 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5134 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5135 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5136 rs6000/powerpc-isa207-vsx32l.xml, and
5137 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5138 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5139 <PPC_TDESC_ISA207_VSX>: New enum value.
5140 (init_registers_powerpc_isa207_vsx32l): Declare.
5141 (init_registers_powerpc_isa207_vsx64l): Declare.
5142 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5143 (ppc_store_tarregset): New function.
5144 (ppc_regsets): Add entry for the TAR regset.
5145 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5146 size for the TAR regsets.
5147 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5148 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5149 and init_registers_powerpc_isa207_vsx64l.
5150 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5151 (initialize_low_tracepoint): Call
5152 init_registers_powerpc_isa207_vsx32l and
5153 init_registers_powerpc_isa207_vsx64l.
5155 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5156 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5158 * configure.srv (ipa_ppc_linux_regobj): Add
5159 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5160 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5161 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5162 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5163 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5164 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5165 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5166 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5167 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5168 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5169 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5170 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5171 (ppc_hwcap): Add comment.
5172 (ppc_hwcap2): New global.
5173 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5174 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5175 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5176 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5177 when needed. Set sizes for the the DSCR and PPR regsets.
5178 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5179 (initialize_low_arch): Call
5180 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5181 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5182 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5183 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5184 (initialize_low_tracepoint): Call
5185 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5186 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5188 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5190 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5192 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5193 Simon Marchi <simark@simark.ca>
5195 * acinclude.m4: Include "../selftest.m4".
5196 * configure: Regenerate.
5197 * configure.ac: Use "GDB_AC_SELFTEST".
5198 * configure.srv: Use "$enable_unittests" instead of
5199 "$development" when checking whether unit tests have been
5201 * server.c (captured_main): Update message informing that
5202 selftests have been disabled.
5204 2018-10-04 Tom Tromey <tom@tromey.com>
5206 * configure: Rebuild.
5208 2018-10-04 Tom Tromey <tom@tromey.com>
5210 * server.c (handle_status): Rename inner "thread".
5211 (process_serial_event): Declare "res" in 'm' case.
5212 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5213 (iterate_over_lwps): Rename inner "thread".
5214 (linux_qxfer_libraries_svr4): Rename inner "len".
5215 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5217 2018-10-01 Gary Benson <gbenson@redhat.com>
5219 * gdb_proc_service.h: Moved common code to
5220 common/gdb_proc_service.h.
5222 2018-10-01 Gary Benson <gbenson@redhat.com>
5224 * gdb_proc_service.h: Synchronize comments and whitespace with
5225 GDB's version of this file.
5227 2018-09-25 Tom Tromey <tom@tromey.com>
5229 * configure: Rebuild.
5230 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5232 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5234 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5235 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5236 ($(IPA_LIB)): Sort IPA_OBJS.
5238 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5240 * Makefile.in: Remove references to $(ADD_DEPS).
5242 2018-09-16 Tom Tromey <tom@tromey.com>
5244 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5246 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5249 2018-09-05 Tom Tromey <tom@tromey.com>
5251 * configure: Rebuild.
5253 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5256 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5258 2018-08-27 Tom Tromey <tom@tromey.com>
5261 * configure: Rebuild.
5263 2018-08-27 Tom Tromey <tom@tromey.com>
5265 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5266 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5267 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5268 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5269 (s390x_emit_stack_adjust): Add casts to unsigned char.
5271 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5275 * server.h (struct client_state) <disable_randomization>:
5278 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5280 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5282 (mips_supply_ptrace_register): Likewise.
5284 2018-07-22 Tom Tromey <tom@tromey.com>
5286 * configure: Rebuild.
5288 2018-07-22 Tom Tromey <tom@tromey.com>
5290 * win32-low.c (win32_create_inferior): Remove unused variables.
5291 * gdbreplay.c (remote_open): Remove unused variable.
5292 * remote-utils.c (remote_prepare): Remove unused variable.
5293 * x86-tdesc.h (X86_TDESC_H): Define.
5294 (amd64_expedite_regs): Define conditionally.
5295 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5296 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5297 * remote-utils.c (readchar): Remove unused variable.
5299 2018-07-13 Pedro Alves <palves@redhat.com>
5301 * linux-low.c (linux_kill): Change parameter to process_info
5302 pointer instead of pid. Adjust.
5303 * lynx-low.c (lynx_kill): Likewise.
5304 * nto-low.c (nto_kill): Likewise.
5305 * spu-low.c (spu_kill): Likewise.
5306 * win32-low.c (win32_kill): Likewise.
5307 * server.c (handle_v_kill, kill_inferior_callback)
5308 (detach_or_kill_for_exit): Adjust.
5309 * target.c (kill_inferior): Change parameter to process_info
5310 pointer instead of pid. Adjust.
5311 * target.h (struct target_ops) <kill>: Change parameter to
5312 process_info pointer instead of pid. Adjust all implementations
5314 (kill_inferior): Likewise.
5316 2018-07-13 Pedro Alves <palves@redhat.com>
5318 * linux-low.c (linux_detach, linux_join): Change parameter to
5319 process_info pointer instead of pid. Adjust.
5320 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5321 * nto-low.c (nto_detach): Likewise.
5322 * spu-low.c (spu_detach, spu_join): Likewise.
5323 * win32-low.c (win32_detach, win32_join): Likewise.
5324 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5325 * target.h (struct target_ops) <detach, join>: Change parameter to
5326 process_info pointer instead of pid. Adjust all implementations
5328 (detach_inferior, join_inferior): Rename 'pid' parameter to
5331 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5332 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 Paul Fertser <fercerpav@gmail.com>
5334 Tsutomu Seki <sekiriki@gmail.com>
5336 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5337 (OBS): Add 'common/netstuff.o'.
5338 (GDBREPLAY_OBS): Likewise.
5339 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5340 (remote_open): Implement support for IPv6
5342 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5344 (handle_accept_event): Accept connections from IPv6 sources.
5345 (remote_prepare): Handle IPv6-style hostnames; implement
5346 support for IPv6 connections.
5347 (remote_open): Implement support for printing connections from
5350 2018-07-11 Pedro Alves <palves@redhat.com>
5353 * mem-break.c (any_persistent_commands): Add process_info
5354 parameter and use it instead of relying on the current process.
5355 Change return type to bool.
5356 * mem-break.h (any_persistent_commands): Add process_info
5357 parameter and change return type to bool.
5358 * server.c (handle_detach): Remove require_running_or_return call.
5359 Look up the process_info for the process we're about to detach.
5360 If not found, return back error to GDB. Adjust
5361 any_persistent_commands call to pass down a process pointer.
5363 2018-07-11 Pedro Alves <palves@redhat.com>
5365 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5366 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5367 instead of collect_register_by_name.
5368 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5369 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5371 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5372 Pedro Alves <palves@redhat.com>
5374 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5376 2018-07-03 Tom Tromey <tom@tromey.com>
5378 * linux-low.c: Update.
5379 * lynx-low.c: Update.
5380 * mem-break.c: Update.
5381 * nto-low.c: Update.
5382 * remote-utils.c: Update.
5384 * spu-low.c: Update.
5386 * win32-low.c: Update.
5388 2018-07-03 Tom Tromey <tom@tromey.com>
5392 2018-07-03 Tom Tromey <tom@tromey.com>
5394 * linux-low.c: Update.
5396 2018-07-03 Tom Tromey <tom@tromey.com>
5400 2018-07-03 Tom Tromey <tom@tromey.com>
5402 * linux-low.c: Update.
5403 * linux-mips-low.c: Update.
5404 * lynx-low.c: Update.
5405 * nto-low.c: Update.
5406 * remote-utils.c: Update.
5408 * spu-low.c: Update.
5410 * thread-db.c: Update.
5412 2018-07-03 Tom Tromey <tom@tromey.com>
5414 * linux-low.c: Update.
5415 * linux-mips-low.c: Update.
5416 * lynx-low.c: Update.
5417 * mem-break.c: Update.
5418 * nto-low.c: Update.
5419 * remote-utils.c: Update.
5421 * spu-low.c: Update.
5423 * tracepoint.c: Update.
5425 2018-07-03 Tom Tromey <tom@tromey.com>
5427 * linux-low.c: Update.
5428 * linux-ppc-low.c: Update.
5429 * linux-x86-low.c: Update.
5430 * proc-service.c: Update.
5432 * spu-low.c: Update.
5433 * thread-db.c: Update.
5434 * win32-low.c: Update.
5436 2018-07-03 Tom Tromey <tom@tromey.com>
5438 * linux-low.c: Update.
5439 * lynx-low.c: Update.
5440 * nto-low.c: Update.
5441 * remote-utils.c: Update.
5442 * spu-low.c: Update.
5443 * thread-db.c: Update.
5444 * win32-low.c: Update.
5446 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5448 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5449 parameter in call to 'amd64_create_target_description'.
5451 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5453 * x86-tdesc.h: Remove executable permission flag.
5455 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5457 * configure.ac: Remove AC_PREREQ, add missing quoting.
5458 * configure: Re-generate.
5459 * config.in: Re-generate.
5460 * aclocal.m4: Re-generate.
5462 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5464 * tracepoint.h (current_traceframe): Remove declaration.
5466 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5468 * linux-aarch64-low.c (is_sve_tdesc): New function.
5469 (aarch64_sve_regs_copy_to_regcache): Likewise.
5470 (aarch64_sve_regs_copy_from_regcache): Likewise.
5471 (aarch64_regs_info): Add SVE checks.
5472 (initialize_low_arch): Initialize SVE.
5474 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5476 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5478 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5480 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5481 (initialize_low_tracepoint): Likewise
5482 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5483 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5485 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5487 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5489 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5491 * server.h (PBUFSIZ): Increase size
5493 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5495 * regcache.c (regcache::raw_compare): New function.
5496 * regcache.h (regcache::raw_compare): New declaration.
5498 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5500 * regcache.c (new_register_cache): Use new.
5501 (free_register_cache): Use delete.
5502 (register_data): Use const.
5503 (supply_register): Move body inside regcache.
5504 (regcache::raw_supply): New override function.
5505 (collect_register): Move body inside regcache.
5506 (regcache::raw_collect): New override function.
5507 (regcache::get_register_status): New override function.
5508 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5510 2018-06-09 Tom Tromey <tom@tromey.com>
5512 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5514 (event_queue): Use std::queue.
5515 (gdb_event_xfree): Remove.
5516 (initialize_event_loop, process_event, wait_for_event): Update.
5518 2018-06-08 Stan Cox <scox@redhat.com>
5520 * win32-low.c (win32_create_inferior): last_ptid and last_status
5521 moved to client_state.
5523 2018-06-08 Pedro Alves <palves@redhat.com>
5525 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5526 common/common-exceptions.o, common/common-utils.o,
5527 common/errors.o, common/print-utils.o and utils.o.
5528 * gdbreplay.c: Include "common-defs.h" instead of the two
5529 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5530 string.h or alloca.h.
5531 (perror_with_name): Delete.
5532 (remote_open): Use xstrdup instead of strdup.
5533 (main): Rename to ...
5534 (captured_main): ... this.
5537 2018-06-08 Tom Tromey <tom@tromey.com>
5539 * linux-low.c (linux_low_read_btrace): Update.
5541 2018-06-04 Stan Cox <scox@redhat.com>
5543 * server.h (struct client_state): New.
5544 * server.c (cont_thread, general_thread, multi_process)
5545 (report_fork_events, report_vfork_events, report_exec_events)
5546 (report_thread_events, swbreak_feature, hwbreak_feature)
5547 (vCont_supported, disable_randomization, pass_signals)
5548 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5549 Moved to client_state.
5550 * remote-utils.c (remote_debug, noack_mode)
5551 (transport_is_reliable): Moved to client_state.
5552 * tracepoint.c (current_traceframe): Moved to client_state.
5555 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5556 linux-low.c, remote-utils.h, target.c: Use client_state.
5558 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5560 * configure.srv: Add new c/h file.
5562 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5564 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5567 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5569 * gdb.arch/mips-fpregset-core.exp: New test.
5570 * gdb.arch/mips-fpregset-core.c: New test source.
5572 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5575 * hostio.c (require_int): Do not report overflow for integers
5576 between 0xfffffff and 0x7fffffff.
5578 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5580 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5581 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5582 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5584 (the_low_target): Wire them.
5586 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5588 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5589 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5590 mode. Call collect_register_by_name with vscr using
5591 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5592 (ppc_store_vrregset): Add and set vscr_offset variable as in
5593 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5596 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5598 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5599 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5600 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5602 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5604 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5605 (ppc_store_vsxregset): Likewise.
5606 (ppc_fill_vrregset): Likewise.
5607 (ppc_store_vrregset): Likewise.
5608 (ppc_fill_evrregset): Likewise.
5609 (ppc_store_evrregset): Likewise.
5610 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5611 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5614 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5616 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5617 wordsize of the inferior. Call ppc_linux_target_wordsize.
5619 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5621 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5622 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5623 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5624 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5625 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5626 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5627 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5628 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5629 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5630 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5631 (tdesc_powerpc_e500l): Remove.
5632 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5633 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5634 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5635 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5637 (ppc_arch_setup): Remove target description matching code. Fill a
5638 ppc_linux_features struct and call ppc_linux_match_description
5641 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5643 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5644 width of the requested register exceeds the width of the
5646 (mips_cannot_store_register): Likewise.
5648 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5650 * linux-mips-low.c (mips_fetch_register): New function. Update
5652 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5653 (the_low_target): Wire `mips_fetch_register'.
5655 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5657 * lynx-i386-low.c (LYNXOS_178): New macro.
5658 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5659 the layout on LynxOS-178.
5660 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5661 handle floating point registers that are not supported by
5664 2018-05-10 Tom Tromey <tom@tromey.com>
5666 * configure: Rebuild.
5668 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5671 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5672 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5673 Use it to set the expedite_regs field in the given tdesc.
5674 * x86-tdesc.h: New file.
5675 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5676 Adjust following the addition of the new expedite_regs parameter
5677 to init_target_desc.
5678 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5679 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5680 (i386_linux_read_description, amd64_linux_read_description):
5681 Adjust following the addition of the new expedite_regs parameter
5682 to init_target_desc.
5683 * lynx-i386-low.c: #include "x86-tdesc.h".
5684 (lynx_i386_arch_setup): Adjust following the addition of the new
5685 expedite_regs parameter to init_target_desc.
5686 * nto-x86-low.c: #include "x86-tdesc.h".
5687 (nto_x86_arch_setup): Adjust following the addition of the new
5688 expedite_regs parameter to init_target_desc.
5689 * win32-i386-low.c: #include "x86-tdesc.h".
5690 (i386_arch_setup): Adjust following the addition of the new
5691 expedite_regs parameter to init_target_desc.
5693 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5696 * win32-low.c (win32_create_inferior): Add call to my_wait
5697 setting last_status global.
5699 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5702 * win32-low.c (create_process): Only call gdb_tilde_expand if
5703 inferior_cwd is not NULL.
5705 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5707 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5708 registers to the cache if their values have changed.
5709 (i387_xsave_to_cache): Provide default values for x87 control
5710 registers when these features are available, but disabled.
5711 * regcache.c (supply_register_by_name_zeroed): New function.
5712 * regcache.h (supply_register_by_name_zeroed): Declare new
5715 2018-05-07 Tom Tromey <tom@tromey.com>
5717 * configure: Rebuild.
5719 2018-05-04 Tom Tromey <tom@tromey.com>
5721 * configure: Rebuild.
5723 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5724 Pedro Alves <palves@redhat.com>
5726 * linux-aarch64-low.c (aarch64_stopped_data_address):
5729 2018-04-27 Tom Tromey <tom@tromey.com>
5731 * configure: Rebuild.
5733 2018-04-23 Tom Tromey <tom@tromey.com>
5735 * configure: Rebuild.
5737 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5739 * Makefile.in (depcomp): Add "..".
5740 (all_deps_files): New and use it.
5742 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5744 * configure.srv (aarch64*-*-linux*): Don't include xml.
5745 (i[34567]86-*-cygwin*): Likewise.
5746 (i[34567]86-*-linux*): Likewise.
5747 (i[34567]86-*-lynxos*): Likewise.
5748 (i[34567]86-*-mingw32ce*): Likewise.
5749 (i[34567]86-*-mingw*): Likewise.
5750 (i[34567]86-*-nto*): Likewise.
5751 (tic6x-*-uclinux): Likewise.
5752 (x86_64-*-linux*): Likewise.
5753 (x86_64-*-mingw*): Likewise.
5754 (x86_64-*-cygwin*): Likewise.
5756 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5758 * tdesc.c: Remove xml parameter.
5760 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5762 * server.c (get_features_xml): Remove cast.
5763 * tdesc.c (void target_desc::accept): Fill in function.
5764 (tdesc_get_features_xml): Remove old xml creation.
5765 (print_xml_feature::visit_pre): Add xml vistor.
5766 * tdesc.h (struct target_desc): Make xmltarget mutable.
5767 (tdesc_get_features_xml): Remove declaration.
5769 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5771 * tdesc.c (tdesc_architecture_name): Add new function.
5772 (tdesc_osabi_name): Likewise.
5773 (tdesc_get_features_xml): Use new functions.
5775 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5777 * tdesc.c (tdesc_create_flags): Remove.
5778 (tdesc_add_flag): Likewise.
5779 (tdesc_named_type): Likewise.
5780 (tdesc_create_union): Likewise.
5781 (tdesc_create_struct): Likewise.
5782 (tdesc_create_vector): Likewise.
5783 (tdesc_add_bitfield): Likewise.
5784 (tdesc_add_field): Likewise.
5785 (tdesc_set_struct_size): Likewise.
5787 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5789 * tdesc.c (~target_desc): Remove implictly deleted items.
5790 (init_target_desc): Iterate all features.
5791 (tdesc_get_features_xml): Use vector.
5792 (tdesc_create_feature): Create feature.
5793 * tdesc.h (tdesc_feature) Remove
5794 (target_desc): Add features.
5796 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5798 * Makefile.in: Add common/tdesc.c
5799 * tdesc.c (init_target_desc): init all reg_defs from register
5801 (tdesc_create_reg): Create tdesc_reg.
5802 * tdesc.h (tdesc_feature): Add register vector.
5804 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5806 * tdesc.h (struct target_desc) <features>: Change type to
5807 std::vector<std::string>.
5808 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5810 (tdesc_get_features_xml): Likewise.
5811 (tdesc_create_feature): Likewise.
5813 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5815 * regcache.c (find_register_by_number): Return a ref.
5816 (find_regno): Use references.
5817 (register_size): Likewise.
5818 (register_data): Likewise.
5819 * tdesc.c (target_desc::~target_desc): Remove free calls.
5820 (target_desc::operator==): Use std::vector compare.
5821 (init_target_desc): Use reference.
5822 (tdesc_create_reg): Use reg constructors.
5823 * tdesc.h (struct target_desc): Replace pointer with object.
5825 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5827 * regcache.c (find_register_by_number): Make static.
5828 (find_regno): Use find_register_by_number
5829 * regcache.h (struct reg): Remove declaration.
5831 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5833 * tdesc.c (target_desc::~target_desc): Move to here.
5834 (target_desc::operator==): Likewise.
5835 * tdesc.h (target_desc::~target_desc): Move from here.
5836 (target_desc::operator==): Likewise.
5838 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5840 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5842 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5844 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5846 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5847 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5848 and init_registers_s390_gs_linux64.
5850 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5852 * linux-s390-low.c (s390_fill_gs): Remove function.
5853 (s390_fill_gsbc): Remove function.
5854 (s390_regsets): Set fill functions for the guarded storage regsets
5857 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5859 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5860 the word size. Add comment.
5861 (s390_get_wordsize): New function.
5862 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5863 pswm with it. Instead, use s390_get_wordsize to determine the
5864 word size first and derive the correct tdesc from that directly.
5866 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5868 * Makefile.in: Include silent-rules.mk.
5869 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5870 (COMPILE): Add ECHO_CXX.
5871 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5872 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5873 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5874 (version-generated.c): Add ECHO_GEN.
5875 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5876 (IPAGENT_COMPILE): Add ECHO_CXX.
5877 (%-generated.c): Add ECHO_REGDAT.
5879 2018-03-14 Tom Tromey <tom@tromey.com>
5882 * ax.c (ax_printf): Special case for NULL.
5884 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5886 * linux-low.c (linux_qxfer_libraries_svr4): Use
5887 xml_escape_text_append.
5889 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5891 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5893 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5895 * server.c (handle_general_set): Remove unnecessary xstrdup.
5897 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5899 * server.c (parse_debug_format_options): Adjust to
5900 delim_string_to_char_ptr_vec changes.
5901 * thread-db.c (thread_db_load_search): Adjust to
5902 dirnames_to_char_ptr_vec changes.
5904 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5906 * target.h (target_enable_btrace, target_disable_btrace)
5907 (target_read_btrace, target_read_btrace_conf): Turn macro into
5908 inline function. Throw error if target method is not defined.
5909 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5910 check for btrace target method. Be prepared to handle exceptions
5911 from btrace target methods.
5913 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5915 * server.c (captured_main): Change order of error message printed
5916 when the current working directory cannot be found.
5918 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5920 * server.c: Include "filenames.h" and "pathstuff.h".
5921 (program_name): Delete variable.
5922 (program_path): New anonymous class.
5923 (get_exec_wrapper): Use "program_path" instead of
5925 (handle_v_run): Likewise.
5926 (captured_main): Likewise.
5927 (process_serial_event): Likewise.
5929 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5931 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5932 (OBJS): Add "pathstuff.o".
5933 * server.c (current_directory): New global variable.
5934 (captured_main): Initialize "current_directory".
5936 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5938 * tdesc.c: Use common/tdesc.h.
5939 * tdesc.h: Likewise.
5941 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5942 Simon Marchi <simon.marchi@ericsson.com>
5944 * Makefile.in: Switch order of make rules.
5946 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5948 * Makefile.in: Add common directory in build.
5949 * configure.ac: Add common reference.
5950 * configure: Regenerate.
5952 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5954 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5955 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5956 * spu-low.c (spu_target_ops): Likewise.
5957 * win32-low.c (win32_target_ops): Likewise.
5958 * server.c (supported_btrace_packets): Report packets unconditionally.
5959 * target.h (target_ops) <supports_btrace>: Remove.
5960 (target_supports_btrace): Remove.
5962 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5964 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5965 (handle_btrace_disable): Change return type to void. Use exceptions
5967 (handle_btrace_general_set): Catch exception and copy message to
5970 2018-02-08 Tom Tromey <tom@tromey.com>
5972 * linux-low.c (install_software_single_step_breakpoints): Use
5973 make_scoped_restore.
5974 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5975 (do_restore_current_thread_cleanup): Remove.
5976 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5979 2018-02-08 Tom Tromey <tom@tromey.com>
5981 * mem-break.c (set_raw_breakpoint_at): Use
5982 gdb::unique_xmalloc_ptr.
5984 2018-01-30 Pedro Alves <palves@redhat.com>
5987 * target.c (target_terminal::terminal_state): Rename to ...
5988 (target_terminal::m_terminal_state): ... this.
5990 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5992 * linux-low.c (handle_extended_wait): Surround call to
5993 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5995 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5997 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5998 linux_ptrace_attach_fail_reason_string now returning an
6000 (linux_attach): Likewise.
6001 * thread-db.c (attach_thread): Likewise.
6003 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6006 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6007 checking for fs_base/gs_base fields in struct user_regs_struct.
6008 * configure: Regenerate.
6010 2018-01-16 Yao Qi <yao.qi@linaro.org>
6013 * linux-low.c (fetch_register): Call supply_register instead of
6016 2018-01-08 Yao Qi <yao.qi@linaro.org>
6017 Simon Marchi <simon.marchi@ericsson.com>
6019 * Makefile.in (OBS): Remove selftest.o.
6020 * configure.ac: Set srv_selftest_objs if $development is true.
6021 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6022 * configure: Re-generated.
6023 * server.c (captured_main): Wrap variable selftest_filter with
6026 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6028 * server.c (parse_debug_format_options): Return std::string.
6029 (handle_monitor_command, captured_main): Adjust.
6031 2018-01-05 Pedro Alves <palves@redhat.com>
6034 * server.c (captured_main): Pass quiet=false to
6035 save_original_signals_state.
6037 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6039 * gdbreplay.c (gdbreplay_version): Update copyright year in
6041 * server.c (gdbserver_version): Likewise.
6043 2017-12-08 Tom Tromey <tom@tromey.com>
6045 * ax.c (ax_printf): Update.
6047 2017-12-07 Yao Qi <yao.qi@linaro.org>
6049 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6050 aarch64_linux_read_description.
6051 * linux-amd64-ipa.c (idx2mask): New array.
6052 (get_ipa_tdesc): Move idx2mask out.
6053 (initialize_low_tracepoint): Initialize target descriptions.
6054 * linux-i386-ipa.c (idx2mask): New array.
6055 (get_ipa_tdesc): Move idx2mask out.
6056 (initialize_low_tracepoint): Initialize target descriptions.
6058 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6060 * tdesc.c (struct tdesc_type): Change return type.
6061 (tdesc_add_flag): Change parameter type.
6062 (tdesc_add_bitfield): Likewise.
6063 (tdesc_add_field): Likewise.
6064 (tdesc_set_struct_size): Likewise.
6066 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6068 * regcache.c (registers_to_string): Remove unused variable.
6070 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6072 * inferiors.c (for_each_inferior_with_data): Remove.
6073 * inferiors.h (for_each_inferior_with_data): Remove.
6074 * server.c (handle_qxfer_threads_worker): Change parameter type.
6075 (handle_qxfer_threads_proper): Use for_each_thread.
6077 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6079 * inferiors.c (for_each_inferior): Remove.
6080 (clear_inferiors): Use for_each_thread.
6081 * inferiors.h (for_each_inferior): Remove.
6082 * linux-low.c (linux_wait_for_event_filtered): Use
6084 (linux_stabilize_threads): Likewise.
6085 * regcache.c (regcache_release): Likewise.
6086 * server.c (gdb_wants_all_threads_stopped): Likewise.
6087 (clear_pending_status_callback): Remove.
6088 (handle_status): Use for_each_thread.
6089 (captured_main): Likewise.
6090 * win32-low.c (child_init_thread_list): Likewise.
6091 (win32_clear_inferiors): Likewise.
6092 (fake_breakpoint_event): Likewise.
6094 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6096 * inferiors.h (find_inferior): Remove.
6097 * inferiors.c (find_inferior): Remove.
6099 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6101 * linux-low.c (resume_status_pending_p): Update comment.
6102 (need_step_over_p): Update comment.
6104 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6106 * linux-low.c (proceed_one_lwp): Return void, change parameter
6108 (unsuspend_and_proceed_one_lwp): Likewise.
6109 (proceed_all_lwps): Use for_each_thread.
6110 (unstop_all_lwps): Likewise.
6112 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6114 * linux-low.c (linux_resume_one_thread): Return void, take
6116 (linux_resume): Use for_each_thread.
6118 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6120 * linux-low.c (send_sigstop_callback): Return void, change
6121 parameter type. Rename to...
6122 (send_sigstop): ... this.
6123 (suspend_and_send_sigstop_callback): Return void, change parameter
6125 (suspend_and_send_sigstop): ... this.
6126 (stop_all_lwps): Use for_each_thread.
6128 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6130 * linux-low.c (lwp_running): Return bool, remove unused
6132 (linux_stabilize_threads): Use find_thread.
6134 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6136 * linux-low.c (select_singlestep_lwp_callback): Remove.
6137 (count_events_callback): Remove.
6138 (select_event_lwp_callback): Remove.
6139 (select_event_lwp): Use find_thread/for_each_thread.
6141 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6143 * linux-low.c (not_stopped_callback): Return bool, take filter
6145 (linux_wait_for_event_filtered): Use find_thread.
6146 (linux_wait_1): Likewise.
6148 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6150 * linux-low.c (same_lwp): Remove.
6151 (find_lwp_pid): Use find_thread.
6153 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6155 * linux-low.c (delete_lwp_callback): Remove.
6156 (linux_mourn): Use for_each_thread.
6158 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6160 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6161 args parameter, don't check for pid.
6162 (linux_detach): Use for_each_thread.
6164 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6166 * linux-low.c (struct counter): Remove.
6167 (second_thread_of_pid_p): Remove.
6168 (last_thread_of_process_p): Use find_thread.
6170 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6172 * inferiors.c (find_inferior_in_random): Remove.
6173 * inferiors.h (find_inferior_in_random): Remove.
6174 * linux-low.c (status_pending_p_callback): Return bool, accept
6175 parameter ptid directly.
6176 (linux_wait_for_event_filtered): Use find_thread_in_random.
6177 (linux_wait_1): Likewise.
6179 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6181 * inferiors.c (find_inferior_id): Remove.
6182 (find_thread_ptid): Move implemention from find_inferior_id to
6184 * inferiors.h (find_inferior_id): Remove.
6185 * server.c (handle_status): Use find_thread_ptid.
6186 (process_serial_event): Likewise.
6187 * thread-db.c (find_one_thread): Likewise.
6188 (thread_db_thread_handle): Likewise.
6189 * win32-low.c (thread_rec): Likewise.
6190 (child_delete_thread): Likewise.
6191 (win32_thread_alive): Likewise.
6192 (get_child_debug_event): Likewise.
6194 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6196 * linux-mips-low.c (update_watch_registers_callback): Return
6197 void, remove pid_p parameter, don't check for pid.
6198 (mips_insert_point, mips_remove_point): Use for_each_thread.
6200 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6202 * lynx.low (lynx_delete_thread_callback): Remove.
6203 (lynx_mourn): Use for_each_thread.
6205 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207 * regcache.c (regcache_invalidate_one): Remove.
6208 (regcache_invalidate_pid): use for_each_thread.
6210 2017-11-26 Tom Tromey <tom@tromey.com>
6212 * linux-low.c (linux_create_inferior): Update.
6214 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6216 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6218 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6220 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6221 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6222 * linux-aarch64-tdesc-selftest.c: New file.
6223 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6225 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6227 * configure.srv: Add new file.
6228 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6229 * linux-aarch64-tdesc-selftest.c: New file.
6230 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6232 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6234 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6235 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6236 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6238 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6240 * configure.srv: Add new files.
6241 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6242 aarch64_linux_read_description.
6243 * linux-aarch64-low.c (aarch64_linux_read_description):
6244 Merge with aarch64_arch_setup.
6245 (aarch64_arch_setup): Call aarch64_linux_read_description.
6246 * linux-aarch64-tdesc.c: New file.
6247 * linux-aarch64-tdesc.h: New file.
6249 2017-11-24 Yao Qi <yao.qi@linaro.org>
6251 * configure.srv: Set $srv_regobj for tic6x-linux.
6252 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6253 (tic6x_read_description): Move some code to tic6x_arch_setup.
6254 (tic6x_tdesc_test): New function.
6255 (initialize_low_arch): Call selftests::register_test.
6257 2017-11-22 Yao Qi <yao.qi@linaro.org>
6259 * remote-utils.c (prepare_resume_reply): Use memcpy.
6261 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6263 * linux-low.c (kill_one_lwp_callback): Return void, take
6264 argument directly, don't filter on pid.
6265 (linux_kill): Use for_each_thread.
6267 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6269 * linux-low.c (need_step_over_p): Return bool, remove dummy
6271 (linux_resume, proceed_all_lwps): Use find_thread.
6273 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6275 * linux-low.c (resume_status_pending_p): Return bool, remove
6277 (linux_resume): Use find_thread.
6279 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6281 * linux-low.c (struct thread_resume_array): Remove.
6282 (linux_set_resume_request): Return void, take arguments
6284 (linux_resume): Use for_each_thread.
6286 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6288 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6289 return bool, remove data argument.
6290 (linux_stabilize_threads): Use find_thread.
6292 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6294 * linux-low.c (unsuspend_one_lwp): Remove.
6295 (unsuspend_all_lwps): Use for_each_thread, inline code from
6298 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6300 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6301 * linux-low.c (struct iterate_over_lwps_args): Remove.
6302 (iterate_over_lwps_filter): Remove.
6303 (iterate_over_lwps): Use find_thread.
6305 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6307 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6308 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6309 code from reset_lwp_ptrace_options_callback.
6311 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6313 * linux-arm-low.c (struct update_registers_data): Remove.
6314 (update_registers_callback): Return void, take arguments
6315 directly, don't check thread's pid.
6316 (arm_insert_point, arm_remove_point): Use for_each_thread.
6318 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6320 * win32-low.c (continue_one_thread): Return void, take argument
6322 (child_continue): Use for_each_thread.
6324 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6326 * win32-i386-low.c (update_debug_registers_callback): Rename
6328 (update_debug_registers): ... this, return void, remove pid_p arg.
6329 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6331 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6333 * inferiors.h (struct process_info): Add constructor, initialize
6335 <syscalls_to_catch>: Change type to std::vector<int>.
6336 * inferiors.c (add_process): Allocate process_info with new.
6337 (remove_process): Free process_info with delete.
6338 * linux-low.c (handle_extended_wait): Adjust.
6339 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6340 * server.c (handle_general_set): Adjust.
6342 2017-11-16 Pedro Alves <palves@redhat.com>
6344 * remote-utils.c (remote_close): Block SIGIO signals instead of
6345 uninstalling the SIGIO handler.
6347 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6349 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6351 2017-11-16 Yao Qi <yao.qi@linaro.org>
6353 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6354 (tic6x_store_gregset): Likewise.
6355 (tic6x_usrregs_info): Move it up.
6357 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6359 * Makefile.in: Update arch rules.
6360 * configure.srv: Explicitly mark arch/ files.
6362 2017-11-13 Andreas Schwab <schwab@suse.de>
6364 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6366 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6368 2017-11-06 Pedro Alves <palves@redhat.com>
6370 * config.in, configure: Regenerate.
6372 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6374 * target.c (struct thread_search): Remove.
6375 (thread_search_callback): Remove.
6376 (prepare_to_access_memory): Use for_each_thread instead of
6377 find_inferior. Inline code from thread_search_callback.
6379 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6381 * server.c (struct visit_actioned_threads_data): Remove.
6382 (visit_actioned_threads): Change prototype to take arguments
6384 (resume): Use find_thread instead of find_inferior.
6386 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6388 * server.c (queue_stop_reply_callback): Change prototype, return
6390 (find_status_pending_thread_callback): Remove.
6391 (handle_status): Replace find_inferior with find_thread and
6394 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6396 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6398 (aarch64_store_gregset): Likewise.
6399 (aarch64_fill_fpregset): Likewise.
6400 (aarch64_store_fpregset): Likewise.
6402 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6404 * gdbthread.h (find_thread, for_each_thread): New functions.
6405 * inferiors.c (thread_of_pid): Remove.
6406 (find_any_thread_of_pid): Use find_thread.
6407 * linux-low.c (num_lwps): Use for_each_thread.
6409 2017-10-17 Yao Qi <yao.qi@linaro.org>
6411 * Makefile.in: Remove one rule.
6412 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6414 2017-10-17 Yao Qi <yao.qi@linaro.org>
6416 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6417 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6419 2017-10-17 Yao Qi <yao.qi@linaro.org>
6421 * configure.srv: Rename arm.o with arch/arm.o.
6423 2017-10-17 Yao Qi <yao.qi@linaro.org>
6425 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6426 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6427 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6428 (arch-i386.o, arch-amd64.o): Remove rules.
6429 (arch/%.o): New rule.
6430 Update POSTCOMPILE and COMPILE.pre.
6431 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6432 * configure: Re-generated.
6433 * configure.srv: Replace arch-i386.o with arch/i386.o.
6434 Replace arch-amd64.o with arch/amd64.o.
6436 2017-10-16 Yao Qi <yao.qi@linaro.org>
6438 * configure: Regenerated.
6440 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6442 * inferiors.h: (struct inferior_list): Remove.
6443 (struct inferior_list_entry); Remove.
6444 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6445 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6446 get_first_inferior): Remove.
6447 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6448 find_inferior_id, find_inferior_in_random): Change signature.
6449 * inferiors.c (all_threads): Change type to
6450 std::list<thread_info *>.
6451 (get_thread): Remove macro.
6452 (find_inferior, find_inferior_id): Change signature, implement
6454 (find_inferior_in_random): Change signature, implement using
6455 find_thread_in_random.
6456 (for_each_inferior, for_each_inferior_with_data): Change
6457 signature, implement using for_each_thread.
6458 (add_inferior_to_list, remove_inferior): Remove.
6459 (add_thread, get_first_thread, thread_of_pid,
6460 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6461 (get_first_inferior, one_inferior_p, clear_inferior_list):
6463 (clear_inferiors, get_thread_process): Update.
6464 * gdbthread.h: Include <list>.
6465 (struct thread_info) <entry>: Remove field.
6467 (all_threads): Change type to std::list<thread_info *>.
6468 (get_first_inferior): Add doc.
6469 (find_thread, for_each_thread, find_thread_in_random): New
6471 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6472 * linux-arm-low.c (update_registers_callback): Update.
6473 * linux-low.c (second_thread_of_pid_p): Update.
6474 (kill_one_lwp_callback, linux_detach_lwp_callback,
6475 delete_lwp_callback, status_pending_p_callback, same_lwp,
6476 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6477 iterate_over_lwps, not_stopped_callback,
6478 resume_stopped_resumed_lwps, count_events_callback,
6479 select_singlestep_lwp_callback, select_event_lwp_callback,
6480 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6481 suspend_and_send_sigstop_callback, wait_for_sigstop,
6482 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6483 lwp_running, linux_set_resume_request, resume_status_pending_p,
6484 need_step_over_p, start_step_over, linux_resume_one_thread,
6485 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6486 reset_lwp_ptrace_options_callback): Update.
6487 * linux-mips-low.c (update_watch_registers_callback): Update.
6488 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6490 (free_register_cache_thread_one): Remove.
6491 (regcache_release): Update.
6492 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6493 handle_qxfer_threads_worker): Update.
6494 (handle_query): Update, use list iterator.
6495 (visit_actioned_threads, handle_pending_status,
6496 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6497 clear_pending_status_callback, set_pending_status_callback,
6498 find_status_pending_thread_callback, handle_status,
6499 process_serial_event): Update.
6500 * target.c (thread_search_callback): Update.
6501 * thread-db.c (thread_db_get_tls_address): Update.
6502 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6504 * win32-i386-low.c (update_debug_registers_callback): Update.
6505 * win32-low.c (delete_thread_info, child_delete_thread,
6506 continue_one_thread, suspend_one_thread,
6507 get_child_debug_event): Adjust.
6509 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6511 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6512 * inferiors.h: Include <list>.
6513 (struct process_info) <entry>: Remove field.
6515 (pid_of): Change macro to function.
6516 (ptid_of, lwpid_of): Remove macro.
6517 (all_processes): Change type to std::list<process_info *>.
6518 (ALL_PROCESSES): Remove macro.
6519 (for_each_process, find_process): New function.
6520 * inferiors.c (all_processes): Change type to
6521 std::list<process_info *>.
6522 (find_thread_process): Adjust.
6523 (add_process): Likewise.
6524 (remove_process): Likewise.
6525 (find_process_pid): Likewise.
6526 (get_first_process): Likewise.
6527 (started_inferior_callback): Remove.
6528 (have_started_inferiors_p): Adjust.
6529 (attached_inferior_callback): Remove.
6530 (have_attached_inferiors_p): Adjust.
6531 * linux-low.c (check_zombie_leaders): Likewise.
6532 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6533 (x86_linux_update_xmltarget): Adjust.
6534 * server.c (handle_query): Likewise.
6535 (gdb_reattached_process): Remove.
6536 (handle_status): Adjust.
6537 (kill_inferior_callback): Likewise.
6538 (detach_or_kill_inferior): Remove.
6539 (print_started_pid): Likewise.
6540 (print_attached_pid): Likewise.
6541 (detach_or_kill_for_exit): Update.
6542 (process_serial_event): Likewise.
6543 * linux-arm-low.c (arm_new_fork): Likewise.
6545 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6547 * dll.h: Include <list>.
6548 (struct dll_info): Add constructor.
6549 <entry>: Remove field.
6550 (all_dlls): Change type to std::list<dll_info>.
6551 * dll.c: Include <algorithm>.
6552 (get_dll): Remove macro.
6553 (all_dlls): Change type to std::list<dll_info *>.
6554 (free_one_dll): Remove.
6555 (match_dll): Likewise.
6556 (loaded_dll): Adjust.
6557 (unloaded_dll): Adjust to all_dlls type change, use
6558 std::find_if. Inline code from match_dll.
6559 (clear_dlls): Adjust to all_dlls type change.
6560 * server.c (emit_dll_description): Remove.
6561 (handle_qxfer_libraries): Adjust to all_dlls type change,
6562 integrate emit_dll_description's functionality.
6564 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6566 * linux-low.h (struct linux_target_ops) <delete_process>: New
6568 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6569 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6570 (struct linux_target_ops): Add delete_process callback.
6571 * linux-arm-low.c (arm_delete_process): New.
6572 (struct linux_target_ops): Add delete_process callback.
6573 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6574 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6575 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6576 * linux-mips-low.c (mips_linux_delete_process): New.
6577 (struct linux_target_ops): Add delete_process callback.
6578 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6579 * linux-s390-low.c (struct linux_target_ops): Likewise.
6580 * linux-sh-low.c (struct linux_target_ops): Likewise.
6581 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6582 * linux-tile-low.c (struct linux_target_ops): Likewise.
6583 * linux-x86-low.c (x86_linux_delete_process): New.
6584 (struct linux_target_ops): Add delete_process callback.
6585 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6587 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6589 * linux-aarch64-low.c (the_low_target): Add thread delete
6591 * linux-arm-low.c (arm_delete_thread): New function.
6592 (the_low_target): Add thread delete callback.
6593 * linux-bfin-low.c (the_low_target): Likewise.
6594 * linux-crisv32-low.c (the_low_target): Likewise.
6595 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6597 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6599 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6600 * linux-mips-low.c (mips_linux_delete_thread): New function.
6601 (the_low_target): Add thread delete callback.
6602 * linux-ppc-low.c (the_low_target): Likewise.
6603 * linux-s390-low.c (the_low_target): Likewise.
6604 * linux-sh-low.c (the_low_target): Likewise.
6605 * linux-tic6x-low.c (the_low_target): Likewise.
6606 * linux-tile-low.c (the_low_target): Likewise.
6607 * linux-x86-low.c (the_low_target): Likewise.
6608 * linux-xtensa-low.c (the_low_target): Likewise.
6610 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6612 * win32-low.c: Include "common-inferior.h".
6614 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6616 * inferiors.c (set_inferior_cwd): New function.
6617 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6618 (handle_query): Inform that QSetWorkingDir is supported.
6619 * win32-low.c (create_process): Pass the inferior's cwd to
6622 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6624 * inferiors.c (current_inferior_cwd): New global variable.
6625 (get_inferior_cwd): New function.
6626 * inferiors.h (struct process_info) <cwd>: New field.
6628 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6630 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6631 (OBS): Add gdb_tilde_expand.o.
6633 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6635 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6636 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6638 2017-09-29 Pedro Alves <palves@redhat.com>
6640 * ax.c (gdb_parse_agent_expr): Constify.
6641 * ax.h (gdb_parse_agent_expr): Constify.
6642 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6644 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6645 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6646 * remote-utils.h (read_ptid): Constify.
6647 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6648 (process_point_options, process_serial_event): Constify.
6649 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6650 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6651 (cmd_qtbuffer): Constify.
6653 2017-09-29 Pedro Alves <palves@redhat.com>
6655 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6658 2017-09-29 Pedro Alves <palves@redhat.com>
6660 * linux-low.c (handle_extended_wait): Pass parent thread instead
6661 of process to thread_db_notice_clone.
6662 * linux-low.h (thread_db_notice_clone): Replace parent process
6663 parameter with parent thread parameter.
6664 * thread-db.c (find_one_thread): Add comment.
6665 (thread_db_notice_clone): Replace parent process parameter with
6666 parent thread parameter. Temporarily switch to the parent thread.
6668 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6670 * gdbthread.h: Include "common-gdbthread.h".
6671 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6672 "if" when validating the ptid.
6673 * remote-utils.c: Include "gdbthread.h".
6674 (prepare_resume_reply): Use "switch_to_thread".
6675 * target.c (done_accessing_memory): Likewise.
6677 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6679 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6680 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6681 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6682 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6683 s390x-gs-linux64-ipa.o to ipa_obj.
6684 * linux-s390-low.c (HWCAP_S390_GS): New define.
6685 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6687 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6688 (s390_arch_setup): Check for guarded-storage support and choose
6690 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6691 init_registers_s390x_gs_linux64.
6692 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6694 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6695 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6697 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6699 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6701 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6703 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6704 (thread_db_thread_handle): Declare.
6705 * linux-low.c (linux_target_ops): Initialize thread_handle.
6706 * server.c (handle_qxfer_threads_worker): Add support for
6708 * target.h (struct target_ops): Add new function pointer,
6710 (target_thread_handle): Define.
6711 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6713 (thread_db_thread_handle): New function.
6715 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6717 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6718 * linux-low.h (thread_db_notice_clone): Declare.
6719 * thread-db.c (thread_db_notice_clone): New function.
6721 2017-09-21 Pedro Alves <palves@redhat.com>
6723 * server.c (gdb_read_memory, handle_status, process_serial_event)
6724 (handle_serial_event, handle_target_event): Adjust to
6725 set_desired_thread prototype change.
6726 * target.c (set_desired_thread): Remove 'use_general' parameter
6728 * target.h (set_desired_thread): Remove 'use_general' parameter.
6730 2017-09-20 Tom Tromey <tom@tromey.com>
6732 * target.c (target_terminal::terminal_state): Define.
6733 (target_terminal::init): Rename from target_terminal_init.
6734 (target_terminal::inferior): Rename from
6735 target_terminal_inferior.
6736 (target_terminal::ours): Rename from target_terminal_ours.
6737 (target_terminal::ours_for_output, target_terminal::info): New.
6739 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6741 * server.c (accumulate_file_name_length): Remove.
6742 (emit_dll_description): Adjust to std::string change.
6743 (handle_qxfer_libraries): Use std::string to hold document.
6745 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6747 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6748 return type of xml_escape_text.
6749 * server.c (emit_dll_description): Likewise.
6751 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6753 * server.c (captured_main): Accept argument for --selftest.
6754 Update run_tests call.
6755 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6756 when registering selftests.
6758 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6760 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6761 instead of "VEC" for "target_desc.reg_defs".
6762 (regcache_cpy): Likewise.
6763 (registers_to_string): Likewise.
6764 (registers_from_string): Likewise.
6765 (find_regno): Likewise.
6766 (supply_regblock): Likewise.
6767 (regcache_raw_read_unsigned): Likewise.
6768 * tdesc.c (init_target_desc): Likewise.
6769 (tdesc_create_reg): Likewise.
6770 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6771 (struct target_desc) <reg_defs>: Convert to "std::vector".
6772 (target_desc): Do not initialize "reg_defs".
6773 (~target_desc): Update code to use "std::vector" instead of "VEC"
6774 for "target_desc.reg_defs".
6775 (operator==): Likewise.
6777 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6779 * inferiors.h (thread_to_gdb_id): Remove.
6780 * inferiors.c (thread_to_gdb_id): Remove.
6781 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6782 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6783 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6785 * nto-low.c (nto_fetch_registers, nto_store_registers,
6786 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6788 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6790 * inferiors.h (gdb_id_to_thread_id): Remove.
6791 * inferiors.c (gdb_id_to_thread_id): Remove.
6792 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6793 removal. Move pid declaration closer to where it's used.
6795 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6797 * server.c (handle_detach): New function.
6798 (process_serial_event): Move code out, call handle_detach.
6800 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6802 * server.c (require_running): Rename to ...
6803 (require_running_or_return): ... this ...
6804 (require_running_or_break): ... and this.
6805 (handle_query, process_serial_event): Adjust.
6807 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6809 * linux-low.c (linux_set_resume_request): Remove unused
6812 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6814 * server.c (first_thread_of): Remove.
6815 (process_serial_event): Replace usage of first_thread_of with
6816 find_any_thread_of_pid.
6817 * tracepoint.c (same_process_p): Remove.
6818 (gdb_agent_about_to_close): Replace usage of same_process_p with
6819 find_any_thread_of_pid.
6820 * linux-x86-low.c (same_process_callback): Remove.
6821 (x86_arch_setup_process_callback): Replace usage of
6822 same_process_callback with find_any_thread_of_pid.
6823 * thread-db.c (any_thread_of): Remove.
6824 (switch_to_process): Replace usage of any_thread_of with
6825 find_any_thread_of_pid.
6826 * inferiors.c (thread_pid_matches_callback): Remove.
6827 (find_thread_process): Adjust to use find_any_thread_of_pid.
6829 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6831 * regcache.c (get_thread_regcache): Guard calls to "memset"
6834 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6836 * linux-low.c (handle_extended_wait): Use
6837 "allocate_target_description" instead of "XNEW".
6838 * linux-x86-low.c (initialize_low_arch): Likewise.
6840 2017-09-05 Yao Qi <yao.qi@linaro.org>
6842 * configure.srv (srv_i386_regobj): Remove.
6843 (srv_amd64_regobj): Remove.
6844 (srv_regobj): Set it to "" for x86 non-linux targets.
6845 * linux-x86-tdesc.c (i386_linux_read_description):
6846 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6847 (init_registers_i386): Remove the declaration.
6848 (tdesc_i386): Remove the declaration.
6849 (lynx_i386_arch_setup): Call i386_create_target_description.
6850 * nto-x86-low.c: Likewise.
6851 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6852 [!__x86_64__]: include arch/i386.h.
6853 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6855 2017-09-05 Yao Qi <yao.qi@linaro.org>
6857 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6858 i386/amd64-XXX-linux from it.
6860 2017-09-05 Yao Qi <yao.qi@linaro.org>
6862 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6864 (ipa_amd64_linux_regobj): Remove.
6865 (ipa_x32_linux_regobj): Remove.
6867 2017-09-05 Yao Qi <yao.qi@linaro.org>
6869 * Makefile.in (arch-amd64.o): New rule.
6870 * configure.srv: Append arch-amd64.o.
6871 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6872 (get_ipa_tdesc): Call amd64_linux_read_description.
6873 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6874 and init_registers_amd64_XXX.
6875 * linux-x86-low.c (x86_linux_read_description): Call
6876 amd64_linux_read_description.
6877 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6878 (initialize_low_arch): Don't call init_registers_x32_XXX and
6879 init_registers_amd64_XXX.
6880 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6881 and tdesc_amd64_XXX.
6882 [__x86_64__] (amd64_tdesc_test): New function.
6883 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6884 and init_registers_amd64_XXX.
6885 * linux-x86-tdesc.c: Include arch/amd64.h.
6886 (xcr0_to_tdesc_idx): New function.
6887 (i386_linux_read_description): New function.
6888 (amd64_get_ipa_tdesc_idx): New function.
6889 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6890 (amd64_get_ipa_tdesc): Declare.
6892 2017-09-05 Yao Qi <yao.qi@linaro.org>
6894 * configure.srv (srv_i386_linux_xmlfiles): Remove
6895 i386/i386-XXX-linux.xml from it.
6897 2017-09-05 Yao Qi <yao.qi@linaro.org>
6899 * configure.srv: Set srv_i386_linux_regobj empty if $development
6901 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6902 initialize_low_tdesc.
6903 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6904 with #if initialize_low_tdesc.
6905 * linux-x86-tdesc-selftest.c: New file.
6906 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6908 2017-09-05 Yao Qi <yao.qi@linaro.org>
6910 * Makefile.in (arch-i386.o): New rule.
6911 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6912 (x86_64-*-linux*): Likewise.
6913 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6914 include arch/i386.h.
6915 (i386_linux_read_description): Remove code and call
6916 i386_create_target_description.
6917 * tdesc.c (allocate_target_description): New function.
6918 * tdesc.h (set_tdesc_architecture): Remove declaration.
6919 (set_tdesc_osabi): Likewise.
6921 2017-09-05 Yao Qi <yao.qi@linaro.org>
6923 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6924 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6925 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6927 * server.c (get_features_xml): Call tdesc_get_features_xml.
6928 * tdesc.c (set_tdesc_architecture): New function.
6929 (set_tdesc_osabi): New function.
6930 (tdesc_get_features_xml): New function.
6931 (tdesc_create_feature): Add an argument.
6932 * tdesc.h (struct target_desc) <features>: New field.
6933 <arch, osabi>: New field.
6934 (~target_desc): xfree features, arch, and osabi.
6935 (target_desc::oerator==): Don't compare .xmltarget.
6936 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6937 (set_tdesc_osabi): Likewise.
6938 (tdesc_get_features_xml): Likewise.
6940 2017-09-05 Yao Qi <yao.qi@linaro.org>
6942 * linux-x86-tdesc.c: Include selftest.h.
6943 (i386_tdesc_test): New function.
6944 (initialize_low_tdesc): Call selftests::register_test.
6945 * tdesc.h: Include regdef.h.
6946 (target_desc): Override operator == and !=.
6948 2017-09-05 Yao Qi <yao.qi@linaro.org>
6950 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6951 (ipa_obj): Likewise.
6952 * linux-i386-ipa.c: Include common/x86-xstate.h
6953 (get_ipa_tdesc): Call i386_linux_read_description.
6954 (initialize_low_tracepoint): Don't call init_registers_XXX
6955 functions, call initialize_low_tdesc instead.
6956 * linux-x86-low.c (x86_linux_read_description): Call
6957 i386_linux_read_description.
6958 (initialize_low_arch): Don't call init_registers_i386_XXX
6959 functions, call initialize_low_tdesc.
6960 * linux-x86-tdesc.c: New file.
6961 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6962 (i386_get_ipa_tdesc_idx): Declare.
6963 (i386_get_ipa_tdesc): Declare.
6964 (initialize_low_tdesc): Declare.
6966 2017-09-05 Yao Qi <yao.qi@linaro.org>
6968 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6971 2017-09-05 Yao Qi <yao.qi@linaro.org>
6973 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6974 * regcache.c (get_thread_regcache): Use VEC_length.
6975 (init_register_cache): Likewise.
6976 (regcache_cpy): Likewise.
6977 (registers_to_string): Iterate reg_defs via VEC_iterate.
6978 (find_regno): Likewise.
6979 (find_register_by_number): Use VEC_index.
6980 (register_size): Call find_register_by_number.
6981 (register_data): Call find_register_by_number.
6982 (supply_regblock): Use VEC_length.
6983 (regcache_raw_read_unsigned): Likewise.
6984 * tdesc.c (init_target_desc): Iterate reg_defs via
6986 (default_description): Update initializer.
6987 (copy_target_description): Don't update field num_registers.
6988 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6989 <num_registers>: Remove.
6991 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6993 * Makefile.in (.SECONDARY): Define target.
6995 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6997 * linux-low.c (linux_wait_1): Adjust.
6998 * server.c (queue_stop_reply_callback): Adjust.
7000 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7002 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7003 QEnvironmentUnset and QEnvironmentReset packets.
7004 (handle_query): Inform remote that QEnvironmentHexEncoded,
7005 QEnvironmentUnset and QEnvironmentReset are supported.
7007 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7009 * inferiors.h (inferior_target_data): Rename to ...
7010 (thread_target_data): ... this.
7011 (inferior_regcache_data): Rename to ...
7012 (thread_regcache_data): ... this.
7013 (set_inferior_regcache_data): Rename to ...
7014 (set_thread_regcache_data): ... this.
7015 * inferiors.c (inferior_target_data): Rename to ...
7016 (thread_target_data): ... this.
7017 (inferior_regcache_data): Rename to ...
7018 (thread_regcache_data): ... this.
7019 (set_inferior_regcache_data): Rename to ...
7020 (set_thread_regcache_data): ... this.
7021 (free_one_thread): Update.
7022 * linux-low.h (get_thread_lwp): Update.
7023 * regcache.c (get_thread_regcache): Update.
7024 (regcache_invalidate_thread): Update.
7025 (free_register_cache_thread): Update.
7026 * win32-i386-low.c (update_debug_registers_callback): Update.
7027 (win32_get_current_dr): Update.
7028 * win32-low.c (thread_rec): Update.
7029 (delete_thread_info): Update.
7030 (continue_one_thread): Update.
7031 (suspend_one_thread): Update.
7033 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7035 * inferiors.c (set_inferior_target_data): Remove.
7036 * inferiors.h (set_inferior_target_data): Remove.
7038 2017-08-18 Yao Qi <yao.qi@linaro.org>
7040 * Makefile.in (OBS): Add selftest.o.
7041 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7042 * configure, config.in: Re-generated.
7043 * server.c: Include common/sefltest.h.
7044 (captured_main): Handle option --selftest.
7046 2017-08-09 Yao Qi <yao.qi@linaro.org>
7048 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7049 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7050 i386-avx-mpx.o and i386-mmx.o.
7051 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7052 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7053 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7054 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7055 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7056 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7057 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7058 i386/amd64-avx-mpx.xml.
7060 2017-08-09 Yao Qi <yao.qi@linaro.org>
7062 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7063 and x32-avx-avx512.o.
7064 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7065 i386/x32-avx-avx512.xml.
7067 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7069 * tracepoint.h (enum class fast_tpoint_collect_result): New
7071 (fast_tracepoint_collecting): Change return type to
7072 fast_tpoint_collect_result.
7073 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7074 * linux-low.h: Include tracepoint.h.
7075 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7076 fast_tpoint_collect_result.
7077 * linux-low.c (handle_tracepoints): Adjust.
7078 (linux_fast_tracepoint_collecting): Change return type to
7079 fast_tpoint_collect_result.
7080 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7081 linux_wait_1, stuck_in_jump_pad_callback,
7082 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7083 proceed_one_lwp): Adjust to type change.
7085 2017-07-10 Yao Qi <yao.qi@linaro.org>
7087 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7089 2017-06-29 Yao Qi <yao.qi@linaro.org>
7091 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7093 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7095 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7097 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7099 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7101 * linux-low.c (linux_create_inferior): Adjust code to access the
7102 environment information via 'gdb_environ' class.
7103 * lynx-low.c (lynx_create_inferior): Likewise.
7104 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7105 (get_environ): Return a pointer to 'our_environ'.
7106 (captured_main): Initialize 'our_environ'.
7107 * server.h (get_environ): Adjust prototype.
7108 * spu-low.c (spu_create_inferior): Adjust code to access the
7109 environment information via 'gdb_environ' class.
7111 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7113 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7114 usage of "register" keyword.
7116 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7118 * configure: Re-generate.
7120 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7122 * configure: Re-generate.
7124 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7126 * Makefile.in (COMPILE.pre): Add "-x c++".
7128 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7130 * fork-child.c: Conditionally include <signal.h>.
7132 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7134 * server.c (handle_general_set): Handle new packet
7135 "QStartupWithShell".
7136 (handle_query): Add "QStartupWithShell" to the list of supported
7138 (gdbserver_usage): Add help text explaining the
7139 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7141 (captured_main): Recognize and act upon the presence of the new
7144 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7145 Pedro Alves <palves@redhat.com>
7147 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7148 * configure: Regenerate.
7149 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7151 (i[34567]86-*-lynxos*): Likewise.
7152 (spu*-*-*): Likewise.
7153 * fork-child.c: New file.
7154 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7156 (linux_ptrace_fun): New function.
7157 (linux_create_inferior): Adjust function prototype to reflect
7158 change on "target.h". Adjust function code to use
7160 (linux_request_interrupt): Delete "signal_pid".
7161 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7162 (lynx_ptrace_fun): New function.
7163 (lynx_create_inferior): Adjust function prototype to reflect
7164 change on "target.h". Adjust function code to use
7166 * nto-low.c (nto_create_inferior): Adjust function prototype and
7167 code to reflect change on "target.h". Update comments.
7168 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7169 "common-terminal.h" and "environ.h".
7170 (terminal_fd): Moved to fork-child.c.
7171 (old_foreground_pgrp): Likewise.
7172 (restore_old_foreground_pgrp): Likewise.
7173 (last_status): Make it global.
7174 (last_ptid): Likewise.
7175 (our_environ): New variable.
7176 (startup_with_shell): Likewise.
7177 (program_name): Likewise.
7178 (program_argv): Rename to...
7179 (program_args): ...this.
7180 (wrapper_argv): New variable.
7181 (start_inferior): Delete function.
7182 (get_exec_wrapper): New function.
7183 (get_exec_file): Likewise.
7184 (get_environ): Likewise.
7185 (prefork_hook): Likewise.
7186 (post_fork_inferior): Likewise.
7187 (postfork_hook): Likewise.
7188 (postfork_child_hook): Likewise.
7189 (handle_v_run): Update code to deal with arguments coming from the
7190 remote host. Update calls from "start_inferior" to
7192 (captured_main): Likewise. Initialize environment variable. Call
7194 * server.h (post_fork_inferior): New prototype.
7195 (get_environ): Likewise.
7196 (last_status): Declare.
7197 (last_ptid): Likewise.
7198 (signal_pid): Likewise.
7199 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7200 (spu_ptrace_fun): New function.
7201 (spu_create_inferior): Adjust function prototype to reflect change
7202 on "target.h". Adjust function code to use "fork_inferior".
7203 * target.c (target_terminal_init): New function.
7204 (target_terminal_inferior): Likewise.
7205 (target_terminal_ours): Likewise.
7206 * target.h: Include <vector>.
7207 (struct target_ops) <create_inferior>: Update prototype.
7208 (create_inferior): Update macro.
7209 * utils.c (gdb_flush_out_err): New function.
7210 * win32-low.c (win32_create_inferior): Adjust function prototype
7211 and code to reflect change on "target.h".
7213 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7215 * inferiors.c (switch_to_thread): New function.
7217 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7219 * Makefile.in (SFILE): Add "common/job-control.c".
7220 (OBS): Add "job-control.o".
7222 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7224 * Makefile: Remove "@host_makefile_frag@".
7226 2017-05-05 Pedro Alves <palves@redhat.com>
7228 * configure: Regenerate.
7230 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7232 * configure: Regenerate.
7234 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7236 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7237 software_single_step change of return type to
7238 std::vector<CORE_ADDR>.
7239 * linux-low.c (install_software_single_step_breakpoints):
7241 * linux-low.h (install_software_single_step_breakpoints):
7244 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7246 * remote-utils.c: Include "gdb_termios.h" instead of
7248 * terminal.h: Delete file.
7250 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7252 * server.c: Include <vector>.
7253 <program_argv, wrapper_argv>: Convert to std::vector.
7254 (start_inferior): Rewrite function to use C++.
7255 (handle_v_run): Likewise. Update code that calculates the argv
7256 based on the vRun packet; use C++.
7257 (captured_main): Likewise.
7259 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7261 * server.c (handle_v_cont): Initialize thread_resume::thread
7264 2017-04-05 Pedro Alves <palves@redhat.com>
7266 * configure: Regenerate.
7268 2017-04-05 Pedro Alves <palves@redhat.com>
7270 * gdbreplay.c (sync_error): Constify.
7271 * linux-x86-low.c (push_opcode): Constify.
7273 2017-04-05 Pedro Alves <palves@redhat.com>
7275 * win32-low.c (get_child_debug_event)
7276 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7277 Report TARGET_WAITKIND_SPURIOUS instead.
7279 2017-04-05 Pedro Alves <palves@redhat.com>
7281 * remote-utils.c (remote_prepare, remote_open): Constify.
7282 * remote-utils.h (remote_prepare, remote_open): Constify.
7283 * server.c (captured_main): Constify 'port' handling.
7285 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7287 * Makefile.in (clean): Clear .deps.
7289 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7291 * .gitignore: Remove generated files, replace with wildcard.
7292 * (clean): Replace removal of generated files with wildcard.
7293 (version.c): Replace with...
7294 (version-generated.c): ...this.
7295 (xml-builtin.c): Replace with...
7296 (xml-builtin-generated.c): ...this.
7297 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7298 (%.c: *regformats*): Replace with...
7299 (%-generated.c: *regformats*): ...this.
7301 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7303 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7304 (xtensa_fill_gregset): Call collect_register_by_name for
7306 (xtensa_store_gregset): Call supply_register_by_name for
7309 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7311 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7312 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7313 (xtensa_store_gregset): Call supply_register for all registers in
7314 a0_regnum..a0_regnum + C0_NREGS range.
7316 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7318 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7319 (ax-ipa.o: ax.c): Remove.
7320 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7321 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7322 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7323 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7324 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7326 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7328 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7329 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7330 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7331 (errors-ipa.o: ../common/errors.c): Remove.
7332 (format-ipa.o: ../common/format.c): Remove.
7333 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7335 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7337 * Makefile.in (%-ipa.o: %.c): New rule.
7338 (tracepoint-ipa.o: tracepoint.c): Remove.
7339 (utils-ipa.o: utils.c): Remove.
7340 (remote-utils-ipa.o: remote-utils.c): Remove.
7341 (regcache-ipa.o: regcache.c): Remove.
7342 (i386-linux-ipa.o: i386-linux.c): Remove.
7343 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7344 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7345 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7346 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7347 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7348 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7349 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7350 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7351 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7352 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7353 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7354 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7355 (aarch64-ipa.o: aarch64.c): Remove.
7356 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7357 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7358 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7359 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7360 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7361 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7362 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7363 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7364 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7365 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7366 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7367 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7368 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7369 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7370 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7371 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7372 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7373 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7374 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7375 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7376 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7377 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7378 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7379 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7380 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7381 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7382 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7383 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7384 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7385 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7386 (tdesc-ipa.o: tdesc.c): Remove.
7387 (x32-linux-ipa.o: x32-linux.c): Remove.
7388 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7389 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7391 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7393 * Makefile.in (%.o: ../arch/%.c): New rule.
7394 (arm.o: ../arch/arm.c): Remove.
7395 (arm-linux.o: ../arch/arm-linux.c): Remove.
7396 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7397 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7399 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7401 * Makefile.in (%.o: ../nat/%.c): New rule.
7402 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7403 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7404 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7405 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7406 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7407 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7408 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7409 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7410 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7411 (linux-personality.o: ../nat/linux-personality.c): Remove.
7412 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7413 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7414 (x86-linux.o: ../nat/x86-linux.c): Remove.
7415 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7416 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7418 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7420 * Makefile.in (%.o: ../common/%.c): New rule.
7421 (signals.o: ../common/signals.c): Remove.
7422 (print-utils.o: ../common/print-utils.c): Remove.
7423 (rsp-low.o: ../common/rsp-low.c): Remove.
7424 (common-utils.o: ../common/common-utils.c): Remove.
7425 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7426 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7427 (vec.o: ../common/vec.c): Remove.
7428 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7429 (xml-utils.o: ../common/xml-utils.c): Remove.
7430 (ptid.o: ../common/ptid.c): Remove.
7431 (buffer.o: ../common/buffer.c): Remove.
7432 (format.o: ../common/format.c): Remove.
7433 (filestuff.o: ../common/filestuff.c): Remove.
7434 (agent.o: ../common/agent.c): Remove.
7435 (errors.o: ../common/errors.c): Remove.
7436 (environ.o: ../common/environ.c): Remove.
7437 (common-debug.o: ../common/common-debug.c): Remove.
7438 (cleanups.o: ../common/cleanups.c): Remove.
7439 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7440 (fileio.o: ../common/fileio.c): Remove.
7441 (common-regcache.o: ../common/common-regcache.c): Remove.
7442 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7443 (new-op.o: ../common/new-op.c): Remove.
7444 (btrace-common.o: ../common/btrace-common.c): Remove.
7446 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7448 * Makefile.in (%.o: ../target/%.c): New rule.
7449 (waitstatus.o: ../target/waitstatus.c): Remove.
7451 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7454 (%.c: ../regformats/%.dat,
7455 (%.c: ../regformats/arm/%.dat,
7456 (%.c: ../regformats/i386/%.dat,
7457 (%.c: ../regformats/rs6000/%.dat): New rules.
7458 (aarch64.c): Remove.
7459 (reg-arm.c): Remove.
7460 (arm-with-iwmmxt.c): Remove.
7461 (arm-with-vfpv2.c): Remove.
7462 (arm-with-vfpv3.c): Remove.
7463 (arm-with-neon.c): Remove.
7464 (reg-bfin.c): Remove.
7465 (reg-cris.c): Remove.
7466 (reg-crisv32.c): Remove.
7468 (i386-linux.c): Remove.
7469 (i386-avx.c): Remove.
7470 (i386-avx-linux.c): Remove.
7471 (i386-avx-avx512.c): Remove.
7472 (i386-avx-avx512-linux.c): Remove.
7473 (i386-mpx.c): Remove.
7474 (i386-mpx-linux.c): Remove.
7475 (i386-avx-mpx-avx512-pku.c): Remove.
7476 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7477 (i386-avx-mpx.c): Remove.
7478 (i386-avx-mpx-linux.c): Remove.
7479 (i386-mmx.c): Remove.
7480 (i386-mmx-linux.c): Remove.
7481 (reg-ia64.c): Remove.
7482 (reg-m32r.c): Remove.
7483 (reg-m68k.c): Remove.
7485 (mips-linux.c): Remove.
7486 (mips-dsp-linux.c): Remove.
7487 (mips64-linux.c): Remove.
7488 (mips64-dsp-linux.c): Remove.
7489 (nios2-linux.c): Remove.
7490 (powerpc-32.c): Remove.
7491 (powerpc-32l.c): Remove.
7492 (powerpc-altivec32l.c): Remove.
7493 (powerpc-cell32l.c): Remove.
7494 (powerpc-vsx32l.c): Remove.
7495 (powerpc-isa205-32l.c): Remove.
7496 (powerpc-isa205-altivec32l.c): Remove.
7497 (powerpc-isa205-vsx32l.c): Remove.
7498 (powerpc-e500l.c): Remove.
7499 (powerpc-64l.c): Remove.
7500 (powerpc-altivec64l.c): Remove.
7501 (powerpc-cell64l.c): Remove.
7502 (powerpc-vsx64l.c): Remove.
7503 (powerpc-isa205-64l.c): Remove.
7504 (powerpc-isa205-altivec64l.c): Remove.
7505 (powerpc-isa205-vsx64l.c): Remove.
7506 (s390-linux32.c): Remove.
7507 (s390-linux32v1.c): Remove.
7508 (s390-linux32v2.c): Remove.
7509 (s390-linux64.c): Remove.
7510 (s390-linux64v1.c): Remove.
7511 (s390-linux64v2.c): Remove.
7512 (s390-te-linux64.c): Remove.
7513 (s390-vx-linux64.c): Remove.
7514 (s390-tevx-linux64.c): Remove.
7515 (s390x-linux64.c): Remove.
7516 (s390x-linux64v1.c): Remove.
7517 (s390x-linux64v2.c): Remove.
7518 (s390x-te-linux64.c): Remove.
7519 (s390x-vx-linux64.c): Remove.
7520 (s390x-tevx-linux64.c): Remove.
7521 (tic6x-c64xp-linux.c): Remove.
7522 (tic6x-c64x-linux.c): Remove.
7523 (tic6x-c62x-linux.c): Remove.
7525 (reg-sparc64.c): Remove.
7526 (reg-spu.c): Remove.
7528 (amd64-linux.c): Remove.
7529 (amd64-avx.c): Remove.
7530 (amd64-avx-linux.c): Remove.
7531 (amd64-avx-avx512.c): Remove.
7532 (amd64-avx-avx512-linux.c): Remove.
7533 (amd64-mpx.c): Remove.
7534 (amd64-mpx-linux.c): Remove.
7535 (amd64-avx-mpx-avx512-pku.c): Remove.
7536 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7537 (amd64-avx-mpx.c): Remove.
7538 (amd64-avx-mpx-linux.c): Remove.
7540 (x32-linux.c): Remove.
7541 (x32-avx.c): Remove.
7542 (x32-avx-linux.c): Remove.
7543 (x32-avx-avx512.c): Remove.
7544 (x32-avx-avx512-linux.c): Remove.
7545 (reg-xtensa.c): Remove.
7546 (reg-tilegx.c): Remove.
7547 (reg-tilegx32.c): Remove.
7549 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7551 * Makefile.in (SFILES): Add "common/environ.c".
7552 (OBJS): Add "common/environ.h".
7554 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7556 * configure.ac: Check if the fs_base and gs_base members of
7557 `struct user_regs_struct' exist.
7558 * config.in: Regenerated.
7559 * configure: Likewise.
7561 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7563 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7565 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7566 (get_next_pcs_syscall_next_pc): Likewise.
7568 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7570 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7571 * nto-x86-low.c: Likewise.
7573 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7575 * Makefile.in: Include disable-implicit-rules.mk.
7577 2016-11-23 Pedro Alves <palves@redhat.com>
7579 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7580 (debug_vprintf): Use std::chrono::steady_clock instead of
7581 gettimeofday. Use '.' instead of ':'.
7582 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7583 (get_timestamp): Use std::chrono::steady_clock instead of
7586 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7588 * Makefile.in: Fix whitespace formatting.
7590 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7592 * Makefile.in (SFILES, OBS): Flatten list and order
7595 2016-11-23 Pedro Alves <palves@redhat.com>
7597 * event-loop.c (handle_file_event): Use warning.
7598 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7599 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7602 2016-11-23 Pedro Alves <palves@redhat.com>
7604 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7606 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7607 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7608 debug_printf and debug_flush for debug output.
7609 * server.c (handle_general_set): Likewise.
7610 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7613 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7615 * Makefile.in (.c.o): Replace rule with ...
7616 (%.o: %.c): ... this one.
7618 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7620 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7621 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7623 * configure.ac: Remove checks for the make program.
7624 * configure: Re-generate.
7626 2016-10-28 Pedro Alves <palves@redhat.com>
7628 * Makefile.in (CXX_DIALECT): Get from configure.
7629 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7630 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7631 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7632 * config.in: Regenerate.
7633 * configure: Regenerate.
7635 2016-10-27 Yao Qi <yao.qi@linaro.org>
7637 * linux-low.c (linux_supports_range_stepping): Return true if
7638 can_software_single_step return true.
7640 2016-10-27 Yao Qi <yao.qi@linaro.org>
7642 * inferiors.c (find_inferior_in_random): New function.
7643 * inferiors.h (find_inferior_in_random): Declare.
7644 * linux-low.c (linux_wait_for_event_filtered): Call
7645 find_inferior_in_random instead of find_inferior.
7647 2016-10-27 Yao Qi <yao.qi@linaro.org>
7649 * linux-low.c (linux_wait_1): If single-step breakpoints are
7650 inserted, remove them.
7652 2016-10-26 Pedro Alves <palves@redhat.com>
7654 * linux-low.c (handle_extended_wait): Link parent/child fork
7656 (linux_wait_1): Unlink them.
7657 (linux_set_resume_request): Ignore resume requests for
7658 already-resumed and unhandled fork child threads.
7659 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7660 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7662 (handle_v_requests) <vCont>: Don't call require_running.
7663 * server.h (in_queued_stop_replies): New declaration.
7665 2016-10-24 Yao Qi <yao.qi@linaro.org>
7668 * linux-aarch64-low.c (append_insns): Cast the return value to
7671 2016-10-10 Yao Qi <yao.qi@linaro.org>
7673 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7675 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7677 * target.c (target_supports_multi_process): New function, moved
7679 * target.h (target_supports_multi_process): ... here. Remove
7682 2016-10-05 Tom Tromey <tom@tromey.com>
7685 * tracepoint.c (handle_tracepoint_bkpts): Check
7686 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7688 2016-10-05 Yao Qi <yao.qi@linaro.org>
7690 * configure.srv: Update the path of arm-*.xml files.
7692 2016-10-05 Terry Guo <terry.guo@arm.com>
7693 Yao Qi <yao.qi@linaro.org>
7695 * Makefile.in: Adjust the path of rules.
7696 * configure.srv: Update the path of xml files.
7697 * regformats/arm-with-iwmmxt.dat: Regenerated.
7698 * regformats/arm-with-neon.dat: Likewise.
7699 * regformats/arm-with-vfpv2.dat: Likewise.
7700 * regformats/arm-with-vfpv3.dat Likewise.
7702 2016-09-30 Yao Qi <yao.qi@linaro.org>
7705 * target.c (target_stop_and_wait): Don't call
7706 target_continue_no_signal, use resume_stop instead.
7708 2016-09-26 Yao Qi <yao.qi@linaro.org>
7710 * linux-low.c (linux_wait_1): Call debug_exit.
7712 2016-09-23 Pedro Alves <palves@redhat.com>
7714 * Makefile.in (SFILES): Add common/new-op.c.
7715 (OBS): Add common/new-op.o.
7716 (new-op.o): New rule.
7718 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7720 * .gitinore: Ignore more files.
7722 2016-09-21 Yao Qi <yao.qi@linaro.org>
7724 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7727 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7729 * server.c (start_inferior): Call target_mourn_inferior instead of
7730 mourn_inferior; pass ptid_t argument to it.
7732 (handle_target_event): Likewise.
7733 * target.c (target_mourn_inferior): New function.
7734 * target.h (mourn_inferior): Delete macro.
7736 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7738 * linux-low.c (lwp_is_stepping): New function.
7740 2016-09-06 Carl Love <cel@us.ibm.com>
7742 * server.c (start_inferior): Fixed comment, requested comment change
7743 didn't get updated correctly. Removed reference to ptrace () call as
7744 it is only true on Linux systems.
7746 2016-09-06 Carl Love <cel@us.ibm.com>
7748 * server.c (start_inferior): Do not call
7749 function target_post_create_inferior () if the
7750 inferior process has already exited.
7752 2016-09-05 Pedro Alves <palves@redhat.com>
7754 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7755 (COMPILE.pre, CC_LD): Use CXX directly.
7756 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7757 * acinclude.m4: Don't include build-with-cxx.m4.
7758 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7759 * configure: Regenerate.
7761 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7764 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7765 call writing data to own_buf.
7767 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7769 * target.c (mywait): Call target_wait instead of
7771 (target_wait): New function.
7773 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7775 * server.c (start_inferior): New variable 'ptid'. Replace calls
7776 to the_target->resume by target_continue{,_no_signal}, depending
7778 * target.c (target_stop_and_wait): Call target_continue_no_signal
7779 instead of the_target->resume.
7780 (target_continue): New function.
7782 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7784 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7786 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7789 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7791 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7792 * linux-arm-low.c (ps_get_thread_area): Likewise.
7793 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7794 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7795 * linux-mips-low.c (ps_get_thread_area): Likewise.
7796 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7797 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7798 * linux-x86-low.c (ps_get_thread_area): Likewise.
7799 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7801 2016-08-19 Pedro Alves <palves@redhat.com>
7803 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7805 2016-08-19 Pedro Alves <palves@redhat.com>
7807 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7808 comment. Use memcpy instead of casting through unsigned long.
7810 2016-08-19 Pedro Alves <palves@redhat.com>
7812 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7813 allocating around 0x80000000.
7815 2016-08-19 Pedro Alves <palves@redhat.com>
7818 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7819 (x32-avx512-linux-ipa.o): New rules.
7820 * configure.ac (x86_64-*-linux*): New x32 check.
7821 * configure.srv (ipa_x32_linux_regobj): New.
7822 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7823 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7825 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7827 * configure: Regenerate.
7829 2016-08-09 Pedro Alves <palves@redhat.com>
7832 * Makefile.in (OBS): Add signals-state-save-restore.o.
7833 (signals-state-save-restore.o): New rule.
7834 * config.in: Regenerate.
7835 * configure: Regenerate.
7836 * linux-low.c: Include "signals-state-save-restore.h".
7837 (linux_create_inferior): Call
7838 restore_original_signals_state.
7839 * server.c: Include "dispositions-save-restore.h".
7840 (captured_main): Call save_original_signals_state.
7842 2016-08-05 Pedro Alves <palves@redhat.com>
7844 * configure: Regenerate.
7846 2016-08-04 Yao Qi <yao.qi@linaro.org>
7848 * linux-low.c (regsets_fetch_inferior_registers): Check
7849 errno is ESRCH or not.
7851 2016-08-02 Yao Qi <yao.qi@linaro.org>
7853 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7854 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7855 (thread_db_load_search): Update.
7856 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7857 td_ta_set_event and td_ta_event_getmsg.
7859 2016-07-26 Pedro Alves <palves@redhat.com>
7862 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7863 of unsigned long for 64-bit registers and use uint32_t instead of
7864 unsigned int for 32-bit registers.
7866 2016-07-26 Pedro Alves <palves@redhat.com>
7868 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7871 2016-07-21 Tom Tromey <tom@tromey.com>
7873 * configure: Rebuild.
7875 2016-07-21 Yao Qi <yao.qi@linaro.org>
7877 * mem-break.c (find_gdb_breakpoint): Cast bp to
7878 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7880 2016-07-21 Yao Qi <yao.qi@linaro.org>
7882 * server.c (handle_v_requests): Support s and S actions
7883 if target_supports_software_single_step return true.
7885 2016-07-21 Yao Qi <yao.qi@linaro.org>
7887 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7888 is resume_step, call maybe_hw_step.
7889 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7891 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7893 (proceed_one_lwp): If resume request is resume_step, install
7894 reinsert breakpoints and call maybe_hw_step.
7896 2016-07-21 Yao Qi <yao.qi@linaro.org>
7898 * linux-low.c (proceed_one_lwp): Declare.
7899 (linux_resume_one_thread): Remove local variable 'step'.
7900 Lift code enqueue signal. Call proceed_one_lwp instead of
7901 linux_resume_one_lwp.
7903 2016-07-21 Yao Qi <yao.qi@linaro.org>
7905 * linux-low.c (linux_resume_one_thread): Call
7906 enqueue_pending_signal.
7908 2016-07-21 Yao Qi <yao.qi@linaro.org>
7910 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7911 * inferiors.c (do_restore_current_thread_cleanup): New function.
7912 (make_cleanup_restore_current_thread): Likewise.
7913 * linux-low.c (install_software_single_step_breakpoints): Call
7914 make_cleanup_restore_current_thread. Switch current_thread to
7917 2016-07-21 Yao Qi <yao.qi@linaro.org>
7919 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7920 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7921 (clone_one_breakpoint): Likewise.
7922 (delete_reinsert_breakpoints): Change parameter to thread.
7924 (has_reinsert_breakpoints): Likewise.
7925 (uninsert_reinsert_breakpoints): Likewise.
7926 (reinsert_reinsert_breakpoints): Likewise.
7927 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7928 (delete_reinsert_breakpoints): Likewise.
7929 (reinsert_reinsert_breakpoints): Likewise.
7930 (uninsert_reinsert_breakpoints): Likewise.
7931 (has_reinsert_breakpoints): Likewise.
7933 2016-07-21 Yao Qi <yao.qi@linaro.org>
7935 * inferiors.c (get_thread_process): Make parameter const.
7936 * inferiors.h (get_thread_process): Update declaration.
7937 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7938 Add new parameters child_thread and parent_thread. Callers
7940 * mem-break.h (clone_all_breakpoints): Update declaration.
7942 2016-07-21 Yao Qi <yao.qi@linaro.org>
7944 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7945 <command_list, handler>: Remove.
7946 (struct gdb_breakpoint): New.
7947 (struct other_breakpoint): New.
7948 (struct reinsert_breakpoint): New.
7949 (is_gdb_breakpoint): New function.
7950 (any_persistent_commands): Update command_list if
7951 is_gdb_breakpoint returns true.
7952 (set_breakpoint): Create breakpoints according to their types.
7953 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7954 (set_gdb_breakpoint_1): Likewise.
7955 (set_gdb_breakpoint): Likewise.
7956 (clear_breakpoint_conditions): Change parameter type to
7957 'struct gdb_breakpoint *'.
7958 (clear_breakpoint_commands): Likewise.
7959 (clear_breakpoint_conditions_and_commands): Likewise.
7960 (add_condition_to_breakpoint): Likewise.
7961 (add_breakpoint_condition): Likewise.
7962 (add_commands_to_breakpoint): Likewise.
7963 (check_breakpoints): Check other_breakpoint.
7964 (clone_one_breakpoint): Clone breakpopint according to its type.
7965 * mem-break.h (struct gdb_breakpoint): Declare.
7966 (set_gdb_breakpoint): Update declaration.
7967 (clear_breakpoint_conditions_and_commands): Likewise.
7968 (add_breakpoint_condition): Likewise.
7969 (add_breakpoint_commands): Likewise.
7970 * server.c (process_point_options): Change parameter type to
7971 'struct gdb_breakpoint *'.
7973 2016-07-21 Yao Qi <yao.qi@linaro.org>
7975 * mem-break.c (set_breakpoint_at): Rename it to ...
7976 (set_breakpoint_type_at): ... it.
7977 (set_breakpoint_at): Call set_breakpoint_type_at.
7978 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7979 * mem-break.h (set_breakpoint_at): Update comments.
7981 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7983 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7985 (nios2_store_gregset): Likewise.
7987 2016-07-01 Pedro Alves <palves@redhat.com>
7988 Antoine Tremblay <antoine.tremblay@ericsson.com>
7990 * linux-low.c: Change interface to take the target lwp_info
7991 pointer directly and return void. Handle detaching from a zombie
7993 (linux_detach_lwp_callback): New function.
7994 (linux_detach): Detach from the leader thread after detaching from
7997 2016-06-28 Yao Qi <yao.qi@linaro.org>
7999 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8000 for variable new_offset.
8001 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8002 (aarch64_ftrace_insn_reloc_cb): Likewise.
8003 (aarch64_ftrace_insn_reloc_tb): Likewise.
8004 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8005 PRIx64 instead of PRIx32.
8007 2016-06-28 Yao Qi <yao.qi@linaro.org>
8009 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8010 (the_low_target): Install arm_get_syscall_trapinfo.
8012 2016-06-28 Yao Qi <yao.qi@linaro.org>
8014 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8016 (the_low_target): Install aarch64_get_syscall_trapinfo.
8018 2016-06-28 Yao Qi <yao.qi@linaro.org>
8020 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8022 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8023 Remove parameter sysno.
8024 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8027 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8029 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8030 (s390_emit_ne_goto): Likewise.
8031 (s390_emit_lt_goto): Likewise.
8032 (s390_emit_le_goto): Likewise.
8033 (s390_emit_gt_goto): Likewise.
8034 (s390_emit_ge_goto): Likewise.
8035 (s390x_emit_eq_goto): Likewise.
8036 (s390x_emit_ne_goto): Likewise.
8037 (s390x_emit_lt_goto): Likewise.
8038 (s390x_emit_le_goto): Likewise.
8039 (s390x_emit_gt_goto): Likewise.
8040 (s390x_emit_ge_goto): Likewise.
8041 (s390_emit_ops_impl): Mark variable static.
8042 (s390x_emit_ops): Likewise.
8044 2016-06-17 Yao Qi <yao.qi@linaro.org>
8046 * linux-low.c (handle_extended_wait): Call
8047 uninsert_reinsert_breakpoints for the parent process. Remove
8048 reinsert breakpoints from the child process. Reinsert them to
8049 the parent process when vfork is done.
8050 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8051 (reinsert_reinsert_breakpoints): New function.
8052 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8053 (reinsert_reinsert_breakpoints): Declare.
8055 2016-06-17 Yao Qi <yao.qi@linaro.org>
8057 * linux-low.c (handle_extended_wait): If the parent is doing
8058 step-over, remove the reinsert breakpoints from the forked child.
8060 2016-06-17 Yao Qi <yao.qi@linaro.org>
8062 * linux-low.c (unsuspend_all_lwps): Declare.
8063 (linux_low_filter_event): If thread exited, call finish_step_over.
8064 If step-over is finished, unsuspend other threads.
8066 2016-06-17 Yao Qi <yao.qi@linaro.org>
8068 * linux-low.c (linux_resume_one_lwp_throw): Assert
8069 has_reinsert_breakpoints returns false.
8070 * mem-break.c (delete_disabled_breakpoints): Assert
8071 bp type isn't reinsert_breakpoint.
8073 2016-06-17 Yao Qi <yao.qi@linaro.org>
8075 * linux-low.c (maybe_hw_step): New function.
8076 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8077 (finish_step_over): Switch current_thread to lwp temporarily,
8078 and assert has_reinsert_breakpoints returns true.
8079 (proceed_one_lwp): Call maybe_hw_step.
8080 * mem-break.c (has_reinsert_breakpoints): New function.
8081 * mem-break.h (has_reinsert_breakpoints): Declare.
8083 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8085 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8087 2016-05-17 Yao Qi <yao.qi@linaro.org>
8089 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8090 instead of find_inferior.
8092 2016-05-05 Yao Qi <yao.qi@linaro.org>
8094 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8095 Initialize res to zero.
8097 2016-05-05 Yao Qi <yao.qi@linaro.org>
8099 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8102 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8104 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8105 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8106 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8108 2016-04-28 Par Olsson <par.olsson@windriver.com>
8109 Simon Marchi <simon.marchi@ericsson.com>
8111 * tracepoint.c (write_inferior_int8): New function.
8112 (cmd_qtenable_disable): Write enable flag using
8113 write_inferior_int8.
8115 2016-04-25 Yao Qi <yao.qi@linaro.org>
8117 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8118 (need_step_over_p): Return zero if the LWP has pending signals
8119 can be delivered on software single step target.
8121 2016-04-25 Yao Qi <yao.qi@linaro.org>
8123 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8124 return instead of error.
8126 2016-04-22 Yao Qi <yao.qi@linaro.org>
8128 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8131 2016-04-22 Yao Qi <yao.qi@linaro.org>
8133 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8134 signal when stepping over breakpoint with software single
8137 2016-04-21 Pedro Alves <palves@redhat.com>
8139 * linux-s390-low.c (s390_collect_ptrace_register)
8140 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8142 (s390_check_regset): Use void * instead of gdb_byte *.
8144 2016-04-20 Pedro Alves <palves@redhat.com>
8146 * configure: Renegerate.
8148 2016-04-20 Yao Qi <yao.qi@linaro.org>
8150 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8151 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8153 (arm_store_gregset): Likewise.
8155 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8157 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8158 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8159 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8160 (amd64-avx-mpx-linux.c): New rules.
8161 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8162 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8163 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8164 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8165 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8166 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8167 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8168 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8169 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8170 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8171 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8172 * linux-x86-low.c (x86_linux_read_description): Add case for
8173 X86_XSTATE_AVX_MPX_MASK.
8174 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8175 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8176 init_registers_i386_avx_mpx_linux.
8177 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8178 (initialize_low_tracepoint): Call
8179 init_registers_i386_avx_mpx_linux.
8180 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8181 (initialize_low_tracepoint): Call
8182 init_registers_amd64_avx_mpx_linux.
8183 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8184 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8185 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8188 2016-04-18 Pedro Alves <palves@redhat.com>
8190 * configure: Regenerate.
8192 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8194 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8195 (aarch64_emit_sub): Likewise.
8197 2016-04-12 Pedro Alves <palves@redhat.com>
8199 * utils.c (prepare_to_throw_exception): Delete.
8201 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8203 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8205 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8207 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8209 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8211 * linux-aarch64-ipa.c: Add <elf.h> include.
8212 * linux-ppc-ipa.c: Add <elf.h> include.
8213 * linux-s390-ipa.c: Add <elf.h> include.
8215 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8217 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8218 (get_raw_reg_ptr): Likewise.
8219 (get_trace_state_variable_value_ptr): Likewise.
8220 (set_trace_state_variable_value_ptr): Likewise.
8221 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8224 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8225 Marcin Kościelnicki <koriakin@0x04.net>
8228 * linux-ppc-low.c (emit_insns): New function.
8229 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8230 (ppc_emit_prologue): New function.
8231 (ppc_emit_epilogue): New function.
8232 (ppc_emit_add): New function.
8233 (ppc_emit_sub): New function.
8234 (ppc_emit_mul): New function.
8235 (ppc_emit_lsh): New function.
8236 (ppc_emit_rsh_signed): New function.
8237 (ppc_emit_rsh_unsigned): New function.
8238 (ppc_emit_ext): New function.
8239 (ppc_emit_zero_ext): New function.
8240 (ppc_emit_log_not): New function.
8241 (ppc_emit_bit_and): New function.
8242 (ppc_emit_bit_or): New function.
8243 (ppc_emit_bit_xor): New function.
8244 (ppc_emit_bit_not): New function.
8245 (ppc_emit_equal): New function.
8246 (ppc_emit_less_signed): New function.
8247 (ppc_emit_less_unsigned): New function.
8248 (ppc_emit_ref): New function.
8249 (ppc_emit_const): New function.
8250 (ppc_emit_reg): New function.
8251 (ppc_emit_pop): New function.
8252 (ppc_emit_stack_flush): New function.
8253 (ppc_emit_swap): New function.
8254 (ppc_emit_stack_adjust): New function.
8255 (ppc_emit_call): New function.
8256 (ppc_emit_int_call_1): New function.
8257 (ppc_emit_void_call_2): New function.
8258 (ppc_emit_if_goto): New function.
8259 (ppc_emit_goto): New function.
8260 (ppc_emit_eq_goto): New function.
8261 (ppc_emit_ne_goto): New function.
8262 (ppc_emit_lt_goto): New function.
8263 (ppc_emit_le_goto): New function.
8264 (ppc_emit_gt_goto): New function.
8265 (ppc_emit_ge_goto): New function.
8266 (ppc_write_goto_address): New function.
8267 (ppc_emit_ops_impl): New static variable.
8268 (ppc64v1_emit_prologue): New function.
8269 (ppc64v2_emit_prologue): New function.
8270 (ppc64_emit_epilogue): New function.
8271 (ppc64_emit_add): New function.
8272 (ppc64_emit_sub): New function.
8273 (ppc64_emit_mul): New function.
8274 (ppc64_emit_lsh): New function.
8275 (ppc64_emit_rsh_signed): New function.
8276 (ppc64_emit_rsh_unsigned): New function.
8277 (ppc64_emit_ext): New function.
8278 (ppc64_emit_zero_ext): New function.
8279 (ppc64_emit_log_not): New function.
8280 (ppc64_emit_bit_and): New function.
8281 (ppc64_emit_bit_or): New function.
8282 (ppc64_emit_bit_xor): New function.
8283 (ppc64_emit_bit_not): New function.
8284 (ppc64_emit_equal): New function.
8285 (ppc64_emit_less_signed): New function.
8286 (ppc64_emit_less_unsigned): New function.
8287 (ppc64_emit_ref): New function.
8288 (ppc64_emit_const): New function.
8289 (ppc64v1_emit_reg): New function.
8290 (ppc64v2_emit_reg): New function.
8291 (ppc64_emit_pop): New function.
8292 (ppc64_emit_stack_flush): New function.
8293 (ppc64_emit_swap): New function.
8294 (ppc64v1_emit_call): New function.
8295 (ppc64v2_emit_call): New function.
8296 (ppc64v1_emit_int_call_1): New function.
8297 (ppc64v2_emit_int_call_1): New function.
8298 (ppc64v1_emit_void_call_2): New function.
8299 (ppc64v2_emit_void_call_2): New function.
8300 (ppc64_emit_if_goto): New function.
8301 (ppc64_emit_eq_goto): New function.
8302 (ppc64_emit_ne_goto): New function.
8303 (ppc64_emit_lt_goto): New function.
8304 (ppc64_emit_le_goto): New function.
8305 (ppc64_emit_gt_goto): New function.
8306 (ppc64_emit_ge_goto): New function.
8307 (ppc64v1_emit_ops_impl): New static variable.
8308 (ppc64v2_emit_ops_impl): New static variable.
8309 (ppc_emit_ops): New function.
8310 (linux_low_target): Wire in ppc_emit_ops.
8312 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8313 Marcin Kościelnicki <koriakin@0x04.net>
8316 * Makefile.in: Add powerpc-*-ipa.o
8317 * configure.srv: Add ipa_obj for powerpc*-linux.
8318 * linux-ppc-ipa.c: New file.
8319 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8321 (PPC_FIELD): New macro.
8322 (PPC_SEXT): New macro.
8323 (PPC_OP6): New macro.
8324 (PPC_BO): New macro.
8325 (PPC_LI): New macro.
8326 (PPC_BD): New macro.
8327 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8328 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8329 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8330 (ppc_get_thread_area): New function.
8331 (is_elfv2_inferior): New function.
8332 (gen_ds_form): New function.
8333 (GEN_STD): New macro.
8334 (GEN_STDU): New macro.
8335 (GEN_LD): New macro.
8336 (GEN_LDU): New macro.
8337 (gen_d_form): New function.
8338 (GEN_ADDI): New macro.
8339 (GEN_ADDIS): New macro.
8340 (GEN_LI): New macro.
8341 (GEN_LIS): New macro.
8342 (GEN_ORI): New macro.
8343 (GEN_ORIS): New macro.
8344 (GEN_LWZ): New macro.
8345 (GEN_STW): New macro.
8346 (GEN_STWU): New macro.
8347 (gen_xfx_form): New function.
8348 (GEN_MFSPR): New macro.
8349 (GEN_MTSPR): New macro.
8350 (GEN_MFCR): New macro.
8351 (GEN_MTCR): New macro.
8352 (GEN_SYNC): New macro.
8353 (GEN_LWSYNC): New macro.
8354 (gen_x_form): New function.
8355 (GEN_OR): New macro.
8356 (GEN_MR): New macro.
8357 (GEN_LWARX): New macro.
8358 (GEN_STWCX): New macro.
8359 (GEN_CMPW): New macro.
8360 (gen_md_form): New function.
8361 (GEN_RLDICL): New macro.
8362 (GEN_RLDICR): New macro.
8363 (gen_i_form): New function.
8365 (GEN_BL): New macro.
8366 (gen_b_form): New function.
8367 (GEN_BNE): New macro.
8368 (GEN_LOAD): New macro.
8369 (GEN_STORE): New macro.
8370 (gen_limm): New function.
8371 (gen_atomic_xchg): New function.
8372 (gen_call): New function.
8373 (ppc_relocate_instruction): New function.
8374 (ppc_install_fast_tracepoint_jump_pad): New function.
8375 (ppc_get_min_fast_tracepoint_insn_len): New function.
8376 (ppc_get_ipa_tdesc_idx): New function.
8377 (the_low_target): Wire in the new functions.
8378 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8380 * linux-ppc-tdesc.h: New file.
8382 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8384 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8385 (alloc_jump_pad_buffer): New function.
8386 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8387 (alloc_jump_pad_buffer): New function.
8388 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8389 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8390 (alloc_jump_pad_buffer): New function.
8391 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8392 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8393 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8394 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8396 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8398 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8399 * linux-amd64-ipa.c: Likewise.
8400 * linux-i386-ipa.c: Likewise.
8401 * linux-s390-ipa.c: Likewise.
8402 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8403 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8404 set_trace_state_variable_value_ptr.
8405 (struct ipa_sym_addresses): Likewise.
8406 (symbol_list): Likewise.
8407 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8408 accessing gdb_collect directly.
8409 (gdb_collect_ptr_type): New typedef.
8410 (get_raw_reg_ptr_type): New typedef.
8411 (get_trace_state_variable_value_ptr_type): New typedef.
8412 (set_trace_state_variable_value_ptr_type): New typedef.
8413 (gdb_collect_ptr): New global.
8414 (get_raw_reg_ptr): New global.
8415 (get_trace_state_variable_value_ptr): New global.
8416 (set_trace_state_variable_value_ptr): New global.
8417 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8418 accessing get_raw_reg directly.
8419 (get_get_tsv_func_addr): Likewise for
8420 get_trace_state_variable_value_ptr.
8421 (get_set_tsv_func_addr): Likewise for
8422 set_trace_state_variable_value_ptr.
8423 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8425 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8427 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8429 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8431 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8433 (relocate_instruction): Remove own_buf.
8434 * server.c (own_buf): Make global.
8435 (handle_v_requests): Make global.
8436 * server.h (own_buf): New declaration.
8437 (handle_v_requests): New prototype.
8439 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8442 * linux-s390-low.c (add_insns): New function.
8443 (s390_emit_prologue): New function.
8444 (s390_emit_epilogue): New function.
8445 (s390_emit_add): New function.
8446 (s390_emit_sub): New function.
8447 (s390_emit_mul): New function.
8448 (s390_emit_lsh): New function.
8449 (s390_emit_rsh_signed): New function.
8450 (s390_emit_rsh_unsigned): New function.
8451 (s390_emit_ext): New function.
8452 (s390_emit_log_not): New function.
8453 (s390_emit_bit_and): New function.
8454 (s390_emit_bit_or): New function.
8455 (s390_emit_bit_xor): New function.
8456 (s390_emit_bit_not): New function.
8457 (s390_emit_equal): New function.
8458 (s390_emit_less_signed): New function.
8459 (s390_emit_less_unsigned): New function.
8460 (s390_emit_ref): New function.
8461 (s390_emit_if_goto): New function.
8462 (s390_emit_goto): New function.
8463 (s390_write_goto_address): New function.
8464 (s390_emit_litpool): New function.
8465 (s390_emit_const): New function.
8466 (s390_emit_call): New function.
8467 (s390_emit_reg): New function.
8468 (s390_emit_pop): New function.
8469 (s390_emit_stack_flush): New function.
8470 (s390_emit_zero_ext): New function.
8471 (s390_emit_swap): New function.
8472 (s390_emit_stack_adjust): New function.
8473 (s390_emit_set_r2): New function.
8474 (s390_emit_int_call_1): New function.
8475 (s390_emit_void_call_2): New function.
8476 (s390_emit_eq_goto): New function.
8477 (s390_emit_ne_goto): New function.
8478 (s390_emit_lt_goto): New function.
8479 (s390_emit_le_goto): New function.
8480 (s390_emit_gt_goto): New function.
8481 (s390_emit_ge_goto): New function.
8482 (s390x_emit_prologue): New function.
8483 (s390x_emit_epilogue): New function.
8484 (s390x_emit_add): New function.
8485 (s390x_emit_sub): New function.
8486 (s390x_emit_mul): New function.
8487 (s390x_emit_lsh): New function.
8488 (s390x_emit_rsh_signed): New function.
8489 (s390x_emit_rsh_unsigned): New function.
8490 (s390x_emit_ext): New function.
8491 (s390x_emit_log_not): New function.
8492 (s390x_emit_bit_and): New function.
8493 (s390x_emit_bit_or): New function.
8494 (s390x_emit_bit_xor): New function.
8495 (s390x_emit_bit_not): New function.
8496 (s390x_emit_equal): New function.
8497 (s390x_emit_less_signed): New function.
8498 (s390x_emit_less_unsigned): New function.
8499 (s390x_emit_ref): New function.
8500 (s390x_emit_if_goto): New function.
8501 (s390x_emit_const): New function.
8502 (s390x_emit_call): New function.
8503 (s390x_emit_reg): New function.
8504 (s390x_emit_pop): New function.
8505 (s390x_emit_stack_flush): New function.
8506 (s390x_emit_zero_ext): New function.
8507 (s390x_emit_swap): New function.
8508 (s390x_emit_stack_adjust): New function.
8509 (s390x_emit_int_call_1): New function.
8510 (s390x_emit_void_call_2): New function.
8511 (s390x_emit_eq_goto): New function.
8512 (s390x_emit_ne_goto): New function.
8513 (s390x_emit_lt_goto): New function.
8514 (s390x_emit_le_goto): New function.
8515 (s390x_emit_gt_goto): New function.
8516 (s390x_emit_ge_goto): New function.
8517 (s390_emit_ops): New function.
8518 (struct linux_target_ops): Fill in emit_ops hook.
8520 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8523 * Makefile.in: Add s390 IPA files.
8524 * configure.srv: Build IPA for s390.
8525 * linux-s390-ipa.c: New file.
8526 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8527 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8528 (tdesc_s390_linux32): Likewise.
8529 (init_registers_s390_linux32v1): Likewise.
8530 (tdesc_s390_linux32v1): Likewise.
8531 (init_registers_s390_linux32v2): Likewise.
8532 (tdesc_s390_linux32v2): Likewise.
8533 (init_registers_s390_linux64): Likewise.
8534 (tdesc_s390_linux64): Likewise.
8535 (init_registers_s390_linux64v1): Likewise.
8536 (tdesc_s390_linux64v1): Likewise.
8537 (init_registers_s390_linux64v2): Likewise.
8538 (tdesc_s390_linux64v2): Likewise.
8539 (init_registers_s390_te_linux64): Likewise.
8540 (tdesc_s390_te_linux64): Likewise.
8541 (init_registers_s390_vx_linux64): Likewise.
8542 (tdesc_s390_vx_linux64): Likewise.
8543 (init_registers_s390_tevx_linux64): Likewise.
8544 (tdesc_s390_tevx_linux64): Likewise.
8545 (init_registers_s390x_linux64): Likewise.
8546 (tdesc_s390x_linux64): Likewise.
8547 (init_registers_s390x_linux64v1): Likewise.
8548 (tdesc_s390x_linux64v1): Likewise.
8549 (init_registers_s390x_linux64v2): Likewise.
8550 (tdesc_s390x_linux64v2): Likewise.
8551 (init_registers_s390x_te_linux64): Likewise.
8552 (tdesc_s390x_te_linux64): Likewise.
8553 (init_registers_s390x_vx_linux64): Likewise.
8554 (tdesc_s390x_vx_linux64): Likewise.
8555 (init_registers_s390x_tevx_linux64): Likewise.
8556 (tdesc_s390x_tevx_linux64): Likewise.
8557 (have_hwcap_s390_vx): New static variable.
8558 (s390_arch_setup): Fill have_hwcap_s390_vx.
8559 (s390_get_thread_area): New function.
8560 (s390_ft_entry_gpr_esa): New const.
8561 (s390_ft_entry_gpr_zarch): New const.
8562 (s390_ft_entry_misc): New const.
8563 (s390_ft_entry_fr): New const.
8564 (s390_ft_entry_vr): New const.
8565 (s390_ft_main_31): New const.
8566 (s390_ft_main_64): New const.
8567 (s390_ft_exit_fr): New const.
8568 (s390_ft_exit_vr): New const.
8569 (s390_ft_exit_misc): New const.
8570 (s390_ft_exit_gpr_esa): New const.
8571 (s390_ft_exit_gpr_zarch): New const.
8572 (append_insns): New function.
8573 (s390_relocate_instruction): New function.
8574 (s390_install_fast_tracepoint_jump_pad): New function.
8575 (s390_get_min_fast_tracepoint_insn_len): New function.
8576 (s390_get_ipa_tdesc_idx): New function.
8577 (struct linux_target_ops): Wire in the above functions.
8578 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8579 * linux-s390-tdesc.h: New file.
8581 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8583 * linux-s390-low.c (s390_supports_tracepoints): New function.
8584 (struct linux_target_ops): Fill supports_tracepoints hook.
8586 2016-03-18 Yao Qi <yao.qi@linaro.org>
8588 * linux-low.c (lwp_signal_can_be_delivered): New function.
8589 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8591 2016-03-18 Yao Qi <yao.qi@linaro.org>
8593 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8594 0 if signal is enqueued. Remove 'signal' from one debugging
8595 message. Move one debugging message to some lines below.
8596 Remove code setting 'signal' to 0.
8598 2016-03-18 Yao Qi <yao.qi@linaro.org>
8600 * linux-low.c (linux_low_filter_event): Remove redundant
8601 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8603 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8605 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8606 (struct linux_target_ops): Wire in the above.
8608 2016-03-03 Yao Qi <yao.qi@linaro.org>
8610 * linux-low.c: Update comments to start_step_over.
8612 2016-03-03 Yao Qi <yao.qi@linaro.org>
8615 * linux-low.c (handle_extended_wait): Set child suspended
8616 if event_lwp->bp_reinsert isn't zero.
8618 2016-03-02 Yao Qi <yao.qi@linaro.org>
8620 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8621 enqueue_pending_signal.
8623 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8625 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8628 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8630 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8631 (s390_regmap_3264) [!__s390x__]: New global.
8632 (s390_collect_ptrace_register): Skip map entries containing -1.
8633 (s390_supply_ptrace_register): Ditto.
8634 (s390_fill_gprs_high): New function.
8635 (s390_store_gprs_high): New function.
8636 (s390_regsets): Add NT_S390_HIGH_GPRS.
8637 (s390_get_hwcap): Enable on 31-bit.
8638 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8639 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8640 Detect NT_S390_HIGH_GPRS.
8641 (s390_usrregs_info_3264): Enable on 31-bit.
8642 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8643 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8645 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8648 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8649 * configure.srv: Ditto.
8650 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8651 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8652 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8653 (init_registers_amd64_linux): Remove prototype.
8654 (tdesc_amd64_linux): Remove declaration.
8655 (get_ipa_tdesc): New function.
8656 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8657 initialize remaining tdescs.
8658 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8659 (init_registers_i386_linux): Remove prototype.
8660 (tdesc_i386_linux): Remove declaration.
8661 (get_ipa_tdesc): New function.
8662 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8663 initialize remaining tdescs.
8664 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8665 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8666 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8667 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8668 (x86_get_ipa_tdesc_idx): New function.
8669 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8670 * linux-x86-tdesc.h: New file.
8671 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8672 (target_get_ipa_tdesc_idx): New macro.
8673 * tracepoint.c (ipa_tdesc_idx): New macro.
8674 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8675 (symbol_list): Add ipa_tdesc_idx.
8676 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8677 (ipa_tdesc): Remove.
8678 (ipa_tdesc_idx): New variable.
8679 (get_context_regcache): Use get_ipa_tdesc.
8680 (gdb_collect): Ditto.
8682 * tracepoint.h (get_ipa_tdesc): New prototype.
8683 (ipa_tdesc): Remove.
8685 2016-02-24 Pedro Alves <palves@redhat.com>
8687 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8688 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8689 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8690 Factor out common code between the USE_SIGTRAP_SIGINFO and
8691 !USE_SIGTRAP_SIGINFO blocks.
8692 (linux_low_filter_event): Call save_stop_reason instead of
8693 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8695 (linux_wait_1): Update comments.
8697 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8699 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8700 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8701 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8702 ppc_insert_point, ppc_remove_point.
8704 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8706 * linux-s390-low.c (s390_supports_z_point_type): New function.
8707 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8709 2016-02-16 Yao Qi <yao.qi@linaro.org>
8711 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8712 PC. Get pc from regcache_read_pc.
8714 2016-02-12 Yao Qi <yao.qi@linaro.org>
8716 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8717 or linux_get_pc_32bit.
8718 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8720 2016-02-12 Yao Qi <yao.qi@linaro.org>
8722 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8723 arm_linux_get_next_pcs_fixup.
8725 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8727 * tracepoint.c (x_tracepoint_action_download): Change
8728 write_inferior_data_ptr to write_inferior_data_pointer.
8729 (cmd_qtstart): Likewise.
8730 (write_inferior_data_ptr): Remove.
8731 (download_agent_expr): Change write_inferior_data_ptr to
8732 write_inferior_data_pointer.
8733 (download_tracepoint_1): Likewise.
8734 (download_tracepoint): Likewise.
8735 (download_trace_state_variables): Likewise.
8737 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8738 Marcin Kościelnicki <koriakin@0x04.net>
8740 * tracepoint.c (struct tracepoint_action_ops): Remove.
8741 (struct tracepoint_action): Remove ops.
8742 (m_tracepoint_action_download, r_tracepoint_action_download)
8743 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8744 size and offset accordingly.
8745 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8746 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8747 (tracepoint_action_send, tracepoint_action_download): New functions.
8748 Helpers for trace action handlers.
8749 (add_tracepoint_action): Remove setup actions ops.
8750 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8752 2016-02-10 Yao Qi <yao.qi@linaro.org>
8754 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8756 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8758 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8760 * configure: Regenerate.
8762 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8764 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8765 void * to gdb_byte *.
8766 * linux-low.c (siginfo_fixup): Likewise.
8767 (linux_xfer_siginfo): Likewise.
8768 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8770 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8772 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8774 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8776 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8778 * linux-x86-low.c [__x86_64__]: Include
8779 "nat/amd64-linux-siginfo.h".
8780 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8781 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8782 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8783 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8784 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8785 (cpt_si_fd, si_timerid, si_overrun): Move from
8786 nat/amd64-linux-siginfo.c.
8787 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8789 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8791 * server.c (skip_to_semicolon): Remove.
8792 (process_point_options): Use strchrnul instead of
8795 2016-01-26 Yao Qi <yao.qi@linaro.org>
8797 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8798 * linux-low.c (install_software_single_step_breakpoints): Don't
8799 call regcache_read_pc.
8800 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8803 2016-01-26 Yao Qi <yao.qi@linaro.org>
8805 * linux-low.c (install_software_single_step_breakpoints): Call
8806 regcache_read_pc instead of get_pc.
8808 2016-01-26 Yao Qi <yao.qi@linaro.org>
8810 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8811 (unblock_async_io): Rename to ...
8812 (block_unblock_async_io): ... it. New function.
8813 (enable_async_io): Don't install SIGIO handler. Unblock it
8815 (disable_async_io): Don't ignore SIGIO. Block it instead.
8816 (initialize_async_io): Install SIGIO handler. Don't call
8819 2016-01-26 Yao Qi <yao.qi@linaro.org>
8821 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8822 first character is '\003', call *the_target->request_interrupt.
8824 2016-01-25 Yao Qi <yao.qi@linaro.org>
8826 * remote-utils.c (new_thread_notify): Remove.
8827 (dead_thread_notify): Likewise.
8828 * remote-utils.h (new_thread_notify): Remove declaration.
8829 (dead_thread_notify): Likewise.
8831 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8833 * gdb.trace/pending.exp: Fix expected message on continue.
8835 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8837 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8838 it works properly on big-endian machines where sizeof (CORE_ADDR)
8841 2016-01-21 Pedro Alves <palves@redhat.com>
8843 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8844 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8845 * configure: Regenerate.
8847 2016-01-21 Yao Qi <yao.qi@linaro.org>
8849 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8850 is_thumb and set it according to CPSR saved on the stack.
8851 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8852 arm_sigreturn_next_pc.
8854 2016-01-18 Yao Qi <yao.qi@linaro.org>
8856 * linux-low.c (linux_set_pc_64bit): New function.
8857 (linux_get_pc_64bit): New function.
8858 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8860 * linux-sparc-low.c (debug_threads): Remove declaration.
8861 (sparc_get_pc): Remove.
8862 (the_low_target): Use linux_get_pc_64bit instead of
8864 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8865 (the_low_target): Use linux_get_pc_64bit and
8868 2016-01-18 Yao Qi <yao.qi@linaro.org>
8870 * linux-arm-low.c (debug_threads): Remove declaration.
8871 (arm_get_pc, arm_set_pc): Remove.
8872 (the_low_target): Use linux_get_pc_32bit and
8874 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8875 (the_low_target): Use linux_get_pc_32bit and
8877 * linux-cris-low.c (debug_threads): Remove declaration.
8878 (cris_get_pc, cris_set_pc,): Remove.
8879 (the_low_target): Use linux_get_pc_32bit and
8881 * linux-crisv32-low.c (debug_threads): Remove declaration.
8882 (cris_get_pc, cris_set_pc): Remove.
8883 (the_low_target): Use linux_get_pc_32bit and
8885 * linux-low.c: Include inttypes.h.
8886 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8887 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8888 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8889 (the_low_target): Use linux_get_pc_32bit and
8891 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8892 (the_low_target): Use linux_get_pc_32bit and
8894 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8895 (the_low_target): Use linux_get_pc_32bit and
8897 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8898 (the_low_target): Use linux_get_pc_32bit and
8900 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8901 (the_low_target): Use linux_get_pc_32bit and
8904 2016-01-18 Gary Benson <gbenson@redhat.com>
8906 * configure.ac (AC_FUNC_FORK): New check.
8907 * config.in: Regenerate.
8908 * configure: Likewise.
8910 2016-01-14 Yao Qi <yao.qi@linaro.org>
8912 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8913 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8914 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8915 arm_get_next_pcs_ctor.
8917 2016-01-12 Josh Stone <jistone@redhat.com>
8918 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8920 * inferiors.h: Include "gdb_vecs.h".
8921 (struct process_info): Add syscalls_to_catch.
8922 * inferiors.c (remove_process): Free syscalls_to_catch.
8923 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8924 syscall_return stops.
8925 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8926 * server.c (handle_general_set): Handle QCatchSyscalls.
8927 (handle_query): Report support for QCatchSyscalls.
8928 * target.h (struct target_ops): Add supports_catch_syscall.
8929 (target_supports_catch_syscall): New macro.
8930 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8931 (struct lwp_info): Add syscall_state.
8932 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8933 Maintain syscall_state and syscalls_to_catch across exec.
8934 (get_syscall_trapinfo): New function, proxy to the_low_target.
8935 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8936 (linux_low_filter_event): Toggle syscall_state entry/return for
8937 syscall traps, and set it ignored for all others.
8938 (gdb_catching_syscalls_p): New function.
8939 (gdb_catch_this_syscall_p): New function.
8940 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8941 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8942 (linux_supports_catch_syscall): New function.
8943 (linux_target_ops): Install it.
8944 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8945 (the_low_target): Install it.
8947 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8949 * acinclude.m4: Include new ../warning.m4 file.
8950 * configure: Regenerated.
8951 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8953 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8955 * ax.c (is_goto_target): Mark static.
8956 * linux-low.c (register_addr): Likewise.
8957 (linux_fetch_registers, linux_store_registers): Likewise.
8958 * mem-break.c (any_persistent_commands): Fix old prototype.
8959 (add_commands_to_breakpoint): Mark static.
8960 * regcache.c (find_register_by_name): Delete unused func.
8961 * remote-utils.c (hex_or_minus_one): Mark static.
8962 * server.c (monitor_show_help): Mark static.
8963 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8964 handle_v_requests): Likewise.
8966 2016-01-12 Pedro Alves <palves@redhat.com>
8968 Remove use of the registered trademark symbol throughout.
8970 2016-01-08 Yao Qi <yao.qi@linaro.org>
8972 * remote-utils.c (getpkt): If c is '\003', call target hook
8975 2016-01-06 Yao Qi <yao.qi@linaro.org>
8977 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8978 linux-aarch32-low.c.
8979 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8980 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8981 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8982 (thumb2_breakpoint): Declare.
8983 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8984 linux-aarch32-low.h.
8985 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8986 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8987 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8989 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8991 * gdbreplay.c (gdbreplay_version): Change copyright year in
8993 * server.c (gdbserver_version): Likewise.
8995 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8997 * server.c (crc32_table): Delete.
8998 (crc32): Use libiberty's xcrc32 function.
9000 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9002 * lynx-low.c (lynx_delete_thread_callback): New function.
9003 (lynx_mourn): Properly delete our process and all of its
9004 threads. Remove call to clear_inferiors.
9006 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9008 * target.c (thread_search_callback): Add check that
9009 the thread_stopped target callback is not NULL before
9012 2015-12-21 Yao Qi <yao.qi@linaro.org>
9014 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9017 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9019 * server.c (handle_query): Call target_supports_software_single_step.
9021 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9023 * linux-low.c (single_step): New function.
9024 (linux_resume_one_lwp_throw): Call single_step.
9025 (start_step_over): Likewise.
9027 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9029 * Makefile.in (SFILES): Append arch/arm-linux.c,
9030 arch/arm-get-next-pcs.c.
9031 (arm-linux.o): New rule.
9032 (arm-get-next-pcs.o): New rule.
9033 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9035 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9036 to linux-aarch32-low.c.
9037 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9038 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9039 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9040 (thumb2_breakpoint_len): Likewise.
9041 (arm_is_thumb_mode): Make non-static.
9042 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9043 from linux-aarch32-low.c.
9044 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9045 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9046 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9047 (thumb2_breakpoint_len): Likewise.
9048 (arm_is_thumb_mode): New declaration.
9049 * linux-arm-low.c: Include arch/arm-linux.h
9050 aarch/arm-get-next-pcs.h, sys/syscall.h.
9051 (get_next_pcs_ops): New struct.
9052 (get_next_pcs_addr_bits_remove): New function.
9053 (get_next_pcs_is_thumb): New function.
9054 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9055 (arm_sigreturn_next_pc): Likewise.
9056 (get_next_pcs_syscall_next_pc): Likewise.
9057 (arm_gdbserver_get_next_pcs): Likewise.
9058 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9060 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9061 * server.h: Include gdb_vecs.h.
9063 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9065 * Makefile.in (SFILES): Append common/common-regcache.c.
9066 (OBS): Append common-regcache.o.
9067 (common-regcache.o): New rule.
9068 * regcache.c (init_register_cache): Initialize cache to
9070 (regcache_raw_read_unsigned): New function.
9071 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9072 register_status enum.
9074 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9076 * linux-aarch64-low.c (the_low_targets): Rename
9077 breakpoint_reinsert_addr to get_next_pcs.
9078 * linux-arm-low.c (the_low_targets): Likewise.
9079 * linux-bfin-low.c (the_low_targets): Likewise.
9080 * linux-cris-low.c (the_low_targets): Likewise.
9081 * linux-crisv32-low.c (the_low_targets): Likewise.
9082 * linux-low.c (can_software_single_step): Likewise.
9083 (install_software_single_step_breakpoints): New function.
9084 (start_step_over): Use install_software_single_step_breakpoints.
9085 * linux-low.h: New CORE_ADDR vector.
9086 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9088 * linux-mips-low.c (the_low_targets): Likewise.
9089 * linux-nios2-low.c (the_low_targets): Likewise.
9090 * linux-sparc-low.c (the_low_targets): Likewise.
9092 2015-12-17 Pedro Alves <palves@redhat.com>
9094 * linux-low.c (linux_kill_one_lwp): Remove references to
9096 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9098 (linux_init_signals): Delete.
9099 (initialize_low): Adjust.
9100 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9102 2015-12-16 Pedro Alves <palves@redhat.com>
9104 * configure.ac (compiler warning flags): When testing a
9105 -Wno-foo option, check whether -Wfoo works instead.
9106 * configure: Regenerate.
9108 2015-12-11 Don Breazeal <donb@codesourcery.com>
9110 * server.c (process_serial_event): Don't exit from gdbserver
9111 in remote mode if there are still active inferiors.
9113 2015-12-11 Yao Qi <yao.qi@linaro.org>
9115 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9116 arm_breakpoint_at if the process is 32-bit.
9118 2015-12-11 Yao Qi <yao.qi@linaro.org>
9120 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9123 2015-12-07 Yao Qi <yao.qi@linaro.org>
9125 * configure.srv: Append arm.o to srv_tgtobj for
9126 aarch64*-*-linux* target.
9127 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9128 from linux-arm-low.c.
9129 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9130 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9131 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9132 (thumb2_breakpoint_len): Likewise.
9133 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9134 (arm_breakpoint_kinds): Likewise.
9135 (arm_breakpoint_kind_from_pc): Likewise.
9136 (arm_sw_breakpoint_from_kind): Likewise.
9137 (arm_breakpoint_kind_from_current_state): Likewise.
9138 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9139 (arm_sw_breakpoint_from_kind): Declare.
9140 (arm_breakpoint_kind_from_current_state): Declare.
9141 (arm_breakpoint_at): Declare.
9142 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9143 arm_sw_breakpoint_from_kind if process is 32-bit.
9144 (aarch64_breakpoint_kind_from_pc): New function.
9145 (aarch64_breakpoint_kind_from_current_state): New function.
9146 (the_low_target): Initialize fields breakpoint_kind_from_pc
9147 and breakpoint_kind_from_current_state.
9148 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9149 linux-aarch32-low.c.
9150 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9151 (arm_breakpoint, arm_breakpoint_len): Likewise.
9152 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9153 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9154 (arm_is_thumb_mode): Likewise.
9155 (arm_breakpoint_at): Likewise.
9156 (arm_breakpoint_kind_from_pc): Likewise.
9157 (arm_sw_breakpoint_from_kind): Likewise.
9158 (arm_breakpoint_kind_from_current_state): Likewise.
9161 2015-08-04 Yao Qi <yao.qi@linaro.org>
9163 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9164 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9165 * server.c (extended_protocol): Remove "static".
9166 * server.h (extended_protocol): Declare it.
9168 2015-12-04 Josh Stone <jistone@redhat.com>
9170 * target.h (struct target_ops) <arch_setup>: Rename to ...
9171 (struct target_ops) <post_create_inferior>: ... this.
9172 (target_arch_setup): Rename to ...
9173 (target_post_create_inferior): ... this, calling post_create_inferior.
9174 * server.c (start_inferior): Update target_arch_setup calls to
9175 target_post_create_inferior.
9176 * linux-low.c (linux_low_ptrace_options): Forward declare.
9177 (linux_arch_setup): Update its comment for general use.
9178 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9179 (struct linux_target_ops): Use linux_post_create_inferior.
9180 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9181 to post_create_inferior.
9182 * nto-low.c (struct nto_target_ops): Likewise.
9183 * spu-low.c (struct spu_target_ops): Likewise.
9184 * win32-low.c (struct win32_target_ops): Likewise.
9186 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9188 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9190 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9192 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9193 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9194 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9195 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9196 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9197 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9198 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9199 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9200 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9201 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9202 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9203 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9205 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9207 * linux-low.c (linux_look_up_symbols): Don't call
9208 linux_supports_traceclone.
9209 * linux-low.h (thread_db_init): Remove use_events argument.
9210 * thread-db.c (thread_db_use_event): Remove global variable.
9211 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9212 (struct thread_db) <td_create_bp>: Remove field.
9213 (thread_db_create_event): Remove function.
9214 (thread_db_enable_reporting): Likewise.
9215 (find_one_thread): Don't check for thread_db_use_events.
9216 (attach_thread): Likewise.
9217 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9218 (try_thread_db_load_1): Don't check for thread_db_use_events.
9219 (thread_db_init): Remove use_events argument and thread events
9221 (remove_thread_event_breakpoints): Remove function.
9222 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9224 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9226 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9228 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9229 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9230 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9231 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9232 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9234 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9236 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9237 * linux-low.c (can_hardware_single_step): Use
9238 supports_hardware_single_step.
9239 (can_software_single_step): New function.
9240 (start_step_over): Call can_software_single_step.
9241 (linux_supports_hardware_single_step): New function.
9242 (struct target_ops) <supports_software_single_step>: Initialize.
9243 * linux-low.h (struct linux_target_ops)
9244 <supports_hardware_single_step>: Initialize.
9245 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9246 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9247 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9248 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9249 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9250 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9251 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9252 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9253 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9254 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9256 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9257 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9259 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9260 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9261 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9263 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9264 * target.h (struct target_ops): <supports_software_single_step>:
9266 (target_supports_software_single_step): New macro.
9268 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9270 * linux-low.c (linux_wait_1): Fix pc advance condition.
9271 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9272 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9274 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9276 * linux-arm-low.c (arm_is_thumb_mode): New function.
9277 (arm_breakpoint_at): Use arm_is_thumb_mode.
9278 (arm_breakpoint_kind_from_current_state): New function.
9279 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9281 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9282 (linux_breakpoint_kind_from_current_state): New function.
9283 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9284 * linux-low.h (struct linux_target_ops)
9285 <breakpoint_kind_from_current_state>: New field.
9286 * target.h (struct target_ops): Likewise.
9287 (target_breakpoint_kind_from_current_state): New macro.
9289 2015-11-30 Pedro Alves <palves@redhat.com>
9291 * linux-low.c (linux_resume): Wake up the event loop before
9294 2015-11-30 Pedro Alves <palves@redhat.com>
9296 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9298 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9300 * target.c (struct thread_search): New structure.
9301 (thread_search_callback): New function.
9302 (prev_general_thread): New global.
9303 (prepare_to_access_memory, done_accessing_memory): New functions.
9304 * target.h (prepare_to_access_memory, done_accessing_memory):
9305 Replace macros with function declarations.
9307 2015-11-30 Pedro Alves <palves@redhat.com>
9310 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9311 report TARGET_WAITKIND_NO_RESUMED.
9312 * remote-utils.c (prepare_resume_reply): Handle
9313 TARGET_WAITKIND_NO_RESUMED.
9314 * server.c (report_no_resumed): New global.
9315 (handle_query) <qSupported>: Handle "no-resumed+". Report
9316 "no-resumed+" support.
9317 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9318 return error if the client doesn't support no-resumed events.
9319 (push_stop_notification): New function.
9320 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9321 events if the client supports them.
9323 2015-11-30 Pedro Alves <palves@redhat.com>
9325 * linux-low.c (thread_still_has_status_pending_p): Don't check
9327 (lwp_resumed): New function.
9328 (status_pending_p_callback): Return early if the LWP is not
9329 supposed to be resumed.
9331 2015-11-30 Pedro Alves <palves@redhat.com>
9333 * linux-low.c (handle_extended_wait): Assert that the LWP's
9334 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9335 thread create events, leave the new child's status pending.
9336 (linux_low_filter_event): If GDB wants to hear about thread exit
9337 events, leave the LWP marked dead and don't delete it.
9338 (linux_wait_for_event_filtered): Don't check for thread exit.
9339 (filter_exit_event): New function.
9340 (linux_wait_1): Use it, when returning an exit event.
9341 (linux_resume_one_lwp_throw): Assert that the LWP's
9342 waitstatus is TARGET_WAITKIND_IGNORE.
9343 * remote-utils.c (prepare_resume_reply): Handle
9344 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9345 * server.c (report_thread_events): New global.
9346 (handle_general_set): Handle QThreadEvents.
9347 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9348 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9349 TARGET_WAITKIND_THREAD_EXITED.
9350 * server.h (report_thread_events): Declare.
9352 2015-11-30 Pedro Alves <palves@redhat.com>
9354 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9355 the thread's last_resume_kind was resume_stop.
9357 2015-11-30 Pedro Alves <palves@redhat.com>
9359 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9362 2015-11-30 Pedro Alves <palves@redhat.com>
9364 * server.c (handle_v_requests): Handle vCtrlC.
9366 2015-11-30 Pedro Alves <palves@redhat.com>
9368 * gdbthread.h (find_any_thread_of_pid): Declare.
9369 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9371 * server.c (handle_query): If current_thread is NULL, look for
9372 another thread of the selected process.
9374 2015-11-26 Daniel Colascione <dancol@dancol.org>
9375 Simon Marchi <simon.marchi@ericsson.com>
9377 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9378 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9380 * target.h (struct target_ops) <thread_name>: New field.
9381 (target_thread_name): New macro.
9383 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9385 * regcache.h (regcache_invalidate_pid): Add declaration.
9386 * regcache.c (regcache_invalidate_pid): New function, extracted
9387 from regcache_invalidate.
9388 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9389 Add trivial documentation comment.
9390 * lynx-low.c: Use regcache_invalidate_pid instead of
9391 regcache_invalidate.
9393 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9395 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9396 and Elf64_auxv_t if the target is Android.
9398 2015-11-22 Doug Evans <xdje42@gmail.com>
9400 * target.h: #include <sys/types.h>.
9402 2015-11-19 Pedro Alves <palves@redhat.com>
9404 * linux-low.c (linux_process_qsupported): Change prototype.
9406 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9408 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9409 and adjust to loop over all features.
9410 * server.c (handle_query) <qSupported>: Adjust to call
9411 target_process_qsupported once, passing it a vector of unprocessed
9413 * target.h (struct target_ops) <process_qsupported>: Change
9415 (target_process_qsupported): Adjust.
9417 2015-11-19 Pedro Alves <palves@redhat.com>
9419 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9421 * configure: Regenerate.
9423 2015-11-19 Pedro Alves <palves@redhat.com>
9425 * configure: Regenerate.
9427 2015-11-19 Yao Qi <yao.qi@linaro.org>
9429 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9432 2015-11-19 Yao Qi <yao.qi@linaro.org>
9434 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9435 (struct aarch64_operand): Move enum out.
9437 2015-11-19 Yao Qi <yao.qi@linaro.org>
9439 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9440 struct user_fpsimd_state *.
9441 (aarch64_store_fpregset): Likewise.
9443 2015-11-19 Yao Qi <yao.qi@linaro.org>
9445 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9446 struct user_pt_regs *.
9447 (aarch64_store_gregset): Likewise.
9449 2015-11-18 Pedro Alves <palves@redhat.com>
9451 * Makefile.in (all_object_files): Add $IPA_OBJS.
9453 2015-11-17 Pedro Alves <palves@redhat.com>
9455 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9456 GDB_SIGNAL_0 and gdb_signal_to_string.
9458 2015-11-17 Pedro Alves <palves@redhat.com>
9460 * win32-low.c (handle_output_debug_string): Remove parameter.
9461 (win32_kill): Remove our_status local and adjust call to
9462 handle_output_debug_string.
9463 (get_child_debug_event): Adjust call to
9464 handle_output_debug_string.
9466 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9468 * linux-mips-low.c (mips_fill_gregset): Add cast.
9469 (mips_store_gregset): Likewise.
9470 (mips_fill_fpregset): Likewise.
9471 (mips_store_fpregset): Likewise.
9473 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9475 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9478 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9480 * linux-mips-low.c (mips_linux_new_thread): Change type of
9481 watch_type to enum target_hw_bp_type.
9483 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9485 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9486 Change return type to arm_hwbp_type.
9488 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9490 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9491 (arm_store_gregset): Likewise.
9492 * linux-arm-low.c (arm_get_hwcap): Likewise.
9493 (arm_read_description): Likewise.
9495 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9497 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9499 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9501 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9502 (ppc_fill_vsxregset): Likewise.
9503 (ppc_store_vsxregset): Likewise.
9504 (ppc_fill_vrregset): Likewise.
9505 (ppc_store_vrregset): Likewise.
9506 (ppc_fill_evrregset): Likewise.
9507 (ppc_store_evrregset): Likewise.
9509 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9511 * linux-ppc-low.c (ppc_usrregs_info): Remove
9512 forward-declaration.
9513 (ppc_arch_setup): Move lower in file.
9515 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9517 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9518 (ps_pdwrite): Likewise.
9520 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9522 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9523 to after assert checks.
9525 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9527 * proc-service.c (ps_pdread): Add/adjust casts.
9528 (ps_pdwrite): Add/adjust casts.
9530 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9532 * server.c (handle_search_memory_1): Cast return value of
9535 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9537 * server.c (write_qxfer_response): Change type of data to
9540 2015-10-29 Pedro Alves <palves@redhat.com>
9542 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9544 2015-10-29 Pedro Alves <palves@redhat.com>
9546 * tracepoint.c (clear_installed_tracepoints): Add casts.
9548 2015-10-29 Pedro Alves <palves@redhat.com>
9550 * server.c (handle_v_cont, process_serial_event): Add enum
9551 gdb_signal casts to signal parsing code.
9553 2015-10-29 Pedro Alves <palves@redhat.com>
9555 * linux-low.h (NULL_REGSET): Define.
9556 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9557 * linux-arm-low.c (arm_regsets): Likewise.
9558 * linux-crisv32-low.c (cris_regsets): Likewise.
9559 * linux-m68k-low.c (m68k_regsets): Likewise.
9560 * linux-mips-low.c (mips_regsets): Likewise.
9561 * linux-nios2-low.c (nios2_regsets): Likewise.
9562 * linux-ppc-low.c (ppc_regsets): Likewise.
9563 * linux-s390-low.c (s390_regsets): Likewise.
9564 * linux-sh-low.c (sh_regsets): Likewise.
9565 * linux-sparc-low.c (sparc_regsets): Likewise.
9566 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9567 * linux-tile-low.c (tile_regsets): Likewise.
9568 * linux-x86-low.c (x86_regsets): Likewise.
9569 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9571 2015-10-29 Pedro Alves <palves@redhat.com>
9573 * linux-low.h (NULL_REGSET): Define.
9574 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9575 * linux-arm-low.c (arm_regsets): Likewise.
9576 * linux-crisv32-low.c (cris_regsets): Likewise.
9577 * linux-m68k-low.c (m68k_regsets): Likewise.
9578 * linux-mips-low.c (mips_regsets): Likewise.
9579 * linux-nios2-low.c (nios2_regsets): Likewise.
9580 * linux-ppc-low.c (ppc_regsets): Likewise.
9581 * linux-s390-low.c (s390_regsets): Likewise.
9582 * linux-sh-low.c (sh_regsets): Likewise.
9583 * linux-sparc-low.c (sparc_regsets): Likewise.
9584 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9585 * linux-tile-low.c (tile_regsets): Likewise.
9586 * linux-x86-low.c (x86_regsets): Likewise.
9587 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9589 2015-10-26 Doug Evans <dje@google.com>
9591 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9593 2015-10-26 Doug Evans <dje@google.com>
9595 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9597 2015-10-26 Doug Evans <dje@google.com>
9599 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9601 (attach_thread, find_new_threads_callback): Ditto.
9603 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9605 * mem-break.h (set_breakpoint_data): Remove.
9607 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9610 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9611 (initialize_low): Remove set_breakpoint_data call.
9612 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9613 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9614 (initialize_low): Remove set_breakpoint_data call.
9615 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9616 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9617 (initialize_low): Remove set_breakpoint_data call.
9619 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9621 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9622 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9623 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9624 * target.h (target_breakpoint_kind_from_pc): New macro.
9626 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9628 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9629 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9630 the default breakpoint kind.
9632 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9634 * linux-arm-low.c (arm_supports_z_point_type): Add software
9637 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9639 * linux-arm-low.c: Refactor breakpoint definitions.
9640 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9641 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9643 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9645 * Makefile.in: Add arm.c/o.
9646 * configure.srv: Likewise.
9647 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9648 (arm_breakpoint_kind_from_pc): New function.
9649 (arm_sw_breakpoint_from_kind): Return proper kind.
9650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9652 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9654 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9656 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9657 (struct raw_breakpoint) <size>: Remove.
9658 (struct raw_breakpoint) <kind>: Add.
9659 (bp_size): New function.
9660 (bp_opcode): Likewise.
9661 (find_raw_breakpoint_at): Adjust for kind.
9662 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9663 (remove_memory_breakpoint): Adjust for kind call bp_size.
9664 (set_raw_breakpoint_at): Adjust for kind.
9665 (set_breakpoint): Likewise.
9666 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9667 (delete_raw_breakpoint): Adjust for kind.
9668 (delete_breakpoint): Likewise.
9669 (find_gdb_breakpoint): Likewise.
9670 (set_gdb_breakpoint_1): Likewise.
9671 (set_gdb_breakpoint): Likewise.
9672 (delete_gdb_breakpoint_1): Likewise.
9673 (delete_gdb_breakpoint): Likewise.
9674 (uninsert_raw_breakpoint): Likewise.
9675 (reinsert_raw_breakpoint): Likewise.
9676 (set_breakpoint_data): Remove.
9677 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9678 (check_mem_read): Adjust for kind call bp_size.
9679 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9680 (clone_one_breakpoint): Adjust for kind.
9681 * mem-break.h (set_gdb_breakpoint): Likewise.
9682 (delete_gdb_breakpoint): Likewise.
9683 * server.c (process_serial_event): Likewise.
9685 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9687 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9688 (struct linux_target_ops) <breakpoint>: Remove.
9689 (struct linux_target_ops) <breakpoint_len>: Remove.
9690 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9691 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9692 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9693 (arm_sw_breakpoint_from_kind): New function.
9694 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9695 (struct linux_target_ops) <breakpoint>: Remove.
9696 (struct linux_target_ops) <breakpoint_len>: Remove.
9697 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9698 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9699 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9700 (struct linux_target_ops) <breakpoint>: Remove.
9701 (struct linux_target_ops) <breakpoint_len>: Remove.
9702 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9703 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9704 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9705 (struct linux_target_ops) <breakpoint>: Remove.
9706 (struct linux_target_ops) <breakpoint_len>: Remove.
9707 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9708 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9709 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9710 and sw_breakpoint_from_kind to increment the pc.
9711 (linux_breakpoint_kind_from_pc): New function.
9712 (linux_sw_breakpoint_from_kind): New function.
9713 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9714 (initialize_low): Call breakpoint_kind_from_pc and
9715 sw_breakpoint_from_kind to replace breakpoint_data/len.
9716 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9718 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9719 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9720 (struct linux_target_ops) <breakpoint>: Remove.
9721 (struct linux_target_ops) <breakpoint_len>: Remove.
9722 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9723 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9724 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9725 (struct linux_target_ops) <breakpoint>: Remove.
9726 (struct linux_target_ops) <breakpoint_len>: Remove.
9727 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9728 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9729 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9730 (struct linux_target_ops) <breakpoint>: Remove.
9731 (struct linux_target_ops) <breakpoint_len>: Remove.
9732 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9733 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9734 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9735 (struct linux_target_ops) <breakpoint>: Remove.
9736 (struct linux_target_ops) <breakpoint_len>: Remove.
9737 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9738 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9739 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9740 (struct linux_target_ops) <breakpoint>: Remove.
9741 (struct linux_target_ops) <breakpoint_len>: Remove.
9742 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9743 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9744 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9745 (struct linux_target_ops) <breakpoint>: Remove.
9746 (struct linux_target_ops) <breakpoint_len>: Remove.
9747 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9748 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9749 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9750 (struct linux_target_ops) <breakpoint>: Remove.
9751 (struct linux_target_ops) <breakpoint_len>: Remove.
9752 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9753 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9754 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9755 (struct linux_target_ops) <breakpoint>: Remove.
9756 (struct linux_target_ops) <breakpoint_len>: Remove.
9757 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9758 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9759 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9760 (struct linux_target_ops) <breakpoint>: Remove.
9761 (struct linux_target_ops) <breakpoint_len>: Remove.
9762 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9763 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9764 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9765 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9766 (struct linux_target_ops) <breakpoint>: Remove.
9767 (struct linux_target_ops) <breakpoint_len>: Remove.
9768 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9769 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9770 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9771 (struct linux_target_ops) <breakpoint>: Remove.
9772 (struct linux_target_ops) <breakpoint_len>: Remove.
9773 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9774 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9776 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9778 * linux-cris-low.c (cris_get_pc): Remove void arg.
9780 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9782 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9785 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9787 * inferiors.c (thread_pid_matches_callback): New function.
9788 (find_thread_process): New function.
9789 (remove_thread): Reset current_thread.
9790 (remove_process): Assert threads have been removed first.
9792 2015-10-15 Yao Qi <yao.qi@linaro.org>
9794 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9796 (aarch64_remove_point): Likewise.
9797 * regcache.c (regcache_register_size): New function.
9799 2015-10-12 Yao Qi <yao.qi@linaro.org>
9801 * linux-aarch64-low.c: Update all callers as emit_load_store
9802 is renamed to aarch64_emit_load_store.
9804 2015-10-12 Yao Qi <yao.qi@linaro.org>
9806 * linux-aarch64-low.c: Update all callers of function renaming
9807 from emit_insn to aarch64_emit_insn.
9809 2015-10-12 Yao Qi <yao.qi@linaro.org>
9811 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9812 arch/aarch64-insn.h.
9813 (struct aarch64_memory_operand): Likewise.
9815 (emit_insn): Move to arch/aarch64-insn.c.
9816 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9817 (emit_load_store): Move to arch/aarch64-insn.c.
9818 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9819 (can_encode_int32): Remove.
9821 2015-10-12 Yao Qi <yao.qi@linaro.org>
9823 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9824 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9825 (aarch64_relocate_instruction): Likewise.
9826 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9827 (struct aarch64_insn_visitor): Likewise.
9829 2015-10-12 Yao Qi <yao.qi@linaro.org>
9831 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9832 (struct aarch64_insn_visitor): New.
9833 (struct aarch64_insn_relocation_data): New.
9834 (aarch64_ftrace_insn_reloc_b): New function.
9835 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9836 (aarch64_ftrace_insn_reloc_cb): Likewise.
9837 (aarch64_ftrace_insn_reloc_tb): Likewise.
9838 (aarch64_ftrace_insn_reloc_adr): Likewise.
9839 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9840 (aarch64_ftrace_insn_reloc_others): Likewise.
9842 (aarch64_relocate_instruction): Use visitor.
9844 2015-10-12 Yao Qi <yao.qi@linaro.org>
9846 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9847 int. Add argument buf.
9848 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9849 aarch64_relocate_instruction.
9851 2015-10-12 Yao Qi <yao.qi@linaro.org>
9853 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9854 argument insn. Remove local variable insn. Don't call
9856 (aarch64_install_fast_tracepoint_jump_pad): Call
9859 2015-09-30 Yao Qi <yao.qi@linaro.org>
9861 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9862 (emit_load_store_pair): Likewise.
9864 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9866 * dll.c (match_dll): Add cast(s).
9867 (unloaded_dll): Likewise.
9868 * linux-low.c (second_thread_of_pid_p): Likewise.
9869 (delete_lwp_callback): Likewise.
9870 (count_events_callback): Likewise.
9871 (select_event_lwp_callback): Likewise.
9872 (linux_set_resume_request): Likewise.
9873 * server.c (accumulate_file_name_length): Likewise.
9874 (emit_dll_description): Likewise.
9875 (handle_qxfer_threads_worker): Likewise.
9876 (visit_actioned_threads): Likewise.
9877 * thread-db.c (any_thread_of): Likewise.
9878 * tracepoint.c (same_process_p): Likewise.
9879 (match_blocktype): Likewise.
9880 (build_traceframe_info_xml): Likewise.
9882 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9884 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9886 (gdb_unparse_agent_expr): Likewise.
9887 * hostio.c (require_data): Likewise.
9888 (handle_pread): Likewise.
9889 * linux-low.c (disable_regset): Likewise.
9890 (fetch_register): Likewise.
9891 (store_register): Likewise.
9892 (get_dynamic): Likewise.
9893 (linux_qxfer_libraries_svr4): Likewise.
9894 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9895 (set_fast_tracepoint_jump): Likewise.
9896 (uninsert_fast_tracepoint_jumps_at): Likewise.
9897 (reinsert_fast_tracepoint_jumps_at): Likewise.
9898 (validate_inserted_breakpoint): Likewise.
9899 (clone_agent_expr): Likewise.
9900 * regcache.c (init_register_cache): Likewise.
9901 * remote-utils.c (putpkt_binary_1): Likewise.
9902 (decode_M_packet): Likewise.
9903 (decode_X_packet): Likewise.
9904 (look_up_one_symbol): Likewise.
9905 (relocate_instruction): Likewise.
9906 (monitor_output): Likewise.
9907 * server.c (handle_search_memory): Likewise.
9908 (handle_qxfer_exec_file): Likewise.
9909 (handle_qxfer_libraries): Likewise.
9910 (handle_qxfer): Likewise.
9911 (handle_query): Likewise.
9912 (handle_v_cont): Likewise.
9913 (handle_v_run): Likewise.
9914 (captured_main): Likewise.
9915 * target.c (write_inferior_memory): Likewise.
9916 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9917 * tracepoint.c (init_trace_buffer): Likewise.
9918 (add_tracepoint_action): Likewise.
9919 (add_traceframe): Likewise.
9920 (add_traceframe_block): Likewise.
9921 (cmd_qtdpsrc): Likewise.
9922 (cmd_qtdv): Likewise.
9923 (cmd_qtstatus): Likewise.
9924 (response_source): Likewise.
9925 (response_tsv): Likewise.
9926 (cmd_qtnotes): Likewise.
9927 (gdb_collect): Likewise.
9928 (initialize_tracepoint): Likewise.
9930 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9932 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9933 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9934 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9936 (enum aarch64_condition_codes): New enum.
9937 (w0): New static global.
9940 (struct aarch64_memory_operand) <type>: New
9941 MEMORY_OPERAND_POSTINDEX type.
9942 (postindex_memory_operand): New helper function.
9943 (emit_ret): New function.
9944 (emit_load_store_pair): New function, factored out of emit_stp
9945 with support for MEMORY_OPERAND_POSTINDEX.
9946 (emit_stp): Rewrite using emit_load_store_pair.
9947 (emit_ldp): New function.
9948 (emit_load_store): Likewise.
9949 (emit_ldr): Mention post-index instruction in comment.
9950 (emit_ldrh): New function.
9951 (emit_ldrb): New function.
9952 (emit_ldrsw): Mention post-index instruction in comment.
9953 (emit_str): Likewise.
9954 (emit_subs): New function.
9955 (emit_cmp): Likewise.
9956 (emit_and): Likewise.
9957 (emit_orr): Likewise.
9958 (emit_orn): Likewise.
9959 (emit_eor): Likewise.
9960 (emit_mvn): Likewise.
9961 (emit_lslv): Likewise.
9962 (emit_lsrv): Likewise.
9963 (emit_asrv): Likewise.
9964 (emit_mul): Likewise.
9965 (emit_sbfm): Likewise.
9966 (emit_sbfx): Likewise.
9967 (emit_ubfm): Likewise.
9968 (emit_ubfx): Likewise.
9969 (emit_csinc): Likewise.
9970 (emit_cset): Likewise.
9971 (emit_nop): Likewise.
9972 (emit_ops_insns): New helper function.
9973 (emit_pop): Likewise.
9974 (emit_push): Likewise.
9975 (aarch64_emit_prologue): New function.
9976 (aarch64_emit_epilogue): Likewise.
9977 (aarch64_emit_add): Likewise.
9978 (aarch64_emit_sub): Likewise.
9979 (aarch64_emit_mul): Likewise.
9980 (aarch64_emit_lsh): Likewise.
9981 (aarch64_emit_rsh_signed): Likewise.
9982 (aarch64_emit_rsh_unsigned): Likewise.
9983 (aarch64_emit_ext): Likewise.
9984 (aarch64_emit_log_not): Likewise.
9985 (aarch64_emit_bit_and): Likewise.
9986 (aarch64_emit_bit_or): Likewise.
9987 (aarch64_emit_bit_xor): Likewise.
9988 (aarch64_emit_bit_not): Likewise.
9989 (aarch64_emit_equal): Likewise.
9990 (aarch64_emit_less_signed): Likewise.
9991 (aarch64_emit_less_unsigned): Likewise.
9992 (aarch64_emit_ref): Likewise.
9993 (aarch64_emit_if_goto): Likewise.
9994 (aarch64_emit_goto): Likewise.
9995 (aarch64_write_goto_address): Likewise.
9996 (aarch64_emit_const): Likewise.
9997 (aarch64_emit_call): Likewise.
9998 (aarch64_emit_reg): Likewise.
9999 (aarch64_emit_pop): Likewise.
10000 (aarch64_emit_stack_flush): Likewise.
10001 (aarch64_emit_zero_ext): Likewise.
10002 (aarch64_emit_swap): Likewise.
10003 (aarch64_emit_stack_adjust): Likewise.
10004 (aarch64_emit_int_call_1): Likewise.
10005 (aarch64_emit_void_call_2): Likewise.
10006 (aarch64_emit_eq_goto): Likewise.
10007 (aarch64_emit_ne_goto): Likewise.
10008 (aarch64_emit_lt_goto): Likewise.
10009 (aarch64_emit_le_goto): Likewise.
10010 (aarch64_emit_gt_goto): Likewise.
10011 (aarch64_emit_ge_got): Likewise.
10012 (aarch64_emit_ops_impl): New static global variable.
10013 (aarch64_emit_ops): New target function, return
10014 &aarch64_emit_ops_impl.
10015 (struct linux_target_ops): Install it.
10017 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10019 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10020 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10022 * linux-aarch64-ipa.c: New file.
10023 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10025 (aarch64_get_thread_area): New target method.
10026 (extract_signed_bitfield): New helper function.
10027 (aarch64_decode_ldr_literal): New function.
10028 (enum aarch64_opcodes): New enum.
10029 (struct aarch64_register): New struct.
10030 (struct aarch64_operand): New struct.
10031 (x0): New static global.
10040 (aarch64_register): New helper function.
10041 (register_operand): Likewise.
10042 (immediate_operand): Likewise.
10043 (struct aarch64_memory_operand): New struct.
10044 (offset_memory_operand): New helper function.
10045 (preindex_memory_operand): Likewise.
10046 (enum aarch64_system_control_registers): New enum.
10047 (ENCODE): New macro.
10048 (emit_insn): New helper function.
10049 (emit_b): New function.
10050 (emit_bcond): Likewise.
10051 (emit_cb): Likewise.
10052 (emit_tb): Likewise.
10053 (emit_blr): Likewise.
10054 (emit_stp): Likewise.
10055 (emit_ldp_q_offset): Likewise.
10056 (emit_stp_q_offset): Likewise.
10057 (emit_load_store): Likewise.
10058 (emit_ldr): Likewise.
10059 (emit_ldrsw): Likewise.
10060 (emit_str): Likewise.
10061 (emit_ldaxr): Likewise.
10062 (emit_stxr): Likewise.
10063 (emit_stlr): Likewise.
10064 (emit_data_processing_reg): Likewise.
10065 (emit_data_processing): Likewise.
10066 (emit_add): Likewise.
10067 (emit_sub): Likewise.
10068 (emit_mov): Likewise.
10069 (emit_movk): Likewise.
10070 (emit_mov_addr): Likewise.
10071 (emit_mrs): Likewise.
10072 (emit_msr): Likewise.
10073 (emit_sevl): Likewise.
10074 (emit_wfe): Likewise.
10075 (append_insns): Likewise.
10076 (can_encode_int32_in): New helper function.
10077 (aarch64_relocate_instruction): New function.
10078 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10079 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10080 (struct linux_target_ops): Install aarch64_get_thread_area,
10081 aarch64_install_fast_tracepoint_jump_pad and
10082 aarch64_get_min_fast_tracepoint_insn_len.
10084 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10086 * Makefile.in (aarch64-insn.o): New rule.
10087 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10089 2015-09-21 Yao Qi <yao.qi@linaro.org>
10091 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10093 2015-09-21 Yao Qi <yao.qi@linaro.org>
10095 * tracepoint.c (max_jump_pad_size): Remove.
10097 2015-09-18 Yao Qi <yao.qi@linaro.org>
10099 * linux-aarch64-low.c: Don't include sys/uio.h.
10100 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10102 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10104 * tracepoint.c (eval_result_type): Change prototype.
10105 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10107 2015-09-15 Pedro Alves <palves@redhat.com>
10109 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10110 Check whether to report exec events instead of checking whether
10111 multiprocess is enabled.
10113 2015-09-15 Pedro Alves <palves@redhat.com>
10116 * remote-utils.c (prepare_resume_reply): Merge
10117 TARGET_WAITKIND_VFORK_DONE switch case with the
10118 TARGET_WAITKIND_FORKED case.
10120 2015-09-15 Yao Qi <yao.qi@linaro.org>
10122 * server.c (handle_query): Check string comparison using
10123 "else if" instead of "if".
10125 2015-09-15 Yao Qi <yao.qi@linaro.org>
10127 * server.c (vCont_supported): New global variable.
10128 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10129 matches. Append ";vContSupported+" to own_buf.
10130 (handle_v_requests): Append ";s;S" to own_buf if target supports
10131 hardware single step or vCont_supported is false.
10132 (capture_main): Set vCont_supported to zero.
10134 2015-09-15 Yao Qi <yao.qi@linaro.org>
10136 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10138 (linux_supports_hardware_single_step): ... New function.
10139 (linux_target_ops): Update.
10140 * lynx-low.c (lynx_target_ops): Set field
10141 supports_hardware_single_step to target_can_do_hardware_single_step.
10142 * nto-low.c (nto_target_ops): Likewise.
10143 * spu-low.c (spu_target_ops): Likewise.
10144 * win32-low.c (win32_target_ops): Likewise.
10145 * target.c (target_can_do_hardware_single_step): New function.
10146 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10147 Remove. <supports_hardware_single_step>: New field.
10148 (target_supports_conditional_breakpoints): Remove.
10149 (target_supports_hardware_single_step): New macro.
10150 (target_can_do_hardware_single_step): Declare.
10151 * server.c (handle_query): Use target_supports_hardware_single_step
10152 instead of target_supports_conditional_breakpoints.
10154 2015-09-15 Yao Qi <yao.qi@linaro.org>
10156 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10158 (struct linux_target_ops the_low_target): Install
10159 aarch64_linux_siginfo_fixup.
10161 2015-09-11 Don Breazeal <donb@codesourcery.com>
10162 Luis Machado <lgustavo@codesourcery.com>
10164 * linux-low.c (linux_mourn): Static declaration.
10165 (linux_arch_setup): Move in front of
10166 handle_extended_wait.
10167 (linux_arch_setup_thread): New function.
10168 (handle_extended_wait): Handle exec events. Call
10169 linux_arch_setup_thread. Make event_lwp argument a
10170 pointer-to-a-pointer.
10171 (check_zombie_leaders): Do not check stopped threads.
10172 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10173 (linux_low_filter_event): Add lwp and thread for exec'ing
10174 non-leader thread if leader thread has been deleted.
10175 Refactor code into linux_arch_setup_thread and call it.
10176 Pass child lwp pointer by reference to handle_extended_wait.
10177 (linux_wait_for_event_filtered): Update comment.
10178 (linux_wait_1): Prevent clobbering exec event status.
10179 (linux_supports_exec_events): New function.
10180 (linux_target_ops) <supports_exec_events>: Initialize new member.
10181 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10183 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10184 * server.c (report_exec_events): New global variable.
10185 (handle_query): Handle qSupported query for exec-events feature.
10186 (captured_main): Initialize report_exec_events.
10187 * server.h (report_exec_events): Declare new global variable.
10188 * target.h (struct target_ops) <supports_exec_events>: New
10190 (target_supports_exec_events): New macro.
10191 * win32-low.c (win32_target_ops) <supports_exec_events>:
10192 Initialize new member.
10194 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10196 * linux-low.c (linux_low_enable_btrace): Remove.
10197 (linux_target_ops): Replace linux_low_enable_btrace with
10198 linux_enable_btrace.
10200 2015-09-03 Yao Qi <yao.qi@linaro.org>
10202 * linux-aarch64-low.c (aarch64_insert_point): Call
10203 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10206 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10208 * linux-low.c (check_stopped_by_breakpoint): Use
10209 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10211 2015-08-27 Pedro Alves <palves@redhat.com>
10213 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10215 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10217 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10218 the XNEW-family equivalent.
10219 (compile_bytecodes): Likewise.
10220 * dll.c (loaded_dll): Likewise.
10221 * event-loop.c (append_callback_event): Likewise.
10222 (create_file_handler): Likewise.
10223 (create_file_event): Likewise.
10224 * hostio.c (handle_open): Likewise.
10225 * inferiors.c (add_thread): Likewise.
10226 (add_process): Likewise.
10227 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10228 * linux-arm-low.c (arm_new_process): Likewise.
10229 (arm_new_thread): Likewise.
10230 * linux-low.c (add_to_pid_list): Likewise.
10231 (linux_add_process): Likewise.
10232 (handle_extended_wait): Likewise.
10233 (add_lwp): Likewise.
10234 (enqueue_one_deferred_signal): Likewise.
10235 (enqueue_pending_signal): Likewise.
10236 (linux_resume_one_lwp_throw): Likewise.
10237 (linux_resume_one_thread): Likewise.
10238 (linux_read_memory): Likewise.
10239 (linux_write_memory): Likewise.
10240 * linux-mips-low.c (mips_linux_new_process): Likewise.
10241 (mips_linux_new_thread): Likewise.
10242 (mips_add_watchpoint): Likewise.
10243 * linux-x86-low.c (initialize_low_arch): Likewise.
10244 * lynx-low.c (lynx_add_process): Likewise.
10245 * mem-break.c (set_raw_breakpoint_at): Likewise.
10246 (set_breakpoint): Likewise.
10247 (add_condition_to_breakpoint): Likewise.
10248 (add_commands_to_breakpoint): Likewise.
10249 (clone_agent_expr): Likewise.
10250 (clone_one_breakpoint): Likewise.
10251 * regcache.c (new_register_cache): Likewise.
10252 * remote-utils.c (look_up_one_symbol): Likewise.
10253 * server.c (queue_stop_reply): Likewise.
10254 (start_inferior): Likewise.
10255 (queue_stop_reply_callback): Likewise.
10256 (handle_target_event): Likewise.
10257 * spu-low.c (fetch_ppc_memory): Likewise.
10258 (store_ppc_memory): Likewise.
10259 * target.c (set_target_ops): Likewise.
10260 * thread-db.c (thread_db_load_search): Likewise.
10261 (try_thread_db_load_1): Likewise.
10262 * tracepoint.c (add_tracepoint): Likewise.
10263 (add_tracepoint_action): Likewise.
10264 (create_trace_state_variable): Likewise.
10265 (cmd_qtdpsrc): Likewise.
10266 (cmd_qtro): Likewise.
10267 (add_while_stepping_state): Likewise.
10268 * win32-low.c (child_add_thread): Likewise.
10269 (get_image_name): Likewise.
10271 2015-08-25 Yao Qi <yao.qi@linaro.org>
10273 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10275 2015-08-25 Yao Qi <yao.qi@linaro.org>
10277 * Makefile.in (aarch64-linux.o): New rule.
10278 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10280 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10281 (aarch64_init_debug_reg_state): Make it extern.
10282 (aarch64_linux_prepare_to_resume): Remove.
10284 2015-08-25 Yao Qi <yao.qi@linaro.org>
10286 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10287 lwp_arch_private_info and ptid_of_lwp.
10289 2015-08-25 Yao Qi <yao.qi@linaro.org>
10291 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10292 Find proc_info by find_process_pid. All callers updated.
10294 2015-08-25 Yao Qi <yao.qi@linaro.org>
10296 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10298 (debug_reg_change_callback): Remove.
10299 (aarch64_notify_debug_reg_change): Remove.
10301 2015-08-25 Yao Qi <yao.qi@linaro.org>
10303 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10304 Call current_lwp_ptid.
10306 2015-08-25 Yao Qi <yao.qi@linaro.org>
10308 * linux-aarch64-low.c (debug_reg_change_callback): Use
10311 2015-08-25 Yao Qi <yao.qi@linaro.org>
10313 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10315 2015-08-25 Yao Qi <yao.qi@linaro.org>
10317 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10319 2015-08-25 Yao Qi <yao.qi@linaro.org>
10321 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10324 2015-08-25 Yao Qi <yao.qi@linaro.org>
10326 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10328 (debug_reg_change_callback): Remove argument entry and add argument
10329 lwp. Remove local variable thread. Don't print thread id in the
10330 debugging output. Don't check whether pid of thread equals to pid.
10331 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10332 iterate_over_lwps instead find_inferior.
10334 2015-08-24 Pedro Alves <palves@redhat.com>
10336 * inferiors.c (get_first_process): New function.
10337 * inferiors.h (get_first_process): New declaration.
10338 * remote-utils.c (read_ptid): Default to the first process in the
10339 list, instead of to the current thread's process.
10341 2015-08-24 Pedro Alves <palves@redhat.com>
10343 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10344 * event-loop.c: Likewise.
10345 * remote-utils.c: Likewise.
10346 * tracepoint.c: Likewise.
10348 2015-08-24 Pedro Alves <palves@redhat.com>
10350 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10353 2015-08-21 Pedro Alves <palves@redhat.com>
10355 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10356 instead of literal 1.
10358 2015-08-21 Pedro Alves <palves@redhat.com>
10360 * tdesc.c (default_description): Explicitly zero-initialize.
10362 2015-08-21 Pedro Alves <palves@redhat.com>
10365 * inferiors.c (remove_thread): Discard any pending stop reply for
10367 * server.c (remove_all_on_match_pid): Rename to ...
10368 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10370 (discard_queued_stop_replies): Change parameter to a ptid. Now
10372 (handle_v_kill, kill_inferior_callback, captured_main)
10373 (process_serial_event): Adjust.
10374 * server.h (discard_queued_stop_replies): Declare.
10376 2015-08-21 Pedro Alves <palves@redhat.com>
10378 * linux-low.c (wait_for_sigstop): Always switch to no thread
10379 selected if the previously current thread dies.
10380 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10381 process instead of the current thread's.
10382 * remote-utils.c (input_interrupt): Don't check if there's no
10384 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10385 current thread to the general thread fails, error out.
10386 (handle_qxfer_auxv, handle_qxfer_libraries)
10387 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10388 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10389 (handle_query): Check if there's a thread selected instead of
10390 checking whether there's any thread in the thread list.
10391 (handle_qxfer_threads, handle_qxfer_btrace)
10392 (handle_qxfer_btrace_conf): Don't error out early if there's no
10393 thread in the thread list.
10394 (handle_v_cont, myresume): Don't set the current thread to the
10396 (process_serial_event) <Hg handling>: Also set thread_id if the
10397 previous general thread is still alive.
10398 (process_serial_event) <g/G handling>: If setting the current
10399 thread to the general thread fails, error out.
10400 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10401 thread's lwp instead of the current thread's.
10402 * target.c (set_desired_thread): If the desired thread was not
10403 found, leave the current thread pointing to NULL. Return an int
10404 (boolean) indicating success.
10405 * target.h (set_desired_thread): Change return type to int.
10407 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10409 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10410 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10412 (ps_get_thread_area): New function.
10414 2015-08-19 Gary Benson <gbenson@redhat.com>
10416 * hostio.c (handle_pread): Do not attempt to read more data
10417 than hostio_reply_with_data can fit in a packet.
10419 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10421 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10423 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10425 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10427 2015-08-06 Pedro Alves <palves@redhat.com>
10429 * tracepoint.c (expr_eval_result): Now an int.
10431 2015-08-06 Pedro Alves <palves@redhat.com>
10433 * gdbthread.h (struct regcache): Forward declare.
10434 (struct thread_info) <regcache_data>: Now a struct regcache
10436 * inferiors.c (inferior_regcache_data)
10437 (set_inferior_regcache_data): Now work with struct regcache
10439 * inferiors.h (struct regcache): Forward declare.
10440 (inferior_regcache_data, set_inferior_regcache_data): Now work
10441 with struct regcache pointers.
10442 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10443 (free_register_cache_thread): Remove struct regcache pointer
10446 2015-08-06 Pedro Alves <palves@redhat.com>
10448 * server.c (captured_main): On error, print the exception message
10449 to stderr, and if run_once is set, throw a quit.
10451 2015-08-06 Pedro Alves <palves@redhat.com>
10453 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10454 the current thread.
10456 2015-08-06 Pedro Alves <palves@redhat.com>
10458 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10459 reading beyond the passed in buffer length.
10461 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10463 * tracepoint.c (symbol_list) <required>: Remove.
10465 2015-08-06 Pedro Alves <palves@redhat.com>
10467 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10468 count if stopping and suspending threads.
10469 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10470 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10471 (linux_detach): Complete an ongoing step-over.
10472 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10474 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10475 (linux_wait_1): If passing a signal to the inferior after
10476 finishing a step-over, unsuspend and re-resume all lwps. If we
10477 see a single-step event but the thread should be continuing, don't
10478 pass the trap to gdb.
10479 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10480 internal_error instead of gdb_assert.
10481 (enqueue_pending_signal): New function.
10482 (check_ptrace_stopped_lwp_gone): Add debug output.
10483 (start_step_over): Use internal_error instead of gdb_assert.
10484 (complete_ongoing_step_over): New function.
10485 (linux_resume_one_thread): Don't resume a suspended thread.
10486 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10489 2015-08-06 Pedro Alves <palves@redhat.com>
10491 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10492 (linux_thread_alive): Use lwp_is_marked_dead.
10493 (extended_event_reported): Delete.
10494 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10495 instead of extended_event_reported.
10496 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10498 (lwp_is_marked_dead): New function.
10499 (lwp_running): Use lwp_is_marked_dead.
10500 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10503 2015-08-06 Pedro Alves <palves@redhat.com>
10505 * linux-low.c (linux_wait_1): Move fork event output out of the
10506 !report_to_gdb check. Pass event_child->waitstatus to
10507 target_waitstatus_to_string instead of ourstatus.
10509 2015-08-04 Yao Qi <yao.qi@linaro.org>
10511 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10512 if current_thread is 32 bit.
10514 2015-08-04 Yao Qi <yao.qi@linaro.org>
10516 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10517 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10518 * server.c (extended_protocol): Remove "static".
10519 * server.h (extended_protocol): Declare it.
10521 2015-08-04 Yao Qi <yao.qi@linaro.org>
10523 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10524 both aarch64 and aarch32.
10525 (aarch64_set_pc): Likewise.
10527 2015-08-04 Yao Qi <yao.qi@linaro.org>
10529 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10530 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10531 arm-with-neon.xml to srv_xmlfiles.
10532 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10533 (is_64bit_tdesc): New function.
10534 (aarch64_linux_read_description): New function.
10535 (aarch64_arch_setup): Call aarch64_linux_read_description.
10536 (regs_info): Rename to regs_info_aarch64.
10537 (aarch64_regs_info): Return right regs_info.
10538 (initialize_low_arch): Call initialize_low_arch_aarch32.
10540 2015-08-04 Yao Qi <yao.qi@linaro.org>
10542 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10543 * linux-aarch32-low.c: New file.
10544 * linux-aarch32-low.h: New file.
10545 * linux-arm-low.c (arm_fill_gregset): Move it to
10546 linux-aarch32-low.c.
10547 (arm_store_gregset): Likewise.
10548 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10549 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10550 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10551 (regs_info): Rename to regs_info_arm.
10552 (arm_regs_info): Return regs_info_aarch32 if
10553 have_ptrace_getregset is 1 and target description is
10554 arm_with_neon or arm_with_vfpv3.
10555 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10556 Call initialize_low_arch_aarch32 instead.
10558 2015-08-04 Yao Qi <yao.qi@linaro.org>
10560 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10561 * linux-low.c: ... here.
10562 * linux-low.h (have_ptrace_getregset): Declare it.
10564 2015-08-04 Pedro Alves <palves@redhat.com>
10566 * thread-db.c (struct thread_db): Use new typedefs.
10567 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10569 (disable_thread_event_reporting): Cast result of dlsym to
10570 destination function pointer type.
10571 (thread_db_mourn): Use td_ta_delete_ftype.
10573 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10575 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10577 (CDX_BREAKPOINT): Define for R2.
10578 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10579 (the_low_target): Add comments.
10581 2015-07-30 Yao Qi <yao.qi@linaro.org>
10583 * linux-arm-low.c (arm_hwcap): Remove it.
10584 (arm_read_description): New local variable arm_hwcap. Don't
10585 set arm_hwcap to zero.
10587 2015-07-30 Yao Qi <yao.qi@linaro.org>
10589 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10590 Use regcache->tdesc instead.
10591 (arm_store_wmmxregset): Likewise.
10592 (arm_fill_vfpregset): Likewise.
10593 (arm_store_vfpregset): Likewise.
10595 2015-07-30 Yao Qi <yao.qi@linaro.org>
10597 * linux-arm-low.c: Include arch/arm.h.
10598 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10599 (arm_store_gregset): Likewise.
10601 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10603 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10604 ptrace's 4th parameter.
10606 2015-07-27 Yao Qi <yao.qi@linaro.org>
10608 * configure.srv (case aarch64*-*-linux*): Don't set
10611 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10613 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10615 * linux-arm-low.c: Likewise.
10616 * linux-cris-low.c: Likewise.
10617 * linux-crisv32-low.c: Likewise.
10618 * linux-low.c: Likewise.
10619 * linux-m68k-low.c: Likewise.
10620 * linux-mips-low.c: Likewise.
10621 * linux-nios2-low.c: Likewise.
10622 * linux-s390-low.c: Likewise.
10623 * linux-sparc-low.c: Likewise.
10624 * linux-tic6x-low.c: Likewise.
10625 * linux-tile-low.c: Likewise.
10626 * linux-x86-low.c: Likewise.
10628 2015-07-24 Pedro Alves <palves@redhat.com>
10630 * config.in: Regenerate.
10631 * configure: Regenerate.
10633 2015-07-24 Pedro Alves <palves@redhat.com>
10635 * acinclude.m4: Include ../ptrace.m4.
10636 * configure.ac: Call GDB_AC_PTRACE.
10637 * config.in, configure: Regenerate.
10639 2015-07-24 Yao Qi <yao.qi@linaro.org>
10641 * linux-low.c (linux_create_inferior): Remove setting to
10642 proc->priv->new_inferior.
10643 (linux_attach): Likewise.
10644 (linux_low_filter_event): Likewise.
10645 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10647 2015-07-24 Yao Qi <yao.qi@linaro.org>
10649 * linux-low.c (linux_arch_setup): New function.
10650 (linux_low_filter_event): If proc->tdesc is NULL and
10651 proc->attached is true, call the_low_target.arch_setup.
10652 Otherwise, keep status pending, and return.
10653 (linux_resume_one_lwp_throw): Don't call get_pc if
10654 thread->while_stepping isn't NULL. Don't call
10655 get_thread_regcache if proc->tdesc is NULL.
10656 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10657 (linux_target_ops): Install arch_setup.
10658 * server.c (start_inferior): Call the_target->arch_setup.
10659 * target.h (struct target_ops) <arch_setup>: New field.
10660 (target_arch_setup): New marco.
10661 * lynx-low.c (lynx_target_ops): Update.
10662 * nto-low.c (nto_target_ops): Update.
10663 * spu-low.c (spu_target_ops): Update.
10664 * win32-low.c (win32_target_ops): Update.
10666 2015-07-24 Yao Qi <yao.qi@linaro.org>
10668 * linux-low.c (linux_add_process): Don't set
10669 proc->priv->new_inferior.
10670 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10671 (linux_attach): Likewise.
10673 2015-07-24 Yao Qi <yao.qi@linaro.org>
10675 * server.c (start_inferior): Code refactor.
10677 2015-07-24 Yao Qi <yao.qi@linaro.org>
10679 * server.c (process_serial_event): Set general_thread.
10681 2015-07-21 Yao Qi <yao.qi@linaro.org>
10683 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10684 aarch64_linux_get_debug_reg_capacity.
10686 2015-07-17 Yao Qi <yao.qi@linaro.org>
10688 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10689 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10690 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10691 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10692 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10693 (AARCH64_HWP_ALIGNMENT): Likewise.
10694 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10695 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10696 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10697 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10698 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10699 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10700 (struct aarch64_debug_reg_state): Likewise.
10701 (struct arch_lwp_info): Likewise.
10702 (aarch64_align_watchpoint): Likewise.
10703 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10704 (aarch64_watchpoint_length): Likewise.
10705 (aarch64_point_encode_ctrl_reg): Likewise
10706 (aarch64_point_is_aligned): Likewise.
10707 (aarch64_align_watchpoint): Likewise.
10708 (aarch64_linux_set_debug_regs):
10709 (aarch64_dr_state_insert_one_point): Likewise.
10710 (aarch64_dr_state_remove_one_point): Likewise.
10711 (aarch64_handle_breakpoint): Likewise.
10712 (aarch64_handle_aligned_watchpoint): Likewise.
10713 (aarch64_handle_unaligned_watchpoint): Likewise.
10714 (aarch64_handle_watchpoint): Likewise.
10716 2015-07-17 Yao Qi <yao.qi@linaro.org>
10718 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10719 and don't aarch64_get_debug_reg_state. All callers update.
10720 (aarch64_handle_aligned_watchpoint): Likewise.
10721 (aarch64_handle_unaligned_watchpoint): Likewise.
10722 (aarch64_handle_watchpoint): Likewise.
10723 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10724 (aarch64_remove_point): Likewise.
10726 2015-07-17 Yao Qi <yao.qi@linaro.org>
10728 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10730 (aarch64_handle_unaligned_watchpoint): Likewise.
10732 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10734 Revert the previous 3 commits:
10735 Move gdb_regex* to common/
10736 Move linux_find_memory_regions_full & co.
10737 gdbserver build-id attribute generator
10739 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10740 Jan Kratochvil <jan.kratochvil@redhat.com>
10742 gdbserver build-id attribute generator.
10743 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10744 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10745 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10747 (get_dynamic): Use find_pdhr to traverse program headers.
10748 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10749 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10750 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10751 (get_hex_build_id): New.
10752 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10753 to reply XML document.
10755 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10756 Jan Kratochvil <jan.kratochvil@redhat.com>
10758 * target.c: Include target/target-utils.h and fcntl.h.
10759 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10760 (target_fileio_read_stralloc): New functions.
10762 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10764 * Makefile.in (OBS): Add gdb_regex.o.
10765 (gdb_regex.o): New.
10766 * config.in: Rebuilt.
10767 * configure: Rebuilt.
10769 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10770 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10773 * Makefile.in (OBS): Add target-utils.o.
10774 (linux-maps.o, target-utils.o): New.
10775 * configure.srv (srv_linux_obj): Add linux-maps.o.
10777 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10779 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10780 function, return 1.
10781 (the_low_target): Install it.
10783 2015-07-14 Pedro Alves <palves@redhat.com>
10785 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10786 Instead, ignore ECHILD, and throw an error for other errnos.
10788 2015-07-10 Pedro Alves <palves@redhat.com>
10790 * event-loop.c (struct callback_event) <data>: Change type to
10791 gdb_client_data instance instead of gdb_client_data pointer.
10792 (append_callback_event): Adjust.
10794 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10796 * linux-aarch64-low.c: Add comments for each linux_target_ops
10797 method. Remove comments already covered in target_ops and
10798 linux_target_ops definitions.
10799 (the_low_target): Add comments for each unimplemented method.
10801 2015-07-09 Yao Qi <yao.qi@linaro.org>
10803 * linux-aarch64-low.c (aarch64_regmap): Remove.
10804 (aarch64_usrregs_info): Remove.
10805 (regs_info): Set field usrregs to NULL.
10807 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10809 * linux-low.c: Include "rsp-low.h"
10810 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10811 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10812 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10813 (handle_btrace_enable_pt): New.
10814 (handle_btrace_general_set): Support "pt".
10815 (handle_btrace_conf_general_set): Support "pt:size".
10817 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10819 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10822 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10824 * linux-aarch64-low.c: Remove comment about endianness.
10825 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10826 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10829 2015-06-24 Gary Benson <gbenson@redhat.com>
10831 * linux-i386-ipa.c (stdint.h): Do not include.
10832 * lynx-i386-low.c (stdint.h): Likewise.
10833 * lynx-ppc-low.c (stdint.h): Likewise.
10834 * mem-break.c (stdint.h): Likewise.
10835 * thread-db.c (stdint.h): Likewise.
10836 * tracepoint.c (stdint.h): Likewise.
10837 * win32-low.c (stdint.h): Likewise.
10839 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10841 * server.c (write_qxfer_response): Update call to
10842 remote_escape_output.
10844 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10845 Jan Kratochvil <jan.kratochvil@redhat.com>
10847 Merge multiple hex conversions.
10848 * gdbreplay.c (tohex): Rename to 'fromhex'.
10849 (logchar): Use fromhex.
10851 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10853 * server.c (handle_qxfer_libraries): Set `version' attribute for
10856 2015-06-10 Gary Benson <gbenson@redhat.com>
10858 * target.h (struct target_ops) <multifs_open>: New field.
10859 <multifs_unlink>: Likewise.
10860 <multifs_readlink>: Likewise.
10861 * linux-low.c (nat/linux-namespaces.h): New include.
10862 (linux_target_ops): Initialize the_target->multifs_open,
10863 the_target->multifs_unlink and the_target->multifs_readlink.
10864 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10865 * hostio.c (hostio_fs_pid): New static variable.
10866 (hostio_handle_new_gdb_connection): New function.
10867 (handle_setfs): Likewise.
10868 (handle_open): Use the_target->multifs_open as appropriate.
10869 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10870 (handle_readlink): Use the_target->multifs_readlink as
10872 (handle_vFile): Handle vFile:setfs packets.
10873 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10874 after target_handle_new_gdb_connection.
10876 2015-06-10 Gary Benson <gbenson@redhat.com>
10878 * configure.ac (AC_CHECK_FUNCS): Add setns.
10879 * config.in: Regenerate.
10880 * configure: Likewise.
10881 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10882 (linux-namespaces.o): New rule.
10883 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10885 2015-06-09 Gary Benson <gbenson@redhat.com>
10887 * hostio.c (handle_open): Process mode argument with
10888 fileio_to_host_mode.
10890 2015-06-01 Yao Qi <yao.qi@linaro.org>
10892 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10893 * linux-x86-low.c: Likewise.
10895 2015-05-28 Don Breazeal <donb@codesourcery.com>
10897 * linux-low.c (handle_extended_wait): Initialize
10898 thread_info.last_resume_kind for new fork children.
10900 2015-05-15 Pedro Alves <palves@redhat.com>
10902 * target.h (target_handle_new_gdb_connection): Rewrite using if
10903 wrapped in do/while.
10905 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10907 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10908 * configure, config.in: Regenerate.
10909 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10912 2015-05-12 Don Breazeal <donb@codesourcery.com>
10914 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10915 PTRACE_EVENT_VFORK_DONE.
10916 (linux_low_ptrace_options, extended_event_reported): Add vfork
10918 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10919 and "vforkdone" for RSP 'T' Stop Reply Packet.
10920 * server.h (report_vfork_events): Declare
10923 2015-05-12 Don Breazeal <donb@codesourcery.com>
10925 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10926 (the_low_target) <new_fork>: Initialize new member.
10927 * linux-arm-low.c (arm_new_fork): New function.
10928 (the_low_target) <new_fork>: Initialize new member.
10929 * linux-low.c (handle_extended_wait): Call new target function
10931 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10932 * linux-mips-low.c (mips_add_watchpoint): New function
10933 extracted from mips_insert_point.
10934 (the_low_target) <new_fork>: Initialize new member.
10935 (mips_linux_new_fork): New function.
10936 (mips_insert_point): Call mips_add_watchpoint.
10937 * linux-x86-low.c (x86_linux_new_fork): New function.
10938 (the_low_target) <new_fork>: Initialize new member.
10940 2015-05-12 Don Breazeal <donb@codesourcery.com>
10942 * linux-low.c (handle_extended_wait): Implement return value,
10943 rename argument 'event_child' to 'event_lwp', handle
10944 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10945 (linux_low_ptrace_options): New function.
10946 (linux_low_filter_event): Call linux_low_ptrace_options,
10947 use different argument fo linux_enable_event_reporting,
10948 use return value from handle_extended_wait.
10949 (extended_event_reported): New function.
10950 (linux_wait_1): Call extended_event_reported and set
10951 status to report fork events.
10952 (linux_write_memory): Add pid to debug message.
10953 (reset_lwp_ptrace_options_callback): New function.
10954 (linux_handle_new_gdb_connection): New function.
10955 (linux_target_ops): Initialize new structure member.
10956 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10957 * lynx-low.c: Initialize new structure member.
10958 * remote-utils.c (prepare_resume_reply): Implement stop reason
10959 "fork" for "T" stop message.
10960 * server.c (handle_query): Call handle_new_gdb_connection.
10961 * server.h (report_fork_events): Declare global flag.
10962 * target.h (struct target_ops) <handle_new_gdb_connection>:
10964 (target_handle_new_gdb_connection): New macro.
10965 * win32-low.c: Initialize new structure member.
10967 2015-05-12 Don Breazeal <donb@codesourcery.com>
10969 * mem-break.c (APPEND_TO_LIST): Define macro.
10970 (clone_agent_expr): New function.
10971 (clone_one_breakpoint): New function.
10972 (clone_all_breakpoints): New function.
10973 * mem-break.h: Declare new functions.
10975 2015-05-12 Don Breazeal <donb@codesourcery.com>
10977 * linux-low.c (linux_supports_fork_events): New function.
10978 (linux_supports_vfork_events): New function.
10979 (linux_target_ops): Initialize new structure members.
10980 (initialize_low): Call linux_check_ptrace_features.
10981 * lynx-low.c (lynx_target_ops): Initialize new structure
10983 * server.c (report_fork_events, report_vfork_events):
10985 (handle_query): Add new features to qSupported packet and
10987 (captured_main): Initialize new global variables.
10988 * target.h (struct target_ops) <supports_fork_events>:
10990 <supports_vfork_events>: New member.
10991 (target_supports_fork_events): New macro.
10992 (target_supports_vfork_events): New macro.
10993 * win32-low.c (win32_target_ops): Initialize new structure
10996 2015-05-12 Gary Benson <gbenson@redhat.com>
10998 * server.c (handle_qxfer_exec_file): Use current process
11001 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11003 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11004 Remove HAVE_PTRACE_GETREGS conditionals.
11005 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11006 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11008 2015-05-08 Yao Qi <yao.qi@linaro.org>
11010 * linux-low.c (linux_supports_conditional_breakpoints): New
11012 (linux_target_ops): Install new target method.
11013 * lynx-low.c (lynx_target_ops): Install NULL hook for
11014 supports_conditional_breakpoints.
11015 * nto-low.c (nto_target_ops): Likewise.
11016 * spu-low.c (spu_target_ops): Likewise.
11017 * win32-low.c (win32_target_ops): Likewise.
11018 * server.c (handle_query): Check
11019 target_supports_conditional_breakpoints.
11020 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11022 (target_supports_conditional_breakpoints): New macro.
11024 2015-05-06 Pedro Alves <palves@redhat.com>
11027 * server.c (start_inferior): If the process exits, mourn it.
11029 2015-04-21 Gary Benson <gbenson@redhat.com>
11031 * hostio.c (fileio_open_flags_to_host): Factored out to
11032 fileio_to_host_openflags in common/fileio.c. Single use
11035 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11037 * linux-xtensa-low.c (xtensa_fill_gregset)
11038 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11041 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11043 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11044 (regs_info): Replace usrregs pointer with NULL.
11046 2015-04-17 Gary Benson <gbenson@redhat.com>
11048 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11049 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11050 * server.c (handle_qxfer_exec_file): New function.
11051 (qxfer_packets): Add exec-file entry.
11052 (handle_query): Report qXfer:exec-file:read as supported packet.
11054 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11056 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11058 2015-04-09 Gary Benson <gbenson@redhat.com>
11060 * hostio-errno.c (errno_to_fileio_error): Remove function.
11061 Update caller to use remote_fileio_to_fio_error.
11063 2015-04-09 Yao Qi <yao.qi@linaro.org>
11065 * linux-low.c (linux_insert_point): Call
11066 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11067 (linux_remove_point): Call remove_memory_breakpoint if type is
11069 * linux-x86-low.c (x86_insert_point): Don't call
11070 insert_memory_breakpoint.
11071 (x86_remove_point): Don't call remove_memory_breakpoint.
11073 2015-04-01 Pedro Alves <palves@redhat.com>
11074 Cleber Rosa <crosa@redhat.com>
11076 * server.c (gdbserver_usage): Reorganize and extend the usage
11079 2015-03-24 Pedro Alves <palves@redhat.com>
11081 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11082 output. Also dump TRAP_TRACE.
11083 (linux_low_filter_event): In debug output, distinguish a
11084 resume_stop SIGSTOP from a delayed SIGSTOP.
11086 2015-03-24 Gary Benson <gbenson@redhat.com>
11088 * linux-x86-low.c (x86_linux_new_thread): Moved to
11090 (x86_linux_prepare_to_resume): Likewise.
11092 2015-03-24 Gary Benson <gbenson@redhat.com>
11094 * Makefile.in (x86-linux-dregs.o): New rule.
11095 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11096 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11097 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11098 (x86_linux_dr_get): Likewise.
11099 (x86_linux_dr_set): Likewise.
11100 (update_debug_registers_callback): Likewise.
11101 (x86_linux_dr_set_addr): Likewise.
11102 (x86_linux_dr_get_addr): Likewise.
11103 (x86_linux_dr_set_control): Likewise.
11104 (x86_linux_dr_get_control): Likewise.
11105 (x86_linux_dr_get_status): Likewise.
11106 (x86_linux_update_debug_registers): Likewise.
11108 2015-03-24 Gary Benson <gbenson@redhat.com>
11110 * linux-x86-low.c (x86_linux_update_debug_registers):
11111 New function, factored out from...
11112 (x86_linux_prepare_to_resume): ...this.
11114 2015-03-24 Gary Benson <gbenson@redhat.com>
11116 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11117 (x86_linux_dr_set): Likewise.
11118 (update_debug_registers_callback): Likewise.
11119 (x86_linux_dr_set_addr): Likewise.
11120 (x86_linux_dr_get_addr): Likewise.
11121 (x86_linux_dr_set_control): Likewise.
11122 (x86_linux_dr_get_control): Likewise.
11123 (x86_linux_dr_get_status): Likewise.
11124 (x86_linux_prepare_to_resume): Likewise.
11126 2015-03-24 Gary Benson <gbenson@redhat.com>
11128 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11129 Use perror_with_name. Pass string through gettext.
11130 (x86_linux_dr_set): Likewise.
11132 2015-03-24 Gary Benson <gbenson@redhat.com>
11134 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11135 (x86_linux_dr_set_addr): ...this.
11136 (x86_dr_low_get_addr): Rename to...
11137 (x86_linux_dr_get_addr): ...this.
11138 (x86_dr_low_set_control): Rename to...
11139 (x86_linux_dr_set_control): ...this.
11140 (x86_dr_low_get_control): Rename to...
11141 (x86_linux_dr_get_control): ...this.
11142 (x86_dr_low_get_status): Rename to...
11143 (x86_linux_dr_get_status): ...this.
11144 (x86_dr_low): Update with new function names.
11146 2015-03-24 Gary Benson <gbenson@redhat.com>
11148 * Makefile.in (x86-linux.o): New rule.
11149 * configure.srv: Add x86-linux.o to relevant targets.
11150 * linux-low.c (lwp_set_arch_private_info): New function.
11151 (lwp_arch_private_info): Likewise.
11152 * linux-x86-low.c: Include nat/x86-linux.h.
11153 (arch_lwp_info): Removed structure.
11154 (update_debug_registers_callback):
11155 Use lwp_set_debug_registers_changed.
11156 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11157 and lwp_set_debug_registers_changed.
11158 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11160 2015-03-24 Gary Benson <gbenson@redhat.com>
11162 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11163 * linux-arm-low.c (arm_new_thread): Likewise.
11164 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11165 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11166 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11167 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11169 2015-03-24 Gary Benson <gbenson@redhat.com>
11171 * linux-low.c (ptid_of_lwp): New function.
11172 (lwp_is_stopped): Likewise.
11173 (lwp_stop_reason): Likewise.
11174 * linux-x86-low.c (update_debug_registers_callback):
11175 Use lwp_is_stopped.
11176 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11179 2015-03-24 Gary Benson <gbenson@redhat.com>
11181 * linux-low.h (linux_stop_lwp): Remove declaration.
11183 2015-03-24 Gary Benson <gbenson@redhat.com>
11185 * linux-low.h: Include nat/linux-nat.h.
11186 * linux-low.c (iterate_over_lwps_args): New structure.
11187 (iterate_over_lwps_filter): New function.
11188 (iterate_over_lwps): Likewise.
11189 * linux-x86-low.c (update_debug_registers_callback):
11190 Update signature to what iterate_over_lwps expects.
11191 Remove PID check that iterate_over_lwps now performs.
11192 (x86_dr_low_set_addr): Use iterate_over_lwps.
11193 (x86_dr_low_set_control): Likewise.
11195 2015-03-24 Gary Benson <gbenson@redhat.com>
11197 * linux-x86-low.c (x86_debug_reg_state): New function.
11198 (x86_linux_prepare_to_resume): Use the above.
11200 2015-03-24 Gary Benson <gbenson@redhat.com>
11202 * linux-low.c (current_lwp_ptid): New function.
11203 * linux-x86-low.c: Include nat/linux-nat.h.
11204 (x86_dr_low_get_addr): Use current_lwp_ptid.
11205 (x86_dr_low_get_control): Likewise.
11206 (x86_dr_low_get_status): Likewise.
11208 2015-03-20 Pedro Alves <palves@redhat.com>
11210 * tracepoint.c (cmd_qtstatus): Make "str" const.
11212 2015-03-20 Pedro Alves <palves@redhat.com>
11214 * server.c (handle_general_set): Make "req_str" const.
11216 2015-03-19 Pedro Alves <palves@redhat.com>
11218 * linux-low.c (linux_resume_one_lwp): Rename to ...
11219 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11220 instead call perror_with_name.
11221 (check_ptrace_stopped_lwp_gone): New function.
11222 (linux_resume_one_lwp): Reimplement as wrapper around
11223 linux_resume_one_lwp_throw that swallows errors if the LWP is
11226 2015-03-19 Pedro Alves <palves@redhat.com>
11228 * linux-low.c (count_events_callback, select_event_lwp_callback):
11229 No longer check whether the thread has resume_stop as last resume
11232 2015-03-19 Pedro Alves <palves@redhat.com>
11234 * linux-low.c (count_events_callback, select_event_lwp_callback):
11235 Use the lwp's status_pending_p field, not the thread's.
11237 2015-03-19 Pedro Alves <palves@redhat.com>
11239 * linux-low.c (select_event_lwp_callback): Update comments to
11240 no longer mention SIGTRAP.
11242 2015-03-18 Gary Benson <gbenson@redhat.com>
11244 * server.c (handle_query): Do not report vFile:fstat as supported.
11246 2015-03-11 Gary Benson <gbenson@redhat.com>
11248 * hostio.c (sys/types.h): New include.
11249 (sys/stat.h): Likewise.
11250 (common-remote-fileio.h): Likewise.
11251 (handle_fstat): New function.
11252 (handle_vFile): Handle vFile:fstat packets.
11254 2015-03-11 Gary Benson <gbenson@redhat.com>
11256 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11257 struct stat.st_blocks and struct stat.st_blksize.
11258 * configure: Regenerate.
11259 * config.in: Likewise.
11260 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11261 (OBS): Add common-remote-fileio.o.
11262 (common-remote-fileio.o): New rule.
11264 2015-03-09 Pedro Alves <palves@redhat.com>
11266 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11267 'struct sockaddr' pointer in 'accept' call.
11269 2015-03-09 Pedro Alves <palves@redhat.com>
11272 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 * configure.ac (build_warnings): Move
11287 -Wdeclaration-after-statement to the C-specific set.
11288 * configure: Regenerate.
11290 2015-03-07 Pedro Alves <palves@redhat.com>
11292 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11293 or <winsock2.h> here. Instead include "gdb_socket.h".
11294 (remote_open): Use union gdb_sockaddr_u.
11295 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11296 or <winsock2.h> here. Instead include "gdb_socket.h".
11297 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11298 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11300 (init_named_socket, gdb_agent_helper_thread): Use union
11303 2015-03-07 Pedro Alves <palves@redhat.com>
11305 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11308 2015-03-06 Yao Qi <yao.qi@linaro.org>
11310 * linux-aarch64-low.c (aarch64_insert_point): Use
11311 show_debug_regs as a boolean.
11312 (aarch64_remove_point): Likewise.
11314 2015-03-05 Pedro Alves <palves@redhat.com>
11316 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11317 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11318 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11319 * nto-low.c (nto_target_ops): Likewise.
11320 * spu-low.c (spu_target_ops): Likewise.
11321 * win32-low.c (win32_target_ops): Likewise.
11323 2015-03-04 Pedro Alves <palves@redhat.com>
11325 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11326 Decide whether a breakpoint triggered based on the SIGTRAP's
11328 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11329 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11330 (linux_low_filter_event): Check for breakpoints before checking
11332 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11334 (linux_stopped_by_sw_breakpoint)
11335 (linux_supports_stopped_by_sw_breakpoint)
11336 (linux_stopped_by_hw_breakpoint)
11337 (linux_supports_stopped_by_hw_breakpoint): New functions.
11338 (linux_target_ops): Install new target methods.
11340 2015-03-04 Pedro Alves <palves@redhat.com>
11342 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11343 * server.c (swbreak_feature, hwbreak_feature): New globals.
11344 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11345 (captured_main): Clear swbreak_feature and hwbreak_feature.
11346 * server.h (swbreak_feature, hwbreak_feature): Declare.
11347 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11348 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11349 supports_stopped_by_hw_breakpoint>: New fields.
11350 (target_supports_stopped_by_sw_breakpoint)
11351 (target_stopped_by_sw_breakpoint)
11352 (target_supports_stopped_by_hw_breakpoint)
11353 (target_stopped_by_hw_breakpoint): Declare.
11355 2015-03-04 Pedro Alves <palves@redhat.com>
11357 enum lwp_stop_reason -> enum target_stop_reason
11358 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11359 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11360 (linux_wait_1, stuck_in_jump_pad_callback)
11361 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11362 (linux_stopped_by_watchpoint):
11363 * linux-low.h (enum lwp_stop_reason): Delete.
11364 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11365 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11367 2015-03-04 Yao Qi <yao.qi@linaro.org>
11369 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11371 2015-03-03 Gary Benson <gbenson@redhat.com>
11373 * hostio.c (handle_vFile): Fix prefix lengths.
11375 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11377 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11380 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11382 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11383 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11384 (clean): Add "rm -f" for above C files.
11385 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11386 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11387 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11388 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11389 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11390 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11391 (init_registers_s390x_vx_linux64)
11392 (init_registers_s390x_tevx_linux64)
11393 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11394 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11396 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11397 (s390_store_vxrs_high): New functions.
11398 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11400 (s390_arch_setup): Add logic for selecting one of the new target
11401 descriptions. Activate the new vector regsets if applicable.
11402 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11403 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11404 and init_registers_s390x_tevx_linux64.
11406 2015-03-01 Pedro Alves <palves@redhat.com>
11408 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11411 2015-02-27 Pedro Alves <palves@redhat.com>
11413 * linux-x86-low.c (u_debugreg_offset): New function.
11414 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11416 2015-02-27 Pedro Alves <palves@redhat.com>
11418 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11419 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11420 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11421 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11422 (ps_lsetfpregs, ps_getpid)
11423 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11424 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11425 (ps_lsetxregs, ps_plog): Declare.
11427 2015-02-27 Pedro Alves <palves@redhat.com>
11429 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11430 IP_AGENT_EXPORT_FUNC.
11431 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11432 IP_AGENT_EXPORT_FUNC.
11433 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11434 (IP_AGENT_EXPORT): Delete.
11435 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11436 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11437 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11438 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11439 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11440 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11441 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11442 (traceframe_read_count, traceframe_write_count)
11443 (traceframes_created, trace_state_variables, get_raw_reg)
11444 (get_trace_state_variable_value, set_trace_state_variable_value)
11445 (ust_loaded, helper_thread_id, cmd_buf): Use
11446 IPA_SYM_EXPORTED_NAME.
11447 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11448 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11449 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11450 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11451 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11452 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11453 EXTERN_C_PUSH/EXTERN_C_POP.
11454 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11455 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11456 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11457 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11458 (traceframe_write_count, traceframe_read_count)
11459 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11460 (about_to_request_buffer_space, get_trace_state_variable_value)
11461 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11462 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11463 EXTERN_C_PUSH/EXTERN_C_POP.
11464 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11465 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11466 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11467 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11468 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11469 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11470 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11471 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11473 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11474 (IP_AGENT_EXPORT_VAR_DECL): Define.
11475 (tracing): Declare.
11476 (gdb_agent_get_raw_reg): Declare.
11478 2015-02-27 Tom Tromey <tromey@redhat.com>
11479 Pedro Alves <palves@redhat.com>
11481 Rename symbols whose names are reserved C++ keywords throughout.
11483 2015-02-27 Pedro Alves <palves@redhat.com>
11485 * Makefile.in (COMPILER): New, get it from autoconf.
11486 (CXX): Get from autoconf instead.
11487 (COMPILE.pre): Use COMPILER.
11488 (CC-LD): Rename to ...
11489 (CC_LD): ... this. Use COMPILER.
11490 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11491 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11492 * acinclude.m4: Include build-with-cxx.m4.
11493 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11494 Disable -Werror by default if building in C++ mode.
11495 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11496 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11497 the C++ compiler. Save/restore CXXFLAGS too.
11498 * configure: Regenerate.
11500 2015-02-27 Pedro Alves <palves@redhat.com>
11502 * acinclude.m4: Include libiberty.m4.
11503 * configure.ac: Call libiberty_INIT.
11504 * config.in, configure: Regenerate.
11506 2015-02-26 Pedro Alves <palves@redhat.com>
11508 * linux-low.c (linux_wait_1): When incrementing the PC past a
11509 program breakpoint always use the_low_target.breakpoint_len as
11510 increment, rather than the maximum between that and
11511 the_low_target.decr_pc_after_break.
11513 2015-02-23 Pedro Alves <palves@redhat.com>
11515 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11516 thread was doing a step-over; always adjust the PC if
11517 we stepped over a permanent breakpoint.
11518 (linux_wait_1): If we stepped over breakpoint that was on top of a
11519 permanent breakpoint, manually advance the PC past it.
11521 2015-02-23 Pedro Alves <palves@redhat.com>
11523 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11525 (x86_fill_gregset, x86_store_gregset): Use it when handling
11528 2015-02-20 Pedro Alves <palves@redhat.com>
11530 * thread-db.c: Include "nat/linux-procfs.h".
11531 (thread_db_init): Skip listing new threads if the kernel supports
11532 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11534 2015-02-20 Pedro Alves <palves@redhat.com>
11536 * linux-low.c (status_pending_p_callback): Use ptid_match.
11538 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11540 PR breakpoints/16812
11541 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11542 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11543 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11545 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11547 PR breakpoints/15956
11548 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11550 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11552 * linux-low.c (linux_low_btrace_conf): Print size.
11553 * server.c (handle_btrace_conf_general_set): New.
11554 (hanle_general_set): Call handle_btrace_conf_general_set.
11555 (handle_query): Report Qbtrace-conf:bts:size as supported.
11557 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11559 * linux-low.c (linux_low_enable_btrace): Update parameters.
11560 (linux_low_btrace_conf): New.
11561 (linux_target_ops)<to_btrace_conf>: Initialize.
11562 * server.c (current_btrace_conf): New.
11563 (handle_btrace_enable): Rename to ...
11564 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11565 to target_enable_btrace. Update comment. Update users.
11566 (handle_qxfer_btrace_conf): New.
11567 (qxfer_packets): Add btrace-conf entry.
11568 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11569 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11570 (target_ops)<read_btrace_conf>: New.
11571 (target_enable_btrace): Update parameters.
11572 (target_read_btrace_conf): New.
11574 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11576 * server.c (handle_btrace_general_set): Remove call to
11577 target_supports_btrace.
11578 (supported_btrace_packets): New.
11579 (handle_query): Call supported_btrace_packets.
11580 * target.h: include btrace-common.h.
11581 (btrace_target_info): Removed.
11582 (supports_btrace, target_supports_btrace): Update parameters.
11584 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11586 * Makefile.in (SFILES): Add common/btrace-common.c.
11587 (OBS): Add common/btrace-common.o.
11588 (btrace-common.o): Add build rules.
11589 * linux-low: Include btrace-common.h.
11590 (linux_low_read_btrace): Use struct btrace_data. Call
11591 btrace_data_init and btrace_data_fini.
11593 2015-02-06 Pedro Alves <palves@redhat.com>
11595 * thread-db.c (find_new_threads_callback): Add debug output.
11597 2015-02-04 Pedro Alves <palves@redhat.com>
11599 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11600 (resume_stopped_resumed_lwps): New function.
11601 (linux_wait_for_event_filtered): Use it.
11603 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11605 * Makefile.in (SFILES): Add linux-personality.c.
11606 (linux-personality.o): New rule.
11607 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11608 list of objects to be built.
11609 * linux-low.c: Include nat/linux-personality.h.
11610 (linux_create_inferior): Remove code to disable address space
11611 randomization (moved to ../nat/linux-personality.c). Create
11612 cleanup to disable address space randomization.
11614 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11616 * Makefile.in (posix-strerror.o): New rule.
11617 (mingw-strerror.o): Likewise.
11618 * configure: Regenerated.
11619 * configure.ac: Source file ../common/common.host. Initialize new
11620 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11622 2015-01-14 Yao Qi <yao@codesourcery.com>
11624 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11625 (ppc-linux.o): New rule.
11626 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11627 * configure.ac: AC_CHECK_FUNCS(getauxval).
11628 * config.in: Re-generated.
11629 * configure: Re-generated.
11630 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11631 ppc64_64bit_inferior_p
11633 2015-01-14 Yao Qi <yao@codesourcery.com>
11635 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11636 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11637 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11638 (PT_ORIG_R3, PT_TRAP): Likewise.
11639 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11640 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11641 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11643 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11645 * i387-fp.c (i387_cache_to_xsave): In look over
11646 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11647 zmmh_low_space field by use of zmmh_high_space.
11649 2015-01-09 Pedro Alves <palves@redhat.com>
11651 * linux-low.c (step_over_bkpt): Move higher up in the file.
11652 (handle_extended_wait): Don't store the stop_pc here.
11653 (get_stop_pc): Adjust comments and rename to ...
11654 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11655 stopped for a software breakpoint or hardware breakpoint.
11656 (thread_still_has_status_pending_p): New function.
11657 (status_pending_p_callback): Use
11658 thread_still_has_status_pending_p. If the event is no longer
11659 interesting, resume the LWP.
11660 (handle_tracepoints): Add assert.
11661 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11662 (wstatus_maybe_breakpoint): New function.
11663 (cancel_breakpoint): Delete function.
11664 (check_stopped_by_watchpoint): New function, factored out from
11665 linux_low_filter_event.
11666 (lp_status_maybe_breakpoint): Delete function.
11667 (linux_low_filter_event): Remove filter_ptid argument.
11668 Leave thread group exits pending here. Store the LWP's stop PC.
11669 Always leave events pending.
11670 (linux_wait_for_event_filtered): Pull all events out of the
11671 kernel, and leave them all pending.
11672 (count_events_callback, select_event_lwp_callback): Consider all
11674 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11675 (select_event_lwp): Only give preference to the stepping LWP in
11676 all-stop mode. Adjust comments.
11677 (ignore_event): New function.
11678 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11679 references to cancel_breakpoints. Adjust to renames. Also give
11680 equal priority to all LWPs that have had events in non-stop mode.
11681 If reporting a software breakpoint event, unadjust the LWP's PC.
11682 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11683 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11685 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11686 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11687 (linux_stopped_by_watchpoint): Adjust.
11688 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11689 * linux-low.h (enum lwp_stop_reason): New.
11690 (struct lwp_info) <stop_pc>: Adjust comment.
11691 <stopped_by_watchpoint>: Delete field.
11692 <stop_reason>: New field.
11693 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11694 * mem-break.c (software_breakpoint_inserted_here)
11695 (hardware_breakpoint_inserted_here): New function.
11696 * mem-break.h (software_breakpoint_inserted_here)
11697 (hardware_breakpoint_inserted_here): Declare.
11698 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11699 (cancel_breakpoints): Delete.
11700 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11701 (upload_fast_traceframes): Remove references to
11702 cancel_breakpoints.
11704 2015-01-09 Pedro Alves <palves@redhat.com>
11706 * thread-db.c (find_new_threads_callback): Ignore thread if the
11707 kernel thread ID is -1.
11709 2015-01-09 Pedro Alves <palves@redhat.com>
11711 * linux-low.c (linux_attach_fail_reason_string): Move to
11712 nat/linux-ptrace.c, and rename.
11713 (linux_attach_lwp): Update comment.
11714 (attach_proc_task_lwp_callback): New function.
11715 (linux_attach): Adjust to rename and use
11716 linux_proc_attach_tgid_threads.
11717 (linux_attach_fail_reason_string): Delete declaration.
11719 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11721 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11722 * server.c (gdbserver_version): Likewise.
11724 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11726 * remote-utils.c: Include ctype.h.
11727 (input_interrupt): Explicitly handle the case when the char
11728 received is the NUL byte. Improve the printing of non-ASCII
11731 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11733 * linux-low.c (linux_low_filter_event): Update call to
11734 linux_enable_event_reporting following the addition of
11735 a new parameter to that function.
11737 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11740 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11741 (AARCH64_FPCR_REGNO): Likewise.
11742 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11743 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11744 (aarch64_store_fpregset): Likewise.
11746 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11748 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11749 Remove FIXME comment about assumption about N.
11751 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11753 * configure.ac: If large-file support is disabled in GDBserver,
11754 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11755 * configure: Regenerate.
11757 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11759 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11760 warning upon ENODATA from ptrace.
11761 * linux-s390-low.c (s390_store_tdb): New.
11762 (s390_regsets): Add regset for NT_S390_TDB.
11764 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11766 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11767 without a fill_function.
11768 * linux-s390-low.c (s390_fill_last_break): Remove.
11769 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11770 (s390_arch_setup): Use regset's size instead of fill_function for
11771 loop end condition.
11773 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11775 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11776 the regset's store function when ptrace returned an error.
11777 * regcache.c (get_thread_regcache): Invalidate register cache
11778 before fetching inferior's registers.
11780 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11782 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11783 while-loop as for-loop.
11784 (regsets_store_inferior_registers): Likewise.
11786 2014-11-28 Yao Qi <yao@codesourcery.com>
11788 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11789 * config.in, configure: Re-generate.
11790 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11793 2014-11-21 Yao Qi <yao@codesourcery.com>
11795 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11796 (AC_CHECK_HEADERS): Remove malloc.h.
11797 * configure: Re-generated.
11798 * config.in: Re-generated.
11799 * server.h: Don't include alloca.h and malloc.h.
11800 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11801 Don't include malloc.h.
11803 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11805 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11806 corresponding ERRNO check in same block.
11808 2014-11-12 Pedro Alves <palves@redhat.com>
11810 * server.c (cont_thread): Update comment.
11811 (start_inferior, attach_inferior): No longer clear cont_thread.
11812 (handle_v_cont): No longer set cont_thread.
11813 (captured_main): Clear cont_thread each time a GDB connects.
11815 2014-11-12 Pedro Alves <palves@redhat.com>
11817 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11818 thread, and don't resume all threads if the Hc thread has exited.
11820 2014-11-12 Pedro Alves <palves@redhat.com>
11822 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11823 the process group instead of to a specific LWP.
11825 2014-10-15 Pedro Alves <palves@redhat.com>
11828 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11830 (arm_set_thread_context): Delete.
11831 (the_low_target): Adjust.
11832 * win32-i386-low.c (debug_registers_changed)
11833 (debug_registers_used): Delete.
11834 (update_debug_registers_callback): New function.
11835 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11836 needing to update their debug registers.
11837 (win32_get_current_dr): New function.
11838 (x86_dr_low_get_addr, x86_dr_low_get_control)
11839 (x86_dr_low_get_status): Fetch the debug register from the thread
11841 (i386_initial_stuff): Adjust.
11842 (i386_get_thread_context): Remove current_event parameter. Don't
11843 clear debug_registers_changed nor copy DR values to
11845 (i386_set_thread_context): Delete.
11846 (i386_prepare_to_resume): New function.
11847 (i386_thread_added): Mark the thread as needing to update irs
11849 (the_low_target): Remove i386_set_thread_context and install
11850 i386_prepare_to_resume.
11851 * win32-low.c (win32_get_thread_context): Adjust.
11852 (win32_set_thread_context): Use SetThreadContext
11854 (win32_prepare_to_resume): New function.
11855 (win32_require_context): New function, factored out from ...
11856 (thread_rec): ... this.
11857 (continue_one_thread): Call win32_prepare_to_resume on each thread
11858 we're about to continue.
11859 (win32_resume): Call win32_prepare_to_resume on the event thread.
11860 * win32-low.h (struct win32_thread_info)
11861 <debug_registers_changed>: New field.
11862 (struct win32_target_ops): Change prototype of set_thread_context,
11863 delete set_thread_context and add prepare_to_resume.
11864 (win32_require_context): New declaration.
11866 2014-10-08 Gary Benson <gbenson@redhat.com>
11868 * server.h: Do not include common-exceptions.h.
11870 2014-10-08 Gary Benson <gbenson@redhat.com>
11872 * server.h: Do not include cleanups.h.
11874 2014-09-30 James Hogan <james.hogan@imgtec.com>
11876 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11877 mips64-dsp-linux.c.
11879 2014-09-23 Yao Qi <yao@codesourcery.com>
11881 * linux-low.c (lp_status_maybe_breakpoint): New function.
11882 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11883 (count_events_callback): Likewise.
11884 (select_event_lwp_callback): Likewise.
11885 (cancel_breakpoints_callback): Likewise.
11887 2014-09-19 Don Breazeal <donb@codesourcery.com>
11889 * linux-low.c (handle_extended_wait): Call
11890 linux_ptrace_get_extended_event.
11891 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11892 linux_is_extended_waitstatus.
11894 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11896 * Makefile.in (CPPFLAGS): Define.
11897 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11898 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11900 2014-09-16 Gary Benson <gbenson@redhat.com>
11902 * inferiors.h (current_inferior): Renamed as...
11903 (current_thread): New variable. All uses updated.
11904 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11905 (maybe_move_out_of_jump_pad): Likewise.
11906 (cancel_breakpoint): Likewise.
11907 (linux_low_filter_event): Likewise.
11908 (wait_for_sigstop): Likewise.
11909 (linux_resume_one_lwp): Likewise.
11910 (need_step_over_p): Likewise.
11911 (start_step_over): Likewise.
11912 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11913 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11914 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11915 and save_inferior as saved_thread.
11916 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11918 (regcache_invalidate_thread): Likewise.
11919 * remote-utils.c (prepare_resume_reply): Likewise.
11920 * thread-db.c (thread_db_get_tls_address): Likewise.
11921 (disable_thread_event_reporting): Likewise.
11922 (remove_thread_event_breakpoints): Likewise.
11923 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11925 * target.h (set_desired_inferior): Renamed as...
11926 (set_desired_thread): New declaration. All uses updated.
11927 * server.c (myresume): Updated comment to reference thread instead
11929 (handle_serial_event): Likewise.
11930 (handle_target_event): Likewise.
11932 2014-09-12 Tom Tromey <tromey@redhat.com>
11933 Gary Benson <gbenson@redhat.com>
11935 * regcache.h: Include common-regcache.h.
11936 (regcache_read_pc): Don't declare.
11937 * regcache.c (get_thread_regcache_for_ptid): New function.
11939 2014-09-11 Tom Tromey <tromey@redhat.com>
11940 Gary Benson <gbenson@redhat.com>
11942 * symbol.c: New file.
11943 * Makefile.in (SFILES): Add symbol.c.
11944 (OBS): Add symbol.o.
11946 2014-09-11 Gary Benson <gbenson@redhat.com>
11948 * target.c (target_stop_ptid, target_continue_ptid): New
11951 2014-09-11 Tom Tromey <tromey@redhat.com>
11952 Gary Benson <gbenson@redhat.com>
11954 * target.h: Include target/target.h.
11955 * target.c (target_read_memory, target_read_uint32)
11956 (target_write_memory): New functions.
11958 2014-09-11 Gary Benson <gbenson@redhat.com>
11960 * server.h (debug_hw_points): Don't declare.
11961 * server.c (debug_hw_points): Don't define. Replace all uses
11962 with show_debug_regs.
11963 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11964 all uses with show_debug_regs.
11966 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11968 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11969 endianness into account.
11970 (ppc_supply_ptrace_register): Likewise.
11972 2014-09-03 James Hogan <james.hogan@imgtec.com>
11974 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11975 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11977 2014-09-03 Gary Benson <gbenson@redhat.com>
11979 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11980 ALL_DEBUG_ADDRESS_REGISTERS.
11982 2014-09-02 Gary Benson <gbenson@redhat.com>
11984 * i386-low.h: Renamed as...
11985 * x86-low.h: New file. All type, function and variable name
11986 prefixes changed from "i386_" to "x86_". All references updated.
11987 * i386-low.c: Renamed as...
11988 * x86-low.c: New file. All type, function and variable name
11989 prefixes changed from "i386_" to "x86_". All references updated.
11991 2014-09-02 Gary Benson <gbenson@redhat.com>
11993 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11994 (x86_linux_new_thread): Likewise.
11996 2014-08-29 Gary Benson <gbenson@redhat.com>
11998 * server.h (setjmp.h): Do not include.
11999 (toplevel): Do not declare.
12000 (common-exceptions.h): Include.
12001 (cleanups.h): Likewise.
12002 * server.c (toplevel): Do not define.
12003 (exit_code): New static global.
12004 (detach_or_kill_for_exit_cleanup): New function.
12005 (main): New function. Original main renamed to...
12006 (captured_main): New function.
12007 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12009 2014-08-29 Gary Benson <gbenson@redhat.com>
12011 * Makefile.in (SFILES): Add common/common-exceptions.c.
12012 (OBS): Add common-exceptions.o.
12013 (common-exceptions.o): New rule.
12014 * utils.c (prepare_to_throw_exception): New function.
12016 2014-08-29 Gary Benson <gbenson@redhat.com>
12018 * config.in: Regenerate.
12019 * configure: Likewise.
12021 2014-08-29 Gary Benson <gbenson@redhat.com>
12023 * Makefile.in (SFILES): Add common/cleanups.c.
12025 (cleanups.o): New rule.
12027 2014-08-29 Gary Benson <gbenson@redhat.com>
12029 * utils.c (internal_vwarning): New function.
12031 2014-08-28 Gary Benson <gbenson@redhat.com>
12033 * utils.h (fatal): Remove declaration.
12034 * utils.c (fatal): Remove function.
12036 2014-08-28 Gary Benson <gbenson@redhat.com>
12038 * tracepoint.c (gdb_agent_init): Replace fatal with
12040 (initialize_tracepoint): Likewise.
12042 2014-08-28 Gary Benson <gbenson@redhat.com>
12044 * remote-utils.c (remote_prepare): Replace fatal with error.
12046 2014-08-28 Gary Benson <gbenson@redhat.com>
12048 * linux-low.c (linux_async): Replace fatal with warning.
12049 Tidy up and return.
12050 (linux_start_non_stop): Return -1 if linux_async failed.
12052 2014-08-28 Gary Benson <gbenson@redhat.com>
12054 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12056 (i386_dr_low_get_addr): Remove vague comment.
12057 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12060 2014-08-28 Gary Benson <gbenson@redhat.com>
12062 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12063 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12065 (linux_resume_one_lwp): Likewise.
12066 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12068 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12069 with internal_error.
12070 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12071 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12072 (find_register_by_name): Replace fatal with internal_error.
12073 (find_regno): Likewise.
12074 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12075 * thread-db.c (thread_db_create_event): Likewise.
12076 (thread_db_load_search): Likewise.
12077 (try_thread_db_load_1): Likewise.
12078 * tracepoint.c (get_jump_space_head): Replace fatal with
12080 (claim_trampoline_space): Likewise.
12081 (have_fast_tracepoint_trampoline_buffer): Likewise.
12082 (cmd_qtstart): Likewise.
12083 (stop_tracing): Likewise.
12084 (fast_tracepoint_collecting): Likewise.
12085 (target_malloc): Likewise.
12086 (download_tracepoint): Likewise.
12087 (download_trace_state_variables): Replace check with gdb_assert.
12088 (upload_fast_traceframes): Replace fatal with internal_error.
12090 2014-08-19 Tom Tromey <tromey@redhat.com>
12091 Gary Benson <gbenson@redhat.com>
12093 * Makefile.in (SFILES): Add common/common-debug.c.
12094 (OBS): Add common-debug.o.
12095 (common-debug.o): New rule.
12096 * debug.h (debug_printf): Don't declare.
12097 * debug.c (debug_printf): Renamed and rewritten as...
12098 (debug_vprintf): New function.
12100 2014-08-19 Gary Benson <gbenson@redhat.com>
12102 * utils.h: Do not include print-utils.h.
12104 2014-08-19 Tom Tromey <tromey@redhat.com>
12105 Gary Benson <gbenson@redhat.com>
12107 * server.h: Add static assertion.
12108 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12110 2014-08-19 Tom Tromey <tromey@redhat.com>
12111 Gary Benson <gbenson@redhat.com>
12113 * Makefile.in (SFILES): Add common/errors.c.
12114 (OBS): Add errors.o.
12115 (IPA_OBS): Add errors-ipa.o.
12116 (errors.o): New rule.
12117 (errors-ipa.o): Likewise.
12118 * utils.h (perror_with_name, error, warning): Don't declare.
12119 * utils.c (warning): Renamed and rewritten as...
12120 (vwarning): New function.
12121 (error): Renamed and rewritten as...
12122 (verror): New function.
12123 (internal_error): Renamed and rewritten as...
12124 (internal_verror): New function.
12126 2014-08-07 Gary Benson <gbenson@redhat.com>
12128 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12129 * configure: Regenerate.
12130 * config.in: Likewise.
12131 * server.h: Do not include errno.h.
12132 * event-loop.c: Likewise.
12133 * hostio-errno.c: Likewise.
12134 * linux-low.c: Likewise.
12135 * remote-utils.c: Likewise.
12136 * spu-low.c: Likewise.
12137 * utils.c: Likewise.
12138 * gdbreplay.c: Unconditionally include errno.h.
12140 2014-08-07 Gary Benson <gbenson@redhat.com>
12142 * server.h: Do not include string.h.
12143 * event-loop.c: Likewise.
12144 * linux-low.c: Likewise.
12145 * regcache.c: Likewise.
12146 * remote-utils.c: Likewise.
12147 * spu-low.c: Likewise.
12148 * utils.c: Likewise.
12150 2014-08-07 Gary Benson <gbenson@redhat.com>
12152 * server.h: Do not include gdb_assert.h.
12154 2014-08-07 Gary Benson <gbenson@redhat.com>
12156 * server.h: Do not include common-utils.h.
12158 2014-08-07 Gary Benson <gbenson@redhat.com>
12160 * server.h: Do not include ptid.h.
12161 * notif.h: Likewise.
12163 2014-08-07 Gary Benson <gbenson@redhat.com>
12165 * server.h: Do not include gdb_locale.h.
12167 2014-08-07 Gary Benson <gbenson@redhat.com>
12169 * server.h: Do not include gdb/signals.h.
12170 * win32-low.c: Likewise.
12172 2014-08-07 Gary Benson <gbenson@redhat.com>
12174 * server.h: Do not include pathmax.h.
12176 2014-08-07 Gary Benson <gbenson@redhat.com>
12178 * server.h: Do not include libiberty.h.
12179 * linux-bfin-low.c: Likewise.
12181 2014-08-07 Gary Benson <gbenson@redhat.com>
12183 * server.h: Do not include ansidecl.h.
12185 2014-08-07 Gary Benson <gbenson@redhat.com>
12187 * linux-x86-low.c: Do not include stddef.h.
12188 * lynx-ppc-low.c: Likewise.
12189 * tracepoint.c: Likewise.
12191 2014-08-07 Gary Benson <gbenson@redhat.com>
12193 * server.h: Do not include stdarg.h.
12194 * nto-low.c: Likewise.
12196 2014-08-07 Gary Benson <gbenson@redhat.com>
12198 * server.h: Do not include stdlib.h.
12199 * inferiors.c: Likewise.
12200 * linux-low.c: Likewise.
12201 * regcache.c: Likewise.
12202 * spu-low.c: Likewise.
12203 * tracepoint.c: Likewise.
12204 * utils.c: Likewise.
12206 2014-08-07 Gary Benson <gbenson@redhat.com>
12208 * server.h: Do not include stdio.h.
12209 * linux-low.c: Likewise.
12210 * remote-utils.c: Likewise.
12211 * spu-low.c: Likewise.
12212 * utils.c: Likewise.
12213 * wincecompat.c: Likewise.
12215 2014-08-06 Gary Benson <gbenson@redhat.com>
12217 * regcache.c (init_register_cache): Move conditionals inside if.
12219 2014-08-06 Gary Benson <gbenson@redhat.com>
12221 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12223 2014-07-31 Gary Benson <gbenson@redhat.com>
12225 * ax.h: Do not include server.h.
12226 * gdbthread.h: Likewise.
12227 * lynx-low.h: Likewise.
12228 * notif.h: Likewise.
12230 2014-07-30 Gary Benson <gbenson@redhat.com>
12232 * server.h: Include common-defs.h.
12233 Do not include config.h or build-gnulib-gdbserver/config.h.
12235 2014-07-30 Gary Benson <gbenson@redhat.com>
12237 * hostio-errno.c: Move server.h to top of includes list.
12238 * inferiors.c: Likewise.
12239 * linux-x86-low.c: Likewise.
12240 * notif.c: Include server.h.
12242 2014-07-24 Tom Tromey <tromey@redhat.com>
12243 Gary Benson <gbenson@redhat.com>
12245 * server.h (CORE_ADDR): Now unsigned.
12247 2014-07-16 Pedro Alves <palves@redhat.com>
12249 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12251 2014-07-15 Pedro Alves <palves@redhat.com>
12253 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12256 2014-07-11 Pedro Alves <palves@redhat.com>
12258 * linux-low.c (kill_wait_lwp): New function, based on
12259 kill_one_lwp_callback, but use my_waitpid directly.
12260 (kill_one_lwp_callback, linux_kill): Use it.
12262 2014-06-23 Pedro Alves <palves@redhat.com>
12264 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12265 before setting DR0..DR3.
12267 2014-06-20 Gary Benson <gbenson@redhat.com>
12269 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12270 * configure: Regenerated.
12271 * config.in: Likewise.
12273 2014-06-20 Gary Benson <gbenson@redhat.com>
12275 * Makefile.in (SFILES): Update locations for files moved
12276 from common to nat.
12277 (object file files): Reordered.
12279 2014-06-20 Gary Benson <gbenson@redhat.com>
12281 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12282 (i386_dr_low_set_addr): Likewise.
12283 (i386_dr_low_get_addr): Likewise.
12284 (i386_dr_low_can_set_control): Likewise.
12285 (i386_dr_low_set_control): Likewise.
12286 (i386_dr_low_get_control): Likewise.
12287 (i386_dr_low_get_status): Likewise.
12288 (i386_get_debug_register_length): Likewise.
12289 * linux-x86-low.c (i386_dr_low_set_addr):
12290 Changed signature. Made static.
12291 (i386_dr_low_get_addr): Likewise.
12292 (i386_dr_low_set_control): Likewise.
12293 (i386_dr_low_get_control): Likewise.
12294 (i386_dr_low_get_status): Likewise.
12295 (i386_dr_low): New global variable.
12296 * win32-i386-low.c (i386_dr_low_set_addr):
12297 Changed signature. Made static.
12298 (i386_dr_low_get_addr): Likewise.
12299 (i386_dr_low_set_control): Likewise.
12300 (i386_dr_low_get_control): Likewise.
12301 (i386_dr_low_get_status): Likewise.
12302 (i386_dr_low): New global variable.
12304 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12306 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12307 * Makefile.in (AR, AR_FLAGS): Define.
12308 * configure: Regenerate.
12310 2014-06-19 Gary Benson <gbenson@redhat.com>
12312 * Makefile.in (i386-dregs.o): New rule.
12313 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12314 * i386-low.c (target.h): Remove include.
12315 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12316 (DR_CONTROL_SHIFT): Likewise.
12317 (DR_CONTROL_SIZE): Likewise.
12318 (DR_RW_EXECUTE): Likewise.
12319 (DR_RW_WRITE): Likewise.
12320 (DR_RW_READ): Likewise.
12321 (DR_RW_IORW): Likewise.
12322 (DR_LEN_1): Likewise.
12323 (DR_LEN_2): Likewise.
12324 (DR_LEN_4): Likewise.
12325 (DR_LEN_8): Likewise.
12326 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12327 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12328 (DR_ENABLE_SIZE): Likewise.
12329 (DR_LOCAL_SLOWDOWN): Likewise.
12330 (DR_GLOBAL_SLOWDOWN): Likewise.
12331 (DR_CONTROL_RESERVED): Likewise.
12332 (I386_DR_CONTROL_MASK): Likewise.
12333 (I386_DR_VACANT): Likewise.
12334 (I386_DR_LOCAL_ENABLE): Likewise.
12335 (I386_DR_GLOBAL_ENABLE): Likewise.
12336 (I386_DR_DISABLE): Likewise.
12337 (I386_DR_SET_RW_LEN): Likewise.
12338 (I386_DR_GET_RW_LEN): Likewise.
12339 (I386_DR_WATCH_HIT): Likewise.
12340 (i386_wp_op_t): Likewise.
12341 (i386_show_dr): Likewise.
12342 (i386_length_and_rw_bits): Likewise.
12343 (i386_insert_aligned_watchpoint): Likewise.
12344 (i386_remove_aligned_watchpoint): Likewise.
12345 (i386_handle_nonaligned_watchpoint): Likewise.
12346 i386_update_inferior_debug_regs(): Likewise.
12347 (i386_dr_insert_watchpoint): Likewise.
12348 (i386_dr_remove_watchpoint): Likewise.
12349 (i386_dr_region_ok_for_watchpoint): Likewise.
12350 (i386_dr_stopped_data_address): Likewise.
12351 (i386_dr_stopped_by_watchpoint): Likewise.
12353 2014-06-19 Gary Benson <gbenson@redhat.com>
12355 * i386-low.c (i386_dr_show): Renamed to
12356 i386_show_dr and made static. All uses updated.
12357 (i386_dr_length_and_rw_bits): Renamed to
12358 i386_length_and_rw_bits and made static.
12360 (i386_dr_insert_aligned_watchpoint): Renamed to
12361 i386_insert_aligned_watchpoint and made static.
12363 (i386_dr_remove_aligned_watchpoint): Renamed to
12364 i386_remove_aligned_watchpoint and made static.
12366 (i386_dr_update_inferior_debug_regs): Renamed to
12367 i386_update_inferior_debug_regs and made static.
12370 2014-06-18 Gary Benson <gbenson@redhat.com>
12372 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12373 (i386_dr_low_can_set_control): Likewise.
12374 (i386_get_debug_register_length): Likewise.
12375 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12376 (i386_dr_low_can_set_control): Likewise.
12377 (i386_get_debug_register_length): Likewise.
12379 2014-06-17 Gary Benson <gbenson@redhat.com>
12381 * i386-low.h (i386-dregs.h): New include.
12382 (DR_FIRSTADDR): Now in i386-dregs.h.
12383 (DR_LASTADDR): Likewise.
12384 (DR_NADDR): Likewise.
12385 (DR_STATUS): Likewise.
12386 (DR_CONTROL): Likewise.
12387 (i386_debug_reg_state): Likewise.
12388 (i386_dr_insert_watchpoint): Likewise.
12389 (i386_dr_remove_watchpoint): Likewise.
12390 (i386_dr_region_ok_for_watchpoint): Likewise.
12391 (i386_dr_stopped_data_address): Likewise.
12392 (i386_dr_stopped_by_watchpoint): Likewise.
12393 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12395 2014-06-18 Gary Benson <gbenson@redhat.com>
12397 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12398 i386_dr_insert_watchpoint.
12399 (i386_low_remove_watchpoint): Renamed to
12400 i386_dr_remove_watchpoint.
12401 (i386_low_region_ok_for_watchpoint): Renamed to
12402 i386_dr_region_ok_for_watchpoint.
12403 (i386_low_stopped_data_address): Renamed to
12404 i386_dr_stopped_data_address.
12405 (i386_low_stopped_by_watchpoint): Renamed to
12406 i386_dr_stopped_by_watchpoint.
12407 * i386-low.c (i386_show_dr): Renamed to
12408 i386_dr_show and made nonstatic. All uses updated.
12409 (i386_length_and_rw_bits): Renamed to
12410 i386_dr_length_and_rw_bits and made nonstatic.
12412 (i386_insert_aligned_watchpoint): Renamed to
12413 i386_dr_insert_aligned_watchpoint and made nonstatic.
12415 (i386_remove_aligned_watchpoint): Renamed to
12416 i386_dr_remove_aligned_watchpoint and made nonstatic.
12418 (i386_update_inferior_debug_regs): Renamed to
12419 i386_dr_update_inferior_debug_regs and made nonstatic.
12421 (i386_low_insert_watchpoint): Renamed to
12422 i386_dr_insert_watchpoint. All uses updated.
12423 (i386_low_remove_watchpoint): Renamed to
12424 i386_dr_remove_watchpoint. All uses updated.
12425 (i386_low_region_ok_for_watchpoint): Renamed to
12426 i386_dr_region_ok_for_watchpoint. All uses updated.
12427 (i386_low_stopped_data_address): Renamed to
12428 i386_dr_stopped_data_address. All uses updated.
12429 (i386_low_stopped_by_watchpoint): Renamed to
12430 i386_dr_stopped_by_watchpoint. All uses updated.
12432 2014-06-18 Gary Benson <gbenson@redhat.com>
12434 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12435 (i386_dr_low_can_set_control): Likewise.
12436 (i386_insert_aligned_watchpoint): New check.
12438 2014-06-18 Gary Benson <gbenson@redhat.com>
12440 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12443 2014-06-18 Gary Benson <gbenson@redhat.com>
12445 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12446 instead of fatal and error.
12447 (i386_handle_nonaligned_watchpoint): Likewise.
12449 2014-06-18 Gary Benson <gbenson@redhat.com>
12451 * i386-low.c (i386_get_debug_register_length): New macro.
12452 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12453 (i386_show_dr): Use debug_printf instead of fprintf. Use
12454 phex to format values.
12456 2014-06-18 Gary Benson <gbenson@redhat.com>
12458 * i386-low.h: Comment changes.
12459 * i386-low.c: Likewise.
12461 2014-06-18 Gary Benson <gbenson@redhat.com>
12463 * i386-low.c: Whitespace changes.
12465 2014-06-12 Tom Tromey <tromey@redhat.com>
12467 * utils.c (freeargv): Remove.
12469 2014-06-12 Tom Tromey <tromey@redhat.com>
12471 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12472 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12473 (parse_debug_format_options): Likewise.
12474 (gdbserver_usage): Likewise.
12475 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12476 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12477 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12479 ($(LIBGNU)): Depend on libiberty.
12480 (all-lib): Recurse into all subdirs.
12481 (install-only): Invoke "install" target in subdirs.
12482 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12484 * configure: Rebuild.
12485 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12486 for vasprintf, vsnprintf, or gettimeofday.
12487 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12490 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12492 * development.sh: Delete.
12493 * Makefile.in (config.status): Adjust dependency on development.sh.
12494 * configure.ac: Adjust development.sh source call.
12495 * configure: Regenerate.
12497 2014-06-02 Pedro Alves <palves@redhat.com>
12499 * ax.c (gdb_free_agent_expr): New function.
12500 * ax.h (gdb_free_agent_expr): New declaration.
12501 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12503 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12505 (clear_breakpoint_conditions_and_commands): New function.
12506 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12507 (clear_breakpoint_conditions_and_commands): New declaration.
12509 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12511 * linux-aarch64-low.c (asm/ptrace.h): Include.
12513 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12515 Fix TLS access for -static -pthread.
12516 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12517 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12518 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12520 2014-05-20 Pedro Alves <palves@redhat.com>
12522 * linux-aarch64-low.c (aarch64_insert_point)
12523 (aarch64_remove_point): No longer check whether the type is
12524 supported here. Adjust to new interface.
12525 (the_low_target): Install aarch64_supports_z_point_type as
12526 supports_z_point_type method.
12527 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12528 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12529 instead of a Z packet char. Adjust.
12530 (arm_supports_z_point_type): New function.
12531 (arm_insert_point, arm_remove_point): Adjust to new interface.
12532 (the_low_target): Install arm_supports_z_point_type.
12533 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12534 (cris_insert_point, cris_remove_point): Adjust to new interface.
12535 Don't check whether the type is supported here.
12536 (the_low_target): Install cris_supports_z_point_type.
12537 * linux-low.c (linux_supports_z_point_type): New function.
12538 (linux_insert_point, linux_remove_point): Adjust to new interface.
12539 * linux-low.h (struct linux_target_ops) <insert_point,
12540 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12541 raw_breakpoint pointer parameter.
12542 <supports_z_point_type>: New method.
12543 * linux-mips-low.c (mips_supports_z_point_type): New function.
12544 (mips_insert_point, mips_remove_point): Adjust to new interface.
12545 Use mips_supports_z_point_type.
12546 (the_low_target): Install mips_supports_z_point_type.
12547 * linux-ppc-low.c (the_low_target): Install NULL as
12548 supports_z_point_type method.
12549 * linux-s390-low.c (the_low_target): Install NULL as
12550 supports_z_point_type method.
12551 * linux-sparc-low.c (the_low_target): Install NULL as
12552 supports_z_point_type method.
12553 * linux-x86-low.c (x86_supports_z_point_type): New function.
12554 (x86_insert_point): Adjust to new insert_point interface. Use
12555 insert_memory_breakpoint. Adjust to new
12556 i386_low_insert_watchpoint interface.
12557 (x86_remove_point): Adjust to remove_point interface. Use
12558 remove_memory_breakpoint. Adjust to new
12559 i386_low_remove_watchpoint interface.
12560 (the_low_target): Install x86_supports_z_point_type.
12561 * lynx-low.c (lynx_target_ops): Install NULL as
12562 supports_z_point_type callback.
12563 * nto-low.c (nto_supports_z_point_type): New.
12564 (nto_insert_point, nto_remove_point): Adjust to new interface.
12565 (nto_target_ops): Install nto_supports_z_point_type.
12566 * mem-break.c: Adjust intro comment.
12567 (struct raw_breakpoint) <raw_type, size>: New fields.
12568 <inserted>: Update comment.
12569 <shlib_disabled>: Delete field.
12570 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12571 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12572 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12573 (raw_bkpt_type_to_target_hw_bp_type): New function.
12574 (find_enabled_raw_code_breakpoint_at): New function.
12575 (find_raw_breakpoint_at): New type and size parameters. Use them.
12576 (insert_memory_breakpoint): New function, based off
12577 set_raw_breakpoint_at.
12578 (remove_memory_breakpoint): New function.
12579 (set_raw_breakpoint_at): Reimplement.
12580 (set_breakpoint): New, based on set_breakpoint_at.
12581 (set_breakpoint_at): Reimplement.
12582 (delete_raw_breakpoint): Go through the_target->remove_point
12583 instead of assuming memory breakpoints.
12584 (find_gdb_breakpoint_at): Delete.
12585 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12586 (find_gdb_breakpoint): New function.
12587 (set_gdb_breakpoint_at): Delete.
12588 (z_type_supported): New function.
12589 (set_gdb_breakpoint_1): New function, loosely based off
12590 set_gdb_breakpoint_at.
12591 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12592 (delete_gdb_breakpoint_at): Delete.
12593 (delete_gdb_breakpoint_1): New function, loosely based off
12594 delete_gdb_breakpoint_at.
12595 (delete_gdb_breakpoint): New function.
12596 (clear_gdb_breakpoint_conditions): Rename to ...
12597 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12599 (add_condition_to_breakpoint): Make static.
12600 (add_breakpoint_condition): Take a struct breakpoint pointer
12601 instead of an address. Adjust.
12602 (gdb_condition_true_at_breakpoint): Rename to ...
12603 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12605 (gdb_condition_true_at_breakpoint): Reimplement.
12606 (add_breakpoint_commands): Take a struct breakpoint pointer
12607 instead of an address. Adjust.
12608 (gdb_no_commands_at_breakpoint): Rename to ...
12609 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12610 parameter. Return true if no breakpoint was found. Change debug
12612 (gdb_no_commands_at_breakpoint): Reimplement.
12613 (run_breakpoint_commands): Rename to ...
12614 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12615 and change return type to boolean.
12616 (run_breakpoint_commands): New function.
12617 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12618 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12619 breakpoint. Go through the_target->remove_point instead of
12620 assuming memory breakpoint.
12621 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12622 software and hardware breakpoints.
12623 (reinsert_raw_breakpoint): Go through the_target->insert_point
12624 instead of assuming memory breakpoint.
12625 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12626 software and hardware breakpoints.
12627 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12628 Check both software and hardware breakpoints.
12629 (validate_inserted_breakpoint): Assert the breakpoint is a
12630 software breakpoint. Set the inserted flag to -1 instead of
12631 setting shlib_disabled.
12632 (delete_disabled_breakpoints): Adjust.
12633 (validate_breakpoints): Only validate software breakpoints.
12634 Adjust to inserted flag change.
12635 (check_mem_read, check_mem_write): Skip breakpoint types other
12636 than software breakpoints. Adjust to inserted flag change.
12637 * mem-break.h (enum raw_bkpt_type): New enum.
12638 (raw_breakpoint, struct process_info): Forward declare.
12639 (Z_packet_to_target_hw_bp_type): Delete declaration.
12640 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12641 (set_gdb_breakpoint, delete_gdb_breakpoint)
12642 (clear_breakpoint_conditions): New declarations.
12643 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12644 (breakpoint_inserted_here): Update comment.
12645 (add_breakpoint_condition, add_breakpoint_commands): Replace
12646 address parameter with a breakpoint pointer parameter.
12647 (gdb_breakpoint_here): Update comment.
12648 (delete_gdb_breakpoint_at): Delete.
12649 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12650 * server.c (process_point_options): Take a struct breakpoint
12651 pointer instead of an address. Adjust.
12652 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12653 delete_gdb_breakpoint.
12654 * spu-low.c (spu_target_ops): Install NULL as
12655 supports_z_point_type method.
12656 * target.h: Include mem-break.h.
12657 (struct target_ops) <prepare_to_access_memory>: Update comment.
12658 <supports_z_point_type>: New field.
12659 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12660 instead of a char. Also take a raw breakpoint pointer.
12661 * win32-arm-low.c (the_low_target): Install NULL as
12662 supports_z_point_type.
12663 * win32-i386-low.c (i386_supports_z_point_type): New function.
12664 (i386_insert_point, i386_remove_point): Adjust to new interface.
12665 (the_low_target): Install i386_supports_z_point_type.
12666 * win32-low.c (win32_supports_z_point_type): New function.
12667 (win32_insert_point, win32_remove_point): Adjust to new interface.
12668 (win32_target_ops): Install win32_supports_z_point_type.
12669 * win32-low.h (struct win32_target_ops):
12670 <supports_z_point_type>: New method.
12671 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12672 instead of a char. Also take a raw breakpoint pointer.
12674 2014-05-20 Pedro Alves <palves@redhat.com>
12676 * mem-break.h: Include break-common.h.
12677 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12678 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12679 (Z_packet_to_target_hw_bp_type): New declaration.
12680 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12681 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12682 (Z_PACKET_ACCESS_WP): Delete macros.
12683 (Z_packet_to_hw_type): Delete function.
12684 * i386-low.h: Don't include break-common.h here.
12685 (Z_packet_to_hw_type): Delete declaration.
12686 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12687 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12688 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12689 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12690 * linux-aarch64-low.c: Don't include break-common.h here.
12691 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12692 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12693 (Z_packet_to_target_hw_bp_type): Delete function.
12694 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12696 (mips_insert_point, mips_remove_point): Use
12697 Z_packet_to_target_hw_bp_type.
12699 2014-05-20 Pedro Alves <palves@redhat.com>
12701 * linux-aarch64-low.c: Include break-common.h.
12702 (enum target_point_type): Delete.
12703 (Z_packet_to_point_type): Rename to ...
12704 (Z_packet_to_target_hw_bp_type): ... this, and return a
12705 target_hw_bp_type instead.
12706 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12707 instead of an enum target_point_type.
12708 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12710 (aarch64_dr_state_insert_one_point)
12711 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12712 (aarch64_handle_aligned_watchpoint)
12713 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12714 Take an enum target_hw_bp_type instead of an enum
12716 (aarch64_supports_z_point_type): New function.
12717 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12718 use Z_packet_to_target_hw_bp_type.
12720 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12722 * configure.ac: Only use -Werror by default when DEVELOPMENT
12724 * configure: Regenerate.
12726 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12728 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12729 * linux-x86-low.c (X86_64_USER_REGS): New.
12730 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12732 2014-04-28 Yao Qi <yao@codesourcery.com>
12734 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12737 2014-04-25 Pedro Alves <palves@redhat.com>
12740 * linux-low.c (linux_attach_fail_reason_string): New function.
12741 (linux_attach_lwp): Delete.
12742 (linux_attach_lwp_1): Rename to ...
12743 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12744 argument. Remove "initial" parameter. Return int instead of
12745 void. Don't error or warn here.
12746 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12747 failure to attach to the tgid. Call warning when failing to
12749 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12750 argument. Remove "initial" parameter. Return int instead of
12751 void. Don't error or warn here.
12752 (linux_attach_fail_reason_string): New declaration.
12753 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12754 interface change. Use linux_attach_fail_reason_string.
12756 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12757 Walfred Tedeschi <walfred.tedeschi@intel.com>
12759 * Makefile.in: Added rules to handle new files
12760 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12761 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12762 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12763 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12764 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12765 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12766 x32-avx512-linux.o.
12767 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12768 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12769 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12770 i386/x32-avx512.xml.
12771 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12772 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12773 i386/x32-avx512-linux.xml.
12774 * i387-fp.c (num_avx512_k_registers): New constant for number
12776 (num_avx512_zmmh_low_registers): New constant for number of
12777 lower ZMM registers (0-15).
12778 (num_avx512_zmmh_high_registers): New constant for number of
12779 higher ZMM registers (16-31).
12780 (num_avx512_ymmh_registers): New contant for number of higher
12781 YMM registers (ymm16-31 added by avx521 on x86_64).
12782 (num_avx512_xmm_registers): New constant for number of higher
12783 XMM registers (xmm16-31 added by AVX512 on x86_64).
12784 (struct i387_xsave): Add space for AVX512 registers.
12785 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12786 Add code to handle AVX512 registers.
12787 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12788 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12789 prototypei from generated file.
12790 (tdesc_amd64_avx512_linux): Likewise.
12791 (init_registers_x32_avx512_linux): Likewise.
12792 (tdesc_x32_avx512_linux): Likewise.
12793 (init_registers_i386_avx512_linux): Likewise.
12794 (tdesc_i386_avx512_linux): Likewise.
12795 (x86_64_regmap): Add AVX512 registers.
12796 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12798 (initialize_low_arch): Add code to initialize AVX512 registers.
12800 2014-04-23 Pedro Alves <palves@redhat.com>
12802 * mem-break.c (find_gdb_breakpoint_at): Make static.
12803 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12805 2014-04-23 Pedro Alves <palves@redhat.com>
12807 * i386-low.c: Don't include break-common.h here.
12808 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12809 prototype to take target_hw_bp_type as argument instead of a Z
12811 * i386-low.h: Include break-common.h here.
12812 (Z_packet_to_hw_type): Declare.
12813 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12815 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12816 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12817 (x86_remove_point): Convert the packet number to a
12818 target_hw_bp_type before calling i386_low_remove_watchpoint.
12819 * win32-i386-low.c (i386_insert_point): Convert the packet number
12820 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12821 (i386_remove_point): Convert the packet number to a
12822 target_hw_bp_type before calling i386_low_remove_watchpoint.
12824 2014-04-23 Pedro Alves <palves@redhat.com>
12826 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12828 2014-04-10 Pedro Alves <palves@redhat.com>
12830 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12831 Check if the condition or command is NULL before checking if the
12832 breakpoint is known. On success, return true.
12833 * mem-break.h (add_breakpoint_condition): Document return.
12834 (add_breakpoint_commands): Add describing comment.
12835 * server.c (skip_to_semicolon): New function.
12836 (process_point_options): Use it.
12838 2014-04-09 Pedro Alves <palves@redhat.com>
12840 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12843 2014-02-27 Pedro Alves <palves@redhat.com>
12846 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12848 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12850 (last_thread_of_process_p): Take a PID argument instead of a
12852 (linux_wait_for_lwp): Delete.
12853 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12855 (linux_low_filter_event): New function, party factored out from
12856 linux_wait_for_event.
12857 (linux_wait_for_event): Rename to ...
12858 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12859 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12860 sigsuspend. Check for zombie leaders.
12861 (linux_wait_for_event): Reimplement as wrapper around
12862 linux_wait_for_event_filtered.
12863 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12864 a normal or signal exit is seen, it's the whole process exiting.
12865 (wait_for_sigstop): No longer a for_each_inferior callback.
12866 Rewrite on top of linux_wait_for_event_filtered.
12867 (stop_all_lwps): Call wait_for_sigstop directly.
12868 * server.c (resume, handle_target_event): Handle
12869 TARGET_WAITKIND_NO_RESUMED.
12871 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12873 * win32-low.c (psapi_get_dll_name,
12874 * win32_CreateToolhelp32Snapshot): Delete.
12875 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12876 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12878 (handle_load_dll): Add function description.
12879 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12881 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12883 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12885 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12886 base address when calling win32_add_one_solib.
12887 (handle_load_dll): Delete local variable load_addr.
12888 Remove 0x1000 offset applied to DLL base address when calling
12889 win32_add_one_solib.
12890 (handle_unload_dll): Add comment.
12892 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12894 * win32-low.c (win32_add_all_dlls): Renames
12895 win32_ensure_ntdll_loaded. Rewrite function documentation.
12896 Adjust implementation to always load all DLLs.
12897 Add 0x1000 offset to DLL base address when calling
12898 win32_add_one_solib.
12899 (child_initialization_done): New static global.
12900 (do_initial_child_stuff): Set child_initialization_done to
12901 zero during child initialization, and 1 after. Replace call
12902 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12904 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12905 (handle_unload_dll): Add function documentation.
12906 (get_child_debug_event): Ignore load and unload DLL events
12907 during child initialization.
12909 2014-02-20 Doug Evans <dje@google.com>
12911 Remove global all_lwps.
12912 * inferiors.h (ptid_of): Move here from linux-low.h.
12913 (pid_of, lwpid_of): Ditto.
12914 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12915 parameter is a struct thread_info * now.
12916 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12917 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12918 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12920 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12921 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12922 * linux-arm-low.c (update_registers_callback): Update, "entry"
12923 parameter is a struct thread_info * now.
12924 Fetch lwpid from current_inferior directly.
12925 (arm_insert_point): Pass &all_threads to find_inferior instead of
12927 (arm_remove_point): Ditto.
12928 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12929 (arm_prepare_to_resume): Fetch pid from thread.
12930 (arm_read_description): Fetch lwpid from current_inferior directly.
12931 * linux-low.c (all_lwps): Delete.
12932 (delete_lwp): Delete call to remove_inferior.
12933 (handle_extended_wait): Fetch lwpid from thread.
12934 (add_lwp): Don't set lwp->entry.id. Remove call to
12935 add_inferior_to_list.
12936 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12937 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12938 (kill_one_lwp_callback): Ditto.
12939 (linux_kill): Don't dereference NULL pointer.
12940 Fetch ptid,lwpid from thread.
12941 (get_detach_signal): Fetch ptid from thread.
12942 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12943 Simplify call to regcache_invalidate_thread.
12944 (delete_lwp_callback): Update, "entry" parameter is a
12945 struct thread_info * now. Fetch pid from thread.
12946 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12947 (status_pending_p_callback): Update, "entry" parameter is a
12948 struct thread_info * now. Fetch ptid from thread.
12949 (find_lwp_pid): Update, "entry" parameter is a
12950 struct thread_info * now.
12951 (linux_wait_for_lwp): Fetch pid from thread.
12952 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12953 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12954 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12955 (dequeue_one_deferred_signal): Ditto.
12956 (cancel_breakpoint): Fetch ptid from current_inferior.
12957 (linux_wait_for_event): Pass &all_threads to find_inferior,
12958 not &all_lwps. Fetch ptid, lwpid from thread.
12959 (count_events_callback): Update, "entry" parameter is a
12960 struct thread_info * now.
12961 (select_singlestep_lwp_callback): Ditto.
12962 (select_event_lwp_callback): Ditto.
12963 (cancel_breakpoints_callback): Ditto.
12964 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12966 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12967 (unsuspend_one_lwp): Update, "entry" parameter is a
12968 struct thread_info * now.
12969 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12971 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12972 Fetch lwpid from thread, not lwp.
12973 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12974 Pass &all_threads to find_inferior, not &all_lwps.
12975 (send_sigstop): Fetch lwpid from thread, not lwp.
12976 (send_sigstop_callback): Update, "entry" parameter is a
12977 struct thread_info * now.
12978 (suspend_and_send_sigstop_callback): Ditto.
12979 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12980 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12981 struct thread_info * now.
12982 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12984 (lwp_running): Update, "entry" parameter is a
12985 struct thread_info * now.
12986 (stop_all_lwps): Fetch ptid from thread.
12987 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12988 (linux_resume_one_lwp): Fetch lwpid from thread.
12989 (linux_set_resume_request): Update, "entry" parameter is a
12990 struct thread_info * now. Fetch pid, lwpid from thread.
12991 (resume_status_pending_p): Update, "entry" parameter is a
12992 struct thread_info * now.
12993 (need_step_over_p): Ditto. Fetch lwpid from thread.
12994 (start_step_over): Fetch lwpid from thread.
12995 (linux_resume_one_thread): Update, "entry" parameter is a
12996 struct thread_info * now. Fetch lwpid from thread.
12997 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12998 (proceed_one_lwp): Update, "entry" parameter is a
12999 struct thread_info * now. Fetch lwpid from thread.
13000 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13001 struct thread_info * now.
13002 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13003 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13004 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13006 (regsets_store_inferior_registers): Ditto.
13007 (fetch_register, store_register): Ditto.
13008 (linux_read_memory, linux_write_memory): Ditto.
13009 (linux_request_interrupt): Ditto.
13010 (linux_read_auxv): Ditto.
13011 (linux_xfer_siginfo): Ditto.
13012 (linux_qxfer_spu): Ditto.
13013 (linux_qxfer_libraries_svr4): Ditto.
13014 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13015 moved to inferiors.h.
13017 (get_thread_lwp): Update.
13018 (struct lwp_info): Delete member "entry". Simplify comment for
13020 (all_lwps): Delete.
13021 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13022 current_inferior directly.
13023 (update_watch_registers_callback): Update, "entry" parameter is a
13024 struct thread_info * now. Fetch pid from thread.
13025 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13026 (mips_insert_point): Fetch lwpid from current_inferior.
13027 Pass &all_threads to find_inferior, not &all_lwps.
13028 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13029 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13031 (mips_stopped_data_address): Ditto.
13032 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13034 * linux-tile-low.c (tile_arch_setup): Ditto.
13035 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13036 (update_debug_registers_callback): Update, "entry" parameter is a
13037 struct thread_info * now. Fetch pid from thread.
13038 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13039 Pass &all_threads to find_inferior, not &all_lwps.
13040 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13041 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13042 Pass &all_threads to find_inferior, not &all_lwps.
13043 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13044 (i386_dr_low_get_status): Ditto.
13045 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13046 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13047 (x86_linux_read_description): Ditto.
13048 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13050 2014-02-20 Doug Evans <dje@google.com>
13052 * inferiors.c (get_first_inferior): Fix buglet.
13054 2014-02-19 Doug Evans <dje@google.com>
13056 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13057 * inferiors.c (add_thread): Change result type to struct thread_info *.
13058 All callers updated.
13059 (add_lwp): Call add_thread here instead of in callers.
13060 All callers updated.
13061 * linux-low.h (get_lwp_thread): Rewrite.
13062 (struct lwp_info): New member "thread".
13064 2014-02-19 Doug Evans <dje@google.com>
13066 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13067 All callers updated.
13069 2014-02-19 Doug Evans <dje@google.com>
13071 * inferiors.c (add_thread): Fix whitespace.
13073 2014-02-19 Doug Evans <dje@google.com>
13075 * dll.c (clear_dlls): Replace accessing list implemention details
13077 * gdbthread.h (get_first_thread): Declare.
13078 * inferiors.c (for_each_inferior_with_data): New function.
13079 (get_first_thread): New function.
13080 (find_thread_ptid): Simplify.
13081 (get_first_inferior): New function.
13082 (clear_list): Delete.
13083 (one_inferior_p): New function.
13084 (clear_inferior_list): New function.
13085 (clear_inferiors): Update.
13086 * inferiors.h (for_each_inferior_with_data): Declare.
13087 (clear_inferior_list): Declare.
13088 (one_inferior_p): Declare.
13089 (get_first_inferior): Declare.
13090 * linux-low.c (linux_wait_for_event): Replace accessing list
13091 implemention details with API function.
13092 * server.c (target_running): Ditto.
13093 (accumulate_file_name_length): New function.
13094 (emit_dll_description): New function.
13095 (handle_qxfer_libraries): Replace accessing list implemention
13096 details with API function.
13097 (handle_qxfer_threads_worker): New function.
13098 (handle_qxfer_threads_proper): Replace accessing list implemention
13099 details with API function.
13100 (handle_query): Ditto.
13101 (visit_actioned_threads_callback_ftype): New typedef.
13102 (visit_actioned_threads_data): New struct.
13103 (visit_actioned_threads): Rewrite to be find_inferior callback.
13104 (resume): Call find_inferior.
13105 (handle_status): Replace accessing list implemention
13106 details with API function.
13107 (process_serial_event): Replace accessing list implemention details
13109 * target.c (set_desired_inferior): Replace accessing list implemention
13110 details with API function.
13111 * tracepoint.c (same_process_p): New function.
13112 (gdb_agent_about_to_close): Replace accessing list implemention
13113 details with API function.
13114 * win32-low.c (child_delete_thread): Replace accessing list
13115 implemention details with API function.
13116 (match_dll_by_basename): New function.
13117 (dll_is_loaded_by_basename): New function.
13118 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13119 details call to dll_is_loaded_by_basename.
13121 2014-02-19 Doug Evans <dje@google.com>
13123 * dll.h (struct dll_info): Add comment.
13124 * gdbthread.h (struct thread_info): Add comment.
13125 (current_ptid): Simplify.
13126 * inferiors.c (add_process): Update.
13127 (remove_process): Update.
13128 * inferiors.h (struct process_info): Rename member "head" to "entry".
13129 * linux-low.c (delete_lwp): Update.
13131 (last_thread_of_process_p): Update.
13132 (kill_one_lwp_callback, linux_kill): Update.
13133 (status_pending_p_callback): Update.
13134 (wait_for_sigstop): Update. Simplify read of ptid.
13135 (start_step_over): Update.
13136 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13137 (get_lwp_thread): Update.
13138 (struct lwp_info): Rename member "head" to "entry".
13139 * regcache.h (inferior_list_entry): Delete.
13140 * server.c (kill_inferior_callback): Update.
13141 (detach_or_kill_inferior_callback): Update.
13142 (print_started_pid): Update.
13143 (print_attached_pid): Update.
13144 (process_serial_event): Simplify read of ptid.
13145 * thread-db.c (thread_db_create_event): Update.
13146 (thread_db_get_tls_address): Update.
13147 * win32-low.c (current_inferior_ptid): Simplify.
13149 2014-02-19 Tom Tromey <tromey@redhat.com>
13151 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13153 (target_supports_btrace): Update.
13155 2014-02-14 Yao Qi <yao@codesourcery.com>
13157 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13158 (rsp-low-ipa.o): New target.
13160 2014-02-12 Tom Tromey <tromey@redhat.com>
13162 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13163 convert_ascii_to_int.
13164 * regcache.c (registers_to_string): Likewise.
13165 * remote-utils.c (decode_M_packet): Likewise.
13166 * server.c (process_serial_event): Likewise.
13168 2014-02-12 Tom Tromey <tromey@redhat.com>
13170 * server.c (handle_query, handle_v_run): Use hex2bin, not
13172 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13174 2014-02-12 Tom Tromey <tromey@redhat.com>
13176 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13177 convert_int_to_ascii.
13178 * regcache.c (registers_to_string, collect_register_as_string):
13180 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13182 * server.c (process_serial_event): Likewise.
13183 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13184 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13186 2014-02-12 Tom Tromey <tromey@redhat.com>
13188 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13189 bin2hex, not hexify.
13190 * tracepoint.c (cmd_qtstatus): Likewise.
13192 2014-02-12 Tom Tromey <tromey@redhat.com>
13194 * remote-utils.c (monitor_output): Pass explicit length to
13197 2014-02-12 Tom Tromey <tromey@redhat.com>
13199 * tracepoint.c: Include rsp-low.h.
13200 * server.c: Include rsp-low.h.
13201 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13202 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13204 * remote-utils.c: Include rsp-low.h.
13205 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13206 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13207 (convert_int_to_ascii, convert_ascii_to_int): Move to
13209 * regcache.c: Include rsp-low.h.
13210 * ax.c: Include rsp-low.h.
13211 * Makefile.in (SFILES): Add common/rsp-low.c.
13212 (OBS): Add rsp-low.o.
13213 (rsp-low.o): New target.
13215 2014-02-12 Tom Tromey <tromey@redhat.com>
13217 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13218 Include print-utils.h.
13219 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13220 (plongest, thirty_two, phex_nz): Remove.
13221 * Makefile.in (SFILES): Add common/print-utils.c.
13222 (OBS): Add print-utils.o.
13223 (print-utils-ipa.o): New target.
13224 (print-utils.o): New target.
13225 (IPA_OBJS): Add print-utils-ipa.o.
13227 2014-02-06 Tom Tromey <tromey@redhat.com>
13229 * Makefile.in (SFILES): Fix indentation.
13231 2014-02-05 Doug Evans <dje@google.com>
13233 * linux-low.c (linux_wait_for_event): Improve comment.
13234 (linux_wait_1): Keep current_inferior in sync with event_child.
13236 2014-01-22 Doug Evans <dje@google.com>
13238 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13240 2014-01-22 Doug Evans <dje@google.com>
13242 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13243 * configure: Regenerate.
13244 * config.in: Regenerate.
13245 * Makefile.in (SFILES): Add debug.c.
13246 (OBS): Add debug.o.
13247 * debug.c: New file.
13248 * debug.h: New file.
13249 * linux-aarch64-low.c (*): Update all debugging printfs to use
13250 debug_printf instead of fprintf.
13251 * linux-arm-low.c (*): Ditto.
13252 * linux-cris-low.c (*): Ditto.
13253 * linux-crisv32-low.c (*): Ditto.
13254 * linux-m32r-low.c (*): Ditto.
13255 * linux-sparc-low.c (*): Ditto.
13256 * linux-x86.c (*): Ditto.
13257 * linux-low.c (*): Ditto.
13258 (linux_wait_1): Add calls to debug_enter, debug_exit.
13259 (linux_wait): Remove redundant debugging printf.
13260 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13261 (linux_resume, unstop_all_lwps): Ditto.
13262 * mem-break.c (*): Update all debugging printfs to use
13263 debug_printf instead of fprintf.
13264 * remote-utils.c (*): Ditto.
13265 * thread-db.c (*): Ditto.
13266 * server.c #include <ctype.h>, "gdb_vecs.h".
13267 (debug_threads): Moved to debug.c.
13268 (*): Update all debugging printfs to use debug_printf instead of
13270 (start_inferior): Replace call to fflush with call to debug_flush.
13271 (monitor_show_help): Mention set debug-format.
13272 (parse_debug_format_options): New function.
13273 (handle_monitor_command): Handle "monitor set debug-format".
13274 (gdbserver_usage): Mention --debug-format.
13275 (main): Parse --debug-format.
13276 * server.h (debug_threads): Declaration moved to debug.h.
13277 #include "debug.h".
13278 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13279 trace_debug_1 that uses debug_printf.
13280 (tracepoint_look_up_symbols): Update all debugging printfs to use
13281 debug_printf instead of fprintf.
13283 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13285 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13288 2014-01-17 Pedro Alves <palves@redhat.com>
13291 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13292 defined after including gdb_proc_service.h.
13294 2014-01-16 Doug Evans <dje@google.com>
13296 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13297 (match_dll): Use it.
13299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13301 * target.h (target_ops) <read_btrace>: Change parameters and
13302 return type to allow error reporting.
13303 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13304 trace reading errors on.
13305 * linux-low.c (linux_low_read_btrace): Pass trace reading
13307 (linux_low_disable_btrace): New.
13309 2014-01-15 Doug Evans <dje@google.com>
13311 * inferiors.c (thread_id_to_gdb_id): Delete.
13312 * inferiors.h (thread_id_to_gdb_id): Delete.
13314 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13316 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13317 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13320 2014-01-08 Pedro Alves <palves@redhat.com>
13322 * server.c (handle_status): Don't discard previous queued stop
13323 replies or thread's pending status here.
13324 (main) <disconnection>: Do it here instead.
13326 2014-01-08 Pedro Alves <palves@redhat.com>
13328 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13329 * server.c (visit_actioned_threads, handle_pending_status): New
13331 (handle_v_cont): Factor out parts to ...
13332 (resume): ... this new function. If in all-stop, and a thread
13333 being resumed has a pending status, report it without actually
13335 (myresume): Adjust to use the new 'resume' function.
13336 (clear_pending_status_callback, set_pending_status_callback)
13337 (find_status_pending_thread_callback): New functions.
13338 (handle_status): Handle the case of multiple threads having
13339 interesting statuses to report. Report threads' real last signal
13340 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13341 with an interesting thread to report the status for, instead of
13342 always reporting the status of the first thread.
13344 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13346 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13347 * gdbreplay.c (gdbreplay_version): Likewise.
13349 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13351 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13352 iov.iov_len with the real length in use.
13354 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13356 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13357 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13358 for all targets that use win32-low.c.
13359 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13360 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13362 2013-12-13 Pedro Alves <palves@redhat.com>
13364 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13365 if equal to TARGET_WAITKIND_LOADED.
13366 * win32-low.c (cached_status): New static global.
13367 (win32_wait): Add declaration.
13368 (do_initial_child_stuff): Flush all initial pending debug events
13369 up to the initial breakpoint.
13370 (win32_wait): If CACHED_STATUS was set, return that instead
13371 of doing a real wait. Remove the code resuming the execution
13372 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13373 during the initial phase. Also remove the code changing
13374 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13375 TARGET_WAITKIND_STOPPED.
13377 2013-12-11 Yao Qi <yao@codesourcery.com>
13379 * notif.c (handle_notif_ack): Return 0 if no notification
13382 2013-11-20 Doug Evans <dje@google.com>
13384 * linux-low.c (linux_set_resume_request): Fix comment.
13386 2013-11-20 Doug Evans <dje@google.com>
13388 * linux-low.c (resume_status_pending_p): Tweak comment.
13390 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13392 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13393 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13394 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13395 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13396 (srv_amd64_regobj): Add amd64-mpx.o.
13397 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13398 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13399 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13400 * i387-fp.c (num_pl_bnd_register) Added constant.
13401 (num_pl_bnd_cfg_registers) Added constant.
13402 (struct i387_xsave) Added reserved area and MPX fields.
13403 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13404 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13406 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13407 (init_registers_amd64_mpx_linux): Declare new function.
13408 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13409 (x86_64_regmap): Add MPX registers.
13410 (x86_linux_read_description): Add MPX case.
13411 (initialize_low_arch): Initialize MPX targets.
13413 2013-11-18 Tom Tromey <tromey@redhat.com>
13415 * configure: Rebuild.
13416 * configure.ac: Don't check for stdlib.h.
13417 * gdbreplay.c: Unconditionally include stdlib.h.
13419 2013-11-18 Tom Tromey <tromey@redhat.com>
13421 * config.in: Rebuild.
13422 * configure: Rebuild.
13423 * configure.ac: Don't use AC_HEADER_DIRENT.
13425 2013-11-18 Tom Tromey <tromey@redhat.com>
13427 * server.h: Don't check HAVE_STRING_H.
13428 * gdbreplay.c: Don't check HAVE_STRING_H.
13429 * configure: Rebuild.
13431 2013-11-18 Tom Tromey <tromey@redhat.com>
13433 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13436 2013-11-08 Tom Tromey <tromey@redhat.com>
13438 * configure, config.in: Rebuild.
13439 * configure.ac: Remove unused configury.
13441 2013-11-08 Tom Tromey <tromey@redhat.com>
13443 * acinclude.m4: Include common.m4, codeset.m4.
13444 * configure, config.in: Rebuild.
13445 * configure.ac: Use GDB_AC_COMMON.
13447 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13449 * linux-s390-low.c (HWCAP_S390_TE): New define.
13450 (s390_arch_setup): Consider the TE field in the HWCAP for
13451 determining 'have_regset_tdb'.
13453 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13456 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13459 2013-10-02 Pedro Alves <palves@redhat.com>
13461 * server.c (process_serial_event): Don't output "GDBserver
13462 exiting" if GDB is connected through stdio.
13463 * target.c (mywait): Likewise, be silent if GDB is connected
13466 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13468 * lynx-low.c (lynx_add_threads_after_attach): New function.
13469 (lynx_attach): Remove call to add_thread. Add call to
13470 lynx_add_threads_after_attach instead.
13472 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13474 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13475 * config.in, configure: Regenerated.
13477 2013-09-18 Yao Qi <yao@codesourcery.com>
13480 * server.c (start_inferior): Clear 'resume_info'.
13482 2013-09-16 Jiong Wang <jiwang@tilera.com>
13484 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13487 2013-09-16 Jiong Wang <jiwang@tilera.com>
13489 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13490 linux-tile-low.o to srv_tgtobj.
13492 2013-09-16 Will Newton <will.newton@linaro.org>
13494 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13497 2013-09-06 Pedro Alves <palves@redhat.com>
13499 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13500 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13501 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13502 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13503 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13504 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13506 2013-09-06 Pedro Alves <palves@redhat.com>
13508 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13509 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13511 2013-09-06 Pedro Alves <palves@redhat.com>
13513 * linux-amd64-ipa.c: Include tracepoint.h.
13514 * linux-i386-ipa.c: Include tracepoint.h.
13516 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13518 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13519 (ps_get_thread_area): New function.
13521 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13523 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13524 (initialize_low_arch): Call init_registers_crisv32 rather than
13525 init_register_crisv32.
13527 2013-09-05 Pedro Alves <palves@redhat.com>
13529 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13531 * hostio.h: ... this new file.
13532 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13533 win32-low.c: Include hostio.h.
13535 2013-09-05 Pedro Alves <palves@redhat.com>
13537 * server.h (gdb_client_data, handler_func, callback_handler_func)
13538 (delete_file_handler, add_file_handler, append_callback_event)
13539 (delete_callback_event, start_event_loop, initialize_event_loop):
13540 Move to event-loop.h and include it.
13541 * event-loop.h: New file.
13543 2013-09-05 Pedro Alves <palves@redhat.com>
13545 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13546 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13547 (loaded_dll, unloaded_dll): Move to ...
13548 * dll.h: ... this new file.
13549 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13551 2013-09-05 Pedro Alves <palves@redhat.com>
13553 * server.h (current_process, get_thread_process, all_processes)
13554 (add_inferior_to_list, for_each_inferior, current_inferior)
13555 (remove_inferior, add_process, remove_process, find_process_pid)
13556 (have_started_inferiors_p, have_attached_inferiors_p)
13557 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13558 (clear_inferiors, find_inferior, find_inferior_id)
13559 (inferior_target_data, set_inferior_target_data)
13560 (inferior_regcache_data, set_inferior_regcache_data): Move to
13561 inferiors.h, and include it.
13562 * inferiors.h: New file.
13564 2013-09-05 Pedro Alves <palves@redhat.com>
13566 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13570 2013-09-05 Pedro Alves <palves@redhat.com>
13572 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13574 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13575 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13576 (handle_tracepoint_general_set, handle_tracepoint_query)
13577 (tracepoint_finished_step, tracepoint_was_hit)
13578 (release_while_stepping_state_list, current_traceframe)
13579 (in_readonly_region, traceframe_read_mem)
13580 (fetch_traceframe_registers, traceframe_read_sdata)
13581 (traceframe_read_info, struct fast_tpoint_collect_status)
13582 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13583 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13584 (supply_fast_tracepoint_registers)
13585 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13586 (ipa_tdesc, claim_trampoline_space)
13587 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13588 (agent_mem_read, agent_get_trace_state_variable_value)
13589 (agent_set_trace_state_variable_value, agent_tsv_read)
13590 (agent_mem_read_string, get_raw_reg_func_addr)
13591 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13592 * tracepoint.h: ... this new file.
13594 2013-09-05 Pedro Alves <palves@redhat.com>
13596 * server.h (perror_with_name, error, fatal, warning, paddress)
13597 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13599 * utils.h: New file.
13601 2013-09-05 Pedro Alves <palves@redhat.com>
13603 * server.h (remote_debug, noack_mode, transport_is_reliable)
13604 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13605 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13606 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13607 (write_enn, initialize_async_io, enable_async_io)
13608 (disable_async_io, check_remote_input_interrupt_request)
13609 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13610 (dead_thread_notify, prepare_resume_reply)
13611 (decode_address_to_semicolon, decode_address, decode_m_packet)
13612 (decode_M_packet, decode_X_packet, decode_xfer_write)
13613 (decode_search_memory_packet, unhexify, hexify)
13614 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13615 (look_up_one_symbol, relocate_instruction)
13616 (monitor_output): Move to remote-utils.h, and include it.
13617 * remote-utils.h: New file.
13619 2013-09-05 Pedro Alves <palves@redhat.com>
13621 * server.h (_): Delete.
13623 2013-09-02 Pedro Alves <palves@redhat.com>
13625 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13626 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13628 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13630 2013-09-02 Pierre Muller <muller@sourceware.org>
13632 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13633 or WriteProcessMemory complete successfully and handle
13634 ERROR_PARTIAL_COPY error.
13636 2013-09-02 Pedro Alves <palves@redhat.com>
13638 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13639 error instead of EIO.
13641 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13644 * linux-low.c: Include filestuff.h.
13645 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13646 * lynx-low.c: Include filestuff.h.
13647 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13648 * server.c: Include filestuff.h.
13649 (main): Call notice_open_fds.
13650 * spu-low.c: Include filestuff.h.
13651 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13653 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13655 * Makefile.in: Explain why ../target and ../nat are not
13656 listed as include file search paths.
13657 (linux-waitpid.o): New object file rule.
13658 * configure.srv (srv_native_linux_obj): New variable.
13659 Replace all occurrences of linux native object files with
13660 $srv_native_linux_obj.
13661 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13662 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13663 (linux_enable_event_reporting): Remove declaration.
13664 (my_waitpid): Moved to common/linux-waitpid.c.
13665 (linux_wait_for_event): Pass ptid when calling
13666 linux_enable_event_reporting.
13667 (linux_supports_tracefork_flag): Remove.
13668 (linux_enable_event_reporting): Likewise.
13669 (linux_tracefork_grandchild): Remove.
13670 (STACK_SIZE): Moved to common/linux-ptrace.c.
13671 (linux_tracefork_child): Remove.
13672 (linux_test_for_tracefork): Remove.
13673 (linux_look_up_symbols): Call linux_supports_traceclone.
13674 (initialize_low): Remove call to linux_test_for_tracefork.
13675 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13676 common/linux-ptrace.h.
13677 (PTRACE_TYPE_ARG4): Likewise.
13678 Include linux-ptrace.h.
13680 2013-08-21 Pedro Alves <palves@redhat.com>
13682 * config.in: Renegerate.
13684 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13686 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13687 (SFILES): Remove $(srcdir)/common/target-common.c and
13688 add $(srcdir)/target/waitstatus.c.
13689 (OBS): Remove target-common.o and add waitstatus.o.
13690 (server_h): Remove $(srcdir)/../common/target-common.h and
13691 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13692 and $(srcdir)/../target/waitstatus.h.
13693 (target-common.o): Remove.
13694 (waitstatus.o): New target object file.
13695 * target.h: Do not include target-common.h and
13696 include target/resume.h, target/wait.h and
13697 target/waitstatus.h.
13699 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13701 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13702 to PTRACE_TYPE_ARG3.
13703 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13704 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13706 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13707 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13709 2013-07-27 Jie Zhang <jie@codesourcery.com>
13710 Daniel Jacobowitz <dan@codesourcery.com>
13711 Yao Qi <yao@codesourcery.com>
13713 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13714 (mips-linux-watch.o): New rule.
13715 (mips_linux_watch_h): New variable.
13716 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13718 * linux-mips-low.c: Include mips-linux-watch.h.
13719 (struct arch_process_info, struct arch_lwp_info): New.
13720 (update_watch_registers_callback): New function.
13721 (mips_linux_new_process, mips_linux_new_thread) New functions.
13722 (mips_linux_prepare_to_resume, mips_insert_point): New
13724 (mips_remove_point, mips_stopped_by_watchpoint): New
13726 (rsp_bp_type_to_target_hw_bp_type): New function.
13727 (mips_stopped_data_address): New function.
13728 (the_low_target): Add watchpoint support functions.
13730 2013-07-27 Yao Qi <yao@codesourcery.com>
13732 * i386-low.c: Include break-common.h.
13733 (enum target_hw_bp_type): Remove.
13735 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13737 * Makefile.in (SFILES): /common/target-common.c.
13738 (OBS): Add target-common.o.
13739 (server_h): Add $(srcdir)/../common/target-common.h.
13740 (target-common.o): New target.
13741 * server.c (queue_stop_reply_callback): Free
13742 status string after use.
13743 * target.c (target_waitstatus_to_string): Remove.
13744 * target.h: Include target-common.h.
13745 (resume_kind): Likewise.
13746 (target_waitkind): Likewise.
13747 (target_waitstatus): Likewise.
13748 (TARGET_WNOHANG): Likewise.
13750 2013-07-04 Yao Qi <yao@codesourcery.com>
13752 * Makefile.in (host_alias): Use @host_noncanonical@.
13753 (target_alias): Use @target_noncanonical@.
13754 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13755 ACX_NONCANONICAL_HOST.
13756 * configure: Regenerated.
13759 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13761 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13762 * configure: Rebuild.
13763 * Makefile.in (version_host, version_target): Get from configure.
13764 (version.c): Use $(version_host) and $(version_target).
13766 2013-07-03 Pedro Alves <palves@redhat.com>
13768 * Makefile.in (config.status): Depend on development.sh.
13769 * acinclude.m4: Include libmcheck.m4.
13770 * configure: Regenerate.
13772 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13774 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13775 attribute inside the parentheses.
13776 (winapi_DebugSetProcessKillOnExit): Ditto.
13777 (winapi_DebugBreakProcess): Ditto.
13778 (winapi_GenerateConsoleCtrlEvent): Ditto.
13780 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13782 * notif.h (notif_event): Add a dummy member to avoid compiler
13785 2013-07-01 Pedro Alves <palves@redhat.com>
13787 * hostio.c (HOSTIO_PATH_MAX): Define.
13788 (require_filename, handle_open, handle_unlink, handle_readlink):
13791 2013-07-01 Pedro Alves <palves@redhat.com>
13793 * server.h: Include "pathmax.h".
13794 * linux-low.c: Don't include sys/param.h.
13795 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13797 * win32-low.c: Don't include sys/param.h.
13798 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13800 2013-07-01 Pedro Alves <palves@redhat.com>
13802 * event-loop.c: Don't check HAVE_UNISTD_H before including
13804 * gdbreplay.c: Likewise.
13805 * remote-utils.c: Likewise.
13806 * server.c: Likewise.
13807 * configure.ac: Don't check for unistd.h.
13808 * configure: Regenerate.
13810 2013-06-28 Tom Tromey <tromey@redhat.com>
13812 * Makefile.in (version.c): Use version.in, not
13815 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13817 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13818 * configure: Rebuild.
13819 * Makefile.in (version_host, version_target): Get from configure.
13820 (version.c): Use $(version_host) and $(version_target).
13822 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13824 Fix trace-status to output user name without trailing colon.
13825 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13827 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13829 Fix trace-status to output proper start-time and stop-time.
13830 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13831 output start time and stop time in hex as gdb expects.
13833 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13835 * tracepoint.c (build_traceframe_info_xml): Output trace state
13836 variables present in the trace buffer.
13838 2013-06-24 Tom Tromey <tromey@redhat.com>
13840 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13842 (version.o): Remove.
13843 * gdbreplay.c: Include version.h.
13844 (version, host_name): Don't declare.
13845 * server.h: Include version.h.
13846 (version, host_name): Don't declare.
13848 2013-06-12 Pedro Alves <palves@redhat.com>
13850 * linux-x86-low.c (linux_is_elf64): Delete global.
13851 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13852 with local linux_pid_exe_is_elf_64_file use.
13854 2013-06-11 Pedro Alves <palves@redhat.com>
13856 * linux-low.c (regset_disabled, disable_regset): New functions.
13857 (regsets_fetch_inferior_registers)
13858 (regsets_store_inferior_registers): Use them.
13859 (initialize_regsets_info); Don't allocate the disabled_regsets
13861 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13864 2013-06-11 Pedro Alves <palves@redhat.com>
13866 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13869 2013-06-11 Pedro Alves <palves@redhat.com>
13871 * linux-x86-low.c (initialize_low_arch): Call
13872 init_registers_x32_avx_linux.
13874 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13876 Fix compatibility with Android Bionic.
13877 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13880 2013-06-07 Pedro Alves <palves@redhat.com>
13883 * Makefile.in (OBS): Add tdesc.o.
13884 (IPA_OBJS): Add tdesc-ipa.o.
13885 (tdesc-ipa.o): New rule.
13886 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13888 * linux-low.c (new_inferior): Delete.
13889 (disabled_regsets, num_regsets): Delete.
13890 (linux_add_process): Adjust to set the new per-process
13892 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13893 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13894 was a stop. When calling arch_setup, switch the current inferior
13895 to the thread that got an event.
13896 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13897 (regsets_fetch_inferior_registers)
13898 (regsets_store_inferior_registers): New regsets_info parameter.
13900 (linux_register_in_regsets): New regs_info parameter. Adjust to
13902 (register_addr, fetch_register, store_register): New usrregs_info
13903 parameter. Adjust to use it.
13904 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13905 parameter regs_info. Adjust to use it.
13906 (linux_fetch_registers): Get the current inferior's regs_info, and
13908 (linux_store_registers): Ditto.
13909 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13910 (initialize_low): Don't initialize the target_regsets here. Call
13911 initialize_low_arch.
13912 * linux-low.h (target_regsets): Delete declaration.
13913 (struct regsets_info): New.
13914 (struct usrregs_info): New.
13915 (struct regs_info): New.
13916 (struct process_info_private) <new_inferior>: New field.
13917 (struct linux_target_ops): Delete the num_regs, regmap, and
13918 regset_bitmap fields. New field regs_info.
13919 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13920 * i387-fp.c (num_xmm_registers): Delete.
13921 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13922 calls to new interface.
13923 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13924 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13925 Infer the number of xmm registers from the regcache's target
13927 * i387-fp.h (num_xmm_registers): Delete.
13928 * inferiors.c (add_thread): Don't install the thread's regcache
13930 * proc-service.c (gregset_info): Fetch the current inferior's
13931 regs_info. Adjust to use it.
13932 * regcache.c: Include tdesc.h.
13933 (register_bytes, reg_defs, num_registers)
13934 (gdbserver_expedite_regs): Delete.
13935 (get_thread_regcache): If the thread doesn't have a regcache yet,
13936 create one, instead of aborting gdbserver.
13937 (regcache_invalidate_one): Rename to ...
13938 (regcache_invalidate_thread): ... this.
13939 (regcache_invalidate_one): New.
13940 (regcache_invalidate): Only invalidate registers of the current
13942 (init_register_cache): Add target_desc parameter, and use it.
13943 (new_register_cache): Ditto. Assert the target description has a
13944 non zero registers_size.
13945 (regcache_cpy): Add assertions. Adjust.
13946 (realloc_register_cache, set_register_cache): Delete.
13947 (registers_to_string, registers_from_string): Adjust.
13948 (find_register_by_name, find_regno, find_register_by_number)
13949 (register_cache_size): Add target_desc parameter, and use it.
13950 (free_register_cache_thread, free_register_cache_thread_one)
13951 (regcache_release, register_cache_size): New.
13952 (register_size): Add target_desc parameter, and use it.
13953 (register_data, supply_register, supply_register_zeroed)
13954 (supply_regblock, supply_register_by_name, collect_register)
13955 (collect_register_as_string, collect_register_by_name): Adjust.
13956 * regcache.h (struct target_desc): Forward declare.
13957 (struct regcache) <tdesc>: New field.
13958 (init_register_cache, new_register_cache): Add target_desc
13960 (regcache_invalidate_thread): Declare.
13961 (regcache_invalidate_one): Delete declaration.
13962 (regcache_release): Declare.
13963 (find_register_by_number, register_cache_size, register_size)
13964 (find_regno): Add target_desc parameter.
13965 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13967 * remote-utils.c: Include tdesc.h.
13968 (outreg, prepare_resume_reply): Adjust.
13969 * server.c: Include tdesc.h.
13970 (gdbserver_xmltarget): Delete declaration.
13971 (get_features_xml, process_serial_event): Adjust.
13972 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13974 (struct process_info) <tdesc>: New field.
13975 (ipa_tdesc): Declare.
13976 * tdesc.c: New file.
13977 * tdesc.h: New file.
13978 * tracepoint.c: Include tdesc.h.
13979 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13980 (get_context_regcache): Adjust to pass ipa_tdesc down.
13981 (do_action_at_tracepoint): Adjust to get the register cache size
13982 from the context regcache's description.
13983 (traceframe_walk_blocks): Adjust to get the register cache size
13984 from the current trace frame's description.
13985 (traceframe_get_pc): Adjust to get current trace frame's
13986 description and pass it down.
13987 (gdb_collect): Adjust to get the register cache size from the
13989 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13990 (gdbserver_xmltarget): Delete.
13991 (initialize_low_tracepoint): Set the ipa's target description.
13992 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13993 (initialize_low_tracepoint): Set the ipa's target description.
13994 * linux-x86-low.c: Include tdesc.h.
13995 [__x86_64__] (is_64bit_tdesc): New.
13996 (ps_get_thread_area, x86_get_thread_area): Use it.
13997 (i386_cannot_store_register): Rename to ...
13998 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13999 (i386_cannot_fetch_register): Rename to ...
14000 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14001 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14003 (target_regsets): Rename to ...
14004 (x86_regsets): ... this.
14005 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14007 (x86_siginfo_fixup): Use is_64bit_tdesc.
14008 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14009 (tdesc_x32_avx_linux, tdesc_x32_linux)
14010 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14012 (x86_linux_update_xmltarget): Delete.
14013 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14014 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14015 (AMD64_LINUX_USER64_CS): New.
14016 (x86_linux_read_description): New, based on
14017 x86_linux_update_xmltarget.
14018 (same_process_callback): New.
14019 (x86_arch_setup_process_callback): New.
14020 (x86_linux_update_xmltarget): New.
14021 (x86_regsets_info): New.
14022 (amd64_linux_regs_info): New.
14023 (i386_linux_usrregs_info): New.
14024 (i386_linux_regs_info): New.
14025 (x86_linux_regs_info): New.
14026 (x86_arch_setup): Reimplement.
14027 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14028 (x86_emit_ops): Ditto.
14029 (the_low_target): Adjust. Install x86_linux_regs_info,
14030 x86_cannot_fetch_register, and x86_cannot_store_register.
14031 (initialize_low_arch): New.
14032 * linux-ia64-low.c (tdesc_ia64): Declare.
14033 (ia64_fetch_register): Adjust.
14034 (ia64_usrregs_info, regs_info): New globals.
14035 (ia64_regs_info): New function.
14036 (the_low_target): Adjust.
14037 (initialize_low_arch): New function.
14038 * linux-sparc-low.c (tdesc_sparc64): Declare.
14039 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14041 (sparc_arch_setup): New function.
14042 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14043 (the_low_target): Adjust.
14044 (initialize_low_arch): New function.
14045 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14046 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14047 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14048 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14049 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14050 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14051 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14052 (tdesc_powerpc_isa205_vsx64l): Declare.
14053 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14054 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14055 (ppc_set_pc, ppc_get_hwcap): Adjust.
14056 (ppc_usrregs_info): Forward declare.
14057 (!__powerpc64__) ppc_regmap_adjusted: New global.
14058 (ppc_arch_setup): Adjust to the current process'es target
14060 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14061 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14062 (ppc_store_evrregset): Adjust.
14063 (target_regsets): Rename to ...
14064 (ppc_regsets): ... this, and make static.
14065 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14066 (ppc_regs_info): New function.
14067 (the_low_target): Adjust.
14068 (initialize_low_arch): New function.
14069 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14070 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14071 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14072 (tdesc_s390x_linux64v2): Declare.
14073 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14074 (s390_fill_gregset, s390_store_last_break): Adjust.
14075 (target_regsets): Rename to ...
14076 (s390_regsets): ... this, and make static.
14077 (s390_get_pc, s390_set_pc): Adjust.
14078 (s390_get_hwcap): New target_desc parameter, and use it.
14079 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14080 (s390_arch_setup): Adjust to set the current process'es target
14081 description. Don't adjust the regmap.
14082 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14083 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14084 (regs_info_3264): New globals.
14085 (s390_regs_info): New function.
14086 (the_low_target): Adjust.
14087 (initialize_low_arch): New function.
14088 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14089 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14090 [__mips64] (init_registers_mips_linux)
14091 (init_registers_mips_dsp_linux): Delete defines.
14092 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14093 (have_dsp): New global.
14094 (mips_read_description): New, based on mips_arch_setup.
14095 (mips_arch_setup): Reimplement.
14096 (get_usrregs_info): New function.
14097 (mips_cannot_fetch_register, mips_cannot_store_register)
14098 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14099 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14100 (target_regsets): Rename to ...
14101 (mips_regsets): ... this, and make static.
14102 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14103 (dsp_regs_info, regs_info): New globals.
14104 (mips_regs_info): New function.
14105 (the_low_target): Adjust.
14106 (initialize_low_arch): New function.
14107 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14108 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14110 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14111 (arm_read_description): New, with bits factored from
14113 (arm_arch_setup): Reimplement.
14114 (target_regsets): Rename to ...
14115 (arm_regsets): ... this, and make static.
14116 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14117 (arm_regs_info): New function.
14118 (the_low_target): Adjust.
14119 (initialize_low_arch): New function.
14120 * linux-m68k-low.c (tdesc_m68k): Declare.
14121 (target_regsets): Rename to ...
14122 (m68k_regsets): ... this, and make static.
14123 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14124 (m68k_regs_info): New function.
14125 (m68k_arch_setup): New function.
14126 (the_low_target): Adjust.
14127 (initialize_low_arch): New function.
14128 * linux-sh-low.c (tdesc_sharch): Declare.
14129 (target_regsets): Rename to ...
14130 (sh_regsets): ... this, and make static.
14131 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14132 (sh_regs_info, sh_arch_setup): New functions.
14133 (the_low_target): Adjust.
14134 (initialize_low_arch): New function.
14135 * linux-bfin-low.c (tdesc_bfin): Declare.
14136 (bfin_arch_setup): New function.
14137 (bfin_usrregs_info, regs_info): New globals.
14138 (bfin_regs_info): New function.
14139 (the_low_target): Adjust.
14140 (initialize_low_arch): New function.
14141 * linux-cris-low.c (tdesc_cris): Declare.
14142 (cris_arch_setup): New function.
14143 (cris_usrregs_info, regs_info): New globals.
14144 (cris_regs_info): New function.
14145 (the_low_target): Adjust.
14146 (initialize_low_arch): New function.
14147 * linux-cris-low.c (tdesc_crisv32): Declare.
14148 (cris_arch_setup): New function.
14149 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14150 (cris_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-m32r-low.c (tdesc_m32r): Declare.
14154 (m32r_arch_setup): New function.
14155 (m32r_usrregs_info, regs_info): New globals.
14156 (m32r_regs_info): Adjust.
14157 (initialize_low_arch): New function.
14158 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14159 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14160 (tic6x_usrregs_info): Forward declare.
14161 (tic6x_read_description): New function, based on ...
14162 (tic6x_arch_setup): ... this. Reimplement.
14163 (target_regsets): Rename to ...
14164 (tic6x_regsets): ... this, and make static.
14165 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14166 (tic6x_regs_info): New function.
14167 (the_low_target): Adjust.
14168 (initialize_low_arch): New function.
14169 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14170 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14171 (target_regsets): Rename to ...
14172 (xtensa_regsets): ... this, and make static.
14173 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14175 (xtensa_arch_setup, xtensa_regs_info): New functions.
14176 (the_low_target): Adjust.
14177 (initialize_low_arch): New function.
14178 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14179 (nios2_arch_setup): Set the current process'es tdesc.
14180 (target_regsets): Rename to ...
14181 (nios2_regsets): ... this.
14182 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14183 (nios2_regs_info): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14187 (aarch64_arch_setup): Set the current process'es tdesc.
14188 (target_regsets): Rename to ...
14189 (aarch64_regsets): ... this.
14190 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14191 (aarch64_regs_info): New function.
14192 (the_low_target): Adjust.
14193 (initialize_low_arch): New function.
14194 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14196 (target_regsets): Rename to ...
14197 (tile_regsets): ... this.
14198 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14199 (tile_regs_info): New function.
14200 (tile_arch_setup): Set the current process'es tdesc.
14201 (the_low_target): Adjust.
14202 (initialize_low_arch): New function.
14203 * spu-low.c (tdesc_spu): Declare.
14204 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14205 * win32-arm-low.c (tdesc_arm): Declare.
14206 (arm_arch_setup): New function.
14207 (the_low_target): Install arm_arch_setup instead of
14208 init_registers_arm.
14209 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14210 (init_windows_x86): Rename to ...
14211 (i386_arch_setup): ... this. Set `win32_tdesc'.
14212 (the_low_target): Adjust.
14213 * win32-low.c (win32_tdesc): New global.
14214 (child_add_thread): Don't create the thread cache here.
14215 (do_initial_child_stuff): Set the new process'es tdesc.
14216 * win32-low.h (struct target_desc): Forward declare.
14217 (win32_tdesc): Declare.
14218 * lynx-i386-low.c (tdesc_i386): Declare global.
14219 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14220 * lynx-low.c (lynx_tdesc): New global.
14221 (lynx_add_process): Set the new process'es tdesc.
14222 * lynx-low.h (struct target_desc): Forward declare.
14223 (lynx_tdesc): Declare global.
14224 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14225 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14226 * nto-low.c (nto_tdesc): New global.
14227 (do_attach): Set the new process'es tdesc.
14228 * nto-low.h (struct target_desc): Forward declare.
14229 (nto_tdesc): Declare.
14230 * nto-x86-low.c (tdesc_i386): Declare.
14231 (nto_x86_arch_setup): Set `nto_tdesc'.
14233 2013-06-04 Gary Benson <gbenson@redhat.com>
14235 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14236 to qSupported response when appropriate.
14237 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14238 with nonzero-length annex.
14239 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14240 arguments supplied in annex.
14242 2013-05-31 Doug Evans <dje@google.com>
14245 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14246 64 bits in 64-cross-32 environment.
14248 2013-05-28 Pedro Alves <palves@redhat.com>
14250 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14251 (aarch64-without-fpu.c): Delete rule.
14252 * configure.srv (aarch64*-*-linux*): Remove references to
14253 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14254 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14257 2013-05-24 Pedro Alves <palves@redhat.com>
14259 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14260 instead of strchr/decode_address. Error if the range isn't split
14261 with a ','. Don't assume there's be a ':' in the action.
14263 2013-05-23 Yao Qi <yao@codesourcery.com>
14264 Pedro Alves <palves@redhat.com>
14266 * linux-low.c (lwp_in_step_range): New function.
14267 (linux_wait_1): If the thread was range stepping and stopped
14268 outside the stepping range, report the stop to GDB. Otherwise,
14269 continue stepping. Add range stepping debug output.
14270 (linux_set_resume_request): Copy the step range from the resume
14271 request to the lwp.
14272 (linux_supports_range_stepping): New.
14273 (linux_target_ops) <supports_range_stepping>: Set to
14274 linux_supports_range_stepping.
14275 * linux-low.h (struct linux_target_ops)
14276 <supports_range_stepping>: New field.
14277 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14278 * linux-x86-low.c (x86_supports_range_stepping): New.
14279 (the_low_target) <supports_range_stepping>: Set to
14280 x86_supports_range_stepping.
14281 * server.c (handle_v_cont): Handle 'r' action.
14282 (handle_v_requests): Append ";r" if the target supports range
14284 * target.h (struct thread_resume) <step_range_start,
14285 step_range_end>: New fields.
14286 (struct target_ops) <supports_range_stepping>:
14288 (target_supports_range_stepping): New macro.
14290 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14292 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14293 confusion in comment.
14295 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14297 * lynx-low.c (struct process_info_private): New type.
14298 (lynx_add_process): New function.
14299 (lynx_create_inferior, lynx_attach): Replace calls to
14300 add_process by calls to lynx_add_process.
14301 (lynx_resume): If PTID is null, then try using
14302 current_process()->private->last_wait_event_ptid.
14304 (lynx_clear_inferiors): Delete. The contents of that function
14305 has been inlined in lynx_mourn;
14306 (lynx_wait_1): Save the ptid in the process's private data.
14307 (lynx_mourn): Free the process' private data. Replace call
14308 to lynx_clear_inferiors by call to clear_inferiors.
14310 2013-05-17 Yao Qi <yao@codesourcery.com>
14312 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14315 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14317 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14318 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14319 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14320 PT_TEXT_END_ADDR guards. Update comments.
14321 (linux_target_op) <read_offsets>: Conditionally define to
14322 linux_read_offsets if the target is UCLIBC and if it defines
14323 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14325 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14326 Andrew Jenner <andrew@codesourcery.com>
14328 * Makefile.in (SFILES): Add linux-nios2-low.c.
14329 (clean): Add action to delete nios2-linux.c.
14330 (nios2-linux.c): New rule.
14331 * configure.srv: Add nios2*-*-linux*.
14332 * linux-nios2-low.c: New.
14334 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14336 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14338 2013-04-25 Hui Zhu <hui@codesourcery.com>
14341 * ax.c (ax_printf): Add fflush.
14343 2013-04-22 Tom Tromey <tromey@redhat.com>
14345 * Makefile.in (SFILES): Add filestuff.c.
14346 (OBS): Add filestuff.o.
14347 (filestuff.o): New target.
14348 * config.in, configure: Rebuild.
14349 * configure.ac: Check for fdwalk, pipe2.
14351 2013-04-17 Pedro Alves <palves@redhat.com>
14353 * configure.ac (USE_THREAD_DB): Delete variable.
14354 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14355 Don't AC_SUBST USE_THREAD_DB.
14356 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14357 * config.in, configure: Regenerate.
14359 2013-04-16 Pedro Alves <palves@redhat.com>
14361 * linux-low.h (struct lwp_info) <thread_known>: Move under
14362 the USE_THREAD_DB #ifdef.
14364 2013-04-16 Pedro Alves <palves@redhat.com>
14366 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14367 (linux-low.o): Delete rule.
14368 * linux-low.h: Always include "gdb_thread_db.h" instead of
14369 conditionally including thread_db.h.
14370 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14373 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14375 * Makefile.in (install-only): Fix make install regression.
14377 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14379 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14380 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14382 * gdbserver.1: Remove.
14384 2013-03-22 Pedro Alves <palves@redhat.com>
14386 * linux-low.c (handle_extended_wait): Don't call
14387 linux_enable_event_reporting.
14389 2013-03-15 Tony Theodore <tonyt@logyst.com>
14392 * Makefile.in (SHELL): Use @SHELL@.
14394 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14396 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14399 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14401 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14402 Remove extraneous NULL element.
14404 2013-03-13 Yao Qi <yao@codesourcery.com>
14406 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14407 'V' block in trace frame.
14409 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14411 * target.h (struct target_ops): Add btrace ops.
14412 (target_supports_btrace): New macro.
14413 (target_enable_btrace): New macro.
14414 (target_disable_btrace): New macro.
14415 (target_read_btrace): New macro.
14416 * gdbthread.h (struct thread_info): Add btrace field.
14417 * server.c: Include btrace-common.h.
14418 (handle_btrace_general_set): New function.
14419 (handle_btrace_enable): New function.
14420 (handle_btrace_disable): New function.
14421 (handle_general_set): Call handle_btrace_general_set.
14422 (handle_qxfer_btrace): New function.
14423 (struct qxfer qxfer_packets[]): Add btrace entry.
14424 * inferiors.c (remove_thread): Disable btrace.
14425 * linux-low: Include linux-btrace.h.
14426 (linux_low_enable_btrace): New function.
14427 (linux_low_read_btrace): New function.
14428 (linux_target_ops): Add btrace ops.
14429 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14430 Add srv_linux_btrace=yes.
14431 (x86_64-*-linux*): Add linux-btrace.o.
14432 Add srv_linux_btrace=yes.
14433 * configure.ac: Define HAVE_LINUX_BTRACE.
14434 * config.in: Regenerated.
14435 * configure: Regenerated.
14437 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14439 * server.c (handle_qxfer): Preserve error message if -3 is
14441 (qxfer): Document the -3 return value.
14443 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14445 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14446 (linux_btrace_h): New variable.
14447 (linux-btrace.o): New rule.
14449 2013-03-08 Stan Shebs <stan@codesourcery.com>
14450 Hafiz Abid Qadeer <abidh@codesourcery.com>
14452 * tracepoint.c (trace_buffer_size): New global.
14453 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14454 (init_trace_buffer): Change to one-argument function. Allocate
14455 trace buffer memory.
14456 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14457 handle QTBuffer:size packet.
14458 (cmd_bigqtbuffer_size): New function.
14459 (initialize_tracepoint): Call init_trace_buffer with
14460 DEFAULT_TRACE_BUFFER_SIZE.
14461 * server.c (handle_query): Add QTBuffer:size in the
14464 2013-03-07 Yao Qi <yao@codesourcery.com>
14466 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14467 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14469 (cmd_qtsp): Adjust condition. Do post increment.
14470 Set cur_action and cur_step_action back to 0.
14472 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14475 * linux-low.c (linux_write_memory): Return early success if LEN is
14478 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14480 * configure.srv: Add x86_64-*-cygwin* as target.
14482 2013-02-28 Tom Tromey <tromey@redhat.com>
14484 * configure.ac: Invoke AC_SYS_LARGEFILE.
14485 * configure, config.in: Rebuild.
14487 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14489 * win32-low.c: Throughout, fix format strings and casts of
14490 printf-like functions to avoid type related warnings on all
14492 (get_child_debug_event): Print dwDebugEventCode as hex since
14493 that's how it's usually documented.
14495 2013-02-28 Yao Qi <yao@codesourcery.com>
14497 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14500 2013-02-27 Jiong Wang <jiwang@tilera.com>
14502 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14503 (reg-tilegx32.c): New rule.
14504 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14505 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14506 different register info initializer according to elf class.
14507 (init_registers_tilgx32): New function. The tilegx32 register info
14509 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14510 (tile_store_gregset): Likewise.
14512 2013-02-27 Yao Qi <yao@codesourcery.com>
14514 * server.c (process_point_options): Print debug message when
14515 debug_threads is true.
14517 2013-02-26 Yao Qi <yao@codesourcery.com>
14519 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14521 2013-02-19 Pedro Alves <palves@redhat.com>
14522 Kai Tietz <ktietz@redhat.com>
14526 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14527 instead of strtoul to extract address from packet.
14528 (process_serial_event) <'z'>: Likewise.
14530 2013-02-18 Yao Qi <yao@codesourcery.com>
14532 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14534 2013-02-14 Pedro Alves <palves@redhat.com>
14538 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14539 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14541 2013-02-14 Pedro Alves <palves@redhat.com>
14543 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14545 2013-02-14 Pedro Alves <palves@redhat.com>
14547 * tracepoint.c (save_string): Delete.
14548 (add_tracepoint_action): Use savestring instead of save_string.
14550 2013-02-12 Pedro Alves <palves@redhat.com>
14552 * linux-xtensa-low.c: Ditto.
14553 * xtensa-xtregs.c: Ditto.
14555 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14557 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14560 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14562 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14563 aarch64_num_wp_regs and aarch64_num_bp_regs to
14564 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14566 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14568 * linux-aarch64-low.c (ps_get_thread_area): Replace
14569 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14571 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14572 Marcus Shawcroft <marcus.shawcroft@arm.com>
14573 Nigel Stephens <nigel.stephens@arm.com>
14574 Yufeng Zhang <yufeng.zhang@arm.com>
14576 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14577 (aarch64.c, aarch64-without-fpu.c): New targets.
14578 * configure.srv (aarch64*-*-linux*): New.
14579 * linux-aarch64-low.c: New file.
14581 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14583 * linux-low.c (handle_extended_wait, linux_create_inferior)
14584 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14585 (dequeue_one_deferred_signal, linux_resume_one_thread)
14586 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14587 (linux_tracefork_grandchild, linux_test_for_tracefork)
14588 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14589 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14590 where the argument is 0.
14592 2013-01-25 Yao Qi <yao@codesourcery.com>
14594 * event-loop.c: Include "queue.h".
14595 (gdb_event_p): New typedef.
14596 (struct gdb_event) <next_event>: Remove.
14597 (event_queue): Change to QUEUE(gdb_event_p).
14598 (async_queue_event): Remove.
14599 (gdb_event_xfree): New.
14600 (initialize_event_loop): New.
14601 (process_event): Use API from QUEUE.
14602 (wait_for_event): Likewise.
14603 * server.c (main): Call initialize_event_loop.
14604 * server.h (initialize_event_loop): Declare.
14606 2013-01-18 Yao Qi <yao@codesourcery.com>
14608 * ax.h (struct eval_agent_expr_context): New.
14609 (gdb_eval_agent_expr): Update declaration.
14610 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14611 TFRAME. Add new argument CTX.
14612 * server.h (struct eval_agent_expr_context): Declare.
14613 (agent_mem_read, agent_tsv_read): Update declaration.
14614 (agent_mem_read_string): Likewise.
14615 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14616 (add_traceframe_block): Add new argument TPOINT.
14617 Increase TPOINT->traceframe_usage.
14618 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14619 eval_tracepoint_agent_expr.
14620 (condition_true_at_tracepoint): Likewise.
14621 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14622 (agent_mem_read_string, agent_tsv_read): Likewise.
14624 2013-01-16 Yao Qi <yao@codesourcery.com>
14626 * linux-low.c (linux_resume_one_lwp): Don't check
14627 'lwp->bp_reinsert != 0'.
14629 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14630 Pedro Alves <palves@redhat.com>
14632 * lynx-low.c (ptrace_request_to_str): Define a temporary
14633 macro and use it to simplify this function's implementation.
14635 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14637 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14640 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14642 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14644 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14646 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14648 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14650 * lynx-low.c (lynx_resume): Use the resume_info parameter
14651 to determine the ptid for the lynx_ptrace call, unless
14652 it is equal to minus_one_ptid, in which case we use the
14653 ptid of the current_inferior.
14654 (lynx_wait_1): After having received a thread create/exit
14655 event, resume the inferior's execution using the signaling
14656 thread's ptid, rather than the old ptid.
14658 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14660 * lynx-low.c (lynx_resume): Delete variable ret.
14662 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14664 * gdbreplay.c (gdbreplay_version): Update copyright year.
14665 * server.c (gdbserver_version): Likewise.
14667 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14669 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14672 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14674 * lynx-low.c (ptrace_request_to_str): Add handling for
14675 PTRACE_GETTRACESIG.
14677 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14679 * lynx-low.c (lynx_attach): Delete variable new_process.
14681 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14683 * lynx-low.c (lynx_create_inferior): Delete variable
14686 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14688 * lynx-low.c (ptrace_request_to_str): Do not handle
14689 PTRACE_GETTHREADLIST if this macro does not exist.
14691 2012-12-15 Yao Qi <yao@codesourcery.com>
14693 * Makefile.in (OBS): Add notif.o.
14694 * notif.c, notif.h: New.
14695 * server.c: Include "notif.h".
14696 (struct vstop_notif) <next>: Remove.
14698 (queue_stop_reply): Update.
14699 (push_event, send_next_stop_reply): Remove.
14700 (discard_queued_stop_replies): Update.
14701 (notif_stop): New variable.
14702 (handle_v_stopped): Remove.
14703 (handle_v_requests): Don't call handle_v_stopped. Call
14704 handle_ack_notif instead.
14705 (queue_stop_reply_callback): Call notif_event_enque instead
14706 of queue_stop_reply.
14707 (handle_status): Don't call send_next_stop_reply, call
14708 notif_write_event instead.
14709 (kill_inferior_callback): Likewise.
14710 (detach_or_kill_inferior_callback): Likewise.
14711 (main): Call initialize_notif.
14712 (process_serial_event): Call QUEUE_is_empty.
14713 (handle_target_event): Call notif_push instead of push event.
14714 * server.h (push_event): Remove declaration.
14716 2012-12-10 Tom Tromey <tromey@redhat.com>
14718 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14719 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14722 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14723 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14724 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14725 (amd64-linux-ipa.o, ax.o): Rewrite.
14726 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14727 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14728 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14729 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14730 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14731 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14732 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14733 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14734 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14735 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14736 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14737 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14738 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14739 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14740 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14741 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14742 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14743 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14744 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14745 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14746 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14747 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14748 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14749 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14750 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14751 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14752 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14753 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14754 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14755 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14756 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14757 (reg-tilegx.o): Remove.
14758 (all_object_files): New macro.
14759 Include .deps files.
14760 * aclocal.m4, configure: Rebuild.
14761 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14762 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14763 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14765 2012-12-05 Tom Tromey <tromey@redhat.com>
14768 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14770 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14772 * configure.ac: Check for linux/perf_event.h.
14773 * config.in: Regenerated.
14774 * configure: Regenerated.
14776 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14778 * hostio.c (handle_readlink): Decrease buffer size
14779 parameter passed to readlink by one byte.
14781 2012-11-26 Yao Qi <yao@codesourcery.com>
14783 * configure.ac (build_warnings): Append '-Wempty-body'.
14784 * configure: Regenerated.
14785 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14788 2012-11-15 Pierre Muller <muller@sourceware.org>
14790 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14791 * config.in: Regenerate.
14792 * configure: Regenerate.
14793 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14794 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14795 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14796 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14798 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14799 instead of <sys/wait.h> header.
14800 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14802 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14804 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14805 (various make rules): Remove -DGDBSERVER
14807 2012-11-09 Yao Qi <yao@codesourcery.com>
14809 * spu-low.c (current_ptid): Move it to ..
14810 * gdbthread.h: ... here. New.
14811 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14812 * server.c (myresume, process_serial_event): Likewise.
14813 * thread-db.c (thread_db_find_new_threads): Likewise.
14814 * tracepoint.c (run_inferior_command): Likewise.
14816 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14818 * server.c (handle_search_memory_1): Include access length in
14821 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14823 * linux-crisv32-low.c: Fix compile errors.
14825 2012-09-04 Yao Qi <yao@codesourcery.com>
14827 * tracepoint.c (cmd_qtsv): Adjust debug message.
14828 Don't check CUR_TPOINT.
14830 2012-08-28 Yao Qi <yao@codesourcery.com>
14832 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14833 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14834 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14835 Remove declarations of xmalloc, xreallloc, xstrdup and
14837 * Makefile.in (libiberty_h): New.
14838 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14839 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14841 2012-08-23 Yao Qi <yao@codesourcery.com>
14843 * server.h: Remove declaration of 'xsnprintf'.
14845 2012-08-22 Keith Seitz <keiths@redhat.com>
14847 * server.h: Include build-gnulib-gbserver/config.h.
14848 * gdbreplay.c: Likewise.
14850 2012-08-08 Doug Evans <dje@google.com>
14852 * Makefile.in (SFILES): Add gdb_vecs.c.
14853 (OBS): Add gdb_vecs.o.
14854 (gdb_vecs_h, host_defs_h): New variables.
14855 (thread-db.o): Add $(gdb_vecs_h) dependency.
14856 (gdb_vecs.o): New rule.
14857 * thread-db.c: #include "gdb_vecs.h".
14858 (thread_db_load_search): Use a vector to iterate over path elements.
14859 Handle text appearing after "$pdir".
14861 * configure.ac: Add check for strstr.
14862 * config.in: Regenerate.
14863 * configure: Regenerate.
14865 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14867 * hostio.c (handle_pread): If pread fails, fall back to attempting
14869 (handle_pwrite): Likewise for pwrite.
14871 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14873 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14874 between unsupported TYPE and unimplementable ADDR/LEN combination.
14875 (arm_insert_point): Act on new return value.
14877 2012-07-31 Pedro Alves <palves@redhat.com>
14879 * server.c (process_point_options): Only skip tokens if we find
14880 one that is unrecognized. Don't treat 'X' specially while
14881 skipping unrecognized tokens.
14883 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14885 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14886 to 4-byte-align HW breakpoint addresses for Thumb.
14888 2012-07-27 Yao Qi <yao@codesourcery.com>
14892 * server.h: Declare gdb_agent_about_to_close.
14893 * target.c (kill_inferior): Include "agent.h".
14894 New. Send command 'kill'.
14895 * target.h (kill_inferior): Removed macro.
14896 * tracepoint.c (gdb_agent_about_to_close): New.
14897 (gdb_agent_helper_thread): Handle command 'close'.
14898 Wait endlessly until the inferior stops.
14899 Install gdb_agent_remove_socket to atexit hook.
14900 (agent_socket_name): New static variable.
14901 (gdb_agent_socket_init): Replace local variable 'name' with
14902 'agent_socket_name'.
14903 (gdb_agent_remove_socket): New.
14905 2012-07-27 Yao Qi <yao@codesourcery.com>
14907 * server.c (process_point_options): Stop at 'X' when parsing.
14909 2012-07-19 Michael Eager <eager@eagercon.com>
14911 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14913 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14914 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14915 hardware breakpoint.
14917 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14919 * gdbserver/linux-low.c (initialize_low): Call
14920 linux_ptrace_init_warnings.
14922 2012-07-02 Doug Evans <dje@google.com>
14924 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14927 2012-07-02 Stan Shebs <stan@codesourcery.com>
14929 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14930 (ax.o): Add it to build rule.
14932 (OBS): Add format.o.
14933 (IPA_OBS): Add format.o.
14934 * server.c (handle_query): Claim support for breakpoint commands.
14935 (process_point_options): Add command case.
14936 (process_serial_event): Leave running if there are printfs in
14938 * mem-break.h (any_persistent_commands): Declare.
14939 (add_breakpoint_commands): Declare.
14940 (gdb_no_commands_at_breakpoint): Declare.
14941 (run_breakpoint_commands): Declare.
14942 * mem-break.c (struct point_command_list): New struct.
14943 (struct breakpoint): New field command_list.
14944 (any_persistent_commands): New function.
14945 (add_commands_to_breakpoint): New function.
14946 (add_breakpoint_commands): New function.
14947 (gdb_no_commands_at_breakpoint): New function.
14948 (run_breakpoint_commands): New function.
14949 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14951 * ax.c: Include format.h.
14952 (ax_printf): New function.
14953 (gdb_eval_agent_expr): Add printf opcode.
14955 2012-06-13 Yao Qi <yao@codesourcery.com>
14957 * server.c (start_inferior): Remove duplicated writes to fields
14958 'last_resume_kind' and 'last_status' of 'current_inferior'.
14960 2012-06-12 Yao Qi <yao@codesourcery.com>
14961 Pedro Alves <palves@redhat.com>
14963 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14965 * server.c (handle_v_cont): Extend comment.
14967 2012-06-11 Yao Qi <yao@codesourcery.com>
14969 * linux-low.c (linux_attach): Add 'static'.
14971 2012-06-06 Yao Qi <yao@codesourcery.com>
14973 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14975 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14977 Fix gcc -flto compilation warning.
14978 * server.c (main): Make variable multi_mode and attach volatile.
14980 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14982 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14983 if the platform doesn't know about it.
14985 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14987 * Makefile.in (SFILES): Add linux-tile-low.c.
14988 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14989 * configure.srv: Handle tilegx-*-linux*.
14990 * linux-tile-low.c: New file.
14992 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14994 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14996 2012-05-24 Pedro Alves <palves@redhat.com>
15000 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15002 2012-05-24 Pedro Alves <palves@redhat.com>
15006 Replace target_signal with gdb_signal throughout.
15008 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15010 * linux-low.c (linux_store_registers): Avoid the copying sequence
15011 when no data has been retrieved by ptrace.
15013 2012-05-22 Will Deacon <will.deacon@arm.com>
15015 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15016 Include asm/ptrace.h.
15017 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15020 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15022 * linux-low.c (linux_store_registers): Don't re-retrieve data
15023 with ptrace that has already been obtained from /proc. Always
15024 copy any data retrieved with ptrace to the buffer supplied.
15026 2012-05-11 Yao Qi <yao@codesourcery.com>
15027 Pedro Alves <palves@redhat.com>
15029 * linux-low.c (enum stopping_threads_kind): New.
15030 (stopping_threads): Change type to `enum stopping_threads_kind'.
15031 (handle_extended_wait): If stopping and suspending threads, leave
15032 the new_lwp suspended too.
15033 (linux_wait_for_event): Adjust.
15034 (stop_all_lwps): Set `stopping_threads' to
15035 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15036 whether we're suspending threads or just stopping them. Assert no
15039 2012-04-29 Yao Qi <yao@codesourcery.com>
15041 * server.h: Move some code to ...
15042 * gdbthread.h: ... here. New.
15043 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15044 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15045 (nto-low.o, win32-low.o): Likewise.
15046 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15047 * regcache.c, remote-utils.c, server.c: Likewise.
15048 * target.c, tracepoint.c, win32-low.c: Likewise.
15050 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15052 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15053 (PTRACE_ARG4_TYPE): Likewise.
15054 (PTRACE_XFER_TYPE): Likewise.
15055 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15056 ptrace to PTRACE_ARG3_TYPE.
15057 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15058 (PTRACE_ARG4_TYPE): Likewise.
15059 (PTRACE_XFER_TYPE): Likewise.
15060 (linux_detach_one_lwp): Cast fourth argument of
15061 ptrace to long then PTRACE_ARG4_TYPE.
15062 (regsets_fetch_inferior_registers): Cast third argument of
15063 ptrace to long then PTRACE_ARG3_TYPE.
15064 (regsets_store_inferior_registers): Likewise.
15066 2012-04-20 Pedro Alves <palves@redhat.com>
15068 * configure: Regenerate.
15070 2012-04-19 Pedro Alves <palves@redhat.com>
15072 * Makefile.in (GNULIB_BUILDDIR): New.
15073 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15074 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15075 (all, install-only, uninstall, clean-info, all-lib, clean): No
15076 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15077 (maintainer-clean realclean distclean): Use subdir_do.
15079 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15080 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15081 * acinclude.m4: Include acx_configure_dir.m4.
15082 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15083 calls. Call AC_PROG_RANLIB. Configure gnulib using
15086 (GNULIB_STDINT_H): Adjust.
15087 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15088 * gdbreplay.c: Include build-gnulib/config.h.
15089 * server.h: Likewise.
15090 * aclocal.m4: Regenerate.
15091 * config.in: Regenerate.
15092 * configure: Regenerate.
15094 2012-04-19 Pedro Alves <palves@redhat.com>
15096 * Makefile.in (LIBGNU, INCGNU): Adjust.
15097 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15098 (all, install-only, uninstall, clean-info, all-lib, clean)
15099 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15100 * configure.ac: Adjust AC_OUTPUT output.
15101 * aclocal.m4: Regenerate.
15102 * configure: Regenerate.
15104 2012-04-19 Pedro Alves <palves@redhat.com>
15106 * Makefile.in (generated_files): New.
15107 (server_h): Remove the explicit dependency on config.h, and depend
15108 on $generated_files.
15110 2012-04-19 Pedro Alves <palves@redhat.com>
15112 * Makefile.in (INCGNU): Add -Ignulib.
15114 2012-04-19 Pedro Alves <palves@redhat.com>
15116 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15117 (INCGNU): ... this, and spell out -I here.
15118 (GNULIB_LIB): Rename to ...
15119 (LIBGNU): ... this.
15120 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15122 2012-04-19 Pedro Alves <palves@redhat.com>
15124 * config.in: Regenerate.
15126 2012-04-19 Pedro Alves <palves@redhat.com>
15128 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15129 * server.h (memmem): Remove declaration.
15130 * config.in: Regenerate.
15131 * configure: Regenerate.
15133 2012-04-19 Yao Qi <yao@codesourcery.com>
15135 * Makefile.in (SFILES): Add common/vec.c.
15139 2012-04-19 Yao Qi <yao@codesourcery.com>
15141 * remote-utils.c (prepare_resume_reply): Replace with macro
15142 target_core_of_thread.
15143 * server.c (handle_qxfer_threads_proper): Likewise.
15144 * target.h (traget_core_of_thread): New macro.
15146 2012-04-18 Pedro Alves <palves@redhat.com>
15148 * aclocal.m4: Regenerate.
15149 * configure: Regenerate.
15151 2012-04-16 Yao Qi <yao@codesourcery.com>
15153 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15154 duplicated on address.
15156 2012-04-16 Yao Qi <yao@codesourcery.com>
15158 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15159 (struct tracepoint_action_ops) <send>: New field.
15160 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15161 (agent_expr_send, x_tracepoint_action_send): New.
15162 (l_tracepoint_action_send): New.
15163 (cmd_qtdp): Download and install tracepoint
15164 according to `use_agent'.
15165 (run_inferior_command): Add one more parameter `len'.
15167 (tracepoint_send_agent): New.
15168 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15170 2012-04-16 Yao Qi <yao@codesourcery.com>
15172 * tracepoint.c (download_tracepoints): Moved to ...
15173 (cmd_qtstart): ... here.
15175 2012-04-14 Yao Qi <yao@codesourcery.com>
15177 * tracepoint.c: Include inttypes.h.
15178 (struct collect_memory_action): Use sized types.
15179 (struct tracepoint): Likewise.
15180 (cmd_qtdp, stop_tracing): Update print specifiers.
15181 (cmd_qtp, response_tracepoint): Likewise.
15182 (collect_data_at_tracepoint): Likewise.
15183 (collect_data_at_step): Likewise.
15185 2012-04-14 Yao Qi <yao@codesourcery.com>
15187 Import gnulib module inttypes.
15188 * aclocal.m4, config.in, configure: Regenerated.
15190 2012-04-14 Yao Qi <yao@codesourcery.com>
15192 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15193 Makefile and config.status at last.
15195 2012-04-13 Yao Qi <yao@codesourcery.com>
15197 * tracepoint.c: Include stdint.h unconditionally.
15199 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15201 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15202 on BFD_HAVE_SYS_PROCFS_TYPE.
15203 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15204 * configure: Regenerate.
15205 * config.in: Likewise.
15207 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15209 * Makefile.in (clean): Also remove x32.c x32-linux.c
15210 x32-avx.c x32-avx-linux.c.
15211 (x32.o): New target.
15213 (x32-linux.o): Likewise.
15214 (x32-linux.c): Likewise.
15215 (x32-avx.o): Likewise.
15216 (x32-avx.c): Likewise.
15217 (x32-avx-linux.o): Likewise.
15218 (x32-avx-linux.c): Likewise.
15220 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15221 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15222 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15223 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15224 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15225 i386/x32-avx-linux.xml.
15227 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15228 (init_registers_x32_avx_linux): Likwise.
15229 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15230 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15232 2012-04-13 Pedro Alves <palves@redhat.com>
15234 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15235 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15236 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15237 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15240 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15242 * linux-x86-low.c (compat_x32_clock_t): New.
15243 (compat_x32_siginfo_t): Likewise.
15244 (compat_x32_siginfo_from_siginfo): Likewise.
15245 (siginfo_from_compat_x32_siginfo): Likewise.
15246 (linux_is_elf64): Likewise.
15247 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15248 and siginfo_from_compat_x32_siginfo for x32.
15249 (x86_arch_setup): Set linux_is_elf64.
15251 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15254 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15256 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15257 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15258 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15259 compatible with process.
15261 2012-04-12 Yao Qi <yao@codesourcery.com>
15263 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15264 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15265 (install-only, install-info, clean): Handle sub dir gnulib.
15266 (all-lib, am--refresh): New targets.
15267 (memmem.o): Remove target.
15268 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15269 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15270 (AC_REPLACE_FUNCS): Remove memmem.
15271 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15272 (AC_OUTPUT): Generate Makefile in gnulib/.
15273 * aclocal.m4, config.in, configure: Regenerated.
15275 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15277 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15279 2012-04-05 Pedro Alves <palves@redhat.com>
15281 -Werror=strict-aliasing
15283 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15286 2012-04-04 Pedro Alves <palves@redhat.com>
15288 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15289 (sparc_store_gregset_from_stack, sparc_store_gregset)
15290 (sparc_breakpoint_at): Fix formatting.
15292 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15294 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15296 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15297 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15298 * config.in: Regenerate.
15299 * configure: Likewise.
15301 2012-03-29 Pedro Alves <palves@redhat.com>
15303 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15304 Correct ptrace arguments.
15306 2012-03-28 Pedro Alves <palves@redhat.com>
15308 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15309 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15310 (IA64_FR1_REGNUM): New defines.
15311 (ia64_fetch_register): New.
15312 (the_low_target): Install it.
15313 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15315 * linux-low.c (linux_fetch_registers): Try the
15316 the_low_target.fetch_register hook first.
15318 * linux-arm-low.c (the_low_target): Adjust.
15319 * linux-bfin-low.c (the_low_target): Adjust.
15320 * linux-cris-low.c (the_low_target): Adjust.
15321 * linux-crisv32-low.c (the_low_target): Adjust.
15322 * linux-m32r-low.c (the_low_target): Adjust.
15323 * linux-m68k-low.c (the_low_target): Adjust.
15324 * linux-mips-low.c (the_low_target): Adjust.
15325 * linux-ppc-low.c (the_low_target): Adjust.
15326 * linux-s390-low.c (the_low_target): Adjust.
15327 * linux-sh-low.c (the_low_target): Adjust.
15328 * linux-sparc-low.c (the_low_target): Adjust.
15329 * linux-tic6x-low.c (the_low_target): Adjust.
15330 * linux-x86-low.c (the_low_target): Adjust.
15331 * linux-xtensa-low.c (the_low_target): Adjust.
15333 2012-03-26 Pedro Alves <palves@redhat.com>
15335 * server.c (handle_qxfer_libraries): Don't bail early if
15336 the_target->qxfer_libraries_svr4 is not NULL.
15338 2012-03-26 Pedro Alves <palves@redhat.com>
15340 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15342 2012-03-23 Pedro Alves <palves@redhat.com>
15344 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15345 "library-list-svr4" element's start tag when the the DSO list is
15348 2012-03-23 Pedro Alves <palves@redhat.com>
15350 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15351 a variable whose type size is the same as the inferior's pointer
15354 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15356 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15358 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15359 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15360 * linux-low.h: Include <signal.h>.
15361 (struct siginfo): Remove forward declaration.
15362 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15365 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15367 * .gitignore: Ignore more files.
15369 2012-03-19 Pedro Alves <palves@redhat.com>
15370 Jan Kratochvil <jan.kratochvil@redhat.com>
15372 * server.c (cont_thread, general_thread): Add describing comments.
15373 (start_inferior): Clear `cont_thread'.
15374 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15377 2012-03-15 Yao Qi <yao@codesourcery.com>
15379 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15381 (cmd_qtdp): ... here.
15383 2012-03-15 Yao Qi <yao@codesourcery.com>
15385 * tracepoint.c (struct tracepoint_action_ops): New.
15386 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15387 (m_tracepoint_action_download): New.
15388 (r_tracepoint_action_download): New.
15389 (x_tracepoint_action_download): New.
15390 (l_tracepoint_action_download): New.
15391 (add_tracepoint_action): Install `action->ops' according type.
15392 (download_tracepoint_1): Move code `download' function pointer
15393 of various tracepoint_action_ops.
15395 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15397 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15398 linux_ptrace_attach_warnings.
15400 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15402 * Makefile.in (linux-ptrace.o): New.
15403 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15404 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15405 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15406 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15407 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15409 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15411 2012-03-08 Yao Qi <yao@codesourcery.com>
15412 Pedro Alves <palves@redhat.com>
15414 Fix PR server/13392.
15415 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15416 offset of JMP insn.
15417 * tracepoint.c (remove_tracepoint): New.
15418 (cmd_qtdp): Call remove_tracepoint when failed to install.
15420 2012-03-07 Pedro Alves <palves@redhat.com>
15422 * linux-low.c (get_detach_signal): New.
15423 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15424 Pass on pending signals to PTRACE_DETACH. Check the result of the
15426 * server.c (program_signals, program_signals_p): New.
15427 (handle_general_set): Handle QProgramSignals.
15428 * server.h (program_signals, program_signals_p): Declare.
15430 2012-03-05 Pedro Alves <palves@redhat.com>
15431 Jan Kratochvil <jan.kratochvil@redhat.com>
15433 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15436 2012-03-03 Yao Qi <yao@codesourcery.com>
15438 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15439 agent_look_up_symbols.
15441 2012-03-03 Yao Qi <yao@codesourcery.com>
15443 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15444 (linux-x86-low.o): Likewise.
15445 * server.h: Remove in_process_agent_loaded.
15446 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15450 2012-03-03 Yao Qi <yao@codesourcery.com>
15452 * tracepoint.c (gdb_agent_capability): New global.
15453 (in_process_agent_loaded_ust): Renamed to
15454 `in_process_agent_supports_ust'.
15456 (in_process_agent_supports_ust): Call agent_capability_check.
15457 (clear_installed_tracepoints): Assert that agent supports
15460 2012-03-03 Yao Qi <yao@codesourcery.com>
15462 * linux-low.c (linux_supports_agent): New.
15463 (linux_target_ops): Initialize field `supports_agent' with
15464 linux_supports_agent.
15465 * target.h (struct target_ops) <supports_agent>: New.
15466 (target_supports_agent): New macro.
15467 * server.c (handle_general_set): Handle packet 'QAgent'.
15468 (handle_query): Send `QAgent+'.
15469 * Makefile.in (server.o): Depends on agent.h.
15471 2012-03-03 Yao Qi <yao@codesourcery.com>
15473 * Makefile.in (OBS): Add agent.o.
15474 Add new rule for agent.o.
15475 Track dependence of tracepoint.c on agent.h.
15476 * tracepoint.c (run_inferior_command_1):
15477 (run_inferior_command): Call agent_run_command.
15478 (gdb_ust_connect_sync_socket): Deleted. Move it to
15480 (resume_thread, stop_thread): Likewise.
15481 (gdb_ust_socket_init): Renamed to ...
15482 (gdb_agent_socket_init): ... New.
15483 (gdb_ust_thread): Renamed to ...
15484 (gdb_agent_helper_thread): ... New.
15485 (gdb_ust_init): Move some code to ...
15486 (gdb_agent_init): ... here. New.
15487 [HAVE_UST]: Call gdb_ust_init.
15488 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15489 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15490 * config.in, configure: Regenerated.
15492 2012-03-02 Pedro Alves <palves@redhat.com>
15494 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15495 * linux-low.c (struct simple_pid_list): New.
15496 (stopped_pids): New a struct simple_pid_list pointer.
15497 (add_to_pid_list, pull_pid_from_list): New.
15498 (handle_extended_wait): Don't assume the first signal new children
15499 report is SIGSTOP. Adjust call to pull_pid_from_list.
15500 (linux_wait_for_lwp): Adjust.
15502 2012-03-02 Yao Qi <yao@codesourcery.com>
15504 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15507 2012-03-02 Yao Qi <yao@codesourcery.com>
15509 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15510 `stop_pc' and `tpoint'. Update caller.
15512 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15514 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15515 * linux-low.c (use_linux_regsets): New macro.
15516 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15517 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15518 (linux_register_in_regsets): New function.
15519 (usr_fetch_inferior_registers): Skip registers covered by
15521 (usr_store_inferior_registers): Likewise.
15522 (usr_fetch_inferior_registers): New macro.
15523 (usr_store_inferior_registers): Likewise.
15524 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15525 (linux_store_registers): Likewise.
15526 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15528 (init_registers_mips64_dsp_linux): Likewise.
15529 (init_registers_mips_linux): New macro.
15530 (init_registers_mips_dsp_linux): Likewise.
15531 (mips_dsp_num_regs): Likewise.
15532 (DSP_BASE, DSP_CONTROL): New fallback macros.
15533 (mips_base_regs): New macro.
15534 (mips_regmap): Use it. Fix the size.
15535 (mips_dsp_regmap): New variable.
15536 (mips_dsp_regset_bitmap): Likewise.
15537 (mips_arch_setup): New function.
15538 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15540 (mips_cannot_store_register): Likewise.
15541 (the_low_target): Update .arch_setup, .num_regs and .regmap
15542 initializers. Add .regset_bitmap initializer.
15543 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15545 * linux-bfin-low.c (the_low_target): Likewise.
15546 * linux-cris-low.c (the_low_target): Likewise.
15547 * linux-crisv32-low.c (the_low_target): Likewise.
15548 * linux-ia64-low.c (the_low_target): Likewise.
15549 * linux-m32r-low.c (the_low_target): Likewise.
15550 * linux-m68k-low.c (the_low_target): Likewise.
15551 * linux-ppc-low.c (the_low_target): Likewise.
15552 * linux-s390-low.c (the_low_target): Likewise.
15553 * linux-sh-low.c (the_low_target): Likewise.
15554 * linux-sparc-low.c (the_low_target): Likewise.
15555 * linux-tic6x-low.c (the_low_target): Likewise.
15556 * linux-x86-low.c (the_low_target): Likewise.
15557 * linux-xtensa-low.c (the_low_target): Likewise.
15558 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15559 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15560 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15562 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15563 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15565 2012-02-29 Yao Qi <yao@codesourcery.com>
15566 Pedro Alves <palves@redhat.com>
15568 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15569 `step_over_finished' is true.
15571 2012-02-27 Pedro Alves <palves@redhat.com>
15573 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15574 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15576 2012-02-27 Pedro Alves <palves@redhat.com>
15579 * linux-low.c (pid_is_stopped): New.
15580 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15582 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15584 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15587 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15589 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15591 2012-02-24 Luis Machado <lgustavo@codesourcery>
15593 * server.c (handle_query): Advertise support for target-side
15594 breakpoint condition evaluation.
15595 (process_point_options): New function.
15596 (process_serial_event): When inserting a breakpoint, check for
15597 a target-side condition that should be evaluated.
15599 * mem-break.c: Include regcache.h and ax.h.
15600 (point_cond_list_t): New data structure.
15601 (breakpoint) <cond_list>: New field.
15602 (find_gdb_breakpoint_at): Make non-static.
15603 (delete_gdb_breakpoint_at): Clear any target-side
15605 (clear_gdb_breakpoint_conditions): New function.
15606 (add_condition_to_breakpoint): Likewise.
15607 (add_breakpoint_condition): Likewise.
15608 (gdb_condition_true_at_breakpoint): Likewise.
15609 (gdb_breakpoint_here): Return result directly instead
15610 of going through a local variable.
15612 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15613 (clear_gdb_breakpoint_conditions): Likewise.
15614 (add_breakpoint_condition): Likewise.
15615 (gdb_condition_true_at_breakpoint): Likewise.
15617 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15618 (need_step_over_p): Take target-side breakpoint condition into
15621 2012-02-24 Luis Machado <lgustavo@codesourcery>
15623 * server.h: Include tracepoint.h.
15624 (agent_mem_read, agent_get_trace_state_variable_value,
15625 agent_set_trace_state_variable_value,
15626 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15627 get_set_tsv_func_addr): New prototypes.
15629 * ax.h: New include file.
15630 * ax.c: New source file.
15632 * tracepoint.c: Include ax.h.
15633 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15634 agent_expr, eval_result_type): Move to ax.h.
15635 (parse_agent_expr): Rename to ...
15636 (gdb_parse_agent_expr): ... this, make it non-static and move
15638 (unparse_agent_expr) Rename to ...
15639 (gdb_unparse_agent_expr): ... this, make it non-static and move
15641 (eval_agent_expr): Rename to ...
15642 (eval_tracepoint_agent_expr): ... this.
15643 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15644 forward declarations.
15645 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15646 (agent_get_trace_state_variable_value): New function.
15647 (agent_set_trace_state_variable_value): New function.
15648 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15649 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15650 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15651 (condition_true_at_tracepoint): Likewise.
15652 (parse_agent_expr): Rename to ...
15653 (gdb_parse_agent_expr): ... this and move to ax.c.
15654 (unparse_agent_expr): Rename to ...
15655 (gdb_unparse_agent_expr): ... this and move to ax.c.
15656 (gdb_agent_op_name): Move to ax.c.
15657 (eval_agent_expr): Rename to ...
15658 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15660 (eval_tracepoint_agent_expr): New function.
15661 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15663 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15665 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15666 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15667 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15668 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15669 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15670 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15671 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15672 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15673 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15674 (compile_bytecodes): Remove forward declaration.
15675 (is_goto_target): Move to ax.c.
15676 (compile_bytecodes): Move to ax.c and call
15677 agent_get_trace_state_variable_value (...) and
15678 agent_set_trace_state_variable_value (...).
15680 * Makefile.in: Update ax.c and IPA dependencies.
15682 2012-02-24 Pedro Alves <palves@redhat.com>
15684 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15685 (cmd_bigqtbuffer_circular): ... this. Only handle
15686 'QTBuffer:circular:'.
15687 (handle_tracepoint_general_set): Adjust.
15689 2012-02-16 Yao Qi <yao@codesourcery.com>
15691 * inferiors.c: Move code to ...
15692 * dll.c: .... here. New.
15693 * server.h: Declare clear_dlls.
15694 * Makefile.in (SFILES): Add dll.c.
15698 2012-02-11 Yao Qi <yao@codesourcery.com>
15700 * server.c: (handle_monitor_command): Add a new parameter
15702 (handle_query): Update caller.
15704 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15706 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15707 * configure, config.in: Regenerate.
15708 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15711 2012-02-02 Pedro Alves <palves@redhat.com>
15713 Try SIGKILL first, then PTRACE_KILL.
15714 * linux-low.c (linux_kill_one_lwp): New.
15715 (linux_kill_one_lwp): Rename to ...
15716 (kill_one_lwp_callback): ... this. Use the new
15717 linux_kill_one_lwp.
15719 2012-02-02 Pedro Alves <palves@redhat.com>
15721 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15724 2012-01-27 Pedro Alves <palves@redhat.com>
15726 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15727 (elf_64_file_p): Make static.
15728 (linux_pid_exe_is_elf_64_file): New.
15729 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15730 Delete declarations.
15731 (linux_pid_exe_is_elf_64_file): Declare.
15732 * linux-x86-low.c (x86_arch_setup): Use
15733 linux_pid_exe_is_elf_64_file.
15735 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15737 * linux-low.c (linux_wait_for_event_1): Rename to ...
15738 (linux_wait_for_event): ... here and merge it with former
15739 linux_wait_for_event - new variable wait_ptid, use it.
15740 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15742 2012-01-23 Pedro Alves <palves@redhat.com>
15744 * server.c (main): Avoid yet another case of infinite loop while
15745 detaching/killing after a longjmp.
15747 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15750 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15752 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15754 * hostio.c (handle_readlink): New function.
15755 (handle_vFile): Call it to handle "vFile:readlink" packets.
15757 2012-01-20 Pedro Alves <palves@redhat.com>
15758 Ulrich Weigand <ulrich.weigand@linaro.org>
15760 * server.c (handle_v_requests): Only support vAttach and vRun to
15761 start multiple processes when in extended protocol mode.
15763 2012-01-17 Pedro Alves <palves@redhat.com>
15765 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15766 memalign plus mprotect to allocate the scratch buffer.
15768 2012-01-13 Pedro Alves <palves@redhat.com>
15770 * server.c (attach_inferior): Clear `cont_thread'.
15772 2012-01-13 Pedro Alves <palves@redhat.com>
15774 * server.c (main): Avoid infinite loop while detaching/killing
15777 2012-01-09 Doug Evans <dje@google.com>
15779 * server.c (start_inferior): Set last_ptid in --wrapper case.
15781 2012-01-06 Yao Qi <yao@codesourcery.com>
15783 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15785 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15787 2012-01-04 Yao Qi <yao@codesourcery.com>
15789 * tracepoint.c (cmd_qtdp): Print debug message
15790 for static tracepoint.
15792 2012-01-04 Yao Qi <yao@codesourcery.com>
15794 * tracepoint.c (trace_vdebug): Differentiate debug message
15795 between gdbserver and IPA.
15797 2012-01-03 Yao Qi <yao@codesourcery.com>
15799 * tracepoint.c (tracepoint_was_hit): Don't collect for
15802 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15804 * terminal.h: Reformat copyright header.
15806 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15808 * server.c (gdbserver_version): Update copyright year.
15809 * gdbreplay.c (gdbreplay_version): Likewise.
15811 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15813 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15816 2011-12-18 Hui Zhu <teawater@gmail.com>
15817 * linux-low.c (linux_create_inferior): Save return value to ret.
15819 2011-12-18 Hui Zhu <teawater@gmail.com>
15821 * linux-low.c (linux_create_inferior): Save return value to ret.
15823 2011-12-16 Doug Evans <dje@google.com>
15825 * linux-low.c (linux_create_inferior): If stdio connection,
15826 redirect stdin from /dev/null, stdout to stderr.
15827 * remote-utils.c (remote_is_stdio): New static global.
15828 (remote_connection_is_stdio): New function.
15829 (remote_prepare): Handle stdio connection.
15830 (remote_open): Ditto.
15831 (remote_close): Don't close stdin for stdio connections.
15832 (read_prim,write_prim): New functions. Replace all calls to
15833 read/write to these.
15834 * server.c (main): Watch for "-" argument. Move call to
15835 remote_prepare before start_inferior.
15836 * server.h (STDIO_CONNECTION_NAME): New macro.
15837 (remote_connection_is_stdio): Declare.
15839 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15840 in debugging output.
15842 2011-12-15 Yao Qi <yao@codesourcery.com>
15844 * tracepoint.c: Include sys/syscall.h.
15845 (gdb_ust_thread): Remove preprocessor conditional.
15847 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15849 * linux-low.c (linux_detach_one_lwp): Call
15850 the_low_target.prepare_to_resume before detaching.
15852 2011-12-14 Yao Qi <yao@codesourcery.com>
15854 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15857 2011-12-14 Yao Qi <yao@codesourcery.com>
15859 * i386-low.c (i386_low_stopped_data_address): Initialize local
15860 variable `control'.
15862 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15866 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15867 DR_CONTROL unless necessary. Extend comments.
15868 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15869 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15871 2011-12-13 Yao Qi <yao@codesourcery.com>
15873 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15875 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15877 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15879 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15880 Print new debug message for such case.
15882 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15884 Fix overlapping memcpy.
15885 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15886 the read_inferior_memory transfer.
15887 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15888 write_inferior_memory transfer.
15889 (set_fast_tracepoint_jump): New variable buf. Use it for the
15890 read_inferior_memory and write_inferior_memory transfers.
15891 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15892 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15893 Use it for the write_inferior_memory transfer.
15894 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15897 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15899 * linux-low.c (fetch_register, store_register): Make code
15900 consistent, fix formatting.
15902 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15904 * linux-low.c (usr_store_inferior_registers): Factor out code
15905 to handle individual registers into...
15906 (store_register): ... this new function.
15908 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15910 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15911 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15912 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15913 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15914 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15915 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15916 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15917 (srv_xmlfiles): Add new XML files.
15919 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15921 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15922 (init_registers_s390_linux32v1): Add prototype.
15923 (init_registers_s390_linux32v2): Likewise.
15924 (init_registers_s390_linux64v1): Likewise.
15925 (init_registers_s390_linux64v2): Likewise.
15926 (init_registers_s390x_linux64v1): Likewise.
15927 (init_registers_s390x_linux64v2): Likewise.
15928 (s390_num_regs): Increment to 52.
15929 (s390_regmap): Add orig_r2 register.
15930 (s390_num_regs_3264): Increment to 68.
15931 (s390_regmap_3264): Add orig_r2 register.
15932 (s390_collect_ptrace_register): Handle orig_r2 register.
15933 (s390_supply_ptrace_register): Likewise.
15934 (s390_fill_last_break): New function.
15935 (s390_store_last_break): Likewise.
15936 (s390_fill_system_call): New function.
15937 (s390_store_system_call): Likewise.
15938 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15940 (s390_check_regset): New function.
15941 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15942 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15943 Update target_regsets for available register sets.
15945 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15946 Jan Kratochvil <jan.kratochvil@redhat.com>
15948 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15949 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15951 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15952 * linux-low.h (struct process_info_private): New member r_debug.
15953 * server.c (handle_qxfer_libraries): Call
15954 the_target->qxfer_libraries_svr4.
15955 (handle_qxfer_libraries_svr4): New function.
15956 (qxfer_packets): New entry "libraries-svr4".
15957 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15958 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15959 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15960 PACKET_qXfer_libraries_svr4.
15962 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15964 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15965 PSW address/mask between 8-byte and 16-byte formats.
15966 (s390_supply_ptrace_register): Likewise.
15967 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15968 basic addressing mode bit.
15970 2011-11-24 Stan Shebs <stan@codesourcery.com>
15972 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15974 2011-11-17 Stan Shebs <stan@codesourcery.com>
15976 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15977 (tracing_start_time): New global.
15978 (tracing_stop_time): New global.
15979 (tracing_user_name): New global.
15980 (tracing_notes): New global.
15981 (tracing_stop_note): New global.
15982 (cmd_qtstart): Set traceframe_usage, start_time.
15983 (stop_tracing): Set stop_time.
15984 (cmd_qtstatus): Report additional status.
15985 (cmd_qtp): New function.
15986 (handle_tracepoint_query): Call it.
15987 (cmd_qtnotes): New function.
15988 (handle_tracepoint_general_set): Call it.
15989 (get_timestamp): Rename from tsv_get_timestamp.
15991 2011-11-14 Stan Shebs <stan@codesourcery.com>
15992 Kwok Cheung Yeung <kcy@codesourcery.com>
15994 * linux-x86-low.c (small_jump_insn): New.
15995 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15996 trampoline and error message, build a trampoline and issue a small
15997 jump instruction to it.
15998 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15999 trampoline and error message.
16000 (x86_get_min_fast_tracepoint_insn_len): New.
16001 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16002 * linux-low.h (struct linux_target_ops): Add arguments to
16003 install_fast_tracepoint_jump_pad operation, add new operation.
16004 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16006 (linux_get_min_fast_tracepoint_insn_len): New function.
16007 (linux_target_op): Add new operation.
16008 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16009 (gdb_trampoline_buffer_end): Ditto.
16010 (gdb_trampoline_buffer_error): Ditto.
16011 (struct ipa_sym_addresses): Add fields for new IPA variables.
16012 (symbol_list): Add entries for new IPA variables.
16013 (struct tracepoint): Add fields to hold the address range of the
16014 trampoline used by the tracepoint.
16015 (trampoline_buffer_head): New static variable.
16016 (trampoline_buffer_tail): Ditto.
16017 (claim_trampoline_space): New function.
16018 (have_fast_tracepoint_trampoline_buffer): New function.
16019 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16021 (install_fast_tracepoint): Ditto, also add error buffer argument.
16022 (cmd_qtminftpilen): New function.
16023 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16024 (fast_tracepoint_from_trampoline_address): New function.
16025 (fast_tracepoint_collecting): Handle trampoline as part of jump
16027 (set_trampoline_buffer_space): New function.
16028 (initialize_tracepoint): Initialize new IPA variables.
16029 * target.h (struct target_ops): Add arguments to
16030 install_fast_tracepoint_jump_pad operation, add new
16031 get_min_fast_tracepoint_insn_len operation.
16032 (target_get_min_fast_tracepoint_insn_len): New.
16033 (install_fast_tracepoint_jump_pad): Add arguments.
16034 * server.h (IPA_BUFSIZ): Define.
16035 * linux-i386-ipa.c: Include extra header files.
16036 (initialize_fast_tracepoint_trampoline_buffer): New function.
16037 (initialize_low_tracepoint): Call it.
16038 * server.h (set_trampoline_buffer_space): Declare.
16039 (claim_trampoline_space): Ditto.
16040 (have_fast_tracepoint_trampoline_buffer): Ditto.
16042 2011-11-14 Yao Qi <yao@codesourcery.com>
16044 * server.c (handle_query): Handle InstallInTrace for qSupported.
16045 * tracepoint.c (add_tracepoint): Sort list.
16046 (install_tracepoint, download_tracepoint): New.
16047 (cmd_qtdp): Call them to install and download tracepoints.
16048 (sort_tracepoints): Removed.
16049 (cmd_qtstart): Update.
16051 2011-11-14 Yao Qi <yao@codesourcery.com>
16053 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16054 * mem-break.h: Declare.
16055 * tracepoint.c (cmd_qtstart): Move some code to ...
16056 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16058 (download_tracepoints): Move some code to ...
16059 (download_tracepoint_1): ... here. New.
16061 2011-11-08 Yao Qi <yao@codesourcery.com>
16063 * remote-utils.c (relocate_instruction): A comment fix.
16065 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16067 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16068 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16069 dr_status_mirror and dr_control_mirror from debug_reg_state.
16070 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16071 (i386_initial_stuff): Remove use of deleted globals.
16072 (i386_get_thread_context, i386_set_thread_context,
16073 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16074 from debug_reg_state.
16076 2011-11-05 Yao Qi <yao@codesourcery.com>
16078 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16079 address as TPOINT's.
16081 2011-11-02 Stan Shebs <stan@codesourcery.com>
16083 * tracepoint.c (agent_mem_read_string): New function.
16084 (eval_agent_expr): Call it for tracenz.
16085 * server.c (handle_query): Report support for tracenz.
16087 2011-11-02 Yao Qi <yao@codesourcery.com>
16089 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16091 2011-11-02 Yao Qi <yao@codesourcery.com>
16093 * target.h: Fix a typo in comment.
16095 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16097 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16098 clobber the breakpoints' shadows with fast tracepoint jumps.
16099 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16100 * target.c (write_inferior_memory): Also pass MYADDR down to
16103 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16105 * configure.ac: Check support for personality routine.
16106 * configure: Regenerate.
16107 * config.in: Likewise.
16108 * linux-low.c: Include <sys/personality.h>.
16109 Define ADDR_NO_RANDOMIZE if necessary.
16110 (linux_create_inferior): Disable address space randomization when
16111 forking inferior, if requested.
16112 (linux_supports_disable_randomization): New function.
16113 (linux_target_ops): Install it.
16114 * server.h (disable_randomization): Declare.
16115 * server.c (disable_randomization): New global variable.
16116 (handle_general_set): Handle QDisableRandomization.
16117 (handle_query): Likewise for qSupported.
16118 (main): Support --disable-randomization and --no-disable-randomization
16119 command line arguments.
16120 * target.h (struct target_ops): Add supports_disable_randomization.
16121 (target_supports_disable_randomization): New macro.
16123 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16125 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16127 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16128 [!PT_GETDSBT] (target_loadmap): New definition.
16129 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16130 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16131 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16132 and PT_GETDSBT to LINUX_LOADMAP.
16133 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16134 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16136 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16138 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16139 (arm_linux_hwbp_cap): New static variable.
16140 (arm_linux_get_hwbp_cap): Replace by ...
16141 (arm_linux_init_hwbp_cap): ... this new function.
16142 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16143 (arm_linux_get_hw_watchpoint_count): Likewise.
16144 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16145 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16146 (arm_prepare_to_resume): Use perror_with_name instead of error.
16148 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16150 * linux-arm-low.c: Include <signal.h>.
16151 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16152 (struct arm_linux_hwbp_cap): New data type.
16153 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16154 (struct arm_linux_hw_breakpoint): New data type.
16155 (MAX_BPTS, MAX_WPTS): Define.
16156 (struct arch_process_info, struct arch_lwp_info): New data types.
16157 (arm_linux_get_hwbp_cap): New function.
16158 (arm_linux_get_hw_breakpoint_count): Likewise.
16159 (arm_linux_get_hw_watchpoint_count): Likewise.
16160 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16161 (arm_hwbp_control_initialize): Likewise.
16162 (arm_hwbp_control_is_enabled): Likewise.
16163 (arm_hwbp_control_is_initialized): Likewise.
16164 (arm_hwbp_control_disable): Likewise.
16165 (arm_linux_hw_breakpoint_equal): Likewise.
16166 (arm_linux_hw_point_initialize): Likewise.
16167 (struct update_registers_data): New data structure.
16168 (update_registers_callback: New function.
16169 (arm_insert_point): Likewise.
16170 (arm_remove_point): Likewise.
16171 (arm_stopped_by_watchpoint): Likewise.
16172 (arm_stopped_data_address): Likewise.
16173 (arm_new_process): Likewise.
16174 (arm_new_thread): Likewise.
16175 (arm_prepare_to_resume): Likewise.
16176 (the_low_target): Register arm_insert_point, arm_remove_point,
16177 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16178 arm_new_thread, and arm_prepare_to_resume.
16180 2011-09-15 Stan Shebs <stan@codesourcery.com>
16182 * server.h (struct emit_ops): Add compare-goto fields.
16183 * tracepoint.c (gdb_agent_op_sizes): New table.
16184 (emit_eq_goto): New function.
16185 (emit_ne_goto): New function.
16186 (emit_lt_goto): New function.
16187 (emit_le_goto): New function.
16188 (emit_gt_goto): New function.
16189 (emit_ge_goto): New function.
16190 (is_goto_target): New function.
16191 (compile_bytecodes): Recognize special cases of compare-goto
16192 combinations and call specialized emitters for them.
16193 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16194 (amd64_emit_ne_goto): New function.
16195 (amd64_emit_lt_goto): New function.
16196 (amd64_emit_le_goto): New function.
16197 (amd64_emit_gt_goto): New function.
16198 (amd64_emit_ge_goto): New function.
16199 (amd64_emit_ops): Add the new functions.
16200 (i386_emit_eq_goto): New function.
16201 (i386_emit_ne_goto): New function.
16202 (i386_emit_lt_goto): New function.
16203 (i386_emit_le_goto): New function.
16204 (i386_emit_gt_goto): New function.
16205 (i386_emit_ge_goto): New function.
16206 (i386_emit_ops): Add the new functions.
16208 2011-09-08 Stan Shebs <stan@codesourcery.com>
16210 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16211 (i386_emit_epilogue): Restore %ebx.
16213 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16215 * server.c (step_thread): Remove definition.
16216 (process_serial_event): Don't handle Hs.
16217 * server.h (step_thread): Remove declaration.
16218 * target.c (set_desired_inferior): Remove use of step_thread.
16220 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16222 * linux-low.c: Include linux-procfs.h.
16223 (linux_attach_lwp_1): Update comments.
16224 (linux_attach): Scan for existing threads when attaching to a
16225 process that is the tgid.
16226 * Makefile.in: Update dependencies.
16228 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16230 * configure.srv: Add linux-procfs.o dependencies.
16232 2011-08-14 Yao Qi <yao@codesourcery.com>
16234 * target.h (struct target_ops): Fix indent.
16235 * win32-low.c (win32_target_ops): Fix comment.
16237 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16238 Yao Qi <yao@codesourcery.com>
16240 * Makefile.in (clean): Remove tic6x-*.c files.
16241 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16242 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16243 (tic6x-c64xp-linux.c): Likewise.
16244 * configure.srv: Add support for tic6x-*-uclinux.
16245 * linux-tic6x-low.c: New.
16246 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16248 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16249 Yao Qi <yao@codesourcery.com>
16251 * target.h (struct target_ops): Add read_loadmap.
16252 * linux-low.c (struct target_loadseg): New type.
16253 (struct target_loadmap): New type.
16254 (linux_read_loadmap): New function.
16255 (linux_target_ops): Add linux_read_loadmap.
16256 * server.c (handle_query): Support qXfer:fdpic:read packet.
16257 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16260 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16262 * win32-low.c: Include <stdint.h>.
16264 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16266 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16267 to the inferior here.
16268 (i386_remove_aligned_watchpoint): Ditto.
16269 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16270 fit part of the watchpoint in the debug registers.
16271 (i386_update_inferior_debug_regs): New.
16272 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16273 registers, and only update the inferior on success.
16274 (i386_low_remove_watchpoint): Ditto.
16276 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16278 * linux-low.c (compare_ints, unique, list_threads, show_process,
16279 linux_core_of_thread): Delete.
16280 (linux_target_ops): Change linux_core_of_thread to
16281 linux_common_core_of_thread.
16282 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16283 * utils.c (malloc_failure): Change type of argument.
16284 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16285 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16286 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16287 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16288 (IPA_OBJS): Add common-utils-ipa.o.
16289 (ptid_h, linux_osdata_h): New macros.
16290 (server_h): Add common/common-utils.h, common/xml-utils.h,
16291 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16293 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16294 ptid.o, buffer.o): New rules.
16295 (linux-low.o): Add common/linux-osdata.h as a dependency.
16296 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16297 * configure.ac: Add AC_HEADER_DIRENT check.
16298 * config.in: Regenerate.
16299 * configure: Regenerate.
16300 * remote-utils.c (xml_escape_text): Delete.
16301 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16302 buffer_xml_printf): Move to common/buffer.c.
16303 * server.c (main): Remove call to initialize_inferiors.
16304 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16305 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16306 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16307 internal_error, gdb_assert, gdb_assert_fail): Delete.
16308 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16309 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16311 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16312 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16313 initialize_inferiors): Delete.
16315 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16317 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16320 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16322 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16324 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16326 2011-05-26 Yao Qi <yao@codesourcery.com>
16328 * Makefile.in (thread-db.o): Track dependence to
16329 common/gdb_thread_db.h.
16330 * thread-db.c: include gdb_thread_db.h from right place.
16332 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16334 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16335 __FILE__ and __LINE__ to internal_error.
16337 2011-05-13 Doug Evans <dje@google.com>
16339 * thread-db.c (try_thread_db_load_from_sdir): New function.
16340 (try_thread_db_load_from_dir): New function.
16341 (thread_db_load_search): Handle $sdir, ignore $pdir.
16342 Remove trying of system directories if search of
16343 libthread-db-search-path fails, that is now done via $sdir.
16345 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16347 * server.c (handle_query): Add EnableDisableTracepoints to the list
16348 of supported features.
16349 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16351 (cmd_qtenable_disable): New.
16352 (cmd_qtstart): Install tracepoints even if disabled.
16353 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16354 receiving a QTEnable or QTDisable packet.
16355 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16356 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16358 (gdb_probe): Skip data collection if static tracepoint is disabled.
16360 2011-05-10 Doug Evans <dje@google.com>
16362 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16364 2011-05-04 Doug Evans <dje@google.com>
16366 * linux-low.c (linux_join): Skip process lookup.
16367 * spu-low.c (spu_join): Ditto.
16368 * server.c (join_inferiors_callback): Delete.
16369 (process_serial_event): For 'D' packet (detach) call join_inferior
16372 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16374 * README: Don't mention xscale*-*-linux*.
16375 * configure.srv (xscale*-*-linux*): Don't handle target.
16377 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16379 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16381 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16382 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16383 (i386_emit_void_call_2): Likewise.
16385 2011-04-26 Yao Qi <yao@codesourcery.com>
16387 * linux-low.c: Move common macros to linux-ptrace.h.
16388 Include linux-ptrace.h.
16389 * Makefile.in (linux_ptrace_h): New.
16390 (linux-low.o): Depends on linux-ptrace.h.
16392 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16394 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16395 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16396 (remote_prepare): New function with most of the TCP code from ...
16397 (remote_open): ... here. Detect PORT here unconditionally. Move also
16398 setting transport_is_reliable.
16399 * server.c (run_once): New variable.
16400 (gdbserver_usage): Document it.
16401 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16402 the first run if RUN_ONCE.
16403 * server.h (run_once, remote_prepare): New declarations.
16405 2011-04-19 Tom Tromey <tromey@redhat.com>
16407 * win32-low.c (handle_load_dll): Remove duplicate "the".
16409 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16411 Remove support for old Cygwin 1.5 versions.
16412 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16413 function to avoid warning.
16414 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16417 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16419 * gdbserver/server.h (Macro _): Define it if not available.
16421 2011-03-14 Michael Snyder <msnyder@vmware.com>
16423 * hostio.c (handle_close): Remove unnecessary null test.
16425 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16427 * Makefile.in (maintainer-clean realclean distclean): Remove
16428 "make ... subdir_do" command.
16430 2011-03-10 Michael Snyder <msnyder@vmware.com>
16432 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16434 * server.c (handle_v_run): Free alloced buffer on early return.
16436 2011-03-09 Yao Qi <yao@codesourcery.com>
16439 2011-03-04 Yao Qi <yao@codesourcery.com>
16441 * Makefile.in: Remove GNU make feature --directory.
16443 2011-03-05 Yao Qi <yao@codesourcery.com>
16445 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16446 (subdir_do): New make target. Copied from gdb/Makefile.
16447 (maintainer-clean, realclean, distclean, clean): Call corresponding
16448 make targets in common/Makefile.
16450 2011-02-11 Yao Qi <yao@codesourcery.com>
16452 * configure.ac: Call AC_PROG_RANLIB.
16453 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16454 * configure: Regenerate.
16456 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16458 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16460 2011-03-06 Yao Qi <yao@codesourcery.com>
16462 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16464 2011-03-05 Yao Qi <yao@codesourcery.com>
16466 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16467 (subdir_do): New make target. Copied from gdb/Makefile.
16468 (maintainer-clean, realclean, distclean, clean): Call corresponding
16469 make targets in common/Makefile.
16471 2011-03-04 Yao Qi <yao@codesourcery.com>
16473 * Makefile.in: Remove GNU make feature --directory.
16475 2011-03-04 Michael Snyder <msnyder@vmware.com>
16477 * server.c (queue_stop_reply): Call xmalloc not malloc.
16479 2011-03-02 Michael Snyder <msnyder@vmware.com>
16481 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16483 2011-02-28 Michael Snyder <msnyder@vmware.com>
16485 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16486 (cmd_qtframe): Ditto.
16487 (cmd_qtbuffer): Ditto.
16488 (cmd_bigqtbuffer): Ditto.
16490 * utils.c (decimal2str): Initialize 'width' to nine, then
16491 don't mess with it.
16493 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16495 * hostio.c (require_data): Free *data, not data.
16497 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16499 * hostio.c (require_data): Use free, not xfree.
16501 2011-02-27 Michael Snyder <msnyder@vmware.com>
16503 * server.c (handle_query): Discard unused value.
16505 * hostio.c (require_data): Free malloc memory before returning
16508 2011-02-26 Michael Snyder <msnyder@vmware.com>
16510 * linux-low.c (list_threads): Call closedir for dirent.
16512 2011-02-27 Michael Snyder <msnyder@vmware.com>
16514 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16515 a case statement falls through.
16517 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16519 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16522 2011-02-26 Michael Snyder <msnyder@vmware.com>
16524 * utils.c (decimal2str): Eliminate dead code and dead param.
16525 (pulongest): Drop dead param from call to decimal2str.
16528 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16530 Revert the following patch (not approved yet):
16531 2011-02-21 Hui Zhu <teawater@gmail.com>
16532 * tracepoint.c (tp_printf): New function.
16533 (eval_agent_expr): Handle gdb_agent_op_printf.
16535 2011-02-21 Hui Zhu <teawater@gmail.com>
16537 * tracepoint.c (tp_printf): New function.
16538 (eval_agent_expr): Handle gdb_agent_op_printf.
16540 2011-02-18 Tom Tromey <tromey@redhat.com>
16542 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16543 (tracepoint.o): Likewise.
16544 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16545 (gdb_agent_op_names): Likewise.
16547 2011-02-18 Tom Tromey <tromey@redhat.com>
16549 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16550 gdb_agent_op_rot>: New constants.
16551 (gdb_agent_op_names): Add pick and roll.
16552 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16555 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16557 * aclocal.m4: Regenerated with aclocal-1.11.1.
16559 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16561 * server.c (handle_qxfer_traceframe_info): New.
16562 (qxfer_packets): Register "traceframe-info".
16563 (handle_query): Report support for qXfer:traceframe-info:read+.
16564 * tracepoint.c (match_blocktype): New.
16565 (traceframe_find_block_type): Rename to ...
16566 (traceframe_walk_blocks): ... this. Add callback filter argument,
16568 (traceframe_find_block_type): New, reimplemented on top of
16569 traceframe_walk_blocks.
16570 (build_traceframe_info_xml): New.
16571 (traceframe_read_info): New.
16572 * server.h (traceframe_read_info): Declare.
16574 2011-02-11 Yao Qi <yao@codesourcery.com>
16576 * configure.ac: Call AC_PROG_RANLIB.
16577 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16578 * configure: Regenerate.
16580 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16582 * server.c (gdb_read_memory): Change return semantics to allow
16584 (handle_search_memory_1): Adjust.
16585 (process_serial_event) <'m' packet>: Handle partial transfers.
16586 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16588 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16590 * regcache.c (init_register_cache): Initialize
16591 regcache->register_status.
16592 (free_register_cache): Release regcache->register_status.
16593 (regcache_cpy): Copy register_status.
16594 (registers_to_string): Print 'x's for unavailable registers.
16595 (supply_register): Mark the register's status valid or
16596 unavailable, depending on whether a buffer was passed in or not.
16597 (supply_register_zeroed): New.
16598 (supply_regblock): Mark the registers' status valid or
16599 unavailable, depending on whether a buffer was passed in or not.
16600 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16601 (struct regcache): New `register_status' field.
16602 (supply_register_zeroed): Declare.
16603 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16604 supply_register_zeroed, rather than passing a NULL buffer to
16606 * tracepoint.c (fetch_traceframe_registers): Update comment.
16608 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16610 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16613 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16615 * server.h (decode_xfer_write): Change prototype.
16616 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16617 and don't extract the annex here.
16618 * server.c (decode_xfer_read): Remove `annex' parameter,
16619 and don't extract the annex here.
16620 (decode_xfer): New.
16621 (struct qxfer): New.
16622 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16623 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16624 (handle_qxfer_statictrace): New functions, abstracted out from
16625 handle_query, and made to use the struct qxfer interface.
16626 (handle_threads_qxfer_proper): Rename to ...
16627 (handle_qxfer_threads_proper): ... this.
16628 (handle_threads_qxfer): Rename to ...
16629 (handle_qxfer_threads): ... this. Adjust.
16630 (qxfer_packets): New array.
16631 (handle_qxfer): New function.
16632 (handle_query): Use handle_qxfer.
16634 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16636 * gdbreplay.c: Shorten lines of >= 80 columns.
16637 * linux-low.c: Ditto.
16638 * linux-ppc-low.c: Ditto.
16639 * linux-s390-low.c: Ditto.
16640 * linux-sparc-low.c: Ditto.
16641 * linux-x86-low.c: Ditto.
16642 * linux-xtensa-low.c: Ditto.
16643 * mem-break.c: Ditto.
16644 * nto-low.c: Ditto.
16645 * regcache.h: Ditto.
16646 * remote-utils.c: Ditto.
16649 * thread-db.c: Ditto.
16650 * tracepoint.c: Ditto.
16652 * win32-low.h: Ditto.
16654 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16656 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16659 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16661 * server.c (gdbserver_version): Update copyright year in version
16663 * gdbreplay.c (gdbreplay_version): Ditto.
16665 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16667 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16668 * linux-bfin-low.c: New file.
16669 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16670 PT_DATA_ADDR for BFIN targets.
16671 * Makefile.in (SFILES): Add linux-bfin-low.c.
16672 (clean): Remove reg-bfin.c.
16673 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16674 * README: Mention supported Blackfin targets.
16676 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16678 * .gitignore: New file.
16680 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16682 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16684 2010-10-22 Jie Zhang <jie@codesourcery.com>
16686 * Makefile.in: Add FLAGS_TO_PASS variable.
16687 (install): Remove dependency of install-only and recursively
16688 invoke make for install-only.
16690 2010-10-04 Doug Evans <dje@google.com>
16692 * Makefile.in (uninstall): Use $(DESTDIR).
16694 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16698 * linux-x86-low.c (compat_siginfo_from_siginfo)
16699 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16700 si_code is < 0. Check for si_code == SI_TIMER before checking for
16703 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16705 * lynx-i386-low.c: New file.
16706 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16708 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16710 * lynx-low.c (ptrace_request_to_str): Remove handling for
16711 request values that have been removed in LynxOS 5.x.
16713 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16715 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16718 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16720 * configure.ac: Add --enable-inprocess-agent option.
16721 * configure: Rebuilt.
16723 2010-09-06 Yao Qi <yao@codesourcery.com>
16725 * linux-low.c (linux_kill): Remove unused variable.
16726 (linux_stabilize_threads): Likewise.
16727 * server.c (start_inferior): Likewise.
16728 (queue_stop_reply_callback): Likewise.
16729 * tracepoint.c (do_action_at_tracepoint): Likewise.
16731 2010-09-06 Yao Qi <yao@codesourcery.com>
16733 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16736 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16738 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16740 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16742 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16745 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16747 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16748 gdbserver/lynx-ppc-low.c: New files.
16749 * Makefile.in (lynx_low_h): New variable.
16750 (lynx-low.o, lynx-ppc-low.o): New rules.
16751 * configure.ac: On LynxOS, link with -lnetinet.
16752 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16753 * configure: regenerate.
16755 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16757 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16758 * configure.ac: Add check for vasprintf and vsnprintf.
16759 * configure, config.in: Regenerate.
16760 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16762 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16764 * gdbreplay.c: Move include of alloca.h up, next to include of
16766 * server.h: Add include of malloc.h.
16767 * mem-break.c: Remove include of malloc.h.
16768 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16770 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16772 * Makefile.in (memmem.o): Build with -Wno-error.
16774 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16776 * utils.c (xsnprintf): Make non-static.
16777 * server.h: Add xsnprintf declaration.
16778 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16779 replace calls to snprintf by calls to xsnprintf throughout.
16781 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16783 * configure.ac: Add configure check for alloca.
16784 * configure, config.in: Regenerate.
16785 * server.h: Include alloca.h if it exists.
16786 * gdbreplay.c: Include alloca.h if it exists.
16788 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16790 * linux-low.c (__SIGRTMIN): Define if not already defined.
16791 (linux_create_inferior): Check for __ANDROID__ rather than
16793 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16794 are already deferred.
16795 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16796 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16797 stopped and already has a pending signal to report.
16798 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16799 a pending signal to report or is moving out of a jump pad.
16800 (linux_init_signals): Check for __ANDROID__ rather than
16803 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16805 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16806 debug_threads check. Avoid a linear search when not doing debug
16809 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16811 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16812 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16813 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16814 (process_event): Change local fd's type to gdb_fildes_t.
16815 (create_file_handler): Adjust prototype.
16816 (delete_file_handler): Adjust prototype.
16817 (handle_file_event): Adjust prototype. Use pfildes.
16818 (create_file_event): Adjsut prototype.
16819 * remote-utils.c (remote_desc, listen_desc): Change type to
16821 * server.h: New gdb_fildes_t typedef.
16822 [USE_WIN32API]: Include winsock2.h.
16823 (delete_file_handler, add_file_handler): Adjust prototypes.
16824 (pfildes): Declare.
16825 * utils.c (pfildes): New.
16827 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16829 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16830 * configure: Regenerate.
16832 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16834 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16835 (linux_done_accessing_memory): ... this.
16836 (linux_target_ops): Adjust.
16837 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16838 * nto-low.c (nto_target_ops): Adjust comment.
16839 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16840 * spu-low.c (spu_target_ops): Adjust comment.
16841 * target.h (target_ops): Rename unprepare_to_access_memory field
16842 to done_accessing_memory.
16843 (unprepare_to_access_memory): Rename to ...
16844 (done_accessing_memory): ... this.
16846 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16848 * linux-low.c (linux_prepare_to_access_memory): New.
16849 (linux_unprepare_to_access_memory): New.
16850 (linux_target_ops): Install them.
16851 * server.c (read_memory): Rename to ...
16852 (gdb_read_memory): ... this. Use
16853 prepare_to_access_memory/prepare_to_access_memory.
16854 (write_memory): Rename to ...
16855 (gdb_write_memory): ... this. Use
16856 prepare_to_access_memory/prepare_to_access_memory.
16857 (handle_search_memory_1): Adjust.
16858 (process_serial_event): Adjust.
16859 * target.h (struct target_ops): New fields
16860 prepare_to_access_memory and unprepare_to_access_memory.
16861 (prepare_to_access_memory, unprepare_to_access_memory): New.
16862 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16863 prepare_to_access_memory/prepare_to_access_memory.
16864 * nto-low.c (nto_target_ops): Adjust.
16865 * spu-low.c (spu_target_ops): Adjust.
16866 * win32-low.c (win32_target_ops): Adjust.
16868 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16870 * Makefile.in (WARN_CFLAGS): Get it from configure.
16871 (WERROR_CFLAGS): New.
16872 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16873 * configure.ac: Introduce --enable-werror, which adds -Werror to
16874 the compiler command line. Enabled by default. Disable with
16875 --disable-werror. Add -Wdeclaration-after-statement
16876 Wpointer-arith and -Wformat-nonliteral to warning flags.
16877 * configure: Regenerate.
16879 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16881 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16883 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16885 * gdbreplay.c (remote_error): New.
16887 (expect): Use gdbchar. Check for error reading from GDB.
16888 Clarify sync error output.
16889 (play): Check for errors writing to GDB.
16890 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16891 * remote-utils.c (getpkt): Check for errors writing to the remote
16894 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16896 * linux-low.c (linux_wait_1): Move non-debugging code out of
16897 `debug_threads' control.
16899 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16901 * linux-low.c (linux_wait_1): Don't set last_status here.
16902 * server.c (push_event, queue_stop_reply_callback): Assert we're
16903 not pushing a TARGET_WAITKIND_IGNORE event.
16904 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16905 (myresume, handle_target_event): Set the thread's last_resume_kind
16906 and last_status from the target returned status.
16908 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16912 * linux-x86-low.c (update_debug_registers_callback): New.
16913 (i386_dr_low_set_addr): Use it.
16914 (i386_dr_low_get_addr): New.
16915 (i386_dr_low_set_control): Use update_debug_registers_callback.
16916 (i386_dr_low_get_control): New.
16917 (i386_dr_low_get_status): Adjust.
16918 * linux-low.c (linux_stop_lwp): New.
16919 * linux-low.h (linux_stop_lwp): Declare.
16921 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16922 argument instead of a i386_debug_reg_state.
16923 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16924 a i386_debug_reg_state.
16925 (i386_insert_aligned_watchpoint): Adjust.
16926 (i386_remove_aligned_watchpoint): Adjust.
16927 (i386_low_stopped_data_address): Read the debug registers from the
16928 inferior instead of from the mirrors.
16929 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16930 (i386_dr_low_get_addr): Declare.
16931 (i386_dr_low_get_control): Declare.
16932 (i386_dr_low_get_status): Change prototype.
16934 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16935 (i386_dr_low_get_addr): New.
16936 (i386_dr_low_get_control): New.
16937 (i386_dr_low_get_status): Adjust prototype. Return
16939 (i386_initial_stuff): Clear dr_status_mirror and
16941 (i386_get_thread_context): Adjust.
16942 (i386_set_thread_context): Adjust.
16943 (i386_thread_added): Adjust.
16945 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16947 * linux-low.h (linux_thread_area): Delete declaration.
16949 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16951 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16952 after its termination.
16954 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16956 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16957 (gdb_wants_all_stopped): Delete.
16958 (linux_wait_1): Don't call them.
16959 * server.c (handle_v_cont): Tag all threads as want-stopped.
16960 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16961 stopped as "client-wants-stopped".
16963 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16965 * Makefile.in (signals_h): New.
16966 (server_h): Depend on it.
16967 (server.o): Don't depend on $(signals_def).
16968 (signals.o): Depend on $(signals_def).
16970 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16972 * Makefile.in (signals_def): New.
16973 (server_h): Append include/gdb/signals.h and signals_def.
16974 (server.o): Append signals_def.
16976 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16978 * server.c (handle_target_event): Use target_signal_to_host for
16979 resume_info.sig initialization.
16980 * target.h (struct thread_resume) <sig>: New comment.
16982 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16984 * server.c (handle_query): strcpy() the returned string from paddress()
16985 instead of sprintf().
16986 * utils.c (paddress): Return phex_nz().
16988 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16990 * server.c (handle_v_cont): Call mourn_inferior if process
16992 (myresume): Likewise.
16994 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16996 Static tracepoints, and integration with UST.
16998 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16999 * mem-break.c (uninsert_all_breakpoints)
17000 (reinsert_all_breakpoints): New.
17001 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17002 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17003 (gdb_agent_ust_loaded, helper_thread_id)
17004 (gdb_agent_helper_thread_id): New macros.
17005 (struct ipa_sym_addresses): Add addr_ust_loaded,
17006 addr_helper_thread_id, addr_cmd_buf.
17007 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17008 (in_process_agent_loaded_ust): New.
17009 (write_e_ust_not_loaded): New.
17010 (maybe_write_ipa_ust_not_loaded): New.
17011 (struct collect_static_trace_data_action): New.
17012 (enum tracepoint_type) <static_tracepoint>: New.
17013 (struct tracepoint) <handle>: Mention static tracepoints.
17014 (struct static_tracepoint_ctx): New.
17015 (CMD_BUF_SIZE): New.
17016 (add_tracepoint_action): Handle static tracepoint actions.
17017 (unprobe_marker_at): New.
17018 (clear_installed_tracepoints): Handle static tracepoints.
17019 (cmd_qtdp): Handle static tracepoints.
17020 (probe_marker_at): New.
17021 (cmd_qtstart): Handle static tracepoints.
17022 (response_tracepoint): Handle static tracepoints.
17023 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17024 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17025 (get_context_regcache): Handle static tracepoints.
17026 (do_action_at_tracepoint): Handle static tracepoint actions.
17027 (traceframe_find_block_type): Handle static trace data blocks.
17028 (traceframe_read_sdata): New.
17029 (download_tracepoints): Download static tracepoint actions.
17030 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17031 (GDB_PROBE_NAME): New.
17033 (GET_UST_SYM): New.
17036 (ust_marker_to_static_tracepoint): New.
17038 (collect_ust_data_at_tracepoint): New.
17039 (gdb_ust_probe): New.
17040 (UNIX_PATH_MAX, SOCK_DIR): New.
17041 (gdb_ust_connect_sync_socket): New.
17042 (resume_thread, stop_thread): New.
17043 (run_inferior_command): New.
17044 (init_named_socket): New.
17045 (gdb_ust_socket_init): New.
17046 (cstr_to_hexstr): New.
17048 (first_marker, next_marker): New.
17049 (response_ust_marker): New.
17050 (cmd_qtfstm, cmd_qtsstm): New.
17051 (unprobe_marker_at, probe_marker_at): New.
17052 (cmd_qtstmat, gdb_ust_thread): New.
17053 (gdb_ust_init): New.
17054 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17055 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17056 (ST_REGENTRY): New.
17057 (x86_64_st_collect_regmap): New.
17058 (X86_64_NUM_ST_COLLECT_GREGS): New.
17059 (AMD64_RIP_REGNUM): New.
17060 (supply_static_tracepoint_registers): New.
17061 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17062 (ST_REGENTRY): New.
17063 (i386_st_collect_regmap): New.
17064 (i386_NUM_ST_COLLECT_GREGS): New.
17065 (supply_static_tracepoint_registers): New.
17066 * server.c (handle_query): Handle qXfer:statictrace:read.
17067 <qSupported>: Report support for StaticTracepoints, and
17068 qXfer:statictrace:read features.
17069 * server.h (traceframe_read_sdata)
17070 (supply_static_tracepoint_registers): Declare.
17071 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17072 (unpack_varlen_hex): Include in IPA build.
17073 * Makefile.in (ustlibs, ustinc): New.
17074 (IPA_OBJS): Add remote-utils-ipa.o.
17075 ($(IPA_LIB)): Link -ldl and -lpthread.
17077 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17078 * config.in, configure: Regenerate.
17080 2010-06-20 Ian Lance Taylor <iant@google.com>
17081 Pedro Alves <pedro@codesourcery.com>
17083 * linux-x86-low.c (always_true): Delete.
17084 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17085 trying to fool the compiler with always_true.
17087 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17089 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17090 conditions in gdbserver.
17092 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17094 * spu-low.c (spu_read_memory): Wrap around local store limit.
17095 (spu_write_memory): Likewise.
17097 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17099 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17100 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17102 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17104 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17105 uses with LONGEST uses.
17107 2010-06-14 Stan Shebs <stan@codesourcery.com>
17108 Pedro Alves <pedro@codesourcery.com>
17112 * linux-x86-low.c: Include limits.h.
17114 (always_true): New.
17117 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17118 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17119 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17120 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17121 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17122 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17123 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17124 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17125 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17126 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17127 (amd64_emit_void_call_2): New.
17128 (amd64_emit_ops): New.
17129 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17130 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17131 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17132 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17133 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17134 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17135 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17136 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17137 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17138 (i386_emit_stack_adjust, i386_emit_int_call_1)
17139 (i386_emit_void_call_2): New.
17140 (i386_emit_ops): New.
17141 (x86_emit_ops): New.
17142 (the_low_target): Install x86_emit_ops.
17143 * server.h (struct emit_ops): New.
17144 (get_raw_reg_func_addr): Declare.
17145 (current_insn_ptr, emit_error): Declare.
17146 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17147 (set_trace_state_variable_value): New defines.
17148 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17149 addr_get_trace_state_variable_value and
17150 addr_set_trace_state_variable_value.
17151 (symbol_list): New fields for get_raw_reg,
17152 get_trace_state_variable_value and set_trace_state_variable_value.
17153 (condfn): New typedef.
17154 (struct tracepoint): New field `compiled_cond'.
17155 (do_action_at_tracepoint): Clear compiled_cond.
17156 (get_trace_state_variable_value, set_trace_state_variable_value):
17158 (condition_true_at_tracepoint): If there's a compiled condition,
17160 (current_insn_ptr, emit_error): New globals.
17161 (struct bytecode_address): New.
17162 (get_raw_reg_func_addr): New.
17163 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17164 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17165 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17166 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17167 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17168 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17169 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17170 (compile_tracepoint_condition, compile_bytecodes): New.
17171 * target.h (emit_ops): Forward declare.
17172 (struct target_ops): New field emit_ops.
17173 (target_emit_ops): New.
17174 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17175 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17176 * linux-low.c (linux_emit_ops): New.
17177 (linux_target_ops): Install it.
17178 * linux-low.h (struct linux_target_ops): New field emit_ops.
17180 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17182 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17183 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17185 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17186 Stan Shebs <stan@codesourcery.com>
17188 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17189 (all): Depend on $(extra_libraries).
17190 (install-only): Install the IPA.
17191 (IPA_OBJS, IPA_LIB): New.
17192 (clean): Remove the IPA lib.
17193 (IPAGENT_CFLAGS): New.
17194 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17195 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17196 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17197 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17198 * configure.ac: Check for atomic builtins support in the compiler.
17199 (IPA_DEPFILES, extra_libraries): Define.
17200 * configure.srv (ipa_obj): Add description.
17201 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17202 (i[34567]86-*-linux*): Set ipa_obj.
17203 (x86_64-*-linux*): Set ipa_obj.
17204 * linux-low.c (stabilizing_threads): New.
17205 (supports_fast_tracepoints): New.
17206 (linux_detach): Stabilize threads before detaching.
17207 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17208 the lwp is either not stabilizing, or is moving out of a jump pad.
17209 (linux_fast_tracepoint_collecting): New.
17210 (maybe_move_out_of_jump_pad): New.
17211 (enqueue_one_deferred_signal): New.
17212 (dequeue_one_deferred_signal): New.
17213 (linux_wait_for_event_1): If moving out of a jump pad, defer
17214 pending signals to later.
17215 (linux_stabilize_threads): New.
17216 (linux_wait_1): Check if threads need moving out of jump pads, and
17218 (stuck_in_jump_pad_callback): New.
17219 (move_out_of_jump_pad_callback): New.
17220 (lwp_running): New.
17221 (linux_resume_one_lwp): Handle moving out of jump pads.
17222 (linux_set_resume_request): Dequeue deferred signals.
17223 (need_step_over_p): Also step over fast tracepoint jumps.
17224 (start_step_over): Also uninsert fast tracepoint jumps.
17225 (finish_step_over): Also reinsert fast tracepoint jumps.
17226 (linux_install_fast_tracepoint_jump): New.
17227 (linux_target_ops): Install linux_stabilize_threads and
17228 linux_install_fast_tracepoint_jump_pad.
17229 * linux-low.h (linux_target_ops) <get_thread_area,
17230 install_fast_tracepoint_jump_pad>: New fields.
17231 (struct lwp_info) <collecting_fast_tracepoint,
17232 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17233 (linux_get_thread_area): Declare.
17234 * linux-x86-low.c (jump_insn): New.
17235 (x86_get_thread_area): New.
17236 (append_insns): New.
17237 (push_opcode): New.
17238 (amd64_install_fast_tracepoint_jump_pad): New.
17239 (i386_install_fast_tracepoint_jump_pad): New.
17240 (x86_install_fast_tracepoint_jump_pad): New.
17241 (the_low_target): Install x86_get_thread_area and
17242 x86_install_fast_tracepoint_jump_pad.
17243 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17244 (struct fast_tracepoint_jump): New.
17245 (fast_tracepoint_jump_insn): New.
17246 (fast_tracepoint_jump_shadow): New.
17247 (find_fast_tracepoint_jump_at): New.
17248 (fast_tracepoint_jump_here): New.
17249 (delete_fast_tracepoint_jump): New.
17250 (set_fast_tracepoint_jump): New.
17251 (uninsert_fast_tracepoint_jumps_at): New.
17252 (reinsert_fast_tracepoint_jumps_at): New.
17253 (set_breakpoint_at): Use write_inferior_memory.
17254 (uninsert_raw_breakpoint): Use write_inferior_memory.
17255 (check_mem_read): Mask out fast tracepoint jumps.
17256 (check_mem_write): Mask out fast tracepoint jumps.
17257 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17258 (set_fast_tracepoint_jump): Declare.
17259 (delete_fast_tracepoint_jump)
17260 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17261 (reinsert_fast_tracepoint_jumps_at): Declare.
17262 * regcache.c: Don't compile many functions when building the
17263 in-process agent library.
17264 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17265 the register buffer in the heap.
17266 (free_register_cache): If the register buffer isn't owned by the
17267 regcache, don't free it.
17268 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17269 pre-existing register caches.
17270 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17272 (convert_ascii_to_int): : Constify `from' parameter type.
17273 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17274 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17275 the needed buffer in-place.
17276 (relocate_instruction): New.
17277 * server.c (handle_query) <qSymbols>: If the target supports
17278 tracepoints, give it a chance of looking up symbols. Report
17279 support for fast tracepoints.
17280 (handle_status): Stabilize threads.
17281 (process_serial_event): Adjust.
17282 * server.h (struct fast_tracepoint_jump): Forward declare.
17283 (struct process_info) <fast_tracepoint_jumps>: New field.
17284 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17285 (decode_X_packet, decode_M_packet): Adjust.
17286 (relocate_instruction): Declare.
17287 (in_process_agent_loaded): Declare.
17288 (tracepoint_look_up_symbols): Declare.
17289 (struct fast_tpoint_collect_status): Declare.
17290 (fast_tracepoint_collecting): Declare.
17291 (force_unlock_trace_buffer): Declare.
17292 (handle_tracepoint_bkpts): Declare.
17293 (initialize_low_tracepoint)
17294 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17295 * target.h (struct target_ops) <stabilize_threads,
17296 install_fast_tracepoint_jump_pad>: New fields.
17297 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17298 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17299 [HAVE_STDINT_H]: Include stdint.h.
17300 (trace_debug_1): Rename to ...
17301 (trace_vdebug): ... this.
17302 (trace_debug): Rename to ...
17303 (trace_debug_1): ... this. Add `level' parameter.
17304 (trace_debug): New.
17305 (ATTR_USED, ATTR_NOINLINE): New.
17306 (IP_AGENT_EXPORT): New.
17307 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17308 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17309 (about_to_request_buffer_space, trace_buffer_is_full)
17310 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17311 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17312 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17313 (traceframe_write_count, traceframes_created)
17314 (trace_state_variables)
17315 New renaming defines.
17316 (struct ipa_sym_addresses): New.
17317 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17318 (symbol_list): New.
17319 (ipa_sym_addrs): New.
17320 (all_tracepoint_symbols_looked_up): New.
17321 (in_process_agent_loaded): New.
17322 (write_e_ipa_not_loaded): New.
17323 (maybe_write_ipa_not_loaded): New.
17324 (tracepoint_look_up_symbols): New.
17325 (debug_threads) [IN_PROCESS_AGENT]: New.
17326 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17327 (UNKNOWN_SIDE_EFFECTS): New.
17328 (stop_tracing): New.
17329 (flush_trace_buffer): New.
17330 (stop_tracing_bkpt): New.
17331 (flush_trace_buffer_bkpt): New.
17332 (read_inferior_integer): New.
17333 (read_inferior_uinteger): New.
17334 (read_inferior_data_pointer): New.
17335 (write_inferior_data_pointer): New.
17336 (write_inferior_integer): New.
17337 (write_inferior_uinteger): New.
17338 (struct collect_static_trace_data_action): Delete.
17339 (enum tracepoint_type): New.
17340 (struct tracepoint) <type>: New field `type'.
17341 <actions_str, step_actions, step_actions_str>: Only include in
17343 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17344 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17345 (tracepoints): Use IP_AGENT_EXPORT.
17346 (last_tracepoint): Don't include in the IPA.
17347 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17348 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17349 (alloced_trace_state_variables): New.
17350 (trace_state_variables): Use IP_AGENT_EXPORT.
17351 (traceframe_t): Delete unused variable.
17352 (circular_trace_buffer): Don't include in the IPA.
17353 (trace_buffer_start): Delete.
17354 (struct trace_buffer_control): New.
17355 (trace_buffer_free): Delete.
17356 (struct ipa_trace_buffer_control): New.
17357 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17358 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17360 (trace_buffer_ctrl): New.
17361 (TRACE_BUFFER_CTRL_CURR): New.
17362 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17363 Reimplement as macros.
17364 (trace_buffer_wrap): Delete.
17365 (traceframe_write_count, traceframe_read_count)
17366 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17367 (struct tracepoint_hit_ctx) <type>: New field.
17368 (struct fast_tracepoint_ctx): New.
17369 (memory_barrier): New.
17371 (record_tracepoint_error): Update atomically in the IPA.
17372 (clear_inferior_trace_buffer): New.
17373 (about_to_request_buffer_space): New.
17374 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17375 updating the same buffer.
17376 (add_tracepoint): Default the tracepoint's type to trap
17377 tracepoint, and orig_size to -1.
17378 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17379 internal variables.
17380 (create_trace_state_variable): New parameter `gdb'. Handle it.
17381 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17382 (cmd_qtdp): Handle fast tracepoints.
17383 (cmd_qtdv): Adjust.
17384 (max_jump_pad_size): New.
17385 (gdb_jump_pad_head): New.
17386 (get_jump_space_head): New.
17387 (claim_jump_space): New.
17388 (sort_tracepoints): New.
17389 (MAX_JUMP_SIZE): New.
17390 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17392 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17393 support. Upload fast traceframes, and delete internal IPA
17395 (stop_tracing_handler): New.
17396 (flush_trace_buffer_handler): New.
17397 (cmd_qtstop): Upload fast tracepoints.
17398 (response_tracepoint): Handle fast tracepoints.
17399 (tracepoint_finished_step): Upload fast traceframes. Set the
17400 tracepoint hit context's tracepoint type.
17401 (handle_tracepoint_bkpts): New.
17402 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17403 type. Add comment about fast tracepoints.
17404 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17405 non-existing action_str field.
17406 (get_context_regcache): Handle fast tracepoints.
17407 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17409 (fast_tracepoint_from_jump_pad_address): New.
17410 (fast_tracepoint_from_ipa_tpoint_address): New.
17411 (collecting_t): New.
17412 (force_unlock_trace_buffer): New.
17413 (fast_tracepoint_collecting): New.
17415 (gdb_collect): New.
17416 (write_inferior_data_ptr): New.
17417 (target_tp_heap): New.
17418 (target_malloc): New.
17419 (download_agent_expr): New.
17421 (download_tracepoints): New.
17422 (download_trace_state_variables): New.
17423 (upload_fast_traceframes): New.
17424 (IPA_FIRST_TRACEFRAME): New.
17425 (IPA_NEXT_TRACEFRAME_1): New.
17426 (IPA_NEXT_TRACEFRAME): New.
17427 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17428 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17429 (gdb_jump_pad_buffer_end): New.
17430 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17431 (initialize_tracepoint): Adjust.
17432 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17433 buffer. Initialize the low module.
17434 * utils.c (PREFIX, TOOLNAME): New.
17435 (malloc_failure): Use PREFIX.
17436 (error): In the IPA, an error causes an exit.
17437 (fatal, warning): Use PREFIX.
17438 (internal_error): Use TOOLNAME.
17439 (NUMCELLS): Increase to 10.
17440 * configure, config.in: Regenerate.
17442 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17444 * server.c (handle_query) <qSupported>: Do two passes over the
17445 qSupported string to avoid nesting strtok.
17447 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17449 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17451 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17452 -Wl,--dynamic-list.
17453 * configure: Regenerate.
17454 * proc-service.list: New.
17456 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17458 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17461 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17463 * gdbreplay.c (remote_open): Check error return from socket() call by
17464 its equality to -1 not by it being negative.
17465 * remote-utils.c (remote_open): Likewise.
17467 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17469 * config.h: Regenerate.
17471 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17473 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17474 doesn't provide PTRACE_GET_THREAD_AREA.
17476 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17478 * linux-m68k-low.c: Include <asm/ptrace.h>
17479 (ps_get_thread_area): Implement.
17481 2010-05-03 Doug Evans <dje@google.com>
17483 * event-loop.c (struct callback_event): New struct.
17484 (callback_list): New global.
17485 (append_callback_event, delete_callback_event): New functions.
17486 (process_callback): New function.
17487 (start_event_loop): Call it.
17488 * remote-utils.c (NOT_SCHEDULED): Define.
17489 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17490 moved out of readchar.
17491 (readchar): Rewrite. Call reschedule before returning.
17492 (reset_readchar): New function.
17493 (remote_close): Call it.
17494 (process_remaining, reschedule): New functions.
17495 * server.h (callback_handler_func): New typedef.
17496 (append_callback_event, delete_callback_event): Declare.
17498 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17500 * proc-service.c (ps_pglobal_lookup): Use
17501 thread_db_look_up_one_symbol.
17502 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17503 parameter. Use it instead of all_symbols_looked_up.
17504 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17506 (all_symbols_looked_up): Don't declare.
17507 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17508 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17510 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17511 Set all_symbols_looked_up here.
17512 (thread_db_look_up_one_symbol): New.
17513 (thread_db_get_tls_address): Adjust.
17514 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17515 thread_db object on the heap, and tentatively set it in the
17517 (thread_db_init): Don't set all_symbols_looked_up here.
17518 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17520 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17522 * linux-low.c (linux_kill, linux_detach): Adjust.
17523 (status_pending_p_callback): Remove redundant statement. Check
17524 for !TARGET_WAITIKIND_IGNORE, instead of
17525 TARGET_WAITKIND_STOPPED.
17526 (handle_tracepoints): Make sure LWP is locked. Adjust.
17527 (linux_wait_for_event_1): Adjust.
17528 (linux_cancel_breakpoints): New.
17529 (unsuspend_one_lwp): New.
17530 (unsuspend_all_lwps): New.
17531 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17532 (send_sigstop_callback): Change return type to int, add new
17533 `except' parameter and handle it.
17534 (suspend_and_send_sigstop_callback): New.
17535 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17536 pass them down. If SUSPEND, also increment the lwp's suspend
17538 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17539 (need_step_over_p): Don't consider suspended LWPs.
17540 (start_step_over): Adjust.
17541 (proceed_one_lwp): Change return type to int, add new `except'
17542 parameter and handle it.
17543 (unsuspend_and_proceed_one_lwp): New.
17544 (proceed_all_lwps): Use find_inferior instead of
17546 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17547 also decrement the suspend count of LWPs. Pass `except' down,
17548 instead of hacking its suspend count.
17549 (linux_pause_all): Add `freeze' parameter. Adjust.
17550 (linux_unpause_all): New.
17551 (linux_target_ops): Install linux_unpause_all.
17552 * server.c (handle_status): Adjust.
17553 * target.h (struct target_ops): New fields `unpause_all' and
17554 `cancel_breakpoints'. Add new parameter to `pause_all'.
17555 (pause_all): Add new `freeze' parameter.
17556 (unpause_all): New.
17557 (cancel_breakpoints): New.
17558 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17559 cancel breakpoints.
17560 (cmd_qtstart): Pause threads.
17561 (stop_tracing): Pause threads, and cancel breakpoints.
17562 * win32-low.c (win32_target_ops): Adjust.
17564 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17566 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17567 the inferior right away from here...
17568 (linux_wait_1): ... to here, and adjust to check the thread's
17569 last_resume_kind instead of the lwp's step or stop_expected flags.
17571 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17573 * README: Use consistent `GDB' and `GDBserver' spellings.
17575 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17577 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17578 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17579 (linux_detach_one_lwp): Assume the lwp is stopped.
17580 (any_thread_of): Delete.
17581 (linux_detach): Stop all lwps here. Don't blindly delete all
17583 (delete_lwp_callback): New.
17584 (linux_mourn): Delete all lwps of the process that is gone.
17585 (linux_wait_1): Don't delete the last lwp of the process here.
17586 * mem-break.h (mark_breakpoints_out): Declare.
17587 * mem-break.c (mark_breakpoints_out): New.
17588 (free_all_breakpoints): Use it.
17589 * server.c (handle_target_event): If the process is gone, mark
17591 * thread-db.c (struct thread_db) <create_bp>: New field.
17592 (thread_db_enable_reporting): Fix prototype. Store a thread event
17593 breakpoint reference in the thread_db struct.
17594 (thread_db_load_search): Clear the thread_db object.
17595 (try_thread_db_load_1): Ditto.
17596 (switch_to_process): New.
17597 (disable_thread_event_reporting): Use it.
17598 (remove_thread_event_breakpoints): New.
17599 (thread_db_detach, thread_db_mourn): Use it.
17601 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17603 * linux-low.c (linux_enable_event_reporting): New.
17604 (linux_wait_for_event_1, handle_extended_wait): Use it.
17606 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17608 * linux-low.c (linux_kill_one_lwp, linux_kill)
17609 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17610 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17611 SIGSTOP even if the LWP is stopped.
17612 (send_sigstop_callback): New.
17613 (stop_all_lwps): Use send_sigstop_callback instead.
17614 (linux_resume_one_thread): Adjust.
17615 (proceed_one_lwp): Still proceed an LWP that the client has
17616 requested to stop, if we haven't reported it as stopped yet. Make
17617 sure that LWPs the client want stopped, have a pending SIGSTOP.
17619 2010-04-26 Doug Evans <dje@google.com>
17621 * server.c (handle_general_set): Make static.
17623 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17624 Print received char after testing for error/eof instead of before.
17625 (input_interrupt): Tweak comment.
17627 2010-04-23 Doug Evans <dje@google.com>
17629 * server.c (start_inferior): Print inferior argv if --debug.
17631 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17633 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17634 * nto-x86-low.c: Include server.h
17636 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17638 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17639 be consistent with other sources of this directory.
17640 (init_registers_amd64): Correct name of source file of this function
17643 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17645 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17646 64-bit executables.
17648 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17650 * win32-i386-low.c: Add 64-bit support.
17651 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17652 (init_registers_amd64): Declare.
17653 (mappings): Add 64-bit version of array.
17654 (init_windows_x86): New function.
17655 (the_low_target): Change init_arch field to init_windows_x86.
17657 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17659 * win32-low.c: Adapt to support also 64-bit architecture.
17660 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17661 (get_image_name): Use SIZE_T type for local variable `done'.
17662 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17663 (toolhelp_get_dll_name): Idem.
17664 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17665 Use uintptr_t typecast to avoid warning.
17666 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17667 (handle_exception): Use phex_nz to avoid warning.
17668 (win32_wait): Remove unused local variable `process'.
17670 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17672 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17675 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17677 * configure.ac: Use `ws2_32' library for srv_mingw.
17678 * configure: Regenerate.
17679 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17680 * remote-utils.c: Likewise.
17682 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17684 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17685 if __x86_64__ is defined.
17687 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17689 * configure: Regenerate.
17691 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17693 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17694 * target.h (target_ops): New get_tib_address field.
17695 * win32-low.h (win32_thread_info): Add thread_local_base field.
17696 * win32-low.c (child_add_thread): Add tlb argument.
17697 Set thread_local_base field to TLB.
17698 (get_child_debug_event): Adapt to child_add_thread change.
17699 (win32_get_tib_address): New function.
17700 (win32_target_ops): Set get_tib_address field to
17701 win32_get_tib_address.
17702 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17704 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17706 * linux-low.c (linux_mourn): Also remove the process.
17707 * server.c (handle_target_event): Don't remove the process here.
17708 * nto-low.c (nto_mourn): New.
17709 (nto_target_ops): Install it.
17710 * spu-low.c (spu_mourn): New.
17711 (spu_target_ops): Install it.
17712 * win32-low.c (win32_mourn): New.
17713 (win32_target_ops): Install it.
17715 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17717 * server.h (buffer_xml_printf): Remove redundant `;'.
17719 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17721 * regcache.c (set_register_cache): Invalidate regcaches before
17722 changing the register cache layout.
17723 (regcache_invalidate_one): Allow a NULL regcache.
17724 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17725 regcaches before changing the register cache layout or the target
17728 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17730 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17731 variable warning on Linux/x86-64.
17733 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17735 GDBserver disconnected tracing support.
17737 * linux-low.c (linux_remove_process): Delete.
17738 (add_lwp): Don't set last_resume_kind here.
17739 (linux_kill): Use `mourn'.
17740 (linux_detach): Use `thread_db_detach', and `mourn'.
17741 (linux_mourn): New.
17742 (linux_attach_lwp_1): Adjust comment.
17743 (linux_attach): last_resume_kind moved the thread_info; adjust.
17744 (status_pending_p_callback): Adjust.
17745 (linux_wait_for_event_1): Adjust.
17746 (count_events_callback, select_singlestep_lwp_callback)
17747 (select_event_lwp_callback, cancel_breakpoints_callback)
17748 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17749 (proceed_one_lwp): Adjust.
17750 (linux_async): Add debug output.
17751 (linux_thread_stopped): New.
17752 (linux_pause_all): New.
17753 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17755 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17756 (thread_db_free): Delete declaration.
17757 (thread_db_detach, thread_db_mourn): Declare.
17758 * thread-db.c (thread_db_init): Use thread_db_mourn.
17759 (thread_db_free): Delete, split in two.
17760 (disable_thread_event_reporting): New.
17761 (thread_db_detach): New.
17762 (thread_db_mourn): New.
17764 * server.h (struct thread_info) <last_resume_kind>: New field.
17765 <attached>: Add comment.
17766 <gdb_detached>: New field.
17767 (handler_func): Change return type to int.
17768 (handle_serial_event, handle_target_event): Ditto.
17769 (gdb_connected): Declare.
17771 (disconnected_tracing): Declare.
17772 (stop_tracing): Declare.
17774 * server.c (handle_query) <qSupported>: Report support for
17775 disconnected tracing.
17776 (queue_stop_reply_callback): Account for running threads.
17777 (gdb_wants_thread_stopped): New.
17778 (gdb_wants_all_threads_stopped): New.
17779 (gdb_reattached_process): New.
17780 (handle_status): Clear the `gdb_detached' flag of all processes.
17781 In all-stop, stop all threads.
17782 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17783 (process_serial_event): If the remote connection breaks, or if an
17784 exit was forced with "monitor exit", force an event loop exit.
17785 Handle disconnected tracing on detach.
17786 (handle_serial_event): Adjust.
17787 (handle_target_event): If GDB isn't connected, forward events back
17788 to the inferior, unless the last process exited, in which case,
17789 exit gdbserver. Adjust interface.
17791 * remote-utils.c (remote_open): Don't block in accept. Instead
17792 register an event loop source on the listen socket file
17793 descriptor. Refactor bits into ...
17794 (listen_desc): ... this new global.
17795 (gdb_connected): ... this new function.
17796 (enable_async_notification): ... this new function.
17797 (handle_accept_event): ... this new function.
17798 (remote_close): Clear remote_desc.
17800 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17802 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17804 (mourn_inferior): Define.
17805 (target_process_qsupported): Avoid the dangling else problem.
17806 (thread_stopped): Define.
17807 (pause_all): Define.
17808 (target_waitstatus_to_string): Declare.
17809 * target.c (target_waitstatus_to_string): New.
17811 * tracepoint.c (tracing): Make extern.
17812 (disconnected_tracing): New.
17813 (stop_tracing): Make extern. Handle tracing stops due to GDB
17815 (cmd_qtdisconnected): New.
17816 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17817 (handle_tracepoint_general_set): Handle QTDisconnected.
17819 * event-loop.c (event_handler_func): Change return type to int.
17820 (process_event): Bail out if the event handler wants the event
17822 (handle_file_event): Ditto.
17823 (start_event_loop): Bail out if the event handler wants the event
17826 * nto-low.c (nto_target_ops): Adjust.
17827 * spu-low.c (spu_wait): Don't remove the process here.
17828 (spu_target_ops): Adjust.
17829 * win32-low.c (win32_wait): Don't remove the process here.
17830 (win32_target_ops): Adjust.
17832 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17834 * regcache.c (realloc_register_cache): Invalidate inferior's
17835 regcache before recreating it.
17837 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17839 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17841 2010-04-09 Stan Shebs <stan@codesourcery.com>
17842 Pedro Alves <pedro@codesourcery.com>
17844 * server.h (LONGEST): New.
17845 (struct thread_info) <while_stepping>: New field.
17846 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17848 (initialize_tracepoint, handle_tracepoint_general_set)
17849 (handle_tracepoint_query, tracepoint_finished_step)
17850 (tracepoint_was_hit, release_while_stepping_state_list):
17851 (current_traceframe): Declare.
17852 * server.c (handle_general_set): Handle tracepoint packets.
17853 (read_memory): New.
17854 (write_memory): New.
17855 (handle_search_memory_1): Use read_memory.
17856 (handle_query): Report support for conditional tracepoints, trace
17857 state variables, and tracepoint sources. Handle tracepoint
17859 (main): Initialize the tracepoints module.
17860 (process_serial_event): Handle traceframe reads/writes.
17862 * linux-low.c (handle_tracepoints): New.
17863 (linux_wait_1): Call it.
17864 (linux_resume_one_lwp): Handle while-stepping.
17865 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17866 (linux_target_ops): Install them.
17867 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17869 * linux-x86-low.c (x86_supports_tracepoints): New.
17870 (the_low_target). Install it.
17872 * mem-break.h (delete_breakpoint): Declare.
17873 * mem-break.c (delete_breakpoint): Make external.
17875 * target.h (struct target_ops): Add `supports_tracepoints',
17876 `read_pc', and `write_pc' fields.
17877 (target_supports_tracepoints): Define.
17878 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17881 * regcache.h (struct regcache) <registers_owned>: New field.
17882 (init_register_cache, regcache_cpy): Declare.
17883 (regcache_read_pc, regcache_write_pc): Declare.
17884 (register_cache_size): Declare.
17885 (supply_regblock): Declare.
17886 * regcache.c (init_register_cache): New.
17887 (new_register_cache): Use it.
17888 (regcache_cpy): New.
17889 (register_cache_size): New.
17890 (supply_regblock): New.
17891 (regcache_read_pc, regcache_write_pc): New.
17893 * tracepoint.c: New.
17895 * Makefile.in (OBS): Add tracepoint.o.
17896 (tracepoint.o): New rule.
17898 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17900 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17902 (i386-mmx.c): Likewise.
17903 (i386-mmx-linux.o): Likewise.
17904 (i386-mmx-linux.c): Likewise.
17906 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17907 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17908 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17909 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17911 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17912 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17913 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17915 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17917 * Makefile.in (clean): Updated.
17919 (i386-avx.c): Likewise.
17920 (i386-avx-linux.o): Likewise.
17921 (i386-avx-linux.c): Likewise.
17922 (amd64-avx.o): Likewise.
17923 (amd64-avx.c): Likewise.
17924 (amd64-avx-linux.o): Likewise.
17925 (amd64-avx-linux.c): Likewise.
17927 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17928 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17929 (srv_amd64_regobj): Add amd64-avx.o.
17930 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17931 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17932 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17933 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17934 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17935 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17936 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17938 * i387-fp.c: Include "i386-xstate.h".
17940 (i387_cache_to_xsave): Likewise.
17941 (i387_xsave_to_cache): Likewise.
17942 (x86_xcr0): Likewise.
17944 * i387-fp.h (i387_cache_to_xsave): Likewise.
17945 (i387_xsave_to_cache): Likewise.
17946 (x86_xcr0): Likewise.
17948 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17949 * linux-crisv32-low.c (target_regsets): Likewise.
17950 * linux-m68k-low.c (target_regsets): Likewise.
17951 * linux-mips-low.c (target_regsets): Likewise.
17952 * linux-ppc-low.c (target_regsets): Likewise.
17953 * linux-s390-low.c (target_regsets): Likewise.
17954 * linux-sh-low.c (target_regsets): Likewise.
17955 * linux-sparc-low.c (target_regsets): Likewise.
17956 * linux-xtensa-low.c (target_regsets): Likewise.
17958 * linux-low.c: Include <sys/uio.h>.
17959 (regsets_fetch_inferior_registers): Support nt_type.
17960 (regsets_store_inferior_registers): Likewise.
17961 (linux_process_qsupported): New.
17962 (linux_target_ops): Add linux_process_qsupported.
17964 * linux-low.h (regset_info): Add nt_type.
17965 (linux_target_ops): Add process_qsupported.
17967 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17969 (init_registers_i386_avx_linux): New.
17970 (init_registers_amd64_avx_linux): Likewise.
17971 (xmltarget_i386_linux_no_xml): Likewise.
17972 (xmltarget_amd64_linux_no_xml): Likewise.
17973 (PTRACE_GETREGSET): Likewise.
17974 (PTRACE_SETREGSET): Likewise.
17975 (x86_fill_xstateregset): Likewise.
17976 (x86_store_xstateregset): Likewise.
17977 (use_xml): Likewise.
17978 (x86_linux_update_xmltarget): Likewise.
17979 (x86_linux_process_qsupported): Likewise.
17980 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17981 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17982 init_registers_i386_linux here. Call
17983 x86_linux_update_xmltarget.
17984 (the_low_target): Add x86_linux_process_qsupported.
17986 * server.c (handle_query): Call target_process_qsupported.
17988 * target.h (target_ops): Add process_qsupported.
17989 (target_process_qsupported): New.
17991 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17993 * inferiors.c (add_thread): Set last_status kind to
17994 TARGET_WAITKIND_IGNORE.
17995 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17996 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17997 (linux_wait_1): Move `thread' local definition to block that uses
17998 it. Don't NULL initialize `event_child'.
17999 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18000 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18001 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18003 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18005 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18006 an extended waitstatus, or by a watchpoint.
18007 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18008 thread was stepping or has been stopped by a watchpoint.
18010 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18012 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18013 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18014 of another, then delete the previous, and validate all
18016 (validate_inserted_breakpoint): New.
18017 (delete_disabled_breakpoints): New.
18018 (validate_breakpoints): New.
18019 (check_mem_read): Validate breakpoints before trusting their
18020 shadow. Delete disabled breakpoints.
18021 (check_mem_write): Validate breakpoints before trusting they
18022 should be inserted. Delete disabled breakpoints.
18023 * mem-break.h (validate_breakpoints):
18024 * server.c (handle_query): Validate breakpoints when we see a
18027 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18029 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18030 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18031 if we could tell there's a GDB breakpoint at stop_pc.
18032 (need_step_over_p): Don't do a step over if we find a GDB
18033 breakpoint at the resume PC.
18035 * mem-break.c (struct raw_breakpoint): New.
18036 (enum bkpt_type): New type `gdb_breakpoint'.
18037 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18038 fields. New field `raw'.
18039 (find_raw_breakpoint_at): New.
18040 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18041 breakpoint instead.
18042 (set_breakpoint_at): Adjust.
18043 (delete_raw_breakpoint): New.
18044 (release_breakpoint): New.
18045 (delete_breakpoint): Rename to...
18046 (delete_breakpoint_1): ... this. Add proc parameter. Use
18047 release_breakpoint. Return ENOENT.
18048 (delete_breakpoint): Reimplement.
18049 (find_breakpoint_at): Delete.
18050 (find_gdb_breakpoint_at): New.
18051 (delete_breakpoint_at): Delete.
18052 (set_gdb_breakpoint_at): New.
18053 (delete_gdb_breakpoint_at): New.
18054 (gdb_breakpoint_here): New.
18055 (set_reinsert_breakpoint): Use release_breakpoint.
18056 (uninsert_breakpoint): Rename to ...
18057 (uninsert_raw_breakpoint): ... this.
18058 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18059 (reinsert_raw_breakpoint): Change parameter type to
18061 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18063 (check_breakpoints): Adjust. Use release_breakpoint.
18064 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18065 (breakpoint_inserted_here): Ditto.
18066 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18067 Don't trust the breakpoint's shadow if it is not inserted.
18068 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18069 (delete_all_breakpoints): Adjust.
18070 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18071 use delete_breakpoint_1.
18073 * mem-break.h (breakpoints_supported): Delete declaration.
18074 (set_gdb_breakpoint_at): Declare.
18075 (gdb_breakpoint_here): Declare.
18076 (delete_breakpoint_at): Delete.
18077 (delete_gdb_breakpoint_at): Declare.
18079 * server.h (struct raw_breakpoint): Forward declare.
18080 (struct process_info): New field `raw_breakpoints'.
18082 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18085 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18087 * linux-low.c (status_pending_p_callback): Fix comment.
18088 (linux_wait_for_event_1): Move most of the internal breakpoint
18089 handling from here...
18090 (linux_wait_1): ... to here.
18091 (count_events_callback): New.
18092 (select_singlestep_lwp_callback): New.
18093 (select_event_lwp_callback): New.
18094 (cancel_breakpoints_callback): New.
18095 (select_event_lwp): New.
18096 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18097 priority to all LWPs that have had events that should be reported
18098 to the client. Cancel breakpoints when about to reporting the
18099 event to the client, not while stopping lwps. No longer cancel
18100 finished single-steps here.
18101 (cancel_finished_single_step): Delete.
18102 (cancel_finished_single_steps): Delete.
18104 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18106 * mem-break.c (enum bkpt_type): New.
18107 (struct breakpoint): New field `type'.
18108 (set_breakpoint_at): Change return type to struct breakpoint
18109 pointer. Set type to `other_breakpoint' by default.
18110 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18111 in the breakpoint list.
18112 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18113 (reinsert_breakpoint): Rename to ...
18114 (reinsert_raw_breakpoint): ... this.
18115 (reinsert_breakpoints_at): Adjust.
18116 * mem-break.h (struct breakpoint): Declare.
18117 (set_breakpoint_at): Change return type to struct breakpoint
18120 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18122 * server.c (handle_query): Assign, not compare.
18124 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18126 Teach linux gdbserver to step-over-breakpoints.
18128 * linux-low.c (can_hardware_single_step): New.
18129 (supports_breakpoints): New.
18130 (handle_extended_wait): If stopping threads, read the stop pc of
18131 the new cloned LWP.
18133 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18134 low target doesn't support retrieving the PC.
18135 (add_lwp): Set last_resume_kind to resume_continue.
18136 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18137 (linux_attach): Don't clear stop_expected. Set the lwp's
18138 last_resume_kind to resume_stop.
18139 (linux_detach_one_lwp): Don't check for removed breakpoints.
18140 (check_removed_breakpoint): Delete.
18141 (status_pending_p): Rename to ...
18142 (status_pending_p_callback): ... this. Don't check for removed
18143 breakpoints. Don't consider threads that are stopped from GDB's
18145 (linux_wait_for_lwp): Always read the stop_pc here.
18146 (cancel_breakpoint): New.
18147 (step_over_bkpt): New global.
18148 (linux_wait_for_event_1): Implement stepping over breakpoints.
18149 (gdb_wants_lwp_stopped): New.
18150 (gdb_wants_all_stopped): New.
18151 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18152 single-step traps here. Store the thread's last reported target
18154 (send_sigstop): Don't clear stop_expected. Always set it,
18156 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18157 (cancel_finished_single_step): New.
18158 (cancel_finished_single_steps): New.
18159 (wait_for_sigstop): Don't cancel finished single-step traps here.
18160 (linux_resume_one_lwp): Don't check for removed breakpoints.
18161 Don't set `step' on non-hardware step archs.
18162 (linux_set_resume_request): Ignore resume_stop requests if already
18163 stopping or stopped. Set the lwp's last_resume_kind.
18164 (resume_status_pending_p): Don't check for removed breakpoints.
18165 (need_step_over_p): New.
18166 (start_step_over): New.
18167 (finish_step_over): New.
18168 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18169 requests. Clear the thread's last reported target waitstatus.
18170 Don't use the `suspended' flag. Don't consider pending breakpoints.
18171 (linux_resume): Start a step-over if necessary.
18172 (proceed_one_lwp): New.
18173 (proceed_all_lwps): New.
18174 (unstop_all_lwps): New.
18175 * linux-low.h (struct lwp_info): Rewrite comment for the
18176 `suspended' flag. Add the `stop_pc' field. Delete the
18177 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18178 Add `'last_resume_kind' and `need_step_over' fields.
18179 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18180 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18181 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18182 (set_raw_breakpoint_at): New.
18183 (set_breakpoint_at): Rewrite to use it.
18184 (reinsert_breakpoint_handler): Delete.
18185 (set_reinsert_breakpoint): New.
18186 (reinsert_breakpoint_by_bp): Delete.
18187 (delete_reinsert_breakpoints): New.
18188 (uninsert_breakpoint): Rewrite.
18189 (uninsert_breakpoints_at): New.
18190 (reinsert_breakpoint): Rewrite.
18191 (reinsert_breakpoints_at): New.
18192 (check_breakpoints): Rewrite.
18193 (breakpoint_here): New.
18194 (breakpoint_inserted_here): New.
18195 (check_mem_read): Adjust.
18196 * mem-break.h (breakpoints_supported, breakpoint_here)
18197 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18198 (reinsert_breakpoint_by_bp): Delete declaration.
18199 (delete_reinsert_breakpoints): Declare.
18200 (reinsert_breakpoint): Delete declaration.
18201 (reinsert_breakpoints_at): Declare.
18202 (uninsert_breakpoint): Delete declaration.
18203 (uninsert_breakpoints_at): Declare.
18204 (check_breakpoints): Adjust prototype.
18205 * server.h: Adjust include order.
18206 (struct thread_info): Declare here. Add a `last_status' field.
18208 2010-03-23 Michael Snyder <msnyder@vmware.com>
18210 * server.c (crc32): New function.
18211 (handle_query): Add handling for 'qCRC:' request.
18213 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18215 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18216 lwp had been stopped by a watchpoint.
18218 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18220 * server.h (internal_error): Declare.
18221 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18222 * utils.c (internal_error): New function.
18224 2010-03-15 Andreas Schwab <schwab@redhat.com>
18226 * configure.srv: Fix typo setting srv_regobj.
18228 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18230 * linux-low.c (fetch_register): Avoid passing a non string literal
18232 (usr_store_inferior_registers): Ditto.
18234 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18236 * linux-low.c (linux_write_memory): Bail out early if peeking
18239 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18241 * linux-low.h (struct lwp_info): New fields
18242 `stopped_by_watchpoint' and `stopped_data_address'.
18243 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18244 here, and cache them in the lwp object.
18245 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18247 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18249 (linux_stopped_by_watchpoint): Rewrite.
18250 (linux_stopped_data_address): Rewrite.
18252 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18254 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18255 switching the current inferior, not before.
18257 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18259 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18260 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18261 i386-linux.c and amd64-linux.c.
18262 (reg-i386.o): Removed.
18263 (reg-i386.c): Likewise.
18264 (reg-i386-linux.o): Likewise.
18265 (reg-i386-linux.c): Likewise.
18266 (reg-x86-64.o): Likewise.
18267 (reg-x86-64.c): Likewise.
18268 (reg-x86-64-linux.o): Likewise.
18269 (reg-x86-64-linux.c): Likewise.
18271 (i386.c): Likewise.
18272 (i386-linux.o): Likewise.
18273 (i386-linux.c): Likewise.
18274 (amd64.o): Likewise.
18275 (amd64.c): Likewise.
18276 (amd64-linux.o): Likewise.
18277 (amd64-linux.c): Likewise.
18279 * configure.srv (srv_i386_regobj): New.
18280 (srv_i386_linux_regobj): Likewise.
18281 (srv_amd64_regobj): Likewise.
18282 (srv_amd64_linux_regobj): Likewise.
18283 (srv_i386_32bit_xmlfiles): Likewise.
18284 (srv_i386_64bit_xmlfiles): Likewise.
18285 (srv_i386_xmlfiles): Likewise.
18286 (srv_amd64_xmlfiles): Likewise.
18287 (srv_i386_linux_xmlfiles): Likewise.
18288 (srv_amd64_linux_xmlfiles): Likewise.
18289 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18290 srv_xmlfiles to $srv_i386_xmlfiles.
18291 (i[34567]86-*-mingw32ce*): Likewise.
18292 (i[34567]86-*-mingw*): Likewise.
18293 (i[34567]86-*-nto*): Likewise.
18294 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18295 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18296 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18297 (x86_64-*-linux*): Likewise.
18299 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18300 (init_registers_amd64_linux): New.
18301 (x86_arch_setup): Replace init_registers_x86_64_linux with
18302 init_registers_amd64_linux.
18304 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18306 * configure.ac: Check for libdl. If it is not available link against
18307 static libthread_db.
18308 * configure: Regenerate.
18310 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18314 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18315 handing a read watchpoint.
18316 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18318 2010-02-12 Doug Evans <dje@google.com>
18320 * linux-low.c (linux_supports_tracefork_flag): Document.
18321 (linux_look_up_symbols): Add comment.
18323 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18325 * regcache.c (supply_register): Clear regcache if buf is NULL.
18327 2010-02-02 Nicolas Roche <roche@sourceware.org>
18328 Joel Brobecker <brobecker@adacore.com>
18330 * inferiors.c (find_inferior): Add function documentation.
18331 (unloaded_dll): Handle the case where the unloaded dll has not
18332 been previously registered in the dll list.
18334 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18336 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18337 (thumb2_breakpoint): New.
18338 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18340 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18342 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18343 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18346 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18348 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18350 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18352 * linux-s390-low.c (s390_collect_ptrace_register)
18353 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18355 2010-01-21 Doug Evans <dje@google.com>
18357 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18358 (PTRACE_ARG4_TYPE): New macro.
18359 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18360 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18361 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18362 (usr_store_inferior_registers): Ditto.
18363 (linux_read_memory, linux_write_memory): Ditto.
18364 (linux_test_for_tracefork): Ditto.
18366 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18367 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18369 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18371 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18374 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18376 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18377 prototype to take a regcache. Adjust.
18379 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18381 * regcache.h (struct thread_info): Forward declare.
18382 (struct regcache): New.
18383 (new_register_cache): Adjust prototype.
18384 (get_thread_regcache): Declare.
18385 (free_register_cache): Adjust prototype.
18386 (registers_to_string, registers_from_string): Ditto.
18387 (supply_register, supply_register_by_name, collect_register)
18388 (collect_register_as_string, collect_register_by_name): Ditto.
18389 * regcache.c (struct inferior_regcache_data): Delete.
18390 (get_regcache): Rename to ...
18391 (get_thread_regcache): ... this. Adjust. Switch inferior before
18392 fetching registers.
18393 (regcache_invalidate_one): Adjust.
18394 (regcache_invalidate): Fix prototype.
18395 (new_register_cache): Return the new register cache.
18396 (free_register_cache): Change prototype.
18397 (realloc_register_cache): Adjust.
18398 (registers_to_string): Change prototype to take a regcache. Adjust.
18399 (registers_from_string): Ditto.
18400 (register_data): Ditto.
18401 (supply_register): Ditto.
18402 (supply_register_by_name): Ditto.
18403 (collect_register): Ditto.
18404 (collect_register_as_string): Ditto.
18405 (collect_register_by_name): Ditto.
18406 * server.c (process_serial_event): Adjust.
18407 * linux-low.h (regset_fill_func, regset_store_func): Change
18409 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18411 * linux-low.c (get_stop_pc): Adjust.
18412 (check_removed_breakpoint): Adjust.
18413 (linux_wait_for_event): Adjust.
18414 (linux_resume_one_lwp): Adjust.
18415 (fetch_register): Add regcache parameter. Adjust.
18416 (usr_store_inferior_registers): Ditto.
18417 (regsets_fetch_inferior_registers): Ditto.
18418 (regsets_store_inferior_registers): Ditto.
18419 (linux_fetch_registers, linux_store_registers): Ditto.
18420 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18422 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18424 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18425 prototype to take a regcache.
18426 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18427 * remote-utils.c (convert_ascii_to_int, outreg)
18428 (prepare_resume_reply): Change prototype to take a regcache.
18430 * target.h (struct target_ops) <fetch_registers, store_registers>:
18431 Change prototype to take a regcache.
18432 (fetch_inferior_registers, store_inferior_registers): Change
18433 prototype to take a regcache. Adjust.
18434 * proc-service.c (ps_lgetregs): Adjust.
18435 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18436 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18437 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18438 take a regcache. Adjust.
18439 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18440 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18441 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18442 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18443 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18444 (cris_cannot_fetch_register):
18445 (cris_breakpoint_at): Change prototype to take a regcache.
18447 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18448 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18449 to take a regcache. Adjust.
18450 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18452 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18453 take a regcache. Adjust.
18454 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18455 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18456 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18457 * linux-mips-low.c (mips_get_pc):
18458 (mips_set_pc): Change prototype to take a regcache. Adjust.
18459 (mips_reinsert_addr): Adjust.
18460 (mips_collect_register): Change prototype to take a regcache.
18462 (mips_supply_register):
18463 (mips_collect_register_32bit, mips_supply_register_32bit)
18464 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18465 (mips_store_fpregset): Ditto.
18466 * linux-ppc-low.c (ppc_supply_ptrace_register)
18467 (ppc_supply_ptrace_register): Ditto.
18468 (parse_spufs_run): Adjust.
18469 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18470 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18471 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18472 take a regcache. Adjust.
18473 * linux-s390-low.c (s390_collect_ptrace_register)
18474 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18475 (s390_set_pc): Change prototype to take a regcache. Adjust.
18476 (s390_arch_setup): Adjust.
18477 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18478 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18479 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18480 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18481 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18483 (sparc_breakpoint_at): Adjust.
18484 * linux-xtensa-low.c (xtensa_fill_gregset):
18485 (xtensa_store_gregset):
18486 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18487 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18488 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18489 prototype to take a regcache. Adjust.
18490 * win32-arm-low.c (arm_fetch_inferior_register)
18491 (arm_store_inferior_register): Change prototype to take a
18493 * win32-i386-low.c (i386_fetch_inferior_register)
18494 (i386_store_inferior_register): Change prototype to take a
18496 * win32-low.c (child_fetch_inferior_registers)
18497 (child_store_inferior_registers): Change prototype to take a
18499 (win32_wait): Adjust.
18500 (win32_fetch_inferior_registers): Change prototype to take a
18502 (win32_store_inferior_registers): Adjust.
18503 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18504 store_inferior_register>: Change prototype to take a regcache.
18506 2010-01-20 Doug Evans <dje@google.com>
18508 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18510 (linux_wait_for_event1, linux_init_signals): Ditto.
18511 (W_STOPCODE): Provide definition if missing.
18513 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18515 * linux-low.c (linux_core_of_thread): New.
18516 (compare_ints, show_process, list_threads): New.
18517 (linux_qxfer_osdata): Report threads and cores.
18518 (linux_target_op): Register linux_core_of_thread.
18519 * remote-utils.c (prepare_resume_reply): Report the core.
18520 (buffer_xml_printf): Support %d specifier.
18521 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18523 (handle_query): Handle qXfer:threads. Announce availability
18525 * target.h (struct target_ops): New field core_of_thread.
18527 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18529 * Makefile.in (clean): Remove new generated files.
18530 (reg-s390.o, reg-s390.c): Remove rules.
18531 (reg-s390x.o, reg-s390x.c): Likewise.
18532 (s390-linux32.o, s390-linux32.c): Add rules.
18533 (s390-linux64.o, s390-linux64.c): Likewise.
18534 (s390x-linux64.o, s390x-linux64.c): Likewise.
18535 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18536 * linux-s390-low.c: Include <elf.h>.
18537 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18538 (init_registers_s390): Remove prototype.
18539 (init_registers_s390x): Likewise.
18540 (init_registers_s390_linux32): Add prototype.
18541 (init_registers_s390_linux64): Likewise.
18542 (init_registers_s390x_linux64): Likewise.
18543 (s390_num_regs_3264): New define.
18544 (s390_regmap_3264): New global variable.
18545 (s390_cannot_fetch_register): Remove obsolete check.
18546 (s390_cannot_store_register): Likewise.
18547 (s390_collect_ptrace_register): Handle upper/lower register halves.
18548 (s390_supply_ptrace_register): Likewise.
18549 (s390_fill_gregset): Update to register number changes.
18550 (s390_get_hwcap): New routine.
18551 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18552 Install appropriate regmap and register set.
18554 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18556 * server.c (gdbserver_version): Update copyright year to 2010.
18557 * gdbreplay.c (gdbreplay_version): Likewise.
18559 2009-12-28 Doug Evans <dje@google.com>
18561 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18562 elf/external.h. Include <elf.h> instead but only if necessary.
18564 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18566 * linux-low.c (linux_remove_process): Remove `detaching'
18567 parameter. Don't release/detach from thread_db here.
18568 (linux_kill): Release/detach from thread_db here, ...
18569 (linux_detach): ... and here, before actually detaching.
18570 (linux_wait_1): ... and here, when a process exits.
18571 * thread-db.c (any_thread_of): New.
18572 (thread_db_free): Switch the current inferior to a thread of the
18575 2009-12-21 Doug Evans <dje@google.com>
18577 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18579 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18580 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18581 warning ifndef __NR_tkill. Move setting of errno there too.
18582 Delete unnecessary resetting of errno after syscall.
18583 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18585 * configure.ac: Check for dladdr.
18586 * config.in: Regenerate.
18587 * configure: Regenerate.
18588 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18589 (try_thread_db_load): Update.
18591 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18593 2009-12-18 Doug Evans <dje@google.com>
18595 * event-loop.c: Include unistd.h if it exists.
18597 * linux-low.c (my_waitpid): Move definition away from being in
18598 between linux_tracefork_child/linux_test_for_tracefork.
18600 * gdb_proc_service.h (psaddr_t): Fix type.
18601 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18602 signature to match glibc.
18604 2009-12-16 Doug Evans <dje@google.com>
18606 * linux-low.c (linux_read_memory): Fix argument to read.
18608 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18610 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18611 events, don't leave current_inferior pointing at null.
18613 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18615 * win32-low.c (LOG): Delete.
18616 (OUTMSG): Output to stderr.
18617 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18618 on compile time LOG macro.
18619 (win32_wait): Fix debug output.
18621 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18623 * win32-low.c (win32_add_one_solib): If the dll name is
18624 "ntdll.dll", prepend the system directory to the dll path.
18626 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18628 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18630 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18631 Vladimir Prus <vladimir@codesourcery.com>
18633 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18634 * configure.ac: Check for __mcoldfire__ and set
18635 gdb_cv_m68k_is_coldfire.
18636 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18637 reg-cf.o and reg-m68k.o.
18638 * configure: Regenerated.
18640 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18642 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18643 Pass it to thread_db_free.
18644 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18645 proper `detaching' argument to linux_remove_process.
18646 * linux-low.h (thread_db_free): Add `detaching' parameter.
18647 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18649 (thread_db_free): Add `detaching' parameter. Only
18650 call td_ta_clear_event if detaching from process.
18652 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18654 * thread-db.c (thread_db_free): Fix typo.
18656 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18659 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18661 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18663 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18664 with an i686 compiler.
18665 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18667 * configure: Rebuilt.
18669 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18673 * server.c (handle_search_memory_1): Correct read_addr initialization
18674 in loop for searching subsequent chunks.
18676 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18678 * configure.ac: New --with-libthread-db option.
18679 * thread-db.c: Allow direct dependence on libthread_db.
18680 (thread_db_free): Adjust.
18681 * config.in: Regenerate.
18682 * configure: Likewise.
18684 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18687 * thread-db.c (attach_thread): New function.
18688 (maybe_attach_thread): Return success/failure.
18689 (find_new_threads_callback): Adjust.
18690 (thread_db_find_new_threads): Loop until no new threads.
18692 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18694 * proc-service.c (ps_lgetregs): Formatting.
18696 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18698 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18699 * configure.ac: Adjust.
18700 * linux-low.h (struct process_info_private): Move members to struct
18702 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18703 * linux-low.c (linux_remove_process): Adjust.
18704 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18705 * server.c (handle_query): Move code ...
18706 (handle_monitor_command): ... here. New function.
18707 * target.h (struct target_ops): New member.
18708 * thread-db.c (struct thread_db): New.
18709 (libthread_db_search_path): New variable.
18710 (thread_db_create_event, thread_db_enable_reporting)
18711 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18712 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18713 (try_thread_db_load_1, dladdr_to_soname): New functions.
18714 (try_thread_db_load, thread_db_load_search): New functions.
18715 (thread_db_init): Search for libthread_db.
18716 (thread_db_free): New function.
18717 (thread_db_handle_monitor_command): Likewise.
18718 * config.in: Regenerate.
18719 * configure: Regenerate.
18721 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18723 * spu-low.c (spu_kill): Wait for inferior to terminate.
18724 Call clear_inferiors.
18725 (spu_detach): Call clear_inferiors.
18727 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18729 * aclocal.m4: Regenerate.
18730 * config.in: Likewise.
18731 * configure: Likewise.
18733 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18735 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18736 (parse_spufs_run): New function.
18737 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18738 (ppc_breakpoint_at): Handle SPU breakpoints.
18740 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18742 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18743 (SPUFS_MAGIC): Define.
18744 (spu_enumerate_spu_ids): New function.
18745 (linux_qxfer_spu): New function.
18746 (linux_target_ops): Install linux_qxfer_spu.
18748 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18750 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18751 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18752 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18753 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18754 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18755 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18756 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18757 (init_registers_powerpc_cell32l): Add prototype.
18758 (init_registers_powerpc_cell64l): Likewise.
18759 (ppc_arch_setup): Detect Cell/B.E. architecture.
18761 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18763 * Makefile.in (datarootdir): New variable.
18765 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18767 * linux-low.c (linux_write_memory): Update debugging output.
18768 * Makefile.in (clean): Add new descriptions.
18769 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18770 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18771 * configure.srv: Add new files for arm*-*-linux*.
18772 * linux-arm-low.c: Add new declarations.
18773 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18774 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18775 (HWCAP_VFPv3D16): New.
18776 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18777 instead of __IWMMXT__.
18778 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18779 (arm_arch_setup): New.
18780 (target_regsets): Remove #ifdef. Add VFP regset.
18781 (the_low_target): Use arm_arch_setup.
18783 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18785 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18786 the main thread again.
18788 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18790 Adding Neutrino gdbserver.
18791 * configure: Regenerated.
18792 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18793 * configure.srv (i[34567]86-*-nto*): New target.
18794 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18795 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18796 (nto_comctrl) [__QNX__]: New function.
18797 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18799 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18801 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18804 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18805 Pedro Alves <pedro@codesourcery.com>
18807 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18808 don't support CONTEXT_EXTENDED_REGISTERS.
18809 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18810 (the_low_target): Install them.
18811 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18812 failing with ERROR_PIPE_NOT_CONNECTED.
18814 2009-06-30 Doug Evans <dje@google.com>
18815 Pierre Muller <muller@ics.u-strasbg.fr>
18817 Add h/w watchpoint support to x86-linux, win32-i386.
18818 * Makefile.in (SFILES): Add i386-low.c
18819 (i386_low_h): Define.
18820 (i386-low.o): Add dependencies.
18821 (linux-x86-low.o): Add i386-low.h dependency.
18822 (win32-i386-low.o): Ditto.
18823 * i386-low.c: New file.
18824 * i386-low.h: New file.
18825 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18826 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18827 * linux-low.c (linux_add_process): Initialize arch_private.
18828 (linux_remove_process): Free arch_private.
18829 (add_lwp): Initialize arch_private.
18830 (delete_lwp): Free arch_private.
18831 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18833 * linux-low.h (process_info_private): New member arch_private.
18834 (lwp_info): New member arch_private.
18835 (linux_target_ops): New members new_process, new_thread,
18837 (ptid_of): New macro.
18838 * linux-x86-low.c: Include stddef.h, i386-low.h.
18839 (arch_process_info): New struct.
18840 (arch_lwp_info): New struct.
18841 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18842 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18843 (i386_dr_low_get_status): New function.
18844 (x86_insert_point, x86_remove_point): New functions.
18845 (x86_stopped_by_watchpoint): New function.
18846 (x86_stopped_data_address): New function.
18847 (x86_linux_new_process, x86_linux_new_thread): New functions.
18848 (x86_linux_prepare_to_resume): New function.
18849 (the_low_target): Add entries for insert_point, remove_point,
18850 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18852 * server.c (debug_hw_points): New global.
18853 (monitor_show_help): Document set debug-hw-points.
18854 (handle_query): Process "set debug-hw-points".
18855 * server.h (debug_hw_points): Declare.
18856 (paddress): Declare.
18857 * utils.c (NUMCELLS, CELLSIZE): New macros.
18858 (get_sell, xsnprintf, paddress): New functions.
18859 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18860 remove_point, stopped_by_watchpoint, stopped_data_address.
18861 * win32-i386-low.c: Include i386-low.h.
18862 (debug_reg_state): Replaces dr.
18863 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18864 (i386_dr_low_get_status): New function.
18865 (i386_insert_point, i386_remove_point): New functions.
18866 (i386_stopped_by_watchpoint): New function.
18867 (i386_stopped_data_address): New function.
18868 (i386_initial_stuff): Update.
18869 (get_thread_context,set_thread_context,i386_thread_added): Update.
18870 (the_low_target): Add entries for insert_point,
18871 remove_point, stopped_by_watchpoint, stopped_data_address.
18872 * win32-low.c (win32_insert_watchpoint): New function.
18873 (win32_remove_watchpoint): New function.
18874 (win32_stopped_by_watchpoint): New function.
18875 (win32_stopped_data_address): New function.
18876 (win32_target_ops): Add entries for insert_watchpoint,
18877 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18878 * win32-low.h (win32_target_ops): New members insert_point,
18879 remove_point, stopped_by_watchpoint, stopped_data_address.
18881 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18883 * server.c (process_serial_event): Re-return unsupported, not
18884 error, if the type isn't recognized. Re-allow supporting only
18885 insert or remove packets. Also call require_running for
18886 breakpoints. Add missing break statement to default case. Tidy.
18887 * target.h (struct target_ops): Rename insert_watchpoint to
18888 insert_point, and remove_watchpoint to remove_point.
18890 * linux-low.h (struct linux_target_ops): Likewise.
18891 * linux-low.c (linux_insert_watchpoint): Rename to ...
18892 (linux_insert_point): ... this. Adjust.
18893 (linux_remove_watchpoint): Rename to ...
18894 (linux_remove_point): ... this. Adjust.
18895 (linux_target_ops): Adjust.
18896 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18897 (cris_insert_point): ... this.
18898 (cris_remove_watchpoint): Rename to ...
18899 (cris_remove_point): ... this.
18900 (the_low_target): Adjust.
18902 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18904 * server.c (handle_v_kill): Pass signal_pid to
18905 kill_inferior if multi_process is zero.
18907 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18909 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18910 * target.h (target_ops): Comment for *_watchpoint to make it clear
18911 the functions can get types '0' and '1'.
18913 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18915 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18916 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18917 * regcache.c (get_regcache): Likewise.
18918 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18919 * win32-low.c (child_fetch_inferior_registers): Remove check for
18922 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18923 Pedro Alves <pedro@codesourcery.com>
18925 * target.h (struct target_ops) <supports_multi_process>: New
18927 (target_supports_multi_process): New.
18928 * server.c (handle_query): Even if GDB reports support, only
18929 enable multi-process if the target also supports it. Report
18930 multi-process support only if the target backend supports it.
18931 * linux-low.c (linux_supports_multi_process): New function.
18932 (linux_target_ops): Install it as target_supports_multi_process
18935 2009-05-24 Doug Evans <dje@google.com>
18937 Global renaming of find_thread_pid to find_thread_ptid.
18938 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18939 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18940 All callers updated.
18942 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18943 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18946 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18947 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18948 (linux_resume_one_lwp): Ditto.
18950 2009-05-23 Doug Evans <dje@google.com>
18952 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18953 from struct inferior_list_entry * to struct lwp_info *.
18954 All callers updated.
18956 2009-05-13 Doug Evans <dje@google.com>
18958 * linux-x86-low.c: Don't include assert.h.
18959 (x86_siginfo_fixup): Use fatal, not assert.
18960 (x86_arch_setup): Fix comment.
18962 2009-05-12 Doug Evans <dje@google.com>
18964 Biarch support for i386/amd64 gdbserver.
18965 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18966 Add linux-x86-low.c.
18967 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18968 (linux-x86-low.o): Add.
18969 * linux-x86-64-low.c: Delete.
18970 * linux-i386-low.c: Delete.
18971 * linux-x86-low.c: New file.
18972 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18974 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18976 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18977 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18978 (linux_child_pid_to_exec_file): New function.
18979 (elf_64_header_p, elf_64_file_p): New functions.
18980 (siginfo_fixup): New function.
18981 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18982 give target a chance to convert layout.
18983 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18984 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18986 2009-05-07 Doug Evans <dje@google.com>
18988 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18989 (regsets_store_inferior_registers): Ditto.
18991 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18995 * linux-low.c (must_set_ptrace_flags): Delete.
18996 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18998 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18999 `lwp->must_set_ptrace_flags' instead.
19000 (linux_wait_for_event_1): Set ptrace options here.
19001 (linux_wait_1): ... not here.
19003 2009-04-30 Doug Evans <dje@google.com>
19005 * inferiors.c (started_inferior_callback): New function.
19006 (attached_inferior_callback): New function.
19007 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19008 * server.c (print_started_pid, print_attached_pid): New functions.
19009 (detach_or_kill_for_exit): New function.
19010 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19011 * server.h (have_started_inferiors_p): Declare.
19012 (have_attached_inferiors_p): Declare.
19014 * inferiors.c (remove_process): Fix memory leak, free process.
19015 * linux-low.c (linux_remove_process): New function.
19016 (linux_kill): Call it instead of remove_process.
19017 (linux_detach, linux_wait_1): Ditto.
19019 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19021 * configure.srv: Add x86 Windows CE target.
19023 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19025 * inferiors.c (get_thread_process): Make global.
19026 * server.h (get_thread_process): Add prototype.
19027 * thread-db.c (find_one_thread): Use get_thread_process
19028 instead of current_process.
19029 (thread_db_get_tls_address): Do not crash if called when
19030 thread layer is not yet initialized.
19032 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19034 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19035 * spu-low.c (current_tid): Rename to ...
19036 (current_ptid): ... this.
19037 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19038 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19039 ptid_get_lwp (current_ptid) instead of current_tid.
19040 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19041 instead of current_tid. Use find_process_pid to verify pid
19042 argument is valid. Pass proper argument to remove_process.
19043 (spu_thread_alive): Compare current_ptid instead of current_tid.
19044 (spu_resume): Likewise.
19046 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19048 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19051 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19053 Implement the multiprocess extensions, and add linux multiprocess
19056 * server.h (ULONGEST): Declare.
19057 (struct ptid, ptid_t): New.
19058 (minus_one_ptid, null_ptid): Declare.
19059 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19060 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19061 (struct inferior_list_entry): Change `id' type from unsigned from
19063 (struct sym_cache, struct breakpoint, struct
19064 process_info_private): Forward declare.
19065 (struct process_info): Declare.
19066 (current_process): Declare.
19067 (all_processes): Declare.
19068 (initialize_inferiors): Declare.
19069 (add_thread): Adjust to use ptid_t.
19070 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19071 (add_process, remove_process, find_thread_pid): Declare.
19072 (find_inferior_id): Adjust to use ptid_t.
19073 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19074 (multi_process): Declare.
19075 (push_event): Adjust to use ptid_t.
19076 (read_ptid, write_ptid): Declare.
19077 (prepare_resume_reply): Adjust to use ptid_t.
19078 (clear_symbol_cache): Declare.
19079 * inferiors.c (all_processes): New.
19080 (null_ptid, minus_one_ptid): New.
19081 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19082 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19083 (add_thread): Change unsigned long to ptid. Remove gdb_id
19085 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19086 (gdb_id_to_thread): Rename to ...
19087 (find_thread_pid): ... this. Change unsigned long to ptid.
19088 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19089 (loaded_dll, pull_pid_from_list): Adjust.
19090 (add_process, remove_process, find_process_pid)
19091 (get_thread_process, current_process, initialize_inferiors): New.
19092 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19093 (struct target_waitstatus) <related_pid>: Ditto.
19094 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19095 return type to int.
19096 (struct target_ops) <join>: Add `pid' argument.
19097 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19098 (struct target_ops) <wait>: Add `ptid' field. Change return type
19100 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19101 (mywait): Add `ptid' argument. Change return type to ptid_t.
19102 (target_pid_to_str): Declare.
19103 * target.c (set_desired_inferior): Adjust to use ptids.
19104 (mywait): Add new `ptid' argument. Adjust.
19105 (target_pid_to_str): New.
19106 * mem-break.h (free_all_breakpoints): Declare.
19107 * mem-break.c (breakpoints): Delelete.
19108 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19109 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19110 to use per-process breakpoint list.
19111 (free_all_breakpoints): New.
19112 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19113 (symbol_cache, all_symbols_looked_up): Delete.
19115 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19117 (prepare_resume_reply): Change ptid argument's type from unsigned
19118 long to ptid_t. Adjust. Implement W;process and X;process.
19119 (free_sym_cache, clear_symbol_cache): New.
19120 (look_up_one_symbol): Adjust to per-process symbol cache. *
19121 * server.c (cont_thread, general_thread, step_thread): Change type
19123 (attached): Delete.
19124 (multi_process): New.
19125 (last_ptid): Change type to ptid_t.
19126 (struct vstop_notif) <ptid>: Change type to ptid_t.
19127 (queue_stop_reply, push_event): Change `ptid' argument's type to
19129 (discard_queued_stop_replies): Add `pid' argument.
19130 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19131 changes. Don't reference the `attached' global.
19132 (attach_inferior): Adjust to mywait interface changes.
19133 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19134 features. Handle and report "multiprocess+". Handle
19136 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19138 (handle_v_kill): New.
19139 (handle_v_stopped): Adjust to use target_pid_to_str.
19140 (handle_v_requests): Allow multiple attaches and runs when
19141 multiprocess extensions are in effect. Handle "vKill".
19142 (myresume): Adjust to use ptids.
19143 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19144 (handle_status): Adjust to discard_queued_stop_replies interface
19146 (first_thread_of, kill_inferior_callback)
19147 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19148 (main): Call initialize_inferiors. Adjust to use ptids, killing
19149 and detaching from all inferiors. Handle multiprocess packet
19151 * linux-low.h: Include gdb_proc_service.h.
19152 (struct process_info_private): New.
19153 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19154 <lwpid_of>: Use ptid_get_lwp.
19155 (get_lwp_thread): Adjust.
19156 (struct lwp_info): Add `dead' member.
19157 (find_lwp_pid): Declare.
19158 * linux-low.c (thread_db_active): Delete.
19159 (new_inferior): Adjust comment.
19160 (inferior_pid): Delete.
19161 (linux_add_process): New.
19162 (handle_extended_wait): Adjust.
19163 (add_lwp): Change unsigned long to ptid.
19164 (linux_create_inferior): Add process to processes table. Adjust
19165 to use ptids. Don't set new_inferior here.
19166 (linux_attach_lwp): Rename to ...
19167 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19168 it. Adjust to use ptids.
19169 (linux_attach_lwp): New.
19170 (linux_attach): Add process to processes table. Don't set
19172 (struct counter): New.
19173 (second_thread_of_pid_p, last_thread_of_process_p): New.
19174 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19175 multiple processes.
19176 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19177 processes. Remove process from process table.
19178 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19179 to multiple processes.
19180 (any_thread_of): New.
19181 (linux_detach): Add `pid' argument, and handle it. Remove process
19182 from processes table.
19183 (linux_join): Add `pid' argument. Handle it.
19184 (linux_thread_alive): Change unsighed long argument to ptid_t.
19185 Consider dead lwps as not being alive.
19186 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19187 threads we're not interested in.
19188 (same_lwp, find_lwp_pid): New.
19189 (linux_wait_for_lwp): Change `pid' argument's type from int to
19191 (linux_wait_for_event): Rename to ...
19192 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19193 from int to ptid_t. Adjust.
19194 (linux_wait_for_event): New.
19195 (linux_wait_1): Add `ptid' argument. Change return type to
19196 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19197 that exit from the process table.
19198 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19200 (mark_lwp_dead): New.
19201 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19202 stopping all threads, mark its main lwp as dead.
19203 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19205 (fetch_register, usr_store_inferior_registers)
19206 (regsets_fetch_inferior_registers)
19207 (regsets_store_inferior_registers, linux_read_memory)
19208 (linux_write_memory): Inline `inferior_pid'.
19209 (linux_look_up_symbols): Adjust to use per-process
19210 `thread_db_active'.
19211 (linux_request_interrupt): Adjust to use ptids.
19212 (linux_read_auxv): Inline `inferior_pid'.
19213 (initialize_low): Don't reference thread_db_active.
19214 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19215 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19216 (ps_getpid): Return the pid of the current inferior.
19217 * thread-db.c (proc_handle, thread_agent): Delete.
19218 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19220 (find_one_thread): Change argument type to ptid_t. Adjust to
19222 (maybe_attach_thread): Adjust to per-process data and ptids.
19223 (thread_db_find_new_threads): Ditto.
19224 (thread_db_init): Ditto.
19225 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19226 processes table. Adjust to use ptids.
19227 (spu_kill, spu_detach): Adjust interface. Remove process from
19229 (spu_join, spu_thread_alive): Adjust interface.
19230 (spu_wait): Adjust interface. Remove process from processes
19231 table. Adjust to use ptids.
19232 * win32-low.c (current_inferior_tid): Delete.
19233 (current_inferior_ptid): New.
19234 (debug_event_ptid): New.
19235 (thread_rec): Take a ptid. Adjust.
19236 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19237 (child_delete_thread): Ditto.
19238 (do_initial_child_stuff): Add `attached' argument. Add process to
19240 (child_fetch_inferior_registers, child_store_inferior_registers):
19242 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19243 (win32_attach): Pass 1 to do_initial_child_stuff.
19244 (win32_kill): Adjust interface. Remove process from processes
19246 (win32_detach): Ditto.
19247 (win32_join): Adjust interface.
19248 (win32_thread_alive): Take a ptid.
19249 (win32_resume): Adjust to use ptids.
19250 (get_child_debug_event): Ditto.
19251 (win32_wait): Adjust interface. Remove exiting process from
19254 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19256 Non-stop mode support.
19258 * server.h (non_stop): Declare.
19259 (gdb_client_data, handler_func): Declare.
19260 (delete_file_handler, add_file_handler, start_event_loop):
19262 (handle_serial_event, handle_target_event, push_event)
19263 (putpkt_notif): Declare.
19264 * target.h (enum resume_kind): New.
19265 (struct thread_resume): Replace `step' field by `kind' field.
19266 (TARGET_WNOHANG): Define.
19267 (struct target_ops) <wait>: Add `options' argument.
19268 <supports_non_stop, async, start_non_stop>: New fields.
19269 (target_supports_non_stop, target_async): New.
19270 (start_non_stop): Declare.
19271 (mywait): Add `options' argument.
19272 * target.c (mywait): Add `options' argument. Print child exit
19273 notifications here.
19274 (start_non_stop): New.
19275 * server.c (non_stop, own_buf, mem_buf): New globals.
19276 (struct vstop_notif): New.
19277 (notif_queue): New global.
19278 (queue_stop_reply, push_event, discard_queued_stop_replies)
19279 (send_next_stop_reply): New.
19280 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19282 (attach_inferior): In non-stop mode, don't wait for the target
19284 (handle_general_set): Handle QNonStop.
19285 (handle_query): When handling qC, return the current general
19286 thread, instead of the first thread of the list.
19287 (handle_query): If the backend supports non-stop mode, include
19288 QNonStop+ in the qSupported query response.
19289 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19291 (handle_v_attach, handle_v_run): Handle non-stop mode.
19292 (handle_v_stopped): New.
19293 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19294 (myresume): Adjust to use resume_kind. Handle non-stop.
19295 (queue_stop_reply_callback): New.
19296 (handle_status): Handle non-stop mode.
19297 (main): Clear non_stop flag on reconnection. Use the event-loop.
19298 Refactor serial protocol handling from here ...
19299 (process_serial_event): ... to this new function. When GDB
19300 selects any thread, select one here. In non-stop mode, wait until
19301 GDB acks all pending events before exiting.
19302 (handle_serial_event, handle_target_event): New.
19303 * remote-utils.c (remote_open): Install remote_desc in the event
19305 (remote_close): Remove remote_desc from the event loop.
19306 (putpkt_binary): Rename to...
19307 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19308 (putpkt_binary): New as wrapper around putpkt_binary_1.
19309 (putpkt_notif): New.
19310 (prepare_resume_reply): In non-stop mode, don't change the
19312 * event-loop.c: New.
19313 * Makefile.in (OBJ): Add event-loop.o.
19314 (event-loop.o): New rule.
19316 * linux-low.h (pid_of): Moved here.
19318 (get_lwp_thread): Use lwpid_of.
19319 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19320 * linux-low.c (pid_of): Delete.
19321 (inferior_pid): Use lwpid_of.
19322 (linux_event_pipe): New.
19323 (target_is_async_p): New.
19325 (handle_extended_wait): Use lwpid_of.
19326 (add_lwp): Don't set lwpid field.
19327 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19328 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19329 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19330 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19331 first. Adjust to linux_wait_for_event interface changes. Use
19333 (linux_detach): Don't delete the main lwp here.
19334 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19335 (status_pending_p): Don't consider explicitly suspended lwps.
19336 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19337 pointer. Add OPTIONS argument. Change return type to int. Use
19338 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19339 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19340 pointer. Add status pointer argument. Return a pid instead of a
19341 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19342 changes. In non-stop mode, don't switch to a random thread.
19343 (linux_wait): Rename to...
19344 (linux_wait_1): ... this. Add target_options argument, and handle
19345 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19346 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19347 clean exit and signal exit code. Don't stop all threads in
19348 non-stop mode. In all-stop mode, only stop all threads when
19349 reporting a stop to GDB. Handle explicit thread stop requests.
19350 (async_file_flush, async_file_mark): New.
19352 (send_sigstop): Use lwpid_of.
19353 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19354 interface changes. In non-stop mode, don't switch to a random
19356 (linux_resume_one_lwp): Use lwpid_of.
19357 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19358 (linux_resume_one_thread): ... this. Handle resume_stop. In
19359 non-stop mode, don't look for pending flag in all threads.
19360 (resume_status_pending_p): Don't consider explicitly suspended
19362 (my_waitpid): Reimplement. Emulate __WALL.
19363 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19365 (sigchld_handler, linux_supports_non_stop, linux_async)
19366 (linux_start_non_stop): New.
19367 (linux_target_ops): Register linux_supports_non_stop, linux_async
19368 and linux_start_non_stop.
19369 (initialize_low): Install SIGCHLD handler.
19370 * thread-db.c (thread_db_create_event, find_one_thread)
19371 (thread_db_get_tls_address): Use lwpid_of.
19372 * win32-low.c (win32_detach): Adjust to use resume_kind.
19373 (win32_wait): Add `options' argument.
19374 * spu-low.c (spu_resume): Adjust to use resume_kind.
19375 (spu_wait): Add `options' argument.
19377 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19379 Decouple target code from remote protocol.
19381 * target.h (enum target_waitkind): New.
19382 (struct target_waitstatus): New.
19383 (struct target_ops) <wait>: Return an unsigned long. Take a
19384 target_waitstatus pointer instead of a char pointer.
19385 (mywait): Likewise.
19386 * target.c (mywait): Change prototype to return an unsigned long.
19387 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19388 * server.h (thread_from_wait, old_thread_from_wait): Delete
19390 (prepare_resume_reply): Change prototype to take a
19392 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19393 (last_status, last_ptid): New.
19394 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19395 pid instead of a signal.
19396 (attach_inferior): Remove "status" and "signal" parameters.
19398 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19400 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19401 (handle_v_requests, myresume): Remove "status" and "signal"
19402 parameters. Adjust.
19403 (handle_status): New.
19404 (main): Delete local `status'. Adjust.
19405 * remote-utils.c: Include target.h.
19406 (prepare_resume_reply): Change prototype to take a
19407 target_waitstatus. Adjust.
19409 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19411 * spu-low.c (spu_wait): Adjust.
19412 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19414 (win32_wait): Adjust.
19416 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19418 * target.h (struct thread_resume): Delete leave_stopped member.
19419 (struct target_ops): Add a `n' argument to the `resume' callback.
19420 * server.c (start_inferior): Adjust.
19421 (handle_v_cont, myresume): Adjust.
19422 * linux-low.c (check_removed_breakpoint): Adjust to resume
19423 interface change, and to removed leave_stopped field.
19424 (resume_ptr): Delete.
19425 (struct thread_resume_array): New.
19426 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19427 resume interface change.
19428 (linux_continue_one_thread, linux_queue_one_thread)
19429 (resume_status_pending_p): Check if the resume field is NULL
19430 instead of checking the leave_stopped member.
19431 (linux_resume): Adjust to the target resume interface change.
19432 * spu-low.c (spu_resume): Adjust to the target resume interface
19434 * win32-low.c (win32_detach, win32_resume): Ditto.
19436 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19438 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19440 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19442 (linux_continue_one_thread): Only preserve the stepping flag if
19443 there's a pending breakpoint.
19445 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19447 * server.c (main): After the inferior having exited, call
19448 remote_close before exiting gdbserver.
19450 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19452 Fix size of FPSCR in Power 7 processors.
19453 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19454 (PPC_FEATURE_HAS_DFP): New #define.
19455 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19458 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19460 * server.c (handle_query) Whitespace and formatting.
19462 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19464 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19465 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19466 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19467 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19468 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19469 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19470 Makefile.in, configure.ac: Fix whitespace throughout.
19471 * configure: Regenerate.
19473 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19475 * inferiors.c (find_inferior): Make it safe for the callback
19476 function to delete the currently iterated inferior.
19478 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19480 * Makefile.in (linuw_low_h): Move higher.
19481 (thread-db.o): Depend on $(linux_low_h).
19483 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19485 Rename "process" to "lwp" throughout.
19487 * linux-low.c (all_processes): Rename to...
19488 (all_lwps): ... this.
19489 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19490 (add_process): Rename to ...
19491 (add_lwp): ... this. Adjust.
19492 (linux_create_inferior): Adjust.
19493 (linux_attach_lwp): Adjust.
19494 (linux_attach): Adjust.
19495 (linux_kill_one_process): Rename to ...
19496 (linux_kill_one_lwp): ... this. Adjust.
19497 (linux_kill): Adjust.
19498 (linux_detach_one_process): Rename to ...
19499 (linux_detach_one_lwp): ... this. Adjust.
19500 (linux_detach): Adjust.
19501 (check_removed_breakpoint): Adjust.
19502 (status_pending_p): Adjust.
19503 (linux_wait_for_process): Rename to ...
19504 (linux_wait_for_lwp): ... this. Adjust.
19505 (linux_wait_for_event): Adjust.
19506 (send_sigstop): Adjust.
19507 (wait_for_sigstop): Adjust.
19508 (stop_all_processes): Rename to ...
19509 (stop_all_lwps): ... this.
19510 (linux_resume_one_process): Rename to ...
19511 (linux_resume_one_lwp): ... this. Adjust.
19512 (linux_set_resume_request, linux_continue_one_thread)
19513 (linux_queue_one_thread, resume_status_pending_p)
19514 (usr_store_inferior_registers, regsets_store_inferior_registers)
19515 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19517 * linux-low.h (get_process): Rename to ...
19518 (get_lwp): ... this. Adjust.
19519 (get_thread_process): Rename to ...
19520 (get_thread_lwp): ... this. Adjust.
19521 (get_process_thread): Rename to ...
19522 (get_lwp_thread): ... this. Adjust.
19523 (struct process_info): Rename to ...
19524 (struct lwp_info): ... this.
19525 (all_processes): Rename to ...
19526 (all_lwps): ... this.
19527 * proc-service.c (ps_lgetregs): Adjust.
19528 * thread-db.c (thread_db_create_event, find_one_thread)
19529 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19531 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19533 * server.c (handle_query): Handle "qAttached".
19535 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19537 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19538 GPLv3, update license URL.
19540 2009-03-01 Doug Evans <dje@google.com>
19542 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19543 (server_h): Add gdb_signals.h.
19544 (signals.o): Update.
19545 * server.h (target_signal_from_host,target_signal_to_host_p)
19546 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19548 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19550 * remote-utils.c (getpkt): Also generate remote-debug
19551 information if noack_mode is set.
19553 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19555 * server.c (handle_query): Report qXfer:siginfo:read and
19556 qXfer:siginfo:write as supported and handle them.
19557 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19558 * linux-low.c (linux_xfer_siginfo): New.
19559 (linux_target_ops): Set it.
19561 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19563 * server.c (gdbserver_usage): Mention --remote-debug.
19564 (main): Accept '--remote-debug' switch.
19566 2009-01-18 Doug Evans <dje@google.com>
19568 * regcache.c (new_register_cache): No need to check result of xcalloc.
19569 * server.c (handle_search_memory): Back out calls to xmalloc,
19570 result is checked and error is returned to user upon failure.
19571 (handle_query): Ditto. Add more checks for result of malloc.
19572 (handle_v_cont): Check result of malloc, report error back to
19574 (handle_v_run): Ditto. Call freeargv.
19575 * server.h (freeargv): Declare.
19576 * utils.c (freeargv): New fn.
19578 2009-01-15 Doug Evans <dje@google.com>
19580 * gdbreplay.c (perror_with_name): Make arg const char *.
19581 * server.h (target_signal_to_name): Make return type const char *.
19582 * thread-db.c (thread_db_err_str): Make return type const char *.
19583 * utils.c (perror_with_name): Make arg const char *.
19585 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19587 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19588 when handling a EXIT_PROCESS_DEBUG_EVENT.
19590 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19592 * gdbreplay.c (gdbreplay_version): Update copyright year.
19593 * server.c (gdbserver_version): Likewise.
19595 2009-01-05 Doug Evans <dje@google.com>
19597 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19598 (handle_extended_wait): Improve comment.
19600 2008-12-13 Doug Evans <dje@google.com>
19602 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19603 * server.h (ATTR_MALLOC): New macro.
19604 (xmalloc,xcalloc,xstrdup): Declare.
19605 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19606 * inferiors.c: Ditto.
19607 * linux-low.c: Ditto.
19608 * mem-break.c: Ditto.
19609 * regcache.c: Ditto.
19610 * remote-utils.c: Ditto.
19613 * win32-low.c: Ditto.
19615 2008-12-12 Doug Evans <dje@google.com>
19617 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19618 in debugging printf.
19620 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19622 2008-12-09 Doug Evans <dje@google.com>
19624 * linux-low.h (struct process_info): Delete member tid, unused.
19625 * thread-db.c (find_one_thread): Update.
19626 (maybe_attach_thread): Update.
19628 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19630 * target.h (struct target_ops): Add qxfer_osdata member.
19631 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19633 (linux_qxfer_osdata): New functions.
19634 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19636 * server.c (handle_query): Handle "qXfer:osdata:read:".
19637 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19638 (buffer_xml_printf): New functions.
19639 * server.h (struct buffer): New.
19640 (buffer_grow_str, buffer_grow_str0): New macros.
19641 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19642 (buffer_xml_printf): Declare.
19644 2008-11-24 Doug Evans <dje@google.com>
19646 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19648 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19650 * server.c (handle_v_run): Always use the supplied argument list.
19652 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19654 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19655 (xtensa_regmap_table): Add entry for scompare1.
19657 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19659 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19660 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19661 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19662 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19663 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19664 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19665 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19666 XML target descriptions.
19667 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19668 when inferior is running on an ISA 2.05 or later processor. Add
19669 special case to return offset for full 64-bit slot of FPSCR when
19672 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19674 * Makefile.in (SFILES, clean): Added sparc64 files.
19675 (reg-sparc64.o, reg-sparc64.c): New.
19676 * configure.srv (sparc*-*-linux*): New configuration.
19677 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19678 syscall arguments for SPARC.
19679 (regsets_store_inferior_registers): Likewise.
19680 * linux-sparc-low.c: New file.
19682 2008-10-21 Doug Evans <dje@google.com>
19684 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19685 (READLINE_DIR,READLINE_DEP): Delete.
19686 (INTERNAL_CFLAGS): Update.
19687 (LINTFLAGS): Update.
19689 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19691 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19692 whole argv from the last run, not just argv[0].
19694 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19696 * regcache.c (new_register_cache): Return NULL if the register
19697 cache size isn't known yet.
19698 (free_register_cache): Avoid dereferencing a NULL regcache.
19700 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19702 * configure.srv: Merge MIPS and MIPS64.
19704 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19706 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19708 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19710 * Makefile.in: Add required vsx dependencies.
19712 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19713 Declare init_registers_powerpc_vsx32l.
19714 Declare init_registers_powerpc_vsx64l.
19715 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19716 (ppc_arch_setup): Check for VSX in hwcap.
19717 (ppc_fill_vsxregset): New function.
19718 (ppc_store_vsxregset): New function.
19719 Add new VSX entry in regset_info target_regsets.
19721 * configure.srv: Add new VSX dependencies.
19723 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19725 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19726 (remote_open): Set or clear transport_is_reliable.
19727 (putpkt_binary): Don't expect acks in noack mode.
19728 (getpkt): Don't send ack/nac in noack mode.
19729 * server.c (handle_general_set): Handle QStartNoAckMode.
19730 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19732 (main): Reset noack_mode on every connection.
19733 * server.h (noack_mode): Declare.
19735 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19737 * Makefile.in (GDBREPLAY_OBS): New variable.
19738 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19740 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19741 Daniel Jacobowitz <dan@codesourcery.com>
19743 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19744 (usr_store_inferior_registers): Likewise.
19745 (regsets_store_inferior_registers): Likewise.
19747 2008-07-31 Rolf Jansen <rj@surtec.com>
19748 Pedro Alves <pedro@codesourcery.com>
19750 * configure.ac: Check for memmem declaration.
19751 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19752 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19753 (disable_packet_qfThreadInfo): Unconditionally compile.
19754 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19755 * configure, config.in: Regenerate.
19757 2008-07-28 Doug Kwan <dougkwan@google.com>
19759 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19760 (linux_write_memory): Remove declaration of errno.
19762 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19764 * linux-low.c (handle_extended_wait): Do not use "status"
19765 variable uninitialized.
19767 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19769 * server.c (handle_v_attach): Inhibit reporting dll changes.
19771 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19773 * remote-utils.c (prepare_resume_reply): If requested, don't
19774 output "thread:TID" in the T stop reply.
19776 * server.c (disable_packet_vCont, disable_packet_Tthread)
19777 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19778 (handle_query): If requested, disable support for qC, qfThreadInfo
19780 (handle_v_requests): If requested, disable support for vCont.
19781 (gdbserver_show_disableable): New.
19782 (main): Handle --disable-packet and --disable-packet=LIST.
19784 * server.h (disable_packet_vCont, disable_packet_Tthread)
19785 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19787 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19789 * server.c (gdbserver_usage): Mention --version.
19791 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19793 * Makefile.in (gdbreplay.o): New rule.
19795 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19797 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19798 message, not gdbserver.
19800 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19801 Nathan Sidwell <nathan@codesourcery.com>
19802 Joseph Myers <joseph@codesourcery.com>
19804 * acinclude.m4: Include ../../config/acx.m4.
19805 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19806 * configure, config.in: Regenerate.
19807 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19808 * server.c (gdbserver_version): Print PKGVERSION.
19809 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19810 (main): Adjust gdbserver_usage calls.
19811 * gdbreplay.c (version, host_name): Add declarations.
19812 (gdbreplay_version, gdbreplay_usage): New.
19813 (main): Accept --version and --help options.
19815 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19817 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19818 (arm_breakpoint_at): Handle Thumb.
19819 (the_low_target): Add comment.
19821 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19823 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19825 2008-05-09 Doug Evans <dje@google.com>
19827 * server.h (decode_search_memory_packet): Declare.
19828 * remote-utils.c (decode_search_memory_packet): New fn.
19829 * server.c (handle_search_memory_1): New fn.
19830 (handle_search_memory): New fn.
19831 (handle_query): Process qSearch:memory packets.
19833 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19835 * regcache.c (registers_length): Remove.
19836 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19837 full register packet.
19838 * regcache.h (registers_length): Remove prototype.
19839 * server.h (PBUFSIZ): Define to 16384.
19841 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19843 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19844 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19845 powerpc-64l.o, and powerpc-altivec64l.o.
19846 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19847 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19848 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19849 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19850 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19853 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19854 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19855 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19856 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19857 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19858 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19859 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19860 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19861 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19862 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19865 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19866 (init_registers_powerpc_32l): ... this new prototype.
19867 (init_registers_powerpc_32): Remove, replace by ...
19868 (init_registers_powerpc_altivec32l): ... this new prototype.
19869 (init_registers_powerpc_e500): Remove, replace by ...
19870 (init_registers_powerpc_e500l): ... this new prototype.
19871 (init_registers_ppc64): Remove, replace by ...
19872 (init_registers_powerpc_64l): ... this new prototype.
19873 (init_registers_powerpc_64): Remove, replace by ...
19874 (init_registers_powerpc_altivec64l): ... this new prototype.
19875 (ppc_num_regs): Set to 73.
19876 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19877 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19878 (ppc_cannot_store_register): Handle orig_r3 and trap.
19879 (ppc_arch_setup): Update init_registers_... calls.
19880 (ppc_fill_gregset): Handle orig_r3 and trap.
19882 * inferiors.c (clear_inferiors): Reset current_inferior.
19884 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19886 * acinclude.m4: Add override.m4.
19887 * configure: Regenerate.
19889 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19891 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19892 initial call to init_register_ppc64.
19894 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19896 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19897 single powerpc*-*-linux* case.
19898 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19900 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19902 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19903 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19905 * linux-ppc-low.c: Include <elf.h>.
19906 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19907 (ppc_hwcap): New global variable.
19908 (ppc_regmap): Remove __SPE__ #ifdef sections.
19909 (ppc_regmap_e500): New global variable.
19910 (ppc_cannot_store_register): Update __SPE__ special case.
19911 (ppc_get_hwcap): New function.
19912 (ppc_arch_setup): Use it to determine whether inferior supports
19913 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19914 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19915 Do not access registers if target does not support AltiVec.
19916 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19917 Do not access registers if target does not support SPE.
19918 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19920 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19922 * linux-low.c (disabled_regsets, num_regsets): New.
19923 (use_regsets_p): Delete.
19924 (linux_wait_for_process): Clear disabled_regsets.
19925 (regsets_fetch_inferior_registers): Check and set it.
19926 (regsets_store_inferior_registers): Likewise.
19927 (linux_fetch_registers, linux_store_registers): Do not use
19929 (initialize_low): Allocate disabled_regsets.
19931 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19933 * Makefile.in (LIBOBJS): New.
19934 (OBS): Use LIBOBJS.
19935 (memmem.o): New rule.
19936 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19937 * configure: Regenerated.
19939 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19941 * server.c (handle_query): Never return "unsupported" for
19942 qXfer:features:read queries.
19944 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19946 * server.c (get_features_xml): Fix inverted condition.
19947 (handle_query): Always support qXfer:feature:read.
19949 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19951 * server.c (wrapper_argv): New.
19952 (start_inferior): Handle wrapper_argv. If set, expect an extra
19954 (gdbserver_usage): Document --wrapper.
19955 (main): Parse --wrapper.
19957 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19959 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19960 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19961 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19962 (ppc_set_pc): Likewise.
19963 (ppc_arch_setup): New function.
19964 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19965 of collect_register.
19966 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19968 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19970 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19971 instead of linux-ppc64-low.o.
19972 * linux-ppc64-low.c: Remove file.
19973 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19974 (linux-ppc64-low.o): Remove rule.
19976 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19977 (init_registers_powerpc_64): Likewise.
19978 (ppc_regmap): Conditionally define depending on __powerpc64__.
19979 (ppc_cannot_store_register): Do not special-case "fpscr" when
19980 compiled on __powerpc64__.
19981 (ppc_collect_ptrace_register): New function.
19982 (ppc_supply_ptrace_register): New function.
19983 (ppc_breakpoint): Change type to "unsigned int".
19984 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19985 (the_low_target): Conditionally provide initializers for the
19986 arch_setup member depending on __powerpc64__. Install
19987 collect_ptrace_register and supply_ptrace_register members.
19989 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19991 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19992 * server.c (gdbserver_xmltarget): Define.
19993 (get_features_xml): Use it to replace "target.xml" and arch_string.
19995 * configure.srv: Remove srv_xmltarget. Add XML files that were
19996 mentioned there to srv_xmlfiles instead. Remove conditional tests
19997 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19998 srv_xmlfiles and srv_regobj to include all possible choices.
19999 * configure.ac (srv_xmltarget): Remove.
20000 (srv_xmlfiles): Do not add "target.xml".
20001 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20002 checks for supplementary target information.
20003 * configure: Regenerate.
20004 * Makefile.in (XML_TARGET): Remove.
20005 (target.xml): Remove rule.
20006 (clean): Do not clean up target.xml.
20007 (.PRECIOUS): Do not mention target.xml.
20009 * target.h (struct target_ops): Remove arch_string member.
20010 * linux-low.c (linux_arch_string): Remove.
20011 (linux_target_ops): Remove arch_string initializer.
20012 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20013 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20014 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20015 * spu-low.c (spu_arch_string): Remove.
20016 (spu_target_ops): Remove arch_string initializer.
20017 * win32-low.c (win32_arch_string): Remove.
20018 (win32_target_ops): Remove arch_string initializer.
20019 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20020 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20021 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20023 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20025 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20026 by collect_ptrace_register and supply_ptrace_register hooks.
20027 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20028 instead of checking for the_low_target.left_pad_xfer.
20029 (usr_store_inferior_registers): Use collect_ptrace_register callback
20030 instead of checking for the_low_target.left_pad_xfer.
20032 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20033 (s390_supply_ptrace_register): Likewise.
20034 (s390_fill_gregset): Call s390_collect_ptrace_register.
20035 (the_low_target): Update.
20037 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20038 (ppc_supply_ptrace_register): Likewise.
20039 (the_low_target): Update.
20041 * linux-i386-low.c (the_low_target): Update.
20042 * linux-x86-64-low.c (the_low_target): Update.
20044 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20046 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20047 reg-s390.o and reg-s390x.o.
20049 * linux-low.c (new_inferior): New global variable.
20050 (linux_create_inferior, linux_attach): Set it.
20051 (linux_wait_for_process): Call the_low_target.arch_setup after the
20052 target has stopped for the first time.
20053 (initialize_low): Do not call the_low_target.arch_setup.
20055 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20056 (s390_set_pc): Likewise.
20057 (s390_arch_setup): New function.
20058 (the_low_target): Use s390_arch_setup as arch_setup routine.
20060 * regcache.c (realloc_register_cache): New function.
20061 (set_register_cache): Call it for each existing regcache.
20063 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20065 * server.h (init_registers): Remove prototype.
20067 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20068 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20069 instead of init_registers ().
20070 * linux-arm-low.c (init_registers_arm): Add prototype.
20071 (init_registers_arm_with_iwmmxt): Likewise.
20072 (the_low_target): Add initializer for arch_setup field.
20073 * linux-cris-low.c (init_registers_cris): Add prototype.
20074 (the_low_target): Add initializer for arch_setup field.
20075 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20076 (the_low_target): Add initializer for arch_setup field.
20077 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20078 (the_low_target): Add initializer for arch_setup field.
20079 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20080 (the_low_target): Add initializer for arch_setup field.
20081 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20082 (the_low_target): Add initializer for arch_setup field.
20083 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20084 (the_low_target): Add initializer for arch_setup field.
20085 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20086 (init_registers_mips64_linux): Likewise.
20087 (the_low_target): Add initializer for arch_setup field.
20088 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20089 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20090 (the_low_target): Add initializer for arch_setup field.
20091 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20092 (init_registers_powerpc_64): Likewise.
20093 (the_low_target): Add initializer for arch_setup field.
20094 * linux-s390-low.c (init_registers_s390): Add prototype.
20095 (init_registers_s390x): Likewise.
20096 (the_low_target): Add initializer for arch_setup field.
20097 * linux-sh-low.c (init_registers_sh): Add prototype.
20098 (the_low_target): Add initializer for arch_setup field.
20099 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20100 (the_low_target): Add initializer for arch_setup field.
20101 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20102 (the_low_target): Add initializer for arch_setup field.
20104 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20105 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20106 instead of init_registers ().
20107 * win32-arm-low.c (init_registers_arm): Add prototype.
20108 (the_low_target): Add initializer for arch_setup field.
20109 * win32-i386-low.c (init_registers_i386): Add prototype.
20110 (the_low_target): Add initializer for arch_setup field.
20112 * spu-low.c (init_registers_spu): Add prototype.
20113 (initialize_low): Call initialie_registers_spu () instead of
20114 initialize_registers ().
20116 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20118 * server.c (handle_v_requests): When handling the vRun and vAttach
20119 packets, if already debugging a process, don't kill it. Return an
20122 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20124 * server.c (handle_query): Correct length check.
20126 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20128 * win32-low.c (do_initial_child_stuff): Add process handle
20129 parameter. Set current_process_handle and current_process_id from the
20130 parameters. Clear globals.
20131 (win32_create_inferior): Don't set current_process_handle and
20132 current_process_id here. Instead pass them on the call to
20133 do_initial_child_stuff.
20134 (win32_attach): Likewise.
20135 (win32_clear_inferiors): New.
20136 (win32_kill): Don't close the current process handle or the
20137 current thread handle here. Instead call win32_clear_inferiors.
20138 (win32_detach): Don't open a new handle to the process. Call
20139 win32_clear_inferiors.
20140 (win32_join): Don't rely on current_process_handle; open a new
20141 handle using the process id.
20142 (win32_wait): Call win32_clear_inferiors when the inferior process
20145 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20147 * server.c (monitor_show_help): Add "exit".
20149 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20151 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20152 (clean): Add reg-xtensa.c.
20153 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20154 * configure.srv (xtensa*-*-linux*) New target.
20155 * linux-xtensa-low.c: New.
20156 * xtensa-xtregs.c: New.
20158 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20160 * hostio.c: Don't include errno.h.
20161 (errno_to_fileio_errno): Move to hostio-errno.
20162 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20163 error number outputting to the target->hostio_last_error callback.
20164 (hostio_packet_error): Use FILEIO_EINVAL directly.
20165 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20166 calls to hostio_error.
20167 * hostio-errno.c: New.
20168 * server.h (hostio_last_error_from_errno): Declare.
20169 * target.h (target_ops): Add hostio_last_error member.
20170 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20171 as hostio_last_error handler.
20172 * spu-low.c (spu_target_ops): Likewise.
20173 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20174 (wince_hostio_last_error): New functions.
20175 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20176 as hostio_last_error handler.
20177 (win32_target_ops) [!_WIN32_WCE]: Register
20178 hostio_last_error_from_errno as hostio_last_error handler.
20179 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20180 (hostio-errno.o): New rule.
20181 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20182 * configure.srv (srv_hostio_err_objs): New variable. Default to
20184 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20185 * configure: Regenerate.
20187 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20189 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20190 (linux_kill, linux_detach): Clean up the process list.
20191 * remote-utils.c (remote_open): Improve port number parsing.
20192 (putpkt_binary, input_interrupt): Only send interrupts if the target
20194 * server.c (extended_protocol): Make static.
20195 (attached): Define earlier.
20196 (exit_requested, response_needed, program_argv): New variables.
20197 (target_running): New.
20198 (start_inferior): Clear attached here.
20199 (attach_inferior): Set attached here.
20200 (require_running): Define.
20201 (handle_query): Use require_running and target_running. Implement
20203 (handle_v_attach, handle_v_run): New.
20204 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20205 (gdbserver_usage): Update.
20206 (main): Redo argument parsing. Handle --debug and --multi. Handle
20207 --attach along with other options or after the port. Save
20208 program_argv. Support no initial program. Resynchronize
20209 communication with GDB after an error. Handle "monitor exit".
20210 Use require_running and target_running. Always allow the extended
20211 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20212 restart in extended mode.
20213 * README: Refer to the GDB manual. Update --attach usage.
20215 2007-12-20 Andreas Schwab <schwab@suse.de>
20217 * linux-low.c (STACK_SIZE): Define.
20218 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20219 (linux_test_for_tracefork): Likewise.
20221 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20223 * linux-low.c (linux_wait_for_event): Update messages. Do not
20224 reinsert auto-delete breakpoints.
20225 * mem-break.c (struct breakpoint): Change return type of handler to
20227 (set_breakpoint_at): Update handler type.
20228 (reinsert_breakpoint_handler): Return 1 instead of calling
20230 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20232 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20233 * mem-break.h (set_breakpoint_at): Update handler type.
20234 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20235 * win32-low.c (auto_delete_breakpoint): New.
20236 (get_child_debug_event): Use it.
20238 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20240 * configure.ac: Check for pread and pwrite.
20241 * hostio.c (handle_pread): Fall back to lseek and read.
20242 (handle_pwrite): Fall back to lseek and write.
20243 * config.in, configure: Regenerated.
20245 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20247 * server.c (myresume): Add own_buf argument.
20248 (main): Update calls.
20250 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20252 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20253 * remote-utils.c (remote_open): Do not call disable_async_io.
20254 (block_async_io): Delete.
20255 (unblock_async_io): Make static.
20256 (initialize_async_io): New.
20257 * server.c (handle_v_cont): Handle async I/O here.
20258 (myresume): Likewise. Move other common resume tasks here...
20259 (main): ... from here. Call initialize_async_io. Disable async
20260 I/O before the main loop.
20261 * server.h (initialize_async_io): Declare.
20262 (block_async_io, unblock_async_io): Delete prototypes.
20263 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20265 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20267 * remote-utils.c (readchar): Allow binary data in received messages.
20269 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20271 * win32-low.c (attaching): New global.
20272 (win32_create_inferior): Clear the `attaching' global.
20273 (win32_attach): Set the `attaching' global.
20274 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20275 attaching. Only set a breakpoint at the entry point if not
20278 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20280 * server.c (main): Don't report dll events on the initial
20281 connection on attaches.
20283 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20285 * server.c (main): Relax numerical bases supported for the pid of
20286 the --attach command line argument.
20288 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20290 * win32-low.c (win32_attach): Call OpenProcess before
20291 DebugActiveProcess, not after. Add last error output to error
20294 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20296 * win32-low.c (win32_get_thread_context)
20297 (win32_set_thread_context): New functions.
20298 (thread_rec): Use win32_get_thread_context.
20299 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20300 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20303 2007-12-03 Leo Zayas
20304 Pedro Alves <pedro_alves@portugalmail.pt>
20306 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20308 (child_add_thread): Minor cleanup.
20309 (child_continue): Resume artificially suspended threads before
20310 calling ContinueDebugEvent.
20311 (suspend_one_thread): New.
20312 (fake_breakpoint_event): New.
20313 (get_child_debug_event): Change return type to int. Check here if
20314 gdb sent an interrupt request. If a soft interrupt was requested,
20315 fake a breakpoint event. Return 0 if there is no event to handle,
20317 (win32_wait): Don't check here if gdb sent an interrupt request.
20318 Ensure there is a valid event to handle.
20319 (win32_request_interrupt): Add soft interruption method as last
20322 2007-12-03 Leo Zayas
20323 Pedro Alves <pedro_alves@portugalmail.pt>
20325 * win32-low.h (win32_thread_info): Add descriptions to the
20326 structure members. Replace `suspend_count' counter by a
20328 * win32-low.c (thread_rec): Update condition of when to get the
20329 context from the inferior. Rely on ContextFlags being set if it
20330 has already been retrieved. Only suspend the inferior thread if
20331 we haven't already. Warn if that fails.
20332 (continue_one_thread): s/suspend_count/suspended/. Only call
20333 ResumeThread once. Warn if that fails.
20335 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20337 * win32-low.c (win32_wait): Don't read from the inferior when it
20338 has already exited.
20340 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20342 * Makefile.in (win32_low_h): New variable.
20343 (win32-low.o): Add dependency on $(win32_low_h).
20344 (win32-arm-low.o, win32-i386-low.o): New rules.
20346 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20348 * hostio.c: Correct copyright year.
20350 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20352 * Makefile.in (OBS): Add hostio.o.
20353 (hostio.o): New rule.
20354 * server.h (handle_vFile): Declare.
20355 * hostio.c: New file.
20356 * server.c (handle_v_requests): Take packet_len and new_packet_len
20357 for binary packets. Call handle_vFile.
20358 (main): Update call to handle_v_requests.
20360 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20362 * linux-low.c: Include <sched.h>.
20364 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20366 * linux-low.c (linux_tracefork_grandchild): New.
20367 (linux_tracefork_child): Use clone.
20368 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20370 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20372 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20374 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20376 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20378 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20380 * inferiors.c (change_inferior_id): Delete.
20381 (add_pid_to_list, pull_pid_from_list): New.
20382 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20383 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20384 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20385 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20386 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20387 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20388 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20389 (using_threads): Always set to 1.
20390 (handle_extended_wait): New.
20391 (add_process): Do not set TID.
20392 (linux_create_inferior): Set must_set_ptrace_flags.
20393 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20394 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20395 (linux_thread_alive): Rename TID argument to LWPID.
20396 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20397 (linux_wait_for_event): Do not use TID or check using_threads. Update
20398 call to dead_thread_notify. Call handle_extended_wait.
20399 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20400 (send_sigstop): Delete sigstop_sent.
20401 (wait_for_sigstop): Avoid TID.
20402 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20403 (linux_test_for_tracefork): New.
20404 (linux_lookup_signals): Use thread_db_active and
20405 linux_supports_tracefork_flag.
20406 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20407 * linux-low.h (get_process_thread): Avoid TID.
20408 (struct process_ifo): Move thread_known and tid to the end. Remove
20410 (linux_attach_lwp, thread_db_init): Update prototypes.
20411 * server.h (change_inferior_id): Delete prototype.
20412 (add_pid_to_list, pull_pid_from_list): New prototypes.
20413 * thread-db.c (thread_db_use_events): New.
20414 (find_first_thread): Rename to...
20415 (find_one_thread): ...this. Update callers and messages. Do not
20416 call fatal. Check thread_db_use_events. Do not call
20417 change_inferior_id or new_thread_notify.
20418 (maybe_attach_thread): Update. Do not call new_thread_notify.
20419 (thread_db_init): Set thread_db_use_events. Check use_events.
20420 * utils.c (fatal, warning): Correct message prefix.
20422 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20424 * Makefile.in (clean): Remove new files.
20425 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20426 (powerpc-64.o, powerpc-64.c): New rules.
20427 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20428 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20430 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20432 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20433 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20434 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20435 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20436 (target_regsets): Add AltiVec and SPE register sets.
20437 * configure.ac: Check for AltiVec and SPE.
20438 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20439 (ppc_fill_vrregset, ppc_store_vrregset): New.
20440 (target_regsets): Add AltiVec register set.
20441 * configure: Regenerated.
20443 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20445 * linux-low.c (O_LARGEFILE): Define.
20446 (linux_read_memory): Use /proc/PID/mem.
20447 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20448 * configure, config.in: Regenerated.
20450 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20452 * linux-low.c (linux_wait_for_event): Do not pass signals while
20455 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20457 * win32-low.c (create_process): New.
20458 (win32_create_inferior): Use create_process instead of
20459 CreateProcess. If create_process failed retry appending an ".exe"
20460 suffix. Store the GetLastError result immediatelly after
20461 create_process calls and use it on the call to error.
20463 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20465 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20467 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20469 * configure.ac: Switch license to GPLv3.
20471 2007-08-01 Michael Snyder <msnyder@access-company.com>
20473 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20475 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20477 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20479 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20480 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20481 CloseToolhelp32Snapshot.
20482 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20483 CloseToolhelp32Snapshot.
20485 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20487 * server.c (main): Check for inferior exit before main loop.
20489 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20491 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20492 instead of on tmp_desc.
20494 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20495 Daniel Jacobowitz <dan@codesourcery.com>
20497 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20498 (add_thread): Minor cleanups.
20499 (clear_inferiors): Move lower in the file. Clear the DLL
20501 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20502 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20503 (xml_escape_text): New.
20504 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20506 (handle_v_cont): Report errors.
20507 (gdbserver_version): Update.
20508 (main): Correct size of own_buf. Do not report initial DLL events.
20509 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20510 (unloaded_dll, xml_escape_text): New.
20511 * win32-low.c (enum target_waitkind): Update comments.
20512 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20513 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20514 (win32_EnumProcessModules, win32_GetModuleInformation)
20515 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20516 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20517 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20518 (win32_Module32First, win32_Module32Next, load_toolhelp)
20519 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20520 (get_child_debug_event): Handle DLL events.
20521 (win32_wait): Likewise.
20523 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20525 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20526 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20528 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20530 * win32-low.c (handle_output_debug_string): Ignore event if not
20533 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20535 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20537 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20539 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20541 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20543 * inferiors.c (change_inferior_id): Add comment.
20544 * linux-low.c (check_removed_breakpoint): Add an early
20545 prototype. Improve debug output.
20546 (linux_attach): Doc update.
20547 (linux_detach_one_process, linux_detach): Clean up before releasing
20549 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20550 * linux-low.h (struct process_info): Doc improvement.
20551 * mem-break.c (delete_all_breakpoints): New.
20552 * mem-break.h (delete_all_breakpoints): New prototype.
20553 * thread-db.c (find_first_thread): New.
20554 (thread_db_create_event): Call it instead of
20555 thread_db_find_new_threads. Clean up unused variables.
20556 (maybe_attach_thread): Remove first thread handling.
20557 (thread_db_find_new_threads): Use find_first_thread.
20558 (thread_db_get_tls_address): Likewise.
20560 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20562 * thread-db.c (thread_db_find_new_threads): Add prototype.
20563 (thread_db_create_event): Check for the main thread before adding
20565 (maybe_attach_thread): Only enable event reporting if TID == 0.
20566 (thread_db_get_tls_address): Check for new threads.
20568 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20570 * linux-low.c (linux_create_inferior): Try execv before execvp.
20571 * spu-low.c (spu_create_inferior): Likewise.
20573 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20575 * linux-low.c (linux_create_inferior): Change execv to execvp.
20576 * spu-low.c (spu_create_inferior): Likewies.
20578 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20580 * Makefile.in (clean): Clean new files instead of deleted ones.
20581 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20582 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20584 * configure.srv: Specify XML files and new regformats for MIPS and
20586 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20587 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20588 an entry for the restart register.
20589 (mips_cannot_fetch_register, mips_cannot_store_register)
20590 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20591 register names to match the XML descriptions.
20592 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20593 restart register instead of $0.
20595 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20596 Markus Deuling <deuling@de.ibm.com>
20598 * remote-utils.c (decode_xfer_write): New function.
20599 * server.h (decode_xfer_write): Add prototype.
20600 * server.c (handle_query): Add PACKET_LEN argument. Support
20601 qXfer:spu:read and qXfer:spu:write packets.
20602 (main): Pass packet_len to handle_query.
20603 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20604 * target.h (target_ops): Add qxfer_spu.
20606 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20608 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20609 accessing non-seekable spufs files.
20611 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20613 * server.c (handle_query): Add reply for qC packet.
20615 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20616 Leo Zayas <lerele@champenstudios@com>
20618 * server.h (check_remote_input_interrupt_request): New function.
20619 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20620 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20621 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20622 (check_remote_input_interrupt_request): New function.
20623 * server.h (check_remote_input_interrupt_request): Declare.
20624 * win32-low.c (winapi_DebugBreakProcess,
20625 winapi_GenerateConsoleCtrlEvent): New typedefs.
20626 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20628 (win32_wait): Check for remote interrupt request
20629 with check_remote_input_interrupt_request.
20630 (win32_request_interrupt): New function.
20631 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20633 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20635 * win32-low.c (debug_registers_changed,
20636 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20637 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20638 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20639 (thread_rec): Get context using the low target.
20640 (child_add_thread): Call thread_added on the low target,
20641 which does the same thing.
20643 (do_initial_child_stuff): Remove debug registers references.
20644 Set context using the low target. Resume threads after
20645 setting the contexts.
20646 (child_continue): Remove dead variable. Remove debug
20647 registers references.
20648 (child_fetch_inferior_registers): Go through the low target.
20649 (do_child_store_inferior_registers): Remove.
20650 (child_store_inferior_registers): Go through the low target.
20651 (win32_resume): Remove debug registers references.
20652 Set context using the low target.
20653 (handle_exception): Change return type to void. Don't record
20654 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20655 first chance exception.
20656 (get_child_debug_event): Change return type to void. Remove
20657 goto loop. Always return after waiting for debug event.
20658 (win32_wait): Convert to switch statement. Handle spurious
20661 * win32-i386-low.c (debug_registers_changed,
20662 debug_registers_used): New.
20663 (initial_stuff): Rename to ...
20664 (i386_initial_stuff): ... this. Clear debug registers
20666 (store_debug_registers): Delete.
20667 (i386_get_thread_context): New.
20668 (load_debug_registers): Delete.
20669 (i386_set_thread_context): New.
20670 (i386_thread_added): New.
20671 (single_step): Rename to ...
20672 (i386_single_step): ... this.
20673 (do_fetch_inferior_registers): Rename to ...
20674 (i386_fetch_inferior_register): ... this.
20675 (i386_store_inferior_register): New.
20676 (the_low_target): Adapt to new interface.
20678 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20679 (arm_get_thread_context): New.
20680 (arm_set_thread_context): New.
20682 (do_fetch_inferior_registers): Rename to ...
20683 (arm_fetch_inferior_register): ... this.
20684 (arm_store_inferior_register): New.
20685 (arm_wince_breakpoint): Reimplement as unsigned long.
20686 (arm_wince_breakpoint_len): Define.
20687 (the_low_target): Adapt to new interface.
20689 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20690 load_debug_registers. Add get_thread_context, set_thread_context,
20691 thread_added and store_inferior_register. Rename
20692 fetch_inferior_registers to fetch_inferior_register.
20693 (regptr): Remove declaration.
20695 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20697 * linux-low.c (linux_detach): Change return type to int. Return 0.
20698 * spu-low.c (spu_detach): Likewise.
20700 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20702 * target.h (target_ops): Change return type of detach to int.
20704 (join_inferior): New.
20705 * server.c (main): Don't skip detach support on mingw32.
20706 If the inferior doesn't support detaching return error.
20707 Call join_inferior instead of using waitpid.
20708 * linux-low.c (linux_join): New.
20709 (linux_target_op): Add linux_join.
20710 * spu-low.c (spu_join): New.
20711 (spu_target_ops): Add spu_join.
20712 * win32-low.c (win32_detach): Adapt to new interface.
20713 Reopen current_process_handle before detaching. Issue a child
20714 resume before detaching.
20716 (win32_target_op): Add win32_join.
20718 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20720 * win32-low.c (win32-attach): Fix return value.
20721 * target.h (target_ops): Describe ATTACH return values.
20723 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20725 * win32-low.c (GETPROCADDRESS): Define.
20726 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20727 (winapi_DebugSetProcessKillOnExit): Likewise.
20728 (win32_create_inferior): Force usage of ansi CreateProcessA.
20729 (win32_attach): Use GETPROCADDRESS.
20730 (win32_detach): Likewise.
20732 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20734 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20736 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20738 * win32-low.c: Commit leftover changes from 2007-03-29.
20740 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20742 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20743 fields short instead of int. Add explicit padding.
20744 (i387_cache_to_fsave): Remove unnecessary casts.
20745 (i387_fsave_to_cache): Doc fix.
20746 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20748 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20750 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20751 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20753 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20755 * configure.srv (arm*-*-mingw32ce*): Move near the other
20758 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20760 * configure.ac: Add errno checking.
20761 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20762 sys/file.h and malloc.h.
20763 (AC_CHECK_DECLS): Add perror.
20764 (srv_mingwce): Handle.
20765 * configure.srv (i[34567]86-*-cygwin*): Add
20766 win32-i386-low.o to srv_tgtobj.
20767 (i[34567]86-*-mingw*): Likewise.
20768 (arm*-*-mingw32ce*): Add case.
20769 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20770 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20771 [__MINGW32CE__] (strerror): New function.
20772 [__MINGW32CE__] (errno): Define to GetLastError.
20773 [__MINGW32CE__] (COUNTOF): New macro.
20774 (remote_open): Remove extra close call.
20775 * mem-break.c (delete_breakpoint_at): New function.
20776 * mem-break.h (delete_breakpoint_at): Declare.
20777 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20778 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20779 [USE_WIN32API] (read, write): Add char* casts.
20780 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20781 * server.h: Include wincecompat.h on Windows CE.
20782 [HAVE_ERRNO_H]: Check.
20783 (perror): Declare if not declared.
20784 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20785 (perror_with_name): Remove errno declaration.
20786 * wincecompat.h: New.
20787 * wincecompat.c: New.
20788 * win32-low.h: New.
20789 * win32-arm-low.c: New.
20790 * win32-i386-low.c: New.
20791 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20792 (OUTMSG2): Make it safe.
20794 (COUNTOF): New macro.
20795 (NUM_REGS): Get it from the low target.
20796 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20797 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20798 (thread_rec): Let low target handle debug registers.
20799 (child_add_thread): Likewise.
20800 (child_init_thread_list): Likewise.
20801 (continue_one_thread): Likewise.
20803 (do_child_fetch_inferior_registers): Move to ...
20804 * win32-i386-low.c: ... here, and rename to ...
20805 (do_fetch_inferior_registers): ... this.
20806 * win32-low.c (child_fetch_inferior_registers):
20807 Go through the low target.
20808 (do_child_store_inferior_registers): Use regptr.
20809 (strwinerror): New function.
20810 (win32_create_inferior): Handle Windows CE.
20811 Use strwinerror instead of strerror on Windows error
20812 codes. Add program to the error output.
20813 Don't close the main thread handle on Windows CE.
20814 (win32_attach): Use coredll.dll on Windows CE.
20815 (win32_kill): Close current process and current
20817 (win32_detach): Use coredll.dll on Windows CE.
20818 (win32_resume): Let low target handle debug registers, and
20820 (handle_exception): Add/Remove initial breakpoint. Avoid
20821 non-existant WSTOPSIG on Windows CE.
20822 (win32_read_inferior_memory): Cast to remove warning.
20823 (win32_arch_string): Go through the low target.
20824 (initialize_low): Call set_breakpoint_data with the low
20825 target's breakpoint.
20826 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20827 FOP_REGNUM, mappings): Move to ...
20828 * win32-i386-low.c: ... here.
20829 * win32-low.c (win32_thread_info): Move to ...
20830 * win32-low.h: ... here.
20831 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20832 win32-arm-low.c and wincecompat.c.
20833 (all:): Add $EXEEXT.
20834 (install-only:): Likewise.
20835 (gdbserver:): Likewise.
20836 (gdbreplay:): Likewise.
20837 * config.in: Regenerate.
20838 * configure: Regenerate.
20840 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20842 * win32-low.c: Rename typedef thread_info to
20843 win32_thread_info throughout.
20845 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20847 * win32-i386-low.c: Rename to ...
20848 * win32-low.c: ... this.
20849 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20850 * Makefile.in: Likewise.
20852 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20854 * remote-utils.c (monitor_output): Constify msg parameter.
20855 * server.h (monitor_output): Likewise.
20856 * win32-i386-low.c (handle_output_debug_string): New.
20857 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20858 handle_output_debug_string.
20859 (get_child_debug_event): Likewise.
20861 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20863 * server.c (main): Correct strtoul check.
20865 2007-03-27 Jon Ringle <jon@ringle.org>
20867 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20869 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20871 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20873 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20875 * terminal.h: Check HAVE_SGTTY_H.
20877 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20879 * remote-utils.c (remote_open): Print out the assigned port number.
20881 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20883 * remote-utils.c (monitor_output): New function.
20884 * server.c (debug_threads): Define here.
20885 (monitor_show_help): New function.
20886 (handle_query): Handle qRcmd.
20887 (main): Do not handle 'd' packet.
20888 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20889 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20892 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20894 * Makefile.in (EXEEXT): New.
20895 (clean): Use $(EXEEXT).
20897 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20899 * target.h (target_ops): Rename send_signal to request_interrupt,
20900 and remove enum target_signal parameter.
20901 * linux-low.c (linux_request_interrupt): Rename from
20902 linux_send_signal, and always send SIGINT.
20903 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20904 and always send SIGINT.
20905 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20907 (input_interrupt): Likewise.
20909 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20911 * server.c (get_features_xml): Check if target implemented
20913 * win32-i386-low.c (win32_arch_string): New.
20914 (win32_target_ops): Add win32_arch_string as arch_string member.
20916 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20918 * spu-low.c (spu_arch_string): New.
20919 (spu_target_ops): Add spu_arch_string.
20921 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20923 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20924 * configure.ac: Do not check for terminal.h.
20925 * configure, config.in: Regenerated.
20927 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20929 * Makefile.in (OBS): Add $(XML_BUILTIN).
20930 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20932 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20933 (arm-with-iwmmxt.c): New.
20934 * config.in, configure: Regenerate.
20935 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20936 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20937 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20938 (arm*-*-linux*): Add iWMMXt and regset support.
20939 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20940 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20941 (arm_store_wmmxregset, target_regsets): New.
20942 * server.c (get_features_xml): Take annex argument. Check builtin
20944 (handle_query): Handle multiple annexes.
20946 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20948 * remote-utils.c [USE_WIN32API] (read, write): Define.
20949 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20952 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20954 * linux-i386-low.c (the_low_target): Set arch_string.
20955 * linux-x86-64-low.c (the_low_target): Likewise.
20956 * linux-low.c (linux_arch_string): New.
20957 (linux_target_ops): Add it.
20958 * linux-low.h (struct linux_target_ops): Add arch_string.
20959 * server.c (write_qxfer_response): Use const void * for DATA.
20960 (get_features_xml): New.
20961 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20962 * target.h (struct target_ops): Add arch_string method.
20964 2007-01-03 Denis Pilat <denis.pilat@st.com>
20965 Daniel Jacobowitz <dan@codesourcery.com>
20967 * linux-low.c (linux_kill): Handle being called with no threads.
20968 * win32-i386-low.c (win32_kill): Likewise.
20969 (get_child_debug_event): Clear current_process_handle.
20971 2006-12-30 Denis PILAT <denis.pilat@st.com>
20972 Daniel Jacobowitz <dan@codesourcery.com>
20974 * remote-utils.c (remote_open): Check the type of specified
20975 serial port devices before opening them.
20976 * server.c (main): Kill the inferior if an error occurs during
20977 the first remote_open.
20979 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20981 * README: Update supported targets.
20983 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20985 * Makefile.in (clean): Remove reg-mips64.c.
20986 (reg-mips64.c, reg-mips64.o): New rules.
20987 * configure.srv: Handle mips64. Include regset support for mips.
20988 * linux-mips-low.c (union mips_register): New.
20989 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20990 (mips_breakpoint, mips_breakpoint_at): Use int.
20991 (mips_collect_register, mips_supply_register)
20992 (mips_collect_register_32bit, mips_supply_register_32bit)
20993 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20994 (mips_store_fpregset, target_regsets): New.
20995 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20997 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20999 * configure.srv: Add target "spu*-*-*".
21000 * Makefile.in (clean): Remove reg-spu.c.
21001 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21002 * spu-low.c: New file.
21004 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21006 * configure.ac: Correct td_thr_tls_get_addr test.
21007 * configure: Regenerated.
21009 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21011 * linux-low.c (linux_wait_for_event): Reformat. Use the
21012 pass_signals array.
21013 * remote-utils.c (decode_address_to_semicolon): New.
21014 * server.c (pass_signals, handle_general_set): New.
21015 (handle_query): Mention QPassSignals for qSupported.
21016 (main): Call handle_general_set.
21017 * server.h (pass_signals, decode_address_to_semicolon): New.
21019 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21021 * server.c (handle_query): Correct error handling for read_auxv.
21023 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21025 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21026 and srv_linux_thread_db to yes.
21027 * linux-s390-low.c (s390_fill_gregset): New function.
21028 (target_regsets): Define data structure.
21030 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21032 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21033 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21034 * config.in, configure: Regenerated.
21035 * inferiors.c (gdb_id_to_thread): New function.
21036 (gdb_id_to_thread_id): Use it.
21037 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21038 * linux-low.h (struct process_info): Add th member.
21039 (thread_db_get_tls_address): New prototype.
21040 * remote-utils.c (decode_address): Make non-static.
21041 * server.c (handle_query): Handle qGetTLSAddr.
21042 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21043 * target.h (struct target_ops): Add get_tls_address.
21044 * thread-db.c (maybe_attach_thread): Save the thread handle.
21045 (thread_db_get_tls_address): New.
21047 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21049 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21050 (linux_resume_one_process): Take a siginfo_t *. Update all
21051 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21052 (struct pending_signals): Add a siginfo_t.
21053 (linux_wait_for_process): Always set last_status.
21054 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21055 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21056 * linux-low.h (struct process_info): Add last_status.
21058 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21060 * remote-utils.c (try_rle): New function.
21061 (putpkt_binary): Use it.
21063 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21065 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21066 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21067 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21068 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21069 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21072 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21074 * server.c (terminal_fd): New variable.
21075 (old_foreground_pgrp): Likewise.
21076 (restore_old_foreground_pgrp): New function.
21077 (start_inferior): Record the terminal file descriptor in terminal_fd
21078 and its original foreground group in old_foreground_pgrp. Register
21079 restore_old_foreground_pgrp with atexit().
21081 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21083 * server.c (handle_query): Correct qPart to qXfer.
21085 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21087 * configure.ac: Check for more headers which are missing on
21088 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21089 * configure.srv: Add Cygwin and mingw32.
21090 * remote-utils.c: Don't include headers unconditionally which
21091 are missing on mingw32. Include <winsock.h> for mingw32.
21092 (remote_open): Adjust for mingw32 support. Flush
21093 standard error after writing to it.
21094 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21095 (unblock_async_io, enable_async_io, disable_async_io)
21096 (readchar, getpkt): Update for Winsock support.
21097 (prepare_resume_reply): Expect a protocol signal number.
21098 * server.c: Disable <sys/wait.h> on mingw32.
21099 (start_inferior): Adjust for mingw32 support. Flush
21100 standard error after writing to it.
21101 (attach_inferior): Likewise. Use protocol signal
21103 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21105 * win32-i386-low.c: New file.
21106 * Makefile.in (XM_CLIBS): Set.
21107 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21108 (win32-i386-low.o): New dependency rule.
21109 * linux-low.c (linux_wait): Use target signal numbers.
21110 * target.h (struct target_ops): Doc fix.
21111 * server.h (target_signal_to_name): New prototype.
21112 * gdbreplay.c: Don't include headers unconditionally which
21113 are missing on mingw32. Include <winsock.h> for mingw32.
21114 (remote_close, remote_open): Adjust for Winsock support.
21115 * configure, config.in: Regenerated.
21117 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21119 * server.c (decode_xfer_read, write_qxfer_response): New.
21120 (handle_query): Take a packet length argument. Handle
21121 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21122 the qSupported response.
21123 (main): Update call to handle_query.
21125 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21127 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21128 (putpkt_binary): Renamed from putpkt and adjusted for binary
21130 (putpkt): New wrapper for putpkt_binary.
21131 (readchar): Don't mask off the high bit.
21132 (decode_X_packet): New function.
21133 * server.c (main): Call putpkt_binary if a handler sets the packet
21134 length. Save the length of the incoming packet. Handle 'X'.
21135 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21137 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21139 * server.c (handle_query): Handle qSupported.
21141 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21143 * remote-utils.c (all_symbols_looked_up): New variable.
21144 (look_up_one_symbol): Check it.
21145 * server.h (look_up_one_symbol): New declaration.
21146 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21148 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21150 * Makefile.in (linux-arm-low.o): Update dependencies.
21151 * linux-arm-low.c: Include "gdb_proc_service.h".
21152 (PTRACE_GET_THREAD_AREA): Define.
21153 (ps_get_thread_area): New function.
21155 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21157 * configure.srv (m68k*-*-uclinux*): New target.
21158 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21159 (linux_resume_one_process): Remove extraneous cast.
21160 (linux_read_offsets): New.
21161 (linux_target_op): Add linux_read_offsets on mmuless systems.
21162 * server.c (handle_query): Add qOffsets logic.
21163 * target.h (struct target_ops): Add read_offsets.
21165 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21167 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21168 (PTRACE_GET_THREAD_AREA): Define.
21169 (ps_get_thread_area): New function.
21170 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21171 (linux-x86-64-low.o): Update.
21173 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21175 * configure.ac: Remove checks for prfpregset_t.
21176 * gdb_proc_service.h: New file.
21177 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21178 new "gdb_proc_service.h".
21179 * proc-service.c: Likewise.
21180 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21181 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21182 * Makefile.in (gdb_proc_service_h): Updated.
21183 * configure, config.in: Regenerated.
21185 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21187 * remote-utils.c (prepare_resume_reply): Move declaration
21188 of gdb_id_from_wait to the top of the block.
21190 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21192 * linux-low.c (regsets_store_inferior_registers): Read the regset
21193 from the target before filling it.
21195 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21197 * server.c (attach_inferior): Return SIGTRAP for a successful
21200 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21202 * Makefile.in (OBS): Add version.o.
21203 (STAGESTUFF): Delete.
21204 (version.o): Add dependencies.
21205 (version.c): Replace rule.
21206 (clean): Remove version.c.
21207 * server.c (gdbserver_version): New.
21208 (gdbserver_usage): Use printf.
21209 (main): Handle --version and --help.
21210 * server.h (version, host_name): Add declarations.
21212 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21224 * linux-x86-64-low.c:
21226 * linux-s390-low.c:
21227 * linux-ppc64-low.c:
21229 * linux-mips-low.c:
21230 * linux-m68k-low.c:
21231 * linux-m32r-low.c:
21234 * linux-ia64-low.c:
21235 * linux-i386-low.c:
21236 * linux-crisv32-low.c:
21248 * gdbserver.1: Add (C) after Copyright. Update the FSF
21251 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21253 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21254 (arm_breakpoint_at): Recognize both breakpoints.
21255 (the_low_target): Use the correct breakpoint instruction.
21257 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21259 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21260 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21261 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21262 (the_low_target): Update.
21264 2005-10-25 Andreas Schwab <schwab@suse.de>
21266 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21268 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21269 (ia64_num_regs): Reduce to 462.
21271 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21273 * acinclude.m4: Correct quoting.
21274 * aclocal.m4: Regenerated.
21276 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21277 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21278 (thread_db_init): Call thread_db_err_str.
21279 * configure.ac: Check for TD_VERSION.
21280 * config.in, configure: Regenerated.
21282 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21284 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21286 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21288 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21289 is not available. Define HAVE_PTRACE_GETREGS if it is.
21290 * config.in, configure: Regenerated.
21291 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21292 * linux-i386-low.c, linux-m68k-low.c: Update to use
21293 HAVE_PTRACE_GETREGS.
21294 * linux-low.c (regsets_fetch_inferior_registers)
21295 (regsets_store_inferior_registers): Only return 0 if we processed
21297 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21298 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21300 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21302 * inferiors.c (struct thread_info): Add gdb_id.
21303 (add_thread): Add gdb_id argument.
21304 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21305 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21306 calls to add_thread.
21307 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21308 * server.c (handle_query): Use thread_to_gdb_id.
21309 (handle_v_cont, main): Use gdb_id_to_thread_id.
21310 * server.h (add_thread): Update prototype.
21311 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21314 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21316 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21317 left-padded registers.
21318 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21319 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21321 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21323 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21324 * configure: Regenerate.
21325 * config.in: Regenerate.
21326 * server.h (NEED_DECLARATION_STRERROR):
21327 Replace with !HAVE_DECL_STRERROR.
21329 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21331 * linux-low.c (linux_wait, linux_send_signal): Don't test
21332 an unsigned long variable for > 0 if it could be MAX_ULONG.
21333 * server.c (myresume): Likewise.
21334 * target.c (set_desired_inferior): Likewise.
21336 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21338 * configure.ac: Simplify and improve check for socklen_t.
21339 * configure, config.in: Regenerate.
21341 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21343 * acconfig.h: Remove.
21344 * configure.ac: Add a test for socklen_t. Use three-argument
21345 AC_DEFINE throughout.
21346 * config.in: Regenerated using autoheader 2.59.
21347 * configure: Regenerated.
21349 * gdbreplay.c (socklen_t): Provide a default.
21350 (remote_open): Use socklen_t.
21351 * remote-utils.c (socklen_t): Provide a default.
21352 (remote_open): Use socklen_t.
21353 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21356 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21358 * linux-low.c (linux_read_memory, linux_write_memory)
21359 (linux_read_auxv): Likewise.
21360 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21361 (check_mem_write): Likewise.
21362 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21364 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21365 (registers_from_string, register_data): Likewise.
21366 * server.c (handle_query, main): Likewise.
21367 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21368 (decode_M_packet): Likewise.
21369 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21370 * target.h (struct target_ops): Update read_memory, write_memory,
21372 (read_inferior_memory, write_inferior_memory): Update.
21373 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21374 to unsigned char *.
21375 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21376 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21377 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21378 linux-s390-low.c, linux-sh-low.c: Update for changes in
21379 read_inferior_memory and the_low_target->breakpoint.
21381 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21383 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21384 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21385 * configure.srv: Add powerpc64-*-linux*.
21386 * linux-ppc64-low.c: New file.
21388 2005-05-23 Orjan Friberg <orjanf@axis.com>
21390 * linux-cris-low.c: New file with support for CRIS.
21391 * linux-crisv32-low.c: Ditto for CRISv32.
21392 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21393 (clean): Add reg-cris.c and reg-crisv32.c.
21394 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21395 reg-crisv32.o, and reg-crisv32.c to make rules.
21396 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21397 recognized targets.
21399 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21401 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21402 of sizeof (PTRACE_XFER_TYPE).
21403 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21405 2005-05-12 Orjan Friberg <orjanf@axis.com>
21407 * target.h (struct target_ops): Add insert_watchpoint,
21408 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21409 pointers for hardware watchpoint support.
21410 * linux-low.h (struct linux_target_ops): Ditto.
21411 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21412 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21413 to linux_target_ops.
21414 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21416 * server.c (main): Recognize 'Z' and 'z' packets.
21418 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21420 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21421 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21422 (the_low_target): Add new members.
21424 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21426 * proc-service.c (ps_lgetregs): Search all_processes instead of
21429 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21431 * server.c (start_inferior): Change return type to int.
21432 (attach_inferior): Change sigptr to int *.
21433 (handle_v_cont, handle_v_requests): Change signal to int *.
21434 (main): Change signal to int.
21436 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21438 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21439 * configure.srv: Add m32r*-*-linux*.
21440 * linux-m32r-low.c: New file.
21442 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21444 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21446 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21448 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21449 Take unsigned long arguments for PIDs.
21450 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21451 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21452 (wait_for_sigstop, linux_resume_one_process)
21453 (regsets_fetch_inferior_registers, linux_send_signal)
21454 (linux_read_auxv): Likewise. Update the types of variables holding
21455 PIDs. Update format string specifiers.
21456 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21457 * remote-utils.c (prepare_resume_reply): Likewise.
21458 * server.c (cont_thread, general_thread, step_thread)
21459 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21461 (handle_query): Update format specifiers.
21462 (handle_v_cont, main): Use strtoul for thread IDs.
21463 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21464 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21465 (general_thread, step_thread, thread_from_wait)
21466 (old_thread_from_wait): Update.
21467 * target.h (struct thread_resume): Use unsigned long for THREAD.
21468 (struct target_ops): Use unsigned long for arguments to attach and
21471 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21473 * acinclude.m4: Include bfd/bfd.m4 directly.
21474 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21475 <agriffis@toolchain.org>.
21476 * aclocal.m4, configure: Regenerated.
21478 2005-01-07 Andrew Cagney <cagney@gnu.org>
21480 * configure.ac: Rename configure.in, require autoconf 2.59.
21481 * configure: Re-generate.
21483 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21485 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21486 LIBS when finished.
21487 * aclocal.m4: Regenerated.
21488 * configure: Regenerated.
21490 2004-11-21 Andreas Schwab <schwab@suse.de>
21492 * linux-m68k-low.c (m68k_num_gregs): Define.
21493 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21494 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21495 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21496 (m68k_breakpoint_at): New. Add to the_low_target.
21498 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21499 srv_linux_thread_db to yes.
21501 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21503 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21504 (ARCH_SET_FS): Likewise.
21505 (ARCH_GET_FS): Likewise.
21506 (ARCH_GET_GS): Likewise.
21508 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21510 * linux-i386-low.c (ps_get_thread_area): New.
21511 * linux-x86-64-low.c (ps_get_thread_area): New.
21512 * linux-low.c: Include <sys/syscall.h>.
21513 (linux_kill_one_process): Don't kill the first thread here.
21514 (linux_kill): Kill the first thread here.
21515 (kill_lwp): New function.
21516 (send_sigstop, linux_send_signal): Use it.
21517 * proc-service.c: Clean up #ifdefs.
21518 (fpregset_info): Delete.
21519 (ps_lgetregs): Update and enable implementation.
21520 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21522 * remote-utils.c (struct sym_cache, symbol_cache): New.
21523 (input_interrupt): Print a clearer message.
21524 (async_io_enabled): New variable.
21525 (enable_async_io, disable_async_io): Use it. Update comments.
21526 (look_up_one_symbol): Use the symbol cache.
21527 * thread-db.c (thread_db_look_up_symbols): New function.
21528 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21530 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21532 * configure.in: Test for -rdynamic.
21533 * configure: Regenerated.
21534 * Makefile (INTERNAL_LDFLAGS): New.
21535 (gdbserver, gdbreplay): Use it.
21537 2004-09-02 Andrew Cagney <cagney@gnu.org>
21539 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21541 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21543 * linux-low.c (linux_wait): Clear all_processes list also.
21545 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21547 * linux-low.c: Include <errno.h>. Remove extern declaration of
21550 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21552 * gdbreplay.c, server.h, utils.c: Update copyright years.
21554 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21556 * server.c (main): Print child status or termination signal from
21557 variable 'signal', not 'sig'.
21559 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21561 * linux-low.c (linux_read_memory): Change return type to
21562 int. Check for and return error from ptrace().
21563 * target.c (read_inferior_memory): Change return type to int. Pass
21564 back return status from the_target->read_memory().
21565 * target.h (struct target_ops): Adapt *read_memory() prototype.
21567 (read_inferior_memory): Adapt prototype.
21568 * server.c (main): Return an error packet if
21569 read_inferior_memory() returns an error.
21571 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21573 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21574 Unify with other clean targets.
21576 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21578 * server.c (handle_v_cont): Call set_desired_inferior.
21580 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21582 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21584 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21586 * linux-low.c (linux_wait): Unblock async I/O.
21587 (linux_resume): Block and enable async I/O.
21588 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21589 * server.h (block_async_io, unblock_async_io): Add prototypes.
21591 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21593 * remote-utils.c (remote_open): Print a status notice after
21594 opening a TCP port.
21595 * server.c (attach_inferior): Print a status notice after
21598 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21600 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21602 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21604 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21606 * server.c, target.h: Update copyright years.
21608 2004-02-25 Roland McGrath <roland@redhat.com>
21610 * target.h (struct target_ops): New member `read_auxv'.
21611 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21612 * linux-low.c (linux_read_auxv): New function.
21613 (linux_target_ops): Initialize `read_auxv' member to that.
21615 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21617 Committed by Jim Blandy <jimb@redhat.com>.
21619 * linux-s390-low.c (s390_num_regs): Update.
21620 (s390_regmap): Remove control registers. Use __s390x__ predefine
21621 instead of GPR_SIZE to distiguish s390 and s390x targets.
21623 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21625 * linux-low.c: Update copyright year.
21626 (check_removed_breakpoint): Clear pending_is_breakpoint.
21627 (linux_set_resume_request, linux_queue_one_thread)
21628 (resume_status_pending_p): New functions.
21629 (linux_continue_one_thread): Use process->resume.
21630 (linux_resume): Only resume threads if there are no pending events.
21631 * linux-low.h (struct process_info): Add resume request
21634 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21636 * regcache.c (new_register_cache): Clear the allocated register
21637 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21639 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21641 * linux-low.c (linux_resume): Take a struct thread_resume *
21643 (linux_wait): Update call.
21644 (resume_ptr): New static variable.
21645 (linux_continue_one_thread): Renamed from
21646 linux_continue_one_process. Use resume_ptr.
21647 (linux_resume): Use linux_continue_one_thread.
21648 * server.c (handle_v_cont, handle_v_requests): New functions.
21649 (myresume): New function.
21650 (main): Handle 'v' case.
21651 * target.h (struct thread_resume): New type.
21652 (struct target_ops): Change argument of "resume" to struct
21654 (myresume): Delete macro.
21656 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21658 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21659 (uninstall): Support DESTDIR.
21661 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21663 * configure.srv: Add xscale*linux copy of arm*linux entry.
21665 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21667 * linux-arm-low.c (arm_reinsert_addr): New function.
21668 (the_low_target): Add arm_reinsert_addr.
21670 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21672 * mem-break.c: Remove whitespace at end of file.
21674 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21676 * configure.in: Check whether we need to prototype strerror.
21677 * server.h: Optionally prototype strerror.
21678 * gdbreplay.c (perror_with_name): Use strerror.
21679 * linux-low.c (linux_attach_lwp): Use strerror.
21680 * utils.c (perror_with_name): Use strerror.
21681 * config.in, configure: Regenerated.
21683 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21685 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21686 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21688 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21690 * Makefile.in (SFILES): Update.
21691 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21692 low-sun3.c: Remove files.
21694 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21696 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21697 (linux_detach_one_process, linux_detach): New functions.
21698 (linux_target_ops): Add linux_detach.
21699 * server.c (main): Handle 'D' packet.
21700 * target.h (struct target_ops): Add "detach" member.
21701 (detach_inferior): Define.
21703 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21705 From Kelley Cook <kelleycook@wideopenwest.com>:
21706 * configure.srv: Accept i[34567]86 variants.
21708 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21710 * linux-low.c (linux_wait_for_event): Correct comment typos.
21711 (linux_resume_one_process): Call check_removed_breakpoint.
21712 (linux_send_signal): New function.
21713 (linux_target_ops): Add linux_send_signal.
21714 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21716 * target.h (struct target_ops): Add send_signal.
21718 2003-05-29 Jim Blandy <jimb@redhat.com>
21720 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21721 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21722 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21723 away part of the register's value.
21725 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21727 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21728 (linux_wait_for_event, linux_init_signals): Likewise.
21730 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21732 * configure.in: Check for stdlib.h.
21733 * configure: Regenerated.
21734 * config.in: Regenerated.
21736 2003-01-04 Andreas Schwab <schwab@suse.de>
21738 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21740 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21742 * Makefile.in: Remove obsolete code.
21744 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21746 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21747 defined(PT_FPR0_HI).
21749 2002-11-17 Stuart Hughes <seh@zee2.com>
21751 * linux-arm-low.c (arm_num_regs): Increase.
21752 (arm_regmap): Include status register.
21754 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21756 * linux-low.c (register_addr): Remove incorrect -1 check.
21758 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21760 * linux-low.c (linux_create_inferior): Call setpgid. Return
21762 (unstopped_p, linux_signal_pid): Remove.
21763 (linux_target_ops): Remove linux_signal_pid.
21764 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21765 global instead of target method.
21766 * target.h (struct target_ops): Remove signal_pid. Update comment
21767 for create_inferior.
21768 * server.c (signal_pid): New variable.
21769 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21770 gdbserver. Set the child to be the foreground process group.
21771 (attach_inferior): Set signal_pid.
21773 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21775 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21777 2002-08-20 Jim Blandy <jimb@redhat.com>
21779 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21782 2002-08-01 Andrew Cagney <cagney@redhat.com>
21784 * Makefile.in: Make chill references obsolete.
21786 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21788 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21789 * configure: Regenerate.
21790 * config.in: Regenerate.
21792 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21794 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21795 (perror_with_name, remote_close, remote_open, expect, play): Static.
21797 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21799 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21800 byte offsets instead of an array of indexes.
21801 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21803 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21805 * regcache.c: Add comment.
21807 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21809 * thread-db.c: New file.
21810 * proc-service.c: New file.
21811 * acinclude.m4: New file.
21812 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21813 proc-service.o, and thread-db.o.
21814 (linux-low.o): Add USE_THREAD_DB.
21815 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21816 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21817 * aclocal.m4: Regenerated.
21818 * config.in: Regenerated.
21819 * configure: Regenerated.
21820 * configure.in: Check for proc_service.h, sys/procfs.h,
21821 thread_db.h, and linux/elf.h headrs.
21822 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21823 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21824 Check for -lthread_db and thread support.
21825 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21826 PowerPC, and SuperH.
21827 * i387-fp.c: Constify arguments.
21828 * i387-fp.h: Likewise.
21829 * inferiors.c: (struct thread_info): Renamed from
21830 `struct inferior_info'. Remove PID member. Use generic inferior
21831 list header. All uses updated.
21832 (inferiors, signal_pid): Removed.
21833 (all_threads): New variable.
21834 (get_thread): Define.
21835 (add_inferior_to_list): New function.
21836 (for_each_inferior): New function.
21837 (change_inferior_id): New function.
21838 (add_inferior): Removed.
21839 (remove_inferior): New function.
21840 (add_thread): New function.
21841 (free_one_thread): New function.
21842 (remove_thread): New function.
21843 (clear_inferiors): Use for_each_inferior and free_one_thread.
21844 (find_inferior): New function.
21845 (find_inferior_id): New function.
21846 (inferior_target_data): Update argument type.
21847 (set_inferior_target_data): Likewise.
21848 (inferior_regcache_data): Likewise.
21849 (set_inferior_regcache_data): Likewise.
21850 * linux-low.c (linux_bp_reinsert): Remove.
21851 (all_processes, stopping_threads, using_thrads)
21852 (struct pending_signals, debug_threads, pid_of): New.
21853 (inferior_pid): Replace with macro.
21854 (struct inferior_linux_data): Remove.
21855 (get_stop_pc, add_process): New functions.
21856 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21857 Use add_process and add_thread.
21858 (linux_attach_lwp): New function, based on old linux_attach. Use
21859 add_process and add_thread. Set stop_expected for new threads.
21860 (linux_attach): New function.
21861 (linux_kill_one_process): New function.
21862 (linux_kill): Kill all LWPs.
21863 (linux_thread_alive): Use find_inferior_id.
21864 (check_removed_breakpoints, status_pending_p): New functions.
21865 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21866 Update. Use WNOHANG. Wait for cloned processes also. Update process
21867 struct for the found process.
21868 (linux_wait_for_event): New function.
21869 (linux_wait): Use it. Support LWPs.
21870 (send_sigstop, wait_for_sigstop, stop_all_processes)
21871 (linux_resume_one_process, linux_continue_one_process): New functions.
21872 (linux_resume): Support LWPs.
21873 (REGISTER_RAW_SIZE): Remove.
21874 (fetch_register): Use register_size instead. Call supply_register.
21875 (usr_store_inferior_registers): Likewise. Call collect_register.
21876 Fix recursive case.
21877 (regsets_fetch_inferior_registers): Improve error message.
21878 (regsets_store_inferior_registers): Add debugging.
21879 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21880 (unstopped_p, linux_signal_pid): New functions.
21881 (linux_target_ops): Add linux_signal_pid.
21882 (linux_init_signals): New function.
21883 (initialize_low): Call it. Initialize using_threads.
21884 * regcache.c (inferior_regcache_data): Add valid
21886 (get_regcache): Fetch registers lazily. Add fetch argument
21887 and update all callers.
21888 (regcache_invalidate_one, regcache_invalidate): New
21890 (new_register_cache): Renamed from create_register_cache.
21891 Return the new regcache.
21892 (free_register_cache): Change argument to a void *.
21893 (registers_to_string, registers_from_string): Call get_regcache
21894 with fetch flag set.
21895 (register_data): Make static. Pass fetch flag to get_regcache.
21896 (supply_register): Call get_regcache with fetch flag clear.
21897 (collect_register): Call get_regcache with fetch flag set.
21898 (collect_register_as_string): New function.
21899 * regcache.h: Update.
21900 * remote-utils.c (putpkt): Flush after debug output and use
21902 Handle input interrupts while waiting for an ACK.
21903 (input_interrupt): Use signal_pid method.
21904 (getpkt): Flush after debug output and use stderr.
21905 (outreg): Use collect_register_as_string.
21906 (new_thread_notify, dead_thread_notify): New functions.
21907 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21908 and general_thread.
21909 (look_up_one_symbol): Flush after debug output.
21910 * server.c (step_thread, server_waiting): New variables.
21911 (start_inferior): Don't use signal_pid. Update call to mywait.
21912 (attach_inferior): Update call to mywait.
21913 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21914 (main): Don't fetch/store registers explicitly. Use
21915 set_desired_inferior. Support proposed ``Hs'' packet. Update
21917 * server.h: Update.
21918 (struct inferior_list, struct_inferior_list_entry): New.
21919 * target.c (set_desired_inferior): New.
21920 (write_inferior_memory): Constify.
21921 (mywait): New function.
21922 * target.h: Update.
21923 (struct target_ops): New signal_pid method.
21924 (mywait): Removed macro, added prototype.
21926 * linux-low.h (regset_func): Removed.
21927 (regset_fill_func, regset_store_func): New.
21928 (enum regset_type): New.
21929 (struct regset_info): Add type field. Use new operation types.
21930 (struct linux_target_ops): stop_pc renamed to get_pc.
21931 Add decr_pc_after_break and breakpoint_at.
21932 (get_process, get_thread_proess, get_process_thread)
21933 (strut process_info, all_processes, linux_attach_lwp)
21934 (thread_db_init): New.
21936 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21937 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21938 (the_low_target): Add new members.
21939 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21940 (i386_store_fpxregset): Constify.
21941 (target_regsets): Add new kind identifier.
21942 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21943 (i386_set_pc): Add debugging.
21944 (i386_breakpoint_at): New function.
21945 (the_low_target): Add new members.
21946 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21947 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21948 (mips_breakpoint_at): New.
21949 (the_low_target): Add new members.
21950 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21951 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21952 (the_low_target): Add new members.
21953 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21954 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21955 (the_low_target): Add new members.
21956 * linux-x86-64-low.c (target_regsets): Add new kind
21959 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21961 From Martin Pool <mbp@samba.org>:
21962 * server.c (gdbserver_usage): New function.
21965 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21967 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21968 stop_at -> stop_pc.
21970 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21972 * Makefile.in: Remove obsolete code.
21974 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21976 * linux-low.c (regsets_fetch_inferior_registers),
21977 (regsets_store_inferior_registers): Removed cast to int from
21979 * regcache.h: Added declaration of struct inferior_info.
21981 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21983 * inferiors.c (struct inferior_info): Add regcache_data.
21984 (add_inferior): Call create_register_cache.
21985 (clear_inferiors): Call free_register_cache.
21986 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21987 * regcache.c (struct inferior_regcache_data): New.
21988 (registers): Remove.
21989 (get_regcache): New function.
21990 (create_register_cache, free_register_cache): New functions.
21991 (set_register_cache): Don't initialize the register cache here.
21992 (registers_to_string, registers_from_string, register_data): Call
21994 * regcache.h: Add prototypes.
21995 * server.h: Likewise.
21997 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21999 * mem-break.c: New file.
22000 * mem-break.h: New file.
22001 * Makefile.in: Add mem-break.o rule; update server.h
22003 * inferiors.c (struct inferior_info): Add target_data
22005 (clear_inferiors): Free target_data member if set.
22006 (inferior_target_data, set_inferior_target_data): New functions.
22007 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22008 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22009 * linux-low.c (linux_bp_reinsert): New variable.
22010 (struct inferior_linux_data): New.
22011 (linux_create_inferior): Use set_inferior_target_data.
22012 (linux_attach): Likewise. Call add_inferior.
22013 (linux_wait_for_one_inferior): New function.
22014 (linux_wait): Call it.
22015 (linux_write_memory): Add const.
22016 (initialize_low): Call set_breakpoint_data.
22017 * linux-low.h (struct linux_target_ops): Add breakpoint
22019 * server.c (attach_inferior): Remove extra add_inferior
22021 * server.h: Include mem-break.h. Update inferior.c
22023 * target.c (read_inferior_memory)
22024 (write_inferior_memory): New functions.
22025 * target.h (read_inferior_memory)
22026 (write_inferior_memory): Change macros to prototypes.
22027 (struct target_ops): Update comments. Add const to write_memory
22030 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22032 * linux-low.c (usr_store_inferior_registers): Support
22033 registers which are allowed to fail to store.
22034 * linux-low.h (linux_target_ops): Likewise.
22035 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22036 (ppc_cannot_store_register): FPSCR may not be storable.
22038 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22040 * server.h: Include <string.h> if HAVE_STRING_H.
22041 * ChangeLog: Correct paths in last ChangeLog entry.
22043 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22045 * linux-low.h: Remove obsolete prototypes.
22046 (struct linux_target_ops): New.
22047 (extern the_low_target): New.
22048 * linux-low.c (num_regs, regmap): Remove declarations.
22049 (register_addr): Use the_low_target explicitly.
22050 (fetch_register): Likewise.
22051 (usr_fetch_inferior_registers): Likewise.
22052 (usr_store_inferior_registers): Likewise.
22053 * linux-arm-low.c (num_regs): Remove.
22054 (arm_num_regs): Define.
22055 (arm_regmap): Renamed from regmap, made static.
22056 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22058 (arm_cannot_store_register): Renamed from cannot_store_register,
22060 (the_low_target): New.
22061 * linux-i386-low.c (num_regs): Remove.
22062 (i386_num_regs): Define.
22063 (i386_regmap): Renamed from regmap, made static.
22064 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22066 (i386_cannot_store_register): Renamed from cannot_store_register,
22068 (the_low_target): New.
22069 * linux-ia64-low.c (num_regs): Remove.
22070 (ia64_num_regs): Define.
22071 (ia64_regmap): Renamed from regmap, made static.
22072 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22074 (ia64_cannot_store_register): Renamed from cannot_store_register,
22076 (the_low_target): New.
22077 * linux-m68k-low.c (num_regs): Remove.
22078 (m68k_num_regs): Define.
22079 (m68k_regmap): Renamed from regmap, made static.
22080 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22082 (m68k_cannot_store_register): Renamed from cannot_store_register,
22084 (the_low_target): New.
22085 * linux-mips-low.c (num_regs): Remove.
22086 (mips_num_regs): Define.
22087 (mips_regmap): Renamed from regmap, made static.
22088 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22090 (mips_cannot_store_register): Renamed from cannot_store_register,
22092 (the_low_target): New.
22093 * linux-ppc-low.c (num_regs): Remove.
22094 (ppc_num_regs): Define.
22095 (ppc_regmap): Renamed from regmap, made static.
22096 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22098 (ppc_cannot_store_register): Renamed from cannot_store_register,
22100 (the_low_target): New.
22101 * linux-s390-low.c (num_regs): Remove.
22102 (s390_num_regs): Define.
22103 (s390_regmap): Renamed from regmap, made static.
22104 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22106 (s390_cannot_store_register): Renamed from cannot_store_register,
22108 (the_low_target): New.
22109 * linux-sh-low.c (num_regs): Remove.
22110 (sh_num_regs): Define.
22111 (sh_regmap): Renamed from regmap, made static.
22112 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22114 (sh_cannot_store_register): Renamed from cannot_store_register,
22116 (the_low_target): New.
22117 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22118 (the_low_target): New.
22120 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22122 * Makefile.in: Add stamp-h target.
22123 * configure.in: Create stamp-h.
22124 * configure: Regenerated.
22126 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22128 * inferiors.c: New file.
22129 * target.c: New file.
22130 * target.h: New file.
22131 * Makefile.in: Add target.o and inferiors.o. Update
22133 * linux-low.c (inferior_pid): New static variable,
22134 moved from server.c.
22135 (linux_create_inferior): Renamed from create_inferior.
22136 Call add_inferior. Return 0 on success instead of a PID.
22137 (linux_attach): Renamed from myattach.
22138 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22139 (linux_thread_alive): Renamed from mythread_alive.
22140 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22142 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22143 (regsets_store_inferior_registers): Correct error message.
22144 Add missing ``return 0''.
22145 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22146 (linux_store_registers): Renamed from store_inferior_registers.
22147 (linux_read_memory): Renamed from read_inferior_memory.
22148 (linux_write_memory): Renamed from write_inferior_memory.
22149 (linux_target_ops): New structure.
22150 (initialize_low): Call set_target_ops ().
22151 * remote-utils.c (unhexify): New function.
22152 (hexify): New function.
22153 (input_interrupt): Send signals to ``signal_pid''.
22154 * server.c (inferior_pid): Remove.
22155 (start_inferior): Update create_inferior call.
22156 (attach_inferior): Call add_inferior.
22157 (handle_query): New function.
22158 (main): Call handle_query for `q' packets.
22159 * server.h: Include "target.h". Remove obsolete prototypes.
22160 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22162 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22164 * Makefile.in: Add WARN_CFLAGS. Update configury
22166 * configure.in: Check for <string.h>
22167 * configure: Regenerate.
22168 * config.in: Regenerate.
22169 * gdbreplay.c: Include needed system headers.
22170 (remote_open): Remove strchr prototype.
22171 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22172 * regcache.c (supply_register): Change buf argument to const void *.
22173 (supply_register_by_name): Likewise.
22174 (collect_register): Change buf argument to void *.
22175 (collect_register_by_name): Likewise.
22176 * regcache.h: Add missing prototypes.
22177 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22178 * server.c (handle_query): New function.
22179 (attached): New static variable, moved out of main.
22180 (main): Quiet longjmp clobber warnings.
22181 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22182 * utils.c (error): Remove NORETURN.