1 2020-05-23 Pedro Alves <palves@redhat.com>
3 * gdb-safe-ctype.h: New.
5 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
8 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
9 (ia64_target::low_breakpoint_at): Ditto.
11 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
13 * win32-i386-low.cc (i386_supports_z_point_type): Handle
14 Z_PACKET_HW_BP z_type.
15 (i386_insert_point): Handle raw_bkpt_type type.
16 (i386_remove_point): Likewise.
18 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
20 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
22 * win32-arm-low.cc (arm_num_regs): New function.
23 (struct win32_target_ops): Use arm_num_regs.
24 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
26 (i386_get_thread_context): Likewise.
27 (i386_prepare_to_resume): Likewise.
28 (i386_thread_added): Likewise.
29 (i386_single_step): Likewise.
30 (i386_fetch_inferior_register): Likewise.
31 (i386_store_inferior_register): Likewise.
32 (i386_arch_setup): Likewise.
33 (i386_win32_num_regs): New function.
34 (struct win32_target_ops): Use i386_win32_num_regs.
35 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
37 (win32_require_context): Likewise.
38 (child_add_thread): Likewise.
39 (do_initial_child_stuff): Likewise.
40 (continue_one_thread): Likewise.
41 (win32_process_target::resume): Likewise.
42 (load_psapi): Likewise.
43 (win32_add_all_dlls): Likewise.
44 (maybe_adjust_pc): Likewise.
45 (win32_process_target::qxfer_siginfo): Likewise.
46 (initialize_low): Likewise.
47 * win32-low.h (struct win32_target_ops): Change num_regs to
50 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
52 * configure.ac: Remove check for fs_base/gs_base in
54 * configure: Re-generate.
55 * config.in: Re-generate.
56 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
57 x86_store_gregset): Adjust.
59 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
61 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
64 2020-04-16 Tom Tromey <tromey@adacore.com>
66 * win32-low.cc (windows_nat::handle_access_violation): New
69 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
71 * win32-low.cc (get_child_debug_event): Fix format string warning.
73 2020-04-13 Tom Tromey <tom@tromey.com>
75 * server.h (gdb_fildes_t): Remove typedef.
76 * remote-utils.c (remote_desc, list_desc): Now int.
77 (INVALID_DESCRIPTOR): Remove.
78 (gdb_connected, remote_close)
79 (check_remote_input_interrupt_request): Update.
80 * utils.h (pfildes): Don't declare.
81 * utils.c (pfildes): Remove.
83 2020-04-13 Tom Tromey <tom@tromey.com>
85 * server.h (handle_serial_event, handle_target_event): Update.
86 * server.c: Don't call initialize_event_loop.
87 (keep_processing_events): New global.
88 (handle_serial_event): Return void. Set keep_processing_events.
89 (handle_target_event): Return void.
90 (start_event_loop): Move from event-loop.c. Rewrite.
91 * remote-utils.c (handle_accept_event): Return void.
92 (reset_readchar): Use delete_timer.
93 (process_remaining): Return void.
94 (reschedule): Use create_timer.
95 * event-loop.h: Remove.
96 * event-loop.cc: Remove.
97 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
99 2020-04-13 Tom Tromey <tom@tromey.com>
101 * server.c (invoke_async_signal_handlers)
102 (check_async_event_handlers, flush_streams, gdb_select): New
105 2020-04-13 Tom Tromey <tom@tromey.com>
107 * configure: Rebuild.
108 * config.in: Rebuild.
110 2020-04-08 Tom Tromey <tromey@adacore.com>
113 * win32-low.c (child_continue): Call matching_pending_stop.
114 (get_child_debug_event): Call fetch_pending_stop. Push pending
117 2020-04-08 Tom Tromey <tromey@adacore.com>
119 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
120 (win32_process_target::supports_stopped_by_sw_breakpoint):
122 * win32-low.c (win32_supports_z_point_type): Always handle
124 (win32_insert_point): Call insert_memory_breakpoint when needed.
125 (win32_remove_point): Call remove_memory_breakpoint when needed.
126 (win32_process_target::stopped_by_sw_breakpoint)
127 (win32_process_target::supports_stopped_by_sw_breakpoint): New
129 (win32_target_ops): Update.
130 (maybe_adjust_pc): New function.
131 (win32_wait): Call maybe_adjust_pc.
133 2020-04-08 Tom Tromey <tromey@adacore.com>
135 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
137 * win32-i386-low.c (the_low_target): Update.
138 * win32-arm-low.c (the_low_target): Update.
140 2020-04-08 Tom Tromey <tromey@adacore.com>
142 * win32-low.h (win32_process_target::read_pc)
143 (win32_process_target::write_pc): Declare.
144 * win32-low.c (win32_process_target::read_pc)
145 (win32_process_target::write_pc): New methods.
146 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
148 (the_low_target): Update.
149 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
151 (the_low_target): Update.
153 2020-04-08 Tom Tromey <tromey@adacore.com>
155 * win32-low.c (win32_kill, get_child_debug_event): Use
156 wait_for_debug_event.
158 2020-04-08 Tom Tromey <tromey@adacore.com>
160 * win32-low.c (child_continue): Call continue_last_debug_event.
162 2020-04-08 Tom Tromey <tromey@adacore.com>
164 * win32-low.c (handle_exception): Remove.
165 (windows_nat::handle_ms_vc_exception): New function.
166 (get_child_debug_event): Add "continue_status" parameter.
168 (win32_wait): Update.
170 2020-04-08 Tom Tromey <tromey@adacore.com>
172 * win32-low.c (windows_nat::handle_load_dll): Rename from
173 handle_load_dll. No longer static.
174 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
177 2020-04-08 Tom Tromey <tromey@adacore.com>
179 * win32-low.c (handle_output_debug_string): Add parameter. Change
181 (win32_kill, get_child_debug_event): Update.
183 2020-04-08 Tom Tromey <tromey@adacore.com>
185 * win32-low.c (current_process_handle, current_process_id)
186 (main_thread_id, last_sig, current_event, siginfo_er): Move to
189 2020-04-08 Tom Tromey <tromey@adacore.com>
191 * win32-low.c (get_image_name): Remove.
192 (handle_load_dll): Update.
194 2020-04-08 Tom Tromey <tromey@adacore.com>
196 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
197 No longer static. Change parameters.
198 (child_add_thread, child_fetch_inferior_registers)
199 (child_store_inferior_registers, win32_resume)
200 (win32_get_tib_address): Update.
202 2020-04-08 Tom Tromey <tromey@adacore.com>
204 * win32-low.h (struct win32_target_ops): Use qualified names where
206 * win32-i386-low.c: Add "using namespace".
207 * win32-low.c: Add "using namespace".
208 * win32-arm-low.c: Add "using namespace".
210 2020-04-08 Tom Tromey <tromey@adacore.com>
212 * win32-low.c (delete_thread_info): Don't call CloseHandle.
214 2020-04-08 Tom Tromey <tromey@adacore.com>
216 * win32-low.c (win32_require_context, suspend_one_thread): Use
217 windows_thread_info::suspend.
218 (continue_one_thread): Use windows_thread_info::resume.
219 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
221 2020-04-08 Tom Tromey <tromey@adacore.com>
223 * win32-i386-low.c (update_debug_registers)
224 (i386_prepare_to_resume, i386_thread_added): Update.
226 2020-04-08 Tom Tromey <tromey@adacore.com>
228 * win32-low.c (child_add_thread): Use new.
229 (delete_thread_info): Use delete.
231 2020-04-08 Tom Tromey <tromey@adacore.com>
233 * win32-low.h (struct windows_thread_info): Remove.
235 2020-04-08 Tom Tromey <tromey@adacore.com>
237 * win32-low.h (struct windows_thread_info): Rename from
238 win32_thread_info. Remove typedef.
239 (struct win32_target_ops, win32_require_context): Update.
240 * win32-low.c (win32_get_thread_context)
241 (win32_set_thread_context, win32_prepare_to_resume)
242 (win32_require_context, thread_rec, child_add_thread)
243 (delete_thread_info, continue_one_thread)
244 (child_fetch_inferior_registers, child_store_inferior_registers)
245 (win32_resume, suspend_one_thread, win32_get_tib_address):
247 * win32-i386-low.c (update_debug_registers)
248 (win32_get_current_dr, i386_get_thread_context)
249 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
250 (i386_fetch_inferior_register, i386_store_inferior_register):
252 * win32-arm-low.c (arm_get_thread_context)
253 (arm_fetch_inferior_register, arm_store_inferior_register):
256 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
258 * linux-low.h (struct linux_target_ops): Remove.
259 (the_low_target): Remove.
260 * linux-x86-low.cc (the_low_target): Remove.
261 * linux-aarch64-low.cc (the_low_target): Ditto.
262 * linux-arm-low.cc (the_low_target): Ditto.
263 * linux-bfin-low.cc (the_low_target): Ditto.
264 * linux-cris-low.cc (the_low_target): Ditto.
265 * linux-crisv32-low.cc (the_low_target): Ditto.
266 * linux-ia64-low.cc (the_low_target): Ditto.
267 * linux-m32r-low.cc (the_low_target): Ditto.
268 * linux-m68k-low.cc (the_low_target): Ditto.
269 * linux-mips-low.cc (the_low_target): Ditto.
270 * linux-nios2-low.cc (the_low_target): Ditto.
271 * linux-ppc-low.cc (the_low_target): Ditto.
272 * linux-riscv-low.cc (the_low_target): Ditto.
273 * linux-s390-low.cc (the_low_target): Ditto.
274 * linux-sh-low.cc (the_low_target): Ditto.
275 * linux-sparc-low.cc (the_low_target): Ditto.
276 * linux-tic6x-low.cc (the_low_target): Ditto.
277 * linux-tile-low.cc (the_low_target): Ditto.
278 * linux-xtensa-low.cc (the_low_target): Ditto.
280 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
282 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
283 linux target define the op by overriding the declaration in
284 process_stratum_target.
286 * linux-low.h (struct linux_target_ops): Remove the op.
287 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
288 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
289 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
290 (x86_get_ipa_tdesc_idx): Turn into...
291 (x86_target::get_ipa_tdesc_idx): ...this.
292 (the_low_target): Remove the op field.
293 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
294 (ppc_get_ipa_tdesc_idx): Turn into...
295 (ppc_target::get_ipa_tdesc_idx): ...this.
296 (the_low_target): Remove the op field.
297 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
298 (s390_get_ipa_tdesc_idx): Turn into...
299 (s390_target::get_ipa_tdesc_idx): ...this.
300 (the_low_target): Remove the op field.
302 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304 Turn the 'get_syscall_trapinfo' linux target op into a method
305 of process_stratum_target.
307 * linux-low.h (struct linux_target_ops): Remove the op.
308 (class linux_process_target) <get_syscall_trapinfo>
309 <gdb_catch_this_syscall>
310 <low_supports_catch_syscall>
311 <low_get_syscall_trapinfo>: Declare.
312 * linux-low.cc (get_syscall_trapinfo): Turn into...
313 (linux_process_target::get_syscall_trapinfo): ...this.
314 (linux_process_target::low_get_syscall_trapinfo): Define.
315 (gdb_catch_this_syscall_p): Turn into...
316 (linux_process_target::gdb_catch_this_syscall): ...this.
317 (linux_process_target::low_supports_catch_syscall): Define.
319 Update the callers below.
321 (linux_process_target::wait_1)
322 (linux_process_target::supports_catch_syscall)
324 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
325 <low_get_syscall_trapinfo>: Declare.
326 (x86_target::low_supports_catch_syscall): Define.
327 (x86_get_syscall_trapinfo): Turn into...
328 (x86_target::low_get_syscall_trapinfo): ...this.
329 (the_low_target): Remove the op field.
330 * linux-aarch64-low.cc (class aarch64_target)
331 <low_supports_catch_syscall>
332 <low_get_syscall_trapinfo>: Declare.
333 (aarch64_target::low_supports_catch_syscall): Define.
334 (aarch64_get_syscall_trapinfo): Turn into...
335 (aarch64_target::low_get_syscall_trapinfo): ...this.
336 (the_low_target): Remove the op field.
337 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
338 <low_get_syscall_trapinfo>: Declare.
339 (arm_target::low_supports_catch_syscall): Define.
340 (arm_get_syscall_trapinfo): Turn into...
341 (arm_target::low_get_syscall_trapinfo): ...this.
342 (the_low_target): Remove the op field.
343 * linux-ppc-low.cc (the_low_target): Remove the op field.
344 * linux-s390-low.cc (the_low_target): Remove the op field.
346 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
348 Remove the 'supports_hardware_single_step' linux target op and
349 override the process_stratum_target's op definition in
350 linux_process_target to return true.
352 * linux-low.h (struct linux_target_ops): Remove the op.
353 (class linux_process_target) <finish_step_over>
354 <maybe_hw_step>: Declare.
355 * linux-low.cc (can_hardware_single_step): Remove.
356 (maybe_hw_step): Turn into...
357 (linux_process_target::maybe_hw_step): ...this.
358 (finish_step_over): Turn into...
359 (linux_process_target::finish_step_over): ...this.
360 (linux_process_target::supports_hardware_single_step): Update
363 Update the callers below.
365 (linux_process_target::single_step)
366 (linux_process_target::resume_one_lwp_throw)
368 * linux-arm-low.cc (class arm_target)
369 <supports_hardware_single_step>: Declare.
370 (arm_supports_hardware_single_step): Turn into...
371 (arm_target::supports_hardware_single_step): ...this.
372 (the_low_target): Remove the op field.
373 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
374 (the_low_target): Remove the op field.
375 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
377 (the_low_target): Remove the op field.
378 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
381 (the_low_target): Remove the op field.
382 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
383 (the_low_target): Remove the op field.
384 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
385 (the_low_target): Remove the op field.
386 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
387 (the_low_target): Remove the op field.
388 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
389 (the_low_target): Remove the op field.
390 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
391 (the_low_target): Remove the op field.
392 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
393 (the_low_target): Remove the op field.
394 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
395 (the_low_target): Remove the op field.
396 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
398 (the_low_target): Remove the op field.
400 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402 Turn the 'supports_range_stepping' linux target op into a method
403 of linux_process_target.
405 * linux-low.h (struct linux_target_ops): Remove the op.
406 (class linux_process_target) <low_supports_range_stepping>: Declare.
407 * linux-low.cc (linux_process_target::low_supports_range_stepping):
409 (linux_process_target::supports_range_stepping): Update the call
411 * linux-x86-low.cc (class x86_target)
412 <low_supports_range_stepping>: Declare.
413 (x86_supports_range_stepping): Turn into...
414 (x86_target::low_supports_range_stepping): ...this.
415 (the_low_target): Remove the op field.
416 * linux-aarch64-low.cc (class aarch64_target)
417 <low_supports_range_stepping>: Declare.
418 (aarch64_supports_range_stepping): Turn into...
419 (aarch64_target::low_supports_range_stepping): ...this.
420 (the_low_target): Remove the op field.
421 * linux-arm-low.cc (the_low_target): Remove the op field.
422 * linux-bfin-low.cc (the_low_target): Ditto.
423 * linux-crisv32-low.cc (the_low_target): Ditto.
424 * linux-m32r-low.cc (the_low_target): Ditto.
425 * linux-m68k-low.cc (the_low_target): Ditto.
426 * linux-ppc-low.cc (the_low_target): Ditto.
427 * linux-s390-low.cc (the_low_target): Ditto.
428 * linux-sh-low.cc (the_low_target): Ditto.
429 * linux-tic6x-low.cc (the_low_target): Ditto.
430 * linux-tile-low.cc (the_low_target): Ditto.
431 * linux-xtensa-low.cc (the_low_target): Ditto.
433 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
435 Remove the 'emit_ops' linux target ops and let the concrete
436 linux target define the op by overriding the declaration of
437 process_stratum_target.
439 * linux-low.h (struct linux_target_ops): Remove the op.
440 (class linux_process_target) <emit_ops>: Remove.
441 * linux-low.cc (linux_process_target::emit_ops): Remove.
442 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
443 (x86_emit_ops): Turn into...
444 (x86_target::emit_ops): ...this.
445 (the_low_target): Remove the op field.
446 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
447 (aarch64_emit_ops): Turn into...
448 (aarch64_target::emit_ops): ...this.
449 (the_low_target): Remove the op field.
450 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
451 (ppc_emit_ops): Turn into...
452 (ppc_target::emit_ops): ...this.
453 (the_low_target): Remove the op field.
454 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
455 (s390_emit_ops): Turn into...
456 (s390_target::emit_ops): ...this.
457 (the_low_target): Remove the op field.
458 * linux-arm-low.cc (the_low_target): Remove the op field.
459 * linux-bfin-low.cc (the_low_target): Ditto.
460 * linux-crisv32-low.cc (the_low_target): Ditto.
461 * linux-m32r-low.cc (the_low_target): Ditto.
462 * linux-m68k-low.cc (the_low_target): Ditto.
463 * linux-sh-low.cc (the_low_target): Ditto.
464 * linux-tic6x-low.cc (the_low_target): Ditto.
465 * linux-tile-low.cc (the_low_target): Ditto.
466 * linux-xtensa-low.cc (the_low_target): Ditto.
468 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
470 Remove the 'install_fast_tracepoint_jump_pad' and
471 'get_min_fast_tracepoint_insn_len' linux target ops to let the
472 concrete linux target define the ops by overriding the declarations
473 of process_stratum_target.
475 * linux-low.h (struct linux_target_ops): Remove the ops.
476 (class linux_process_target) <supports_fast_tracepoints>
477 <install_fast_tracepoint_jump_pad>
478 <get_min_fast_tracepoint_insn_len>: Remove.
479 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
480 (linux_process_target::install_fast_tracepoint_jump_pad)
481 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
482 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
483 <install_fast_tracepoint_jump_pad>
484 <get_min_fast_tracepoint_insn_len>: Declare.
485 (x86_target::supports_fast_tracepoints): Define.
486 (x86_install_fast_tracepoint_jump_pad): Turn into...
487 (x86_target::install_fast_tracepoint_jump_pad): ...this.
488 (x86_get_min_fast_tracepoint_insn_len): Turn into...
489 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
490 (the_low_target): Remove the op fields.
491 * linux-aarch64-low.cc (class aarch64_target)
492 <supports_fast_tracepoints>
493 <install_fast_tracepoint_jump_pad>
494 <get_min_fast_tracepoint_insn_len>: Declare.
495 (aarch64_target::supports_fast_tracepoints): Define.
496 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
497 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
498 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
499 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
500 (the_low_target): Remove the op fields.
501 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
502 <install_fast_tracepoint_jump_pad>
503 <get_min_fast_tracepoint_insn_len>: Declare.
504 (ppc_target::supports_fast_tracepoints): Define.
505 (ppc_install_fast_tracepoint_jump_pad): Turn into...
506 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
507 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
508 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
509 (the_low_target): Remove the op fields.
510 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
511 <install_fast_tracepoint_jump_pad>
512 <get_min_fast_tracepoint_insn_len>: Declare.
513 (s390_target::supports_fast_tracepoints): Define.
514 (s390_install_fast_tracepoint_jump_pad): Turn into...
515 (s390_target::install_fast_tracepoint_jump_pad): ...this.
516 (s390_get_min_fast_tracepoint_insn_len): Turn into...
517 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
518 (the_low_target): Remove the op fields.
519 * linux-arm-low.cc (the_low_target): Remove the op fields.
520 * linux-bfin-low.cc (the_low_target): Ditto.
521 * linux-crisv32-low.cc (the_low_target): Ditto.
522 * linux-m32r-low.cc (the_low_target): Ditto.
523 * linux-m68k-low.cc (the_low_target): Ditto.
524 * linux-sh-low.cc (the_low_target): Ditto.
525 * linux-tic6x-low.cc (the_low_target): Ditto.
526 * linux-tile-low.cc (the_low_target): Ditto.
527 * linux-xtensa-low.cc (the_low_target): Ditto.
529 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531 Turn the 'get_thread_area' linux target op into a method of
532 process_stratum_target.
534 * linux-low.h (struct linux_target_ops): Remove the op.
535 (class linux_process_target) <stuck_in_jump_pad>
536 <linux_fast_tracepoint_collecting>
537 <low_get_thread_area>: Declare.
538 * linux-low.cc (supports_fast_tracepoints): Remove.
539 (linux_fast_tracepoint_collecting): Turn into...
540 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
541 (linux_process_target::low_get_thread_area): Define.
542 (stuck_in_jump_pad_callback): Turn into...
543 (linux_process_target::stuck_in_jump_pad): ...this.
545 Update the caller below.
547 (linux_process_target::stabilize_threads)
549 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
551 (x86_get_thread_area): Turn into...
552 (x86_target::low_get_thread_area): ...this.
553 (the_low_target): Remove the op field.
554 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
556 (aarch64_get_thread_area): Turn into...
557 (aarch64_target::low_get_thread_area): ...this.
558 (the_low_target): Remove the op field.
559 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
561 (ppc_get_thread_area): Turn into...
562 (ppc_target::low_get_thread_area): ...this.
563 (the_low_target): Remove the op field.
564 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
566 (s390_get_thread_area): Turn into...
567 (s390_target::low_get_thread_area): ...this.
568 (the_low_target): Remove the op field.
569 * linux-arm-low.cc (the_low_target): Remove the op field.
570 * linux-bfin-low.cc (the_low_target): Ditto.
571 * linux-crisv32-low.cc (the_low_target): Ditto.
572 * linux-m32r-low.cc (the_low_target): Ditto.
573 * linux-m68k-low.cc (the_low_target): Ditto.
574 * linux-sh-low.cc (the_low_target): Ditto.
575 * linux-tic6x-low.cc (the_low_target): Ditto.
576 * linux-tile-low.cc (the_low_target): Ditto.
577 * linux-xtensa-low.cc (the_low_target): Ditto.
579 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581 Remote the 'supports_tracepoints' linux target op and let the
582 concrete linux target define it by overriding the op declared in
583 process_stratum_target.
585 * linux-low.h (struct linux_target_ops): Remove the op.
586 (class linux_process_target) <supports_tracepoints>: Remove.
587 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
588 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
590 (x86_supports_tracepoints): Turn into...
591 (x86_target::supports_tracepoints): ...this.
592 (the_low_target): Remove the op field.
593 * linux-aarch64-low.cc (class aarch64_target)
594 <supports_tracepoints>: Declare.
595 (aarch64_supports_tracepoints): Turn into...
596 (aarch64_target::supports_tracepoints): ...this.
597 (the_low_target): Remove the op field.
598 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
600 (ppc_supports_tracepoints): Turn into...
601 (ppc_target::supports_tracepoints): ...this.
602 (the_low_target): Remove the op field.
603 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
605 (s390_supports_tracepoints): Turn into...
606 (s390_target::supports_tracepoints): ...this.
607 (the_low_target): Remove the op field.
608 * linux-arm-low.cc (the_low_target): Remove the op field.
609 * linux-bfin-low.cc (the_low_target): Ditto.
610 * linux-crisv32-low.cc (the_low_target): Ditto.
611 * linux-m32r-low.cc (the_low_target): Ditto.
612 * linux-m68k-low.cc (the_low_target): Ditto.
613 * linux-sh-low.cc (the_low_target): Ditto.
614 * linux-tic6x-low.cc (the_low_target): Ditto.
615 * linux-tile-low.cc (the_low_target): Ditto.
616 * linux-xtensa-low.cc (the_low_target): Ditto.
618 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620 Remove the 'process_qsupported' linux target op and let a concrete
621 linux target define the op by overriding the op declaration in
622 process_stratum_target.
624 * linux-low.h (struct linux_target_ops): Remove the op.
625 (class linux_process_target) <process_qsupported>: Remove.
626 * linux-low.cc (linux_process_target::process_qsupported): Remove.
627 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
628 (x86_linux_process_qsupported): Turn into...
629 (x86_target::process_qsupported): ...this.
630 (the_low_target): Remove the op field.
631 * linux-aarch64-low.cc (the_low_target): Remove the op
633 * linux-arm-low.cc (the_low_target): Ditto.
634 * linux-bfin-low.cc (the_low_target): Ditto.
635 * linux-crisv32-low.cc (the_low_target): Ditto.
636 * linux-m32r-low.cc (the_low_target): Ditto.
637 * linux-m68k-low.cc (the_low_target): Ditto.
638 * linux-ppc-low.cc (the_low_target): Ditto.
639 * linux-s390-low.cc (the_low_target): Ditto.
640 * linux-sh-low.cc (the_low_target): Ditto.
641 * linux-tic6x-low.cc (the_low_target): Ditto.
642 * linux-tile-low.cc (the_low_target): Ditto.
643 * linux-xtensa-low.cc (the_low_target): Ditto.
645 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647 Turn the 'prepare_to_resume' linux target op into a method of
648 linux_process_target.
650 * linux-low.h (struct linux_target_ops): Remove the op.
651 (class linux_process_target) <low_prepare_to_resume>: Declare.
652 * linux-low.cc (linux_process_target::low_prepare_to_resume):
655 Update the callers below:
657 (linux_process_target::resume_one_lwp_throw)
658 (linux_process_target::low_prepare_to_resume)
660 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
662 (x86_target::low_prepare_to_resume): Define.
663 (the_low_target): Remove the op field.
664 * linux-aarch64-low.cc (class aarch64_target)
665 <low_prepare_to_resume>: Declare.
666 (aarch64_target::low_prepare_to_resume): Define.
667 (the_low_target): Remove the op field.
668 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
670 (arm_prepare_to_resume): Turn into...
671 (arm_target::low_prepare_to_resume): ...this.
672 (the_low_target): Remove the op field.
673 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
675 (mips_linux_prepare_to_resume): Turn into...
676 (mips_target::low_prepare_to_resume): ...this.
677 (the_low_target): Remove the op field.
678 * linux-bfin-low.cc (the_low_target): Remove the op field.
679 * linux-crisv32-low.cc (the_low_target): Ditto.
680 * linux-m32r-low.cc (the_low_target): Ditto.
681 * linux-m68k-low.cc (the_low_target): Ditto.
682 * linux-ppc-low.cc (the_low_target): Ditto.
683 * linux-s390-low.cc (the_low_target): Ditto.
684 * linux-sh-low.cc (the_low_target): Ditto.
685 * linux-tic6x-low.cc (the_low_target): Ditto.
686 * linux-tile-low.cc (the_low_target): Ditto.
687 * linux-xtensa-low.cc (the_low_target): Ditto.
689 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691 Turn the 'new_process', 'delete_process', 'new_thread',
692 'delete_thread', and 'new_fork' linux target ops into methods
693 of linux_process_target.
695 * linux-low.h (struct linux_target_ops): Remove the ops.
696 (class linux_process_target) <add_linux_process>
701 <check_zombie_leaders>
707 <low_new_fork>: Declare.
708 * linux-low.cc (delete_lwp): Turn into...
709 (linux_process_target::delete_lwp): ...this.
710 (linux_process_target::low_delete_thread): Define.
711 (linux_add_process): Turn into...
712 (linux_process_target::add_linux_process): ...this.
713 (linux_process_target::low_new_process): Define.
714 (linux_process_target::low_delete_process): Define.
715 (linux_process_target::low_new_fork): Define.
716 (add_lwp): Turn into...
717 (linux_process_target::add_lwp): ...this.
718 (linux_process_target::low_new_thread): Define.
719 (linux_attach_lwp): Turn into...
720 (linux_process_target::attach_lwp): ...this.
721 (linux_detach_one_lwp): Turn into...
722 (linux_process_target::detach_one_lwp): ...this.
723 (linux_detach_lwp_callback): Remove and inline...
724 (linux_process_target::detach): ...here.
725 (check_zombie_leaders): Turn into...
726 (linux_process_target::check_zombie_leaders): ...this.
727 (filter_exit_event): Turn into...
728 (linux_process_target::filter_exit_event): ...this.
730 Update the callers below.
732 (linux_process_target::handle_extended_wait)
733 (linux_process_target::create_inferior)
734 (attach_proc_task_lwp_callback)
735 (linux_process_target::attach)
736 (linux_process_target::detach)
737 (linux_process_target::mourn)
738 * thread-db.cc (attach_thread)
740 * linux-x86-low.cc (class x86_target) <low_new_process>
744 <low_new_fork>: Declare.
745 (x86_linux_new_process): Turn into...
746 (x86_target::low_new_process): ...this.
747 (x86_linux_delete_process): Turn into...
748 (x86_target::low_delete_process): ...this.
749 (x86_target::low_new_thread): Define.
750 (x86_target::low_delete_thread): Define.
751 (x86_linux_new_fork): Turn into...
752 (x86_target::low_new_fork): ...this.
753 (the_low_target): Remove the op fields.
754 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
758 <low_new_fork>: Declare.
759 (aarch64_linux_new_process): Turn into...
760 (aarch64_target::low_new_process): ...this.
761 (aarch64_linux_delete_process): Turn into...
762 (aarch64_target::low_delete_process): ...this.
763 (aarch64_target::low_new_thread): Define.
764 (aarch64_target::low_delete_thread): Define.
765 (aarch64_linux_new_fork): Turn into...
766 (aarch64_target::low_new_fork): ...this.
767 (the_low_target): Remove the op fields.
768 * linux-arm-low.cc (class arm_target) <low_new_process>
772 <low_new_fork>: Declare.
773 (arm_new_process): Turn into...
774 (arm_target::low_new_process): ...this.
775 (arm_delete_process): Turn into...
776 (arm_target::low_delete_process): ...this.
777 (arm_new_thread): Turn into...
778 (arm_target::low_new_thread): ...this.
779 (arm_delete_thread): Turn into...
780 (arm_target::low_delete_thread): ...this.
781 (arm_new_fork): Turn into...
782 (arm_target::low_new_fork): ...this.
783 (the_low_target): Remove the op fields.
784 * linux-mips-low.cc (class mips_target) <low_new_process>
788 <low_new_fork>: Declare.
789 (mips_linux_new_process): Turn into...
790 (mips_target::low_new_process): ...this.
791 (mips_linux_delete_process): Turn into...
792 (mips_target::low_delete_process): ...this.
793 (mips_linux_new_thread): Turn into...
794 (mips_target::low_new_thread): ...this.
795 (mips_linux_delete_thread): Turn into...
796 (mips_target::low_delete_thread): ...this.
797 (mips_linux_new_fork): Turn into...
798 (mips_target::low_new_fork): ...this.
799 (the_low_target): Remove the op fields.
800 * linux-bfin-low.cc (the_low_target): Remove the op fields.
801 * linux-crisv32-low.cc (the_low_target): Ditto.
802 * linux-m32r-low.cc (the_low_target): Ditto.
803 * linux-m68k-low.cc (the_low_target): Ditto.
804 * linux-ppc-low.cc (the_low_target): Ditto.
805 * linux-s390-low.cc (the_low_target): Ditto.
806 * linux-sh-low.cc (the_low_target): Ditto.
807 * linux-tic6x-low.cc (the_low_target): Ditto.
808 * linux-tile-low.cc (the_low_target): Ditto.
809 * linux-xtensa-low.cc (the_low_target): Ditto.
811 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813 Turn the 'siginfo_fixup' linux target op into a method of
814 linux_process_target.
816 * linux-low.h (struct linux_target_ops): Remove the op.
817 (class linux_process_target) <siginfo_fixup>
818 <low_siginfo_fixup>: Declare.
819 * linux-low.cc (siginfo_fixup): Turn into...
820 (linux_process_target::siginfo_fixup): ...this.
821 (linux_process_target::low_siginfo_fixup): Define.
822 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
823 (x86_siginfo_fixup): Turn into...
824 (x86_target::low_siginfo_fixup): ...this.
825 (the_low_target): Remove the op field.
826 * linux-aarch64-low.cc (class aarch64_target):
827 <low_siginfo_fixup>: Declare.
828 (aarch64_linux_siginfo_fixup): Turn into...
829 (aarch64_target::low_siginfo_fixup): ...this.
830 (the_low_target): Remove the op field.
831 * linux-arm-low.cc (the_low_target): Remove the op field.
832 * linux-bfin-low.cc (the_low_target): Ditto.
833 * linux-crisv32-low.cc (the_low_target): Ditto.
834 * linux-m32r-low.cc (the_low_target): Ditto.
835 * linux-m68k-low.cc (the_low_target): Ditto.
836 * linux-mips-low.cc (the_low_target): Ditto.
837 * linux-ppc-low.cc (the_low_target): Ditto.
838 * linux-s390-low.cc (the_low_target): Ditto.
839 * linux-sh-low.cc (the_low_target): Ditto.
840 * linux-tic6x-low.cc (the_low_target): Ditto.
841 * linux-tile-low.cc (the_low_target): Ditto.
842 * linux-xtensa-low.cc (the_low_target): Ditto.
844 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
847 linux target ops into methods of linux_process_target.
849 * linux-low.h (struct linux_target_ops): Remove the ops.
850 (class linux_process_target) <low_collect_ptrace_register>
851 <low_store_ptrace_register>: Declare.
852 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
853 (linux_process_target::low_supply_ptrace_register): Define.
855 Update the callers below.
857 (linux_process_target::fetch_register)
858 (linux_process_target::store_register)
860 * linux-x86-low.cc (the_low_target): Remove the op fields.
861 * linux-aarch64-low.cc (the_low_target): Ditto.
862 * linux-arm-low.cc (the_low_target): Ditto.
863 * linux-bfin-low.cc (the_low_target): Ditto.
864 * linux-crisv32-low.cc (the_low_target): Ditto.
865 * linux-m32r-low.cc (the_low_target): Ditto.
866 * linux-m68k-low.cc (the_low_target): Ditto.
867 * linux-sh-low.cc (the_low_target): Ditto.
868 * linux-sparc-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.
872 * linux-mips-low.cc (class mips_target)
873 <low_collect_ptrace_register>
874 <low_supply_ptrace_register>: Declare.
875 (mips_collect_ptrace_register): Turn into ...
876 (mips_target::low_collect_ptrace_register): ...this.
877 (mips_supply_ptrace_register): Turn into...
878 (mips_target::low_supply_ptrace_register): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-ppc-low.cc (class ppc_target)
881 <low_collect_ptrace_register>
882 <low_supply_ptrace_register>: Declare.
883 (ppc_collect_ptrace_register): Turn into ...
884 (ppc_target::low_collect_ptrace_register): ...this.
885 (ppc_supply_ptrace_register): Turn into ...
886 (ppc_target::low_supply_ptrace_register): ...this.
887 (ppc_fill_gregset): Update for the calls to
888 low_collect_ptrace_register.
889 (the_low_target): Remove the op fields.
890 * linux-s390-low.cc (class s390_target)
891 <low_collect_ptrace_register>
892 <low_supply_ptrace_register>: Declare.
893 (s390_collect_ptrace_register): Turn into ...
894 (s390_target::low_collect_ptrace_register): ...this.
895 (s390_supply_ptrace_register): Turn into ...
896 (s390_target::low_supply_ptrace_register): ...this.
897 (s390_fill_gregset): Update for the calls to
898 low_collect_ptrace_register.
899 (the_low_target): Remove the op fields.
901 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
903 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
904 target ops into methods of linux_process_target.
906 * linux-low.h (struct linux_target_ops): Remove the ops.
907 (class linux_process_target) <check_stopped_by_watchpoint>
908 <low_stopped_by_watchpoint>
909 <low_stopped_data_address>: Declare.
910 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
911 (linux_process_target::check_stopped_by_watchpoint): ...this.
912 (linux_process_target::low_stopped_by_watchpoint): Define.
913 (linux_process_target::low_stopped_data_address): Define.
914 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
915 <low_stopped_data_address>: Declare.
916 (x86_stopped_by_watchpoint): Turn into...
917 (x86_target::low_stopped_by_watchpoint): ...this.
918 (x86_stopped_data_address): Turn into...
919 (x86_target::low_stopped_data_address): ...this.
920 (the_low_target): Remove the op fields.
921 * linux-aarch64-low.cc (class aarch64_target)
922 <low_stopped_by_watchpoint>
923 <low_stopped_data_address>: Declare.
924 (aarch64_stopped_by_watchpoint): Turn into...
925 (aarch64_target::low_stopped_by_watchpoint): ...this.
926 (aarch64_stopped_data_address): Turn into...
927 (aarch64_target::low_stopped_data_address): ...this.
928 (the_low_target): Remove the op fields.
929 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
930 <low_stopped_data_address>: Declare.
931 (arm_stopped_by_watchpoint): Turn into...
932 (arm_target::low_stopped_by_watchpoint): ...this.
933 (arm_stopped_data_address): Turn into...
934 (arm_target::low_stopped_data_address): ...this.
935 (the_low_target): Remove the op fields.
936 * linux-crisv32-low.cc (class crisv32_target)
937 <low_stopped_by_watchpoint>
938 <low_stopped_data_address>: Declare.
939 (cris_stopped_by_watchpoint): Turn into...
940 (crisv32_target::low_stopped_by_watchpoint): ...this.
941 (cris_stopped_data_address): Turn into...
942 (crisv32_target::low_stopped_data_address): ...this.
943 (the_low_target): Remove the op fields.
944 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
945 <low_stopped_data_address>: Declare.
946 (mips_stopped_by_watchpoint): Turn into...
947 (mips_target::low_stopped_by_watchpoint): ...this.
948 (mips_stopped_data_address): Turn into...
949 (mips_target::low_stopped_data_address): ...this.
950 (the_low_target): Remove the op fields.
951 * linux-bfin-low.cc (the_low_target): Remove the op fields.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-low.cc (the_low_target): Ditto.
954 * linux-ppc-low.cc (the_low_target): Ditto.
955 * linux-s390-low.cc (the_low_target): Ditto.
956 * linux-sh-low.cc (the_low_target): Ditto.
957 * linux-sparc-low.cc (the_low_target): Ditto.
958 * linux-tic6x-low.cc (the_low_target): Ditto.
959 * linux-tile-low.cc (the_low_target): Ditto.
960 * linux-xtensa-low.cc (the_low_target): Ditto.
962 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
964 Turn the 'insert_point' and 'remove_point' linux target ops into
965 methods of linux_process_target.
967 * linux-low.h (struct linux_target_ops): Remove the ops.
968 (class linux_process_target) <low_insert_point>
969 <low_remove_point>: Declare.
970 * linux-low.cc (linux_process_target::low_insert_point)
971 (linux_process_target::low_remove_point): Define.
972 (linux_process_target::insert_point)
973 (linux_process_target::remove_point): Update for calls to
974 low_insert_point and low_remove_point.
975 * linux-x86-low.cc (class x86_target) <low_insert_point>
976 <low_remove_point>: Declare.
977 (x86_insert_point): Turn into...
978 (x86_target::low_insert_point): ...this.
979 (x86_remove_point): Turn into...
980 (x86_target::low_remove_point): ...this.
981 (the_low_target): Remove the op fields.
982 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
983 <low_remove_point>: Declare.
984 (aarch64_insert_point): Turn into...
985 (aarch64_target::low_insert_point): ...this.
986 (aarch64_remove_point): Turn into...
987 (aarch64_target::low_remove_point): ...this.
988 (the_low_target): Remove the op fields.
989 * linux-arm-low.cc (class arm_target) <low_insert_point>
990 <low_remove_point>: Declare.
991 (arm_insert_point): Turn into...
992 (arm_target::low_insert_point): ...this.
993 (arm_remove_point): Turn into...
994 (arm_target::low_remove_point): ...this.
995 (the_low_target): Remove the op fields.
996 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
997 <low_remove_point>: Declare.
998 (crisv32_insert_point): Turn into...
999 (crisv32_target::low_insert_point): ...this.
1000 (crisv32_remove_point): Turn into...
1001 (crisv32_target::low_remove_point): ...this.
1002 (the_low_target): Remove the op fields.
1003 * linux-mips-low.cc (class mips_target) <low_insert_point>
1004 <low_remove_point>: Declare.
1005 (mips_insert_point): Turn into...
1006 (mips_target::low_insert_point): ...this.
1007 (mips_remove_point): Turn into...
1008 (mips_target::low_remove_point): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1011 <low_remove_point>: Declare.
1012 (ppc_insert_point): Turn into...
1013 (ppc_target::low_insert_point): ...this.
1014 (ppc_remove_point): Turn into...
1015 (ppc_target::low_remove_point): ...this.
1016 (the_low_target): Remove the op fields.
1017 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1018 * linux-m32r-low.cc (the_low_target): Ditto.
1019 * linux-m68k-low.cc (the_low_target): Ditto.
1020 * linux-s390-low.cc (the_low_target): Ditto.
1021 * linux-sh-low.cc (the_low_target): Ditto.
1022 * linux-sparc-low.cc (the_low_target): Ditto.
1023 * linux-tic6x-low.cc (the_low_target): Ditto.
1024 * linux-tile-low.cc (the_low_target): Ditto.
1025 * linux-xtensa-low.cc (the_low_target): Ditto.
1027 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1029 Remove the 'supports_z_point_type' linux target op and let the
1030 concrete linux target define it by overriding the op declared in
1031 process_stratum_target.
1033 * linux-low.cc (linux_process_target::supports_z_point_type):
1035 * linux-low.h (struct linux_target_ops): Remove the op.
1036 (class linux_process_target) <supports_z_point_type>: Remove.
1037 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1039 (x86_supports_z_point_type): Turn into...
1040 (x86_target::supports_z_point_type): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-aarch64-low.cc (class aarch64_target)
1043 <supports_z_point_type>: Declare.
1044 (aarch64_supports_z_point_type): Turn into...
1045 (aarch64_target::supports_z_point_type): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1049 (arm_supports_z_point_type): Turn into...
1050 (arm_target::supports_z_point_type): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-crisv32-low.cc (class crisv32_target)
1053 <supports_z_point_type>: Declare.
1054 (cris_supports_z_point_type): Turn into...
1055 (crisv32_target::supports_z_point_type): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1059 (mips_supports_z_point_type): Turn into...
1060 (mips_target::supports_z_point_type): ...this.
1061 (the_low_target): Remove the op field.
1062 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1064 (ppc_supports_z_point_type): Turn into...
1065 (ppc_target::supports_z_point_type): ...this.
1066 (the_low_target): Remove the op field.
1067 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1069 (s390_supports_z_point_type): Turn into...
1070 (s390_target::supports_z_point_type): ...this.
1071 (the_low_target): Remove the op field.
1072 * linux-bfin-low.cc (the_low_target): Remove the op field.
1073 * linux-m32r-low.cc (the_low_target): Ditto.
1074 * linux-m68k-low.cc (the_low_target): Ditto.
1075 * linux-sh-low.cc (the_low_target): Ditto.
1076 * linux-sparc-low.cc (the_low_target): Ditto.
1077 * linux-tic6x-low.cc (the_low_target): Ditto.
1078 * linux-tile-low.cc (the_low_target): Ditto.
1079 * linux-xtensa-low.cc (the_low_target): Ditto.
1081 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1083 Turn the 'breakpoint_at' linux target op into a method of
1084 linux_process_target.
1086 * linux-low.h (struct linux_target_ops): Remove the op.
1087 (class linux_process_target) <low_breakpoint_at>: Declare.
1089 Update the callers below:
1091 * linux-low.cc (linux_process_target::save_stop_reason)
1092 (linux_process_target::thread_still_has_status_pending)
1093 (linux_process_target::wait_1)
1095 * linux-x86-low.cc (class x86_target)
1096 <low_breakpoint_at>: Declare.
1097 (x86_breakpoint_at): Turn into...
1098 (x86_target::low_breakpoint_at): ...this.
1099 (the_low_target): Remove the op field.
1100 * linux-aarch64-low.cc (class aarch64_target)
1101 <low_breakpoint_at>: Declare.
1102 (aarch64_breakpoint_at): Turn into...
1103 (aarch64_target::low_breakpoint_at): ...this.
1104 (the_low_target): Remove the op field.
1105 * linux-arm-low.cc (class arm_target)
1106 <low_breakpoint_at>: Declare.
1107 (arm_target::low_breakpoint_at): Define.
1108 (the_low_target): Remove the op field.
1109 * linux-bfin-low.cc (class bfin_target)
1110 <low_breakpoint_at>: Declare.
1111 (bfin_breakpoint_at): Turn into...
1112 (bfin_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-cris-low.cc (class cris_target)
1115 <low_breakpoint_at>: Declare.
1116 (cris_breakpoint_at): Turn into...
1117 (cris_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-crisv32-low.cc (class crisv32_target)
1120 <low_breakpoint_at>: Declare.
1121 (crisv32_breakpoint_at): Turn into...
1122 (crisv32_target::low_breakpoint_at): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-ia64-low.cc (class ia64_target)
1125 <low_breakpoint_at>: Declare.
1126 (ia64_target::low_breakpoint_at): Define.
1127 * linux-m32r-low.cc (class m32r_target)
1128 <low_breakpoint_at>: Declare.
1129 (m32r_breakpoint_at): Turn into...
1130 (m32r_target::low_breakpoint_at): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-m68k-low.cc (class m68k_target)
1133 <low_breakpoint_at>: Declare.
1134 (m68k_breakpoint_at): Turn into...
1135 (m68k_target::low_breakpoint_at): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-mips-low.cc (class mips_target)
1138 <low_breakpoint_at>: Declare.
1139 (mips_breakpoint_at): Turn into...
1140 (mips_target::low_breakpoint_at): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-nios2-low.cc (class nios2_target)
1143 <low_breakpoint_at>: Declare.
1144 (nios2_breakpoint_at): Turn into...
1145 (nios2_target::low_breakpoint_at): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-ppc-low.cc (class ppc_target)
1148 <low_breakpoint_at>: Declare.
1149 (ppc_breakpoint_at): Turn into...
1150 (ppc_target::low_breakpoint_at): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-riscv-low.cc (class riscv_target)
1153 <low_breakpoint_at>: Declare.
1154 (riscv_breakpoint_at): Turn into...
1155 (riscv_target::low_breakpoint_at): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-s390-low.cc (class s390_target)
1158 <low_breakpoint_at>: Declare.
1159 (s390_breakpoint_at): Turn into...
1160 (s390_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-sh-low.cc (class sh_target)
1163 <low_breakpoint_at>: Declare.
1164 (sh_breakpoint_at): Turn into...
1165 (sh_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-sparc-low.cc (class sparc_target)
1168 <low_breakpoint_at>: Declare.
1169 (sparc_breakpoint_at): Turn into...
1170 (sparc_target::low_breakpoint_at): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-tic6x-low.cc (class tic6x_target)
1173 <low_breakpoint_at>: Declare.
1174 (tic6x_breakpoint_at): Turn into...
1175 (tic6x_target::low_breakpoint_at): ...this.
1176 (the_low_target): Remove the op field.
1177 * linux-tile-low.cc (class tile_target)
1178 <low_breakpoint_at>: Declare.
1179 (tile_breakpoint_at): Turn into...
1180 (tile_target::low_breakpoint_at): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-xtensa-low.cc (class xtensa_target)
1183 <low_breakpoint_at>: Declare.
1184 (xtensa_breakpoint_at): Turn into...
1185 (xtensa_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1188 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1190 Turn the 'decr_pc_after_break' linux_target_ops field into
1191 a method of linux_process_target.
1193 * linux-low.h (struct linux_target_ops)
1194 <decr_pc_after_break>: Remove.
1195 (class linux_process_target) <low_decr_pc_after_break>: New method
1197 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1198 New method implementation.
1200 Update the users below.
1202 (linux_process_target::save_stop_reason)
1203 (linux_process_target::wait_1)
1204 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1206 (x86_target::low_decr_pc_after_break): New method implementation.
1207 (the_low_target): Remove the field.
1208 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1210 (bfin_target::low_decr_pc_after_break): New method implementation.
1211 (the_low_target): Remove the field.
1212 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1214 (m68k_target::low_decr_pc_after_break): New method implementation.
1215 (the_low_target): Remove the field.
1216 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1218 (s390_target::low_decr_pc_after_break): New method implementation.
1219 (the_low_target): Remove the field.
1220 * linux-aarch64-low.cc (the_low_target): Remove the field.
1221 * linux-arm-low.cc (the_low_target): Remove the field.
1222 * linux-cris-low.cc (the_low_target): Remove the field.
1223 * linux-crisv32-low.cc (the_low_target): Remove the field.
1224 * linux-m32r-low.cc (the_low_target): Remove the field.
1225 * linux-mips-low.cc (the_low_target): Remove the field.
1226 * linux-nios2-low.cc (the_low_target): Remove the field.
1227 * linux-ppc-low.cc (the_low_target): Remove the field.
1228 * linux-riscv-low.cc (the_low_target): Remove the field.
1229 * linux-sh-low.cc (the_low_target): Remove the field.
1230 * linux-sparc-low.cc (the_low_target): Remove the field.
1231 * linux-tic6x-low.cc (the_low_target): Remove the field.
1232 * linux-tile-low.cc (the_low_target): Remove the field.
1233 * linux-xtensa-low.cc (the_low_target): Remove the field.
1235 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1237 Remove the 'supports_software_single_step' linux target op and let
1238 the concrete linux target define it by overriding the op in
1239 process_stratum_target.
1240 Turn the 'get_next_pcs' linux target op into a method of
1241 linux_process_target.
1243 * linux-low.h (struct linux_target_ops): Remove the ops.
1244 (class linux_process_target) <supports_software_single_step>:
1246 <low_get_next_pcs>: Declare.
1247 * linux-low.cc (can_software_single_step): Remove.
1248 (linux_process_target::low_get_next_pcs): Define.
1249 (linux_process_target::supports_software_single_step): Remove.
1251 Update the callers below.
1253 (linux_process_target::handle_extended_wait)
1254 (linux_process_target::wait_1)
1255 (linux_process_target::install_software_single_step_breakpoints)
1256 (linux_process_target::single_step)
1257 (linux_process_target::thread_needs_step_over)
1258 (linux_process_target::proceed_one_lwp)
1259 (linux_process_target::supports_range_stepping)
1261 * linux-x86-low.cc (the_low_target): Remove the op field.
1262 * linux-aarch64-low.cc (the_low_target): Ditto.
1263 * linux-bfin-low.cc (the_low_target): Ditto.
1264 * linux-cris-low.cc (the_low_target): Ditto.
1265 * linux-crisv32-low.cc (the_low_target): Ditto.
1266 * linux-m32r-low.cc (the_low_target): Ditto.
1267 * linux-m68k-low.cc (the_low_target): Ditto.
1268 * linux-mips-low.cc (the_low_target): Ditto.
1269 * linux-nios2-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-riscv-low.cc (the_low_target): Ditto.
1272 * linux-s390-low.cc (the_low_target): Ditto.
1273 * linux-sh-low.cc (the_low_target): Ditto.
1274 * linux-sparc-low.cc (the_low_target): Ditto.
1275 * linux-tic6x-low.cc (the_low_target): Ditto.
1276 * linux-tile-low.cc (the_low_target): Ditto.
1277 * linux-xtensa-low.cc (the_low_target): Ditto.
1278 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1279 <supports_software_single_step>: Declare.
1280 (arm_target::supports_software_single_step): Define.
1281 (arm_gdbserver_get_next_pcs): Turn into...
1282 (arm_target::low_get_next_pcs): ...this.
1283 (the_low_target): Remove the op field.
1285 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1287 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1288 the concrete linux target define it by overriding the op
1289 in process_stratum_target.
1291 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1293 * linux-low.h (struct linux_target_ops): Remove the op.
1294 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1295 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1297 (x86_sw_breakpoint_from_kind): Turn into...
1298 (x86_target::sw_breakpoint_from_kind): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-aarch64-low.cc (class aarch64_target)
1301 <sw_breakpoint_from_kind>: Declare.
1302 (aarch64_sw_breakpoint_from_kind): Turn into...
1303 (aarch64_target::sw_breakpoint_from_kind): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1307 (arm_target::sw_breakpoint_from_kind): Define.
1308 (the_low_target): Remove the op field.
1309 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1311 (bfin_sw_breakpoint_from_kind): Turn into...
1312 (bfin_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1316 (cris_sw_breakpoint_from_kind): Turn into...
1317 (cris_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1319 * linux-crisv32-low.cc (class crisv32_target)
1320 <sw_breakpoint_from_kind>: Declare.
1321 (cris_sw_breakpoint_from_kind): Turn into...
1322 (crisv32_target::sw_breakpoint_from_kind): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1326 (ia64_target::sw_breakpoint_from_kind): Define.
1327 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1329 (m32r_sw_breakpoint_from_kind): Turn into...
1330 (m32r_target::sw_breakpoint_from_kind): ...this.
1331 (the_low_target): Remove the op field.
1332 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1334 (m68k_sw_breakpoint_from_kind): Turn into...
1335 (m68k_target::sw_breakpoint_from_kind): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1339 (mips_sw_breakpoint_from_kind): Turn into...
1340 (mips_target::sw_breakpoint_from_kind): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1344 (nios2_sw_breakpoint_from_kind): Turn into...
1345 (nios2_target::sw_breakpoint_from_kind): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1349 (ppc_sw_breakpoint_from_kind): Turn into...
1350 (ppc_target::sw_breakpoint_from_kind): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1354 (riscv_sw_breakpoint_from_kind): Turn into...
1355 (riscv_target::sw_breakpoint_from_kind): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1359 (s390_sw_breakpoint_from_kind): Turn into...
1360 (s390_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1364 (sh_sw_breakpoint_from_kind): Turn into...
1365 (sh_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1369 (sparc_sw_breakpoint_from_kind): Turn into...
1370 (sparc_target::sw_breakpoint_from_kind): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1374 (tic6x_sw_breakpoint_from_kind): Turn into...
1375 (tic6x_target::sw_breakpoint_from_kind): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1379 (tile_sw_breakpoint_from_kind): Turn into...
1380 (tile_target::sw_breakpoint_from_kind): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-xtensa-low.cc (class xtensa_target)
1383 <sw_breakpoint_from_kind>: Declare.
1384 (xtensa_sw_breakpoint_from_kind): Turn into...
1385 (xtensa_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1388 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390 Remove the 'breakpoint_kind_from_pc' and
1391 'breakpoint_kind_from_current_state' linux target ops, and let the
1392 concrete linux target define them by overriding the ops of
1393 process_stratum_target.
1395 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1397 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1398 * linux-low.h (struct linux_target_ops): Remove ops.
1399 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1400 <breakpoint_kind_from_current_state>: Remove.
1401 * linux-x86-low.cc (the_low_target): Remove the op fields.
1402 * linux-bfin-low.cc (the_low_target): Ditto.
1403 * linux-cris-low.cc (the_low_target): Ditto.
1404 * linux-crisv32-low.cc (the_low_target): Ditto.
1405 * linux-m32r-low.cc (the_low_target): Ditto.
1406 * linux-m68k-low.cc (the_low_target): Ditto.
1407 * linux-mips-low.cc (the_low_target): Ditto.
1408 * linux-nios2-low.cc (the_low_target): Ditto.
1409 * linux-ppc-low.cc (the_low_target): Ditto.
1410 * linux-s390-low.cc (the_low_target): Ditto.
1411 * linux-sh-low.cc (the_low_target): Ditto.
1412 * linux-sparc-low.cc (the_low_target): Ditto.
1413 * linux-tic6x-low.cc (the_low_target): Ditto.
1414 * linux-tile-low.cc (the_low_target): Ditto.
1415 * linux-xtensa-low.cc (the_low_target): Ditto.
1416 * linux-aarch64-low.cc (class aarch64_target)
1417 <breakpoint_kind_from_pc>
1418 <breakpoint_kind_from_current_state>: Declare.
1419 (aarch64_breakpoint_kind_from_pc): Turn into...
1420 (aarch64_target::breakpoint_kind_from_pc): ...this.
1421 (aarch64_breakpoint_kind_from_current_state): Turn into...
1422 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1423 (the_low_target): Remove the op fields.
1424 * linux-arm-low.cc (class arm_target):
1425 <breakpoint_kind_from_pc>
1426 <breakpoint_kind_from_current_state>: Declare.
1427 (arm_target::breakpoint_kind_from_pc): Define.
1428 (arm_target::breakpoint_kind_from_current_state): Define.
1429 (the_low_target): Remove the op fields.
1430 * linux-riscv-low.cc (class riscv_target):
1431 <breakpoint_kind_from_pc>: Declare.
1432 (riscv_breakpoint_kind_from_pc): Turn into...
1433 (riscv_target::breakpoint_kind_from_pc): ...this.
1434 (the_low_target): Remove the op fields.
1436 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1438 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1439 of linux_process_target.
1441 * linux-low.h (struct linux_target_ops): Remove the ops.
1442 (class linux_process_target) <low_supports_breakpoints>
1444 <low_set_pc>: Declare.
1445 * linux-low.cc (supports_breakpoints): Turn into...
1446 (linux_process_target::low_supports_breakpoints): ...this.
1447 (linux_process_target::low_get_pc): Define.
1448 (linux_process_target::low_set_pc): Define.
1450 Update the callers below.
1452 (linux_process_target::get_pc)
1453 (linux_process_target::save_stop_reason)
1454 (linux_process_target::maybe_move_out_of_jump_pad)
1455 (linux_process_target::wait_1)
1456 (linux_process_target::resume_one_lwp_throw)
1457 (linux_process_target::resume)
1458 (linux_process_target::proceed_all_lwps)
1459 (linux_process_target::read_pc)
1460 (linux_process_target::write_pc)
1462 * linux-x86-low.cc (class linux_process_target)
1463 <low_supports_breakpoints>
1465 <low_set_pc>: Declare.
1466 (x86_target::low_supports_breakpoints): Define.
1467 (x86_get_pc): Turn into...
1468 (x86_target::low_get_pc): ...this.
1469 (x86_set_pc): Turn into...
1470 (x86_target::low_set_pc): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-arm-low.cc (class arm_target)
1473 <low_supports_breakpoints>
1475 <low_set_pc>: Declare.
1476 (arm_target::low_supports_breakpoints)
1477 (arm_target::low_get_pc)
1478 (arm_target::low_set_pc): Define.
1479 (the_low_target): Remove the op fields.
1480 * linux-bfin-low.cc (class bfin_target)
1481 <low_supports_breakpoints>
1483 <low_set_pc>: Declare.
1484 (bfin_target::low_supports_breakpoints)
1485 (bfin_target::low_get_pc)
1486 (bfin_target::low_set_pc): Define.
1487 (the_low_target): Remove the op fields.
1488 * linux-cris-low.cc (class cris_target)
1489 <low_supports_breakpoints>
1491 <low_set_pc>: Declare.
1492 (cris_target::low_supports_breakpoints)
1493 (cris_target::low_get_pc)
1494 (cris_target::low_set_pc): Define.
1495 (the_low_target): Remove the op fields.
1496 * linux-crisv32-low.cc (class crisv32_target)
1497 <low_supports_breakpoints>
1499 <low_set_pc>: Declare.
1500 (crisv32_target::low_supports_breakpoints)
1501 (crisv32_target::low_get_pc)
1502 (crisv32_target::low_set_pc): Define.
1503 (the_low_target): Remove the op fields.
1504 * linux-m32r-low.cc (class m32r_target)
1505 <low_supports_breakpoints>
1507 <low_set_pc>: Declare.
1508 (m32r_target::low_supports_breakpoints)
1509 (m32r_target::low_get_pc)
1510 (m32r_target::low_set_pc): Define.
1511 (the_low_target): Remove the op fields.
1512 * linux-m68k-low.cc (class m68k_target)
1513 <low_supports_breakpoints>
1515 <low_set_pc>: Declare.
1516 (m68k_target::low_supports_breakpoints)
1517 (m68k_target::low_get_pc)
1518 (m68k_target::low_set_pc): Define.
1519 (the_low_target): Remove the op fields.
1520 * linux-nios2-low.cc (class nios2_target)
1521 <low_supports_breakpoints>
1523 <low_set_pc>: Declare.
1524 (nios2_target::low_supports_breakpoints)
1525 (nios2_target::low_get_pc)
1526 (nios2_target::low_set_pc): Define.
1527 (the_low_target): Remove the op fields.
1528 * linux-sh-low.cc (class sh_target)
1529 <low_supports_breakpoints>
1531 <low_set_pc>: Declare.
1532 (sh_target::low_supports_breakpoints)
1533 (sh_target::low_get_pc)
1534 (sh_target::low_set_pc): Define.
1535 (the_low_target): Remove the op fields.
1536 * linux-xtensa-low.cc (class xtensa_target)
1537 <low_supports_breakpoints>
1539 <low_set_pc>: Declare.
1540 (xtensa_target::low_supports_breakpoints)
1541 (xtensa_target::low_get_pc)
1542 (xtensa_target::low_set_pc): Define.
1543 (the_low_target): Remove the op fields.
1544 * linux-sparc-low.cc (class sparc_target)
1545 <low_supports_breakpoints>
1546 <low_get_pc>: Declare.
1547 (sparc_target::low_supports_breakpoints)
1548 (sparc_target::low_get_pc): Define.
1549 (the_low_target): Remove the op fields.
1550 * linux-tile-low.cc (class tile_target)
1551 <low_supports_breakpoints>
1553 <low_set_pc>: Declare.
1554 (tile_target::low_supports_breakpoints)
1555 (tile_target::low_get_pc)
1556 (tile_target::low_set_pc): Define.
1557 (the_low_target): Remove the op fields.
1558 * linux-aarch64-low.cc (class aarch64_target)
1559 <low_supports_breakpoints>
1561 <low_set_pc>: Declare.
1562 (aarch64_target::low_supports_breakpoints): Define.
1563 (aarch64_get_pc): Turn into...
1564 (aarch64_target::low_get_pc): ...this.
1565 (aarch64_set_pc): Turn into...
1566 (aarch64_target::low_set_pc): ...this.
1567 (the_low_target): Remove the op fields.
1568 * linux-mips-low.cc (class mips_target)
1569 <low_supports_breakpoints>
1571 <low_set_pc>: Declare.
1572 (mips_target::low_supports_breakpoints): Define.
1573 (mips_get_pc): Turn into...
1574 (mips_target::low_get_pc): ...this.
1575 (mips_set_pc): Turn into...
1576 (mips_target::low_set_pc): ...this.
1577 (the_low_target): Remove the op fields.
1578 * linux-ppc-low.cc (class ppc_target)
1579 <low_supports_breakpoints>
1581 <low_set_pc>: Declare.
1582 (ppc_target::low_supports_breakpoints): Define.
1583 (ppc_get_pc): Turn into...
1584 (ppc_target::low_get_pc): ...this.
1585 (ppc_set_pc): Turn into...
1586 (ppc_target::low_set_pc): ...this.
1587 (the_low_target): Remove the op fields.
1588 * linux-riscv-low.cc (class riscv_target)
1589 <low_supports_breakpoints>
1591 <low_set_pc>: Declare.
1592 (riscv_target::low_supports_breakpoints): Define.
1593 (riscv_get_pc): Turn into...
1594 (riscv_target::low_get_pc): ...this.
1595 (riscv_set_pc): Turn into...
1596 (riscv_target::low_set_pc): ...this.
1597 (the_low_target): Remove the op fields.
1598 * linux-s390-low.cc (class s390_target)
1599 <low_supports_breakpoints>
1601 <low_set_pc>: Declare.
1602 (s390_target::low_supports_breakpoints): Define.
1603 (s390_get_pc): Turn into...
1604 (s390_target::low_get_pc): ...this.
1605 (s390_set_pc): Turn into...
1606 (s390_target::low_set_pc): ...this.
1607 (the_low_target): Remove the op fields.
1608 * linux-tic6x-low.cc (class tic6x_target)
1609 <low_supports_breakpoints>
1611 <low_set_pc>: Declare.
1612 (tic6x_target::low_supports_breakpoints): Define.
1613 (tic6x_get_pc): Turn into...
1614 (tic6x_target::low_get_pc): ...this.
1615 (tic6x_set_pc): Turn into...
1616 (tic6x_target::low_set_pc): ...this.
1617 (the_low_target): Remove the op fields.
1619 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1621 Turn some more static methods in linux-low into private methods
1622 of linux_process_target.
1624 * linux-low.cc (get_pc): Turn into...
1625 (linux_process_target::get_pc): ...this.
1626 (save_stop_reason): Turn into...
1627 (linux_process_target::save_stop_reason): ...this.
1628 (thread_still_has_status_pending_p): Turn into...
1629 (linux_process_target::thread_still_has_status_pending): ...this.
1630 (status_pending_p_callback): Turn into...
1631 (linux_process_target::status_pending_p_callback): ...this.
1632 (resume_stopped_resumed_lwps): Turn into...
1633 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1634 (install_software_single_step_breakpoints): Turn into...
1635 (linux_process_target::install_software_single_step_breakpoints):
1637 (single_step): Turn into...
1638 (linux_process_target::single_step): ...this.
1639 (linux_resume_one_lwp_throw): Turn into...
1640 (linux_process_target::resume_one_lwp_throw): ...this.
1641 (linux_resume_one_lwp): Turn into...
1642 (linux_process_target::resume_one_lwp): ...this.
1643 (resume_status_pending_p): Turn into...
1644 (linux_process_target::resume_status_pending): ...this.
1645 (need_step_over_p): Turn into...
1646 (linux_process_target::thread_needs_step_over): ...this.
1647 (linux_resume_one_thread): Turn into...
1648 (linux_process_target::resume_one_thread): ...this.
1649 (proceed_one_lwp): Turn into...
1650 (linux_process_target::proceed_one_lwp): ...this.
1651 (unsuspend_and_proceed_one_lwp): Turn into...
1652 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1654 Update the calls/references to the above functions below.
1656 (linux_process_target::handle_extended_wait)
1657 (linux_process_target::filter_event)
1658 (linux_process_target::wait_for_event_filtered)
1659 (linux_process_target::wait_1)
1660 (linux_process_target::move_out_of_jump_pad)
1661 (linux_process_target::start_step_over)
1662 (linux_process_target::resume)
1663 (linux_process_target::proceed_all_lwps)
1664 (regsets_store_inferior_registers)
1665 (linux_process_target::store_register)
1667 * linux-low.h (class linux_process_target)
1670 <thread_still_has_status_pending>
1671 <status_pending_p_callback>
1672 <resume_stopped_resumed_lwps>
1673 <install_software_single_step_breakpoints>
1675 <resume_one_lwp_throw>
1677 <resume_status_pending>
1678 <thread_needs_step_over>
1681 <unsuspend_and_proceed_one_lwp>: Declare.
1683 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1685 Turn the 'fetch_register' linux target op into a method of
1686 linux_process_target.
1688 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1689 (class linux_process_target) <low_fetch_register>: Declare.
1690 * linux-x86-low.cc (the_low_target)
1691 * linux-aarch64-low.cc (the_low_target)
1692 * linux-arm-low.cc (the_low_target)
1693 * linux-bfin-low.cc (the_low_target)
1694 * linux-cris-low.cc (the_low_target)
1695 * linux-crisv32-low.cc (the_low_target)
1696 * linux-m32r-low.cc (the_low_target)
1697 * linux-m68k-low.cc (the_low_target)
1698 * linux-nios2-low.cc (the_low_target)
1699 * linux-ppc-low.cc (the_low_target)
1700 * linux-s390-low.cc (the_low_target)
1701 * linux-sh-low.cc (the_low_target)
1702 * linux-sparc-low.cc (the_low_target)
1703 * linux-tic6x-low.cc (the_low_target)
1704 * linux-tile-low.cc (the_low_target)
1705 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1706 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1708 (ia64_fetch_register): Turn into...
1709 (ia64_target::low_fetch_register): ...this.
1710 (the_low_target): Remove the op field.
1711 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1713 (mips_fetch_register): Turn into...
1714 (mips_target::low_fetch_register): ...this.
1715 (the_low_target): Remove the op field.
1716 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1718 (riscv_fetch_register): Turn into...
1719 (riscv_target::low_fetch_register): ...this.
1720 (the_low_target): Remove the op field.
1722 Update the callers below.
1724 * linux-low.cc (linux_process_target::fetch_registers)
1725 (linux_process_target::low_fetch_register)
1727 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1729 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1730 linux target ops into methods of linux_process_target.
1732 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1733 (class linux_process_target) <fetch_register>
1735 <usr_fetch_inferior_registers>
1736 <usr_store_inferior_registers>
1737 <low_cannot_fetch_register>
1738 <low_cannot_fetch_register> Declare.
1739 * linux-low.cc (fetch_register): Turn into...
1740 (linux_process_target::fetch_register): ...this.
1741 (store_register): Turn into ...
1742 (linux_process_target::store_register): ...this.
1743 (usr_fetch_inferior_registers): Turn into...
1744 (linux_process_target::usr_fetch_inferior_registers): ...this.
1745 (usr_store_inferior_registers): Turn into...
1746 (linux_process_target::usr_store_inferior_registers): ...this.
1747 * linux-x86-low.cc (class x86_target)
1748 <low_cannot_fetch_register>
1749 <low_cannot_store_register>: Declare.
1750 (x86_cannot_store_register): Turn into...
1751 (x86_target::low_cannot_store_register): ...this.
1752 (x86_cannot_fetch_register): Turn into...
1753 (x86_target::low_cannot_fetch_register): ...this.
1754 (the_low_target): Remove the target op fields.
1755 * linux-aarch64-low.cc (class aarch64_target)
1756 <low_cannot_fetch_register>
1757 <low_cannot_store_register>: Declare.
1758 (aarch64_target::low_cannot_fetch_register)
1759 (aarch64_target::low_cannot_store_register): Define.
1760 (the_low_target): Remove the op fields.
1761 * linux-arm-low.cc (class arm_target)
1762 <low_cannot_fetch_register>
1763 <low_cannot_store_register>: Declare.
1764 (arm_cannot_fetch_register): Turn into...
1765 (arm_target::low_cannot_fetch_register): ...this.
1766 (arm_cannot_store_register): Turn into...
1767 (arm_target::low_cannot_store_register): ...this.
1768 (the_low_target): Remove the op fields.
1769 * linux-bfin-low.cc (class bfin_target)
1770 <low_cannot_fetch_register>
1771 <low_cannot_store_register>: Declare.
1772 (bfin_cannot_fetch_register): Turn into...
1773 (bfin_target::low_cannot_fetch_register): ...this.
1774 (bfin_cannot_store_register): Turn into...
1775 (bfin_target::low_cannot_store_register): ...this.
1776 (the_low_target): Remove the op fields.
1777 * linux-cris-low.cc (class cris_target)
1778 <low_cannot_fetch_register>
1779 <low_cannot_store_register>: Declare.
1780 (cris_cannot_fetch_register): Turn into...
1781 (cris_target::low_cannot_fetch_register): ...this.
1782 (cris_cannot_store_register): Turn into...
1783 (cris_target::low_cannot_store_register): ...this.
1784 (the_low_target): Remove the op fields.
1785 * linux-crisv32-low.cc (class crisv32_target)
1786 <low_cannot_fetch_register>
1787 <low_cannot_store_register>: Declare.
1788 (crisv32_target::low_cannot_fetch_register)
1789 (crisv32_target::low_cannot_store_register): Define.
1790 (the_low_target): Remove the op fields.
1791 * linux-ia64-low.cc (class ia64_target)
1792 <low_cannot_fetch_register>
1793 <low_cannot_store_register>: Declare.
1794 (ia64_cannot_fetch_register): Turn into...
1795 (ia64_target::low_cannot_fetch_register): ...this.
1796 (ia64_cannot_store_register): Turn into...
1797 (ia64_target::low_cannot_store_register): ...this.
1798 (the_low_target): Remove the op fields.
1799 * linux-m32r-low.cc (class m32r_target)
1800 <low_cannot_fetch_register>
1801 <low_cannot_store_register>: Declare.
1802 (m32r_cannot_fetch_register): Turn into...
1803 (m32r_target::low_cannot_fetch_register): ...this.
1804 (m32r_cannot_store_register): Turn into...
1805 (m32r_target::low_cannot_store_register): ...this.
1806 (the_low_target): Remove the op fields.
1807 * linux-m68k-low.cc (class m68k_target)
1808 <low_cannot_fetch_register>
1809 <low_cannot_store_register>: Declare.
1810 (m68k_cannot_fetch_register): Turn into...
1811 (m68k_target::low_cannot_fetch_register): ...this.
1812 (m68k_cannot_store_register): Turn into...
1813 (m68k_target::low_cannot_store_register): ...this.
1814 (the_low_target): Remove the op fields.
1815 * linux-mips-low.cc (class mips_target)
1816 <low_cannot_fetch_register>
1817 <low_cannot_store_register>: Declare.
1818 (mips_cannot_fetch_register): Turn into...
1819 (mips_target::low_cannot_fetch_register): ...this.
1820 (mips_cannot_store_register): Turn into...
1821 (mips_target::low_cannot_store_register): ...this.
1822 (get_usrregs_info): Inline at the call sites in
1823 low_cannot_fetch_register and low_cannot_store_register,
1825 (the_low_target): Remove the op fields.
1826 * linux-nios2-low.cc (class nios2_target)
1827 <low_cannot_fetch_register>
1828 <low_cannot_store_register>: Declare.
1829 (nios2_cannot_fetch_register): Turn into...
1830 (nios2_target::low_cannot_fetch_register): ...this.
1831 (nios2_cannot_store_register): Turn into...
1832 (nios2_target::low_cannot_store_register): ...this.
1833 (the_low_target): Remove the op fields.
1834 * linux-ppc-low.cc (class ppc_target)
1835 <low_cannot_fetch_register>
1836 <low_cannot_store_register>: Declare.
1837 (ppc_cannot_fetch_register): Turn into...
1838 (ppc_target::low_cannot_fetch_register): ...this.
1839 (ppc_cannot_store_register): Turn into...
1840 (ppc_target::low_cannot_store_register): ...this.
1841 (the_low_target): Remove the op fields.
1842 * linux-riscv-low.cc (class riscv_target)
1843 <low_cannot_fetch_register>
1844 <low_cannot_store_register>: Declare.
1845 (riscv_target::low_cannot_fetch_register)
1846 (riscv_target::low_cannot_store_register): Define.
1847 (the_low_target): Remove the op fields.
1848 * linux-s390-low.cc (class s390_target)
1849 <low_cannot_fetch_register>
1850 <low_cannot_store_register>: Declare.
1851 (s390_cannot_fetch_register): Turn into...
1852 (s390_target::low_cannot_fetch_register): ...this.
1853 (s390_cannot_store_register): Turn into...
1854 (s390_target::low_cannot_store_register): ...this.
1855 (the_low_target): Remove the op fields.
1856 * linux-sh-low.cc (class sh_target)
1857 <low_cannot_fetch_register>
1858 <low_cannot_store_register>: Declare.
1859 (sh_cannot_fetch_register): Turn into...
1860 (sh_target::low_cannot_fetch_register): ...this.
1861 (sh_cannot_store_register): Turn into...
1862 (sh_target::low_cannot_store_register): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-sparc-low.cc (class sparc_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (sparc_cannot_fetch_register): Turn into...
1868 (sparc_target::low_cannot_fetch_register): ...this.
1869 (sparc_cannot_store_register): Turn into...
1870 (sparc_target::low_cannot_store_register): ...this.
1871 (the_low_target): Remove the op fields.
1872 * linux-tic6x-low.cc (class tic6x_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (tic6x_cannot_fetch_register): Turn into...
1876 (tic6x_target::low_cannot_fetch_register): ...this.
1877 (tic6x_cannot_store_register): Turn into...
1878 (tic6x_target::low_cannot_store_register): ...this.
1879 (the_low_target): Remove the op fields.
1880 * linux-tile-low.cc (class tile_target)
1881 <low_cannot_fetch_register>
1882 <low_cannot_store_register>: Declare.
1883 (tile_cannot_fetch_register): Turn into...
1884 (tile_target::low_cannot_fetch_register): ...this.
1885 (tile_cannot_store_register): Turn into...
1886 (tile_target::low_cannot_store_register): ...this.
1887 (the_low_target): Remove the op fields.
1888 * linux-xtensa-low.cc (class xtensa_target)
1889 <low_cannot_fetch_register>
1890 <low_cannot_store_register>: Declare.
1891 (xtensa_target::low_cannot_fetch_register)
1892 (xtensa_target::low_cannot_store_register): Define.
1893 (the_low_target): Remove the op fields.
1895 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1897 Turn the 'regs_info' linux target op into a method of
1898 linux_process_target.
1900 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1901 (class linux_process_target) <get_regs_info>: Define.
1903 Update the callers below.
1905 * linux-low.cc (linux_process_target::fetch_registers)
1906 (linux_process_target::store_registers)
1907 * proc-service.cc (gregset_info)
1909 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1910 (x86_linux_regs_info): Turn into ...
1911 (x86_target::get_regs_info): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1915 (aarch64_regs_info): Turn into ...
1916 (aarch64_target::get_regs_info): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1919 (arm_regs_info): Turn into ...
1920 (arm_target::get_regs_info): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1923 (bfin_regs_info): Turn into ...
1924 (bfin_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1927 (cris_regs_info): Turn into ...
1928 (cris_target::get_regs_info): ...this.
1929 (the_low_target): Remove the op field.
1930 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1932 (crisv32_regs_info): Turn into ...
1933 (crisv32_target::get_regs_info): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1936 (ia64_regs_info): Turn into ...
1937 (ia64_target::get_regs_info): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1940 (m32r_regs_info): Turn into ...
1941 (m32r_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1944 (m68k_regs_info): Turn into ...
1945 (m68k_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1948 (mips_regs_info): Turn into ...
1949 (mips_target::get_regs_info): ...this.
1950 (the_low_target): Remove the op field.
1951 (get_usrregs_info): Update the call to the op.
1952 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1953 (nios2_regs_info): Turn into ...
1954 (nios2_target::get_regs_info): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1957 (ppc_regs_info): Turn into ...
1958 (ppc_target::get_regs_info): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1961 (riscv_regs_info): Turn into ...
1962 (riscv_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1965 (s390_regs_info): Turn into ...
1966 (s390_target::get_regs_info): ...this.
1967 (the_low_target): Remove the op field.
1968 (s390_collect_ptrace_register)
1969 (s390_supply_ptrace_register)
1970 (s390_fill_gregset): Update the call to the op.
1971 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1972 (sh_regs_info): Turn into ...
1973 (sh_target::get_regs_info): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1976 (sparc_regs_info): Turn into ...
1977 (sparc_target::get_regs_info): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1980 (tic6x_regs_info): Turn into ...
1981 (tic6x_target::get_regs_info): ...this.
1982 (the_low_target): Remove the op field.
1983 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1984 (tile_regs_info): Turn into ...
1985 (tile_target::get_regs_info): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1989 (xtensa_regs_info): Turn into ...
1990 (xtensa_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1993 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1995 Turn the 'arch_setup' linux target op into a method of
1996 linux_process_target.
1998 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1999 (class linux_process_target) <arch_setup_thread>
2000 <low_arch_setup>: New declarations.
2001 * linux-low.cc (linux_arch_setup): Delete.
2002 (linux_arch_setup_thread): Turn into...
2003 (linux_process_target::arch_setup_thread): ... this.
2005 Update the callers below.
2007 (linux_process_target::handle_extended_wait)
2008 (linux_process_target::post_create_inferior)
2009 (linux_process_target::filter_event)
2011 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2013 (x86_linux_update_xmltarget): Turn into...
2014 (x86_target::update_xmltarget): ...this.
2015 (x86_linux_process_qsupported): Update the call to
2016 x86_linux_update_xmltarget.
2017 (x86_arch_setup): Turn into ...
2018 (x86_target::low_arch_setup): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2022 (aarch64_arch_setup): Turn into ...
2023 (aarch64_target::low_arch_setup): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2027 (arm_arch_setup): Turn into ...
2028 (arm_target::low_arch_setup): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2032 (bfin_arch_setup): Turn into ...
2033 (bfin_target::low_arch_setup): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2037 (cris_arch_setup): Turn into ...
2038 (cris_target::low_arch_setup): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2042 (crisv32_arch_setup): Turn into ...
2043 (crisv32_target::low_arch_setup): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2047 (ia64_arch_setup): Turn into ...
2048 (ia64_target::low_arch_setup): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2052 (m32r_arch_setup): Turn into ...
2053 (m32r_target::low_arch_setup): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2057 (m68k_arch_setup): Turn into ...
2058 (m68k_target::low_arch_setup): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2062 (mips_arch_setup): Turn into ...
2063 (mips_target::low_arch_setup): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2067 (nios2_arch_setup): Turn into ...
2068 (nios2_target::low_arch_setup): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2072 (ppc_arch_setup): Turn into ...
2073 (ppc_target::low_arch_setup): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2077 (riscv_arch_setup): Turn into ...
2078 (riscv_target::low_arch_setup): ...this.
2079 (the_low_target): Remove the op field.
2080 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2082 (s390_arch_setup): Turn into ...
2083 (s390_target::low_arch_setup): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2087 (sh_arch_setup): Turn into ...
2088 (sh_target::low_arch_setup): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2092 (sparc_arch_setup): Turn into ...
2093 (sparc_target::low_arch_setup): ...this.
2094 (the_low_target): Remove the op field.
2095 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2097 (tic6x_arch_setup): Turn into ...
2098 (tic6x_target::low_arch_setup): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2102 (tile_arch_setup): Turn into ...
2103 (tile_target::low_arch_setup): ...this.
2104 (the_low_target): Remove the op field.
2105 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2107 (xtensa_arch_setup): Turn into ...
2108 (xtensa_target::low_arch_setup): ...this.
2109 (the_low_target): Remove the op field.
2111 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113 * linux-low.h (the_linux_target): New extern declaration.
2114 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2116 (the_linux_target): Remove.
2117 * linux-x86-low.cc (class x86_target): New class.
2118 (the_x86_target): New static object.
2119 (the_linux_target): Define as pointer to the_x86_target.
2120 * linux-aarch64-low.cc (class aarch64_target): New class.
2121 (the_aarch64_target): New static object.
2122 (the_linux_target): Define as pointer to the_aarch64_target.
2123 * linux-arm-low.cc (class arm_target): New class.
2124 (the_arm_target): New static object.
2125 (the_linux_target): Define as pointer to the_arm_target.
2126 * linux-bfin-low.cc (class bfin_target): New class.
2127 (the_bfin_target): New static object.
2128 (the_linux_target): Define as pointer to the_bfin_target.
2129 * linux-cris-low.cc (class cris_target): New class.
2130 (the_cris_target): New static object.
2131 (the_linux_target): Define as pointer to the_cris_target.
2132 * linux-crisv32-low.cc (class crisv32_target): New class.
2133 (the_crisv32_target): New static object.
2134 (the_linux_target): Define as pointer to the_crisv32_target.
2135 * linux-ia64-low.cc (class ia64_target): New class.
2136 (the_ia64_target): New static object.
2137 (the_linux_target): Define as pointer to the_ia64_target.
2138 * linux-m32r-low.cc (class m32r_target): New class.
2139 (the_m32r_target): New static object.
2140 (the_linux_target): Define as pointer to the_m32r_target.
2141 * linux-m68k-low.cc (class m68k_target): New class.
2142 (the_m68k_target): New static object.
2143 (the_linux_target): Define as pointer to the_m68k_target.
2144 * linux-mips-low.cc (class mips_target): New class.
2145 (the_mips_target): New static object.
2146 (the_linux_target): Define as pointer to the_mips_target.
2147 * linux-nios2-low.cc (class nios2_target): New class.
2148 (the_nios2_target): New static object.
2149 (the_linux_target): Define as pointer to the_nios2_target.
2150 * linux-ppc-low.cc (class ppc_target): New class.
2151 (the_ppc_target): New static object.
2152 (the_linux_target): Define as pointer to the_ppc_target.
2153 * linux-riscv-low.cc (class riscv_target): New class.
2154 (the_riscv_target): New static object.
2155 (the_linux_target): Define as pointer to the_riscv_target.
2156 * linux-s390-low.cc (class s390_target): New class.
2157 (the_s390_target): New static object.
2158 (the_linux_target): Define as pointer to the_s390_target.
2159 * linux-sh-low.cc (class sh_target): New class.
2160 (the_sh_target): New static object.
2161 (the_linux_target): Define as pointer to the_sh_target.
2162 * linux-sparc-low.cc (class sparc_target): New class.
2163 (the_sparc_target): New static object.
2164 (the_linux_target): Define as pointer to the_sparc_target.
2165 * linux-tic6x-low.cc (class tic6x_target): New class.
2166 (the_tic6x_target): New static object.
2167 (the_linux_target): Define as pointer to the_tic6x_target.
2168 * linux-tile-low.cc (class tile_target): New class.
2169 (the_tile_target): New static object.
2170 (the_linux_target): Define as pointer to the_tile_target.
2171 * linux-xtensa-low.cc (class xtensa_target): New class.
2172 (the_xtensa_target): New static object.
2173 (the_linux_target): Define as pointer to the_xtensa_target.
2175 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2177 Turn some static functions in linux-low.cc into private methods of
2178 linux_process_target.
2180 * linux-low.cc (handle_extended_wait): Turn into ...
2181 (linux_process_target::handle_extended_wait): ...this. Call
2182 'mourn' on 'this' object instead of 'the_target'.
2183 (maybe_move_out_of_jump_pad): Turn into...
2184 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2185 (linux_low_filter_event): Turn into...
2186 (linux_process_target::filter_event): ...this.
2187 (linux_wait_for_event_filtered): Turn into...
2188 (linux_process_target::wait_for_event_filtered): ...this.
2189 (linux_wait_for_event): Turn into...
2190 (linux_process_target::wait_for_event): ...this.
2191 (linux_wait_1): Turn into...
2192 (linux_process_target::wait_1): ...this.
2193 (wait_for_sigstop): Turn into...
2194 (linux_process_target::wait_for_sigstop): ...this.
2195 (move_out_of_jump_pad_callback): Turn into...
2196 (linux_process_target::move_out_of_jump_pad): ...this.
2197 (stop_all_lwps): Turn into...
2198 (linux_process_target::stop_all_lwps): ...this.
2199 (start_step_over): Turn into...
2200 (linux_process_target::start_step_over): ...this.
2201 (complete_ongoing_step_over): Turn into...
2202 (linux_process_target::complete_ongoing_step_over): ...this.
2203 (proceed_all_lwps): Turn into...
2204 (linux_process_target::proceed_all_lwps): ...this.
2205 (unstop_all_lwps): Turn into...
2206 (linux_process_target::unstop_all_lwps): ...this.
2208 * linux-low.h (class linux_process_target)
2209 <handle_extended_wait>
2210 <maybe_move_out_of_jump_pad>
2212 <wait_for_event_filtered>
2216 <move_out_of_jump_pad>
2219 <complete_ongoing_step_over>
2221 <unstop_all_lwps>: Declare.
2223 Update the callers below.
2225 * linux-low.cc (linux_process_target::attach): Update.
2226 (linux_process_target::stabilize_threads): Ditto.
2227 (linux_process_target::wait): Ditto.
2229 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231 * linux-low.h (struct linux_target_ops): Update the comment for
2232 'cannot_store_register' to return 0 or 1.
2233 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2236 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2238 * config.in: Re-generate.
2239 * configure: Re-generate.
2241 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2243 * regcache.cc (find_register_by_number): Update.
2244 * tdesc.cc (init_target_desc): Likewise.
2245 * tdesc.h (target_desc::reg_defs): Likewise.
2247 2020-03-12 Tom Tromey <tom@tromey.com>
2249 * configure: Rebuild.
2250 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2251 (WIN32APILIBS): New subst.
2252 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2254 (gdbsupport/%.o): Remove target.
2255 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2256 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2257 (WIN32APILIBS): New variable.
2258 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2259 (gdbreplay$(EXEEXT)): Likewise.
2261 2020-03-12 Tom Tromey <tom@tromey.com>
2263 * config.in, configure: Rebuild.
2264 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2265 * acinclude.m4: Include gettext-sister.m4.
2266 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2268 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2269 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2271 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2273 * acinclude.m4: Update path to selftest.m4.
2275 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2277 * configure.ac: Don't source bfd/development.sh, move
2278 GDB_AC_COMMON higher.
2279 * configure: Re-generate.
2281 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2283 * configure: Re-generate.
2285 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2287 * configure: Re-generate.
2289 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2291 * .dir-locals.el: New file.
2293 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2295 * .gitattributes: New file.
2297 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2299 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2300 reply into an S reply.
2301 * server.cc (disable_packet_T): New global.
2302 (captured_main): Set new global when appropriate.
2303 * server.h (disable_packet_T): Declare.
2305 2020-02-21 Tom Tromey <tom@tromey.com>
2307 * Makefile.in (mostlyclean): New target.
2309 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2311 * target.h (struct process_stratum_target): Remove.
2312 (class process_target): Rename to ...
2313 (class process_stratum_target): ... this.
2314 * linux-low.h (class linux_process_target): Derive from
2315 'process_stratum_target'.
2316 * linux-low.cc (linux_target_ops): Remove.
2317 (initialize_low): Set the_target to the singleton instance of
2318 linux_process_target.
2319 * lynx-low.h (class lynx_process_target): Derive from
2320 'process_stratum_target'.
2321 * lynx-low.cc (lynx_target_ops): Remove.
2322 (initialize_low): Set the_target to the singleton instance of
2323 lynx_process_target.
2324 * nto-low.h (class nto_process_target): Derive from
2325 'process_stratum_target'.
2326 * nto-low.cc (nto_target_ops): Remove.
2327 (initialize_low): Set the_target to the singleton instance of
2329 * win32-low.h (class win32_process_target): Derive from
2330 'process_stratum_target'.
2331 * win32-low.cc (win32_target_ops): Remove.
2332 (initialize_low): Set the_target to the singleton instance of
2333 win32_process_target.
2335 Replace 'the_target->pt' with 'the_target' in the uses below.
2337 * hostio.cc (hostio_error)
2342 * linux-aarch32-low.cc (arm_breakpoint_at)
2343 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2344 * linux-arm-low.cc (arm_sigreturn_next_pc)
2346 (arm_get_syscall_trapinfo)
2347 * linux-cris-low.cc (cris_breakpoint_at)
2348 * linux-crisv32-low.cc (cris_breakpoint_at)
2349 * linux-low.cc (handle_extended_wait)
2352 (linux_process_target::breakpoint_kind_from_pc)
2354 * linux-m32r-low.cc (m32r_breakpoint_at)
2355 * linux-mips-low.cc (mips_breakpoint_at)
2356 * linux-nios2-low.cc (nios2_breakpoint_at)
2357 * linux-ppc-low.cc (ppc_breakpoint_at)
2358 * linux-s390-low.cc (s390_get_hwcap)
2359 * linux-sh-low.cc (sh_breakpoint_at)
2360 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2361 (sparc_store_gregset_from_stack)
2362 (sparc_breakpoint_at)
2363 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2364 * linux-tile-low.cc (tile_breakpoint_at)
2365 * linux-x86-low.cc (x86_breakpoint_at)
2366 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2367 * mem-break.cc (bp_size)
2369 (insert_memory_breakpoint)
2370 (set_raw_breakpoint_at)
2371 (delete_raw_breakpoint)
2373 (uninsert_raw_breakpoint)
2374 (reinsert_raw_breakpoint)
2375 (validate_inserted_breakpoint)
2376 * regcache.cc (regcache_read_pc)
2378 * remote-utils.cc (putpkt_binary_1)
2381 (prepare_resume_reply)
2382 * server.cc (handle_general_set)
2385 (handle_qxfer_exec_file)
2386 (handle_qxfer_libraries_svr4)
2387 (handle_qxfer_osdata)
2388 (handle_qxfer_siginfo)
2389 (handle_qxfer_fdpic)
2393 (queue_stop_reply_callback)
2395 * target.cc (prepare_to_access_memory)
2396 (done_accessing_memory)
2397 (read_inferior_memory)
2398 (target_write_memory)
2399 (target_stop_and_wait)
2401 (target_mourn_inferior)
2402 (target_continue_no_signal)
2404 (target_supports_multi_process)
2407 (target_create_inferior)
2408 (target_post_create_inferior)
2410 (target_supports_fork_events)
2411 (target_supports_vfork_events)
2412 (target_supports_exec_events)
2413 (target_handle_new_gdb_connection)
2416 (fetch_inferior_registers)
2417 (store_inferior_registers)
2419 (target_supports_non_stop)
2421 (target_process_qsupported)
2422 (target_supports_catch_syscall)
2423 (target_get_ipa_tdesc_idx)
2424 (target_supports_tracepoints)
2425 (target_supports_fast_tracepoints)
2426 (target_get_min_fast_tracepoint_insn_len)
2427 (target_thread_stopped)
2429 (target_unpause_all)
2430 (target_stabilize_threads)
2431 (target_install_fast_tracepoint_jump_pad)
2433 (target_supports_disable_randomization)
2434 (target_supports_agent)
2435 (target_enable_btrace)
2436 (target_disable_btrace)
2437 (target_read_btrace)
2438 (target_read_btrace_conf)
2439 (target_supports_range_stepping)
2440 (target_supports_stopped_by_sw_breakpoint)
2441 (target_stopped_by_sw_breakpoint)
2442 (target_supports_stopped_by_hw_breakpoint)
2443 (target_supports_hardware_single_step)
2444 (target_stopped_by_hw_breakpoint)
2445 (target_breakpoint_kind_from_pc)
2446 (target_breakpoint_kind_from_current_state)
2447 (target_supports_software_single_step)
2448 (target_core_of_thread)
2449 (target_thread_name)
2450 (target_thread_handle)
2451 * win32-low.cc (do_initial_child_stuff)
2453 Rename target op default definitions listed below.
2455 * target.cc (process_target::post_create_inferior): Rename as ...
2456 (process_stratum_target::post_create_inferior): ... this.
2457 (process_target::prepare_to_access_memory): Rename as ...
2458 (process_stratum_target::prepare_to_access_memory): ... this.
2459 (process_target::done_accessing_memory): Rename as ...
2460 (process_stratum_target::done_accessing_memory): ... this.
2461 (process_target::look_up_symbols): Rename as ...
2462 (process_stratum_target::look_up_symbols): ... this.
2463 (process_target::supports_read_auxv): Rename as ...
2464 (process_stratum_target::supports_read_auxv): ... this.
2465 (process_target::read_auxv): Rename as ...
2466 (process_stratum_target::read_auxv): ... this.
2467 (process_target::supports_z_point_type): Rename as ...
2468 (process_stratum_target::supports_z_point_type): ... this.
2469 (process_target::insert_point): Rename as ...
2470 (process_stratum_target::insert_point): ... this.
2471 (process_target::remove_point): Rename as ...
2472 (process_stratum_target::remove_point): ... this.
2473 (process_target::stopped_by_sw_breakpoint): Rename as ...
2474 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2475 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2476 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2477 (process_target::stopped_by_hw_breakpoint): Rename as ...
2478 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2479 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2480 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2481 (process_target::supports_hardware_single_step): Rename as ...
2482 (process_stratum_target::supports_hardware_single_step): ... this.
2483 (process_target::stopped_by_watchpoint): Rename as ...
2484 (process_stratum_target::stopped_by_watchpoint): ... this.
2485 (process_target::stopped_data_address): Rename as ...
2486 (process_stratum_target::stopped_data_address): ... this.
2487 (process_target::supports_read_offsets): Rename as ...
2488 (process_stratum_target::supports_read_offsets): ... this.
2489 (process_target::read_offsets): Rename as ...
2490 (process_stratum_target::read_offsets): ... this.
2491 (process_target::supports_get_tls_address): Rename as ...
2492 (process_stratum_target::supports_get_tls_address): ... this.
2493 (process_target::get_tls_address): Rename as ...
2494 (process_stratum_target::get_tls_address): ... this.
2495 (process_target::hostio_last_error): Rename as ...
2496 (process_stratum_target::hostio_last_error): ... this.
2497 (process_target::supports_qxfer_osdata): Rename as ...
2498 (process_stratum_target::supports_qxfer_osdata): ... this.
2499 (process_target::qxfer_osdata): Rename as ...
2500 (process_stratum_target::qxfer_osdata): ... this.
2501 (process_target::supports_qxfer_siginfo): Rename as ...
2502 (process_stratum_target::supports_qxfer_siginfo): ... this.
2503 (process_target::qxfer_siginfo): Rename as ...
2504 (process_stratum_target::qxfer_siginfo): ... this.
2505 (process_target::supports_non_stop): Rename as ...
2506 (process_stratum_target::supports_non_stop): ... this.
2507 (process_target::async): Rename as ...
2508 (process_stratum_target::async): ... this.
2509 (process_target::start_non_stop): Rename as ...
2510 (process_stratum_target::start_non_stop): ... this.
2511 (process_target::supports_multi_process): Rename as ...
2512 (process_stratum_target::supports_multi_process): ... this.
2513 (process_target::supports_fork_events): Rename as ...
2514 (process_stratum_target::supports_fork_events): ... this.
2515 (process_target::supports_vfork_events): Rename as ...
2516 (process_stratum_target::supports_vfork_events): ... this.
2517 (process_target::supports_exec_events): Rename as ...
2518 (process_stratum_target::supports_exec_events): ... this.
2519 (process_target::handle_new_gdb_connection): Rename as ...
2520 (process_stratum_target::handle_new_gdb_connection): ... this.
2521 (process_target::handle_monitor_command): Rename as ...
2522 (process_stratum_target::handle_monitor_command): ... this.
2523 (process_target::core_of_thread): Rename as ...
2524 (process_stratum_target::core_of_thread): ... this.
2525 (process_target::supports_read_loadmap): Rename as ...
2526 (process_stratum_target::supports_read_loadmap): ... this.
2527 (process_target::read_loadmap): Rename as ...
2528 (process_stratum_target::read_loadmap): ... this.
2529 (process_target::process_qsupported): Rename as ...
2530 (process_stratum_target::process_qsupported): ... this.
2531 (process_target::supports_tracepoints): Rename as ...
2532 (process_stratum_target::supports_tracepoints): ... this.
2533 (process_target::read_pc): Rename as ...
2534 (process_stratum_target::read_pc): ... this.
2535 (process_target::write_pc): Rename as ...
2536 (process_stratum_target::write_pc): ... this.
2537 (process_target::supports_thread_stopped): Rename as ...
2538 (process_stratum_target::supports_thread_stopped): ... this.
2539 (process_target::thread_stopped): Rename as ...
2540 (process_stratum_target::thread_stopped): ... this.
2541 (process_target::supports_get_tib_address): Rename as ...
2542 (process_stratum_target::supports_get_tib_address): ... this.
2543 (process_target::get_tib_address): Rename as ...
2544 (process_stratum_target::get_tib_address): ... this.
2545 (process_target::pause_all): Rename as ...
2546 (process_stratum_target::pause_all): ... this.
2547 (process_target::unpause_all): Rename as ...
2548 (process_stratum_target::unpause_all): ... this.
2549 (process_target::stabilize_threads): Rename as ...
2550 (process_stratum_target::stabilize_threads): ... this.
2551 (process_target::supports_fast_tracepoints): Rename as ...
2552 (process_stratum_target::supports_fast_tracepoints): ... this.
2553 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2554 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2555 (process_target::emit_ops): Rename as ...
2556 (process_stratum_target::emit_ops): ... this.
2557 (process_target::supports_disable_randomization): Rename as ...
2558 (process_stratum_target::supports_disable_randomization): ... this.
2559 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2560 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2561 (process_target::qxfer_libraries_svr4): Rename as ...
2562 (process_stratum_target::qxfer_libraries_svr4): ... this.
2563 (process_target::supports_agent): Rename as ...
2564 (process_stratum_target::supports_agent): ... this.
2565 (process_target::enable_btrace): Rename as ...
2566 (process_stratum_target::enable_btrace): ... this.
2567 (process_target::disable_btrace): Rename as ...
2568 (process_stratum_target::disable_btrace): ... this.
2569 (process_target::read_btrace): Rename as ...
2570 (process_stratum_target::read_btrace): ... this.
2571 (process_target::read_btrace_conf): Rename as ...
2572 (process_stratum_target::read_btrace_conf): ... this.
2573 (process_target::supports_range_stepping): Rename as ...
2574 (process_stratum_target::supports_range_stepping): ... this.
2575 (process_target::supports_pid_to_exec_file): Rename as ...
2576 (process_stratum_target::supports_pid_to_exec_file): ... this.
2577 (process_target::pid_to_exec_file): Rename as ...
2578 (process_stratum_target::pid_to_exec_file): ... this.
2579 (process_target::supports_multifs): Rename as ...
2580 (process_stratum_target::supports_multifs): ... this.
2581 (process_target::multifs_open): Rename as ...
2582 (process_stratum_target::multifs_open): ... this.
2583 (process_target::multifs_unlink): Rename as ...
2584 (process_stratum_target::multifs_unlink): ... this.
2585 (process_target::multifs_readlink): Rename as ...
2586 (process_stratum_target::multifs_readlink): ... this.
2587 (process_target::breakpoint_kind_from_pc): Rename as ...
2588 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2589 (process_target::breakpoint_kind_from_current_state): Rename as ...
2590 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2591 (process_target::thread_name): Rename as ...
2592 (process_stratum_target::thread_name): ... this.
2593 (process_target::thread_handle): Rename as ...
2594 (process_stratum_target::thread_handle): ... this.
2595 (process_target::supports_software_single_step): Rename as ...
2596 (process_stratum_target::supports_software_single_step): ... this.
2597 (process_target::supports_catch_syscall): Rename as ...
2598 (process_stratum_target::supports_catch_syscall): ... this.
2599 (process_target::get_ipa_tdesc_idx): Rename as ...
2600 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2602 2020-02-20 Pedro Alves <palves@redhat.com>
2604 * target.cc (set_target_ops): Simply copy the given target pointer
2605 instead of creating a copy of the pointed object.
2607 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2609 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2612 * target.h (struct process_stratum_target): Remove the target op.
2613 (class process_target): Add the target op.
2614 (target_get_ipa_tdesc_idx): Update the macro.
2615 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2617 Update the derived classes and callers below.
2619 * linux-low.cc (linux_target_ops): Update.
2620 (linux_get_ipa_tdesc_idx): Turn into ...
2621 (linux_process_target::get_ipa_tdesc_idx): ... this.
2622 * linux-low.h (class linux_process_target): Update.
2623 * lynx-low.cc (lynx_target_ops): Update.
2624 * nto-low.cc (nto_target_ops): Update.
2625 * win32-low.cc (win32_target_ops): Update.
2627 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2629 Turn process_stratum_target's supports_catch_syscall op into a
2630 method of process_target.
2632 * target.h (struct process_stratum_target): Remove the target op.
2633 (class process_target): Add the target op.
2634 (target_supports_catch_syscall): Update the macro.
2635 * target.cc (process_target::supports_catch_syscall): Define.
2637 Update the derived classes and callers below.
2639 * linux-low.cc (linux_target_ops): Update.
2640 (linux_supports_catch_syscall): Turn into ...
2641 (linux_process_target::supports_catch_syscall): ... this.
2642 * linux-low.h (class linux_process_target): Update.
2643 * lynx-low.cc (lynx_target_ops): Update.
2644 * nto-low.cc (nto_target_ops): Update.
2645 * win32-low.cc (win32_target_ops): Update.
2647 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2649 Turn process_stratum_target's supports_software_single_step op
2650 into a method of process_target.
2652 * target.h (struct process_stratum_target): Remove the target op.
2653 (class process_target): Add the target op.
2654 (target_supports_software_single_step): Update the macro.
2655 * target.cc (process_target::supports_software_single_step): Define.
2657 Update the derived classes and callers below.
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_supports_software_single_step): Turn into ...
2661 (linux_process_target::supports_software_single_step): ... this.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669 Turn process_stratum_target's thread_name and thread_handle ops
2670 into methods of process_target.
2672 * target.h (struct process_stratum_target): Remove the target ops.
2673 (class process_target): Add the target ops.
2674 (target_thread_name): Update the macro.
2675 (target_thread_handle): Update the macro.
2676 * target.cc (process_target::thread_name): Define.
2677 (process_target::thread_handle): Define.
2679 Update the derived classes and callers below.
2681 * linux-low.cc (linux_target_ops): Update.
2682 (linux_process_target::thread_name): Define.
2683 (linux_process_target::thread_handle): Define.
2684 * linux-low.h (class linux_process_target): Update.
2685 * lynx-low.cc (lynx_target_ops): Update.
2686 * nto-low.cc (nto_target_ops): Update.
2687 * win32-low.cc (win32_target_ops): Update.
2689 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2691 Turn process_stratum_target's breakpoint_kind_from_pc,
2692 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2693 ops into methods of process_target.
2695 * target.h (struct process_stratum_target): Remove the target op.
2696 (class process_target): Add the target op.
2697 (target_breakpoint_kind_from_pc): Update the macro.
2698 (target_breakpoint_kind_from_current_state): Update the macro.
2699 (default_breakpoint_kind_from_pc): Remove declaration.
2700 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2701 (process_target::breakpoint_kind_from_pc): ... this.
2702 (process_target::breakpoint_kind_from_current_state): Define.
2704 Update the derived classes and callers below.
2706 * mem-break.cc (bp_size): Update.
2707 (bp_opcode): Update.
2708 * linux-low.cc (linux_target_ops): Update.
2709 (linux_wait_1): Update.
2710 (linux_breakpoint_kind_from_pc): Turn into ...
2711 (linux_process_target::breakpoint_kind_from_pc): ... this.
2712 (linux_sw_breakpoint_from_kind): Turn into ...
2713 (linux_process_target::sw_breakpoint_from_kind): ... this.
2714 (linux_breakpoint_kind_from_current_state): Turn into ...
2715 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2716 * linux-low.h (class linux_process_target): Update.
2717 * lynx-low.cc (lynx_target_ops): Update.
2718 (lynx_process_target::sw_breakpoint_from_kind): Define.
2719 * lynx-low.h (class lynx_process_target): Update.
2720 * nto-low.cc (nto_target_ops): Update.
2721 (nto_sw_breakpoint_from_kind): Turn into ...
2722 (nto_process_target::sw_breakpoint_from_kind): ... this.
2723 * nto-low.h (class nto_process_target): Update.
2724 * win32-low.cc (win32_target_ops): Update.
2725 (win32_sw_breakpoint_from_kind): Turn into ...
2726 (win32_process_target::sw_breakpoint_from_kind): ... this.
2727 * win32-low.h (class win32_process_target): Update.
2729 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2731 Turn process_stratum_target's multifs_open, multifs_readlink,
2732 multifs_unlink ops into methods of process_target.
2734 * target.h (struct process_stratum_target): Remove the target ops.
2735 (class process_target): Add the target ops. Also add
2737 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2739 (process_target::supports_multifs): Define.
2740 (process_target::multifs_open): Define.
2741 (process_target::multifs_readlink): Define.
2742 (process_target::multifs_unlink): Define.
2744 Update the derived classes and callers below.
2746 * hostio.cc (handle_setfs): Update.
2747 (handle_open): Update.
2748 (handle_unlink): Update.
2749 (handle_readlink): Update.
2750 * linux-low.cc (linux_target_ops): Update.
2751 (linux_process_target::supports_multifs): Define.
2752 (linux_process_target::multifs_open): Define.
2753 (linux_process_target::multifs_readlink): Define.
2754 (linux_process_target::multifs_unlink): Define.
2755 * linux-low.h (class linux_process_target): Update.
2756 * lynx-low.cc (lynx_target_ops): Update.
2757 * nto-low.cc (nto_target_ops): Update.
2758 * win32-low.cc (win32_target_ops): Update.
2760 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2762 Turn process_stratum_target's pid_to_exec_file op into a method
2765 * target.h (struct process_stratum_target): Remove the target op.
2766 (class process_target): Add the target op. Also add
2767 'supports_pid_to_exec_file'.
2768 * target.cc (process_target::pid_to_exec_file): Define.
2769 (process_target::supports_pid_to_exec_file): Define.
2771 Update the derived classes and callers below.
2773 * server.cc (handle_qxfer_exec_file): Update.
2774 (handle_query): Update.
2775 * linux-low.cc (linux_target_ops): Update.
2776 (linux_process_target::supports_pid_to_exec_file): Define.
2777 (linux_process_target::pid_to_exec_file): Define.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 * nto-low.cc (nto_target_ops): Update.
2781 * win32-low.cc (win32_target_ops): Update.
2783 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785 Turn process_stratum_target's supports_range_stepping op into a
2786 method of process_target.
2788 * target.h (struct process_stratum_target): Remove the target op.
2789 (class process_target): Add the target op.
2790 (target_supports_range_stepping): Update the macro.
2791 * target.cc (process_target::supports_range_stepping): Define.
2793 Update the derived classes and callers below.
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_supports_range_stepping): Turn into ...
2797 (linux_process_target::supports_range_stepping): ... this.
2798 * linux-low.h (class linux_process_target): Update.
2799 * lynx-low.cc (lynx_target_ops): Update.
2800 * nto-low.cc (nto_target_ops): Update.
2801 * win32-low.cc (win32_target_ops): Update.
2803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2805 Turn process_stratum_target's btrace-related ops (enable_btrace,
2806 disable_btrace, read_btrace, read_btrace_conf) into methods of
2809 * target.h (struct process_stratum_target): Remove the target ops.
2810 (class process_target): Add the target ops.
2811 (target_enable_btrace): Update.
2812 (target_disable_btrace): Update.
2813 (target_read_btrace): Update.
2814 (target_read_btrace_conf): Update.
2815 * target.cc (process_target::enable_btrace): Define.
2816 (process_target::disable_btrace): Define.
2817 (process_target::read_btrace): Define.
2818 (process_target::read_btrace_conf): Define.
2820 Update the derived classes and callers below.
2822 * linux-low.cc (linux_target_ops): Update.
2823 (linux_process_target:enable_btrace): Define as a wrapper around
2824 linux_enable_btrace.
2825 (linux_low_disable_btrace): Turn into ...
2826 (linux_process_target::disable_btrace): ... this.
2827 (linux_low_read_btrace): Turn into ...
2828 (linux_process_target::read_btrace): ... this.
2829 (linux_low_btrace_conf): Turn into ...
2830 (linux_process_target::read_btrace_conf): ... this.
2831 * linux-low.h (class linux_process_target): Update.
2832 * lynx-low.cc (lynx_target_ops): Update.
2833 * nto-low.cc (nto_target_ops): Update.
2834 * win32-low.cc (win32_target_ops): Update.
2836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2838 Turn process_stratum_target's supports_agent op into a method of
2841 * target.h (struct process_stratum_target): Remove the target op.
2842 (class process_target): Add the target op.
2843 (target_supports_agent): Update the macro.
2844 * target.cc (process_target::supports_agent): Define.
2846 Update the derived classes and callers below.
2848 * linux-low.cc (linux_target_ops): Update.
2849 (linux_supports_agent): Turn into ...
2850 (linux_process_target::supports_agent): ... this.
2851 * linux-low.h (class linux_process_target): Update.
2852 * lynx-low.cc (lynx_target_ops): Update.
2853 * nto-low.cc (nto_target_ops): Update.
2854 * win32-low.cc (win32_target_ops): Update.
2856 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2859 method of process_target.
2861 * target.h (struct process_stratum_target): Remove the target op.
2862 (class process_target): Add the target op. Also add
2863 'supports_qxfer_libraries_svr4'.
2864 * target.cc (process_target::qxfer_libraries_svr4): Define.
2865 (process_target::supports_qxfer_libraries_svr4): Define.
2867 Update the derived classes and callers below.
2869 * server.cc (handle_qxfer_libraries_svr4): Update.
2870 (handle_query): Update.
2871 * linux-low.cc (linux_target_ops): Update.
2872 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2873 (linux_qxfer_libraries_svr4): Turn into ...
2874 (linux_process_target::qxfer_libraries_svr4): ... this.
2875 * linux-low.h (class linux_process_target): Update.
2876 * lynx-low.cc (lynx_target_ops): Update.
2877 * nto-low.cc (nto_target_ops): Update.
2878 * win32-low.cc (win32_target_ops): Update.
2880 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2882 Turn process_stratum_target's supports_disable_randomization op
2883 into a method of process_target.
2885 * target.h (struct process_stratum_target): Remove the target op.
2886 (class process_target): Add the target op.
2887 (target_supports_disable_randomization): Update the macro.
2888 * target.cc (process_target::supports_disable_randomization): Define.
2890 Update the derived classes and callers below.
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_supports_disable_randomization): Turn into ...
2894 (linux_process_target::supports_disable_randomization): ... this.
2895 * linux-low.h (class linux_process_target): Update.
2896 * lynx-low.cc (lynx_target_ops): Update.
2897 * nto-low.cc (nto_target_ops): Update.
2898 * win32-low.cc (win32_target_ops): Update.
2900 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902 Turn process_stratum_target's emit_ops op into a method of
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op.
2907 (target_emit_ops): Update the macro.
2908 * target.cc (process_target::emit_ops): Define.
2910 Update the derived classes and callers below.
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_emit_ops): Turn into ...
2914 (linux_process_target::emit_ops): ... this.
2915 * linux-low.h (class linux_process_target): Update.
2916 * lynx-low.cc (lynx_target_ops): Update.
2917 * nto-low.cc (nto_target_ops): Update.
2918 * win32-low.cc (win32_target_ops): Update.
2920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2923 and get_min_fast_tracepoint_insn_len ops into methods of
2926 * target.h (struct process_stratum_target): Remove the target ops.
2927 (class process_target): Add the target ops. Also add
2928 'supports_fast_tracepoints'.
2929 (target_supports_fast_tracepoints): Update the macro.
2930 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2931 (install_fast_tracepoint_jump_pad): Update and rename the macro
2933 (target_install_fast_tracepoint_jump_pad): ... this.
2934 * target.cc (process_target::supports_fast_tracepoints): Define.
2935 (process_target::install_fast_tracepoint_jump_pad): Define.
2936 (process_target::get_min_fast_tracepoint_insn_len): Define.
2938 Update the derived classes and callers below.
2940 * tracepoint.cc (install_fast_tracepoint): Update.
2941 * linux-low.cc (linux_target_ops): Update.
2942 (linux_process_target::supports_fast_tracepoints): Define.
2943 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2944 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2945 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2946 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2947 * linux-low.h (class linux_process_target): Update.
2948 * lynx-low.cc (lynx_target_ops): Update.
2949 * nto-low.cc (nto_target_ops): Update.
2950 * win32-low.cc (win32_target_ops): Update.
2952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954 Turn process_stratum_target's stabilize_threads op into a
2955 method of process_target.
2957 * target.h (struct process_stratum_target): Remove the target op.
2958 (class process_target): Add the target op.
2959 (target_stabilize_threads): Update the macro.
2960 * target.cc (process_target::stabilize_threads): Define.
2962 Update the derived classes and callers below.
2964 * server.cc (handle_status): Update.
2965 * tracepoint.cc (cmd_qtdp): Update.
2966 (cmd_qtstart): Update.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_stabilize_threads): Turn into ...
2969 (linux_process_target::stabilize_threads): ... this.
2970 (linux_wait_1): Update.
2971 * linux-low.h (class linux_process_target): Update.
2972 * lynx-low.cc (lynx_target_ops): Update.
2973 * nto-low.cc (nto_target_ops): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2976 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2978 Turn process_stratum_target's pause_all and unpause_all ops
2979 into methods of process_target.
2981 * target.h (struct process_stratum_target): Remove the target ops.
2982 (class process_target): Add the target ops.
2983 (pause_all): Update the macro and rename to...
2984 (target_pause_all): ... this.
2985 (unpause_all): Update the macro and rename to...
2986 (target_unpause_all): ... this.
2987 * target.cc (process_target::pause_all): Define.
2988 (process_target::unpause_all): Define.
2990 Update the derived classes and callers below.
2992 * server.cc (handle_status): Update.
2993 * tracepoint.cc (clear_installed_tracepoints): Update.
2995 (cmd_qtstart): Update.
2996 (stop_tracing): Update.
2997 (cmd_qtstatus): Update.
2998 (upload_fast_traceframes): Update.
2999 (run_inferior_command): Update.
3000 * linux-low.cc (linux_target_ops): Update.
3001 (linux_pause_all): Turn into ...
3002 (linux_process_target::pause_all): ... this.
3003 (linux_unpause_all): Turn into ...
3004 (linux_process_target::unpause_all): ... this.
3005 (linux_process_target::prepare_to_access_memory): Update.
3006 (linux_process_target::done_accessing_memory): Update.
3007 * linux-low.h (class linux_process_target): Update.
3008 * lynx-low.cc (lynx_target_ops): Update.
3009 * nto-low.cc (nto_target_ops): Update.
3010 * win32-low.cc (win32_target_ops): Update.
3012 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3014 Turn process_stratum_target's get_tib_address op into a method of
3017 * target.h (struct process_stratum_target): Remove the target op.
3018 (class process_target): Add the target op. Also add
3019 'supports_get_tib_address'.
3020 * target.cc (process_target::get_tib_address): Define.
3021 (process_target::supports_get_tib_address): Define.
3023 Update the derived classes and callers below.
3025 * server.cc (handle_query): Update.
3026 * linux-low.cc (win32_target_ops): Update.
3027 * lynx-low.cc (lynx_target_ops): Update.
3028 * nto-low.cc (nto_target_ops): Update.
3029 * win32-low.cc (win32_target_ops): Update.
3030 (win32_process_target::supports_get_tib_address): Define.
3031 (win32_get_tib_address): Turn into ...
3032 (win32_process_target::get_tib_address): ... this.
3033 * win32-low.h (class win32_process_target): Update.
3035 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037 Turn process_stratum_target's thread_stopped op into a method of
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op. Also add
3042 'supports_thread_stopped'.
3043 (target_thread_stopped): Update the macro.
3044 * target.cc (process_target::thread_stopped): Define.
3045 (process_target::supports_thread_stopped): Define.
3046 (prepare_to_access_memory): Update.
3048 Update the derived classes and callers below.
3050 * server.cc (queue_stop_reply_callback): Update.
3051 * linux-low.cc (linux_target_ops): Update.
3052 (linux_process_target::supports_thread_stopped): Define.
3053 (linux_thread_stopped): Turn into ...
3054 (linux_process_target::thread_stopped): ... this.
3055 * linux-low.h (class linux_process_target): 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.
3060 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3062 Turn process_stratum_target's read_pc and write_pc ops into
3063 methods of process_target.
3065 * target.h (struct process_stratum_target): Remove the target ops.
3066 (class process_target): Add the target ops.
3067 * target.cc (process_target::read_pc): Define.
3068 (process_target::write_pc): Define.
3070 Update the derived classes and callers below.
3072 * regcache.cc (regcache_read_pc): Update.
3073 (regcache_write_pc): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_read_pc): Turn into ...
3076 (linux_process_target::read_pc): ... this.
3077 (linux_write_pc): Turn into ...
3078 (linux_process_target::write_pc): ... this.
3079 * linux-low.h (class linux_process_target): Update.
3080 * lynx-low.cc (lynx_target_ops): Update.
3081 * nto-low.cc (nto_target_ops): Update.
3082 * win32-low.cc (win32_target_ops): Update.
3084 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3086 Turn process_stratum_target's supports_tracepoints op into a
3087 method of process_target.
3089 * target.h (struct process_stratum_target): Remove the target op.
3090 (class process_target): Add the target op.
3091 (target_supports_tracepoints): Update the macro.
3092 * target.cc (process_target::supports_tracepoints): Define.
3094 Update the derived classes and callers below.
3096 * linux-low.cc (linux_target_ops): Update.
3097 (linux_supports_tracepoints): Turn into ...
3098 (linux_process_target::supports_tracepoints): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3104 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3106 Turn process_stratum_target's process_qsupported op into a method
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 (target_process_qsupported): Update the macro.
3112 * target.cc (process_target::process_qsupported): Define.
3114 Update the derived classes and callers below.
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_process_qsupported): Turn into ...
3118 (linux_process_target::process_qsupported): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126 Turn process_stratum_target's read_loadmap op into a method of
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op. Also add
3131 'supports_read_loadmap'.
3132 * target.cc (process_target::read_loadmap): Define.
3133 (process_target::supports_read_loadmap): Define.
3135 Update the derived classes and callers below.
3137 * server.cc (handle_qxfer_fdpic): Update.
3138 (handle_query): Update.
3139 * linux-low.cc (linux_target_ops): Update.
3140 (linux_process_target::supports_read_loadmap): Define.
3141 (linux_read_loadmap): Turn into ...
3142 (linux_process_target::read_loadmap): ... this.
3143 * linux-low.h (class linux_process_target): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 * win32-low.cc (win32_target_ops): Update.
3148 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3150 Turn process_stratum_target's core_of_thread op into a method of
3153 * target.h (struct process_stratum_target): Remove the target op.
3154 (class process_target): Add the target op.
3155 (target_core_of_thread): Update the macro.
3156 * target.cc (process_target::core_of_thread): Define.
3158 Update the derived classes and callers below.
3160 * linux-low.cc (linux_target_ops): Update.
3161 (linux_process_target::core_of_thread): Define.
3162 * linux-low.h (class linux_process_target): Update.
3163 * lynx-low.cc (lynx_target_ops): Update.
3164 * nto-low.cc (nto_target_ops): Update.
3165 * win32-low.cc (win32_target_ops): Update.
3167 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169 Turn process_stratum_target's handle_monitor_command op into a
3170 method of process_target.
3172 * target.h (struct process_stratum_target): Remove the target op.
3173 (class process_target): Add the target op.
3174 (target_handle_monitor_command): Update the macro.
3175 * target.cc (process_target::handle_monitor_command): Define.
3177 Update the derived classes and callers below.
3179 * server.cc (handle_query): Update.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_process_target::handle_monitor_command): Define.
3182 * linux-low.h (class linux_process_target): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 * nto-low.cc (nto_target_ops): Update.
3185 * win32-low.cc (win32_target_ops): Update.
3187 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3189 Turn process_stratum_target's handle_new_gdb_connection op into a
3190 method of process_target.
3192 * target.h (struct process_stratum_target): Remove the target op.
3193 (class process_target): Add the target op.
3194 (target_handle_new_gdb_connection): Update the macro.
3195 * target.cc (process_target::handle_new_gdb_connection): Define.
3197 Update the derived classes and callers below.
3199 * linux-low.cc (linux_target_ops): Update.
3200 (linux_handle_new_gdb_connection): Turn into ...
3201 (linux_process_target::handle_new_gdb_connection): ... this.
3202 * linux-low.h (class linux_process_target): Update.
3203 * lynx-low.cc (lynx_target_ops): Update.
3204 * nto-low.cc (nto_target_ops): Update.
3205 * win32-low.cc (win32_target_ops): Update.
3207 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3209 Turn process_stratum_target's supports_fork_events,
3210 supports_vfork_events, and supports_exec_events ops into methods
3213 * target.h (struct process_stratum_target): Remove the target ops.
3214 (class process_target): Add the target ops.
3215 (target_supports_fork_events): Update the macro.
3216 (target_supports_vfork_events): Update the macro.
3217 (target_supports_exec_events): Update the macro.
3218 * target.cc (process_target::supports_fork_events): Define.
3219 (process_target::supports_vfork_events): Define.
3220 (process_target::supports_exec_events): Define.
3222 Update the derived classes and callers below.
3224 * linux-low.cc (linux_target_ops): Update.
3225 (linux_supports_fork_events): Turn into ...
3226 (linux_process_target::supports_fork_events): ... this.
3227 (linux_supports_vfork_events): Turn into ...
3228 (linux_process_target::supports_vfork_events): ... this.
3229 (linux_supports_exec_events): Turn into ...
3230 (linux_process_target::supports_exec_events): ... 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_multi_process op into a
3239 method of process_target.
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op.
3243 * target.cc (process_target::supports_multi_process): Define.
3244 (target_supports_multi_process): Update.
3246 Update the derived classes and callers below.
3248 * linux-low.cc (linux_target_ops): Update.
3249 (linux_supports_multi_process): Turn into ...
3250 (linux_process_target::supports_multi_process): ... this.
3251 * linux-low.h (class linux_process_target): Update.
3252 * lynx-low.cc (lynx_target_ops): Update.
3253 * nto-low.cc (nto_target_ops): Update.
3254 * win32-low.cc (win32_target_ops): Update.
3256 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3258 Turn process_stratum_target's supports_non_stop, async, and
3259 start_non_stop ops into methods of process_target.
3261 * target.h (struct process_stratum_target): Remove the target ops.
3262 (class process_target): Add the target ops.
3263 (target_supports_non_stop): Update the macro.
3264 (target_async): Update the macro.
3265 (start_non_stop): Remove declaration.
3266 * target.cc (process_target::supports_non_stop): Define.
3267 (process_target::async): Define.
3268 (process_target::start_non_stop): Define.
3269 (start_non_stop): Remove.
3271 Update the derived classes and callers below.
3273 * server.cc (handle_qxfer_siginfo): Update.
3274 (handle_query): Update.
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_supports_non_stop): Turn into ...
3277 (linux_process_target::supports_non_stop): ... this.
3278 (linux_async): Turn into ...
3279 (linux_process_target::async): ... this.
3280 (linux_start_non_stop): Turn into ...
3281 (linux_process_target::start_non_stop): ... this.
3282 * linux-low.h (class linux_process_target): Update.
3283 * lynx-low.cc (lynx_target_ops): Update.
3284 * nto-low.cc (nto_target_ops): Update.
3285 (nto_supports_non_stop): Remove; rely on the default behavior
3287 * win32-low.cc (win32_target_ops): Update.
3289 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3291 Turn process_stratum_target's qxfer_siginfo op into a method of
3294 * target.h (struct process_stratum_target): Remove the target op.
3295 (class process_target): Add the target op. Also add
3296 'supports_qxfer_siginfo'.
3297 * target.cc (process_target::qxfer_siginfo): Define.
3298 (process_target::supports_qxfer_siginfo): Define.
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_process_target::supports_qxfer_siginfo): Define.
3306 (linux_xfer_siginfo): Turn into ...
3307 (linux_process_target::qxfer_siginfo): ... this.
3308 * linux-low.h (class linux_process_target): Update.
3309 * lynx-low.cc (lynx_target_ops): Update.
3310 * nto-low.cc (nto_target_ops): Update.
3311 * win32-low.cc (win32_target_ops): Update.
3313 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3315 Turn process_stratum_target's qxfer_osdata op into a method of
3318 * target.h (struct process_stratum_target): Remove the target op.
3319 (class process_target): Add the target op. Also add
3320 'supports_qxfer_osdata'.
3321 * target.cc (process_target::qxfer_osdata): Define.
3322 (process_target::supports_qxfer_osdata): Define.
3324 Update the derived classes and callers below.
3326 * server.cc (handle_qxfer_osdata): Update.
3327 (handle_query): Update.
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_process_target::supports_qxfer_osdata): Define.
3330 (linux_qxfer_osdata): Turn into ...
3331 (linux_process_target::qxfer_osdata): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3337 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339 Turn process_stratum_target's hostio_last_error op into a
3340 method of process_target.
3342 * target.h (struct process_stratum_target): Remove the target op.
3343 (class process_target): Add the target op.
3344 * target.cc: Add "hostio.h" to includes.
3345 (process_target::hostio_last_error): Define.
3347 Update the derived classes and callers below.
3349 * hostio.cc (hostio_error): Update.
3350 * linux-low.cc: Remove "hostio.h" from includes.
3351 (linux_target_ops): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.h (class win32_process_target): Update.
3355 * win32-low.cc (win32_target_ops): Update.
3356 (wince_hostio_last_error): Turn into ...
3357 (win32_process_target::hostio_last_error): ... this.
3359 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3361 Turn process_stratum_target's get_tls_address op into a method of
3364 * target.h (struct process_stratum_target): Remove the target op.
3365 (class process_target): Add the target op. Also add
3366 'supports_get_tls_address'.
3367 * target.cc (process_target::get_tls_address): Define.
3368 (process_target::supports_get_tls_address): Define.
3370 Update the derived classes and callers below.
3372 * server.cc (handle_query): Update.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_process_target::supports_get_tls_address): Define.
3375 (linux_process_target::get_tls_address): Define.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 * nto-low.cc (nto_target_ops): Update.
3379 * win32-low.cc (win32_target_ops): Update.
3381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383 Turn process_stratum_target's read_offsets op into a method of
3386 * target.h (struct process_stratum_target): Remove the target op.
3387 (class process_target): Add the target op. Also add
3388 'supports_read_offsets'.
3389 * target.cc (process_target::read_offsets): Define.
3390 (process_target::supports_read_offsets): Define.
3392 Update the derived classes and callers below.
3394 * server.cc (handle_query): Update.
3395 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3396 (linux_target_ops): Update.
3397 (linux_process_target::supports_read_offsets): Define.
3398 (linux_read_offsets): Turn into ...
3399 (linux_process_target::read_offsets): ... this.
3400 * linux-low.h (class linux_process_target): Update.
3401 * lynx-low.cc (lynx_target_ops): Update.
3402 * nto-low.cc (nto_target_ops): Update.
3403 * win32-low.cc (win32_target_ops): Update.
3405 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407 Turn process_stratum_target's stopped_by_watchpoint and
3408 stopped_data_address ops into methods of process_target.
3410 * target.h (struct process_stratum_target): Remove the target ops.
3411 (class process_target): Add the target ops.
3412 * target.cc (process_target::stopped_by_watchpoint): Define.
3413 (process_target::stopped_data_address): Define.
3415 Update the derived classes and callers below.
3417 * remote-utils.cc (prepare_resume_reply): Update.
3418 * linux-low.cc (linux_target_ops): Update.
3419 (linux_stopped_by_watchpoint): Turn into ...
3420 (linux_process_target::stopped_by_watchpoint): ... this.
3421 (linux_stopped_data_address): Turn into ...
3422 (linux_process_target::stopped_data_address): ... this.
3423 * linux-low.h (class linux_process_target): Update.
3424 * lynx-low.cc (lynx_target_ops): Update.
3425 * nto-low.cc (nto_target_ops): Update.
3426 (nto_stopped_by_watchpoint): Turn into ...
3427 (nto_process_target::stopped_by_watchpoint): ... this.
3428 (nto_stopped_data_address): Turn into ...
3429 (nto_process_target::stopped_data_address): ... this.
3430 * nto-low.h (class nto_process_target): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3432 (win32_stopped_by_watchpoint): Turn into ...
3433 (win32_process_target::stopped_by_watchpoint): ... this.
3434 (win32_stopped_data_address): Turn into ...
3435 (win32_process_target::stopped_data_address): ... this.
3436 * win32-low.h (class win32_process_target): Update.
3438 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3440 Turn process_stratum_target's supports_hardware_single_step op into
3441 a method of process_target.
3443 * target.h (struct process_stratum_target): Remove the target op.
3444 (class process_target): Add the target op.
3445 (target_supports_hardware_single_step): Update the macro.
3446 (target_can_do_hardware_single_step): Remove declaration.
3447 * target.cc (process_target::supports_hardware_single_step): Define.
3448 (target_can_do_hardware_single_step): Remove.
3450 Update the derived classes and callers below.
3452 * linux-low.h (class linux_process_target): Update.
3453 * linux-low.cc (linux_target_ops): Update.
3454 (linux_supports_hardware_single_step): Turn into ...
3455 (linux_process_target::supports_hardware_single_step): ... this.
3456 * lynx-low.h (class lynx_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 (lynx_process_target::supports_hardware_single_step): Define.
3459 * nto-low.h (class nto_process_target): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 (nto_process_target::supports_hardware_single_step): Define.
3462 * win32-low.h (class win32_process_target): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3464 (win32_process_target::supports_hardware_single_step): Define.
3466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3469 ops into methods of process_target.
3471 * target.h (struct process_stratum_target): Remove the target ops.
3472 (class process_target): Add the target ops.
3473 (target_stopped_by_hw_breakpoint): Update the macro.
3474 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3475 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3476 (process_target::supports_stopped_by_hw_breakpoint): Define.
3478 Update the derived classes and callers below.
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_stopped_by_hw_breakpoint): Turn into ...
3482 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3483 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3484 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3485 * linux-low.h (class linux_process_target): Update.
3486 * lynx-low.cc (lynx_target_ops): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 * win32-low.cc (win32_target_ops): Update.
3490 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3492 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3493 ops into methods of process_target.
3495 * target.h (struct process_stratum_target): Remove the target ops.
3496 (class process_target): Add the target ops.
3497 (target_stopped_by_sw_breakpoint): Update the macro.
3498 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3499 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3500 (process_target::supports_stopped_by_sw_breakpoint): Define.
3502 Update the derived classes and callers below.
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_stopped_by_sw_breakpoint): Turn into ...
3506 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3507 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3508 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3509 * linux-low.h (class linux_process_target): Update.
3510 * lynx-low.cc (lynx_target_ops): Update.
3511 * nto-low.cc (nto_target_ops): Update.
3512 * win32-low.cc (win32_target_ops): Update.
3514 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3516 Turn process_stratum_target's insert_point and remove_point ops
3517 into methods of process_target.
3519 * target.h (struct process_stratum_target): Remove the target ops.
3520 (class process_target): Add the target ops.
3521 * target.cc (process_target::insert_point): Define.
3522 (process_target::remove_point): Define.
3524 Update the derived classes and callers below.
3526 * mem-break.cc (set_raw_breakpoint_at): Update.
3527 (delete_raw_breakpoint): Update.
3528 (uninsert_raw_breakpoint): Update.
3529 (reinsert_raw_breakpoint): Update.
3530 * linux-low.cc (linux_target_ops): Update.
3531 (linux_insert_point): Turn into ...
3532 (linux_process_target::insert_point): ... this.
3533 (linux_remove_point): Turn into ...
3534 (linux_process_target::remove_point): ... this.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 (nto_insert_point): Turn into ...
3539 (nto_process_target::insert_point): ... this.
3540 (nto_remove_point): Turn into ...
3541 (nto_process_target::remove_point): ... this.
3542 * nto-low.h (class nto_process_target): Update.
3543 * win32-low.cc (win32_target_ops): Update.
3544 (win32_insert_point): Turn into ...
3545 (win32_process_target::insert_point): ... this.
3546 (win32_remove_point): Turn into ...
3547 (win32_process_target::remove_point): ... this.
3548 * win32-low.h (class win32_process_target): Update.
3550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552 Turn process_stratum_target's supports_z_point_type op into a
3553 method of process_target.
3555 * target.h (struct process_stratum_target): Remove the target op.
3556 (class process_target): Add the target op.
3557 * target.cc (process_target::supports_z_point_type): Define.
3559 Update the derived classes and callers below.
3561 * mem-break.cc (z_type_supported): Update.
3562 * linux-low.cc (linux_target_ops): Update.
3563 (linux_supports_z_point_type): Turn into ...
3564 (linux_process_target::supports_z_point_type): ... this.
3565 * linux-low.h (class linux_process_target): Update.
3566 * lynx-low.cc (lynx_target_ops): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 (nto_supports_z_point_type): Turn into ...
3569 (nto_process_target::supports_z_point_type): ... this.
3570 * nto-low.h (class nto_process_target): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572 (win32_supports_z_point_type): Turn into ...
3573 (win32_process_target::supports_z_point_type): ... this.
3574 * win32-low.h (class win32_process_target): Update.
3576 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578 Turn process_stratum_target's read_auxv op into a method of
3581 * target.h (class process_stratum_target): Remove the target op.
3582 (struct process_target): Add the target op. Also add
3583 'supports_read_auxv'.
3584 * target.cc (process_target::read_auxv): Define.
3585 (process_target::supports_read_auxv): Define.
3587 Update the derived classes and callers below.
3589 * server.cc (handle_qxfer_auxv): Update.
3590 (handle_query): Update.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_process_target::supports_read_auxv): Define.
3593 (linux_read_auxv): Turn into ...
3594 (linux_process_target::read_auxv): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 * nto-low.cc (nto_target_ops): Update.
3598 (nto_process_target::supports_read_auxv): Define.
3599 (nto_read_auxv): Turn into ...
3600 (nto_process_target::read_auxv): ... this.
3601 * nto-low.h (class nto_process_target): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3604 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606 Turn process_stratum_target's request_interrupt op into a method of
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op.
3612 Update the derived classes and callers below.
3614 * remote-utils.cc (putpkt_binary_1): Update.
3615 (input_interrupt): Update.
3617 * server.cc (handle_v_requests): Update.
3618 * linux-low.cc (linux_target_ops): Update.
3619 (linux_request_interrupt): Turn into ...
3620 (linux_process_target::request_interrupt): ... this.
3621 * linux-low.h (class linux_process_target): Update.
3622 * lynx-low.cc (lynx_target_ops): Update.
3623 (lynx_request_interrupt): Turn into ...
3624 (lynx_process_target::request_interrupt): ... this.
3625 * lynx-low.h (class lynx_process_target): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_request_interrupt): Turn into ...
3628 (nto_process_target::request_interrupt): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_request_interrupt): Turn into ...
3632 (win32_process_target::request_interrupt): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3635 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637 Turn process_stratum_target's look_up_symbols op into a method of
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3642 * target.cc (process_target::look_up_symbols): Define.
3644 Update the derived classes and callers below.
3646 * server.cc (handle_query): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_look_up_symbols): Turn into ...
3649 (linux_process_target::look_up_symbols): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 * nto-low.cc (nto_target_ops): Update.
3653 * win32-low.cc (win32_target_ops): Update.
3655 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3657 Turn process_stratum_target's read_memory and write_memory
3658 ops into methods of process_target.
3660 * target.h (struct process_stratum_target): Remove the target ops.
3661 (class process_target): Add the target ops.
3663 Update the derived classes and callers below.
3665 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3666 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3667 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3668 (arm_get_syscall_trapinfo): Update.
3669 * linux-cris-low.cc (cris_breakpoint_at): Update.
3670 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3671 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3672 * linux-mips-low.cc (mips_breakpoint_at): Update.
3673 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3674 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3675 * linux-sh-low.cc (sh_breakpoint_at): Update.
3676 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3677 (sparc_store_gregset_from_stack): Update.
3678 (sparc_breakpoint_at): Update.
3679 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3680 * linux-tile-low.cc (tile_breakpoint_at): Update.
3681 * linux-x86-low.cc (x86_breakpoint_at): Update.
3682 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3683 * mem-brea.cc (insert_memory_breakpoint): Update.
3684 (validate_inserted_breakpoint): Update.
3685 * target.cc (read_inferior_memory): Update.
3686 (target_write_memory): Update.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_read_memory): Make a wrapper around the read_memory target
3690 (linux_process_target::read_memory): Rename from linux_read_memory.
3691 (linux_write_memory): Turn into ...
3692 (linux_process_target::write_memory): ... this.
3693 * linux-low.h (class linux_process_target): Update.
3694 * lynx-low.cc (lynx_target_ops): Update.
3695 (lynx_read_memory): Turn into ...
3696 (lynx_process_target::read_memory): ... this.
3697 (lynx_write_memory): Turn into ...
3698 (lynx_process_target::write_memory): ... this.
3699 * lynx-low.h (class lynx_process_target): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 (nto_read_memory): Turn into ...
3702 (nto_process_target::read_memory): ... this.
3703 (nto_write_memory): Turn into ...
3704 (nto_process_target::write_memory): ... this.
3705 * nto-low.h (class nto_process_target): Update.
3706 * win32-low.cc (win32_target_ops): Update.
3707 (win32_read_inferior_memory): Turn into ...
3708 (win32_process_target::read_memory): ... this.
3709 (win32_write_inferior_memory): Turn into ...
3710 (win32_process_target::write_memory): ... this.
3711 * win32-low.h (class win32_process_target): Update.
3713 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3715 Turn process_stratum_target's prepare_to_access_memory and
3716 done_accessing_memory ops into methods of process_target.
3718 * target.h (struct process_stratum_target): Remove the target ops.
3719 (class process_target): Add the target ops.
3720 * target.cc (process_target::prepare_to_access_memory): Define.
3721 (process_target::done_accessing_memory): Define.
3722 (prepare_to_access_memory): Update.
3723 (done_accessing_memory): Update.
3725 Update the derived classes and callers below.
3727 * linux-low.cc (linux_target_ops): Update.
3728 (linux_prepare_to_access_memory): Turn into ...
3729 (linux_process_target::prepare_to_access_memory): ... this.
3730 (linux_done_accessing_memory): Turn into ...
3731 (linux_process_target::done_accessing_memory): ... this.
3732 * linux-low.h (class linux_process_target): Update.
3733 * lynx-low.cc (lynx_target_ops): Update.
3734 * nto-low.cc (nto_target_ops): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3737 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3739 Turn process_stratum_target's fetch_registers and store_registers
3740 ops into methods of process_target.
3742 * target.h (struct process_stratum_target): Remove the target ops.
3743 (class process_target): Add the target ops.
3744 (fetch_inferior_registers): Update the macro.
3745 (store_inferior_registers): Update the macro.
3747 Update the derived classes and callers below.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_fetch_registers): Turn into ...
3751 (linux_process_target::fetch_registers): ... this.
3752 (linux_store_registers): Turn into ...
3753 (linux_process_target::store_registers): ... this.
3754 * linux-low.h (class linux_process_target): Update.
3755 * lynx-low.cc (lynx_target_ops): Update.
3756 (lynx_fetch_registers): Turn into ...
3757 (lynx_process_target::fetch_registers): ... this.
3758 (lynx_store_registers): Turn into ...
3759 (lynx_process_target::store_registers): ... this.
3760 * lynx-low.h (class lynx_process_target): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 (nto_fetch_registers): Turn into ...
3763 (nto_process_target::fetch_registers): ... this.
3764 (nto_store_registers): Turn into ...
3765 (nto_process_target::store_registers): ... this.
3766 * nto-low.h (class nto_process_target): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768 (win32_fetch_inferior_registers): Turn into ...
3769 (win32_process_target::fetch_registers): ... this.
3770 (win32_store_inferior_registers): Turn into ...
3771 (win32_process_target::store_registers): ... this.
3772 * win32-low.h (class win32_process_target): Update.
3774 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776 Turn process_stratum_target's wait op into a method of
3779 * target.h (struct process_stratum_target): Remove the target op.
3780 (class process_target): Add the target op.
3782 Update the derived classes and callers below.
3784 * target.cc (target_wait): Update.
3785 * linux-low.cc (linux_target_ops): Update.
3786 (linux_wait): Turn into ...
3787 (linux_process_target::wait): ... this.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 (lynx_wait): Turn into ...
3791 (lynx_process_target::wait): ... this.
3792 * lynx-low.h (class lynx_process_target): Update.
3793 * nto-low.cc (nto_target_ops): Update.
3794 (nto_wait): Turn into ...
3795 (nto_process_target::wait): ... this.
3796 * nto-low.h (class nto_process_target): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798 (win32_wait): Turn into ...
3799 (win32_process_target::wait): ... this.
3800 (do_initial_child_stuff): Update.
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 resume 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 * server.cc (resume): Update.
3814 * target.cc (target_stop_and_wait): Update.
3815 (target_continue_no_signal): Update.
3816 (target_continue): Update.
3817 * linux-low.cc (linux_target_ops): Update.
3818 (linux_resume): Turn into ...
3819 (linux_process_target::resume): ... this.
3820 * linux-low.h (class linux_process_target): Update.
3821 * lynx-low.cc (lynx_target_ops): Update.
3822 (lynx_resume): Turn into ...
3823 (lynx_process_target::resume): ... this.
3824 * lynx-low.h (class lynx_process_target): Update.
3825 * nto-low.cc (nto_target_ops): Update.
3826 (nto_resume): Turn into ...
3827 (nto_process_target::resume): ... this.
3828 * nto-low.h (class nto_process_target): Update.
3829 * win32-low.cc (win32_target_ops): Update.
3830 (win32_resume): Turn into ...
3831 (win32_process_target::resume): ... this.
3832 (win32_process_target::detach): Update.
3833 (do_initial_child_stuff): Update.
3834 * win32-low.h (class win32_process_target): Update.
3836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3838 Turn process_stratum_target's thread_alive op into a method of
3841 * target.h (struct process_stratum_target): Remove the target op.
3842 (class process_target): Add the target op.
3843 (mythread_alive): Update the macro.
3845 Update the derived classes and callers below.
3847 * linux-low.cc (linux_target_ops): Update.
3848 (linux_thread_alive): Turn into ...
3849 (linux_process_target::thread_alive): ... this.
3850 (wait_for_sigstop): Update.
3851 * linux-low.h (class linux_process_target): Update.
3852 * lynx-low.cc (lynx_target_ops): Update.
3853 (lynx_thread_alive): Turn into ...
3854 (lynx_process_target::thread_alive): ... this.
3855 * lynx-low.h (class lynx_process_target): Update.
3856 * nto-low.cc (nto_target_ops): Update.
3857 (nto_thread_alive): Turn into ...
3858 (nto_process_target::thread_alive): ... this.
3859 * nto-low.h (class nto_process_target): Update.
3860 * win32-low.cc (win32_target_ops): Update.
3861 (win32_thread_alive): Turn into ...
3862 (win32_process_target::thread_alive): ... this.
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 join 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 (join_inferior): Update the macro.
3874 Update the derived classes and callers below.
3876 * linux-low.cc (linux_target_ops): Update.
3877 (linux_join): Turn into ...
3878 (linux_process_target::join): ... this.
3879 * linux-low.h (class linux_process_target): Update.
3880 * lynx-low.cc (lynx_target_ops): Update.
3881 (lynx_join): Turn into ...
3882 (lynx_process_target::join): ... this.
3883 * lynx-low.h (class lynx_process_target): Update.
3884 * nto-low.cc (nto_target_ops): Update.
3885 (nto_process_target::join): Define.
3886 * nto-low.h (class nto_process_target): Update.
3887 * win32-low.cc (win32_target_ops): Update.
3888 (win32_join): Turn into ...
3889 (win32_process_target::join): ... this.
3890 * win32-low.h (class win32_process_target): Update.
3892 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3894 Turn process_stratum_target's mourn op into a method of
3897 * target.h (struct process_stratum_target): Remove the target op.
3898 (class process_target): Add the target op.
3900 Update the derived classes and callers below.
3902 * target.cc (target_mourn_inferior): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_mourn): Turn into ...
3905 (linux_process_target::mourn): ... this.
3906 (handle_extended_wait): Update.
3907 (linux_process_target::kill): Update.
3908 (linux_process_target::detach): Update.
3909 * linux-low.h (class linux_process_target): Update.
3910 * lynx-low.cc (lynx_target_ops): Update.
3911 (lynx_mourn): Turn into ...
3912 (lynx_process_target::mourn): ... this.
3913 * lynx-low.h (class lynx_process_target): Update.
3914 * nto-low.cc (nto_target_ops): Update.
3915 (nto_mourn): Turn into ...
3916 (nto_process_target::mourn): ... this.
3917 * nto-low.h (class nto_process_target): Update.
3918 * win32-low.cc (win32_target_ops): Update.
3919 (win32_mourn): Turn into ...
3920 (win32_process_target::mourn): ... this.
3921 * win32-low.h (class win32_process_target): Update.
3923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3925 Turn process_stratum_target's detach op into a method of
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 (detach_inferior): Update the macro.
3932 Update the derived classes and callers below.
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_detach): Turn into ...
3936 (linux_process_target::detach): ... this.
3937 * linux-low.h (class linux_process_target): Update.
3938 * lynx-low.cc (lynx_target_ops): Update.
3939 (lynx_detach): Turn into ...
3940 (lynx_process_target::detach): ... this.
3941 * lynx-low.h (class lynx_process_target): Update.
3942 * nto-low.cc (nto_target_ops): Update.
3943 (nto_detach): Turn into ...
3944 (nto_process_target::detach): ... this.
3945 * nto-low.h (class nto_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947 (win32_detach): Turn into ...
3948 (win32_process_target::detach): ... this.
3949 * win32-low.h (class win32_process_target): Update.
3951 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3953 Turn process_stratum_target's kill op into a method of
3956 * target.h (struct process_stratum_target): Remove the target op.
3957 (class process_target): Add the target op.
3959 Update the derived classes and callers below.
3961 * target.cc (kill_inferior): Update.
3962 * linux-low.cc (linux_target_ops): Update.
3963 (linux_kill): Turn into ...
3964 (linux_process_target::kill): ... this.
3965 * linux-low.h (class linux_process_target): Update.
3966 * lynx-low.cc (lynx_target_ops): Update.
3967 (lynx_kill): Turn into ...
3968 (lynx_process_target::kill): ... this.
3969 * lynx-low.h (class lynx_process_target): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 (nto_kill): Turn into ...
3972 (nto_process_target::kill): ... this.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_kill): Turn into ...
3976 (win32_process_target::kill): ... this.
3977 * win32-low.h (class win32_process_target): Update.
3979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3981 Turn process_stratum_target's attach op into a method of
3984 * target.h (struct process_stratum_target): Remove the target op.
3985 (class process_target): Add the target op.
3986 (myattach): Update the macro.
3988 Update the derived classes and callers below.
3990 * linux-low.cc (linux_target_ops): Update.
3991 (linux_attach): Turn into ...
3992 (linux_process_target::attach): ... this.
3993 * linux-low.h (class linux_process_target): Update.
3994 * lynx-low.cc (lynx_target_ops): Update.
3995 (lynx_attach): Turn into ...
3996 (lynx_process_target::attach): ... this.
3997 * lynx-low.h (class lynx_process_target): Update.
3998 * nto-low.cc (nto_target_ops): Update.
3999 (nto_attach): Turn into ...
4000 (nto_process_target::attach): ... this.
4001 * nto-low.h (class nto_process_target): Update.
4002 * win32-low.cc (win32_target_ops): Update.
4003 (win32_attach): Turn into ...
4004 (win32_process_target::attach): ... this.
4005 * win32-low.h (class win32_process_target): Update.
4007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4009 Turn process_stratum_target's post_create_inferior op into a method
4012 * target.h (struct process_stratum_target): Remove the target op.
4013 (class process_target): Add the target op.
4014 (target_post_create_inferior): Update the macro.
4015 * target.cc (process_target::post_create_inferior): Define.
4017 Update the derived classes and callers below.
4019 * linux-low.cc (linux_target_ops): Update.
4020 (linux_post_create_inferior): Turn into ...
4021 (linux_process_target::post_create_inferior): ... this.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 * win32-low.cc (win32_target_ops): Update.
4027 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029 Turn process_stratum_target's create_inferior op into a method of
4032 * target.h (struct process_stratum_target): Remove the target op.
4033 (class process_target): Add the target op.
4034 (create_inferior): Rename the macro to ...
4035 (target_create_inferior): ... this.
4037 Update the derived classes and callers below.
4039 * server.cc (handle_v_run): Update.
4040 (captured_main): Update.
4041 (process_serial_event): Update.
4042 * linux-low.cc (linux_target_ops): Update.
4043 (linux_create_inferior): Turn into ...
4044 (linux_process_target::create_inferior): ... this.
4045 * linux-low.h (class linux_process_target): Update.
4046 * lynx-low.cc (lynx_target_ops): Update.
4047 (lynx_create_inferior): Turn into ...
4048 (lynx_process_target::create_inferior): ... this.
4049 * lynx-low.h (class lynx_process_target): Update.
4050 * nto-low.cc (nto_target_ops): Update.
4051 (nto_create_inferior): Turn into ...
4052 (nto_process_target::create_inferior): ... this.
4053 * nto-low.h (class nto_process_target): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4055 (win32_create_inferior): Turn into ...
4056 (win32_process_target::create_inferior): ... this.
4057 * win32-low.h (class win32_process_target): Update.
4059 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061 * target.h (class process_target): New class definition.
4062 (struct process_stratum_target) <pt>: New field with type
4064 * linux-low.h (class linux_process_target): Define as a derived
4065 class of 'process_target'.
4066 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4068 * lynx-low.h (class lynx_process_target): Define as a derived
4069 class of 'process_target'.
4070 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4072 * nto-low.h (class nto_process_target): Define as a derived
4073 class of 'process_target'.
4074 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4076 * win32-low.h (class win32_process_target): Define as a derived
4077 class of 'process_target'.
4078 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4081 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4083 * configure: Regenerate.
4085 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4086 Andrew Burgess <andrew.burgess@embecosm.com>
4088 * linux-riscv-low.cc: New file.
4089 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4090 and nat/riscv-linux-tdesc.c.
4091 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4092 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4095 2020-02-14 Tom Tromey <tom@tromey.com>
4097 * acinclude.m4: Don't include acx_configure_dir.m4.
4098 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4099 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4100 (all, install-only, uninstall, clean-info, clean)
4101 (maintainer-clean): Don't recurse.
4102 (subdir_do, all-lib): Remove.
4103 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4105 (generated_files): Update.
4106 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4107 * configure: Rebuild.
4108 * configure.ac: Don't configure gnulib or libiberty.
4111 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4113 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4114 preparing the command line for CreateProcess.
4115 (win32_create_inferior): Reflect the program name in debugging
4116 output that shows the process and its command line.
4118 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4120 * Makefile.in: Rename source files from .c to .cc.
4121 * %.c: Rename to %.cc.
4122 * configure.ac: Rename server.c to server.cc.
4123 * configure: Re-generate.
4125 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4127 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4129 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4131 * win32-low.c (win32_create_inferior): Set signal_pid.
4133 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4134 Pedro Alves <palves@redhat.com>
4136 Skip building gdbserver in a cross-configuration.
4137 * configure.srv: Set $gdbserver_host depending on whether $target
4138 is $host. Use $gdbserver_host instead of $host.
4140 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4142 * configure: Re-generate.
4144 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4146 * configure: Re-generate.
4148 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4150 * acinclude.m4: Update warning.m4 path.
4152 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4154 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4155 (handle_exception): Set siginfo_er.
4156 (win32_xfer_siginfo): New function.
4158 2020-02-07 Tom Tromey <tom@tromey.com>
4159 Pedro Alves <palves@redhat.com>
4161 * README: Update build documentation.
4162 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4164 * configure.ac: Update paths.
4165 * configure: Rebuild.
4166 * acinclude.m4: Update paths.
4167 * Makefile.in: Update include paths.
4168 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4169 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4170 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4171 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4172 (%-generated.c): Update paths.
4173 * Move entire directory from ../gdb/gdbserver.
4175 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4177 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4179 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4181 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4182 assignment instead of srv_linux_obj.
4184 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4186 * server.c (handle_qxfer_libraries): Write segment-address with
4189 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4191 * Makefile.in (install-strip): New target.
4192 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4193 * aclocal.m4: Regenerate.
4194 * configure: Regenerate.
4195 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4197 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4199 * Makefile.in (SFILES): Adjust paths to point to real files.
4200 (OBS): Move waitstatus.o to target/waitstatus.o.
4201 (TAGS): Transform paths appropriately.
4203 (nat/%.o): ... this pattern rule.
4205 (target/%.o): ... this pattern rule.
4206 * configure.srv: Adjust paths throughout to include nat/ prefix
4207 with the revant files.
4208 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4209 * configure: Regenerate.
4211 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4213 * Makefile.in (TAGS): Remove config files from the recipe.
4215 2020-01-14 Tom Tromey <tom@tromey.com>
4217 * configure: Rebuild.
4218 * configure.ac: Remove any checks that were added to common.m4.
4219 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4222 2020-01-14 Tom Tromey <tom@tromey.com>
4224 * server.h: Include config.h.
4225 * gdbreplay.c: Include config.h.
4226 * configure: Rebuild.
4227 * configure.ac: Don't source common.host.
4228 * acinclude.m4: Update path.
4229 * Makefile.in (INCSUPPORT): New variable.
4230 (INCLUDE_CFLAGS): Add INCSUPPORT.
4231 (SFILES): Update paths.
4232 (version-generated.c): Update path to create-version.sh.
4233 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4235 2020-01-14 Tom Tromey <tom@tromey.com>
4237 * configure.ac (LIBS): Use WIN32APILIBS.
4238 (USE_WIN32API): Don't define.
4239 * configure: Rebuild.
4241 2020-01-14 Tom Tromey <tom@tromey.com>
4243 * configure: Rebuild.
4245 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4247 * Makefile.in (%-generated.c): Remove rule for files from
4250 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4252 * configure: Re-generate.
4254 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4256 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4258 * tracepoint.c (stop_tracing, flush_trace_buffer,
4259 about_to_request_buffer_space, get_trace_state_variable_value,
4260 set_trace_state_variable_value, gdb_collect): Add declaration.
4262 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4264 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4265 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4266 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4267 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4268 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4271 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4273 * inferiors.c: Include gdbsupport/common-inferior.h.
4275 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4277 * hostio-errno.c: Include hostio.h.
4279 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4281 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4284 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4286 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4287 * linux-arm-tdesc.h: Include arch/arm.h.
4289 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4291 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4293 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4295 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4296 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4298 2020-01-10 Pedro Alves <palves@redhat.com>
4300 * fork-child.c (post_fork_inferior): Pass target down to
4302 * inferiors.c (switch_to_thread): Add process_stratum_target
4304 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4305 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4306 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4307 * remote-utils.c (prepare_resume_reply): Pass the target to
4309 * target.c (the_target): Now a process_stratum_target.
4310 (done_accessing_memory): Pass the target to switch_to_thread.
4311 (set_target_ops): Ajust to use process_stratum_target.
4312 * target.h (struct target_ops): Rename to ...
4313 (struct process_stratum_target): ... this.
4314 (the_target, set_target_ops): Adjust.
4315 (prepare_to_access_memory): Adjust comment.
4316 * win32-low.c (child_xfer_memory): Adjust to use
4317 process_stratum_target.
4318 (win32_target_ops): Now a process_stratum_target.
4320 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4321 Pedro Alves <palves@redhat.com>
4323 * win32-low.c (get_child_debug_event): Extract the fatal exception
4324 from the exit status and convert to the equivalent Posix signal
4326 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4327 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4329 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4331 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4333 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4335 * server.c (gdbserver_version): Change copyright year to 2020.
4336 * gdbreplay.c (gdbreplay_version): Likewise.
4338 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4340 * configure: Regenerate.
4341 * configure.ac: Quote variable arguments of test.
4343 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4345 * Makefile.in: Fix build with GNU Make 3.81
4347 2019-12-16 Tom Tromey <tromey@adacore.com>
4349 * server.c (get_exec_file): Constify result.
4351 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4353 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4354 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4355 * config.in: Regenerate.
4356 * configure: Regenerate.
4357 * configure.ac: Don't check for strerror.
4358 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4359 Call safe_strerror instead of strerror.
4360 * server.h (strerror): Remove this now-unnecessary declaration.
4361 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4363 (gdb_agent_helper_thread): Likewise.
4364 * utils.c (perror_with_name): Likewise.
4366 2019-11-26 Tom Tromey <tom@tromey.com>
4368 * configure, config.in: Rebuild.
4370 2019-11-26 Tom Tromey <tom@tromey.com>
4372 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4373 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4375 * configure, config.in: Rebuild.
4377 2019-11-26 Tom Tromey <tom@tromey.com>
4379 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4380 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4381 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4382 * acinclude.m4: Include ax_pthread.m4.
4383 * config.in, configure: Rebuild.
4385 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4387 * debug.c (debug_set_output): Call safe_strerror instead of
4389 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4390 (linux_kill_one_lwp): Likewise.
4391 (linux_detach_one_lwp): Likewise.
4392 (linux_wait_for_event_filtered): Likewise.
4393 (store_register): Likewise.
4394 * lynx-low.c (lynx_attach): Likewise.
4395 * mem-break.c (insert_memory_breakpoint): Likewise.
4396 (remove_memory_breakpoint): Likewise.
4397 (delete_fast_tracepoint_jump): Likewise.
4398 (set_fast_tracepoint_jump): Likewise.
4399 (uninsert_fast_tracepoint_jumps_at): Likewise.
4400 (reinsert_fast_tracepoint_jumps_at): Likewise.
4401 * nto-low.c (nto_xfer_memory): Likewise.
4402 (nto_resume): Likewise.
4404 2019-11-20 Luis Machado <luis.machado@linaro.org>
4406 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4407 instead of register count.
4408 * tdesc.c (tdesc_contains_feature): New function.
4409 * tdesc.h (tdesc_contains_feature): New prototype.
4411 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4413 * Makefile.in: Add safe-strerror.c.
4414 * configure: Regenerate.
4415 * configure.ac: Don't source common.host.
4417 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4419 * config.in: Regenerate.
4420 * configure: Regenerate.
4422 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4424 * ax.c (ax_printf): Handle size_t_arg.
4426 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4428 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4429 * mi/mi-main.c (output_cores): Likewise.
4430 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4431 (linux_xfer_osdata_modules): Likewise.
4432 * remote.c (register_remote_support_xml): Likewise.
4433 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4434 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4436 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4438 * configure: Regenerate.
4439 * configure.ac: Remove check for strerror_r.
4441 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4443 * config.in: Regenerate.
4444 * configure: Regenerate.
4445 * configure.ac: Also check for strerror_r.
4447 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4449 * ax.h (debug_agent): Remove duplicate declaration.
4451 2019-10-26 Tom de Vries <tdevries@suse.de>
4453 * linux-aarch64-low.c: Fix typos in comments.
4454 * linux-arm-low.c: Same.
4455 * linux-low.c: Same.
4456 * linux-ppc-low.c: Same.
4457 * proc-service.c: Same.
4460 * tracepoint.c: Same.
4461 * win32-low.c: Same.
4463 2019-10-25 Tom Tromey <tromey@adacore.com>
4465 * utils.c (xstrdup): Remove.
4467 2019-10-23 Tom Tromey <tom@tromey.com>
4469 * configure, config.in: Rebuild.
4471 2019-10-23 Tom Tromey <tom@tromey.com>
4473 * configure: Rebuild.
4474 * acinclude.m4: Use m4_include, not sinclude.
4476 2019-10-17 Tom Tromey <tromey@adacore.com>
4478 * configure: Rebuild.
4479 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4480 in AC_CONFIG_FILES invocation.
4481 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4484 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4486 * server.c: Include xml-builtin.h.
4487 (get_xml_features): Don't declare xml_builtins here.
4489 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4491 * Makefile.in: Remove references to vec-ipa.o.
4493 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4495 * Makefile.in: Remove references to vec.c.
4497 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4499 * server.c (server_waiting): Change to bool.
4500 (extended_protocol): Likewise.
4501 (response_needed): Likewise.
4502 (exit_requested): Likewise.
4503 (run_once): Likewise.
4504 (report_no_resumed): Likewise.
4505 (non_stop): Likewise.
4506 (disable_packet_vCont): Likewise.
4507 (disable_packet_Tthread): Likewise.
4508 (disable_packet_qC): Likewise.
4509 (disable_packet_qfThreadInfo): Likewise.
4510 (handle_general_set): Update.
4511 (handle_detach): Update.
4512 (handle_monitor_command): Update.
4513 (handle_query): Update.
4514 (captured_main): Update.
4515 (process_serial_event): Update.
4516 * server.h (server_waiting): Change to bool.
4517 (disable_packet_vCont): Likewise.
4518 (disable_packet_Tthread): Likewise.
4519 (disable_packet_qC): Likewise.
4520 (disable_packet_qfThreadInfo): Likewise.
4521 (run_once): Likewise.
4522 (non_stop): Likewise.
4523 * target.c (target_stop_and_wait): Update.
4525 2019-10-02 Tom Tromey <tromey@adacore.com>
4527 * Makefile.in (SFILES): Add common-inferior.c.
4528 (OBS): Add common-inferior.o.
4529 * server.c (startup_with_shell): Don't define.
4531 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4533 * linux-low.c (linux_low_read_btrace): Update for change to
4536 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4538 * debug.c (debug_threads): Remove comment in favor of the header.
4539 * debug.h (using_threads): Add declaration.
4540 (debug_threads): Add comment.
4541 * linux-aarch64-low.c: Include debug.h and remove declaration of
4543 * nto-low.c: Likewise.
4544 * remote-utils.c: Likewise.
4545 * thread-db.c: Likewise.
4547 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4549 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4550 and powerpc-cell64l-ipa.o.
4551 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4552 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4553 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4556 * spu-low.c: Remove file.
4558 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4559 (parse_spufs_run): Remove.
4560 (ppc_get_pc): Remove Cell/B.E. support.
4561 (ppc_set_pc): Likewise.
4562 (ppc_breakpoint_at): Likewise.
4563 (ppc_arch_setup): Likewise.
4564 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4565 tdesc_powerpc_cell32l.
4566 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4567 or init_registers_powerpc_cell32l.
4568 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4569 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4570 or init_registers_powerpc_cell32l.
4571 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4572 (init_registers_powerpc_cell32l): Remove prototype.
4573 (init_registers_powerpc_cell64l): Likewise.
4575 * target.h (struct target_ops): Remove qxfer_spu member.
4576 * server.c (handle_qxfer_spu): Remove.
4577 (qxfer_packets): Remove entry for "spu".
4578 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4579 * linux-low.c (SPUFS_MAGIC): Remove.
4580 (spu_enumerate_spu_ids): Remove.
4581 (linux_qxfer_spu): Remove.
4582 (linux_target_ops): Remove qxfer_spu member.
4583 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4584 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4585 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4587 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4589 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4590 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4591 * config.in: Regenerate.
4592 * configure: Regenerate.
4594 2019-08-15 Tom Tromey <tromey@adacore.com>
4596 * target.c (target_write_memory): Use gdb::byte_vector.
4598 2019-08-15 Tom Tromey <tromey@adacore.com>
4600 * tracepoint.c (write_inferior_data_pointer)
4601 (write_inferior_integer, write_inferior_int8)
4602 (write_inferior_uinteger, m_tracepoint_action_download)
4603 (r_tracepoint_action_download, x_tracepoint_action_download)
4604 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4605 (download_agent_expr, download_tracepoint_1)
4606 (download_trace_state_variables, upload_fast_traceframes): Update.
4607 * server.c (gdb_write_memory): Update.
4608 * remote-utils.c (relocate_instruction): Update.
4609 * proc-service.c (ps_pdwrite): Update.
4610 * mem-break.c (remove_memory_breakpoint)
4611 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4612 (uninsert_fast_tracepoint_jumps_at)
4613 (reinsert_fast_tracepoint_jumps_at): Update.
4614 * linux-x86-low.c (append_insns)
4615 (i386_install_fast_tracepoint_jump_pad)
4616 (amd64_write_goto_address, i386_write_goto_address): Update.
4617 * linux-s390-low.c (append_insns, s390_write_goto_address):
4619 * linux-ppc-low.c (ppc_relocate_instruction)
4620 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4621 (ppc_write_goto_address): Update.
4622 * linux-aarch64-low.c (append_insns): Update.
4623 * target.h (struct target_ops): Update.
4624 (write_inferior_memory): Don't declare.
4625 * target.c (target_write_memory): Rename from
4626 write_inferior_memory. Remove old target_write_memory.
4628 2019-08-15 Tom Tromey <tromey@adacore.com>
4630 * target.c (write_inferior_memory): Use std::vector.
4632 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4635 * configure.ac: Drop enable-libmcheck support.
4636 * configure, config.in: Rebuild.
4637 * acinclude.m4: Don't include it.
4639 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4641 * configure.srv: Remove Arm xml files.
4643 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4645 * configure.srv: Add new files. Remove xml generated files.
4646 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4648 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4649 * linux-aarch32-tdesc.c: New file.
4650 * linux-aarch32-tdesc.h: New file.
4651 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4652 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4653 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4654 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4655 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4656 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4657 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4658 (arm_read_description): Call arm_linux_read_description.
4659 (initialize_low_arch): Don't init registers.
4660 * linux-arm-tdesc.c: New file.
4661 * linux-arm-tdesc.h: New file.
4663 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4665 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4666 Move counter inside for.
4667 (arm_read_description): Check ptrace earlier.
4668 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4670 2019-07-09 Tom Tromey <tom@tromey.com>
4672 * configure: Rebuild.
4673 * configure.ac: Change common to gdbsupport.
4674 * acinclude.m4: Change common to gdbsupport.
4675 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4676 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4677 common to gdbsupport.
4678 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4679 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4680 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4681 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4682 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4683 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4684 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4685 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4686 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4687 common to gdbsupport.
4689 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4691 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4693 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4695 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4697 * configure.srv: Remove legacy xml.
4698 * linux-aarch64-low.c (initialize_low_arch): Remove
4699 initialize_low_tdesc call.
4700 * linux-aarch64-tdesc-selftest.c: Remove file.
4701 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4702 * linux-x86-low.c (initialize_low_arch): Remove
4703 initialize_low_tdesc call.
4704 * linux-x86-tdesc-selftest.c: Remove file.
4705 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4707 2019-06-20 Tom de Vries <tdevries@suse.de>
4709 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4710 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4712 2019-06-19 Tom de Vries <tdevries@suse.de>
4714 * debug.h (debug_write): Change return type to ssize_t.
4715 * debug.c (debug_write): Same.
4717 2019-06-14 Tom Tromey <tom@tromey.com>
4719 * configure.ac: Use new path to gnulib.
4720 * configure: Rebuild.
4721 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4724 2019-06-11 Tom Tromey <tom@tromey.com>
4726 * Makefile.in (SFILES): Add alloc.c.
4728 (IPA_OBJS): Add alloc-ipa.o.
4729 (alloc-ipa.o): New target.
4730 (%.o: ../%.c): New pattern rule.
4732 2019-06-10 Tom Tromey <tromey@adacore.com>
4734 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4735 end warning with a newline.
4736 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4738 * thread-db.c (attach_thread): Don't end warning with a newline.
4739 (thread_db_notice_clone): Likewise.
4740 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4742 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4743 end warning with a newline.
4745 2019-06-04 Pedro Alves <palves@redhat.com>
4747 * server.c (captured_main): Use make_unique_xstrdup.
4749 2019-06-02 Tom Tromey <tom@tromey.com>
4751 * gdbreplay.c (fromhex): Remove.
4752 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4754 2019-05-29 Tom Tromey <tromey@adacore.com>
4756 * configure: Rebuild.
4758 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4760 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4761 sign extension code on 32-bit builds.
4763 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4766 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4768 2019-04-19 Tom Tromey <tom@tromey.com>
4770 * server.c (struct vstop_notif): Derive from notif_event.
4772 (queue_stop_reply): Update.
4773 (remove_all_on_match_ptid): Change type. Rewrite.
4774 (discard_queued_stop_replies): Rewrite.
4775 (in_queued_stop_replies_ptid): Change type.
4776 (in_queued_stop_replies): Rewrite.
4777 (notif_stop): Update.
4778 (queue_stop_reply_callback): Update.
4779 (captured_main): Don't call initialize_notif.
4780 (push_stop_notification): Update.
4781 * notif.c (notif_write_event, handle_notif_ack)
4782 (notif_event_enque, notif_push): Update.
4783 (notif_event_xfree, initialize_notif): Remove.
4784 * notif.h (struct notif_event): Include <list>, not
4786 (struct notif_server) <queue>: Now a std::list.
4787 (notif_event_p): Remove typedef.
4788 (initialize_notif): Don't declare.
4789 (struct notif_event): Add virtual destructor.
4791 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4793 * ax.c (ax_vdebug): Call debug_printf.
4794 * debug.c (debug_write): New function.
4795 * debug.h (debug_write): New declaration.
4796 * linux-low.c (sigchld_handler): Call debug_write.
4798 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4800 * debug.c (debug_set_output): New function.
4801 (debug_vprintf): Send output to debug_file.
4802 (debug_flush): Likewise.
4803 * debug.h (debug_set_output): New declaration.
4804 * server.c (handle_monitor_command): Add debug-file option.
4805 (captured_main): Likewise.
4807 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4809 * debug.c (remote_debug): Add definition.
4810 * debug.h (remote_debug): Add declaration.
4811 * hostio.c (remote_debug): Remove declaration.
4812 * remote-utils.c (struct ui_file): Likewise.
4813 (remote_debug): Likewise.
4814 * remote-utils.h (remote_debug): Likewise,
4815 * server.c (remote_debug): Remove definition.
4817 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4819 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4820 when using a 64-bit gdbserver.
4822 2019-04-09 Tom Tromey <tromey@adacore.com>
4824 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4826 2019-04-08 Tom Tromey <tom@tromey.com>
4828 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4830 (linux_resume_one_lwp): Likewise.
4832 2019-04-08 Tom Tromey <tom@tromey.com>
4834 * gdbreplay.c: Update.
4835 * linux-low.c: Update.
4838 2019-04-08 Tom Tromey <tom@tromey.com>
4840 * server.c: Use C++ exception handling.
4841 * linux-low.c: Use C++ exception handling.
4842 * gdbreplay.c: Use C++ exception handling.
4844 2019-04-08 Tom Tromey <tom@tromey.com>
4846 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4847 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4848 (captured_main, main): Update.
4849 * gdbreplay.c (main): Update.
4851 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4853 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4854 value in argument pointer, return 1 if the entry is found and 0
4855 otherwise. Move comment.
4856 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4857 * linux-low.h (linux_get_auxv): Declare.
4858 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4860 2019-04-05 Tom Tromey <tromey@adacore.com>
4862 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4865 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4867 * linux-low.c (AT_HWCAP2): Add define if not already included.
4869 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4871 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4872 (aarch64_arch_setup): Call linux_get_hwcap.
4873 * linux-arm-low.c (arm_get_hwcap): Remove function.
4874 (arm_read_description): Call linux_get_hwcap.
4875 * linux-low.c (linux_get_auxv): New function.
4876 (linux_get_hwcap): Likewise.
4877 (linux_get_hwcap2): Likewise.
4878 * linux-low.h (linux_get_hwcap): New declaration.
4879 (linux_get_hwcap2): Likewise.
4880 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4881 (ppc_arch_setup): Call linux_get_hwcap.
4882 * linux-s390-low.c (s390_get_hwcap): Remove function.
4883 (s390_arch_setup): Call linux_get_hwcap.
4885 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4886 Jiong Wang <jiong.wang@arm.com>
4888 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4889 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4891 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4893 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4894 Jiong Wang <jiong.wang@arm.com>
4896 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4897 (aarch64_get_hwcap): New function.
4898 (aarch64_arch_setup): Read APIA hwcap.
4900 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4901 Jiong Wang <jiong.wang@arm.com>
4903 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4904 (initialize_low_tracepoint): Likewise.
4905 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4906 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4907 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4908 (aarch64_linux_read_description): Likewise.
4909 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4911 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4913 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4914 i386_create_target_description for 'segments' parameter.
4915 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4916 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4917 * win32-i386-low.c (i386_arch_setup): Likewise.
4919 2019-03-12 Tom Tromey <tromey@adacore.com>
4921 * linux-low.c (iterate_over_lwps): Update.
4923 2019-03-06 Tom Tromey <tom@tromey.com>
4925 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4926 (captured_main): Use SCOPE_EXIT.
4928 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4930 * configure.srv: Use '$enable_unittest' instead of '$development'
4931 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4934 2019-02-27 Tom Tromey <tromey@adacore.com>
4936 * gdbreplay.c (logchar): Handle \r\n.
4938 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4940 * linux-low.c (linux_attach): Add process before lwp.
4941 * server.c (attach_inferior): Check if already attached.
4943 2019-02-07 Tom Tromey <tom@tromey.com>
4945 * x86-tdesc.h: Rename include guard.
4946 * x86-low.h: Add include guard.
4947 * wincecompat.h: Rename include guard.
4948 * win32-low.h: Add include guard.
4949 * utils.h: Rename include guard.
4950 * tracepoint.h: Rename include guard.
4951 * tdesc.h: Rename include guard.
4952 * target.h: Rename include guard.
4953 * server.h: Rename include guard.
4954 * remote-utils.h: Rename include guard.
4955 * regcache.h: Rename include guard.
4956 * nto-low.h: Rename include guard.
4957 * notif.h: Add include guard.
4958 * mem-break.h: Rename include guard.
4959 * lynx-low.h: Add include guard.
4960 * linux-x86-tdesc.h: Add include guard.
4961 * linux-s390-tdesc.h: Add include guard.
4962 * linux-ppc-tdesc-init.h: Add include guard.
4963 * linux-low.h: Add include guard.
4964 * linux-aarch64-tdesc.h: Add include guard.
4965 * linux-aarch32-low.h: Add include guard.
4966 * inferiors.h: Rename include guard.
4967 * i387-fp.h: Rename include guard.
4968 * hostio.h: Rename include guard.
4969 * gdbthread.h: Rename include guard.
4970 * gdb_proc_service.h: Rename include guard.
4971 * event-loop.h: Rename include guard.
4972 * dll.h: Rename include guard.
4973 * debug.h: Rename include guard.
4974 * ax.h: Rename include guard.
4976 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4979 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4980 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4982 2019-01-25 Tom Tromey <tom@tromey.com>
4984 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4986 2019-01-25 Tom Tromey <tom@tromey.com>
4988 * win32-low.c: Fix common/ includes.
4989 * win32-i386-low.c: Fix common/ includes.
4990 * tracepoint.c: Fix common/ includes.
4991 * thread-db.c: Fix common/ includes.
4992 * target.h: Fix common/ includes.
4993 * symbol.c: Fix common/ includes.
4994 * spu-low.c: Fix common/ includes.
4995 * server.h: Fix common/ includes.
4996 * server.c: Fix common/ includes.
4997 * remote-utils.c: Fix common/ includes.
4998 * regcache.h: Fix common/ includes.
4999 * regcache.c: Fix common/ includes.
5000 * nto-x86-low.c: Fix common/ includes.
5001 * notif.h: Fix common/ includes.
5002 * mem-break.h: Fix common/ includes.
5003 * lynx-low.c: Fix common/ includes.
5004 * lynx-i386-low.c: Fix common/ includes.
5005 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5006 * linux-x86-low.c: Fix common/ includes.
5007 * linux-low.c: Fix common/ includes.
5008 * inferiors.h: Fix common/ includes.
5009 * i387-fp.c: Fix common/ includes.
5010 * hostio.c: Fix common/ includes.
5011 * hostio-errno.c: Fix common/ includes.
5012 * gdbthread.h: Fix common/ includes.
5013 * gdbreplay.c: Fix common/ includes.
5014 * fork-child.c: Fix common/ includes.
5015 * event-loop.c: Fix common/ includes.
5017 (enum gdb_agent_op): Fix common/ includes.
5019 2019-01-21 Tom Tromey <tom@tromey.com>
5021 * tracepoint.c: Fix includes.
5022 * remote-utils.c: Fix includes.
5023 * linux-x86-low.c: Fix includes.
5025 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5027 * gdbreplay.c (gdbreplay_version): Update copyright year in
5029 * server.c (gdbserver_version): Likewise.
5031 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5033 * linux-low.c (add_lwp): Switch ordering.
5035 2018-11-29 Tom Tromey <tom@tromey.com>
5037 * win32-low.c (win32_join): Take pid, not process.
5038 * target.h (struct target_ops) <join>: Change argument type.
5039 (join_inferior): Change argument name.
5040 * spu-low.c (spu_join): Take pid, not process.
5041 * server.c (handle_detach): Preserve pid before destroying
5043 * lynx-low.c (lynx_join): Take pid, not process.
5044 * linux-low.c (linux_join): Take pid, not process.
5046 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5048 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5049 (aarch64_cannot_fetch_register): Likewise.
5050 (struct linux_target_ops): Update references.
5052 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5054 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5056 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5058 * configure.srv (ipa_ppc_linux_regobj): Add
5059 powerpc-isa207-htm-vsx32l-ipa.o and
5060 powerpc-isa207-htm-vsx64l-ipa.o.
5061 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5062 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5063 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5064 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5065 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5066 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5067 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5068 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5069 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5070 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5071 (init_registers_powerpc_isa207_htm_vsx32l)
5072 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5073 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5074 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5075 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5076 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5077 (ppc_store_tm_ctarregset): New functions.
5078 (ppc_regsets): Add entries for HTM regsets.
5079 (ppc_arch_setup): Set htm in features struct when needed. Set
5080 sizes for the HTM regsets.
5081 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5082 (initialize_low_arch): Call
5083 init_registers_powerpc_isa207_htm_vsx32l and
5084 init_registers_powerpc_isa207_htm_vsx64l.
5085 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5086 PPC_TDESC_ISA207_HTM_VSX.
5087 (initialize_low_tracepoint): Call
5088 init_registers_powerpc_isa207_htm_vsx32l and
5089 init_registers_powerpc_isa207_htm_vsx64l.
5091 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5093 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5094 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5095 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5096 (ppc_store_pmuregset): New functions.
5097 (ppc_regsets): Add entries for ebb and pmu regsets.
5098 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5099 pmu regsets are available. Set sizes for these regsets.
5101 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5103 * configure.srv (ipa_ppc_linux_regobj): Add
5104 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5105 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5106 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5107 rs6000/powerpc-isa207-vsx32l.xml, and
5108 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5109 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5110 <PPC_TDESC_ISA207_VSX>: New enum value.
5111 (init_registers_powerpc_isa207_vsx32l): Declare.
5112 (init_registers_powerpc_isa207_vsx64l): Declare.
5113 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5114 (ppc_store_tarregset): New function.
5115 (ppc_regsets): Add entry for the TAR regset.
5116 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5117 size for the TAR regsets.
5118 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5119 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5120 and init_registers_powerpc_isa207_vsx64l.
5121 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5122 (initialize_low_tracepoint): Call
5123 init_registers_powerpc_isa207_vsx32l and
5124 init_registers_powerpc_isa207_vsx64l.
5126 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5127 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5129 * configure.srv (ipa_ppc_linux_regobj): Add
5130 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5131 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5132 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5133 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5134 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5135 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5136 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5137 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5138 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5139 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5140 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5141 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5142 (ppc_hwcap): Add comment.
5143 (ppc_hwcap2): New global.
5144 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5145 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5146 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5147 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5148 when needed. Set sizes for the the DSCR and PPR regsets.
5149 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5150 (initialize_low_arch): Call
5151 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5152 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5153 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5154 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5155 (initialize_low_tracepoint): Call
5156 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5157 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5159 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5161 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5163 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5164 Simon Marchi <simark@simark.ca>
5166 * acinclude.m4: Include "../selftest.m4".
5167 * configure: Regenerate.
5168 * configure.ac: Use "GDB_AC_SELFTEST".
5169 * configure.srv: Use "$enable_unittests" instead of
5170 "$development" when checking whether unit tests have been
5172 * server.c (captured_main): Update message informing that
5173 selftests have been disabled.
5175 2018-10-04 Tom Tromey <tom@tromey.com>
5177 * configure: Rebuild.
5179 2018-10-04 Tom Tromey <tom@tromey.com>
5181 * server.c (handle_status): Rename inner "thread".
5182 (process_serial_event): Declare "res" in 'm' case.
5183 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5184 (iterate_over_lwps): Rename inner "thread".
5185 (linux_qxfer_libraries_svr4): Rename inner "len".
5186 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5188 2018-10-01 Gary Benson <gbenson@redhat.com>
5190 * gdb_proc_service.h: Moved common code to
5191 common/gdb_proc_service.h.
5193 2018-10-01 Gary Benson <gbenson@redhat.com>
5195 * gdb_proc_service.h: Synchronize comments and whitespace with
5196 GDB's version of this file.
5198 2018-09-25 Tom Tromey <tom@tromey.com>
5200 * configure: Rebuild.
5201 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5203 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5205 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5206 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5207 ($(IPA_LIB)): Sort IPA_OBJS.
5209 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5211 * Makefile.in: Remove references to $(ADD_DEPS).
5213 2018-09-16 Tom Tromey <tom@tromey.com>
5215 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5217 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5220 2018-09-05 Tom Tromey <tom@tromey.com>
5222 * configure: Rebuild.
5224 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5227 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5229 2018-08-27 Tom Tromey <tom@tromey.com>
5232 * configure: Rebuild.
5234 2018-08-27 Tom Tromey <tom@tromey.com>
5236 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5237 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5238 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5239 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5240 (s390x_emit_stack_adjust): Add casts to unsigned char.
5242 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5246 * server.h (struct client_state) <disable_randomization>:
5249 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5251 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5253 (mips_supply_ptrace_register): Likewise.
5255 2018-07-22 Tom Tromey <tom@tromey.com>
5257 * configure: Rebuild.
5259 2018-07-22 Tom Tromey <tom@tromey.com>
5261 * win32-low.c (win32_create_inferior): Remove unused variables.
5262 * gdbreplay.c (remote_open): Remove unused variable.
5263 * remote-utils.c (remote_prepare): Remove unused variable.
5264 * x86-tdesc.h (X86_TDESC_H): Define.
5265 (amd64_expedite_regs): Define conditionally.
5266 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5267 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5268 * remote-utils.c (readchar): Remove unused variable.
5270 2018-07-13 Pedro Alves <palves@redhat.com>
5272 * linux-low.c (linux_kill): Change parameter to process_info
5273 pointer instead of pid. Adjust.
5274 * lynx-low.c (lynx_kill): Likewise.
5275 * nto-low.c (nto_kill): Likewise.
5276 * spu-low.c (spu_kill): Likewise.
5277 * win32-low.c (win32_kill): Likewise.
5278 * server.c (handle_v_kill, kill_inferior_callback)
5279 (detach_or_kill_for_exit): Adjust.
5280 * target.c (kill_inferior): Change parameter to process_info
5281 pointer instead of pid. Adjust.
5282 * target.h (struct target_ops) <kill>: Change parameter to
5283 process_info pointer instead of pid. Adjust all implementations
5285 (kill_inferior): Likewise.
5287 2018-07-13 Pedro Alves <palves@redhat.com>
5289 * linux-low.c (linux_detach, linux_join): Change parameter to
5290 process_info pointer instead of pid. Adjust.
5291 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5292 * nto-low.c (nto_detach): Likewise.
5293 * spu-low.c (spu_detach, spu_join): Likewise.
5294 * win32-low.c (win32_detach, win32_join): Likewise.
5295 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5296 * target.h (struct target_ops) <detach, join>: Change parameter to
5297 process_info pointer instead of pid. Adjust all implementations
5299 (detach_inferior, join_inferior): Rename 'pid' parameter to
5302 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5303 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 Paul Fertser <fercerpav@gmail.com>
5305 Tsutomu Seki <sekiriki@gmail.com>
5307 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5308 (OBS): Add 'common/netstuff.o'.
5309 (GDBREPLAY_OBS): Likewise.
5310 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5311 (remote_open): Implement support for IPv6
5313 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5315 (handle_accept_event): Accept connections from IPv6 sources.
5316 (remote_prepare): Handle IPv6-style hostnames; implement
5317 support for IPv6 connections.
5318 (remote_open): Implement support for printing connections from
5321 2018-07-11 Pedro Alves <palves@redhat.com>
5324 * mem-break.c (any_persistent_commands): Add process_info
5325 parameter and use it instead of relying on the current process.
5326 Change return type to bool.
5327 * mem-break.h (any_persistent_commands): Add process_info
5328 parameter and change return type to bool.
5329 * server.c (handle_detach): Remove require_running_or_return call.
5330 Look up the process_info for the process we're about to detach.
5331 If not found, return back error to GDB. Adjust
5332 any_persistent_commands call to pass down a process pointer.
5334 2018-07-11 Pedro Alves <palves@redhat.com>
5336 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5337 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5338 instead of collect_register_by_name.
5339 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5340 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5342 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5343 Pedro Alves <palves@redhat.com>
5345 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5347 2018-07-03 Tom Tromey <tom@tromey.com>
5349 * linux-low.c: Update.
5350 * lynx-low.c: Update.
5351 * mem-break.c: Update.
5352 * nto-low.c: Update.
5353 * remote-utils.c: Update.
5355 * spu-low.c: Update.
5357 * win32-low.c: Update.
5359 2018-07-03 Tom Tromey <tom@tromey.com>
5363 2018-07-03 Tom Tromey <tom@tromey.com>
5365 * linux-low.c: Update.
5367 2018-07-03 Tom Tromey <tom@tromey.com>
5371 2018-07-03 Tom Tromey <tom@tromey.com>
5373 * linux-low.c: Update.
5374 * linux-mips-low.c: Update.
5375 * lynx-low.c: Update.
5376 * nto-low.c: Update.
5377 * remote-utils.c: Update.
5379 * spu-low.c: Update.
5381 * thread-db.c: Update.
5383 2018-07-03 Tom Tromey <tom@tromey.com>
5385 * linux-low.c: Update.
5386 * linux-mips-low.c: Update.
5387 * lynx-low.c: Update.
5388 * mem-break.c: Update.
5389 * nto-low.c: Update.
5390 * remote-utils.c: Update.
5392 * spu-low.c: Update.
5394 * tracepoint.c: Update.
5396 2018-07-03 Tom Tromey <tom@tromey.com>
5398 * linux-low.c: Update.
5399 * linux-ppc-low.c: Update.
5400 * linux-x86-low.c: Update.
5401 * proc-service.c: Update.
5403 * spu-low.c: Update.
5404 * thread-db.c: Update.
5405 * win32-low.c: Update.
5407 2018-07-03 Tom Tromey <tom@tromey.com>
5409 * linux-low.c: Update.
5410 * lynx-low.c: Update.
5411 * nto-low.c: Update.
5412 * remote-utils.c: Update.
5413 * spu-low.c: Update.
5414 * thread-db.c: Update.
5415 * win32-low.c: Update.
5417 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5419 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5420 parameter in call to 'amd64_create_target_description'.
5422 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5424 * x86-tdesc.h: Remove executable permission flag.
5426 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5428 * configure.ac: Remove AC_PREREQ, add missing quoting.
5429 * configure: Re-generate.
5430 * config.in: Re-generate.
5431 * aclocal.m4: Re-generate.
5433 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5435 * tracepoint.h (current_traceframe): Remove declaration.
5437 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5439 * linux-aarch64-low.c (is_sve_tdesc): New function.
5440 (aarch64_sve_regs_copy_to_regcache): Likewise.
5441 (aarch64_sve_regs_copy_from_regcache): Likewise.
5442 (aarch64_regs_info): Add SVE checks.
5443 (initialize_low_arch): Initialize SVE.
5445 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5447 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5449 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5451 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5452 (initialize_low_tracepoint): Likewise
5453 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5454 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5456 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5458 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5460 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5462 * server.h (PBUFSIZ): Increase size
5464 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5466 * regcache.c (regcache::raw_compare): New function.
5467 * regcache.h (regcache::raw_compare): New declaration.
5469 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5471 * regcache.c (new_register_cache): Use new.
5472 (free_register_cache): Use delete.
5473 (register_data): Use const.
5474 (supply_register): Move body inside regcache.
5475 (regcache::raw_supply): New override function.
5476 (collect_register): Move body inside regcache.
5477 (regcache::raw_collect): New override function.
5478 (regcache::get_register_status): New override function.
5479 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5481 2018-06-09 Tom Tromey <tom@tromey.com>
5483 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5485 (event_queue): Use std::queue.
5486 (gdb_event_xfree): Remove.
5487 (initialize_event_loop, process_event, wait_for_event): Update.
5489 2018-06-08 Stan Cox <scox@redhat.com>
5491 * win32-low.c (win32_create_inferior): last_ptid and last_status
5492 moved to client_state.
5494 2018-06-08 Pedro Alves <palves@redhat.com>
5496 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5497 common/common-exceptions.o, common/common-utils.o,
5498 common/errors.o, common/print-utils.o and utils.o.
5499 * gdbreplay.c: Include "common-defs.h" instead of the two
5500 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5501 string.h or alloca.h.
5502 (perror_with_name): Delete.
5503 (remote_open): Use xstrdup instead of strdup.
5504 (main): Rename to ...
5505 (captured_main): ... this.
5508 2018-06-08 Tom Tromey <tom@tromey.com>
5510 * linux-low.c (linux_low_read_btrace): Update.
5512 2018-06-04 Stan Cox <scox@redhat.com>
5514 * server.h (struct client_state): New.
5515 * server.c (cont_thread, general_thread, multi_process)
5516 (report_fork_events, report_vfork_events, report_exec_events)
5517 (report_thread_events, swbreak_feature, hwbreak_feature)
5518 (vCont_supported, disable_randomization, pass_signals)
5519 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5520 Moved to client_state.
5521 * remote-utils.c (remote_debug, noack_mode)
5522 (transport_is_reliable): Moved to client_state.
5523 * tracepoint.c (current_traceframe): Moved to client_state.
5526 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5527 linux-low.c, remote-utils.h, target.c: Use client_state.
5529 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5531 * configure.srv: Add new c/h file.
5533 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5535 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5538 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5540 * gdb.arch/mips-fpregset-core.exp: New test.
5541 * gdb.arch/mips-fpregset-core.c: New test source.
5543 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5546 * hostio.c (require_int): Do not report overflow for integers
5547 between 0xfffffff and 0x7fffffff.
5549 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5551 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5552 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5553 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5555 (the_low_target): Wire them.
5557 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5559 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5560 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5561 mode. Call collect_register_by_name with vscr using
5562 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5563 (ppc_store_vrregset): Add and set vscr_offset variable as in
5564 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5567 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5569 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5570 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5571 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5573 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5575 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5576 (ppc_store_vsxregset): Likewise.
5577 (ppc_fill_vrregset): Likewise.
5578 (ppc_store_vrregset): Likewise.
5579 (ppc_fill_evrregset): Likewise.
5580 (ppc_store_evrregset): Likewise.
5581 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5582 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5585 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5587 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5588 wordsize of the inferior. Call ppc_linux_target_wordsize.
5590 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5592 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5593 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5594 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5595 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5596 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5597 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5598 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5599 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5600 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5601 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5602 (tdesc_powerpc_e500l): Remove.
5603 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5604 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5605 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5606 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5608 (ppc_arch_setup): Remove target description matching code. Fill a
5609 ppc_linux_features struct and call ppc_linux_match_description
5612 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5614 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5615 width of the requested register exceeds the width of the
5617 (mips_cannot_store_register): Likewise.
5619 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5621 * linux-mips-low.c (mips_fetch_register): New function. Update
5623 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5624 (the_low_target): Wire `mips_fetch_register'.
5626 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5628 * lynx-i386-low.c (LYNXOS_178): New macro.
5629 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5630 the layout on LynxOS-178.
5631 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5632 handle floating point registers that are not supported by
5635 2018-05-10 Tom Tromey <tom@tromey.com>
5637 * configure: Rebuild.
5639 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5642 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5643 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5644 Use it to set the expedite_regs field in the given tdesc.
5645 * x86-tdesc.h: New file.
5646 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5647 Adjust following the addition of the new expedite_regs parameter
5648 to init_target_desc.
5649 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5650 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5651 (i386_linux_read_description, amd64_linux_read_description):
5652 Adjust following the addition of the new expedite_regs parameter
5653 to init_target_desc.
5654 * lynx-i386-low.c: #include "x86-tdesc.h".
5655 (lynx_i386_arch_setup): Adjust following the addition of the new
5656 expedite_regs parameter to init_target_desc.
5657 * nto-x86-low.c: #include "x86-tdesc.h".
5658 (nto_x86_arch_setup): Adjust following the addition of the new
5659 expedite_regs parameter to init_target_desc.
5660 * win32-i386-low.c: #include "x86-tdesc.h".
5661 (i386_arch_setup): Adjust following the addition of the new
5662 expedite_regs parameter to init_target_desc.
5664 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5667 * win32-low.c (win32_create_inferior): Add call to my_wait
5668 setting last_status global.
5670 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5673 * win32-low.c (create_process): Only call gdb_tilde_expand if
5674 inferior_cwd is not NULL.
5676 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5678 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5679 registers to the cache if their values have changed.
5680 (i387_xsave_to_cache): Provide default values for x87 control
5681 registers when these features are available, but disabled.
5682 * regcache.c (supply_register_by_name_zeroed): New function.
5683 * regcache.h (supply_register_by_name_zeroed): Declare new
5686 2018-05-07 Tom Tromey <tom@tromey.com>
5688 * configure: Rebuild.
5690 2018-05-04 Tom Tromey <tom@tromey.com>
5692 * configure: Rebuild.
5694 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Pedro Alves <palves@redhat.com>
5697 * linux-aarch64-low.c (aarch64_stopped_data_address):
5700 2018-04-27 Tom Tromey <tom@tromey.com>
5702 * configure: Rebuild.
5704 2018-04-23 Tom Tromey <tom@tromey.com>
5706 * configure: Rebuild.
5708 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5710 * Makefile.in (depcomp): Add "..".
5711 (all_deps_files): New and use it.
5713 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5715 * configure.srv (aarch64*-*-linux*): Don't include xml.
5716 (i[34567]86-*-cygwin*): Likewise.
5717 (i[34567]86-*-linux*): Likewise.
5718 (i[34567]86-*-lynxos*): Likewise.
5719 (i[34567]86-*-mingw32ce*): Likewise.
5720 (i[34567]86-*-mingw*): Likewise.
5721 (i[34567]86-*-nto*): Likewise.
5722 (tic6x-*-uclinux): Likewise.
5723 (x86_64-*-linux*): Likewise.
5724 (x86_64-*-mingw*): Likewise.
5725 (x86_64-*-cygwin*): Likewise.
5727 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5729 * tdesc.c: Remove xml parameter.
5731 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5733 * server.c (get_features_xml): Remove cast.
5734 * tdesc.c (void target_desc::accept): Fill in function.
5735 (tdesc_get_features_xml): Remove old xml creation.
5736 (print_xml_feature::visit_pre): Add xml vistor.
5737 * tdesc.h (struct target_desc): Make xmltarget mutable.
5738 (tdesc_get_features_xml): Remove declaration.
5740 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5742 * tdesc.c (tdesc_architecture_name): Add new function.
5743 (tdesc_osabi_name): Likewise.
5744 (tdesc_get_features_xml): Use new functions.
5746 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5748 * tdesc.c (tdesc_create_flags): Remove.
5749 (tdesc_add_flag): Likewise.
5750 (tdesc_named_type): Likewise.
5751 (tdesc_create_union): Likewise.
5752 (tdesc_create_struct): Likewise.
5753 (tdesc_create_vector): Likewise.
5754 (tdesc_add_bitfield): Likewise.
5755 (tdesc_add_field): Likewise.
5756 (tdesc_set_struct_size): Likewise.
5758 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5760 * tdesc.c (~target_desc): Remove implictly deleted items.
5761 (init_target_desc): Iterate all features.
5762 (tdesc_get_features_xml): Use vector.
5763 (tdesc_create_feature): Create feature.
5764 * tdesc.h (tdesc_feature) Remove
5765 (target_desc): Add features.
5767 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5769 * Makefile.in: Add common/tdesc.c
5770 * tdesc.c (init_target_desc): init all reg_defs from register
5772 (tdesc_create_reg): Create tdesc_reg.
5773 * tdesc.h (tdesc_feature): Add register vector.
5775 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5777 * tdesc.h (struct target_desc) <features>: Change type to
5778 std::vector<std::string>.
5779 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5781 (tdesc_get_features_xml): Likewise.
5782 (tdesc_create_feature): Likewise.
5784 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5786 * regcache.c (find_register_by_number): Return a ref.
5787 (find_regno): Use references.
5788 (register_size): Likewise.
5789 (register_data): Likewise.
5790 * tdesc.c (target_desc::~target_desc): Remove free calls.
5791 (target_desc::operator==): Use std::vector compare.
5792 (init_target_desc): Use reference.
5793 (tdesc_create_reg): Use reg constructors.
5794 * tdesc.h (struct target_desc): Replace pointer with object.
5796 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5798 * regcache.c (find_register_by_number): Make static.
5799 (find_regno): Use find_register_by_number
5800 * regcache.h (struct reg): Remove declaration.
5802 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5804 * tdesc.c (target_desc::~target_desc): Move to here.
5805 (target_desc::operator==): Likewise.
5806 * tdesc.h (target_desc::~target_desc): Move from here.
5807 (target_desc::operator==): Likewise.
5809 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5811 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5813 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5815 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5817 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5818 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5819 and init_registers_s390_gs_linux64.
5821 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5823 * linux-s390-low.c (s390_fill_gs): Remove function.
5824 (s390_fill_gsbc): Remove function.
5825 (s390_regsets): Set fill functions for the guarded storage regsets
5828 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5830 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5831 the word size. Add comment.
5832 (s390_get_wordsize): New function.
5833 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5834 pswm with it. Instead, use s390_get_wordsize to determine the
5835 word size first and derive the correct tdesc from that directly.
5837 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5839 * Makefile.in: Include silent-rules.mk.
5840 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5841 (COMPILE): Add ECHO_CXX.
5842 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5843 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5844 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5845 (version-generated.c): Add ECHO_GEN.
5846 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5847 (IPAGENT_COMPILE): Add ECHO_CXX.
5848 (%-generated.c): Add ECHO_REGDAT.
5850 2018-03-14 Tom Tromey <tom@tromey.com>
5853 * ax.c (ax_printf): Special case for NULL.
5855 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5857 * linux-low.c (linux_qxfer_libraries_svr4): Use
5858 xml_escape_text_append.
5860 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5862 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5864 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5866 * server.c (handle_general_set): Remove unnecessary xstrdup.
5868 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5870 * server.c (parse_debug_format_options): Adjust to
5871 delim_string_to_char_ptr_vec changes.
5872 * thread-db.c (thread_db_load_search): Adjust to
5873 dirnames_to_char_ptr_vec changes.
5875 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5877 * target.h (target_enable_btrace, target_disable_btrace)
5878 (target_read_btrace, target_read_btrace_conf): Turn macro into
5879 inline function. Throw error if target method is not defined.
5880 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5881 check for btrace target method. Be prepared to handle exceptions
5882 from btrace target methods.
5884 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5886 * server.c (captured_main): Change order of error message printed
5887 when the current working directory cannot be found.
5889 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5891 * server.c: Include "filenames.h" and "pathstuff.h".
5892 (program_name): Delete variable.
5893 (program_path): New anonymous class.
5894 (get_exec_wrapper): Use "program_path" instead of
5896 (handle_v_run): Likewise.
5897 (captured_main): Likewise.
5898 (process_serial_event): Likewise.
5900 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5902 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5903 (OBJS): Add "pathstuff.o".
5904 * server.c (current_directory): New global variable.
5905 (captured_main): Initialize "current_directory".
5907 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5909 * tdesc.c: Use common/tdesc.h.
5910 * tdesc.h: Likewise.
5912 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5913 Simon Marchi <simon.marchi@ericsson.com>
5915 * Makefile.in: Switch order of make rules.
5917 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5919 * Makefile.in: Add common directory in build.
5920 * configure.ac: Add common reference.
5921 * configure: Regenerate.
5923 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5925 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5926 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5927 * spu-low.c (spu_target_ops): Likewise.
5928 * win32-low.c (win32_target_ops): Likewise.
5929 * server.c (supported_btrace_packets): Report packets unconditionally.
5930 * target.h (target_ops) <supports_btrace>: Remove.
5931 (target_supports_btrace): Remove.
5933 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5935 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5936 (handle_btrace_disable): Change return type to void. Use exceptions
5938 (handle_btrace_general_set): Catch exception and copy message to
5941 2018-02-08 Tom Tromey <tom@tromey.com>
5943 * linux-low.c (install_software_single_step_breakpoints): Use
5944 make_scoped_restore.
5945 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5946 (do_restore_current_thread_cleanup): Remove.
5947 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5950 2018-02-08 Tom Tromey <tom@tromey.com>
5952 * mem-break.c (set_raw_breakpoint_at): Use
5953 gdb::unique_xmalloc_ptr.
5955 2018-01-30 Pedro Alves <palves@redhat.com>
5958 * target.c (target_terminal::terminal_state): Rename to ...
5959 (target_terminal::m_terminal_state): ... this.
5961 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5963 * linux-low.c (handle_extended_wait): Surround call to
5964 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5966 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5968 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5969 linux_ptrace_attach_fail_reason_string now returning an
5971 (linux_attach): Likewise.
5972 * thread-db.c (attach_thread): Likewise.
5974 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5977 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5978 checking for fs_base/gs_base fields in struct user_regs_struct.
5979 * configure: Regenerate.
5981 2018-01-16 Yao Qi <yao.qi@linaro.org>
5984 * linux-low.c (fetch_register): Call supply_register instead of
5987 2018-01-08 Yao Qi <yao.qi@linaro.org>
5988 Simon Marchi <simon.marchi@ericsson.com>
5990 * Makefile.in (OBS): Remove selftest.o.
5991 * configure.ac: Set srv_selftest_objs if $development is true.
5992 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5993 * configure: Re-generated.
5994 * server.c (captured_main): Wrap variable selftest_filter with
5997 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5999 * server.c (parse_debug_format_options): Return std::string.
6000 (handle_monitor_command, captured_main): Adjust.
6002 2018-01-05 Pedro Alves <palves@redhat.com>
6005 * server.c (captured_main): Pass quiet=false to
6006 save_original_signals_state.
6008 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6010 * gdbreplay.c (gdbreplay_version): Update copyright year in
6012 * server.c (gdbserver_version): Likewise.
6014 2017-12-08 Tom Tromey <tom@tromey.com>
6016 * ax.c (ax_printf): Update.
6018 2017-12-07 Yao Qi <yao.qi@linaro.org>
6020 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6021 aarch64_linux_read_description.
6022 * linux-amd64-ipa.c (idx2mask): New array.
6023 (get_ipa_tdesc): Move idx2mask out.
6024 (initialize_low_tracepoint): Initialize target descriptions.
6025 * linux-i386-ipa.c (idx2mask): New array.
6026 (get_ipa_tdesc): Move idx2mask out.
6027 (initialize_low_tracepoint): Initialize target descriptions.
6029 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6031 * tdesc.c (struct tdesc_type): Change return type.
6032 (tdesc_add_flag): Change parameter type.
6033 (tdesc_add_bitfield): Likewise.
6034 (tdesc_add_field): Likewise.
6035 (tdesc_set_struct_size): Likewise.
6037 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6039 * regcache.c (registers_to_string): Remove unused variable.
6041 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6043 * inferiors.c (for_each_inferior_with_data): Remove.
6044 * inferiors.h (for_each_inferior_with_data): Remove.
6045 * server.c (handle_qxfer_threads_worker): Change parameter type.
6046 (handle_qxfer_threads_proper): Use for_each_thread.
6048 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6050 * inferiors.c (for_each_inferior): Remove.
6051 (clear_inferiors): Use for_each_thread.
6052 * inferiors.h (for_each_inferior): Remove.
6053 * linux-low.c (linux_wait_for_event_filtered): Use
6055 (linux_stabilize_threads): Likewise.
6056 * regcache.c (regcache_release): Likewise.
6057 * server.c (gdb_wants_all_threads_stopped): Likewise.
6058 (clear_pending_status_callback): Remove.
6059 (handle_status): Use for_each_thread.
6060 (captured_main): Likewise.
6061 * win32-low.c (child_init_thread_list): Likewise.
6062 (win32_clear_inferiors): Likewise.
6063 (fake_breakpoint_event): Likewise.
6065 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6067 * inferiors.h (find_inferior): Remove.
6068 * inferiors.c (find_inferior): Remove.
6070 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6072 * linux-low.c (resume_status_pending_p): Update comment.
6073 (need_step_over_p): Update comment.
6075 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6077 * linux-low.c (proceed_one_lwp): Return void, change parameter
6079 (unsuspend_and_proceed_one_lwp): Likewise.
6080 (proceed_all_lwps): Use for_each_thread.
6081 (unstop_all_lwps): Likewise.
6083 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6085 * linux-low.c (linux_resume_one_thread): Return void, take
6087 (linux_resume): Use for_each_thread.
6089 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6091 * linux-low.c (send_sigstop_callback): Return void, change
6092 parameter type. Rename to...
6093 (send_sigstop): ... this.
6094 (suspend_and_send_sigstop_callback): Return void, change parameter
6096 (suspend_and_send_sigstop): ... this.
6097 (stop_all_lwps): Use for_each_thread.
6099 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6101 * linux-low.c (lwp_running): Return bool, remove unused
6103 (linux_stabilize_threads): Use find_thread.
6105 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6107 * linux-low.c (select_singlestep_lwp_callback): Remove.
6108 (count_events_callback): Remove.
6109 (select_event_lwp_callback): Remove.
6110 (select_event_lwp): Use find_thread/for_each_thread.
6112 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6114 * linux-low.c (not_stopped_callback): Return bool, take filter
6116 (linux_wait_for_event_filtered): Use find_thread.
6117 (linux_wait_1): Likewise.
6119 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6121 * linux-low.c (same_lwp): Remove.
6122 (find_lwp_pid): Use find_thread.
6124 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6126 * linux-low.c (delete_lwp_callback): Remove.
6127 (linux_mourn): Use for_each_thread.
6129 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6131 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6132 args parameter, don't check for pid.
6133 (linux_detach): Use for_each_thread.
6135 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6137 * linux-low.c (struct counter): Remove.
6138 (second_thread_of_pid_p): Remove.
6139 (last_thread_of_process_p): Use find_thread.
6141 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6143 * inferiors.c (find_inferior_in_random): Remove.
6144 * inferiors.h (find_inferior_in_random): Remove.
6145 * linux-low.c (status_pending_p_callback): Return bool, accept
6146 parameter ptid directly.
6147 (linux_wait_for_event_filtered): Use find_thread_in_random.
6148 (linux_wait_1): Likewise.
6150 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6152 * inferiors.c (find_inferior_id): Remove.
6153 (find_thread_ptid): Move implemention from find_inferior_id to
6155 * inferiors.h (find_inferior_id): Remove.
6156 * server.c (handle_status): Use find_thread_ptid.
6157 (process_serial_event): Likewise.
6158 * thread-db.c (find_one_thread): Likewise.
6159 (thread_db_thread_handle): Likewise.
6160 * win32-low.c (thread_rec): Likewise.
6161 (child_delete_thread): Likewise.
6162 (win32_thread_alive): Likewise.
6163 (get_child_debug_event): Likewise.
6165 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6167 * linux-mips-low.c (update_watch_registers_callback): Return
6168 void, remove pid_p parameter, don't check for pid.
6169 (mips_insert_point, mips_remove_point): Use for_each_thread.
6171 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6173 * lynx.low (lynx_delete_thread_callback): Remove.
6174 (lynx_mourn): Use for_each_thread.
6176 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6178 * regcache.c (regcache_invalidate_one): Remove.
6179 (regcache_invalidate_pid): use for_each_thread.
6181 2017-11-26 Tom Tromey <tom@tromey.com>
6183 * linux-low.c (linux_create_inferior): Update.
6185 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6187 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6189 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6191 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6192 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6193 * linux-aarch64-tdesc-selftest.c: New file.
6194 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6196 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6198 * configure.srv: Add new file.
6199 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6200 * linux-aarch64-tdesc-selftest.c: New file.
6201 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6203 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6205 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6206 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6207 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6209 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6211 * configure.srv: Add new files.
6212 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6213 aarch64_linux_read_description.
6214 * linux-aarch64-low.c (aarch64_linux_read_description):
6215 Merge with aarch64_arch_setup.
6216 (aarch64_arch_setup): Call aarch64_linux_read_description.
6217 * linux-aarch64-tdesc.c: New file.
6218 * linux-aarch64-tdesc.h: New file.
6220 2017-11-24 Yao Qi <yao.qi@linaro.org>
6222 * configure.srv: Set $srv_regobj for tic6x-linux.
6223 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6224 (tic6x_read_description): Move some code to tic6x_arch_setup.
6225 (tic6x_tdesc_test): New function.
6226 (initialize_low_arch): Call selftests::register_test.
6228 2017-11-22 Yao Qi <yao.qi@linaro.org>
6230 * remote-utils.c (prepare_resume_reply): Use memcpy.
6232 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6234 * linux-low.c (kill_one_lwp_callback): Return void, take
6235 argument directly, don't filter on pid.
6236 (linux_kill): Use for_each_thread.
6238 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6240 * linux-low.c (need_step_over_p): Return bool, remove dummy
6242 (linux_resume, proceed_all_lwps): Use find_thread.
6244 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6246 * linux-low.c (resume_status_pending_p): Return bool, remove
6248 (linux_resume): Use find_thread.
6250 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6252 * linux-low.c (struct thread_resume_array): Remove.
6253 (linux_set_resume_request): Return void, take arguments
6255 (linux_resume): Use for_each_thread.
6257 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6259 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6260 return bool, remove data argument.
6261 (linux_stabilize_threads): Use find_thread.
6263 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6265 * linux-low.c (unsuspend_one_lwp): Remove.
6266 (unsuspend_all_lwps): Use for_each_thread, inline code from
6269 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6271 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6272 * linux-low.c (struct iterate_over_lwps_args): Remove.
6273 (iterate_over_lwps_filter): Remove.
6274 (iterate_over_lwps): Use find_thread.
6276 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6278 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6279 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6280 code from reset_lwp_ptrace_options_callback.
6282 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6284 * linux-arm-low.c (struct update_registers_data): Remove.
6285 (update_registers_callback): Return void, take arguments
6286 directly, don't check thread's pid.
6287 (arm_insert_point, arm_remove_point): Use for_each_thread.
6289 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6291 * win32-low.c (continue_one_thread): Return void, take argument
6293 (child_continue): Use for_each_thread.
6295 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6297 * win32-i386-low.c (update_debug_registers_callback): Rename
6299 (update_debug_registers): ... this, return void, remove pid_p arg.
6300 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6302 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6304 * inferiors.h (struct process_info): Add constructor, initialize
6306 <syscalls_to_catch>: Change type to std::vector<int>.
6307 * inferiors.c (add_process): Allocate process_info with new.
6308 (remove_process): Free process_info with delete.
6309 * linux-low.c (handle_extended_wait): Adjust.
6310 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6311 * server.c (handle_general_set): Adjust.
6313 2017-11-16 Pedro Alves <palves@redhat.com>
6315 * remote-utils.c (remote_close): Block SIGIO signals instead of
6316 uninstalling the SIGIO handler.
6318 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6320 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6322 2017-11-16 Yao Qi <yao.qi@linaro.org>
6324 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6325 (tic6x_store_gregset): Likewise.
6326 (tic6x_usrregs_info): Move it up.
6328 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6330 * Makefile.in: Update arch rules.
6331 * configure.srv: Explicitly mark arch/ files.
6333 2017-11-13 Andreas Schwab <schwab@suse.de>
6335 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6337 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6339 2017-11-06 Pedro Alves <palves@redhat.com>
6341 * config.in, configure: Regenerate.
6343 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6345 * target.c (struct thread_search): Remove.
6346 (thread_search_callback): Remove.
6347 (prepare_to_access_memory): Use for_each_thread instead of
6348 find_inferior. Inline code from thread_search_callback.
6350 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6352 * server.c (struct visit_actioned_threads_data): Remove.
6353 (visit_actioned_threads): Change prototype to take arguments
6355 (resume): Use find_thread instead of find_inferior.
6357 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6359 * server.c (queue_stop_reply_callback): Change prototype, return
6361 (find_status_pending_thread_callback): Remove.
6362 (handle_status): Replace find_inferior with find_thread and
6365 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6367 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6369 (aarch64_store_gregset): Likewise.
6370 (aarch64_fill_fpregset): Likewise.
6371 (aarch64_store_fpregset): Likewise.
6373 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6375 * gdbthread.h (find_thread, for_each_thread): New functions.
6376 * inferiors.c (thread_of_pid): Remove.
6377 (find_any_thread_of_pid): Use find_thread.
6378 * linux-low.c (num_lwps): Use for_each_thread.
6380 2017-10-17 Yao Qi <yao.qi@linaro.org>
6382 * Makefile.in: Remove one rule.
6383 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6385 2017-10-17 Yao Qi <yao.qi@linaro.org>
6387 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6388 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6390 2017-10-17 Yao Qi <yao.qi@linaro.org>
6392 * configure.srv: Rename arm.o with arch/arm.o.
6394 2017-10-17 Yao Qi <yao.qi@linaro.org>
6396 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6397 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6398 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6399 (arch-i386.o, arch-amd64.o): Remove rules.
6400 (arch/%.o): New rule.
6401 Update POSTCOMPILE and COMPILE.pre.
6402 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6403 * configure: Re-generated.
6404 * configure.srv: Replace arch-i386.o with arch/i386.o.
6405 Replace arch-amd64.o with arch/amd64.o.
6407 2017-10-16 Yao Qi <yao.qi@linaro.org>
6409 * configure: Regenerated.
6411 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6413 * inferiors.h: (struct inferior_list): Remove.
6414 (struct inferior_list_entry); Remove.
6415 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6416 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6417 get_first_inferior): Remove.
6418 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6419 find_inferior_id, find_inferior_in_random): Change signature.
6420 * inferiors.c (all_threads): Change type to
6421 std::list<thread_info *>.
6422 (get_thread): Remove macro.
6423 (find_inferior, find_inferior_id): Change signature, implement
6425 (find_inferior_in_random): Change signature, implement using
6426 find_thread_in_random.
6427 (for_each_inferior, for_each_inferior_with_data): Change
6428 signature, implement using for_each_thread.
6429 (add_inferior_to_list, remove_inferior): Remove.
6430 (add_thread, get_first_thread, thread_of_pid,
6431 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6432 (get_first_inferior, one_inferior_p, clear_inferior_list):
6434 (clear_inferiors, get_thread_process): Update.
6435 * gdbthread.h: Include <list>.
6436 (struct thread_info) <entry>: Remove field.
6438 (all_threads): Change type to std::list<thread_info *>.
6439 (get_first_inferior): Add doc.
6440 (find_thread, for_each_thread, find_thread_in_random): New
6442 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6443 * linux-arm-low.c (update_registers_callback): Update.
6444 * linux-low.c (second_thread_of_pid_p): Update.
6445 (kill_one_lwp_callback, linux_detach_lwp_callback,
6446 delete_lwp_callback, status_pending_p_callback, same_lwp,
6447 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6448 iterate_over_lwps, not_stopped_callback,
6449 resume_stopped_resumed_lwps, count_events_callback,
6450 select_singlestep_lwp_callback, select_event_lwp_callback,
6451 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6452 suspend_and_send_sigstop_callback, wait_for_sigstop,
6453 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6454 lwp_running, linux_set_resume_request, resume_status_pending_p,
6455 need_step_over_p, start_step_over, linux_resume_one_thread,
6456 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6457 reset_lwp_ptrace_options_callback): Update.
6458 * linux-mips-low.c (update_watch_registers_callback): Update.
6459 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6461 (free_register_cache_thread_one): Remove.
6462 (regcache_release): Update.
6463 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6464 handle_qxfer_threads_worker): Update.
6465 (handle_query): Update, use list iterator.
6466 (visit_actioned_threads, handle_pending_status,
6467 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6468 clear_pending_status_callback, set_pending_status_callback,
6469 find_status_pending_thread_callback, handle_status,
6470 process_serial_event): Update.
6471 * target.c (thread_search_callback): Update.
6472 * thread-db.c (thread_db_get_tls_address): Update.
6473 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6475 * win32-i386-low.c (update_debug_registers_callback): Update.
6476 * win32-low.c (delete_thread_info, child_delete_thread,
6477 continue_one_thread, suspend_one_thread,
6478 get_child_debug_event): Adjust.
6480 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6482 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6483 * inferiors.h: Include <list>.
6484 (struct process_info) <entry>: Remove field.
6486 (pid_of): Change macro to function.
6487 (ptid_of, lwpid_of): Remove macro.
6488 (all_processes): Change type to std::list<process_info *>.
6489 (ALL_PROCESSES): Remove macro.
6490 (for_each_process, find_process): New function.
6491 * inferiors.c (all_processes): Change type to
6492 std::list<process_info *>.
6493 (find_thread_process): Adjust.
6494 (add_process): Likewise.
6495 (remove_process): Likewise.
6496 (find_process_pid): Likewise.
6497 (get_first_process): Likewise.
6498 (started_inferior_callback): Remove.
6499 (have_started_inferiors_p): Adjust.
6500 (attached_inferior_callback): Remove.
6501 (have_attached_inferiors_p): Adjust.
6502 * linux-low.c (check_zombie_leaders): Likewise.
6503 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6504 (x86_linux_update_xmltarget): Adjust.
6505 * server.c (handle_query): Likewise.
6506 (gdb_reattached_process): Remove.
6507 (handle_status): Adjust.
6508 (kill_inferior_callback): Likewise.
6509 (detach_or_kill_inferior): Remove.
6510 (print_started_pid): Likewise.
6511 (print_attached_pid): Likewise.
6512 (detach_or_kill_for_exit): Update.
6513 (process_serial_event): Likewise.
6514 * linux-arm-low.c (arm_new_fork): Likewise.
6516 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6518 * dll.h: Include <list>.
6519 (struct dll_info): Add constructor.
6520 <entry>: Remove field.
6521 (all_dlls): Change type to std::list<dll_info>.
6522 * dll.c: Include <algorithm>.
6523 (get_dll): Remove macro.
6524 (all_dlls): Change type to std::list<dll_info *>.
6525 (free_one_dll): Remove.
6526 (match_dll): Likewise.
6527 (loaded_dll): Adjust.
6528 (unloaded_dll): Adjust to all_dlls type change, use
6529 std::find_if. Inline code from match_dll.
6530 (clear_dlls): Adjust to all_dlls type change.
6531 * server.c (emit_dll_description): Remove.
6532 (handle_qxfer_libraries): Adjust to all_dlls type change,
6533 integrate emit_dll_description's functionality.
6535 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6537 * linux-low.h (struct linux_target_ops) <delete_process>: New
6539 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6540 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6541 (struct linux_target_ops): Add delete_process callback.
6542 * linux-arm-low.c (arm_delete_process): New.
6543 (struct linux_target_ops): Add delete_process callback.
6544 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6545 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6546 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6547 * linux-mips-low.c (mips_linux_delete_process): New.
6548 (struct linux_target_ops): Add delete_process callback.
6549 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6550 * linux-s390-low.c (struct linux_target_ops): Likewise.
6551 * linux-sh-low.c (struct linux_target_ops): Likewise.
6552 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6553 * linux-tile-low.c (struct linux_target_ops): Likewise.
6554 * linux-x86-low.c (x86_linux_delete_process): New.
6555 (struct linux_target_ops): Add delete_process callback.
6556 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6558 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6560 * linux-aarch64-low.c (the_low_target): Add thread delete
6562 * linux-arm-low.c (arm_delete_thread): New function.
6563 (the_low_target): Add thread delete callback.
6564 * linux-bfin-low.c (the_low_target): Likewise.
6565 * linux-crisv32-low.c (the_low_target): Likewise.
6566 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6568 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6570 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6571 * linux-mips-low.c (mips_linux_delete_thread): New function.
6572 (the_low_target): Add thread delete callback.
6573 * linux-ppc-low.c (the_low_target): Likewise.
6574 * linux-s390-low.c (the_low_target): Likewise.
6575 * linux-sh-low.c (the_low_target): Likewise.
6576 * linux-tic6x-low.c (the_low_target): Likewise.
6577 * linux-tile-low.c (the_low_target): Likewise.
6578 * linux-x86-low.c (the_low_target): Likewise.
6579 * linux-xtensa-low.c (the_low_target): Likewise.
6581 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6583 * win32-low.c: Include "common-inferior.h".
6585 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6587 * inferiors.c (set_inferior_cwd): New function.
6588 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6589 (handle_query): Inform that QSetWorkingDir is supported.
6590 * win32-low.c (create_process): Pass the inferior's cwd to
6593 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6595 * inferiors.c (current_inferior_cwd): New global variable.
6596 (get_inferior_cwd): New function.
6597 * inferiors.h (struct process_info) <cwd>: New field.
6599 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6601 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6602 (OBS): Add gdb_tilde_expand.o.
6604 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6606 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6607 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6609 2017-09-29 Pedro Alves <palves@redhat.com>
6611 * ax.c (gdb_parse_agent_expr): Constify.
6612 * ax.h (gdb_parse_agent_expr): Constify.
6613 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6615 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6616 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6617 * remote-utils.h (read_ptid): Constify.
6618 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6619 (process_point_options, process_serial_event): Constify.
6620 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6621 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6622 (cmd_qtbuffer): Constify.
6624 2017-09-29 Pedro Alves <palves@redhat.com>
6626 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6629 2017-09-29 Pedro Alves <palves@redhat.com>
6631 * linux-low.c (handle_extended_wait): Pass parent thread instead
6632 of process to thread_db_notice_clone.
6633 * linux-low.h (thread_db_notice_clone): Replace parent process
6634 parameter with parent thread parameter.
6635 * thread-db.c (find_one_thread): Add comment.
6636 (thread_db_notice_clone): Replace parent process parameter with
6637 parent thread parameter. Temporarily switch to the parent thread.
6639 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6641 * gdbthread.h: Include "common-gdbthread.h".
6642 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6643 "if" when validating the ptid.
6644 * remote-utils.c: Include "gdbthread.h".
6645 (prepare_resume_reply): Use "switch_to_thread".
6646 * target.c (done_accessing_memory): Likewise.
6648 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6650 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6651 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6652 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6653 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6654 s390x-gs-linux64-ipa.o to ipa_obj.
6655 * linux-s390-low.c (HWCAP_S390_GS): New define.
6656 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6658 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6659 (s390_arch_setup): Check for guarded-storage support and choose
6661 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6662 init_registers_s390x_gs_linux64.
6663 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6665 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6666 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6668 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6670 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6672 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6674 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6675 (thread_db_thread_handle): Declare.
6676 * linux-low.c (linux_target_ops): Initialize thread_handle.
6677 * server.c (handle_qxfer_threads_worker): Add support for
6679 * target.h (struct target_ops): Add new function pointer,
6681 (target_thread_handle): Define.
6682 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6684 (thread_db_thread_handle): New function.
6686 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6688 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6689 * linux-low.h (thread_db_notice_clone): Declare.
6690 * thread-db.c (thread_db_notice_clone): New function.
6692 2017-09-21 Pedro Alves <palves@redhat.com>
6694 * server.c (gdb_read_memory, handle_status, process_serial_event)
6695 (handle_serial_event, handle_target_event): Adjust to
6696 set_desired_thread prototype change.
6697 * target.c (set_desired_thread): Remove 'use_general' parameter
6699 * target.h (set_desired_thread): Remove 'use_general' parameter.
6701 2017-09-20 Tom Tromey <tom@tromey.com>
6703 * target.c (target_terminal::terminal_state): Define.
6704 (target_terminal::init): Rename from target_terminal_init.
6705 (target_terminal::inferior): Rename from
6706 target_terminal_inferior.
6707 (target_terminal::ours): Rename from target_terminal_ours.
6708 (target_terminal::ours_for_output, target_terminal::info): New.
6710 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6712 * server.c (accumulate_file_name_length): Remove.
6713 (emit_dll_description): Adjust to std::string change.
6714 (handle_qxfer_libraries): Use std::string to hold document.
6716 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6718 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6719 return type of xml_escape_text.
6720 * server.c (emit_dll_description): Likewise.
6722 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6724 * server.c (captured_main): Accept argument for --selftest.
6725 Update run_tests call.
6726 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6727 when registering selftests.
6729 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6731 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6732 instead of "VEC" for "target_desc.reg_defs".
6733 (regcache_cpy): Likewise.
6734 (registers_to_string): Likewise.
6735 (registers_from_string): Likewise.
6736 (find_regno): Likewise.
6737 (supply_regblock): Likewise.
6738 (regcache_raw_read_unsigned): Likewise.
6739 * tdesc.c (init_target_desc): Likewise.
6740 (tdesc_create_reg): Likewise.
6741 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6742 (struct target_desc) <reg_defs>: Convert to "std::vector".
6743 (target_desc): Do not initialize "reg_defs".
6744 (~target_desc): Update code to use "std::vector" instead of "VEC"
6745 for "target_desc.reg_defs".
6746 (operator==): Likewise.
6748 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6750 * inferiors.h (thread_to_gdb_id): Remove.
6751 * inferiors.c (thread_to_gdb_id): Remove.
6752 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6753 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6754 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6756 * nto-low.c (nto_fetch_registers, nto_store_registers,
6757 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6759 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6761 * inferiors.h (gdb_id_to_thread_id): Remove.
6762 * inferiors.c (gdb_id_to_thread_id): Remove.
6763 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6764 removal. Move pid declaration closer to where it's used.
6766 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6768 * server.c (handle_detach): New function.
6769 (process_serial_event): Move code out, call handle_detach.
6771 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6773 * server.c (require_running): Rename to ...
6774 (require_running_or_return): ... this ...
6775 (require_running_or_break): ... and this.
6776 (handle_query, process_serial_event): Adjust.
6778 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6780 * linux-low.c (linux_set_resume_request): Remove unused
6783 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6785 * server.c (first_thread_of): Remove.
6786 (process_serial_event): Replace usage of first_thread_of with
6787 find_any_thread_of_pid.
6788 * tracepoint.c (same_process_p): Remove.
6789 (gdb_agent_about_to_close): Replace usage of same_process_p with
6790 find_any_thread_of_pid.
6791 * linux-x86-low.c (same_process_callback): Remove.
6792 (x86_arch_setup_process_callback): Replace usage of
6793 same_process_callback with find_any_thread_of_pid.
6794 * thread-db.c (any_thread_of): Remove.
6795 (switch_to_process): Replace usage of any_thread_of with
6796 find_any_thread_of_pid.
6797 * inferiors.c (thread_pid_matches_callback): Remove.
6798 (find_thread_process): Adjust to use find_any_thread_of_pid.
6800 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6802 * regcache.c (get_thread_regcache): Guard calls to "memset"
6805 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6807 * linux-low.c (handle_extended_wait): Use
6808 "allocate_target_description" instead of "XNEW".
6809 * linux-x86-low.c (initialize_low_arch): Likewise.
6811 2017-09-05 Yao Qi <yao.qi@linaro.org>
6813 * configure.srv (srv_i386_regobj): Remove.
6814 (srv_amd64_regobj): Remove.
6815 (srv_regobj): Set it to "" for x86 non-linux targets.
6816 * linux-x86-tdesc.c (i386_linux_read_description):
6817 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6818 (init_registers_i386): Remove the declaration.
6819 (tdesc_i386): Remove the declaration.
6820 (lynx_i386_arch_setup): Call i386_create_target_description.
6821 * nto-x86-low.c: Likewise.
6822 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6823 [!__x86_64__]: include arch/i386.h.
6824 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6826 2017-09-05 Yao Qi <yao.qi@linaro.org>
6828 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6829 i386/amd64-XXX-linux from it.
6831 2017-09-05 Yao Qi <yao.qi@linaro.org>
6833 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6835 (ipa_amd64_linux_regobj): Remove.
6836 (ipa_x32_linux_regobj): Remove.
6838 2017-09-05 Yao Qi <yao.qi@linaro.org>
6840 * Makefile.in (arch-amd64.o): New rule.
6841 * configure.srv: Append arch-amd64.o.
6842 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6843 (get_ipa_tdesc): Call amd64_linux_read_description.
6844 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6845 and init_registers_amd64_XXX.
6846 * linux-x86-low.c (x86_linux_read_description): Call
6847 amd64_linux_read_description.
6848 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6849 (initialize_low_arch): Don't call init_registers_x32_XXX and
6850 init_registers_amd64_XXX.
6851 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6852 and tdesc_amd64_XXX.
6853 [__x86_64__] (amd64_tdesc_test): New function.
6854 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6855 and init_registers_amd64_XXX.
6856 * linux-x86-tdesc.c: Include arch/amd64.h.
6857 (xcr0_to_tdesc_idx): New function.
6858 (i386_linux_read_description): New function.
6859 (amd64_get_ipa_tdesc_idx): New function.
6860 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6861 (amd64_get_ipa_tdesc): Declare.
6863 2017-09-05 Yao Qi <yao.qi@linaro.org>
6865 * configure.srv (srv_i386_linux_xmlfiles): Remove
6866 i386/i386-XXX-linux.xml from it.
6868 2017-09-05 Yao Qi <yao.qi@linaro.org>
6870 * configure.srv: Set srv_i386_linux_regobj empty if $development
6872 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6873 initialize_low_tdesc.
6874 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6875 with #if initialize_low_tdesc.
6876 * linux-x86-tdesc-selftest.c: New file.
6877 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6879 2017-09-05 Yao Qi <yao.qi@linaro.org>
6881 * Makefile.in (arch-i386.o): New rule.
6882 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6883 (x86_64-*-linux*): Likewise.
6884 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6885 include arch/i386.h.
6886 (i386_linux_read_description): Remove code and call
6887 i386_create_target_description.
6888 * tdesc.c (allocate_target_description): New function.
6889 * tdesc.h (set_tdesc_architecture): Remove declaration.
6890 (set_tdesc_osabi): Likewise.
6892 2017-09-05 Yao Qi <yao.qi@linaro.org>
6894 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6895 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6896 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6898 * server.c (get_features_xml): Call tdesc_get_features_xml.
6899 * tdesc.c (set_tdesc_architecture): New function.
6900 (set_tdesc_osabi): New function.
6901 (tdesc_get_features_xml): New function.
6902 (tdesc_create_feature): Add an argument.
6903 * tdesc.h (struct target_desc) <features>: New field.
6904 <arch, osabi>: New field.
6905 (~target_desc): xfree features, arch, and osabi.
6906 (target_desc::oerator==): Don't compare .xmltarget.
6907 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6908 (set_tdesc_osabi): Likewise.
6909 (tdesc_get_features_xml): Likewise.
6911 2017-09-05 Yao Qi <yao.qi@linaro.org>
6913 * linux-x86-tdesc.c: Include selftest.h.
6914 (i386_tdesc_test): New function.
6915 (initialize_low_tdesc): Call selftests::register_test.
6916 * tdesc.h: Include regdef.h.
6917 (target_desc): Override operator == and !=.
6919 2017-09-05 Yao Qi <yao.qi@linaro.org>
6921 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6922 (ipa_obj): Likewise.
6923 * linux-i386-ipa.c: Include common/x86-xstate.h
6924 (get_ipa_tdesc): Call i386_linux_read_description.
6925 (initialize_low_tracepoint): Don't call init_registers_XXX
6926 functions, call initialize_low_tdesc instead.
6927 * linux-x86-low.c (x86_linux_read_description): Call
6928 i386_linux_read_description.
6929 (initialize_low_arch): Don't call init_registers_i386_XXX
6930 functions, call initialize_low_tdesc.
6931 * linux-x86-tdesc.c: New file.
6932 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6933 (i386_get_ipa_tdesc_idx): Declare.
6934 (i386_get_ipa_tdesc): Declare.
6935 (initialize_low_tdesc): Declare.
6937 2017-09-05 Yao Qi <yao.qi@linaro.org>
6939 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6942 2017-09-05 Yao Qi <yao.qi@linaro.org>
6944 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6945 * regcache.c (get_thread_regcache): Use VEC_length.
6946 (init_register_cache): Likewise.
6947 (regcache_cpy): Likewise.
6948 (registers_to_string): Iterate reg_defs via VEC_iterate.
6949 (find_regno): Likewise.
6950 (find_register_by_number): Use VEC_index.
6951 (register_size): Call find_register_by_number.
6952 (register_data): Call find_register_by_number.
6953 (supply_regblock): Use VEC_length.
6954 (regcache_raw_read_unsigned): Likewise.
6955 * tdesc.c (init_target_desc): Iterate reg_defs via
6957 (default_description): Update initializer.
6958 (copy_target_description): Don't update field num_registers.
6959 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6960 <num_registers>: Remove.
6962 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6964 * Makefile.in (.SECONDARY): Define target.
6966 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6968 * linux-low.c (linux_wait_1): Adjust.
6969 * server.c (queue_stop_reply_callback): Adjust.
6971 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6973 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6974 QEnvironmentUnset and QEnvironmentReset packets.
6975 (handle_query): Inform remote that QEnvironmentHexEncoded,
6976 QEnvironmentUnset and QEnvironmentReset are supported.
6978 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6980 * inferiors.h (inferior_target_data): Rename to ...
6981 (thread_target_data): ... this.
6982 (inferior_regcache_data): Rename to ...
6983 (thread_regcache_data): ... this.
6984 (set_inferior_regcache_data): Rename to ...
6985 (set_thread_regcache_data): ... this.
6986 * inferiors.c (inferior_target_data): Rename to ...
6987 (thread_target_data): ... this.
6988 (inferior_regcache_data): Rename to ...
6989 (thread_regcache_data): ... this.
6990 (set_inferior_regcache_data): Rename to ...
6991 (set_thread_regcache_data): ... this.
6992 (free_one_thread): Update.
6993 * linux-low.h (get_thread_lwp): Update.
6994 * regcache.c (get_thread_regcache): Update.
6995 (regcache_invalidate_thread): Update.
6996 (free_register_cache_thread): Update.
6997 * win32-i386-low.c (update_debug_registers_callback): Update.
6998 (win32_get_current_dr): Update.
6999 * win32-low.c (thread_rec): Update.
7000 (delete_thread_info): Update.
7001 (continue_one_thread): Update.
7002 (suspend_one_thread): Update.
7004 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7006 * inferiors.c (set_inferior_target_data): Remove.
7007 * inferiors.h (set_inferior_target_data): Remove.
7009 2017-08-18 Yao Qi <yao.qi@linaro.org>
7011 * Makefile.in (OBS): Add selftest.o.
7012 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7013 * configure, config.in: Re-generated.
7014 * server.c: Include common/sefltest.h.
7015 (captured_main): Handle option --selftest.
7017 2017-08-09 Yao Qi <yao.qi@linaro.org>
7019 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7020 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7021 i386-avx-mpx.o and i386-mmx.o.
7022 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7023 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7024 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7025 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7026 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7027 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7028 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7029 i386/amd64-avx-mpx.xml.
7031 2017-08-09 Yao Qi <yao.qi@linaro.org>
7033 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7034 and x32-avx-avx512.o.
7035 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7036 i386/x32-avx-avx512.xml.
7038 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7040 * tracepoint.h (enum class fast_tpoint_collect_result): New
7042 (fast_tracepoint_collecting): Change return type to
7043 fast_tpoint_collect_result.
7044 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7045 * linux-low.h: Include tracepoint.h.
7046 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7047 fast_tpoint_collect_result.
7048 * linux-low.c (handle_tracepoints): Adjust.
7049 (linux_fast_tracepoint_collecting): Change return type to
7050 fast_tpoint_collect_result.
7051 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7052 linux_wait_1, stuck_in_jump_pad_callback,
7053 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7054 proceed_one_lwp): Adjust to type change.
7056 2017-07-10 Yao Qi <yao.qi@linaro.org>
7058 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7060 2017-06-29 Yao Qi <yao.qi@linaro.org>
7062 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7064 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7066 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7068 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7070 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7072 * linux-low.c (linux_create_inferior): Adjust code to access the
7073 environment information via 'gdb_environ' class.
7074 * lynx-low.c (lynx_create_inferior): Likewise.
7075 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7076 (get_environ): Return a pointer to 'our_environ'.
7077 (captured_main): Initialize 'our_environ'.
7078 * server.h (get_environ): Adjust prototype.
7079 * spu-low.c (spu_create_inferior): Adjust code to access the
7080 environment information via 'gdb_environ' class.
7082 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7084 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7085 usage of "register" keyword.
7087 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7089 * configure: Re-generate.
7091 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7093 * configure: Re-generate.
7095 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7097 * Makefile.in (COMPILE.pre): Add "-x c++".
7099 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7101 * fork-child.c: Conditionally include <signal.h>.
7103 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7105 * server.c (handle_general_set): Handle new packet
7106 "QStartupWithShell".
7107 (handle_query): Add "QStartupWithShell" to the list of supported
7109 (gdbserver_usage): Add help text explaining the
7110 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7112 (captured_main): Recognize and act upon the presence of the new
7115 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7116 Pedro Alves <palves@redhat.com>
7118 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7119 * configure: Regenerate.
7120 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7122 (i[34567]86-*-lynxos*): Likewise.
7123 (spu*-*-*): Likewise.
7124 * fork-child.c: New file.
7125 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7127 (linux_ptrace_fun): New function.
7128 (linux_create_inferior): Adjust function prototype to reflect
7129 change on "target.h". Adjust function code to use
7131 (linux_request_interrupt): Delete "signal_pid".
7132 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7133 (lynx_ptrace_fun): New function.
7134 (lynx_create_inferior): Adjust function prototype to reflect
7135 change on "target.h". Adjust function code to use
7137 * nto-low.c (nto_create_inferior): Adjust function prototype and
7138 code to reflect change on "target.h". Update comments.
7139 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7140 "common-terminal.h" and "environ.h".
7141 (terminal_fd): Moved to fork-child.c.
7142 (old_foreground_pgrp): Likewise.
7143 (restore_old_foreground_pgrp): Likewise.
7144 (last_status): Make it global.
7145 (last_ptid): Likewise.
7146 (our_environ): New variable.
7147 (startup_with_shell): Likewise.
7148 (program_name): Likewise.
7149 (program_argv): Rename to...
7150 (program_args): ...this.
7151 (wrapper_argv): New variable.
7152 (start_inferior): Delete function.
7153 (get_exec_wrapper): New function.
7154 (get_exec_file): Likewise.
7155 (get_environ): Likewise.
7156 (prefork_hook): Likewise.
7157 (post_fork_inferior): Likewise.
7158 (postfork_hook): Likewise.
7159 (postfork_child_hook): Likewise.
7160 (handle_v_run): Update code to deal with arguments coming from the
7161 remote host. Update calls from "start_inferior" to
7163 (captured_main): Likewise. Initialize environment variable. Call
7165 * server.h (post_fork_inferior): New prototype.
7166 (get_environ): Likewise.
7167 (last_status): Declare.
7168 (last_ptid): Likewise.
7169 (signal_pid): Likewise.
7170 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7171 (spu_ptrace_fun): New function.
7172 (spu_create_inferior): Adjust function prototype to reflect change
7173 on "target.h". Adjust function code to use "fork_inferior".
7174 * target.c (target_terminal_init): New function.
7175 (target_terminal_inferior): Likewise.
7176 (target_terminal_ours): Likewise.
7177 * target.h: Include <vector>.
7178 (struct target_ops) <create_inferior>: Update prototype.
7179 (create_inferior): Update macro.
7180 * utils.c (gdb_flush_out_err): New function.
7181 * win32-low.c (win32_create_inferior): Adjust function prototype
7182 and code to reflect change on "target.h".
7184 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7186 * inferiors.c (switch_to_thread): New function.
7188 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7190 * Makefile.in (SFILE): Add "common/job-control.c".
7191 (OBS): Add "job-control.o".
7193 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7195 * Makefile: Remove "@host_makefile_frag@".
7197 2017-05-05 Pedro Alves <palves@redhat.com>
7199 * configure: Regenerate.
7201 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7203 * configure: Regenerate.
7205 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7207 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7208 software_single_step change of return type to
7209 std::vector<CORE_ADDR>.
7210 * linux-low.c (install_software_single_step_breakpoints):
7212 * linux-low.h (install_software_single_step_breakpoints):
7215 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7217 * remote-utils.c: Include "gdb_termios.h" instead of
7219 * terminal.h: Delete file.
7221 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7223 * server.c: Include <vector>.
7224 <program_argv, wrapper_argv>: Convert to std::vector.
7225 (start_inferior): Rewrite function to use C++.
7226 (handle_v_run): Likewise. Update code that calculates the argv
7227 based on the vRun packet; use C++.
7228 (captured_main): Likewise.
7230 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7232 * server.c (handle_v_cont): Initialize thread_resume::thread
7235 2017-04-05 Pedro Alves <palves@redhat.com>
7237 * configure: Regenerate.
7239 2017-04-05 Pedro Alves <palves@redhat.com>
7241 * gdbreplay.c (sync_error): Constify.
7242 * linux-x86-low.c (push_opcode): Constify.
7244 2017-04-05 Pedro Alves <palves@redhat.com>
7246 * win32-low.c (get_child_debug_event)
7247 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7248 Report TARGET_WAITKIND_SPURIOUS instead.
7250 2017-04-05 Pedro Alves <palves@redhat.com>
7252 * remote-utils.c (remote_prepare, remote_open): Constify.
7253 * remote-utils.h (remote_prepare, remote_open): Constify.
7254 * server.c (captured_main): Constify 'port' handling.
7256 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7258 * Makefile.in (clean): Clear .deps.
7260 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7262 * .gitignore: Remove generated files, replace with wildcard.
7263 * (clean): Replace removal of generated files with wildcard.
7264 (version.c): Replace with...
7265 (version-generated.c): ...this.
7266 (xml-builtin.c): Replace with...
7267 (xml-builtin-generated.c): ...this.
7268 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7269 (%.c: *regformats*): Replace with...
7270 (%-generated.c: *regformats*): ...this.
7272 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7274 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7275 (xtensa_fill_gregset): Call collect_register_by_name for
7277 (xtensa_store_gregset): Call supply_register_by_name for
7280 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7282 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7283 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7284 (xtensa_store_gregset): Call supply_register for all registers in
7285 a0_regnum..a0_regnum + C0_NREGS range.
7287 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7289 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7290 (ax-ipa.o: ax.c): Remove.
7291 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7292 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7293 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7294 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7295 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7297 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7299 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7300 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7301 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7302 (errors-ipa.o: ../common/errors.c): Remove.
7303 (format-ipa.o: ../common/format.c): Remove.
7304 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7306 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7308 * Makefile.in (%-ipa.o: %.c): New rule.
7309 (tracepoint-ipa.o: tracepoint.c): Remove.
7310 (utils-ipa.o: utils.c): Remove.
7311 (remote-utils-ipa.o: remote-utils.c): Remove.
7312 (regcache-ipa.o: regcache.c): Remove.
7313 (i386-linux-ipa.o: i386-linux.c): Remove.
7314 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7315 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7316 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7317 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7318 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7319 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7320 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7321 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7322 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7323 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7324 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7325 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7326 (aarch64-ipa.o: aarch64.c): Remove.
7327 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7328 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7329 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7330 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7331 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7332 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7333 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7334 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7335 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7336 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7337 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7338 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7339 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7340 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7341 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7342 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7343 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7344 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7345 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7346 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7347 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7348 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7349 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7350 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7351 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7352 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7353 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7354 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7355 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7356 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7357 (tdesc-ipa.o: tdesc.c): Remove.
7358 (x32-linux-ipa.o: x32-linux.c): Remove.
7359 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7360 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7362 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7364 * Makefile.in (%.o: ../arch/%.c): New rule.
7365 (arm.o: ../arch/arm.c): Remove.
7366 (arm-linux.o: ../arch/arm-linux.c): Remove.
7367 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7368 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7370 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7372 * Makefile.in (%.o: ../nat/%.c): New rule.
7373 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7374 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7375 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7376 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7377 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7378 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7379 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7380 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7381 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7382 (linux-personality.o: ../nat/linux-personality.c): Remove.
7383 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7384 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7385 (x86-linux.o: ../nat/x86-linux.c): Remove.
7386 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7387 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7389 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7391 * Makefile.in (%.o: ../common/%.c): New rule.
7392 (signals.o: ../common/signals.c): Remove.
7393 (print-utils.o: ../common/print-utils.c): Remove.
7394 (rsp-low.o: ../common/rsp-low.c): Remove.
7395 (common-utils.o: ../common/common-utils.c): Remove.
7396 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7397 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7398 (vec.o: ../common/vec.c): Remove.
7399 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7400 (xml-utils.o: ../common/xml-utils.c): Remove.
7401 (ptid.o: ../common/ptid.c): Remove.
7402 (buffer.o: ../common/buffer.c): Remove.
7403 (format.o: ../common/format.c): Remove.
7404 (filestuff.o: ../common/filestuff.c): Remove.
7405 (agent.o: ../common/agent.c): Remove.
7406 (errors.o: ../common/errors.c): Remove.
7407 (environ.o: ../common/environ.c): Remove.
7408 (common-debug.o: ../common/common-debug.c): Remove.
7409 (cleanups.o: ../common/cleanups.c): Remove.
7410 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7411 (fileio.o: ../common/fileio.c): Remove.
7412 (common-regcache.o: ../common/common-regcache.c): Remove.
7413 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7414 (new-op.o: ../common/new-op.c): Remove.
7415 (btrace-common.o: ../common/btrace-common.c): Remove.
7417 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7419 * Makefile.in (%.o: ../target/%.c): New rule.
7420 (waitstatus.o: ../target/waitstatus.c): Remove.
7422 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7425 (%.c: ../regformats/%.dat,
7426 (%.c: ../regformats/arm/%.dat,
7427 (%.c: ../regformats/i386/%.dat,
7428 (%.c: ../regformats/rs6000/%.dat): New rules.
7429 (aarch64.c): Remove.
7430 (reg-arm.c): Remove.
7431 (arm-with-iwmmxt.c): Remove.
7432 (arm-with-vfpv2.c): Remove.
7433 (arm-with-vfpv3.c): Remove.
7434 (arm-with-neon.c): Remove.
7435 (reg-bfin.c): Remove.
7436 (reg-cris.c): Remove.
7437 (reg-crisv32.c): Remove.
7439 (i386-linux.c): Remove.
7440 (i386-avx.c): Remove.
7441 (i386-avx-linux.c): Remove.
7442 (i386-avx-avx512.c): Remove.
7443 (i386-avx-avx512-linux.c): Remove.
7444 (i386-mpx.c): Remove.
7445 (i386-mpx-linux.c): Remove.
7446 (i386-avx-mpx-avx512-pku.c): Remove.
7447 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7448 (i386-avx-mpx.c): Remove.
7449 (i386-avx-mpx-linux.c): Remove.
7450 (i386-mmx.c): Remove.
7451 (i386-mmx-linux.c): Remove.
7452 (reg-ia64.c): Remove.
7453 (reg-m32r.c): Remove.
7454 (reg-m68k.c): Remove.
7456 (mips-linux.c): Remove.
7457 (mips-dsp-linux.c): Remove.
7458 (mips64-linux.c): Remove.
7459 (mips64-dsp-linux.c): Remove.
7460 (nios2-linux.c): Remove.
7461 (powerpc-32.c): Remove.
7462 (powerpc-32l.c): Remove.
7463 (powerpc-altivec32l.c): Remove.
7464 (powerpc-cell32l.c): Remove.
7465 (powerpc-vsx32l.c): Remove.
7466 (powerpc-isa205-32l.c): Remove.
7467 (powerpc-isa205-altivec32l.c): Remove.
7468 (powerpc-isa205-vsx32l.c): Remove.
7469 (powerpc-e500l.c): Remove.
7470 (powerpc-64l.c): Remove.
7471 (powerpc-altivec64l.c): Remove.
7472 (powerpc-cell64l.c): Remove.
7473 (powerpc-vsx64l.c): Remove.
7474 (powerpc-isa205-64l.c): Remove.
7475 (powerpc-isa205-altivec64l.c): Remove.
7476 (powerpc-isa205-vsx64l.c): Remove.
7477 (s390-linux32.c): Remove.
7478 (s390-linux32v1.c): Remove.
7479 (s390-linux32v2.c): Remove.
7480 (s390-linux64.c): Remove.
7481 (s390-linux64v1.c): Remove.
7482 (s390-linux64v2.c): Remove.
7483 (s390-te-linux64.c): Remove.
7484 (s390-vx-linux64.c): Remove.
7485 (s390-tevx-linux64.c): Remove.
7486 (s390x-linux64.c): Remove.
7487 (s390x-linux64v1.c): Remove.
7488 (s390x-linux64v2.c): Remove.
7489 (s390x-te-linux64.c): Remove.
7490 (s390x-vx-linux64.c): Remove.
7491 (s390x-tevx-linux64.c): Remove.
7492 (tic6x-c64xp-linux.c): Remove.
7493 (tic6x-c64x-linux.c): Remove.
7494 (tic6x-c62x-linux.c): Remove.
7496 (reg-sparc64.c): Remove.
7497 (reg-spu.c): Remove.
7499 (amd64-linux.c): Remove.
7500 (amd64-avx.c): Remove.
7501 (amd64-avx-linux.c): Remove.
7502 (amd64-avx-avx512.c): Remove.
7503 (amd64-avx-avx512-linux.c): Remove.
7504 (amd64-mpx.c): Remove.
7505 (amd64-mpx-linux.c): Remove.
7506 (amd64-avx-mpx-avx512-pku.c): Remove.
7507 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7508 (amd64-avx-mpx.c): Remove.
7509 (amd64-avx-mpx-linux.c): Remove.
7511 (x32-linux.c): Remove.
7512 (x32-avx.c): Remove.
7513 (x32-avx-linux.c): Remove.
7514 (x32-avx-avx512.c): Remove.
7515 (x32-avx-avx512-linux.c): Remove.
7516 (reg-xtensa.c): Remove.
7517 (reg-tilegx.c): Remove.
7518 (reg-tilegx32.c): Remove.
7520 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7522 * Makefile.in (SFILES): Add "common/environ.c".
7523 (OBJS): Add "common/environ.h".
7525 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7527 * configure.ac: Check if the fs_base and gs_base members of
7528 `struct user_regs_struct' exist.
7529 * config.in: Regenerated.
7530 * configure: Likewise.
7532 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7534 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7536 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7537 (get_next_pcs_syscall_next_pc): Likewise.
7539 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7541 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7542 * nto-x86-low.c: Likewise.
7544 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7546 * Makefile.in: Include disable-implicit-rules.mk.
7548 2016-11-23 Pedro Alves <palves@redhat.com>
7550 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7551 (debug_vprintf): Use std::chrono::steady_clock instead of
7552 gettimeofday. Use '.' instead of ':'.
7553 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7554 (get_timestamp): Use std::chrono::steady_clock instead of
7557 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7559 * Makefile.in: Fix whitespace formatting.
7561 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7563 * Makefile.in (SFILES, OBS): Flatten list and order
7566 2016-11-23 Pedro Alves <palves@redhat.com>
7568 * event-loop.c (handle_file_event): Use warning.
7569 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7570 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7573 2016-11-23 Pedro Alves <palves@redhat.com>
7575 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7577 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7578 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7579 debug_printf and debug_flush for debug output.
7580 * server.c (handle_general_set): Likewise.
7581 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7584 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7586 * Makefile.in (.c.o): Replace rule with ...
7587 (%.o: %.c): ... this one.
7589 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7591 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7592 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7594 * configure.ac: Remove checks for the make program.
7595 * configure: Re-generate.
7597 2016-10-28 Pedro Alves <palves@redhat.com>
7599 * Makefile.in (CXX_DIALECT): Get from configure.
7600 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7601 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7602 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7603 * config.in: Regenerate.
7604 * configure: Regenerate.
7606 2016-10-27 Yao Qi <yao.qi@linaro.org>
7608 * linux-low.c (linux_supports_range_stepping): Return true if
7609 can_software_single_step return true.
7611 2016-10-27 Yao Qi <yao.qi@linaro.org>
7613 * inferiors.c (find_inferior_in_random): New function.
7614 * inferiors.h (find_inferior_in_random): Declare.
7615 * linux-low.c (linux_wait_for_event_filtered): Call
7616 find_inferior_in_random instead of find_inferior.
7618 2016-10-27 Yao Qi <yao.qi@linaro.org>
7620 * linux-low.c (linux_wait_1): If single-step breakpoints are
7621 inserted, remove them.
7623 2016-10-26 Pedro Alves <palves@redhat.com>
7625 * linux-low.c (handle_extended_wait): Link parent/child fork
7627 (linux_wait_1): Unlink them.
7628 (linux_set_resume_request): Ignore resume requests for
7629 already-resumed and unhandled fork child threads.
7630 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7631 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7633 (handle_v_requests) <vCont>: Don't call require_running.
7634 * server.h (in_queued_stop_replies): New declaration.
7636 2016-10-24 Yao Qi <yao.qi@linaro.org>
7639 * linux-aarch64-low.c (append_insns): Cast the return value to
7642 2016-10-10 Yao Qi <yao.qi@linaro.org>
7644 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7646 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7648 * target.c (target_supports_multi_process): New function, moved
7650 * target.h (target_supports_multi_process): ... here. Remove
7653 2016-10-05 Tom Tromey <tom@tromey.com>
7656 * tracepoint.c (handle_tracepoint_bkpts): Check
7657 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7659 2016-10-05 Yao Qi <yao.qi@linaro.org>
7661 * configure.srv: Update the path of arm-*.xml files.
7663 2016-10-05 Terry Guo <terry.guo@arm.com>
7664 Yao Qi <yao.qi@linaro.org>
7666 * Makefile.in: Adjust the path of rules.
7667 * configure.srv: Update the path of xml files.
7668 * regformats/arm-with-iwmmxt.dat: Regenerated.
7669 * regformats/arm-with-neon.dat: Likewise.
7670 * regformats/arm-with-vfpv2.dat: Likewise.
7671 * regformats/arm-with-vfpv3.dat Likewise.
7673 2016-09-30 Yao Qi <yao.qi@linaro.org>
7676 * target.c (target_stop_and_wait): Don't call
7677 target_continue_no_signal, use resume_stop instead.
7679 2016-09-26 Yao Qi <yao.qi@linaro.org>
7681 * linux-low.c (linux_wait_1): Call debug_exit.
7683 2016-09-23 Pedro Alves <palves@redhat.com>
7685 * Makefile.in (SFILES): Add common/new-op.c.
7686 (OBS): Add common/new-op.o.
7687 (new-op.o): New rule.
7689 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7691 * .gitinore: Ignore more files.
7693 2016-09-21 Yao Qi <yao.qi@linaro.org>
7695 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7698 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7700 * server.c (start_inferior): Call target_mourn_inferior instead of
7701 mourn_inferior; pass ptid_t argument to it.
7703 (handle_target_event): Likewise.
7704 * target.c (target_mourn_inferior): New function.
7705 * target.h (mourn_inferior): Delete macro.
7707 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7709 * linux-low.c (lwp_is_stepping): New function.
7711 2016-09-06 Carl Love <cel@us.ibm.com>
7713 * server.c (start_inferior): Fixed comment, requested comment change
7714 didn't get updated correctly. Removed reference to ptrace () call as
7715 it is only true on Linux systems.
7717 2016-09-06 Carl Love <cel@us.ibm.com>
7719 * server.c (start_inferior): Do not call
7720 function target_post_create_inferior () if the
7721 inferior process has already exited.
7723 2016-09-05 Pedro Alves <palves@redhat.com>
7725 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7726 (COMPILE.pre, CC_LD): Use CXX directly.
7727 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7728 * acinclude.m4: Don't include build-with-cxx.m4.
7729 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7730 * configure: Regenerate.
7732 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7735 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7736 call writing data to own_buf.
7738 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7740 * target.c (mywait): Call target_wait instead of
7742 (target_wait): New function.
7744 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7746 * server.c (start_inferior): New variable 'ptid'. Replace calls
7747 to the_target->resume by target_continue{,_no_signal}, depending
7749 * target.c (target_stop_and_wait): Call target_continue_no_signal
7750 instead of the_target->resume.
7751 (target_continue): New function.
7753 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7755 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7757 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7760 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7762 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7763 * linux-arm-low.c (ps_get_thread_area): Likewise.
7764 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7765 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7766 * linux-mips-low.c (ps_get_thread_area): Likewise.
7767 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7768 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7769 * linux-x86-low.c (ps_get_thread_area): Likewise.
7770 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7772 2016-08-19 Pedro Alves <palves@redhat.com>
7774 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7776 2016-08-19 Pedro Alves <palves@redhat.com>
7778 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7779 comment. Use memcpy instead of casting through unsigned long.
7781 2016-08-19 Pedro Alves <palves@redhat.com>
7783 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7784 allocating around 0x80000000.
7786 2016-08-19 Pedro Alves <palves@redhat.com>
7789 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7790 (x32-avx512-linux-ipa.o): New rules.
7791 * configure.ac (x86_64-*-linux*): New x32 check.
7792 * configure.srv (ipa_x32_linux_regobj): New.
7793 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7794 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7796 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7798 * configure: Regenerate.
7800 2016-08-09 Pedro Alves <palves@redhat.com>
7803 * Makefile.in (OBS): Add signals-state-save-restore.o.
7804 (signals-state-save-restore.o): New rule.
7805 * config.in: Regenerate.
7806 * configure: Regenerate.
7807 * linux-low.c: Include "signals-state-save-restore.h".
7808 (linux_create_inferior): Call
7809 restore_original_signals_state.
7810 * server.c: Include "dispositions-save-restore.h".
7811 (captured_main): Call save_original_signals_state.
7813 2016-08-05 Pedro Alves <palves@redhat.com>
7815 * configure: Regenerate.
7817 2016-08-04 Yao Qi <yao.qi@linaro.org>
7819 * linux-low.c (regsets_fetch_inferior_registers): Check
7820 errno is ESRCH or not.
7822 2016-08-02 Yao Qi <yao.qi@linaro.org>
7824 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7825 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7826 (thread_db_load_search): Update.
7827 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7828 td_ta_set_event and td_ta_event_getmsg.
7830 2016-07-26 Pedro Alves <palves@redhat.com>
7833 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7834 of unsigned long for 64-bit registers and use uint32_t instead of
7835 unsigned int for 32-bit registers.
7837 2016-07-26 Pedro Alves <palves@redhat.com>
7839 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7842 2016-07-21 Tom Tromey <tom@tromey.com>
7844 * configure: Rebuild.
7846 2016-07-21 Yao Qi <yao.qi@linaro.org>
7848 * mem-break.c (find_gdb_breakpoint): Cast bp to
7849 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7851 2016-07-21 Yao Qi <yao.qi@linaro.org>
7853 * server.c (handle_v_requests): Support s and S actions
7854 if target_supports_software_single_step return true.
7856 2016-07-21 Yao Qi <yao.qi@linaro.org>
7858 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7859 is resume_step, call maybe_hw_step.
7860 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7862 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7864 (proceed_one_lwp): If resume request is resume_step, install
7865 reinsert breakpoints and call maybe_hw_step.
7867 2016-07-21 Yao Qi <yao.qi@linaro.org>
7869 * linux-low.c (proceed_one_lwp): Declare.
7870 (linux_resume_one_thread): Remove local variable 'step'.
7871 Lift code enqueue signal. Call proceed_one_lwp instead of
7872 linux_resume_one_lwp.
7874 2016-07-21 Yao Qi <yao.qi@linaro.org>
7876 * linux-low.c (linux_resume_one_thread): Call
7877 enqueue_pending_signal.
7879 2016-07-21 Yao Qi <yao.qi@linaro.org>
7881 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7882 * inferiors.c (do_restore_current_thread_cleanup): New function.
7883 (make_cleanup_restore_current_thread): Likewise.
7884 * linux-low.c (install_software_single_step_breakpoints): Call
7885 make_cleanup_restore_current_thread. Switch current_thread to
7888 2016-07-21 Yao Qi <yao.qi@linaro.org>
7890 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7891 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7892 (clone_one_breakpoint): Likewise.
7893 (delete_reinsert_breakpoints): Change parameter to thread.
7895 (has_reinsert_breakpoints): Likewise.
7896 (uninsert_reinsert_breakpoints): Likewise.
7897 (reinsert_reinsert_breakpoints): Likewise.
7898 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7899 (delete_reinsert_breakpoints): Likewise.
7900 (reinsert_reinsert_breakpoints): Likewise.
7901 (uninsert_reinsert_breakpoints): Likewise.
7902 (has_reinsert_breakpoints): Likewise.
7904 2016-07-21 Yao Qi <yao.qi@linaro.org>
7906 * inferiors.c (get_thread_process): Make parameter const.
7907 * inferiors.h (get_thread_process): Update declaration.
7908 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7909 Add new parameters child_thread and parent_thread. Callers
7911 * mem-break.h (clone_all_breakpoints): Update declaration.
7913 2016-07-21 Yao Qi <yao.qi@linaro.org>
7915 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7916 <command_list, handler>: Remove.
7917 (struct gdb_breakpoint): New.
7918 (struct other_breakpoint): New.
7919 (struct reinsert_breakpoint): New.
7920 (is_gdb_breakpoint): New function.
7921 (any_persistent_commands): Update command_list if
7922 is_gdb_breakpoint returns true.
7923 (set_breakpoint): Create breakpoints according to their types.
7924 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7925 (set_gdb_breakpoint_1): Likewise.
7926 (set_gdb_breakpoint): Likewise.
7927 (clear_breakpoint_conditions): Change parameter type to
7928 'struct gdb_breakpoint *'.
7929 (clear_breakpoint_commands): Likewise.
7930 (clear_breakpoint_conditions_and_commands): Likewise.
7931 (add_condition_to_breakpoint): Likewise.
7932 (add_breakpoint_condition): Likewise.
7933 (add_commands_to_breakpoint): Likewise.
7934 (check_breakpoints): Check other_breakpoint.
7935 (clone_one_breakpoint): Clone breakpopint according to its type.
7936 * mem-break.h (struct gdb_breakpoint): Declare.
7937 (set_gdb_breakpoint): Update declaration.
7938 (clear_breakpoint_conditions_and_commands): Likewise.
7939 (add_breakpoint_condition): Likewise.
7940 (add_breakpoint_commands): Likewise.
7941 * server.c (process_point_options): Change parameter type to
7942 'struct gdb_breakpoint *'.
7944 2016-07-21 Yao Qi <yao.qi@linaro.org>
7946 * mem-break.c (set_breakpoint_at): Rename it to ...
7947 (set_breakpoint_type_at): ... it.
7948 (set_breakpoint_at): Call set_breakpoint_type_at.
7949 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7950 * mem-break.h (set_breakpoint_at): Update comments.
7952 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7954 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7956 (nios2_store_gregset): Likewise.
7958 2016-07-01 Pedro Alves <palves@redhat.com>
7959 Antoine Tremblay <antoine.tremblay@ericsson.com>
7961 * linux-low.c: Change interface to take the target lwp_info
7962 pointer directly and return void. Handle detaching from a zombie
7964 (linux_detach_lwp_callback): New function.
7965 (linux_detach): Detach from the leader thread after detaching from
7968 2016-06-28 Yao Qi <yao.qi@linaro.org>
7970 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7971 for variable new_offset.
7972 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7973 (aarch64_ftrace_insn_reloc_cb): Likewise.
7974 (aarch64_ftrace_insn_reloc_tb): Likewise.
7975 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7976 PRIx64 instead of PRIx32.
7978 2016-06-28 Yao Qi <yao.qi@linaro.org>
7980 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7981 (the_low_target): Install arm_get_syscall_trapinfo.
7983 2016-06-28 Yao Qi <yao.qi@linaro.org>
7985 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7987 (the_low_target): Install aarch64_get_syscall_trapinfo.
7989 2016-06-28 Yao Qi <yao.qi@linaro.org>
7991 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7993 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7994 Remove parameter sysno.
7995 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7998 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8000 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8001 (s390_emit_ne_goto): Likewise.
8002 (s390_emit_lt_goto): Likewise.
8003 (s390_emit_le_goto): Likewise.
8004 (s390_emit_gt_goto): Likewise.
8005 (s390_emit_ge_goto): Likewise.
8006 (s390x_emit_eq_goto): Likewise.
8007 (s390x_emit_ne_goto): Likewise.
8008 (s390x_emit_lt_goto): Likewise.
8009 (s390x_emit_le_goto): Likewise.
8010 (s390x_emit_gt_goto): Likewise.
8011 (s390x_emit_ge_goto): Likewise.
8012 (s390_emit_ops_impl): Mark variable static.
8013 (s390x_emit_ops): Likewise.
8015 2016-06-17 Yao Qi <yao.qi@linaro.org>
8017 * linux-low.c (handle_extended_wait): Call
8018 uninsert_reinsert_breakpoints for the parent process. Remove
8019 reinsert breakpoints from the child process. Reinsert them to
8020 the parent process when vfork is done.
8021 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8022 (reinsert_reinsert_breakpoints): New function.
8023 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8024 (reinsert_reinsert_breakpoints): Declare.
8026 2016-06-17 Yao Qi <yao.qi@linaro.org>
8028 * linux-low.c (handle_extended_wait): If the parent is doing
8029 step-over, remove the reinsert breakpoints from the forked child.
8031 2016-06-17 Yao Qi <yao.qi@linaro.org>
8033 * linux-low.c (unsuspend_all_lwps): Declare.
8034 (linux_low_filter_event): If thread exited, call finish_step_over.
8035 If step-over is finished, unsuspend other threads.
8037 2016-06-17 Yao Qi <yao.qi@linaro.org>
8039 * linux-low.c (linux_resume_one_lwp_throw): Assert
8040 has_reinsert_breakpoints returns false.
8041 * mem-break.c (delete_disabled_breakpoints): Assert
8042 bp type isn't reinsert_breakpoint.
8044 2016-06-17 Yao Qi <yao.qi@linaro.org>
8046 * linux-low.c (maybe_hw_step): New function.
8047 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8048 (finish_step_over): Switch current_thread to lwp temporarily,
8049 and assert has_reinsert_breakpoints returns true.
8050 (proceed_one_lwp): Call maybe_hw_step.
8051 * mem-break.c (has_reinsert_breakpoints): New function.
8052 * mem-break.h (has_reinsert_breakpoints): Declare.
8054 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8056 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8058 2016-05-17 Yao Qi <yao.qi@linaro.org>
8060 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8061 instead of find_inferior.
8063 2016-05-05 Yao Qi <yao.qi@linaro.org>
8065 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8066 Initialize res to zero.
8068 2016-05-05 Yao Qi <yao.qi@linaro.org>
8070 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8073 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8075 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8076 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8077 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8079 2016-04-28 Par Olsson <par.olsson@windriver.com>
8080 Simon Marchi <simon.marchi@ericsson.com>
8082 * tracepoint.c (write_inferior_int8): New function.
8083 (cmd_qtenable_disable): Write enable flag using
8084 write_inferior_int8.
8086 2016-04-25 Yao Qi <yao.qi@linaro.org>
8088 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8089 (need_step_over_p): Return zero if the LWP has pending signals
8090 can be delivered on software single step target.
8092 2016-04-25 Yao Qi <yao.qi@linaro.org>
8094 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8095 return instead of error.
8097 2016-04-22 Yao Qi <yao.qi@linaro.org>
8099 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8102 2016-04-22 Yao Qi <yao.qi@linaro.org>
8104 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8105 signal when stepping over breakpoint with software single
8108 2016-04-21 Pedro Alves <palves@redhat.com>
8110 * linux-s390-low.c (s390_collect_ptrace_register)
8111 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8113 (s390_check_regset): Use void * instead of gdb_byte *.
8115 2016-04-20 Pedro Alves <palves@redhat.com>
8117 * configure: Renegerate.
8119 2016-04-20 Yao Qi <yao.qi@linaro.org>
8121 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8122 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8124 (arm_store_gregset): Likewise.
8126 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8128 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8129 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8130 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8131 (amd64-avx-mpx-linux.c): New rules.
8132 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8133 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8134 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8135 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8136 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8137 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8138 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8139 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8140 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8141 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8142 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8143 * linux-x86-low.c (x86_linux_read_description): Add case for
8144 X86_XSTATE_AVX_MPX_MASK.
8145 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8146 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8147 init_registers_i386_avx_mpx_linux.
8148 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8149 (initialize_low_tracepoint): Call
8150 init_registers_i386_avx_mpx_linux.
8151 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8152 (initialize_low_tracepoint): Call
8153 init_registers_amd64_avx_mpx_linux.
8154 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8155 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8156 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8159 2016-04-18 Pedro Alves <palves@redhat.com>
8161 * configure: Regenerate.
8163 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8165 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8166 (aarch64_emit_sub): Likewise.
8168 2016-04-12 Pedro Alves <palves@redhat.com>
8170 * utils.c (prepare_to_throw_exception): Delete.
8172 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8174 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8176 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8178 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8180 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8182 * linux-aarch64-ipa.c: Add <elf.h> include.
8183 * linux-ppc-ipa.c: Add <elf.h> include.
8184 * linux-s390-ipa.c: Add <elf.h> include.
8186 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8188 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8189 (get_raw_reg_ptr): Likewise.
8190 (get_trace_state_variable_value_ptr): Likewise.
8191 (set_trace_state_variable_value_ptr): Likewise.
8192 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8195 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8196 Marcin Kościelnicki <koriakin@0x04.net>
8199 * linux-ppc-low.c (emit_insns): New function.
8200 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8201 (ppc_emit_prologue): New function.
8202 (ppc_emit_epilogue): New function.
8203 (ppc_emit_add): New function.
8204 (ppc_emit_sub): New function.
8205 (ppc_emit_mul): New function.
8206 (ppc_emit_lsh): New function.
8207 (ppc_emit_rsh_signed): New function.
8208 (ppc_emit_rsh_unsigned): New function.
8209 (ppc_emit_ext): New function.
8210 (ppc_emit_zero_ext): New function.
8211 (ppc_emit_log_not): New function.
8212 (ppc_emit_bit_and): New function.
8213 (ppc_emit_bit_or): New function.
8214 (ppc_emit_bit_xor): New function.
8215 (ppc_emit_bit_not): New function.
8216 (ppc_emit_equal): New function.
8217 (ppc_emit_less_signed): New function.
8218 (ppc_emit_less_unsigned): New function.
8219 (ppc_emit_ref): New function.
8220 (ppc_emit_const): New function.
8221 (ppc_emit_reg): New function.
8222 (ppc_emit_pop): New function.
8223 (ppc_emit_stack_flush): New function.
8224 (ppc_emit_swap): New function.
8225 (ppc_emit_stack_adjust): New function.
8226 (ppc_emit_call): New function.
8227 (ppc_emit_int_call_1): New function.
8228 (ppc_emit_void_call_2): New function.
8229 (ppc_emit_if_goto): New function.
8230 (ppc_emit_goto): New function.
8231 (ppc_emit_eq_goto): New function.
8232 (ppc_emit_ne_goto): New function.
8233 (ppc_emit_lt_goto): New function.
8234 (ppc_emit_le_goto): New function.
8235 (ppc_emit_gt_goto): New function.
8236 (ppc_emit_ge_goto): New function.
8237 (ppc_write_goto_address): New function.
8238 (ppc_emit_ops_impl): New static variable.
8239 (ppc64v1_emit_prologue): New function.
8240 (ppc64v2_emit_prologue): New function.
8241 (ppc64_emit_epilogue): New function.
8242 (ppc64_emit_add): New function.
8243 (ppc64_emit_sub): New function.
8244 (ppc64_emit_mul): New function.
8245 (ppc64_emit_lsh): New function.
8246 (ppc64_emit_rsh_signed): New function.
8247 (ppc64_emit_rsh_unsigned): New function.
8248 (ppc64_emit_ext): New function.
8249 (ppc64_emit_zero_ext): New function.
8250 (ppc64_emit_log_not): New function.
8251 (ppc64_emit_bit_and): New function.
8252 (ppc64_emit_bit_or): New function.
8253 (ppc64_emit_bit_xor): New function.
8254 (ppc64_emit_bit_not): New function.
8255 (ppc64_emit_equal): New function.
8256 (ppc64_emit_less_signed): New function.
8257 (ppc64_emit_less_unsigned): New function.
8258 (ppc64_emit_ref): New function.
8259 (ppc64_emit_const): New function.
8260 (ppc64v1_emit_reg): New function.
8261 (ppc64v2_emit_reg): New function.
8262 (ppc64_emit_pop): New function.
8263 (ppc64_emit_stack_flush): New function.
8264 (ppc64_emit_swap): New function.
8265 (ppc64v1_emit_call): New function.
8266 (ppc64v2_emit_call): New function.
8267 (ppc64v1_emit_int_call_1): New function.
8268 (ppc64v2_emit_int_call_1): New function.
8269 (ppc64v1_emit_void_call_2): New function.
8270 (ppc64v2_emit_void_call_2): New function.
8271 (ppc64_emit_if_goto): New function.
8272 (ppc64_emit_eq_goto): New function.
8273 (ppc64_emit_ne_goto): New function.
8274 (ppc64_emit_lt_goto): New function.
8275 (ppc64_emit_le_goto): New function.
8276 (ppc64_emit_gt_goto): New function.
8277 (ppc64_emit_ge_goto): New function.
8278 (ppc64v1_emit_ops_impl): New static variable.
8279 (ppc64v2_emit_ops_impl): New static variable.
8280 (ppc_emit_ops): New function.
8281 (linux_low_target): Wire in ppc_emit_ops.
8283 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8284 Marcin Kościelnicki <koriakin@0x04.net>
8287 * Makefile.in: Add powerpc-*-ipa.o
8288 * configure.srv: Add ipa_obj for powerpc*-linux.
8289 * linux-ppc-ipa.c: New file.
8290 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8292 (PPC_FIELD): New macro.
8293 (PPC_SEXT): New macro.
8294 (PPC_OP6): New macro.
8295 (PPC_BO): New macro.
8296 (PPC_LI): New macro.
8297 (PPC_BD): New macro.
8298 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8299 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8300 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8301 (ppc_get_thread_area): New function.
8302 (is_elfv2_inferior): New function.
8303 (gen_ds_form): New function.
8304 (GEN_STD): New macro.
8305 (GEN_STDU): New macro.
8306 (GEN_LD): New macro.
8307 (GEN_LDU): New macro.
8308 (gen_d_form): New function.
8309 (GEN_ADDI): New macro.
8310 (GEN_ADDIS): New macro.
8311 (GEN_LI): New macro.
8312 (GEN_LIS): New macro.
8313 (GEN_ORI): New macro.
8314 (GEN_ORIS): New macro.
8315 (GEN_LWZ): New macro.
8316 (GEN_STW): New macro.
8317 (GEN_STWU): New macro.
8318 (gen_xfx_form): New function.
8319 (GEN_MFSPR): New macro.
8320 (GEN_MTSPR): New macro.
8321 (GEN_MFCR): New macro.
8322 (GEN_MTCR): New macro.
8323 (GEN_SYNC): New macro.
8324 (GEN_LWSYNC): New macro.
8325 (gen_x_form): New function.
8326 (GEN_OR): New macro.
8327 (GEN_MR): New macro.
8328 (GEN_LWARX): New macro.
8329 (GEN_STWCX): New macro.
8330 (GEN_CMPW): New macro.
8331 (gen_md_form): New function.
8332 (GEN_RLDICL): New macro.
8333 (GEN_RLDICR): New macro.
8334 (gen_i_form): New function.
8336 (GEN_BL): New macro.
8337 (gen_b_form): New function.
8338 (GEN_BNE): New macro.
8339 (GEN_LOAD): New macro.
8340 (GEN_STORE): New macro.
8341 (gen_limm): New function.
8342 (gen_atomic_xchg): New function.
8343 (gen_call): New function.
8344 (ppc_relocate_instruction): New function.
8345 (ppc_install_fast_tracepoint_jump_pad): New function.
8346 (ppc_get_min_fast_tracepoint_insn_len): New function.
8347 (ppc_get_ipa_tdesc_idx): New function.
8348 (the_low_target): Wire in the new functions.
8349 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8351 * linux-ppc-tdesc.h: New file.
8353 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8355 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8356 (alloc_jump_pad_buffer): New function.
8357 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8358 (alloc_jump_pad_buffer): New function.
8359 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8360 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8361 (alloc_jump_pad_buffer): New function.
8362 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8363 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8364 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8365 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8367 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8369 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8370 * linux-amd64-ipa.c: Likewise.
8371 * linux-i386-ipa.c: Likewise.
8372 * linux-s390-ipa.c: Likewise.
8373 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8374 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8375 set_trace_state_variable_value_ptr.
8376 (struct ipa_sym_addresses): Likewise.
8377 (symbol_list): Likewise.
8378 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8379 accessing gdb_collect directly.
8380 (gdb_collect_ptr_type): New typedef.
8381 (get_raw_reg_ptr_type): New typedef.
8382 (get_trace_state_variable_value_ptr_type): New typedef.
8383 (set_trace_state_variable_value_ptr_type): New typedef.
8384 (gdb_collect_ptr): New global.
8385 (get_raw_reg_ptr): New global.
8386 (get_trace_state_variable_value_ptr): New global.
8387 (set_trace_state_variable_value_ptr): New global.
8388 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8389 accessing get_raw_reg directly.
8390 (get_get_tsv_func_addr): Likewise for
8391 get_trace_state_variable_value_ptr.
8392 (get_set_tsv_func_addr): Likewise for
8393 set_trace_state_variable_value_ptr.
8394 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8396 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8398 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8400 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8402 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8404 (relocate_instruction): Remove own_buf.
8405 * server.c (own_buf): Make global.
8406 (handle_v_requests): Make global.
8407 * server.h (own_buf): New declaration.
8408 (handle_v_requests): New prototype.
8410 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8413 * linux-s390-low.c (add_insns): New function.
8414 (s390_emit_prologue): New function.
8415 (s390_emit_epilogue): New function.
8416 (s390_emit_add): New function.
8417 (s390_emit_sub): New function.
8418 (s390_emit_mul): New function.
8419 (s390_emit_lsh): New function.
8420 (s390_emit_rsh_signed): New function.
8421 (s390_emit_rsh_unsigned): New function.
8422 (s390_emit_ext): New function.
8423 (s390_emit_log_not): New function.
8424 (s390_emit_bit_and): New function.
8425 (s390_emit_bit_or): New function.
8426 (s390_emit_bit_xor): New function.
8427 (s390_emit_bit_not): New function.
8428 (s390_emit_equal): New function.
8429 (s390_emit_less_signed): New function.
8430 (s390_emit_less_unsigned): New function.
8431 (s390_emit_ref): New function.
8432 (s390_emit_if_goto): New function.
8433 (s390_emit_goto): New function.
8434 (s390_write_goto_address): New function.
8435 (s390_emit_litpool): New function.
8436 (s390_emit_const): New function.
8437 (s390_emit_call): New function.
8438 (s390_emit_reg): New function.
8439 (s390_emit_pop): New function.
8440 (s390_emit_stack_flush): New function.
8441 (s390_emit_zero_ext): New function.
8442 (s390_emit_swap): New function.
8443 (s390_emit_stack_adjust): New function.
8444 (s390_emit_set_r2): New function.
8445 (s390_emit_int_call_1): New function.
8446 (s390_emit_void_call_2): New function.
8447 (s390_emit_eq_goto): New function.
8448 (s390_emit_ne_goto): New function.
8449 (s390_emit_lt_goto): New function.
8450 (s390_emit_le_goto): New function.
8451 (s390_emit_gt_goto): New function.
8452 (s390_emit_ge_goto): New function.
8453 (s390x_emit_prologue): New function.
8454 (s390x_emit_epilogue): New function.
8455 (s390x_emit_add): New function.
8456 (s390x_emit_sub): New function.
8457 (s390x_emit_mul): New function.
8458 (s390x_emit_lsh): New function.
8459 (s390x_emit_rsh_signed): New function.
8460 (s390x_emit_rsh_unsigned): New function.
8461 (s390x_emit_ext): New function.
8462 (s390x_emit_log_not): New function.
8463 (s390x_emit_bit_and): New function.
8464 (s390x_emit_bit_or): New function.
8465 (s390x_emit_bit_xor): New function.
8466 (s390x_emit_bit_not): New function.
8467 (s390x_emit_equal): New function.
8468 (s390x_emit_less_signed): New function.
8469 (s390x_emit_less_unsigned): New function.
8470 (s390x_emit_ref): New function.
8471 (s390x_emit_if_goto): New function.
8472 (s390x_emit_const): New function.
8473 (s390x_emit_call): New function.
8474 (s390x_emit_reg): New function.
8475 (s390x_emit_pop): New function.
8476 (s390x_emit_stack_flush): New function.
8477 (s390x_emit_zero_ext): New function.
8478 (s390x_emit_swap): New function.
8479 (s390x_emit_stack_adjust): New function.
8480 (s390x_emit_int_call_1): New function.
8481 (s390x_emit_void_call_2): New function.
8482 (s390x_emit_eq_goto): New function.
8483 (s390x_emit_ne_goto): New function.
8484 (s390x_emit_lt_goto): New function.
8485 (s390x_emit_le_goto): New function.
8486 (s390x_emit_gt_goto): New function.
8487 (s390x_emit_ge_goto): New function.
8488 (s390_emit_ops): New function.
8489 (struct linux_target_ops): Fill in emit_ops hook.
8491 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8494 * Makefile.in: Add s390 IPA files.
8495 * configure.srv: Build IPA for s390.
8496 * linux-s390-ipa.c: New file.
8497 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8498 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8499 (tdesc_s390_linux32): Likewise.
8500 (init_registers_s390_linux32v1): Likewise.
8501 (tdesc_s390_linux32v1): Likewise.
8502 (init_registers_s390_linux32v2): Likewise.
8503 (tdesc_s390_linux32v2): Likewise.
8504 (init_registers_s390_linux64): Likewise.
8505 (tdesc_s390_linux64): Likewise.
8506 (init_registers_s390_linux64v1): Likewise.
8507 (tdesc_s390_linux64v1): Likewise.
8508 (init_registers_s390_linux64v2): Likewise.
8509 (tdesc_s390_linux64v2): Likewise.
8510 (init_registers_s390_te_linux64): Likewise.
8511 (tdesc_s390_te_linux64): Likewise.
8512 (init_registers_s390_vx_linux64): Likewise.
8513 (tdesc_s390_vx_linux64): Likewise.
8514 (init_registers_s390_tevx_linux64): Likewise.
8515 (tdesc_s390_tevx_linux64): Likewise.
8516 (init_registers_s390x_linux64): Likewise.
8517 (tdesc_s390x_linux64): Likewise.
8518 (init_registers_s390x_linux64v1): Likewise.
8519 (tdesc_s390x_linux64v1): Likewise.
8520 (init_registers_s390x_linux64v2): Likewise.
8521 (tdesc_s390x_linux64v2): Likewise.
8522 (init_registers_s390x_te_linux64): Likewise.
8523 (tdesc_s390x_te_linux64): Likewise.
8524 (init_registers_s390x_vx_linux64): Likewise.
8525 (tdesc_s390x_vx_linux64): Likewise.
8526 (init_registers_s390x_tevx_linux64): Likewise.
8527 (tdesc_s390x_tevx_linux64): Likewise.
8528 (have_hwcap_s390_vx): New static variable.
8529 (s390_arch_setup): Fill have_hwcap_s390_vx.
8530 (s390_get_thread_area): New function.
8531 (s390_ft_entry_gpr_esa): New const.
8532 (s390_ft_entry_gpr_zarch): New const.
8533 (s390_ft_entry_misc): New const.
8534 (s390_ft_entry_fr): New const.
8535 (s390_ft_entry_vr): New const.
8536 (s390_ft_main_31): New const.
8537 (s390_ft_main_64): New const.
8538 (s390_ft_exit_fr): New const.
8539 (s390_ft_exit_vr): New const.
8540 (s390_ft_exit_misc): New const.
8541 (s390_ft_exit_gpr_esa): New const.
8542 (s390_ft_exit_gpr_zarch): New const.
8543 (append_insns): New function.
8544 (s390_relocate_instruction): New function.
8545 (s390_install_fast_tracepoint_jump_pad): New function.
8546 (s390_get_min_fast_tracepoint_insn_len): New function.
8547 (s390_get_ipa_tdesc_idx): New function.
8548 (struct linux_target_ops): Wire in the above functions.
8549 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8550 * linux-s390-tdesc.h: New file.
8552 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8554 * linux-s390-low.c (s390_supports_tracepoints): New function.
8555 (struct linux_target_ops): Fill supports_tracepoints hook.
8557 2016-03-18 Yao Qi <yao.qi@linaro.org>
8559 * linux-low.c (lwp_signal_can_be_delivered): New function.
8560 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8562 2016-03-18 Yao Qi <yao.qi@linaro.org>
8564 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8565 0 if signal is enqueued. Remove 'signal' from one debugging
8566 message. Move one debugging message to some lines below.
8567 Remove code setting 'signal' to 0.
8569 2016-03-18 Yao Qi <yao.qi@linaro.org>
8571 * linux-low.c (linux_low_filter_event): Remove redundant
8572 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8574 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8576 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8577 (struct linux_target_ops): Wire in the above.
8579 2016-03-03 Yao Qi <yao.qi@linaro.org>
8581 * linux-low.c: Update comments to start_step_over.
8583 2016-03-03 Yao Qi <yao.qi@linaro.org>
8586 * linux-low.c (handle_extended_wait): Set child suspended
8587 if event_lwp->bp_reinsert isn't zero.
8589 2016-03-02 Yao Qi <yao.qi@linaro.org>
8591 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8592 enqueue_pending_signal.
8594 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8596 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8599 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8601 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8602 (s390_regmap_3264) [!__s390x__]: New global.
8603 (s390_collect_ptrace_register): Skip map entries containing -1.
8604 (s390_supply_ptrace_register): Ditto.
8605 (s390_fill_gprs_high): New function.
8606 (s390_store_gprs_high): New function.
8607 (s390_regsets): Add NT_S390_HIGH_GPRS.
8608 (s390_get_hwcap): Enable on 31-bit.
8609 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8610 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8611 Detect NT_S390_HIGH_GPRS.
8612 (s390_usrregs_info_3264): Enable on 31-bit.
8613 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8614 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8616 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8619 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8620 * configure.srv: Ditto.
8621 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8622 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8623 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8624 (init_registers_amd64_linux): Remove prototype.
8625 (tdesc_amd64_linux): Remove declaration.
8626 (get_ipa_tdesc): New function.
8627 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8628 initialize remaining tdescs.
8629 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8630 (init_registers_i386_linux): Remove prototype.
8631 (tdesc_i386_linux): Remove declaration.
8632 (get_ipa_tdesc): New function.
8633 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8634 initialize remaining tdescs.
8635 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8636 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8637 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8638 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8639 (x86_get_ipa_tdesc_idx): New function.
8640 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8641 * linux-x86-tdesc.h: New file.
8642 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8643 (target_get_ipa_tdesc_idx): New macro.
8644 * tracepoint.c (ipa_tdesc_idx): New macro.
8645 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8646 (symbol_list): Add ipa_tdesc_idx.
8647 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8648 (ipa_tdesc): Remove.
8649 (ipa_tdesc_idx): New variable.
8650 (get_context_regcache): Use get_ipa_tdesc.
8651 (gdb_collect): Ditto.
8653 * tracepoint.h (get_ipa_tdesc): New prototype.
8654 (ipa_tdesc): Remove.
8656 2016-02-24 Pedro Alves <palves@redhat.com>
8658 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8659 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8660 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8661 Factor out common code between the USE_SIGTRAP_SIGINFO and
8662 !USE_SIGTRAP_SIGINFO blocks.
8663 (linux_low_filter_event): Call save_stop_reason instead of
8664 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8666 (linux_wait_1): Update comments.
8668 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8670 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8671 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8672 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8673 ppc_insert_point, ppc_remove_point.
8675 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8677 * linux-s390-low.c (s390_supports_z_point_type): New function.
8678 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8680 2016-02-16 Yao Qi <yao.qi@linaro.org>
8682 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8683 PC. Get pc from regcache_read_pc.
8685 2016-02-12 Yao Qi <yao.qi@linaro.org>
8687 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8688 or linux_get_pc_32bit.
8689 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8691 2016-02-12 Yao Qi <yao.qi@linaro.org>
8693 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8694 arm_linux_get_next_pcs_fixup.
8696 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8698 * tracepoint.c (x_tracepoint_action_download): Change
8699 write_inferior_data_ptr to write_inferior_data_pointer.
8700 (cmd_qtstart): Likewise.
8701 (write_inferior_data_ptr): Remove.
8702 (download_agent_expr): Change write_inferior_data_ptr to
8703 write_inferior_data_pointer.
8704 (download_tracepoint_1): Likewise.
8705 (download_tracepoint): Likewise.
8706 (download_trace_state_variables): Likewise.
8708 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8709 Marcin Kościelnicki <koriakin@0x04.net>
8711 * tracepoint.c (struct tracepoint_action_ops): Remove.
8712 (struct tracepoint_action): Remove ops.
8713 (m_tracepoint_action_download, r_tracepoint_action_download)
8714 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8715 size and offset accordingly.
8716 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8717 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8718 (tracepoint_action_send, tracepoint_action_download): New functions.
8719 Helpers for trace action handlers.
8720 (add_tracepoint_action): Remove setup actions ops.
8721 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8723 2016-02-10 Yao Qi <yao.qi@linaro.org>
8725 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8727 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8729 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8731 * configure: Regenerate.
8733 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8735 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8736 void * to gdb_byte *.
8737 * linux-low.c (siginfo_fixup): Likewise.
8738 (linux_xfer_siginfo): Likewise.
8739 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8741 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8743 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8745 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8747 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8749 * linux-x86-low.c [__x86_64__]: Include
8750 "nat/amd64-linux-siginfo.h".
8751 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8752 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8753 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8754 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8755 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8756 (cpt_si_fd, si_timerid, si_overrun): Move from
8757 nat/amd64-linux-siginfo.c.
8758 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8760 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8762 * server.c (skip_to_semicolon): Remove.
8763 (process_point_options): Use strchrnul instead of
8766 2016-01-26 Yao Qi <yao.qi@linaro.org>
8768 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8769 * linux-low.c (install_software_single_step_breakpoints): Don't
8770 call regcache_read_pc.
8771 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8774 2016-01-26 Yao Qi <yao.qi@linaro.org>
8776 * linux-low.c (install_software_single_step_breakpoints): Call
8777 regcache_read_pc instead of get_pc.
8779 2016-01-26 Yao Qi <yao.qi@linaro.org>
8781 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8782 (unblock_async_io): Rename to ...
8783 (block_unblock_async_io): ... it. New function.
8784 (enable_async_io): Don't install SIGIO handler. Unblock it
8786 (disable_async_io): Don't ignore SIGIO. Block it instead.
8787 (initialize_async_io): Install SIGIO handler. Don't call
8790 2016-01-26 Yao Qi <yao.qi@linaro.org>
8792 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8793 first character is '\003', call *the_target->request_interrupt.
8795 2016-01-25 Yao Qi <yao.qi@linaro.org>
8797 * remote-utils.c (new_thread_notify): Remove.
8798 (dead_thread_notify): Likewise.
8799 * remote-utils.h (new_thread_notify): Remove declaration.
8800 (dead_thread_notify): Likewise.
8802 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8804 * gdb.trace/pending.exp: Fix expected message on continue.
8806 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8808 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8809 it works properly on big-endian machines where sizeof (CORE_ADDR)
8812 2016-01-21 Pedro Alves <palves@redhat.com>
8814 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8815 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8816 * configure: Regenerate.
8818 2016-01-21 Yao Qi <yao.qi@linaro.org>
8820 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8821 is_thumb and set it according to CPSR saved on the stack.
8822 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8823 arm_sigreturn_next_pc.
8825 2016-01-18 Yao Qi <yao.qi@linaro.org>
8827 * linux-low.c (linux_set_pc_64bit): New function.
8828 (linux_get_pc_64bit): New function.
8829 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8831 * linux-sparc-low.c (debug_threads): Remove declaration.
8832 (sparc_get_pc): Remove.
8833 (the_low_target): Use linux_get_pc_64bit instead of
8835 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8836 (the_low_target): Use linux_get_pc_64bit and
8839 2016-01-18 Yao Qi <yao.qi@linaro.org>
8841 * linux-arm-low.c (debug_threads): Remove declaration.
8842 (arm_get_pc, arm_set_pc): Remove.
8843 (the_low_target): Use linux_get_pc_32bit and
8845 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8846 (the_low_target): Use linux_get_pc_32bit and
8848 * linux-cris-low.c (debug_threads): Remove declaration.
8849 (cris_get_pc, cris_set_pc,): Remove.
8850 (the_low_target): Use linux_get_pc_32bit and
8852 * linux-crisv32-low.c (debug_threads): Remove declaration.
8853 (cris_get_pc, cris_set_pc): Remove.
8854 (the_low_target): Use linux_get_pc_32bit and
8856 * linux-low.c: Include inttypes.h.
8857 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8858 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8859 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8860 (the_low_target): Use linux_get_pc_32bit and
8862 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8863 (the_low_target): Use linux_get_pc_32bit and
8865 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8866 (the_low_target): Use linux_get_pc_32bit and
8868 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8869 (the_low_target): Use linux_get_pc_32bit and
8871 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8872 (the_low_target): Use linux_get_pc_32bit and
8875 2016-01-18 Gary Benson <gbenson@redhat.com>
8877 * configure.ac (AC_FUNC_FORK): New check.
8878 * config.in: Regenerate.
8879 * configure: Likewise.
8881 2016-01-14 Yao Qi <yao.qi@linaro.org>
8883 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8884 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8885 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8886 arm_get_next_pcs_ctor.
8888 2016-01-12 Josh Stone <jistone@redhat.com>
8889 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8891 * inferiors.h: Include "gdb_vecs.h".
8892 (struct process_info): Add syscalls_to_catch.
8893 * inferiors.c (remove_process): Free syscalls_to_catch.
8894 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8895 syscall_return stops.
8896 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8897 * server.c (handle_general_set): Handle QCatchSyscalls.
8898 (handle_query): Report support for QCatchSyscalls.
8899 * target.h (struct target_ops): Add supports_catch_syscall.
8900 (target_supports_catch_syscall): New macro.
8901 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8902 (struct lwp_info): Add syscall_state.
8903 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8904 Maintain syscall_state and syscalls_to_catch across exec.
8905 (get_syscall_trapinfo): New function, proxy to the_low_target.
8906 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8907 (linux_low_filter_event): Toggle syscall_state entry/return for
8908 syscall traps, and set it ignored for all others.
8909 (gdb_catching_syscalls_p): New function.
8910 (gdb_catch_this_syscall_p): New function.
8911 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8912 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8913 (linux_supports_catch_syscall): New function.
8914 (linux_target_ops): Install it.
8915 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8916 (the_low_target): Install it.
8918 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8920 * acinclude.m4: Include new ../warning.m4 file.
8921 * configure: Regenerated.
8922 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8924 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8926 * ax.c (is_goto_target): Mark static.
8927 * linux-low.c (register_addr): Likewise.
8928 (linux_fetch_registers, linux_store_registers): Likewise.
8929 * mem-break.c (any_persistent_commands): Fix old prototype.
8930 (add_commands_to_breakpoint): Mark static.
8931 * regcache.c (find_register_by_name): Delete unused func.
8932 * remote-utils.c (hex_or_minus_one): Mark static.
8933 * server.c (monitor_show_help): Mark static.
8934 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8935 handle_v_requests): Likewise.
8937 2016-01-12 Pedro Alves <palves@redhat.com>
8939 Remove use of the registered trademark symbol throughout.
8941 2016-01-08 Yao Qi <yao.qi@linaro.org>
8943 * remote-utils.c (getpkt): If c is '\003', call target hook
8946 2016-01-06 Yao Qi <yao.qi@linaro.org>
8948 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8949 linux-aarch32-low.c.
8950 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8951 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8952 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8953 (thumb2_breakpoint): Declare.
8954 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8955 linux-aarch32-low.h.
8956 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8957 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8958 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8960 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8962 * gdbreplay.c (gdbreplay_version): Change copyright year in
8964 * server.c (gdbserver_version): Likewise.
8966 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8968 * server.c (crc32_table): Delete.
8969 (crc32): Use libiberty's xcrc32 function.
8971 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8973 * lynx-low.c (lynx_delete_thread_callback): New function.
8974 (lynx_mourn): Properly delete our process and all of its
8975 threads. Remove call to clear_inferiors.
8977 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8979 * target.c (thread_search_callback): Add check that
8980 the thread_stopped target callback is not NULL before
8983 2015-12-21 Yao Qi <yao.qi@linaro.org>
8985 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8988 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8990 * server.c (handle_query): Call target_supports_software_single_step.
8992 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8994 * linux-low.c (single_step): New function.
8995 (linux_resume_one_lwp_throw): Call single_step.
8996 (start_step_over): Likewise.
8998 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9000 * Makefile.in (SFILES): Append arch/arm-linux.c,
9001 arch/arm-get-next-pcs.c.
9002 (arm-linux.o): New rule.
9003 (arm-get-next-pcs.o): New rule.
9004 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9006 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9007 to linux-aarch32-low.c.
9008 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9009 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9010 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9011 (thumb2_breakpoint_len): Likewise.
9012 (arm_is_thumb_mode): Make non-static.
9013 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9014 from linux-aarch32-low.c.
9015 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9016 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9017 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9018 (thumb2_breakpoint_len): Likewise.
9019 (arm_is_thumb_mode): New declaration.
9020 * linux-arm-low.c: Include arch/arm-linux.h
9021 aarch/arm-get-next-pcs.h, sys/syscall.h.
9022 (get_next_pcs_ops): New struct.
9023 (get_next_pcs_addr_bits_remove): New function.
9024 (get_next_pcs_is_thumb): New function.
9025 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9026 (arm_sigreturn_next_pc): Likewise.
9027 (get_next_pcs_syscall_next_pc): Likewise.
9028 (arm_gdbserver_get_next_pcs): Likewise.
9029 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9031 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9032 * server.h: Include gdb_vecs.h.
9034 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9036 * Makefile.in (SFILES): Append common/common-regcache.c.
9037 (OBS): Append common-regcache.o.
9038 (common-regcache.o): New rule.
9039 * regcache.c (init_register_cache): Initialize cache to
9041 (regcache_raw_read_unsigned): New function.
9042 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9043 register_status enum.
9045 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9047 * linux-aarch64-low.c (the_low_targets): Rename
9048 breakpoint_reinsert_addr to get_next_pcs.
9049 * linux-arm-low.c (the_low_targets): Likewise.
9050 * linux-bfin-low.c (the_low_targets): Likewise.
9051 * linux-cris-low.c (the_low_targets): Likewise.
9052 * linux-crisv32-low.c (the_low_targets): Likewise.
9053 * linux-low.c (can_software_single_step): Likewise.
9054 (install_software_single_step_breakpoints): New function.
9055 (start_step_over): Use install_software_single_step_breakpoints.
9056 * linux-low.h: New CORE_ADDR vector.
9057 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9059 * linux-mips-low.c (the_low_targets): Likewise.
9060 * linux-nios2-low.c (the_low_targets): Likewise.
9061 * linux-sparc-low.c (the_low_targets): Likewise.
9063 2015-12-17 Pedro Alves <palves@redhat.com>
9065 * linux-low.c (linux_kill_one_lwp): Remove references to
9067 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9069 (linux_init_signals): Delete.
9070 (initialize_low): Adjust.
9071 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9073 2015-12-16 Pedro Alves <palves@redhat.com>
9075 * configure.ac (compiler warning flags): When testing a
9076 -Wno-foo option, check whether -Wfoo works instead.
9077 * configure: Regenerate.
9079 2015-12-11 Don Breazeal <donb@codesourcery.com>
9081 * server.c (process_serial_event): Don't exit from gdbserver
9082 in remote mode if there are still active inferiors.
9084 2015-12-11 Yao Qi <yao.qi@linaro.org>
9086 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9087 arm_breakpoint_at if the process is 32-bit.
9089 2015-12-11 Yao Qi <yao.qi@linaro.org>
9091 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9094 2015-12-07 Yao Qi <yao.qi@linaro.org>
9096 * configure.srv: Append arm.o to srv_tgtobj for
9097 aarch64*-*-linux* target.
9098 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9099 from linux-arm-low.c.
9100 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9101 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9102 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9103 (thumb2_breakpoint_len): Likewise.
9104 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9105 (arm_breakpoint_kinds): Likewise.
9106 (arm_breakpoint_kind_from_pc): Likewise.
9107 (arm_sw_breakpoint_from_kind): Likewise.
9108 (arm_breakpoint_kind_from_current_state): Likewise.
9109 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9110 (arm_sw_breakpoint_from_kind): Declare.
9111 (arm_breakpoint_kind_from_current_state): Declare.
9112 (arm_breakpoint_at): Declare.
9113 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9114 arm_sw_breakpoint_from_kind if process is 32-bit.
9115 (aarch64_breakpoint_kind_from_pc): New function.
9116 (aarch64_breakpoint_kind_from_current_state): New function.
9117 (the_low_target): Initialize fields breakpoint_kind_from_pc
9118 and breakpoint_kind_from_current_state.
9119 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9120 linux-aarch32-low.c.
9121 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9122 (arm_breakpoint, arm_breakpoint_len): Likewise.
9123 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9124 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9125 (arm_is_thumb_mode): Likewise.
9126 (arm_breakpoint_at): Likewise.
9127 (arm_breakpoint_kind_from_pc): Likewise.
9128 (arm_sw_breakpoint_from_kind): Likewise.
9129 (arm_breakpoint_kind_from_current_state): Likewise.
9132 2015-08-04 Yao Qi <yao.qi@linaro.org>
9134 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9135 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9136 * server.c (extended_protocol): Remove "static".
9137 * server.h (extended_protocol): Declare it.
9139 2015-12-04 Josh Stone <jistone@redhat.com>
9141 * target.h (struct target_ops) <arch_setup>: Rename to ...
9142 (struct target_ops) <post_create_inferior>: ... this.
9143 (target_arch_setup): Rename to ...
9144 (target_post_create_inferior): ... this, calling post_create_inferior.
9145 * server.c (start_inferior): Update target_arch_setup calls to
9146 target_post_create_inferior.
9147 * linux-low.c (linux_low_ptrace_options): Forward declare.
9148 (linux_arch_setup): Update its comment for general use.
9149 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9150 (struct linux_target_ops): Use linux_post_create_inferior.
9151 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9152 to post_create_inferior.
9153 * nto-low.c (struct nto_target_ops): Likewise.
9154 * spu-low.c (struct spu_target_ops): Likewise.
9155 * win32-low.c (struct win32_target_ops): Likewise.
9157 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9159 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9161 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9163 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9164 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9165 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9166 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9167 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9168 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9169 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9170 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9171 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9172 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9173 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9174 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9176 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9178 * linux-low.c (linux_look_up_symbols): Don't call
9179 linux_supports_traceclone.
9180 * linux-low.h (thread_db_init): Remove use_events argument.
9181 * thread-db.c (thread_db_use_event): Remove global variable.
9182 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9183 (struct thread_db) <td_create_bp>: Remove field.
9184 (thread_db_create_event): Remove function.
9185 (thread_db_enable_reporting): Likewise.
9186 (find_one_thread): Don't check for thread_db_use_events.
9187 (attach_thread): Likewise.
9188 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9189 (try_thread_db_load_1): Don't check for thread_db_use_events.
9190 (thread_db_init): Remove use_events argument and thread events
9192 (remove_thread_event_breakpoints): Remove function.
9193 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9195 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9197 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9199 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9200 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9201 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9202 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9203 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9205 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9207 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9208 * linux-low.c (can_hardware_single_step): Use
9209 supports_hardware_single_step.
9210 (can_software_single_step): New function.
9211 (start_step_over): Call can_software_single_step.
9212 (linux_supports_hardware_single_step): New function.
9213 (struct target_ops) <supports_software_single_step>: Initialize.
9214 * linux-low.h (struct linux_target_ops)
9215 <supports_hardware_single_step>: Initialize.
9216 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9218 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9219 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9220 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9221 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9222 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9223 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9224 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9225 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9227 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9228 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9230 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9231 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9232 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9234 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9235 * target.h (struct target_ops): <supports_software_single_step>:
9237 (target_supports_software_single_step): New macro.
9239 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9241 * linux-low.c (linux_wait_1): Fix pc advance condition.
9242 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9243 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9245 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9247 * linux-arm-low.c (arm_is_thumb_mode): New function.
9248 (arm_breakpoint_at): Use arm_is_thumb_mode.
9249 (arm_breakpoint_kind_from_current_state): New function.
9250 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9252 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9253 (linux_breakpoint_kind_from_current_state): New function.
9254 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9255 * linux-low.h (struct linux_target_ops)
9256 <breakpoint_kind_from_current_state>: New field.
9257 * target.h (struct target_ops): Likewise.
9258 (target_breakpoint_kind_from_current_state): New macro.
9260 2015-11-30 Pedro Alves <palves@redhat.com>
9262 * linux-low.c (linux_resume): Wake up the event loop before
9265 2015-11-30 Pedro Alves <palves@redhat.com>
9267 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9269 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9271 * target.c (struct thread_search): New structure.
9272 (thread_search_callback): New function.
9273 (prev_general_thread): New global.
9274 (prepare_to_access_memory, done_accessing_memory): New functions.
9275 * target.h (prepare_to_access_memory, done_accessing_memory):
9276 Replace macros with function declarations.
9278 2015-11-30 Pedro Alves <palves@redhat.com>
9281 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9282 report TARGET_WAITKIND_NO_RESUMED.
9283 * remote-utils.c (prepare_resume_reply): Handle
9284 TARGET_WAITKIND_NO_RESUMED.
9285 * server.c (report_no_resumed): New global.
9286 (handle_query) <qSupported>: Handle "no-resumed+". Report
9287 "no-resumed+" support.
9288 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9289 return error if the client doesn't support no-resumed events.
9290 (push_stop_notification): New function.
9291 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9292 events if the client supports them.
9294 2015-11-30 Pedro Alves <palves@redhat.com>
9296 * linux-low.c (thread_still_has_status_pending_p): Don't check
9298 (lwp_resumed): New function.
9299 (status_pending_p_callback): Return early if the LWP is not
9300 supposed to be resumed.
9302 2015-11-30 Pedro Alves <palves@redhat.com>
9304 * linux-low.c (handle_extended_wait): Assert that the LWP's
9305 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9306 thread create events, leave the new child's status pending.
9307 (linux_low_filter_event): If GDB wants to hear about thread exit
9308 events, leave the LWP marked dead and don't delete it.
9309 (linux_wait_for_event_filtered): Don't check for thread exit.
9310 (filter_exit_event): New function.
9311 (linux_wait_1): Use it, when returning an exit event.
9312 (linux_resume_one_lwp_throw): Assert that the LWP's
9313 waitstatus is TARGET_WAITKIND_IGNORE.
9314 * remote-utils.c (prepare_resume_reply): Handle
9315 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9316 * server.c (report_thread_events): New global.
9317 (handle_general_set): Handle QThreadEvents.
9318 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9319 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9320 TARGET_WAITKIND_THREAD_EXITED.
9321 * server.h (report_thread_events): Declare.
9323 2015-11-30 Pedro Alves <palves@redhat.com>
9325 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9326 the thread's last_resume_kind was resume_stop.
9328 2015-11-30 Pedro Alves <palves@redhat.com>
9330 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9333 2015-11-30 Pedro Alves <palves@redhat.com>
9335 * server.c (handle_v_requests): Handle vCtrlC.
9337 2015-11-30 Pedro Alves <palves@redhat.com>
9339 * gdbthread.h (find_any_thread_of_pid): Declare.
9340 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9342 * server.c (handle_query): If current_thread is NULL, look for
9343 another thread of the selected process.
9345 2015-11-26 Daniel Colascione <dancol@dancol.org>
9346 Simon Marchi <simon.marchi@ericsson.com>
9348 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9349 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9351 * target.h (struct target_ops) <thread_name>: New field.
9352 (target_thread_name): New macro.
9354 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9356 * regcache.h (regcache_invalidate_pid): Add declaration.
9357 * regcache.c (regcache_invalidate_pid): New function, extracted
9358 from regcache_invalidate.
9359 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9360 Add trivial documentation comment.
9361 * lynx-low.c: Use regcache_invalidate_pid instead of
9362 regcache_invalidate.
9364 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9366 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9367 and Elf64_auxv_t if the target is Android.
9369 2015-11-22 Doug Evans <xdje42@gmail.com>
9371 * target.h: #include <sys/types.h>.
9373 2015-11-19 Pedro Alves <palves@redhat.com>
9375 * linux-low.c (linux_process_qsupported): Change prototype.
9377 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9379 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9380 and adjust to loop over all features.
9381 * server.c (handle_query) <qSupported>: Adjust to call
9382 target_process_qsupported once, passing it a vector of unprocessed
9384 * target.h (struct target_ops) <process_qsupported>: Change
9386 (target_process_qsupported): Adjust.
9388 2015-11-19 Pedro Alves <palves@redhat.com>
9390 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9392 * configure: Regenerate.
9394 2015-11-19 Pedro Alves <palves@redhat.com>
9396 * configure: Regenerate.
9398 2015-11-19 Yao Qi <yao.qi@linaro.org>
9400 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9403 2015-11-19 Yao Qi <yao.qi@linaro.org>
9405 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9406 (struct aarch64_operand): Move enum out.
9408 2015-11-19 Yao Qi <yao.qi@linaro.org>
9410 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9411 struct user_fpsimd_state *.
9412 (aarch64_store_fpregset): Likewise.
9414 2015-11-19 Yao Qi <yao.qi@linaro.org>
9416 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9417 struct user_pt_regs *.
9418 (aarch64_store_gregset): Likewise.
9420 2015-11-18 Pedro Alves <palves@redhat.com>
9422 * Makefile.in (all_object_files): Add $IPA_OBJS.
9424 2015-11-17 Pedro Alves <palves@redhat.com>
9426 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9427 GDB_SIGNAL_0 and gdb_signal_to_string.
9429 2015-11-17 Pedro Alves <palves@redhat.com>
9431 * win32-low.c (handle_output_debug_string): Remove parameter.
9432 (win32_kill): Remove our_status local and adjust call to
9433 handle_output_debug_string.
9434 (get_child_debug_event): Adjust call to
9435 handle_output_debug_string.
9437 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9439 * linux-mips-low.c (mips_fill_gregset): Add cast.
9440 (mips_store_gregset): Likewise.
9441 (mips_fill_fpregset): Likewise.
9442 (mips_store_fpregset): Likewise.
9444 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9446 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9449 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9451 * linux-mips-low.c (mips_linux_new_thread): Change type of
9452 watch_type to enum target_hw_bp_type.
9454 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9456 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9457 Change return type to arm_hwbp_type.
9459 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9461 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9462 (arm_store_gregset): Likewise.
9463 * linux-arm-low.c (arm_get_hwcap): Likewise.
9464 (arm_read_description): Likewise.
9466 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9468 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9470 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9472 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9473 (ppc_fill_vsxregset): Likewise.
9474 (ppc_store_vsxregset): Likewise.
9475 (ppc_fill_vrregset): Likewise.
9476 (ppc_store_vrregset): Likewise.
9477 (ppc_fill_evrregset): Likewise.
9478 (ppc_store_evrregset): Likewise.
9480 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9482 * linux-ppc-low.c (ppc_usrregs_info): Remove
9483 forward-declaration.
9484 (ppc_arch_setup): Move lower in file.
9486 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9488 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9489 (ps_pdwrite): Likewise.
9491 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9493 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9494 to after assert checks.
9496 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9498 * proc-service.c (ps_pdread): Add/adjust casts.
9499 (ps_pdwrite): Add/adjust casts.
9501 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9503 * server.c (handle_search_memory_1): Cast return value of
9506 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9508 * server.c (write_qxfer_response): Change type of data to
9511 2015-10-29 Pedro Alves <palves@redhat.com>
9513 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9515 2015-10-29 Pedro Alves <palves@redhat.com>
9517 * tracepoint.c (clear_installed_tracepoints): Add casts.
9519 2015-10-29 Pedro Alves <palves@redhat.com>
9521 * server.c (handle_v_cont, process_serial_event): Add enum
9522 gdb_signal casts to signal parsing code.
9524 2015-10-29 Pedro Alves <palves@redhat.com>
9526 * linux-low.h (NULL_REGSET): Define.
9527 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9528 * linux-arm-low.c (arm_regsets): Likewise.
9529 * linux-crisv32-low.c (cris_regsets): Likewise.
9530 * linux-m68k-low.c (m68k_regsets): Likewise.
9531 * linux-mips-low.c (mips_regsets): Likewise.
9532 * linux-nios2-low.c (nios2_regsets): Likewise.
9533 * linux-ppc-low.c (ppc_regsets): Likewise.
9534 * linux-s390-low.c (s390_regsets): Likewise.
9535 * linux-sh-low.c (sh_regsets): Likewise.
9536 * linux-sparc-low.c (sparc_regsets): Likewise.
9537 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9538 * linux-tile-low.c (tile_regsets): Likewise.
9539 * linux-x86-low.c (x86_regsets): Likewise.
9540 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9542 2015-10-29 Pedro Alves <palves@redhat.com>
9544 * linux-low.h (NULL_REGSET): Define.
9545 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9546 * linux-arm-low.c (arm_regsets): Likewise.
9547 * linux-crisv32-low.c (cris_regsets): Likewise.
9548 * linux-m68k-low.c (m68k_regsets): Likewise.
9549 * linux-mips-low.c (mips_regsets): Likewise.
9550 * linux-nios2-low.c (nios2_regsets): Likewise.
9551 * linux-ppc-low.c (ppc_regsets): Likewise.
9552 * linux-s390-low.c (s390_regsets): Likewise.
9553 * linux-sh-low.c (sh_regsets): Likewise.
9554 * linux-sparc-low.c (sparc_regsets): Likewise.
9555 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9556 * linux-tile-low.c (tile_regsets): Likewise.
9557 * linux-x86-low.c (x86_regsets): Likewise.
9558 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9560 2015-10-26 Doug Evans <dje@google.com>
9562 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9564 2015-10-26 Doug Evans <dje@google.com>
9566 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9568 2015-10-26 Doug Evans <dje@google.com>
9570 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9572 (attach_thread, find_new_threads_callback): Ditto.
9574 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9576 * mem-break.h (set_breakpoint_data): Remove.
9578 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9580 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9581 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9582 (initialize_low): Remove set_breakpoint_data call.
9583 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9584 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9585 (initialize_low): Remove set_breakpoint_data call.
9586 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9587 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9588 (initialize_low): Remove set_breakpoint_data call.
9590 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9592 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9593 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9594 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9595 * target.h (target_breakpoint_kind_from_pc): New macro.
9597 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9599 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9600 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9601 the default breakpoint kind.
9603 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9605 * linux-arm-low.c (arm_supports_z_point_type): Add software
9608 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9610 * linux-arm-low.c: Refactor breakpoint definitions.
9611 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9612 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9614 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9616 * Makefile.in: Add arm.c/o.
9617 * configure.srv: Likewise.
9618 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9619 (arm_breakpoint_kind_from_pc): New function.
9620 (arm_sw_breakpoint_from_kind): Return proper kind.
9621 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9623 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9625 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9627 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9628 (struct raw_breakpoint) <size>: Remove.
9629 (struct raw_breakpoint) <kind>: Add.
9630 (bp_size): New function.
9631 (bp_opcode): Likewise.
9632 (find_raw_breakpoint_at): Adjust for kind.
9633 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9634 (remove_memory_breakpoint): Adjust for kind call bp_size.
9635 (set_raw_breakpoint_at): Adjust for kind.
9636 (set_breakpoint): Likewise.
9637 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9638 (delete_raw_breakpoint): Adjust for kind.
9639 (delete_breakpoint): Likewise.
9640 (find_gdb_breakpoint): Likewise.
9641 (set_gdb_breakpoint_1): Likewise.
9642 (set_gdb_breakpoint): Likewise.
9643 (delete_gdb_breakpoint_1): Likewise.
9644 (delete_gdb_breakpoint): Likewise.
9645 (uninsert_raw_breakpoint): Likewise.
9646 (reinsert_raw_breakpoint): Likewise.
9647 (set_breakpoint_data): Remove.
9648 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9649 (check_mem_read): Adjust for kind call bp_size.
9650 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9651 (clone_one_breakpoint): Adjust for kind.
9652 * mem-break.h (set_gdb_breakpoint): Likewise.
9653 (delete_gdb_breakpoint): Likewise.
9654 * server.c (process_serial_event): Likewise.
9656 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9658 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9659 (struct linux_target_ops) <breakpoint>: Remove.
9660 (struct linux_target_ops) <breakpoint_len>: Remove.
9661 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9662 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9663 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9664 (arm_sw_breakpoint_from_kind): New function.
9665 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9666 (struct linux_target_ops) <breakpoint>: Remove.
9667 (struct linux_target_ops) <breakpoint_len>: Remove.
9668 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9669 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9670 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9671 (struct linux_target_ops) <breakpoint>: Remove.
9672 (struct linux_target_ops) <breakpoint_len>: Remove.
9673 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9674 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9675 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9676 (struct linux_target_ops) <breakpoint>: Remove.
9677 (struct linux_target_ops) <breakpoint_len>: Remove.
9678 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9679 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9680 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9681 and sw_breakpoint_from_kind to increment the pc.
9682 (linux_breakpoint_kind_from_pc): New function.
9683 (linux_sw_breakpoint_from_kind): New function.
9684 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9685 (initialize_low): Call breakpoint_kind_from_pc and
9686 sw_breakpoint_from_kind to replace breakpoint_data/len.
9687 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9689 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9690 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9691 (struct linux_target_ops) <breakpoint>: Remove.
9692 (struct linux_target_ops) <breakpoint_len>: Remove.
9693 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9694 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9695 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9696 (struct linux_target_ops) <breakpoint>: Remove.
9697 (struct linux_target_ops) <breakpoint_len>: Remove.
9698 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9699 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9700 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9701 (struct linux_target_ops) <breakpoint>: Remove.
9702 (struct linux_target_ops) <breakpoint_len>: Remove.
9703 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9704 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9705 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9706 (struct linux_target_ops) <breakpoint>: Remove.
9707 (struct linux_target_ops) <breakpoint_len>: Remove.
9708 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9709 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9710 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9711 (struct linux_target_ops) <breakpoint>: Remove.
9712 (struct linux_target_ops) <breakpoint_len>: Remove.
9713 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9714 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9715 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9716 (struct linux_target_ops) <breakpoint>: Remove.
9717 (struct linux_target_ops) <breakpoint_len>: Remove.
9718 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9719 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9720 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9721 (struct linux_target_ops) <breakpoint>: Remove.
9722 (struct linux_target_ops) <breakpoint_len>: Remove.
9723 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9724 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9725 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9726 (struct linux_target_ops) <breakpoint>: Remove.
9727 (struct linux_target_ops) <breakpoint_len>: Remove.
9728 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9729 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9730 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9731 (struct linux_target_ops) <breakpoint>: Remove.
9732 (struct linux_target_ops) <breakpoint_len>: Remove.
9733 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9734 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9735 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9736 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9737 (struct linux_target_ops) <breakpoint>: Remove.
9738 (struct linux_target_ops) <breakpoint_len>: Remove.
9739 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9740 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9741 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9742 (struct linux_target_ops) <breakpoint>: Remove.
9743 (struct linux_target_ops) <breakpoint_len>: Remove.
9744 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9745 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9747 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9749 * linux-cris-low.c (cris_get_pc): Remove void arg.
9751 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9753 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9756 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9758 * inferiors.c (thread_pid_matches_callback): New function.
9759 (find_thread_process): New function.
9760 (remove_thread): Reset current_thread.
9761 (remove_process): Assert threads have been removed first.
9763 2015-10-15 Yao Qi <yao.qi@linaro.org>
9765 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9767 (aarch64_remove_point): Likewise.
9768 * regcache.c (regcache_register_size): New function.
9770 2015-10-12 Yao Qi <yao.qi@linaro.org>
9772 * linux-aarch64-low.c: Update all callers as emit_load_store
9773 is renamed to aarch64_emit_load_store.
9775 2015-10-12 Yao Qi <yao.qi@linaro.org>
9777 * linux-aarch64-low.c: Update all callers of function renaming
9778 from emit_insn to aarch64_emit_insn.
9780 2015-10-12 Yao Qi <yao.qi@linaro.org>
9782 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9783 arch/aarch64-insn.h.
9784 (struct aarch64_memory_operand): Likewise.
9786 (emit_insn): Move to arch/aarch64-insn.c.
9787 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9788 (emit_load_store): Move to arch/aarch64-insn.c.
9789 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9790 (can_encode_int32): Remove.
9792 2015-10-12 Yao Qi <yao.qi@linaro.org>
9794 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9795 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9796 (aarch64_relocate_instruction): Likewise.
9797 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9798 (struct aarch64_insn_visitor): Likewise.
9800 2015-10-12 Yao Qi <yao.qi@linaro.org>
9802 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9803 (struct aarch64_insn_visitor): New.
9804 (struct aarch64_insn_relocation_data): New.
9805 (aarch64_ftrace_insn_reloc_b): New function.
9806 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9807 (aarch64_ftrace_insn_reloc_cb): Likewise.
9808 (aarch64_ftrace_insn_reloc_tb): Likewise.
9809 (aarch64_ftrace_insn_reloc_adr): Likewise.
9810 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9811 (aarch64_ftrace_insn_reloc_others): Likewise.
9813 (aarch64_relocate_instruction): Use visitor.
9815 2015-10-12 Yao Qi <yao.qi@linaro.org>
9817 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9818 int. Add argument buf.
9819 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9820 aarch64_relocate_instruction.
9822 2015-10-12 Yao Qi <yao.qi@linaro.org>
9824 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9825 argument insn. Remove local variable insn. Don't call
9827 (aarch64_install_fast_tracepoint_jump_pad): Call
9830 2015-09-30 Yao Qi <yao.qi@linaro.org>
9832 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9833 (emit_load_store_pair): Likewise.
9835 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9837 * dll.c (match_dll): Add cast(s).
9838 (unloaded_dll): Likewise.
9839 * linux-low.c (second_thread_of_pid_p): Likewise.
9840 (delete_lwp_callback): Likewise.
9841 (count_events_callback): Likewise.
9842 (select_event_lwp_callback): Likewise.
9843 (linux_set_resume_request): Likewise.
9844 * server.c (accumulate_file_name_length): Likewise.
9845 (emit_dll_description): Likewise.
9846 (handle_qxfer_threads_worker): Likewise.
9847 (visit_actioned_threads): Likewise.
9848 * thread-db.c (any_thread_of): Likewise.
9849 * tracepoint.c (same_process_p): Likewise.
9850 (match_blocktype): Likewise.
9851 (build_traceframe_info_xml): Likewise.
9853 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9855 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9857 (gdb_unparse_agent_expr): Likewise.
9858 * hostio.c (require_data): Likewise.
9859 (handle_pread): Likewise.
9860 * linux-low.c (disable_regset): Likewise.
9861 (fetch_register): Likewise.
9862 (store_register): Likewise.
9863 (get_dynamic): Likewise.
9864 (linux_qxfer_libraries_svr4): Likewise.
9865 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9866 (set_fast_tracepoint_jump): Likewise.
9867 (uninsert_fast_tracepoint_jumps_at): Likewise.
9868 (reinsert_fast_tracepoint_jumps_at): Likewise.
9869 (validate_inserted_breakpoint): Likewise.
9870 (clone_agent_expr): Likewise.
9871 * regcache.c (init_register_cache): Likewise.
9872 * remote-utils.c (putpkt_binary_1): Likewise.
9873 (decode_M_packet): Likewise.
9874 (decode_X_packet): Likewise.
9875 (look_up_one_symbol): Likewise.
9876 (relocate_instruction): Likewise.
9877 (monitor_output): Likewise.
9878 * server.c (handle_search_memory): Likewise.
9879 (handle_qxfer_exec_file): Likewise.
9880 (handle_qxfer_libraries): Likewise.
9881 (handle_qxfer): Likewise.
9882 (handle_query): Likewise.
9883 (handle_v_cont): Likewise.
9884 (handle_v_run): Likewise.
9885 (captured_main): Likewise.
9886 * target.c (write_inferior_memory): Likewise.
9887 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9888 * tracepoint.c (init_trace_buffer): Likewise.
9889 (add_tracepoint_action): Likewise.
9890 (add_traceframe): Likewise.
9891 (add_traceframe_block): Likewise.
9892 (cmd_qtdpsrc): Likewise.
9893 (cmd_qtdv): Likewise.
9894 (cmd_qtstatus): Likewise.
9895 (response_source): Likewise.
9896 (response_tsv): Likewise.
9897 (cmd_qtnotes): Likewise.
9898 (gdb_collect): Likewise.
9899 (initialize_tracepoint): Likewise.
9901 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9903 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9904 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9905 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9907 (enum aarch64_condition_codes): New enum.
9908 (w0): New static global.
9911 (struct aarch64_memory_operand) <type>: New
9912 MEMORY_OPERAND_POSTINDEX type.
9913 (postindex_memory_operand): New helper function.
9914 (emit_ret): New function.
9915 (emit_load_store_pair): New function, factored out of emit_stp
9916 with support for MEMORY_OPERAND_POSTINDEX.
9917 (emit_stp): Rewrite using emit_load_store_pair.
9918 (emit_ldp): New function.
9919 (emit_load_store): Likewise.
9920 (emit_ldr): Mention post-index instruction in comment.
9921 (emit_ldrh): New function.
9922 (emit_ldrb): New function.
9923 (emit_ldrsw): Mention post-index instruction in comment.
9924 (emit_str): Likewise.
9925 (emit_subs): New function.
9926 (emit_cmp): Likewise.
9927 (emit_and): Likewise.
9928 (emit_orr): Likewise.
9929 (emit_orn): Likewise.
9930 (emit_eor): Likewise.
9931 (emit_mvn): Likewise.
9932 (emit_lslv): Likewise.
9933 (emit_lsrv): Likewise.
9934 (emit_asrv): Likewise.
9935 (emit_mul): Likewise.
9936 (emit_sbfm): Likewise.
9937 (emit_sbfx): Likewise.
9938 (emit_ubfm): Likewise.
9939 (emit_ubfx): Likewise.
9940 (emit_csinc): Likewise.
9941 (emit_cset): Likewise.
9942 (emit_nop): Likewise.
9943 (emit_ops_insns): New helper function.
9944 (emit_pop): Likewise.
9945 (emit_push): Likewise.
9946 (aarch64_emit_prologue): New function.
9947 (aarch64_emit_epilogue): Likewise.
9948 (aarch64_emit_add): Likewise.
9949 (aarch64_emit_sub): Likewise.
9950 (aarch64_emit_mul): Likewise.
9951 (aarch64_emit_lsh): Likewise.
9952 (aarch64_emit_rsh_signed): Likewise.
9953 (aarch64_emit_rsh_unsigned): Likewise.
9954 (aarch64_emit_ext): Likewise.
9955 (aarch64_emit_log_not): Likewise.
9956 (aarch64_emit_bit_and): Likewise.
9957 (aarch64_emit_bit_or): Likewise.
9958 (aarch64_emit_bit_xor): Likewise.
9959 (aarch64_emit_bit_not): Likewise.
9960 (aarch64_emit_equal): Likewise.
9961 (aarch64_emit_less_signed): Likewise.
9962 (aarch64_emit_less_unsigned): Likewise.
9963 (aarch64_emit_ref): Likewise.
9964 (aarch64_emit_if_goto): Likewise.
9965 (aarch64_emit_goto): Likewise.
9966 (aarch64_write_goto_address): Likewise.
9967 (aarch64_emit_const): Likewise.
9968 (aarch64_emit_call): Likewise.
9969 (aarch64_emit_reg): Likewise.
9970 (aarch64_emit_pop): Likewise.
9971 (aarch64_emit_stack_flush): Likewise.
9972 (aarch64_emit_zero_ext): Likewise.
9973 (aarch64_emit_swap): Likewise.
9974 (aarch64_emit_stack_adjust): Likewise.
9975 (aarch64_emit_int_call_1): Likewise.
9976 (aarch64_emit_void_call_2): Likewise.
9977 (aarch64_emit_eq_goto): Likewise.
9978 (aarch64_emit_ne_goto): Likewise.
9979 (aarch64_emit_lt_goto): Likewise.
9980 (aarch64_emit_le_goto): Likewise.
9981 (aarch64_emit_gt_goto): Likewise.
9982 (aarch64_emit_ge_got): Likewise.
9983 (aarch64_emit_ops_impl): New static global variable.
9984 (aarch64_emit_ops): New target function, return
9985 &aarch64_emit_ops_impl.
9986 (struct linux_target_ops): Install it.
9988 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9990 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9991 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9993 * linux-aarch64-ipa.c: New file.
9994 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9996 (aarch64_get_thread_area): New target method.
9997 (extract_signed_bitfield): New helper function.
9998 (aarch64_decode_ldr_literal): New function.
9999 (enum aarch64_opcodes): New enum.
10000 (struct aarch64_register): New struct.
10001 (struct aarch64_operand): New struct.
10002 (x0): New static global.
10011 (aarch64_register): New helper function.
10012 (register_operand): Likewise.
10013 (immediate_operand): Likewise.
10014 (struct aarch64_memory_operand): New struct.
10015 (offset_memory_operand): New helper function.
10016 (preindex_memory_operand): Likewise.
10017 (enum aarch64_system_control_registers): New enum.
10018 (ENCODE): New macro.
10019 (emit_insn): New helper function.
10020 (emit_b): New function.
10021 (emit_bcond): Likewise.
10022 (emit_cb): Likewise.
10023 (emit_tb): Likewise.
10024 (emit_blr): Likewise.
10025 (emit_stp): Likewise.
10026 (emit_ldp_q_offset): Likewise.
10027 (emit_stp_q_offset): Likewise.
10028 (emit_load_store): Likewise.
10029 (emit_ldr): Likewise.
10030 (emit_ldrsw): Likewise.
10031 (emit_str): Likewise.
10032 (emit_ldaxr): Likewise.
10033 (emit_stxr): Likewise.
10034 (emit_stlr): Likewise.
10035 (emit_data_processing_reg): Likewise.
10036 (emit_data_processing): Likewise.
10037 (emit_add): Likewise.
10038 (emit_sub): Likewise.
10039 (emit_mov): Likewise.
10040 (emit_movk): Likewise.
10041 (emit_mov_addr): Likewise.
10042 (emit_mrs): Likewise.
10043 (emit_msr): Likewise.
10044 (emit_sevl): Likewise.
10045 (emit_wfe): Likewise.
10046 (append_insns): Likewise.
10047 (can_encode_int32_in): New helper function.
10048 (aarch64_relocate_instruction): New function.
10049 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10050 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10051 (struct linux_target_ops): Install aarch64_get_thread_area,
10052 aarch64_install_fast_tracepoint_jump_pad and
10053 aarch64_get_min_fast_tracepoint_insn_len.
10055 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10057 * Makefile.in (aarch64-insn.o): New rule.
10058 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10060 2015-09-21 Yao Qi <yao.qi@linaro.org>
10062 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10064 2015-09-21 Yao Qi <yao.qi@linaro.org>
10066 * tracepoint.c (max_jump_pad_size): Remove.
10068 2015-09-18 Yao Qi <yao.qi@linaro.org>
10070 * linux-aarch64-low.c: Don't include sys/uio.h.
10071 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10073 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10075 * tracepoint.c (eval_result_type): Change prototype.
10076 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10078 2015-09-15 Pedro Alves <palves@redhat.com>
10080 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10081 Check whether to report exec events instead of checking whether
10082 multiprocess is enabled.
10084 2015-09-15 Pedro Alves <palves@redhat.com>
10087 * remote-utils.c (prepare_resume_reply): Merge
10088 TARGET_WAITKIND_VFORK_DONE switch case with the
10089 TARGET_WAITKIND_FORKED case.
10091 2015-09-15 Yao Qi <yao.qi@linaro.org>
10093 * server.c (handle_query): Check string comparison using
10094 "else if" instead of "if".
10096 2015-09-15 Yao Qi <yao.qi@linaro.org>
10098 * server.c (vCont_supported): New global variable.
10099 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10100 matches. Append ";vContSupported+" to own_buf.
10101 (handle_v_requests): Append ";s;S" to own_buf if target supports
10102 hardware single step or vCont_supported is false.
10103 (capture_main): Set vCont_supported to zero.
10105 2015-09-15 Yao Qi <yao.qi@linaro.org>
10107 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10109 (linux_supports_hardware_single_step): ... New function.
10110 (linux_target_ops): Update.
10111 * lynx-low.c (lynx_target_ops): Set field
10112 supports_hardware_single_step to target_can_do_hardware_single_step.
10113 * nto-low.c (nto_target_ops): Likewise.
10114 * spu-low.c (spu_target_ops): Likewise.
10115 * win32-low.c (win32_target_ops): Likewise.
10116 * target.c (target_can_do_hardware_single_step): New function.
10117 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10118 Remove. <supports_hardware_single_step>: New field.
10119 (target_supports_conditional_breakpoints): Remove.
10120 (target_supports_hardware_single_step): New macro.
10121 (target_can_do_hardware_single_step): Declare.
10122 * server.c (handle_query): Use target_supports_hardware_single_step
10123 instead of target_supports_conditional_breakpoints.
10125 2015-09-15 Yao Qi <yao.qi@linaro.org>
10127 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10129 (struct linux_target_ops the_low_target): Install
10130 aarch64_linux_siginfo_fixup.
10132 2015-09-11 Don Breazeal <donb@codesourcery.com>
10133 Luis Machado <lgustavo@codesourcery.com>
10135 * linux-low.c (linux_mourn): Static declaration.
10136 (linux_arch_setup): Move in front of
10137 handle_extended_wait.
10138 (linux_arch_setup_thread): New function.
10139 (handle_extended_wait): Handle exec events. Call
10140 linux_arch_setup_thread. Make event_lwp argument a
10141 pointer-to-a-pointer.
10142 (check_zombie_leaders): Do not check stopped threads.
10143 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10144 (linux_low_filter_event): Add lwp and thread for exec'ing
10145 non-leader thread if leader thread has been deleted.
10146 Refactor code into linux_arch_setup_thread and call it.
10147 Pass child lwp pointer by reference to handle_extended_wait.
10148 (linux_wait_for_event_filtered): Update comment.
10149 (linux_wait_1): Prevent clobbering exec event status.
10150 (linux_supports_exec_events): New function.
10151 (linux_target_ops) <supports_exec_events>: Initialize new member.
10152 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10154 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10155 * server.c (report_exec_events): New global variable.
10156 (handle_query): Handle qSupported query for exec-events feature.
10157 (captured_main): Initialize report_exec_events.
10158 * server.h (report_exec_events): Declare new global variable.
10159 * target.h (struct target_ops) <supports_exec_events>: New
10161 (target_supports_exec_events): New macro.
10162 * win32-low.c (win32_target_ops) <supports_exec_events>:
10163 Initialize new member.
10165 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10167 * linux-low.c (linux_low_enable_btrace): Remove.
10168 (linux_target_ops): Replace linux_low_enable_btrace with
10169 linux_enable_btrace.
10171 2015-09-03 Yao Qi <yao.qi@linaro.org>
10173 * linux-aarch64-low.c (aarch64_insert_point): Call
10174 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10177 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10179 * linux-low.c (check_stopped_by_breakpoint): Use
10180 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10182 2015-08-27 Pedro Alves <palves@redhat.com>
10184 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10186 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10188 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10189 the XNEW-family equivalent.
10190 (compile_bytecodes): Likewise.
10191 * dll.c (loaded_dll): Likewise.
10192 * event-loop.c (append_callback_event): Likewise.
10193 (create_file_handler): Likewise.
10194 (create_file_event): Likewise.
10195 * hostio.c (handle_open): Likewise.
10196 * inferiors.c (add_thread): Likewise.
10197 (add_process): Likewise.
10198 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10199 * linux-arm-low.c (arm_new_process): Likewise.
10200 (arm_new_thread): Likewise.
10201 * linux-low.c (add_to_pid_list): Likewise.
10202 (linux_add_process): Likewise.
10203 (handle_extended_wait): Likewise.
10204 (add_lwp): Likewise.
10205 (enqueue_one_deferred_signal): Likewise.
10206 (enqueue_pending_signal): Likewise.
10207 (linux_resume_one_lwp_throw): Likewise.
10208 (linux_resume_one_thread): Likewise.
10209 (linux_read_memory): Likewise.
10210 (linux_write_memory): Likewise.
10211 * linux-mips-low.c (mips_linux_new_process): Likewise.
10212 (mips_linux_new_thread): Likewise.
10213 (mips_add_watchpoint): Likewise.
10214 * linux-x86-low.c (initialize_low_arch): Likewise.
10215 * lynx-low.c (lynx_add_process): Likewise.
10216 * mem-break.c (set_raw_breakpoint_at): Likewise.
10217 (set_breakpoint): Likewise.
10218 (add_condition_to_breakpoint): Likewise.
10219 (add_commands_to_breakpoint): Likewise.
10220 (clone_agent_expr): Likewise.
10221 (clone_one_breakpoint): Likewise.
10222 * regcache.c (new_register_cache): Likewise.
10223 * remote-utils.c (look_up_one_symbol): Likewise.
10224 * server.c (queue_stop_reply): Likewise.
10225 (start_inferior): Likewise.
10226 (queue_stop_reply_callback): Likewise.
10227 (handle_target_event): Likewise.
10228 * spu-low.c (fetch_ppc_memory): Likewise.
10229 (store_ppc_memory): Likewise.
10230 * target.c (set_target_ops): Likewise.
10231 * thread-db.c (thread_db_load_search): Likewise.
10232 (try_thread_db_load_1): Likewise.
10233 * tracepoint.c (add_tracepoint): Likewise.
10234 (add_tracepoint_action): Likewise.
10235 (create_trace_state_variable): Likewise.
10236 (cmd_qtdpsrc): Likewise.
10237 (cmd_qtro): Likewise.
10238 (add_while_stepping_state): Likewise.
10239 * win32-low.c (child_add_thread): Likewise.
10240 (get_image_name): Likewise.
10242 2015-08-25 Yao Qi <yao.qi@linaro.org>
10244 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10246 2015-08-25 Yao Qi <yao.qi@linaro.org>
10248 * Makefile.in (aarch64-linux.o): New rule.
10249 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10251 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10252 (aarch64_init_debug_reg_state): Make it extern.
10253 (aarch64_linux_prepare_to_resume): Remove.
10255 2015-08-25 Yao Qi <yao.qi@linaro.org>
10257 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10258 lwp_arch_private_info and ptid_of_lwp.
10260 2015-08-25 Yao Qi <yao.qi@linaro.org>
10262 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10263 Find proc_info by find_process_pid. All callers updated.
10265 2015-08-25 Yao Qi <yao.qi@linaro.org>
10267 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10269 (debug_reg_change_callback): Remove.
10270 (aarch64_notify_debug_reg_change): Remove.
10272 2015-08-25 Yao Qi <yao.qi@linaro.org>
10274 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10275 Call current_lwp_ptid.
10277 2015-08-25 Yao Qi <yao.qi@linaro.org>
10279 * linux-aarch64-low.c (debug_reg_change_callback): Use
10282 2015-08-25 Yao Qi <yao.qi@linaro.org>
10284 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10286 2015-08-25 Yao Qi <yao.qi@linaro.org>
10288 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10290 2015-08-25 Yao Qi <yao.qi@linaro.org>
10292 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10295 2015-08-25 Yao Qi <yao.qi@linaro.org>
10297 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10299 (debug_reg_change_callback): Remove argument entry and add argument
10300 lwp. Remove local variable thread. Don't print thread id in the
10301 debugging output. Don't check whether pid of thread equals to pid.
10302 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10303 iterate_over_lwps instead find_inferior.
10305 2015-08-24 Pedro Alves <palves@redhat.com>
10307 * inferiors.c (get_first_process): New function.
10308 * inferiors.h (get_first_process): New declaration.
10309 * remote-utils.c (read_ptid): Default to the first process in the
10310 list, instead of to the current thread's process.
10312 2015-08-24 Pedro Alves <palves@redhat.com>
10314 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10315 * event-loop.c: Likewise.
10316 * remote-utils.c: Likewise.
10317 * tracepoint.c: Likewise.
10319 2015-08-24 Pedro Alves <palves@redhat.com>
10321 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10324 2015-08-21 Pedro Alves <palves@redhat.com>
10326 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10327 instead of literal 1.
10329 2015-08-21 Pedro Alves <palves@redhat.com>
10331 * tdesc.c (default_description): Explicitly zero-initialize.
10333 2015-08-21 Pedro Alves <palves@redhat.com>
10336 * inferiors.c (remove_thread): Discard any pending stop reply for
10338 * server.c (remove_all_on_match_pid): Rename to ...
10339 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10341 (discard_queued_stop_replies): Change parameter to a ptid. Now
10343 (handle_v_kill, kill_inferior_callback, captured_main)
10344 (process_serial_event): Adjust.
10345 * server.h (discard_queued_stop_replies): Declare.
10347 2015-08-21 Pedro Alves <palves@redhat.com>
10349 * linux-low.c (wait_for_sigstop): Always switch to no thread
10350 selected if the previously current thread dies.
10351 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10352 process instead of the current thread's.
10353 * remote-utils.c (input_interrupt): Don't check if there's no
10355 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10356 current thread to the general thread fails, error out.
10357 (handle_qxfer_auxv, handle_qxfer_libraries)
10358 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10359 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10360 (handle_query): Check if there's a thread selected instead of
10361 checking whether there's any thread in the thread list.
10362 (handle_qxfer_threads, handle_qxfer_btrace)
10363 (handle_qxfer_btrace_conf): Don't error out early if there's no
10364 thread in the thread list.
10365 (handle_v_cont, myresume): Don't set the current thread to the
10367 (process_serial_event) <Hg handling>: Also set thread_id if the
10368 previous general thread is still alive.
10369 (process_serial_event) <g/G handling>: If setting the current
10370 thread to the general thread fails, error out.
10371 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10372 thread's lwp instead of the current thread's.
10373 * target.c (set_desired_thread): If the desired thread was not
10374 found, leave the current thread pointing to NULL. Return an int
10375 (boolean) indicating success.
10376 * target.h (set_desired_thread): Change return type to int.
10378 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10380 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10381 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10383 (ps_get_thread_area): New function.
10385 2015-08-19 Gary Benson <gbenson@redhat.com>
10387 * hostio.c (handle_pread): Do not attempt to read more data
10388 than hostio_reply_with_data can fit in a packet.
10390 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10392 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10394 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10396 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10398 2015-08-06 Pedro Alves <palves@redhat.com>
10400 * tracepoint.c (expr_eval_result): Now an int.
10402 2015-08-06 Pedro Alves <palves@redhat.com>
10404 * gdbthread.h (struct regcache): Forward declare.
10405 (struct thread_info) <regcache_data>: Now a struct regcache
10407 * inferiors.c (inferior_regcache_data)
10408 (set_inferior_regcache_data): Now work with struct regcache
10410 * inferiors.h (struct regcache): Forward declare.
10411 (inferior_regcache_data, set_inferior_regcache_data): Now work
10412 with struct regcache pointers.
10413 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10414 (free_register_cache_thread): Remove struct regcache pointer
10417 2015-08-06 Pedro Alves <palves@redhat.com>
10419 * server.c (captured_main): On error, print the exception message
10420 to stderr, and if run_once is set, throw a quit.
10422 2015-08-06 Pedro Alves <palves@redhat.com>
10424 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10425 the current thread.
10427 2015-08-06 Pedro Alves <palves@redhat.com>
10429 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10430 reading beyond the passed in buffer length.
10432 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10434 * tracepoint.c (symbol_list) <required>: Remove.
10436 2015-08-06 Pedro Alves <palves@redhat.com>
10438 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10439 count if stopping and suspending threads.
10440 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10441 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10442 (linux_detach): Complete an ongoing step-over.
10443 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10445 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10446 (linux_wait_1): If passing a signal to the inferior after
10447 finishing a step-over, unsuspend and re-resume all lwps. If we
10448 see a single-step event but the thread should be continuing, don't
10449 pass the trap to gdb.
10450 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10451 internal_error instead of gdb_assert.
10452 (enqueue_pending_signal): New function.
10453 (check_ptrace_stopped_lwp_gone): Add debug output.
10454 (start_step_over): Use internal_error instead of gdb_assert.
10455 (complete_ongoing_step_over): New function.
10456 (linux_resume_one_thread): Don't resume a suspended thread.
10457 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10460 2015-08-06 Pedro Alves <palves@redhat.com>
10462 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10463 (linux_thread_alive): Use lwp_is_marked_dead.
10464 (extended_event_reported): Delete.
10465 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10466 instead of extended_event_reported.
10467 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10469 (lwp_is_marked_dead): New function.
10470 (lwp_running): Use lwp_is_marked_dead.
10471 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10474 2015-08-06 Pedro Alves <palves@redhat.com>
10476 * linux-low.c (linux_wait_1): Move fork event output out of the
10477 !report_to_gdb check. Pass event_child->waitstatus to
10478 target_waitstatus_to_string instead of ourstatus.
10480 2015-08-04 Yao Qi <yao.qi@linaro.org>
10482 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10483 if current_thread is 32 bit.
10485 2015-08-04 Yao Qi <yao.qi@linaro.org>
10487 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10488 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10489 * server.c (extended_protocol): Remove "static".
10490 * server.h (extended_protocol): Declare it.
10492 2015-08-04 Yao Qi <yao.qi@linaro.org>
10494 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10495 both aarch64 and aarch32.
10496 (aarch64_set_pc): Likewise.
10498 2015-08-04 Yao Qi <yao.qi@linaro.org>
10500 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10501 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10502 arm-with-neon.xml to srv_xmlfiles.
10503 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10504 (is_64bit_tdesc): New function.
10505 (aarch64_linux_read_description): New function.
10506 (aarch64_arch_setup): Call aarch64_linux_read_description.
10507 (regs_info): Rename to regs_info_aarch64.
10508 (aarch64_regs_info): Return right regs_info.
10509 (initialize_low_arch): Call initialize_low_arch_aarch32.
10511 2015-08-04 Yao Qi <yao.qi@linaro.org>
10513 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10514 * linux-aarch32-low.c: New file.
10515 * linux-aarch32-low.h: New file.
10516 * linux-arm-low.c (arm_fill_gregset): Move it to
10517 linux-aarch32-low.c.
10518 (arm_store_gregset): Likewise.
10519 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10520 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10521 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10522 (regs_info): Rename to regs_info_arm.
10523 (arm_regs_info): Return regs_info_aarch32 if
10524 have_ptrace_getregset is 1 and target description is
10525 arm_with_neon or arm_with_vfpv3.
10526 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10527 Call initialize_low_arch_aarch32 instead.
10529 2015-08-04 Yao Qi <yao.qi@linaro.org>
10531 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10532 * linux-low.c: ... here.
10533 * linux-low.h (have_ptrace_getregset): Declare it.
10535 2015-08-04 Pedro Alves <palves@redhat.com>
10537 * thread-db.c (struct thread_db): Use new typedefs.
10538 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10540 (disable_thread_event_reporting): Cast result of dlsym to
10541 destination function pointer type.
10542 (thread_db_mourn): Use td_ta_delete_ftype.
10544 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10546 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10548 (CDX_BREAKPOINT): Define for R2.
10549 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10550 (the_low_target): Add comments.
10552 2015-07-30 Yao Qi <yao.qi@linaro.org>
10554 * linux-arm-low.c (arm_hwcap): Remove it.
10555 (arm_read_description): New local variable arm_hwcap. Don't
10556 set arm_hwcap to zero.
10558 2015-07-30 Yao Qi <yao.qi@linaro.org>
10560 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10561 Use regcache->tdesc instead.
10562 (arm_store_wmmxregset): Likewise.
10563 (arm_fill_vfpregset): Likewise.
10564 (arm_store_vfpregset): Likewise.
10566 2015-07-30 Yao Qi <yao.qi@linaro.org>
10568 * linux-arm-low.c: Include arch/arm.h.
10569 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10570 (arm_store_gregset): Likewise.
10572 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10574 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10575 ptrace's 4th parameter.
10577 2015-07-27 Yao Qi <yao.qi@linaro.org>
10579 * configure.srv (case aarch64*-*-linux*): Don't set
10582 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10584 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10586 * linux-arm-low.c: Likewise.
10587 * linux-cris-low.c: Likewise.
10588 * linux-crisv32-low.c: Likewise.
10589 * linux-low.c: Likewise.
10590 * linux-m68k-low.c: Likewise.
10591 * linux-mips-low.c: Likewise.
10592 * linux-nios2-low.c: Likewise.
10593 * linux-s390-low.c: Likewise.
10594 * linux-sparc-low.c: Likewise.
10595 * linux-tic6x-low.c: Likewise.
10596 * linux-tile-low.c: Likewise.
10597 * linux-x86-low.c: Likewise.
10599 2015-07-24 Pedro Alves <palves@redhat.com>
10601 * config.in: Regenerate.
10602 * configure: Regenerate.
10604 2015-07-24 Pedro Alves <palves@redhat.com>
10606 * acinclude.m4: Include ../ptrace.m4.
10607 * configure.ac: Call GDB_AC_PTRACE.
10608 * config.in, configure: Regenerate.
10610 2015-07-24 Yao Qi <yao.qi@linaro.org>
10612 * linux-low.c (linux_create_inferior): Remove setting to
10613 proc->priv->new_inferior.
10614 (linux_attach): Likewise.
10615 (linux_low_filter_event): Likewise.
10616 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10618 2015-07-24 Yao Qi <yao.qi@linaro.org>
10620 * linux-low.c (linux_arch_setup): New function.
10621 (linux_low_filter_event): If proc->tdesc is NULL and
10622 proc->attached is true, call the_low_target.arch_setup.
10623 Otherwise, keep status pending, and return.
10624 (linux_resume_one_lwp_throw): Don't call get_pc if
10625 thread->while_stepping isn't NULL. Don't call
10626 get_thread_regcache if proc->tdesc is NULL.
10627 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10628 (linux_target_ops): Install arch_setup.
10629 * server.c (start_inferior): Call the_target->arch_setup.
10630 * target.h (struct target_ops) <arch_setup>: New field.
10631 (target_arch_setup): New marco.
10632 * lynx-low.c (lynx_target_ops): Update.
10633 * nto-low.c (nto_target_ops): Update.
10634 * spu-low.c (spu_target_ops): Update.
10635 * win32-low.c (win32_target_ops): Update.
10637 2015-07-24 Yao Qi <yao.qi@linaro.org>
10639 * linux-low.c (linux_add_process): Don't set
10640 proc->priv->new_inferior.
10641 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10642 (linux_attach): Likewise.
10644 2015-07-24 Yao Qi <yao.qi@linaro.org>
10646 * server.c (start_inferior): Code refactor.
10648 2015-07-24 Yao Qi <yao.qi@linaro.org>
10650 * server.c (process_serial_event): Set general_thread.
10652 2015-07-21 Yao Qi <yao.qi@linaro.org>
10654 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10655 aarch64_linux_get_debug_reg_capacity.
10657 2015-07-17 Yao Qi <yao.qi@linaro.org>
10659 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10660 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10661 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10662 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10663 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10664 (AARCH64_HWP_ALIGNMENT): Likewise.
10665 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10666 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10667 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10668 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10669 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10670 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10671 (struct aarch64_debug_reg_state): Likewise.
10672 (struct arch_lwp_info): Likewise.
10673 (aarch64_align_watchpoint): Likewise.
10674 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10675 (aarch64_watchpoint_length): Likewise.
10676 (aarch64_point_encode_ctrl_reg): Likewise
10677 (aarch64_point_is_aligned): Likewise.
10678 (aarch64_align_watchpoint): Likewise.
10679 (aarch64_linux_set_debug_regs):
10680 (aarch64_dr_state_insert_one_point): Likewise.
10681 (aarch64_dr_state_remove_one_point): Likewise.
10682 (aarch64_handle_breakpoint): Likewise.
10683 (aarch64_handle_aligned_watchpoint): Likewise.
10684 (aarch64_handle_unaligned_watchpoint): Likewise.
10685 (aarch64_handle_watchpoint): Likewise.
10687 2015-07-17 Yao Qi <yao.qi@linaro.org>
10689 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10690 and don't aarch64_get_debug_reg_state. All callers update.
10691 (aarch64_handle_aligned_watchpoint): Likewise.
10692 (aarch64_handle_unaligned_watchpoint): Likewise.
10693 (aarch64_handle_watchpoint): Likewise.
10694 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10695 (aarch64_remove_point): Likewise.
10697 2015-07-17 Yao Qi <yao.qi@linaro.org>
10699 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10701 (aarch64_handle_unaligned_watchpoint): Likewise.
10703 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10705 Revert the previous 3 commits:
10706 Move gdb_regex* to common/
10707 Move linux_find_memory_regions_full & co.
10708 gdbserver build-id attribute generator
10710 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10711 Jan Kratochvil <jan.kratochvil@redhat.com>
10713 gdbserver build-id attribute generator.
10714 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10715 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10716 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10718 (get_dynamic): Use find_pdhr to traverse program headers.
10719 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10720 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10721 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10722 (get_hex_build_id): New.
10723 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10724 to reply XML document.
10726 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10727 Jan Kratochvil <jan.kratochvil@redhat.com>
10729 * target.c: Include target/target-utils.h and fcntl.h.
10730 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10731 (target_fileio_read_stralloc): New functions.
10733 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10735 * Makefile.in (OBS): Add gdb_regex.o.
10736 (gdb_regex.o): New.
10737 * config.in: Rebuilt.
10738 * configure: Rebuilt.
10740 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10741 Jan Kratochvil <jan.kratochvil@redhat.com>
10743 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10744 * Makefile.in (OBS): Add target-utils.o.
10745 (linux-maps.o, target-utils.o): New.
10746 * configure.srv (srv_linux_obj): Add linux-maps.o.
10748 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10750 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10751 function, return 1.
10752 (the_low_target): Install it.
10754 2015-07-14 Pedro Alves <palves@redhat.com>
10756 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10757 Instead, ignore ECHILD, and throw an error for other errnos.
10759 2015-07-10 Pedro Alves <palves@redhat.com>
10761 * event-loop.c (struct callback_event) <data>: Change type to
10762 gdb_client_data instance instead of gdb_client_data pointer.
10763 (append_callback_event): Adjust.
10765 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10767 * linux-aarch64-low.c: Add comments for each linux_target_ops
10768 method. Remove comments already covered in target_ops and
10769 linux_target_ops definitions.
10770 (the_low_target): Add comments for each unimplemented method.
10772 2015-07-09 Yao Qi <yao.qi@linaro.org>
10774 * linux-aarch64-low.c (aarch64_regmap): Remove.
10775 (aarch64_usrregs_info): Remove.
10776 (regs_info): Set field usrregs to NULL.
10778 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10780 * linux-low.c: Include "rsp-low.h"
10781 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10782 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10783 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10784 (handle_btrace_enable_pt): New.
10785 (handle_btrace_general_set): Support "pt".
10786 (handle_btrace_conf_general_set): Support "pt:size".
10788 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10790 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10793 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10795 * linux-aarch64-low.c: Remove comment about endianness.
10796 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10797 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10800 2015-06-24 Gary Benson <gbenson@redhat.com>
10802 * linux-i386-ipa.c (stdint.h): Do not include.
10803 * lynx-i386-low.c (stdint.h): Likewise.
10804 * lynx-ppc-low.c (stdint.h): Likewise.
10805 * mem-break.c (stdint.h): Likewise.
10806 * thread-db.c (stdint.h): Likewise.
10807 * tracepoint.c (stdint.h): Likewise.
10808 * win32-low.c (stdint.h): Likewise.
10810 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10812 * server.c (write_qxfer_response): Update call to
10813 remote_escape_output.
10815 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10816 Jan Kratochvil <jan.kratochvil@redhat.com>
10818 Merge multiple hex conversions.
10819 * gdbreplay.c (tohex): Rename to 'fromhex'.
10820 (logchar): Use fromhex.
10822 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10824 * server.c (handle_qxfer_libraries): Set `version' attribute for
10827 2015-06-10 Gary Benson <gbenson@redhat.com>
10829 * target.h (struct target_ops) <multifs_open>: New field.
10830 <multifs_unlink>: Likewise.
10831 <multifs_readlink>: Likewise.
10832 * linux-low.c (nat/linux-namespaces.h): New include.
10833 (linux_target_ops): Initialize the_target->multifs_open,
10834 the_target->multifs_unlink and the_target->multifs_readlink.
10835 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10836 * hostio.c (hostio_fs_pid): New static variable.
10837 (hostio_handle_new_gdb_connection): New function.
10838 (handle_setfs): Likewise.
10839 (handle_open): Use the_target->multifs_open as appropriate.
10840 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10841 (handle_readlink): Use the_target->multifs_readlink as
10843 (handle_vFile): Handle vFile:setfs packets.
10844 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10845 after target_handle_new_gdb_connection.
10847 2015-06-10 Gary Benson <gbenson@redhat.com>
10849 * configure.ac (AC_CHECK_FUNCS): Add setns.
10850 * config.in: Regenerate.
10851 * configure: Likewise.
10852 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10853 (linux-namespaces.o): New rule.
10854 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10856 2015-06-09 Gary Benson <gbenson@redhat.com>
10858 * hostio.c (handle_open): Process mode argument with
10859 fileio_to_host_mode.
10861 2015-06-01 Yao Qi <yao.qi@linaro.org>
10863 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10864 * linux-x86-low.c: Likewise.
10866 2015-05-28 Don Breazeal <donb@codesourcery.com>
10868 * linux-low.c (handle_extended_wait): Initialize
10869 thread_info.last_resume_kind for new fork children.
10871 2015-05-15 Pedro Alves <palves@redhat.com>
10873 * target.h (target_handle_new_gdb_connection): Rewrite using if
10874 wrapped in do/while.
10876 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10878 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10879 * configure, config.in: Regenerate.
10880 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10883 2015-05-12 Don Breazeal <donb@codesourcery.com>
10885 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10886 PTRACE_EVENT_VFORK_DONE.
10887 (linux_low_ptrace_options, extended_event_reported): Add vfork
10889 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10890 and "vforkdone" for RSP 'T' Stop Reply Packet.
10891 * server.h (report_vfork_events): Declare
10894 2015-05-12 Don Breazeal <donb@codesourcery.com>
10896 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10897 (the_low_target) <new_fork>: Initialize new member.
10898 * linux-arm-low.c (arm_new_fork): New function.
10899 (the_low_target) <new_fork>: Initialize new member.
10900 * linux-low.c (handle_extended_wait): Call new target function
10902 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10903 * linux-mips-low.c (mips_add_watchpoint): New function
10904 extracted from mips_insert_point.
10905 (the_low_target) <new_fork>: Initialize new member.
10906 (mips_linux_new_fork): New function.
10907 (mips_insert_point): Call mips_add_watchpoint.
10908 * linux-x86-low.c (x86_linux_new_fork): New function.
10909 (the_low_target) <new_fork>: Initialize new member.
10911 2015-05-12 Don Breazeal <donb@codesourcery.com>
10913 * linux-low.c (handle_extended_wait): Implement return value,
10914 rename argument 'event_child' to 'event_lwp', handle
10915 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10916 (linux_low_ptrace_options): New function.
10917 (linux_low_filter_event): Call linux_low_ptrace_options,
10918 use different argument fo linux_enable_event_reporting,
10919 use return value from handle_extended_wait.
10920 (extended_event_reported): New function.
10921 (linux_wait_1): Call extended_event_reported and set
10922 status to report fork events.
10923 (linux_write_memory): Add pid to debug message.
10924 (reset_lwp_ptrace_options_callback): New function.
10925 (linux_handle_new_gdb_connection): New function.
10926 (linux_target_ops): Initialize new structure member.
10927 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10928 * lynx-low.c: Initialize new structure member.
10929 * remote-utils.c (prepare_resume_reply): Implement stop reason
10930 "fork" for "T" stop message.
10931 * server.c (handle_query): Call handle_new_gdb_connection.
10932 * server.h (report_fork_events): Declare global flag.
10933 * target.h (struct target_ops) <handle_new_gdb_connection>:
10935 (target_handle_new_gdb_connection): New macro.
10936 * win32-low.c: Initialize new structure member.
10938 2015-05-12 Don Breazeal <donb@codesourcery.com>
10940 * mem-break.c (APPEND_TO_LIST): Define macro.
10941 (clone_agent_expr): New function.
10942 (clone_one_breakpoint): New function.
10943 (clone_all_breakpoints): New function.
10944 * mem-break.h: Declare new functions.
10946 2015-05-12 Don Breazeal <donb@codesourcery.com>
10948 * linux-low.c (linux_supports_fork_events): New function.
10949 (linux_supports_vfork_events): New function.
10950 (linux_target_ops): Initialize new structure members.
10951 (initialize_low): Call linux_check_ptrace_features.
10952 * lynx-low.c (lynx_target_ops): Initialize new structure
10954 * server.c (report_fork_events, report_vfork_events):
10956 (handle_query): Add new features to qSupported packet and
10958 (captured_main): Initialize new global variables.
10959 * target.h (struct target_ops) <supports_fork_events>:
10961 <supports_vfork_events>: New member.
10962 (target_supports_fork_events): New macro.
10963 (target_supports_vfork_events): New macro.
10964 * win32-low.c (win32_target_ops): Initialize new structure
10967 2015-05-12 Gary Benson <gbenson@redhat.com>
10969 * server.c (handle_qxfer_exec_file): Use current process
10972 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10974 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10975 Remove HAVE_PTRACE_GETREGS conditionals.
10976 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10977 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10979 2015-05-08 Yao Qi <yao.qi@linaro.org>
10981 * linux-low.c (linux_supports_conditional_breakpoints): New
10983 (linux_target_ops): Install new target method.
10984 * lynx-low.c (lynx_target_ops): Install NULL hook for
10985 supports_conditional_breakpoints.
10986 * nto-low.c (nto_target_ops): Likewise.
10987 * spu-low.c (spu_target_ops): Likewise.
10988 * win32-low.c (win32_target_ops): Likewise.
10989 * server.c (handle_query): Check
10990 target_supports_conditional_breakpoints.
10991 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10993 (target_supports_conditional_breakpoints): New macro.
10995 2015-05-06 Pedro Alves <palves@redhat.com>
10998 * server.c (start_inferior): If the process exits, mourn it.
11000 2015-04-21 Gary Benson <gbenson@redhat.com>
11002 * hostio.c (fileio_open_flags_to_host): Factored out to
11003 fileio_to_host_openflags in common/fileio.c. Single use
11006 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11008 * linux-xtensa-low.c (xtensa_fill_gregset)
11009 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11012 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11014 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11015 (regs_info): Replace usrregs pointer with NULL.
11017 2015-04-17 Gary Benson <gbenson@redhat.com>
11019 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11020 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11021 * server.c (handle_qxfer_exec_file): New function.
11022 (qxfer_packets): Add exec-file entry.
11023 (handle_query): Report qXfer:exec-file:read as supported packet.
11025 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11027 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11029 2015-04-09 Gary Benson <gbenson@redhat.com>
11031 * hostio-errno.c (errno_to_fileio_error): Remove function.
11032 Update caller to use remote_fileio_to_fio_error.
11034 2015-04-09 Yao Qi <yao.qi@linaro.org>
11036 * linux-low.c (linux_insert_point): Call
11037 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11038 (linux_remove_point): Call remove_memory_breakpoint if type is
11040 * linux-x86-low.c (x86_insert_point): Don't call
11041 insert_memory_breakpoint.
11042 (x86_remove_point): Don't call remove_memory_breakpoint.
11044 2015-04-01 Pedro Alves <palves@redhat.com>
11045 Cleber Rosa <crosa@redhat.com>
11047 * server.c (gdbserver_usage): Reorganize and extend the usage
11050 2015-03-24 Pedro Alves <palves@redhat.com>
11052 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11053 output. Also dump TRAP_TRACE.
11054 (linux_low_filter_event): In debug output, distinguish a
11055 resume_stop SIGSTOP from a delayed SIGSTOP.
11057 2015-03-24 Gary Benson <gbenson@redhat.com>
11059 * linux-x86-low.c (x86_linux_new_thread): Moved to
11061 (x86_linux_prepare_to_resume): Likewise.
11063 2015-03-24 Gary Benson <gbenson@redhat.com>
11065 * Makefile.in (x86-linux-dregs.o): New rule.
11066 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11067 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11068 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11069 (x86_linux_dr_get): Likewise.
11070 (x86_linux_dr_set): Likewise.
11071 (update_debug_registers_callback): Likewise.
11072 (x86_linux_dr_set_addr): Likewise.
11073 (x86_linux_dr_get_addr): Likewise.
11074 (x86_linux_dr_set_control): Likewise.
11075 (x86_linux_dr_get_control): Likewise.
11076 (x86_linux_dr_get_status): Likewise.
11077 (x86_linux_update_debug_registers): Likewise.
11079 2015-03-24 Gary Benson <gbenson@redhat.com>
11081 * linux-x86-low.c (x86_linux_update_debug_registers):
11082 New function, factored out from...
11083 (x86_linux_prepare_to_resume): ...this.
11085 2015-03-24 Gary Benson <gbenson@redhat.com>
11087 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11088 (x86_linux_dr_set): Likewise.
11089 (update_debug_registers_callback): Likewise.
11090 (x86_linux_dr_set_addr): Likewise.
11091 (x86_linux_dr_get_addr): Likewise.
11092 (x86_linux_dr_set_control): Likewise.
11093 (x86_linux_dr_get_control): Likewise.
11094 (x86_linux_dr_get_status): Likewise.
11095 (x86_linux_prepare_to_resume): Likewise.
11097 2015-03-24 Gary Benson <gbenson@redhat.com>
11099 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11100 Use perror_with_name. Pass string through gettext.
11101 (x86_linux_dr_set): Likewise.
11103 2015-03-24 Gary Benson <gbenson@redhat.com>
11105 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11106 (x86_linux_dr_set_addr): ...this.
11107 (x86_dr_low_get_addr): Rename to...
11108 (x86_linux_dr_get_addr): ...this.
11109 (x86_dr_low_set_control): Rename to...
11110 (x86_linux_dr_set_control): ...this.
11111 (x86_dr_low_get_control): Rename to...
11112 (x86_linux_dr_get_control): ...this.
11113 (x86_dr_low_get_status): Rename to...
11114 (x86_linux_dr_get_status): ...this.
11115 (x86_dr_low): Update with new function names.
11117 2015-03-24 Gary Benson <gbenson@redhat.com>
11119 * Makefile.in (x86-linux.o): New rule.
11120 * configure.srv: Add x86-linux.o to relevant targets.
11121 * linux-low.c (lwp_set_arch_private_info): New function.
11122 (lwp_arch_private_info): Likewise.
11123 * linux-x86-low.c: Include nat/x86-linux.h.
11124 (arch_lwp_info): Removed structure.
11125 (update_debug_registers_callback):
11126 Use lwp_set_debug_registers_changed.
11127 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11128 and lwp_set_debug_registers_changed.
11129 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11131 2015-03-24 Gary Benson <gbenson@redhat.com>
11133 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11134 * linux-arm-low.c (arm_new_thread): Likewise.
11135 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11136 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11137 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11138 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11140 2015-03-24 Gary Benson <gbenson@redhat.com>
11142 * linux-low.c (ptid_of_lwp): New function.
11143 (lwp_is_stopped): Likewise.
11144 (lwp_stop_reason): Likewise.
11145 * linux-x86-low.c (update_debug_registers_callback):
11146 Use lwp_is_stopped.
11147 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11150 2015-03-24 Gary Benson <gbenson@redhat.com>
11152 * linux-low.h (linux_stop_lwp): Remove declaration.
11154 2015-03-24 Gary Benson <gbenson@redhat.com>
11156 * linux-low.h: Include nat/linux-nat.h.
11157 * linux-low.c (iterate_over_lwps_args): New structure.
11158 (iterate_over_lwps_filter): New function.
11159 (iterate_over_lwps): Likewise.
11160 * linux-x86-low.c (update_debug_registers_callback):
11161 Update signature to what iterate_over_lwps expects.
11162 Remove PID check that iterate_over_lwps now performs.
11163 (x86_dr_low_set_addr): Use iterate_over_lwps.
11164 (x86_dr_low_set_control): Likewise.
11166 2015-03-24 Gary Benson <gbenson@redhat.com>
11168 * linux-x86-low.c (x86_debug_reg_state): New function.
11169 (x86_linux_prepare_to_resume): Use the above.
11171 2015-03-24 Gary Benson <gbenson@redhat.com>
11173 * linux-low.c (current_lwp_ptid): New function.
11174 * linux-x86-low.c: Include nat/linux-nat.h.
11175 (x86_dr_low_get_addr): Use current_lwp_ptid.
11176 (x86_dr_low_get_control): Likewise.
11177 (x86_dr_low_get_status): Likewise.
11179 2015-03-20 Pedro Alves <palves@redhat.com>
11181 * tracepoint.c (cmd_qtstatus): Make "str" const.
11183 2015-03-20 Pedro Alves <palves@redhat.com>
11185 * server.c (handle_general_set): Make "req_str" const.
11187 2015-03-19 Pedro Alves <palves@redhat.com>
11189 * linux-low.c (linux_resume_one_lwp): Rename to ...
11190 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11191 instead call perror_with_name.
11192 (check_ptrace_stopped_lwp_gone): New function.
11193 (linux_resume_one_lwp): Reimplement as wrapper around
11194 linux_resume_one_lwp_throw that swallows errors if the LWP is
11197 2015-03-19 Pedro Alves <palves@redhat.com>
11199 * linux-low.c (count_events_callback, select_event_lwp_callback):
11200 No longer check whether the thread has resume_stop as last resume
11203 2015-03-19 Pedro Alves <palves@redhat.com>
11205 * linux-low.c (count_events_callback, select_event_lwp_callback):
11206 Use the lwp's status_pending_p field, not the thread's.
11208 2015-03-19 Pedro Alves <palves@redhat.com>
11210 * linux-low.c (select_event_lwp_callback): Update comments to
11211 no longer mention SIGTRAP.
11213 2015-03-18 Gary Benson <gbenson@redhat.com>
11215 * server.c (handle_query): Do not report vFile:fstat as supported.
11217 2015-03-11 Gary Benson <gbenson@redhat.com>
11219 * hostio.c (sys/types.h): New include.
11220 (sys/stat.h): Likewise.
11221 (common-remote-fileio.h): Likewise.
11222 (handle_fstat): New function.
11223 (handle_vFile): Handle vFile:fstat packets.
11225 2015-03-11 Gary Benson <gbenson@redhat.com>
11227 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11228 struct stat.st_blocks and struct stat.st_blksize.
11229 * configure: Regenerate.
11230 * config.in: Likewise.
11231 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11232 (OBS): Add common-remote-fileio.o.
11233 (common-remote-fileio.o): New rule.
11235 2015-03-09 Pedro Alves <palves@redhat.com>
11237 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11238 'struct sockaddr' pointer in 'accept' call.
11240 2015-03-09 Pedro Alves <palves@redhat.com>
11243 2015-03-07 Pedro Alves <palves@redhat.com>
11244 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11245 or <winsock2.h> here. Instead include "gdb_socket.h".
11246 (remote_open): Use union gdb_sockaddr_u.
11247 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11248 or <winsock2.h> here. Instead include "gdb_socket.h".
11249 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11250 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11252 (init_named_socket, gdb_agent_helper_thread): Use union
11255 2015-03-07 Pedro Alves <palves@redhat.com>
11257 * configure.ac (build_warnings): Move
11258 -Wdeclaration-after-statement to the C-specific set.
11259 * configure: Regenerate.
11261 2015-03-07 Pedro Alves <palves@redhat.com>
11263 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11264 or <winsock2.h> here. Instead include "gdb_socket.h".
11265 (remote_open): Use union gdb_sockaddr_u.
11266 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11267 or <winsock2.h> here. Instead include "gdb_socket.h".
11268 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11269 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11271 (init_named_socket, gdb_agent_helper_thread): Use union
11274 2015-03-07 Pedro Alves <palves@redhat.com>
11276 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11279 2015-03-06 Yao Qi <yao.qi@linaro.org>
11281 * linux-aarch64-low.c (aarch64_insert_point): Use
11282 show_debug_regs as a boolean.
11283 (aarch64_remove_point): Likewise.
11285 2015-03-05 Pedro Alves <palves@redhat.com>
11287 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11288 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11289 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11290 * nto-low.c (nto_target_ops): Likewise.
11291 * spu-low.c (spu_target_ops): Likewise.
11292 * win32-low.c (win32_target_ops): Likewise.
11294 2015-03-04 Pedro Alves <palves@redhat.com>
11296 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11297 Decide whether a breakpoint triggered based on the SIGTRAP's
11299 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11300 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11301 (linux_low_filter_event): Check for breakpoints before checking
11303 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11305 (linux_stopped_by_sw_breakpoint)
11306 (linux_supports_stopped_by_sw_breakpoint)
11307 (linux_stopped_by_hw_breakpoint)
11308 (linux_supports_stopped_by_hw_breakpoint): New functions.
11309 (linux_target_ops): Install new target methods.
11311 2015-03-04 Pedro Alves <palves@redhat.com>
11313 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11314 * server.c (swbreak_feature, hwbreak_feature): New globals.
11315 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11316 (captured_main): Clear swbreak_feature and hwbreak_feature.
11317 * server.h (swbreak_feature, hwbreak_feature): Declare.
11318 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11319 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11320 supports_stopped_by_hw_breakpoint>: New fields.
11321 (target_supports_stopped_by_sw_breakpoint)
11322 (target_stopped_by_sw_breakpoint)
11323 (target_supports_stopped_by_hw_breakpoint)
11324 (target_stopped_by_hw_breakpoint): Declare.
11326 2015-03-04 Pedro Alves <palves@redhat.com>
11328 enum lwp_stop_reason -> enum target_stop_reason
11329 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11330 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11331 (linux_wait_1, stuck_in_jump_pad_callback)
11332 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11333 (linux_stopped_by_watchpoint):
11334 * linux-low.h (enum lwp_stop_reason): Delete.
11335 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11336 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11338 2015-03-04 Yao Qi <yao.qi@linaro.org>
11340 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11342 2015-03-03 Gary Benson <gbenson@redhat.com>
11344 * hostio.c (handle_vFile): Fix prefix lengths.
11346 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11348 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11351 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11353 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11354 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11355 (clean): Add "rm -f" for above C files.
11356 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11357 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11358 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11359 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11360 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11361 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11362 (init_registers_s390x_vx_linux64)
11363 (init_registers_s390x_tevx_linux64)
11364 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11365 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11367 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11368 (s390_store_vxrs_high): New functions.
11369 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11371 (s390_arch_setup): Add logic for selecting one of the new target
11372 descriptions. Activate the new vector regsets if applicable.
11373 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11374 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11375 and init_registers_s390x_tevx_linux64.
11377 2015-03-01 Pedro Alves <palves@redhat.com>
11379 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11382 2015-02-27 Pedro Alves <palves@redhat.com>
11384 * linux-x86-low.c (u_debugreg_offset): New function.
11385 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11387 2015-02-27 Pedro Alves <palves@redhat.com>
11389 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11390 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11391 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11392 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11393 (ps_lsetfpregs, ps_getpid)
11394 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11395 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11396 (ps_lsetxregs, ps_plog): Declare.
11398 2015-02-27 Pedro Alves <palves@redhat.com>
11400 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11401 IP_AGENT_EXPORT_FUNC.
11402 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11403 IP_AGENT_EXPORT_FUNC.
11404 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11405 (IP_AGENT_EXPORT): Delete.
11406 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11407 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11408 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11409 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11410 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11411 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11412 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11413 (traceframe_read_count, traceframe_write_count)
11414 (traceframes_created, trace_state_variables, get_raw_reg)
11415 (get_trace_state_variable_value, set_trace_state_variable_value)
11416 (ust_loaded, helper_thread_id, cmd_buf): Use
11417 IPA_SYM_EXPORTED_NAME.
11418 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11419 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11420 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11421 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11422 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11423 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11424 EXTERN_C_PUSH/EXTERN_C_POP.
11425 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11426 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11427 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11428 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11429 (traceframe_write_count, traceframe_read_count)
11430 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11431 (about_to_request_buffer_space, get_trace_state_variable_value)
11432 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11433 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11434 EXTERN_C_PUSH/EXTERN_C_POP.
11435 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11436 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11437 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11438 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11439 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11440 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11441 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11442 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11444 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11445 (IP_AGENT_EXPORT_VAR_DECL): Define.
11446 (tracing): Declare.
11447 (gdb_agent_get_raw_reg): Declare.
11449 2015-02-27 Tom Tromey <tromey@redhat.com>
11450 Pedro Alves <palves@redhat.com>
11452 Rename symbols whose names are reserved C++ keywords throughout.
11454 2015-02-27 Pedro Alves <palves@redhat.com>
11456 * Makefile.in (COMPILER): New, get it from autoconf.
11457 (CXX): Get from autoconf instead.
11458 (COMPILE.pre): Use COMPILER.
11459 (CC-LD): Rename to ...
11460 (CC_LD): ... this. Use COMPILER.
11461 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11462 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11463 * acinclude.m4: Include build-with-cxx.m4.
11464 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11465 Disable -Werror by default if building in C++ mode.
11466 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11467 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11468 the C++ compiler. Save/restore CXXFLAGS too.
11469 * configure: Regenerate.
11471 2015-02-27 Pedro Alves <palves@redhat.com>
11473 * acinclude.m4: Include libiberty.m4.
11474 * configure.ac: Call libiberty_INIT.
11475 * config.in, configure: Regenerate.
11477 2015-02-26 Pedro Alves <palves@redhat.com>
11479 * linux-low.c (linux_wait_1): When incrementing the PC past a
11480 program breakpoint always use the_low_target.breakpoint_len as
11481 increment, rather than the maximum between that and
11482 the_low_target.decr_pc_after_break.
11484 2015-02-23 Pedro Alves <palves@redhat.com>
11486 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11487 thread was doing a step-over; always adjust the PC if
11488 we stepped over a permanent breakpoint.
11489 (linux_wait_1): If we stepped over breakpoint that was on top of a
11490 permanent breakpoint, manually advance the PC past it.
11492 2015-02-23 Pedro Alves <palves@redhat.com>
11494 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11496 (x86_fill_gregset, x86_store_gregset): Use it when handling
11499 2015-02-20 Pedro Alves <palves@redhat.com>
11501 * thread-db.c: Include "nat/linux-procfs.h".
11502 (thread_db_init): Skip listing new threads if the kernel supports
11503 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11505 2015-02-20 Pedro Alves <palves@redhat.com>
11507 * linux-low.c (status_pending_p_callback): Use ptid_match.
11509 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11511 PR breakpoints/16812
11512 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11513 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11514 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11516 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11518 PR breakpoints/15956
11519 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11521 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11523 * linux-low.c (linux_low_btrace_conf): Print size.
11524 * server.c (handle_btrace_conf_general_set): New.
11525 (hanle_general_set): Call handle_btrace_conf_general_set.
11526 (handle_query): Report Qbtrace-conf:bts:size as supported.
11528 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11530 * linux-low.c (linux_low_enable_btrace): Update parameters.
11531 (linux_low_btrace_conf): New.
11532 (linux_target_ops)<to_btrace_conf>: Initialize.
11533 * server.c (current_btrace_conf): New.
11534 (handle_btrace_enable): Rename to ...
11535 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11536 to target_enable_btrace. Update comment. Update users.
11537 (handle_qxfer_btrace_conf): New.
11538 (qxfer_packets): Add btrace-conf entry.
11539 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11540 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11541 (target_ops)<read_btrace_conf>: New.
11542 (target_enable_btrace): Update parameters.
11543 (target_read_btrace_conf): New.
11545 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11547 * server.c (handle_btrace_general_set): Remove call to
11548 target_supports_btrace.
11549 (supported_btrace_packets): New.
11550 (handle_query): Call supported_btrace_packets.
11551 * target.h: include btrace-common.h.
11552 (btrace_target_info): Removed.
11553 (supports_btrace, target_supports_btrace): Update parameters.
11555 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11557 * Makefile.in (SFILES): Add common/btrace-common.c.
11558 (OBS): Add common/btrace-common.o.
11559 (btrace-common.o): Add build rules.
11560 * linux-low: Include btrace-common.h.
11561 (linux_low_read_btrace): Use struct btrace_data. Call
11562 btrace_data_init and btrace_data_fini.
11564 2015-02-06 Pedro Alves <palves@redhat.com>
11566 * thread-db.c (find_new_threads_callback): Add debug output.
11568 2015-02-04 Pedro Alves <palves@redhat.com>
11570 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11571 (resume_stopped_resumed_lwps): New function.
11572 (linux_wait_for_event_filtered): Use it.
11574 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11576 * Makefile.in (SFILES): Add linux-personality.c.
11577 (linux-personality.o): New rule.
11578 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11579 list of objects to be built.
11580 * linux-low.c: Include nat/linux-personality.h.
11581 (linux_create_inferior): Remove code to disable address space
11582 randomization (moved to ../nat/linux-personality.c). Create
11583 cleanup to disable address space randomization.
11585 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11587 * Makefile.in (posix-strerror.o): New rule.
11588 (mingw-strerror.o): Likewise.
11589 * configure: Regenerated.
11590 * configure.ac: Source file ../common/common.host. Initialize new
11591 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11593 2015-01-14 Yao Qi <yao@codesourcery.com>
11595 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11596 (ppc-linux.o): New rule.
11597 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11598 * configure.ac: AC_CHECK_FUNCS(getauxval).
11599 * config.in: Re-generated.
11600 * configure: Re-generated.
11601 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11602 ppc64_64bit_inferior_p
11604 2015-01-14 Yao Qi <yao@codesourcery.com>
11606 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11607 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11608 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11609 (PT_ORIG_R3, PT_TRAP): Likewise.
11610 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11611 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11612 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11614 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11616 * i387-fp.c (i387_cache_to_xsave): In look over
11617 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11618 zmmh_low_space field by use of zmmh_high_space.
11620 2015-01-09 Pedro Alves <palves@redhat.com>
11622 * linux-low.c (step_over_bkpt): Move higher up in the file.
11623 (handle_extended_wait): Don't store the stop_pc here.
11624 (get_stop_pc): Adjust comments and rename to ...
11625 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11626 stopped for a software breakpoint or hardware breakpoint.
11627 (thread_still_has_status_pending_p): New function.
11628 (status_pending_p_callback): Use
11629 thread_still_has_status_pending_p. If the event is no longer
11630 interesting, resume the LWP.
11631 (handle_tracepoints): Add assert.
11632 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11633 (wstatus_maybe_breakpoint): New function.
11634 (cancel_breakpoint): Delete function.
11635 (check_stopped_by_watchpoint): New function, factored out from
11636 linux_low_filter_event.
11637 (lp_status_maybe_breakpoint): Delete function.
11638 (linux_low_filter_event): Remove filter_ptid argument.
11639 Leave thread group exits pending here. Store the LWP's stop PC.
11640 Always leave events pending.
11641 (linux_wait_for_event_filtered): Pull all events out of the
11642 kernel, and leave them all pending.
11643 (count_events_callback, select_event_lwp_callback): Consider all
11645 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11646 (select_event_lwp): Only give preference to the stepping LWP in
11647 all-stop mode. Adjust comments.
11648 (ignore_event): New function.
11649 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11650 references to cancel_breakpoints. Adjust to renames. Also give
11651 equal priority to all LWPs that have had events in non-stop mode.
11652 If reporting a software breakpoint event, unadjust the LWP's PC.
11653 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11654 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11656 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11657 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11658 (linux_stopped_by_watchpoint): Adjust.
11659 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11660 * linux-low.h (enum lwp_stop_reason): New.
11661 (struct lwp_info) <stop_pc>: Adjust comment.
11662 <stopped_by_watchpoint>: Delete field.
11663 <stop_reason>: New field.
11664 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11665 * mem-break.c (software_breakpoint_inserted_here)
11666 (hardware_breakpoint_inserted_here): New function.
11667 * mem-break.h (software_breakpoint_inserted_here)
11668 (hardware_breakpoint_inserted_here): Declare.
11669 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11670 (cancel_breakpoints): Delete.
11671 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11672 (upload_fast_traceframes): Remove references to
11673 cancel_breakpoints.
11675 2015-01-09 Pedro Alves <palves@redhat.com>
11677 * thread-db.c (find_new_threads_callback): Ignore thread if the
11678 kernel thread ID is -1.
11680 2015-01-09 Pedro Alves <palves@redhat.com>
11682 * linux-low.c (linux_attach_fail_reason_string): Move to
11683 nat/linux-ptrace.c, and rename.
11684 (linux_attach_lwp): Update comment.
11685 (attach_proc_task_lwp_callback): New function.
11686 (linux_attach): Adjust to rename and use
11687 linux_proc_attach_tgid_threads.
11688 (linux_attach_fail_reason_string): Delete declaration.
11690 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11692 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11693 * server.c (gdbserver_version): Likewise.
11695 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11697 * remote-utils.c: Include ctype.h.
11698 (input_interrupt): Explicitly handle the case when the char
11699 received is the NUL byte. Improve the printing of non-ASCII
11702 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11704 * linux-low.c (linux_low_filter_event): Update call to
11705 linux_enable_event_reporting following the addition of
11706 a new parameter to that function.
11708 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11711 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11712 (AARCH64_FPCR_REGNO): Likewise.
11713 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11714 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11715 (aarch64_store_fpregset): Likewise.
11717 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11719 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11720 Remove FIXME comment about assumption about N.
11722 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11724 * configure.ac: If large-file support is disabled in GDBserver,
11725 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11726 * configure: Regenerate.
11728 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11730 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11731 warning upon ENODATA from ptrace.
11732 * linux-s390-low.c (s390_store_tdb): New.
11733 (s390_regsets): Add regset for NT_S390_TDB.
11735 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11737 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11738 without a fill_function.
11739 * linux-s390-low.c (s390_fill_last_break): Remove.
11740 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11741 (s390_arch_setup): Use regset's size instead of fill_function for
11742 loop end condition.
11744 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11746 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11747 the regset's store function when ptrace returned an error.
11748 * regcache.c (get_thread_regcache): Invalidate register cache
11749 before fetching inferior's registers.
11751 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11753 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11754 while-loop as for-loop.
11755 (regsets_store_inferior_registers): Likewise.
11757 2014-11-28 Yao Qi <yao@codesourcery.com>
11759 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11760 * config.in, configure: Re-generate.
11761 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11764 2014-11-21 Yao Qi <yao@codesourcery.com>
11766 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11767 (AC_CHECK_HEADERS): Remove malloc.h.
11768 * configure: Re-generated.
11769 * config.in: Re-generated.
11770 * server.h: Don't include alloca.h and malloc.h.
11771 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11772 Don't include malloc.h.
11774 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11776 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11777 corresponding ERRNO check in same block.
11779 2014-11-12 Pedro Alves <palves@redhat.com>
11781 * server.c (cont_thread): Update comment.
11782 (start_inferior, attach_inferior): No longer clear cont_thread.
11783 (handle_v_cont): No longer set cont_thread.
11784 (captured_main): Clear cont_thread each time a GDB connects.
11786 2014-11-12 Pedro Alves <palves@redhat.com>
11788 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11789 thread, and don't resume all threads if the Hc thread has exited.
11791 2014-11-12 Pedro Alves <palves@redhat.com>
11793 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11794 the process group instead of to a specific LWP.
11796 2014-10-15 Pedro Alves <palves@redhat.com>
11799 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11801 (arm_set_thread_context): Delete.
11802 (the_low_target): Adjust.
11803 * win32-i386-low.c (debug_registers_changed)
11804 (debug_registers_used): Delete.
11805 (update_debug_registers_callback): New function.
11806 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11807 needing to update their debug registers.
11808 (win32_get_current_dr): New function.
11809 (x86_dr_low_get_addr, x86_dr_low_get_control)
11810 (x86_dr_low_get_status): Fetch the debug register from the thread
11812 (i386_initial_stuff): Adjust.
11813 (i386_get_thread_context): Remove current_event parameter. Don't
11814 clear debug_registers_changed nor copy DR values to
11816 (i386_set_thread_context): Delete.
11817 (i386_prepare_to_resume): New function.
11818 (i386_thread_added): Mark the thread as needing to update irs
11820 (the_low_target): Remove i386_set_thread_context and install
11821 i386_prepare_to_resume.
11822 * win32-low.c (win32_get_thread_context): Adjust.
11823 (win32_set_thread_context): Use SetThreadContext
11825 (win32_prepare_to_resume): New function.
11826 (win32_require_context): New function, factored out from ...
11827 (thread_rec): ... this.
11828 (continue_one_thread): Call win32_prepare_to_resume on each thread
11829 we're about to continue.
11830 (win32_resume): Call win32_prepare_to_resume on the event thread.
11831 * win32-low.h (struct win32_thread_info)
11832 <debug_registers_changed>: New field.
11833 (struct win32_target_ops): Change prototype of set_thread_context,
11834 delete set_thread_context and add prepare_to_resume.
11835 (win32_require_context): New declaration.
11837 2014-10-08 Gary Benson <gbenson@redhat.com>
11839 * server.h: Do not include common-exceptions.h.
11841 2014-10-08 Gary Benson <gbenson@redhat.com>
11843 * server.h: Do not include cleanups.h.
11845 2014-09-30 James Hogan <james.hogan@imgtec.com>
11847 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11848 mips64-dsp-linux.c.
11850 2014-09-23 Yao Qi <yao@codesourcery.com>
11852 * linux-low.c (lp_status_maybe_breakpoint): New function.
11853 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11854 (count_events_callback): Likewise.
11855 (select_event_lwp_callback): Likewise.
11856 (cancel_breakpoints_callback): Likewise.
11858 2014-09-19 Don Breazeal <donb@codesourcery.com>
11860 * linux-low.c (handle_extended_wait): Call
11861 linux_ptrace_get_extended_event.
11862 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11863 linux_is_extended_waitstatus.
11865 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11867 * Makefile.in (CPPFLAGS): Define.
11868 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11869 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11871 2014-09-16 Gary Benson <gbenson@redhat.com>
11873 * inferiors.h (current_inferior): Renamed as...
11874 (current_thread): New variable. All uses updated.
11875 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11876 (maybe_move_out_of_jump_pad): Likewise.
11877 (cancel_breakpoint): Likewise.
11878 (linux_low_filter_event): Likewise.
11879 (wait_for_sigstop): Likewise.
11880 (linux_resume_one_lwp): Likewise.
11881 (need_step_over_p): Likewise.
11882 (start_step_over): Likewise.
11883 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11884 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11885 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11886 and save_inferior as saved_thread.
11887 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11889 (regcache_invalidate_thread): Likewise.
11890 * remote-utils.c (prepare_resume_reply): Likewise.
11891 * thread-db.c (thread_db_get_tls_address): Likewise.
11892 (disable_thread_event_reporting): Likewise.
11893 (remove_thread_event_breakpoints): Likewise.
11894 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11896 * target.h (set_desired_inferior): Renamed as...
11897 (set_desired_thread): New declaration. All uses updated.
11898 * server.c (myresume): Updated comment to reference thread instead
11900 (handle_serial_event): Likewise.
11901 (handle_target_event): Likewise.
11903 2014-09-12 Tom Tromey <tromey@redhat.com>
11904 Gary Benson <gbenson@redhat.com>
11906 * regcache.h: Include common-regcache.h.
11907 (regcache_read_pc): Don't declare.
11908 * regcache.c (get_thread_regcache_for_ptid): New function.
11910 2014-09-11 Tom Tromey <tromey@redhat.com>
11911 Gary Benson <gbenson@redhat.com>
11913 * symbol.c: New file.
11914 * Makefile.in (SFILES): Add symbol.c.
11915 (OBS): Add symbol.o.
11917 2014-09-11 Gary Benson <gbenson@redhat.com>
11919 * target.c (target_stop_ptid, target_continue_ptid): New
11922 2014-09-11 Tom Tromey <tromey@redhat.com>
11923 Gary Benson <gbenson@redhat.com>
11925 * target.h: Include target/target.h.
11926 * target.c (target_read_memory, target_read_uint32)
11927 (target_write_memory): New functions.
11929 2014-09-11 Gary Benson <gbenson@redhat.com>
11931 * server.h (debug_hw_points): Don't declare.
11932 * server.c (debug_hw_points): Don't define. Replace all uses
11933 with show_debug_regs.
11934 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11935 all uses with show_debug_regs.
11937 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11939 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11940 endianness into account.
11941 (ppc_supply_ptrace_register): Likewise.
11943 2014-09-03 James Hogan <james.hogan@imgtec.com>
11945 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11946 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11948 2014-09-03 Gary Benson <gbenson@redhat.com>
11950 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11951 ALL_DEBUG_ADDRESS_REGISTERS.
11953 2014-09-02 Gary Benson <gbenson@redhat.com>
11955 * i386-low.h: Renamed as...
11956 * x86-low.h: New file. All type, function and variable name
11957 prefixes changed from "i386_" to "x86_". All references updated.
11958 * i386-low.c: Renamed as...
11959 * x86-low.c: New file. All type, function and variable name
11960 prefixes changed from "i386_" to "x86_". All references updated.
11962 2014-09-02 Gary Benson <gbenson@redhat.com>
11964 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11965 (x86_linux_new_thread): Likewise.
11967 2014-08-29 Gary Benson <gbenson@redhat.com>
11969 * server.h (setjmp.h): Do not include.
11970 (toplevel): Do not declare.
11971 (common-exceptions.h): Include.
11972 (cleanups.h): Likewise.
11973 * server.c (toplevel): Do not define.
11974 (exit_code): New static global.
11975 (detach_or_kill_for_exit_cleanup): New function.
11976 (main): New function. Original main renamed to...
11977 (captured_main): New function.
11978 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11980 2014-08-29 Gary Benson <gbenson@redhat.com>
11982 * Makefile.in (SFILES): Add common/common-exceptions.c.
11983 (OBS): Add common-exceptions.o.
11984 (common-exceptions.o): New rule.
11985 * utils.c (prepare_to_throw_exception): New function.
11987 2014-08-29 Gary Benson <gbenson@redhat.com>
11989 * config.in: Regenerate.
11990 * configure: Likewise.
11992 2014-08-29 Gary Benson <gbenson@redhat.com>
11994 * Makefile.in (SFILES): Add common/cleanups.c.
11996 (cleanups.o): New rule.
11998 2014-08-29 Gary Benson <gbenson@redhat.com>
12000 * utils.c (internal_vwarning): New function.
12002 2014-08-28 Gary Benson <gbenson@redhat.com>
12004 * utils.h (fatal): Remove declaration.
12005 * utils.c (fatal): Remove function.
12007 2014-08-28 Gary Benson <gbenson@redhat.com>
12009 * tracepoint.c (gdb_agent_init): Replace fatal with
12011 (initialize_tracepoint): Likewise.
12013 2014-08-28 Gary Benson <gbenson@redhat.com>
12015 * remote-utils.c (remote_prepare): Replace fatal with error.
12017 2014-08-28 Gary Benson <gbenson@redhat.com>
12019 * linux-low.c (linux_async): Replace fatal with warning.
12020 Tidy up and return.
12021 (linux_start_non_stop): Return -1 if linux_async failed.
12023 2014-08-28 Gary Benson <gbenson@redhat.com>
12025 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12027 (i386_dr_low_get_addr): Remove vague comment.
12028 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12031 2014-08-28 Gary Benson <gbenson@redhat.com>
12033 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12034 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12036 (linux_resume_one_lwp): Likewise.
12037 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12039 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12040 with internal_error.
12041 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12042 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12043 (find_register_by_name): Replace fatal with internal_error.
12044 (find_regno): Likewise.
12045 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12046 * thread-db.c (thread_db_create_event): Likewise.
12047 (thread_db_load_search): Likewise.
12048 (try_thread_db_load_1): Likewise.
12049 * tracepoint.c (get_jump_space_head): Replace fatal with
12051 (claim_trampoline_space): Likewise.
12052 (have_fast_tracepoint_trampoline_buffer): Likewise.
12053 (cmd_qtstart): Likewise.
12054 (stop_tracing): Likewise.
12055 (fast_tracepoint_collecting): Likewise.
12056 (target_malloc): Likewise.
12057 (download_tracepoint): Likewise.
12058 (download_trace_state_variables): Replace check with gdb_assert.
12059 (upload_fast_traceframes): Replace fatal with internal_error.
12061 2014-08-19 Tom Tromey <tromey@redhat.com>
12062 Gary Benson <gbenson@redhat.com>
12064 * Makefile.in (SFILES): Add common/common-debug.c.
12065 (OBS): Add common-debug.o.
12066 (common-debug.o): New rule.
12067 * debug.h (debug_printf): Don't declare.
12068 * debug.c (debug_printf): Renamed and rewritten as...
12069 (debug_vprintf): New function.
12071 2014-08-19 Gary Benson <gbenson@redhat.com>
12073 * utils.h: Do not include print-utils.h.
12075 2014-08-19 Tom Tromey <tromey@redhat.com>
12076 Gary Benson <gbenson@redhat.com>
12078 * server.h: Add static assertion.
12079 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12081 2014-08-19 Tom Tromey <tromey@redhat.com>
12082 Gary Benson <gbenson@redhat.com>
12084 * Makefile.in (SFILES): Add common/errors.c.
12085 (OBS): Add errors.o.
12086 (IPA_OBS): Add errors-ipa.o.
12087 (errors.o): New rule.
12088 (errors-ipa.o): Likewise.
12089 * utils.h (perror_with_name, error, warning): Don't declare.
12090 * utils.c (warning): Renamed and rewritten as...
12091 (vwarning): New function.
12092 (error): Renamed and rewritten as...
12093 (verror): New function.
12094 (internal_error): Renamed and rewritten as...
12095 (internal_verror): New function.
12097 2014-08-07 Gary Benson <gbenson@redhat.com>
12099 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12100 * configure: Regenerate.
12101 * config.in: Likewise.
12102 * server.h: Do not include errno.h.
12103 * event-loop.c: Likewise.
12104 * hostio-errno.c: Likewise.
12105 * linux-low.c: Likewise.
12106 * remote-utils.c: Likewise.
12107 * spu-low.c: Likewise.
12108 * utils.c: Likewise.
12109 * gdbreplay.c: Unconditionally include errno.h.
12111 2014-08-07 Gary Benson <gbenson@redhat.com>
12113 * server.h: Do not include string.h.
12114 * event-loop.c: Likewise.
12115 * linux-low.c: Likewise.
12116 * regcache.c: Likewise.
12117 * remote-utils.c: Likewise.
12118 * spu-low.c: Likewise.
12119 * utils.c: Likewise.
12121 2014-08-07 Gary Benson <gbenson@redhat.com>
12123 * server.h: Do not include gdb_assert.h.
12125 2014-08-07 Gary Benson <gbenson@redhat.com>
12127 * server.h: Do not include common-utils.h.
12129 2014-08-07 Gary Benson <gbenson@redhat.com>
12131 * server.h: Do not include ptid.h.
12132 * notif.h: Likewise.
12134 2014-08-07 Gary Benson <gbenson@redhat.com>
12136 * server.h: Do not include gdb_locale.h.
12138 2014-08-07 Gary Benson <gbenson@redhat.com>
12140 * server.h: Do not include gdb/signals.h.
12141 * win32-low.c: Likewise.
12143 2014-08-07 Gary Benson <gbenson@redhat.com>
12145 * server.h: Do not include pathmax.h.
12147 2014-08-07 Gary Benson <gbenson@redhat.com>
12149 * server.h: Do not include libiberty.h.
12150 * linux-bfin-low.c: Likewise.
12152 2014-08-07 Gary Benson <gbenson@redhat.com>
12154 * server.h: Do not include ansidecl.h.
12156 2014-08-07 Gary Benson <gbenson@redhat.com>
12158 * linux-x86-low.c: Do not include stddef.h.
12159 * lynx-ppc-low.c: Likewise.
12160 * tracepoint.c: Likewise.
12162 2014-08-07 Gary Benson <gbenson@redhat.com>
12164 * server.h: Do not include stdarg.h.
12165 * nto-low.c: Likewise.
12167 2014-08-07 Gary Benson <gbenson@redhat.com>
12169 * server.h: Do not include stdlib.h.
12170 * inferiors.c: Likewise.
12171 * linux-low.c: Likewise.
12172 * regcache.c: Likewise.
12173 * spu-low.c: Likewise.
12174 * tracepoint.c: Likewise.
12175 * utils.c: Likewise.
12177 2014-08-07 Gary Benson <gbenson@redhat.com>
12179 * server.h: Do not include stdio.h.
12180 * linux-low.c: Likewise.
12181 * remote-utils.c: Likewise.
12182 * spu-low.c: Likewise.
12183 * utils.c: Likewise.
12184 * wincecompat.c: Likewise.
12186 2014-08-06 Gary Benson <gbenson@redhat.com>
12188 * regcache.c (init_register_cache): Move conditionals inside if.
12190 2014-08-06 Gary Benson <gbenson@redhat.com>
12192 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12194 2014-07-31 Gary Benson <gbenson@redhat.com>
12196 * ax.h: Do not include server.h.
12197 * gdbthread.h: Likewise.
12198 * lynx-low.h: Likewise.
12199 * notif.h: Likewise.
12201 2014-07-30 Gary Benson <gbenson@redhat.com>
12203 * server.h: Include common-defs.h.
12204 Do not include config.h or build-gnulib-gdbserver/config.h.
12206 2014-07-30 Gary Benson <gbenson@redhat.com>
12208 * hostio-errno.c: Move server.h to top of includes list.
12209 * inferiors.c: Likewise.
12210 * linux-x86-low.c: Likewise.
12211 * notif.c: Include server.h.
12213 2014-07-24 Tom Tromey <tromey@redhat.com>
12214 Gary Benson <gbenson@redhat.com>
12216 * server.h (CORE_ADDR): Now unsigned.
12218 2014-07-16 Pedro Alves <palves@redhat.com>
12220 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12222 2014-07-15 Pedro Alves <palves@redhat.com>
12224 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12227 2014-07-11 Pedro Alves <palves@redhat.com>
12229 * linux-low.c (kill_wait_lwp): New function, based on
12230 kill_one_lwp_callback, but use my_waitpid directly.
12231 (kill_one_lwp_callback, linux_kill): Use it.
12233 2014-06-23 Pedro Alves <palves@redhat.com>
12235 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12236 before setting DR0..DR3.
12238 2014-06-20 Gary Benson <gbenson@redhat.com>
12240 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12241 * configure: Regenerated.
12242 * config.in: Likewise.
12244 2014-06-20 Gary Benson <gbenson@redhat.com>
12246 * Makefile.in (SFILES): Update locations for files moved
12247 from common to nat.
12248 (object file files): Reordered.
12250 2014-06-20 Gary Benson <gbenson@redhat.com>
12252 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12253 (i386_dr_low_set_addr): Likewise.
12254 (i386_dr_low_get_addr): Likewise.
12255 (i386_dr_low_can_set_control): Likewise.
12256 (i386_dr_low_set_control): Likewise.
12257 (i386_dr_low_get_control): Likewise.
12258 (i386_dr_low_get_status): Likewise.
12259 (i386_get_debug_register_length): Likewise.
12260 * linux-x86-low.c (i386_dr_low_set_addr):
12261 Changed signature. Made static.
12262 (i386_dr_low_get_addr): Likewise.
12263 (i386_dr_low_set_control): Likewise.
12264 (i386_dr_low_get_control): Likewise.
12265 (i386_dr_low_get_status): Likewise.
12266 (i386_dr_low): New global variable.
12267 * win32-i386-low.c (i386_dr_low_set_addr):
12268 Changed signature. Made static.
12269 (i386_dr_low_get_addr): Likewise.
12270 (i386_dr_low_set_control): Likewise.
12271 (i386_dr_low_get_control): Likewise.
12272 (i386_dr_low_get_status): Likewise.
12273 (i386_dr_low): New global variable.
12275 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12277 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12278 * Makefile.in (AR, AR_FLAGS): Define.
12279 * configure: Regenerate.
12281 2014-06-19 Gary Benson <gbenson@redhat.com>
12283 * Makefile.in (i386-dregs.o): New rule.
12284 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12285 * i386-low.c (target.h): Remove include.
12286 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12287 (DR_CONTROL_SHIFT): Likewise.
12288 (DR_CONTROL_SIZE): Likewise.
12289 (DR_RW_EXECUTE): Likewise.
12290 (DR_RW_WRITE): Likewise.
12291 (DR_RW_READ): Likewise.
12292 (DR_RW_IORW): Likewise.
12293 (DR_LEN_1): Likewise.
12294 (DR_LEN_2): Likewise.
12295 (DR_LEN_4): Likewise.
12296 (DR_LEN_8): Likewise.
12297 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12298 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12299 (DR_ENABLE_SIZE): Likewise.
12300 (DR_LOCAL_SLOWDOWN): Likewise.
12301 (DR_GLOBAL_SLOWDOWN): Likewise.
12302 (DR_CONTROL_RESERVED): Likewise.
12303 (I386_DR_CONTROL_MASK): Likewise.
12304 (I386_DR_VACANT): Likewise.
12305 (I386_DR_LOCAL_ENABLE): Likewise.
12306 (I386_DR_GLOBAL_ENABLE): Likewise.
12307 (I386_DR_DISABLE): Likewise.
12308 (I386_DR_SET_RW_LEN): Likewise.
12309 (I386_DR_GET_RW_LEN): Likewise.
12310 (I386_DR_WATCH_HIT): Likewise.
12311 (i386_wp_op_t): Likewise.
12312 (i386_show_dr): Likewise.
12313 (i386_length_and_rw_bits): Likewise.
12314 (i386_insert_aligned_watchpoint): Likewise.
12315 (i386_remove_aligned_watchpoint): Likewise.
12316 (i386_handle_nonaligned_watchpoint): Likewise.
12317 i386_update_inferior_debug_regs(): Likewise.
12318 (i386_dr_insert_watchpoint): Likewise.
12319 (i386_dr_remove_watchpoint): Likewise.
12320 (i386_dr_region_ok_for_watchpoint): Likewise.
12321 (i386_dr_stopped_data_address): Likewise.
12322 (i386_dr_stopped_by_watchpoint): Likewise.
12324 2014-06-19 Gary Benson <gbenson@redhat.com>
12326 * i386-low.c (i386_dr_show): Renamed to
12327 i386_show_dr and made static. All uses updated.
12328 (i386_dr_length_and_rw_bits): Renamed to
12329 i386_length_and_rw_bits and made static.
12331 (i386_dr_insert_aligned_watchpoint): Renamed to
12332 i386_insert_aligned_watchpoint and made static.
12334 (i386_dr_remove_aligned_watchpoint): Renamed to
12335 i386_remove_aligned_watchpoint and made static.
12337 (i386_dr_update_inferior_debug_regs): Renamed to
12338 i386_update_inferior_debug_regs and made static.
12341 2014-06-18 Gary Benson <gbenson@redhat.com>
12343 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12344 (i386_dr_low_can_set_control): Likewise.
12345 (i386_get_debug_register_length): Likewise.
12346 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12347 (i386_dr_low_can_set_control): Likewise.
12348 (i386_get_debug_register_length): Likewise.
12350 2014-06-17 Gary Benson <gbenson@redhat.com>
12352 * i386-low.h (i386-dregs.h): New include.
12353 (DR_FIRSTADDR): Now in i386-dregs.h.
12354 (DR_LASTADDR): Likewise.
12355 (DR_NADDR): Likewise.
12356 (DR_STATUS): Likewise.
12357 (DR_CONTROL): Likewise.
12358 (i386_debug_reg_state): Likewise.
12359 (i386_dr_insert_watchpoint): Likewise.
12360 (i386_dr_remove_watchpoint): Likewise.
12361 (i386_dr_region_ok_for_watchpoint): Likewise.
12362 (i386_dr_stopped_data_address): Likewise.
12363 (i386_dr_stopped_by_watchpoint): Likewise.
12364 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12366 2014-06-18 Gary Benson <gbenson@redhat.com>
12368 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12369 i386_dr_insert_watchpoint.
12370 (i386_low_remove_watchpoint): Renamed to
12371 i386_dr_remove_watchpoint.
12372 (i386_low_region_ok_for_watchpoint): Renamed to
12373 i386_dr_region_ok_for_watchpoint.
12374 (i386_low_stopped_data_address): Renamed to
12375 i386_dr_stopped_data_address.
12376 (i386_low_stopped_by_watchpoint): Renamed to
12377 i386_dr_stopped_by_watchpoint.
12378 * i386-low.c (i386_show_dr): Renamed to
12379 i386_dr_show and made nonstatic. All uses updated.
12380 (i386_length_and_rw_bits): Renamed to
12381 i386_dr_length_and_rw_bits and made nonstatic.
12383 (i386_insert_aligned_watchpoint): Renamed to
12384 i386_dr_insert_aligned_watchpoint and made nonstatic.
12386 (i386_remove_aligned_watchpoint): Renamed to
12387 i386_dr_remove_aligned_watchpoint and made nonstatic.
12389 (i386_update_inferior_debug_regs): Renamed to
12390 i386_dr_update_inferior_debug_regs and made nonstatic.
12392 (i386_low_insert_watchpoint): Renamed to
12393 i386_dr_insert_watchpoint. All uses updated.
12394 (i386_low_remove_watchpoint): Renamed to
12395 i386_dr_remove_watchpoint. All uses updated.
12396 (i386_low_region_ok_for_watchpoint): Renamed to
12397 i386_dr_region_ok_for_watchpoint. All uses updated.
12398 (i386_low_stopped_data_address): Renamed to
12399 i386_dr_stopped_data_address. All uses updated.
12400 (i386_low_stopped_by_watchpoint): Renamed to
12401 i386_dr_stopped_by_watchpoint. All uses updated.
12403 2014-06-18 Gary Benson <gbenson@redhat.com>
12405 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12406 (i386_dr_low_can_set_control): Likewise.
12407 (i386_insert_aligned_watchpoint): New check.
12409 2014-06-18 Gary Benson <gbenson@redhat.com>
12411 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12414 2014-06-18 Gary Benson <gbenson@redhat.com>
12416 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12417 instead of fatal and error.
12418 (i386_handle_nonaligned_watchpoint): Likewise.
12420 2014-06-18 Gary Benson <gbenson@redhat.com>
12422 * i386-low.c (i386_get_debug_register_length): New macro.
12423 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12424 (i386_show_dr): Use debug_printf instead of fprintf. Use
12425 phex to format values.
12427 2014-06-18 Gary Benson <gbenson@redhat.com>
12429 * i386-low.h: Comment changes.
12430 * i386-low.c: Likewise.
12432 2014-06-18 Gary Benson <gbenson@redhat.com>
12434 * i386-low.c: Whitespace changes.
12436 2014-06-12 Tom Tromey <tromey@redhat.com>
12438 * utils.c (freeargv): Remove.
12440 2014-06-12 Tom Tromey <tromey@redhat.com>
12442 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12443 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12444 (parse_debug_format_options): Likewise.
12445 (gdbserver_usage): Likewise.
12446 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12447 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12448 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12450 ($(LIBGNU)): Depend on libiberty.
12451 (all-lib): Recurse into all subdirs.
12452 (install-only): Invoke "install" target in subdirs.
12453 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12455 * configure: Rebuild.
12456 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12457 for vasprintf, vsnprintf, or gettimeofday.
12458 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12461 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12463 * development.sh: Delete.
12464 * Makefile.in (config.status): Adjust dependency on development.sh.
12465 * configure.ac: Adjust development.sh source call.
12466 * configure: Regenerate.
12468 2014-06-02 Pedro Alves <palves@redhat.com>
12470 * ax.c (gdb_free_agent_expr): New function.
12471 * ax.h (gdb_free_agent_expr): New declaration.
12472 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12474 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12476 (clear_breakpoint_conditions_and_commands): New function.
12477 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12478 (clear_breakpoint_conditions_and_commands): New declaration.
12480 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12482 * linux-aarch64-low.c (asm/ptrace.h): Include.
12484 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12486 Fix TLS access for -static -pthread.
12487 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12488 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12489 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12491 2014-05-20 Pedro Alves <palves@redhat.com>
12493 * linux-aarch64-low.c (aarch64_insert_point)
12494 (aarch64_remove_point): No longer check whether the type is
12495 supported here. Adjust to new interface.
12496 (the_low_target): Install aarch64_supports_z_point_type as
12497 supports_z_point_type method.
12498 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12499 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12500 instead of a Z packet char. Adjust.
12501 (arm_supports_z_point_type): New function.
12502 (arm_insert_point, arm_remove_point): Adjust to new interface.
12503 (the_low_target): Install arm_supports_z_point_type.
12504 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12505 (cris_insert_point, cris_remove_point): Adjust to new interface.
12506 Don't check whether the type is supported here.
12507 (the_low_target): Install cris_supports_z_point_type.
12508 * linux-low.c (linux_supports_z_point_type): New function.
12509 (linux_insert_point, linux_remove_point): Adjust to new interface.
12510 * linux-low.h (struct linux_target_ops) <insert_point,
12511 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12512 raw_breakpoint pointer parameter.
12513 <supports_z_point_type>: New method.
12514 * linux-mips-low.c (mips_supports_z_point_type): New function.
12515 (mips_insert_point, mips_remove_point): Adjust to new interface.
12516 Use mips_supports_z_point_type.
12517 (the_low_target): Install mips_supports_z_point_type.
12518 * linux-ppc-low.c (the_low_target): Install NULL as
12519 supports_z_point_type method.
12520 * linux-s390-low.c (the_low_target): Install NULL as
12521 supports_z_point_type method.
12522 * linux-sparc-low.c (the_low_target): Install NULL as
12523 supports_z_point_type method.
12524 * linux-x86-low.c (x86_supports_z_point_type): New function.
12525 (x86_insert_point): Adjust to new insert_point interface. Use
12526 insert_memory_breakpoint. Adjust to new
12527 i386_low_insert_watchpoint interface.
12528 (x86_remove_point): Adjust to remove_point interface. Use
12529 remove_memory_breakpoint. Adjust to new
12530 i386_low_remove_watchpoint interface.
12531 (the_low_target): Install x86_supports_z_point_type.
12532 * lynx-low.c (lynx_target_ops): Install NULL as
12533 supports_z_point_type callback.
12534 * nto-low.c (nto_supports_z_point_type): New.
12535 (nto_insert_point, nto_remove_point): Adjust to new interface.
12536 (nto_target_ops): Install nto_supports_z_point_type.
12537 * mem-break.c: Adjust intro comment.
12538 (struct raw_breakpoint) <raw_type, size>: New fields.
12539 <inserted>: Update comment.
12540 <shlib_disabled>: Delete field.
12541 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12542 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12543 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12544 (raw_bkpt_type_to_target_hw_bp_type): New function.
12545 (find_enabled_raw_code_breakpoint_at): New function.
12546 (find_raw_breakpoint_at): New type and size parameters. Use them.
12547 (insert_memory_breakpoint): New function, based off
12548 set_raw_breakpoint_at.
12549 (remove_memory_breakpoint): New function.
12550 (set_raw_breakpoint_at): Reimplement.
12551 (set_breakpoint): New, based on set_breakpoint_at.
12552 (set_breakpoint_at): Reimplement.
12553 (delete_raw_breakpoint): Go through the_target->remove_point
12554 instead of assuming memory breakpoints.
12555 (find_gdb_breakpoint_at): Delete.
12556 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12557 (find_gdb_breakpoint): New function.
12558 (set_gdb_breakpoint_at): Delete.
12559 (z_type_supported): New function.
12560 (set_gdb_breakpoint_1): New function, loosely based off
12561 set_gdb_breakpoint_at.
12562 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12563 (delete_gdb_breakpoint_at): Delete.
12564 (delete_gdb_breakpoint_1): New function, loosely based off
12565 delete_gdb_breakpoint_at.
12566 (delete_gdb_breakpoint): New function.
12567 (clear_gdb_breakpoint_conditions): Rename to ...
12568 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12570 (add_condition_to_breakpoint): Make static.
12571 (add_breakpoint_condition): Take a struct breakpoint pointer
12572 instead of an address. Adjust.
12573 (gdb_condition_true_at_breakpoint): Rename to ...
12574 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12576 (gdb_condition_true_at_breakpoint): Reimplement.
12577 (add_breakpoint_commands): Take a struct breakpoint pointer
12578 instead of an address. Adjust.
12579 (gdb_no_commands_at_breakpoint): Rename to ...
12580 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12581 parameter. Return true if no breakpoint was found. Change debug
12583 (gdb_no_commands_at_breakpoint): Reimplement.
12584 (run_breakpoint_commands): Rename to ...
12585 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12586 and change return type to boolean.
12587 (run_breakpoint_commands): New function.
12588 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12589 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12590 breakpoint. Go through the_target->remove_point instead of
12591 assuming memory breakpoint.
12592 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12593 software and hardware breakpoints.
12594 (reinsert_raw_breakpoint): Go through the_target->insert_point
12595 instead of assuming memory breakpoint.
12596 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12597 software and hardware breakpoints.
12598 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12599 Check both software and hardware breakpoints.
12600 (validate_inserted_breakpoint): Assert the breakpoint is a
12601 software breakpoint. Set the inserted flag to -1 instead of
12602 setting shlib_disabled.
12603 (delete_disabled_breakpoints): Adjust.
12604 (validate_breakpoints): Only validate software breakpoints.
12605 Adjust to inserted flag change.
12606 (check_mem_read, check_mem_write): Skip breakpoint types other
12607 than software breakpoints. Adjust to inserted flag change.
12608 * mem-break.h (enum raw_bkpt_type): New enum.
12609 (raw_breakpoint, struct process_info): Forward declare.
12610 (Z_packet_to_target_hw_bp_type): Delete declaration.
12611 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12612 (set_gdb_breakpoint, delete_gdb_breakpoint)
12613 (clear_breakpoint_conditions): New declarations.
12614 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12615 (breakpoint_inserted_here): Update comment.
12616 (add_breakpoint_condition, add_breakpoint_commands): Replace
12617 address parameter with a breakpoint pointer parameter.
12618 (gdb_breakpoint_here): Update comment.
12619 (delete_gdb_breakpoint_at): Delete.
12620 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12621 * server.c (process_point_options): Take a struct breakpoint
12622 pointer instead of an address. Adjust.
12623 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12624 delete_gdb_breakpoint.
12625 * spu-low.c (spu_target_ops): Install NULL as
12626 supports_z_point_type method.
12627 * target.h: Include mem-break.h.
12628 (struct target_ops) <prepare_to_access_memory>: Update comment.
12629 <supports_z_point_type>: New field.
12630 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12631 instead of a char. Also take a raw breakpoint pointer.
12632 * win32-arm-low.c (the_low_target): Install NULL as
12633 supports_z_point_type.
12634 * win32-i386-low.c (i386_supports_z_point_type): New function.
12635 (i386_insert_point, i386_remove_point): Adjust to new interface.
12636 (the_low_target): Install i386_supports_z_point_type.
12637 * win32-low.c (win32_supports_z_point_type): New function.
12638 (win32_insert_point, win32_remove_point): Adjust to new interface.
12639 (win32_target_ops): Install win32_supports_z_point_type.
12640 * win32-low.h (struct win32_target_ops):
12641 <supports_z_point_type>: New method.
12642 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12643 instead of a char. Also take a raw breakpoint pointer.
12645 2014-05-20 Pedro Alves <palves@redhat.com>
12647 * mem-break.h: Include break-common.h.
12648 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12649 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12650 (Z_packet_to_target_hw_bp_type): New declaration.
12651 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12652 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12653 (Z_PACKET_ACCESS_WP): Delete macros.
12654 (Z_packet_to_hw_type): Delete function.
12655 * i386-low.h: Don't include break-common.h here.
12656 (Z_packet_to_hw_type): Delete declaration.
12657 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12658 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12659 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12660 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12661 * linux-aarch64-low.c: Don't include break-common.h here.
12662 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12663 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12664 (Z_packet_to_target_hw_bp_type): Delete function.
12665 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12667 (mips_insert_point, mips_remove_point): Use
12668 Z_packet_to_target_hw_bp_type.
12670 2014-05-20 Pedro Alves <palves@redhat.com>
12672 * linux-aarch64-low.c: Include break-common.h.
12673 (enum target_point_type): Delete.
12674 (Z_packet_to_point_type): Rename to ...
12675 (Z_packet_to_target_hw_bp_type): ... this, and return a
12676 target_hw_bp_type instead.
12677 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12678 instead of an enum target_point_type.
12679 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12681 (aarch64_dr_state_insert_one_point)
12682 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12683 (aarch64_handle_aligned_watchpoint)
12684 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12685 Take an enum target_hw_bp_type instead of an enum
12687 (aarch64_supports_z_point_type): New function.
12688 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12689 use Z_packet_to_target_hw_bp_type.
12691 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12693 * configure.ac: Only use -Werror by default when DEVELOPMENT
12695 * configure: Regenerate.
12697 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12699 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12700 * linux-x86-low.c (X86_64_USER_REGS): New.
12701 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12703 2014-04-28 Yao Qi <yao@codesourcery.com>
12705 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12708 2014-04-25 Pedro Alves <palves@redhat.com>
12711 * linux-low.c (linux_attach_fail_reason_string): New function.
12712 (linux_attach_lwp): Delete.
12713 (linux_attach_lwp_1): Rename to ...
12714 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12715 argument. Remove "initial" parameter. Return int instead of
12716 void. Don't error or warn here.
12717 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12718 failure to attach to the tgid. Call warning when failing to
12720 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12721 argument. Remove "initial" parameter. Return int instead of
12722 void. Don't error or warn here.
12723 (linux_attach_fail_reason_string): New declaration.
12724 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12725 interface change. Use linux_attach_fail_reason_string.
12727 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12728 Walfred Tedeschi <walfred.tedeschi@intel.com>
12730 * Makefile.in: Added rules to handle new files
12731 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12732 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12733 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12734 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12735 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12736 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12737 x32-avx512-linux.o.
12738 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12739 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12740 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12741 i386/x32-avx512.xml.
12742 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12743 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12744 i386/x32-avx512-linux.xml.
12745 * i387-fp.c (num_avx512_k_registers): New constant for number
12747 (num_avx512_zmmh_low_registers): New constant for number of
12748 lower ZMM registers (0-15).
12749 (num_avx512_zmmh_high_registers): New constant for number of
12750 higher ZMM registers (16-31).
12751 (num_avx512_ymmh_registers): New contant for number of higher
12752 YMM registers (ymm16-31 added by avx521 on x86_64).
12753 (num_avx512_xmm_registers): New constant for number of higher
12754 XMM registers (xmm16-31 added by AVX512 on x86_64).
12755 (struct i387_xsave): Add space for AVX512 registers.
12756 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12757 Add code to handle AVX512 registers.
12758 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12759 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12760 prototypei from generated file.
12761 (tdesc_amd64_avx512_linux): Likewise.
12762 (init_registers_x32_avx512_linux): Likewise.
12763 (tdesc_x32_avx512_linux): Likewise.
12764 (init_registers_i386_avx512_linux): Likewise.
12765 (tdesc_i386_avx512_linux): Likewise.
12766 (x86_64_regmap): Add AVX512 registers.
12767 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12769 (initialize_low_arch): Add code to initialize AVX512 registers.
12771 2014-04-23 Pedro Alves <palves@redhat.com>
12773 * mem-break.c (find_gdb_breakpoint_at): Make static.
12774 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12776 2014-04-23 Pedro Alves <palves@redhat.com>
12778 * i386-low.c: Don't include break-common.h here.
12779 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12780 prototype to take target_hw_bp_type as argument instead of a Z
12782 * i386-low.h: Include break-common.h here.
12783 (Z_packet_to_hw_type): Declare.
12784 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12786 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12787 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12788 (x86_remove_point): Convert the packet number to a
12789 target_hw_bp_type before calling i386_low_remove_watchpoint.
12790 * win32-i386-low.c (i386_insert_point): Convert the packet number
12791 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12792 (i386_remove_point): Convert the packet number to a
12793 target_hw_bp_type before calling i386_low_remove_watchpoint.
12795 2014-04-23 Pedro Alves <palves@redhat.com>
12797 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12799 2014-04-10 Pedro Alves <palves@redhat.com>
12801 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12802 Check if the condition or command is NULL before checking if the
12803 breakpoint is known. On success, return true.
12804 * mem-break.h (add_breakpoint_condition): Document return.
12805 (add_breakpoint_commands): Add describing comment.
12806 * server.c (skip_to_semicolon): New function.
12807 (process_point_options): Use it.
12809 2014-04-09 Pedro Alves <palves@redhat.com>
12811 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12814 2014-02-27 Pedro Alves <palves@redhat.com>
12817 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12819 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12821 (last_thread_of_process_p): Take a PID argument instead of a
12823 (linux_wait_for_lwp): Delete.
12824 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12826 (linux_low_filter_event): New function, party factored out from
12827 linux_wait_for_event.
12828 (linux_wait_for_event): Rename to ...
12829 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12830 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12831 sigsuspend. Check for zombie leaders.
12832 (linux_wait_for_event): Reimplement as wrapper around
12833 linux_wait_for_event_filtered.
12834 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12835 a normal or signal exit is seen, it's the whole process exiting.
12836 (wait_for_sigstop): No longer a for_each_inferior callback.
12837 Rewrite on top of linux_wait_for_event_filtered.
12838 (stop_all_lwps): Call wait_for_sigstop directly.
12839 * server.c (resume, handle_target_event): Handle
12840 TARGET_WAITKIND_NO_RESUMED.
12842 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12844 * win32-low.c (psapi_get_dll_name,
12845 * win32_CreateToolhelp32Snapshot): Delete.
12846 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12847 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12849 (handle_load_dll): Add function description.
12850 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12852 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12854 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12856 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12857 base address when calling win32_add_one_solib.
12858 (handle_load_dll): Delete local variable load_addr.
12859 Remove 0x1000 offset applied to DLL base address when calling
12860 win32_add_one_solib.
12861 (handle_unload_dll): Add comment.
12863 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12865 * win32-low.c (win32_add_all_dlls): Renames
12866 win32_ensure_ntdll_loaded. Rewrite function documentation.
12867 Adjust implementation to always load all DLLs.
12868 Add 0x1000 offset to DLL base address when calling
12869 win32_add_one_solib.
12870 (child_initialization_done): New static global.
12871 (do_initial_child_stuff): Set child_initialization_done to
12872 zero during child initialization, and 1 after. Replace call
12873 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12875 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12876 (handle_unload_dll): Add function documentation.
12877 (get_child_debug_event): Ignore load and unload DLL events
12878 during child initialization.
12880 2014-02-20 Doug Evans <dje@google.com>
12882 Remove global all_lwps.
12883 * inferiors.h (ptid_of): Move here from linux-low.h.
12884 (pid_of, lwpid_of): Ditto.
12885 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12886 parameter is a struct thread_info * now.
12887 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12888 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12889 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12891 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12892 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12893 * linux-arm-low.c (update_registers_callback): Update, "entry"
12894 parameter is a struct thread_info * now.
12895 Fetch lwpid from current_inferior directly.
12896 (arm_insert_point): Pass &all_threads to find_inferior instead of
12898 (arm_remove_point): Ditto.
12899 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12900 (arm_prepare_to_resume): Fetch pid from thread.
12901 (arm_read_description): Fetch lwpid from current_inferior directly.
12902 * linux-low.c (all_lwps): Delete.
12903 (delete_lwp): Delete call to remove_inferior.
12904 (handle_extended_wait): Fetch lwpid from thread.
12905 (add_lwp): Don't set lwp->entry.id. Remove call to
12906 add_inferior_to_list.
12907 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12908 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12909 (kill_one_lwp_callback): Ditto.
12910 (linux_kill): Don't dereference NULL pointer.
12911 Fetch ptid,lwpid from thread.
12912 (get_detach_signal): Fetch ptid from thread.
12913 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12914 Simplify call to regcache_invalidate_thread.
12915 (delete_lwp_callback): Update, "entry" parameter is a
12916 struct thread_info * now. Fetch pid from thread.
12917 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12918 (status_pending_p_callback): Update, "entry" parameter is a
12919 struct thread_info * now. Fetch ptid from thread.
12920 (find_lwp_pid): Update, "entry" parameter is a
12921 struct thread_info * now.
12922 (linux_wait_for_lwp): Fetch pid from thread.
12923 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12924 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12925 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12926 (dequeue_one_deferred_signal): Ditto.
12927 (cancel_breakpoint): Fetch ptid from current_inferior.
12928 (linux_wait_for_event): Pass &all_threads to find_inferior,
12929 not &all_lwps. Fetch ptid, lwpid from thread.
12930 (count_events_callback): Update, "entry" parameter is a
12931 struct thread_info * now.
12932 (select_singlestep_lwp_callback): Ditto.
12933 (select_event_lwp_callback): Ditto.
12934 (cancel_breakpoints_callback): Ditto.
12935 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12937 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12938 (unsuspend_one_lwp): Update, "entry" parameter is a
12939 struct thread_info * now.
12940 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12942 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12943 Fetch lwpid from thread, not lwp.
12944 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12945 Pass &all_threads to find_inferior, not &all_lwps.
12946 (send_sigstop): Fetch lwpid from thread, not lwp.
12947 (send_sigstop_callback): Update, "entry" parameter is a
12948 struct thread_info * now.
12949 (suspend_and_send_sigstop_callback): Ditto.
12950 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12951 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12952 struct thread_info * now.
12953 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12955 (lwp_running): Update, "entry" parameter is a
12956 struct thread_info * now.
12957 (stop_all_lwps): Fetch ptid from thread.
12958 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12959 (linux_resume_one_lwp): Fetch lwpid from thread.
12960 (linux_set_resume_request): Update, "entry" parameter is a
12961 struct thread_info * now. Fetch pid, lwpid from thread.
12962 (resume_status_pending_p): Update, "entry" parameter is a
12963 struct thread_info * now.
12964 (need_step_over_p): Ditto. Fetch lwpid from thread.
12965 (start_step_over): Fetch lwpid from thread.
12966 (linux_resume_one_thread): Update, "entry" parameter is a
12967 struct thread_info * now. Fetch lwpid from thread.
12968 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12969 (proceed_one_lwp): Update, "entry" parameter is a
12970 struct thread_info * now. Fetch lwpid from thread.
12971 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12972 struct thread_info * now.
12973 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12974 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12975 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12977 (regsets_store_inferior_registers): Ditto.
12978 (fetch_register, store_register): Ditto.
12979 (linux_read_memory, linux_write_memory): Ditto.
12980 (linux_request_interrupt): Ditto.
12981 (linux_read_auxv): Ditto.
12982 (linux_xfer_siginfo): Ditto.
12983 (linux_qxfer_spu): Ditto.
12984 (linux_qxfer_libraries_svr4): Ditto.
12985 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12986 moved to inferiors.h.
12988 (get_thread_lwp): Update.
12989 (struct lwp_info): Delete member "entry". Simplify comment for
12991 (all_lwps): Delete.
12992 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12993 current_inferior directly.
12994 (update_watch_registers_callback): Update, "entry" parameter is a
12995 struct thread_info * now. Fetch pid from thread.
12996 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12997 (mips_insert_point): Fetch lwpid from current_inferior.
12998 Pass &all_threads to find_inferior, not &all_lwps.
12999 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13000 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13002 (mips_stopped_data_address): Ditto.
13003 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13005 * linux-tile-low.c (tile_arch_setup): Ditto.
13006 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13007 (update_debug_registers_callback): Update, "entry" parameter is a
13008 struct thread_info * now. Fetch pid from thread.
13009 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13010 Pass &all_threads to find_inferior, not &all_lwps.
13011 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13012 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13013 Pass &all_threads to find_inferior, not &all_lwps.
13014 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13015 (i386_dr_low_get_status): Ditto.
13016 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13017 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13018 (x86_linux_read_description): Ditto.
13019 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13021 2014-02-20 Doug Evans <dje@google.com>
13023 * inferiors.c (get_first_inferior): Fix buglet.
13025 2014-02-19 Doug Evans <dje@google.com>
13027 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13028 * inferiors.c (add_thread): Change result type to struct thread_info *.
13029 All callers updated.
13030 (add_lwp): Call add_thread here instead of in callers.
13031 All callers updated.
13032 * linux-low.h (get_lwp_thread): Rewrite.
13033 (struct lwp_info): New member "thread".
13035 2014-02-19 Doug Evans <dje@google.com>
13037 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13038 All callers updated.
13040 2014-02-19 Doug Evans <dje@google.com>
13042 * inferiors.c (add_thread): Fix whitespace.
13044 2014-02-19 Doug Evans <dje@google.com>
13046 * dll.c (clear_dlls): Replace accessing list implemention details
13048 * gdbthread.h (get_first_thread): Declare.
13049 * inferiors.c (for_each_inferior_with_data): New function.
13050 (get_first_thread): New function.
13051 (find_thread_ptid): Simplify.
13052 (get_first_inferior): New function.
13053 (clear_list): Delete.
13054 (one_inferior_p): New function.
13055 (clear_inferior_list): New function.
13056 (clear_inferiors): Update.
13057 * inferiors.h (for_each_inferior_with_data): Declare.
13058 (clear_inferior_list): Declare.
13059 (one_inferior_p): Declare.
13060 (get_first_inferior): Declare.
13061 * linux-low.c (linux_wait_for_event): Replace accessing list
13062 implemention details with API function.
13063 * server.c (target_running): Ditto.
13064 (accumulate_file_name_length): New function.
13065 (emit_dll_description): New function.
13066 (handle_qxfer_libraries): Replace accessing list implemention
13067 details with API function.
13068 (handle_qxfer_threads_worker): New function.
13069 (handle_qxfer_threads_proper): Replace accessing list implemention
13070 details with API function.
13071 (handle_query): Ditto.
13072 (visit_actioned_threads_callback_ftype): New typedef.
13073 (visit_actioned_threads_data): New struct.
13074 (visit_actioned_threads): Rewrite to be find_inferior callback.
13075 (resume): Call find_inferior.
13076 (handle_status): Replace accessing list implemention
13077 details with API function.
13078 (process_serial_event): Replace accessing list implemention details
13080 * target.c (set_desired_inferior): Replace accessing list implemention
13081 details with API function.
13082 * tracepoint.c (same_process_p): New function.
13083 (gdb_agent_about_to_close): Replace accessing list implemention
13084 details with API function.
13085 * win32-low.c (child_delete_thread): Replace accessing list
13086 implemention details with API function.
13087 (match_dll_by_basename): New function.
13088 (dll_is_loaded_by_basename): New function.
13089 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13090 details call to dll_is_loaded_by_basename.
13092 2014-02-19 Doug Evans <dje@google.com>
13094 * dll.h (struct dll_info): Add comment.
13095 * gdbthread.h (struct thread_info): Add comment.
13096 (current_ptid): Simplify.
13097 * inferiors.c (add_process): Update.
13098 (remove_process): Update.
13099 * inferiors.h (struct process_info): Rename member "head" to "entry".
13100 * linux-low.c (delete_lwp): Update.
13102 (last_thread_of_process_p): Update.
13103 (kill_one_lwp_callback, linux_kill): Update.
13104 (status_pending_p_callback): Update.
13105 (wait_for_sigstop): Update. Simplify read of ptid.
13106 (start_step_over): Update.
13107 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13108 (get_lwp_thread): Update.
13109 (struct lwp_info): Rename member "head" to "entry".
13110 * regcache.h (inferior_list_entry): Delete.
13111 * server.c (kill_inferior_callback): Update.
13112 (detach_or_kill_inferior_callback): Update.
13113 (print_started_pid): Update.
13114 (print_attached_pid): Update.
13115 (process_serial_event): Simplify read of ptid.
13116 * thread-db.c (thread_db_create_event): Update.
13117 (thread_db_get_tls_address): Update.
13118 * win32-low.c (current_inferior_ptid): Simplify.
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13122 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13124 (target_supports_btrace): Update.
13126 2014-02-14 Yao Qi <yao@codesourcery.com>
13128 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13129 (rsp-low-ipa.o): New target.
13131 2014-02-12 Tom Tromey <tromey@redhat.com>
13133 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13134 convert_ascii_to_int.
13135 * regcache.c (registers_to_string): Likewise.
13136 * remote-utils.c (decode_M_packet): Likewise.
13137 * server.c (process_serial_event): Likewise.
13139 2014-02-12 Tom Tromey <tromey@redhat.com>
13141 * server.c (handle_query, handle_v_run): Use hex2bin, not
13143 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13145 2014-02-12 Tom Tromey <tromey@redhat.com>
13147 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13148 convert_int_to_ascii.
13149 * regcache.c (registers_to_string, collect_register_as_string):
13151 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13153 * server.c (process_serial_event): Likewise.
13154 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13155 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13157 2014-02-12 Tom Tromey <tromey@redhat.com>
13159 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13160 bin2hex, not hexify.
13161 * tracepoint.c (cmd_qtstatus): Likewise.
13163 2014-02-12 Tom Tromey <tromey@redhat.com>
13165 * remote-utils.c (monitor_output): Pass explicit length to
13168 2014-02-12 Tom Tromey <tromey@redhat.com>
13170 * tracepoint.c: Include rsp-low.h.
13171 * server.c: Include rsp-low.h.
13172 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13173 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13175 * remote-utils.c: Include rsp-low.h.
13176 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13177 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13178 (convert_int_to_ascii, convert_ascii_to_int): Move to
13180 * regcache.c: Include rsp-low.h.
13181 * ax.c: Include rsp-low.h.
13182 * Makefile.in (SFILES): Add common/rsp-low.c.
13183 (OBS): Add rsp-low.o.
13184 (rsp-low.o): New target.
13186 2014-02-12 Tom Tromey <tromey@redhat.com>
13188 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13189 Include print-utils.h.
13190 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13191 (plongest, thirty_two, phex_nz): Remove.
13192 * Makefile.in (SFILES): Add common/print-utils.c.
13193 (OBS): Add print-utils.o.
13194 (print-utils-ipa.o): New target.
13195 (print-utils.o): New target.
13196 (IPA_OBJS): Add print-utils-ipa.o.
13198 2014-02-06 Tom Tromey <tromey@redhat.com>
13200 * Makefile.in (SFILES): Fix indentation.
13202 2014-02-05 Doug Evans <dje@google.com>
13204 * linux-low.c (linux_wait_for_event): Improve comment.
13205 (linux_wait_1): Keep current_inferior in sync with event_child.
13207 2014-01-22 Doug Evans <dje@google.com>
13209 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13211 2014-01-22 Doug Evans <dje@google.com>
13213 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13214 * configure: Regenerate.
13215 * config.in: Regenerate.
13216 * Makefile.in (SFILES): Add debug.c.
13217 (OBS): Add debug.o.
13218 * debug.c: New file.
13219 * debug.h: New file.
13220 * linux-aarch64-low.c (*): Update all debugging printfs to use
13221 debug_printf instead of fprintf.
13222 * linux-arm-low.c (*): Ditto.
13223 * linux-cris-low.c (*): Ditto.
13224 * linux-crisv32-low.c (*): Ditto.
13225 * linux-m32r-low.c (*): Ditto.
13226 * linux-sparc-low.c (*): Ditto.
13227 * linux-x86.c (*): Ditto.
13228 * linux-low.c (*): Ditto.
13229 (linux_wait_1): Add calls to debug_enter, debug_exit.
13230 (linux_wait): Remove redundant debugging printf.
13231 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13232 (linux_resume, unstop_all_lwps): Ditto.
13233 * mem-break.c (*): Update all debugging printfs to use
13234 debug_printf instead of fprintf.
13235 * remote-utils.c (*): Ditto.
13236 * thread-db.c (*): Ditto.
13237 * server.c #include <ctype.h>, "gdb_vecs.h".
13238 (debug_threads): Moved to debug.c.
13239 (*): Update all debugging printfs to use debug_printf instead of
13241 (start_inferior): Replace call to fflush with call to debug_flush.
13242 (monitor_show_help): Mention set debug-format.
13243 (parse_debug_format_options): New function.
13244 (handle_monitor_command): Handle "monitor set debug-format".
13245 (gdbserver_usage): Mention --debug-format.
13246 (main): Parse --debug-format.
13247 * server.h (debug_threads): Declaration moved to debug.h.
13248 #include "debug.h".
13249 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13250 trace_debug_1 that uses debug_printf.
13251 (tracepoint_look_up_symbols): Update all debugging printfs to use
13252 debug_printf instead of fprintf.
13254 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13256 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13259 2014-01-17 Pedro Alves <palves@redhat.com>
13262 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13263 defined after including gdb_proc_service.h.
13265 2014-01-16 Doug Evans <dje@google.com>
13267 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13268 (match_dll): Use it.
13270 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13272 * target.h (target_ops) <read_btrace>: Change parameters and
13273 return type to allow error reporting.
13274 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13275 trace reading errors on.
13276 * linux-low.c (linux_low_read_btrace): Pass trace reading
13278 (linux_low_disable_btrace): New.
13280 2014-01-15 Doug Evans <dje@google.com>
13282 * inferiors.c (thread_id_to_gdb_id): Delete.
13283 * inferiors.h (thread_id_to_gdb_id): Delete.
13285 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13287 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13288 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13291 2014-01-08 Pedro Alves <palves@redhat.com>
13293 * server.c (handle_status): Don't discard previous queued stop
13294 replies or thread's pending status here.
13295 (main) <disconnection>: Do it here instead.
13297 2014-01-08 Pedro Alves <palves@redhat.com>
13299 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13300 * server.c (visit_actioned_threads, handle_pending_status): New
13302 (handle_v_cont): Factor out parts to ...
13303 (resume): ... this new function. If in all-stop, and a thread
13304 being resumed has a pending status, report it without actually
13306 (myresume): Adjust to use the new 'resume' function.
13307 (clear_pending_status_callback, set_pending_status_callback)
13308 (find_status_pending_thread_callback): New functions.
13309 (handle_status): Handle the case of multiple threads having
13310 interesting statuses to report. Report threads' real last signal
13311 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13312 with an interesting thread to report the status for, instead of
13313 always reporting the status of the first thread.
13315 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13317 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13318 * gdbreplay.c (gdbreplay_version): Likewise.
13320 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13322 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13323 iov.iov_len with the real length in use.
13325 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13327 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13328 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13329 for all targets that use win32-low.c.
13330 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13331 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13333 2013-12-13 Pedro Alves <palves@redhat.com>
13335 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13336 if equal to TARGET_WAITKIND_LOADED.
13337 * win32-low.c (cached_status): New static global.
13338 (win32_wait): Add declaration.
13339 (do_initial_child_stuff): Flush all initial pending debug events
13340 up to the initial breakpoint.
13341 (win32_wait): If CACHED_STATUS was set, return that instead
13342 of doing a real wait. Remove the code resuming the execution
13343 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13344 during the initial phase. Also remove the code changing
13345 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13346 TARGET_WAITKIND_STOPPED.
13348 2013-12-11 Yao Qi <yao@codesourcery.com>
13350 * notif.c (handle_notif_ack): Return 0 if no notification
13353 2013-11-20 Doug Evans <dje@google.com>
13355 * linux-low.c (linux_set_resume_request): Fix comment.
13357 2013-11-20 Doug Evans <dje@google.com>
13359 * linux-low.c (resume_status_pending_p): Tweak comment.
13361 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13363 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13364 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13365 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13366 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13367 (srv_amd64_regobj): Add amd64-mpx.o.
13368 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13369 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13370 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13371 * i387-fp.c (num_pl_bnd_register) Added constant.
13372 (num_pl_bnd_cfg_registers) Added constant.
13373 (struct i387_xsave) Added reserved area and MPX fields.
13374 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13375 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13377 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13378 (init_registers_amd64_mpx_linux): Declare new function.
13379 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13380 (x86_64_regmap): Add MPX registers.
13381 (x86_linux_read_description): Add MPX case.
13382 (initialize_low_arch): Initialize MPX targets.
13384 2013-11-18 Tom Tromey <tromey@redhat.com>
13386 * configure: Rebuild.
13387 * configure.ac: Don't check for stdlib.h.
13388 * gdbreplay.c: Unconditionally include stdlib.h.
13390 2013-11-18 Tom Tromey <tromey@redhat.com>
13392 * config.in: Rebuild.
13393 * configure: Rebuild.
13394 * configure.ac: Don't use AC_HEADER_DIRENT.
13396 2013-11-18 Tom Tromey <tromey@redhat.com>
13398 * server.h: Don't check HAVE_STRING_H.
13399 * gdbreplay.c: Don't check HAVE_STRING_H.
13400 * configure: Rebuild.
13402 2013-11-18 Tom Tromey <tromey@redhat.com>
13404 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13407 2013-11-08 Tom Tromey <tromey@redhat.com>
13409 * configure, config.in: Rebuild.
13410 * configure.ac: Remove unused configury.
13412 2013-11-08 Tom Tromey <tromey@redhat.com>
13414 * acinclude.m4: Include common.m4, codeset.m4.
13415 * configure, config.in: Rebuild.
13416 * configure.ac: Use GDB_AC_COMMON.
13418 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13420 * linux-s390-low.c (HWCAP_S390_TE): New define.
13421 (s390_arch_setup): Consider the TE field in the HWCAP for
13422 determining 'have_regset_tdb'.
13424 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13427 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13430 2013-10-02 Pedro Alves <palves@redhat.com>
13432 * server.c (process_serial_event): Don't output "GDBserver
13433 exiting" if GDB is connected through stdio.
13434 * target.c (mywait): Likewise, be silent if GDB is connected
13437 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13439 * lynx-low.c (lynx_add_threads_after_attach): New function.
13440 (lynx_attach): Remove call to add_thread. Add call to
13441 lynx_add_threads_after_attach instead.
13443 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13445 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13446 * config.in, configure: Regenerated.
13448 2013-09-18 Yao Qi <yao@codesourcery.com>
13451 * server.c (start_inferior): Clear 'resume_info'.
13453 2013-09-16 Jiong Wang <jiwang@tilera.com>
13455 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13458 2013-09-16 Jiong Wang <jiwang@tilera.com>
13460 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13461 linux-tile-low.o to srv_tgtobj.
13463 2013-09-16 Will Newton <will.newton@linaro.org>
13465 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13468 2013-09-06 Pedro Alves <palves@redhat.com>
13470 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13471 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13472 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13473 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13474 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13475 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13477 2013-09-06 Pedro Alves <palves@redhat.com>
13479 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13480 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13482 2013-09-06 Pedro Alves <palves@redhat.com>
13484 * linux-amd64-ipa.c: Include tracepoint.h.
13485 * linux-i386-ipa.c: Include tracepoint.h.
13487 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13489 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13490 (ps_get_thread_area): New function.
13492 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13494 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13495 (initialize_low_arch): Call init_registers_crisv32 rather than
13496 init_register_crisv32.
13498 2013-09-05 Pedro Alves <palves@redhat.com>
13500 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13502 * hostio.h: ... this new file.
13503 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13504 win32-low.c: Include hostio.h.
13506 2013-09-05 Pedro Alves <palves@redhat.com>
13508 * server.h (gdb_client_data, handler_func, callback_handler_func)
13509 (delete_file_handler, add_file_handler, append_callback_event)
13510 (delete_callback_event, start_event_loop, initialize_event_loop):
13511 Move to event-loop.h and include it.
13512 * event-loop.h: New file.
13514 2013-09-05 Pedro Alves <palves@redhat.com>
13516 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13517 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13518 (loaded_dll, unloaded_dll): Move to ...
13519 * dll.h: ... this new file.
13520 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13522 2013-09-05 Pedro Alves <palves@redhat.com>
13524 * server.h (current_process, get_thread_process, all_processes)
13525 (add_inferior_to_list, for_each_inferior, current_inferior)
13526 (remove_inferior, add_process, remove_process, find_process_pid)
13527 (have_started_inferiors_p, have_attached_inferiors_p)
13528 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13529 (clear_inferiors, find_inferior, find_inferior_id)
13530 (inferior_target_data, set_inferior_target_data)
13531 (inferior_regcache_data, set_inferior_regcache_data): Move to
13532 inferiors.h, and include it.
13533 * inferiors.h: New file.
13535 2013-09-05 Pedro Alves <palves@redhat.com>
13537 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13541 2013-09-05 Pedro Alves <palves@redhat.com>
13543 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13545 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13546 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13547 (handle_tracepoint_general_set, handle_tracepoint_query)
13548 (tracepoint_finished_step, tracepoint_was_hit)
13549 (release_while_stepping_state_list, current_traceframe)
13550 (in_readonly_region, traceframe_read_mem)
13551 (fetch_traceframe_registers, traceframe_read_sdata)
13552 (traceframe_read_info, struct fast_tpoint_collect_status)
13553 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13554 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13555 (supply_fast_tracepoint_registers)
13556 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13557 (ipa_tdesc, claim_trampoline_space)
13558 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13559 (agent_mem_read, agent_get_trace_state_variable_value)
13560 (agent_set_trace_state_variable_value, agent_tsv_read)
13561 (agent_mem_read_string, get_raw_reg_func_addr)
13562 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13563 * tracepoint.h: ... this new file.
13565 2013-09-05 Pedro Alves <palves@redhat.com>
13567 * server.h (perror_with_name, error, fatal, warning, paddress)
13568 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13570 * utils.h: New file.
13572 2013-09-05 Pedro Alves <palves@redhat.com>
13574 * server.h (remote_debug, noack_mode, transport_is_reliable)
13575 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13576 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13577 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13578 (write_enn, initialize_async_io, enable_async_io)
13579 (disable_async_io, check_remote_input_interrupt_request)
13580 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13581 (dead_thread_notify, prepare_resume_reply)
13582 (decode_address_to_semicolon, decode_address, decode_m_packet)
13583 (decode_M_packet, decode_X_packet, decode_xfer_write)
13584 (decode_search_memory_packet, unhexify, hexify)
13585 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13586 (look_up_one_symbol, relocate_instruction)
13587 (monitor_output): Move to remote-utils.h, and include it.
13588 * remote-utils.h: New file.
13590 2013-09-05 Pedro Alves <palves@redhat.com>
13592 * server.h (_): Delete.
13594 2013-09-02 Pedro Alves <palves@redhat.com>
13596 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13597 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13599 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13601 2013-09-02 Pierre Muller <muller@sourceware.org>
13603 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13604 or WriteProcessMemory complete successfully and handle
13605 ERROR_PARTIAL_COPY error.
13607 2013-09-02 Pedro Alves <palves@redhat.com>
13609 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13610 error instead of EIO.
13612 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13615 * linux-low.c: Include filestuff.h.
13616 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13617 * lynx-low.c: Include filestuff.h.
13618 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13619 * server.c: Include filestuff.h.
13620 (main): Call notice_open_fds.
13621 * spu-low.c: Include filestuff.h.
13622 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13624 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13626 * Makefile.in: Explain why ../target and ../nat are not
13627 listed as include file search paths.
13628 (linux-waitpid.o): New object file rule.
13629 * configure.srv (srv_native_linux_obj): New variable.
13630 Replace all occurrences of linux native object files with
13631 $srv_native_linux_obj.
13632 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13633 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13634 (linux_enable_event_reporting): Remove declaration.
13635 (my_waitpid): Moved to common/linux-waitpid.c.
13636 (linux_wait_for_event): Pass ptid when calling
13637 linux_enable_event_reporting.
13638 (linux_supports_tracefork_flag): Remove.
13639 (linux_enable_event_reporting): Likewise.
13640 (linux_tracefork_grandchild): Remove.
13641 (STACK_SIZE): Moved to common/linux-ptrace.c.
13642 (linux_tracefork_child): Remove.
13643 (linux_test_for_tracefork): Remove.
13644 (linux_look_up_symbols): Call linux_supports_traceclone.
13645 (initialize_low): Remove call to linux_test_for_tracefork.
13646 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13647 common/linux-ptrace.h.
13648 (PTRACE_TYPE_ARG4): Likewise.
13649 Include linux-ptrace.h.
13651 2013-08-21 Pedro Alves <palves@redhat.com>
13653 * config.in: Renegerate.
13655 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13657 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13658 (SFILES): Remove $(srcdir)/common/target-common.c and
13659 add $(srcdir)/target/waitstatus.c.
13660 (OBS): Remove target-common.o and add waitstatus.o.
13661 (server_h): Remove $(srcdir)/../common/target-common.h and
13662 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13663 and $(srcdir)/../target/waitstatus.h.
13664 (target-common.o): Remove.
13665 (waitstatus.o): New target object file.
13666 * target.h: Do not include target-common.h and
13667 include target/resume.h, target/wait.h and
13668 target/waitstatus.h.
13670 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13672 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13673 to PTRACE_TYPE_ARG3.
13674 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13675 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13677 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13678 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13680 2013-07-27 Jie Zhang <jie@codesourcery.com>
13681 Daniel Jacobowitz <dan@codesourcery.com>
13682 Yao Qi <yao@codesourcery.com>
13684 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13685 (mips-linux-watch.o): New rule.
13686 (mips_linux_watch_h): New variable.
13687 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13689 * linux-mips-low.c: Include mips-linux-watch.h.
13690 (struct arch_process_info, struct arch_lwp_info): New.
13691 (update_watch_registers_callback): New function.
13692 (mips_linux_new_process, mips_linux_new_thread) New functions.
13693 (mips_linux_prepare_to_resume, mips_insert_point): New
13695 (mips_remove_point, mips_stopped_by_watchpoint): New
13697 (rsp_bp_type_to_target_hw_bp_type): New function.
13698 (mips_stopped_data_address): New function.
13699 (the_low_target): Add watchpoint support functions.
13701 2013-07-27 Yao Qi <yao@codesourcery.com>
13703 * i386-low.c: Include break-common.h.
13704 (enum target_hw_bp_type): Remove.
13706 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13708 * Makefile.in (SFILES): /common/target-common.c.
13709 (OBS): Add target-common.o.
13710 (server_h): Add $(srcdir)/../common/target-common.h.
13711 (target-common.o): New target.
13712 * server.c (queue_stop_reply_callback): Free
13713 status string after use.
13714 * target.c (target_waitstatus_to_string): Remove.
13715 * target.h: Include target-common.h.
13716 (resume_kind): Likewise.
13717 (target_waitkind): Likewise.
13718 (target_waitstatus): Likewise.
13719 (TARGET_WNOHANG): Likewise.
13721 2013-07-04 Yao Qi <yao@codesourcery.com>
13723 * Makefile.in (host_alias): Use @host_noncanonical@.
13724 (target_alias): Use @target_noncanonical@.
13725 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13726 ACX_NONCANONICAL_HOST.
13727 * configure: Regenerated.
13730 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13732 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13733 * configure: Rebuild.
13734 * Makefile.in (version_host, version_target): Get from configure.
13735 (version.c): Use $(version_host) and $(version_target).
13737 2013-07-03 Pedro Alves <palves@redhat.com>
13739 * Makefile.in (config.status): Depend on development.sh.
13740 * acinclude.m4: Include libmcheck.m4.
13741 * configure: Regenerate.
13743 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13745 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13746 attribute inside the parentheses.
13747 (winapi_DebugSetProcessKillOnExit): Ditto.
13748 (winapi_DebugBreakProcess): Ditto.
13749 (winapi_GenerateConsoleCtrlEvent): Ditto.
13751 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13753 * notif.h (notif_event): Add a dummy member to avoid compiler
13756 2013-07-01 Pedro Alves <palves@redhat.com>
13758 * hostio.c (HOSTIO_PATH_MAX): Define.
13759 (require_filename, handle_open, handle_unlink, handle_readlink):
13762 2013-07-01 Pedro Alves <palves@redhat.com>
13764 * server.h: Include "pathmax.h".
13765 * linux-low.c: Don't include sys/param.h.
13766 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13768 * win32-low.c: Don't include sys/param.h.
13769 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13771 2013-07-01 Pedro Alves <palves@redhat.com>
13773 * event-loop.c: Don't check HAVE_UNISTD_H before including
13775 * gdbreplay.c: Likewise.
13776 * remote-utils.c: Likewise.
13777 * server.c: Likewise.
13778 * configure.ac: Don't check for unistd.h.
13779 * configure: Regenerate.
13781 2013-06-28 Tom Tromey <tromey@redhat.com>
13783 * Makefile.in (version.c): Use version.in, not
13786 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13788 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13789 * configure: Rebuild.
13790 * Makefile.in (version_host, version_target): Get from configure.
13791 (version.c): Use $(version_host) and $(version_target).
13793 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13795 Fix trace-status to output user name without trailing colon.
13796 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13798 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13800 Fix trace-status to output proper start-time and stop-time.
13801 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13802 output start time and stop time in hex as gdb expects.
13804 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13806 * tracepoint.c (build_traceframe_info_xml): Output trace state
13807 variables present in the trace buffer.
13809 2013-06-24 Tom Tromey <tromey@redhat.com>
13811 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13813 (version.o): Remove.
13814 * gdbreplay.c: Include version.h.
13815 (version, host_name): Don't declare.
13816 * server.h: Include version.h.
13817 (version, host_name): Don't declare.
13819 2013-06-12 Pedro Alves <palves@redhat.com>
13821 * linux-x86-low.c (linux_is_elf64): Delete global.
13822 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13823 with local linux_pid_exe_is_elf_64_file use.
13825 2013-06-11 Pedro Alves <palves@redhat.com>
13827 * linux-low.c (regset_disabled, disable_regset): New functions.
13828 (regsets_fetch_inferior_registers)
13829 (regsets_store_inferior_registers): Use them.
13830 (initialize_regsets_info); Don't allocate the disabled_regsets
13832 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13835 2013-06-11 Pedro Alves <palves@redhat.com>
13837 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13840 2013-06-11 Pedro Alves <palves@redhat.com>
13842 * linux-x86-low.c (initialize_low_arch): Call
13843 init_registers_x32_avx_linux.
13845 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13847 Fix compatibility with Android Bionic.
13848 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13851 2013-06-07 Pedro Alves <palves@redhat.com>
13854 * Makefile.in (OBS): Add tdesc.o.
13855 (IPA_OBJS): Add tdesc-ipa.o.
13856 (tdesc-ipa.o): New rule.
13857 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13859 * linux-low.c (new_inferior): Delete.
13860 (disabled_regsets, num_regsets): Delete.
13861 (linux_add_process): Adjust to set the new per-process
13863 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13864 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13865 was a stop. When calling arch_setup, switch the current inferior
13866 to the thread that got an event.
13867 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13868 (regsets_fetch_inferior_registers)
13869 (regsets_store_inferior_registers): New regsets_info parameter.
13871 (linux_register_in_regsets): New regs_info parameter. Adjust to
13873 (register_addr, fetch_register, store_register): New usrregs_info
13874 parameter. Adjust to use it.
13875 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13876 parameter regs_info. Adjust to use it.
13877 (linux_fetch_registers): Get the current inferior's regs_info, and
13879 (linux_store_registers): Ditto.
13880 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13881 (initialize_low): Don't initialize the target_regsets here. Call
13882 initialize_low_arch.
13883 * linux-low.h (target_regsets): Delete declaration.
13884 (struct regsets_info): New.
13885 (struct usrregs_info): New.
13886 (struct regs_info): New.
13887 (struct process_info_private) <new_inferior>: New field.
13888 (struct linux_target_ops): Delete the num_regs, regmap, and
13889 regset_bitmap fields. New field regs_info.
13890 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13891 * i387-fp.c (num_xmm_registers): Delete.
13892 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13893 calls to new interface.
13894 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13895 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13896 Infer the number of xmm registers from the regcache's target
13898 * i387-fp.h (num_xmm_registers): Delete.
13899 * inferiors.c (add_thread): Don't install the thread's regcache
13901 * proc-service.c (gregset_info): Fetch the current inferior's
13902 regs_info. Adjust to use it.
13903 * regcache.c: Include tdesc.h.
13904 (register_bytes, reg_defs, num_registers)
13905 (gdbserver_expedite_regs): Delete.
13906 (get_thread_regcache): If the thread doesn't have a regcache yet,
13907 create one, instead of aborting gdbserver.
13908 (regcache_invalidate_one): Rename to ...
13909 (regcache_invalidate_thread): ... this.
13910 (regcache_invalidate_one): New.
13911 (regcache_invalidate): Only invalidate registers of the current
13913 (init_register_cache): Add target_desc parameter, and use it.
13914 (new_register_cache): Ditto. Assert the target description has a
13915 non zero registers_size.
13916 (regcache_cpy): Add assertions. Adjust.
13917 (realloc_register_cache, set_register_cache): Delete.
13918 (registers_to_string, registers_from_string): Adjust.
13919 (find_register_by_name, find_regno, find_register_by_number)
13920 (register_cache_size): Add target_desc parameter, and use it.
13921 (free_register_cache_thread, free_register_cache_thread_one)
13922 (regcache_release, register_cache_size): New.
13923 (register_size): Add target_desc parameter, and use it.
13924 (register_data, supply_register, supply_register_zeroed)
13925 (supply_regblock, supply_register_by_name, collect_register)
13926 (collect_register_as_string, collect_register_by_name): Adjust.
13927 * regcache.h (struct target_desc): Forward declare.
13928 (struct regcache) <tdesc>: New field.
13929 (init_register_cache, new_register_cache): Add target_desc
13931 (regcache_invalidate_thread): Declare.
13932 (regcache_invalidate_one): Delete declaration.
13933 (regcache_release): Declare.
13934 (find_register_by_number, register_cache_size, register_size)
13935 (find_regno): Add target_desc parameter.
13936 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13938 * remote-utils.c: Include tdesc.h.
13939 (outreg, prepare_resume_reply): Adjust.
13940 * server.c: Include tdesc.h.
13941 (gdbserver_xmltarget): Delete declaration.
13942 (get_features_xml, process_serial_event): Adjust.
13943 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13945 (struct process_info) <tdesc>: New field.
13946 (ipa_tdesc): Declare.
13947 * tdesc.c: New file.
13948 * tdesc.h: New file.
13949 * tracepoint.c: Include tdesc.h.
13950 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13951 (get_context_regcache): Adjust to pass ipa_tdesc down.
13952 (do_action_at_tracepoint): Adjust to get the register cache size
13953 from the context regcache's description.
13954 (traceframe_walk_blocks): Adjust to get the register cache size
13955 from the current trace frame's description.
13956 (traceframe_get_pc): Adjust to get current trace frame's
13957 description and pass it down.
13958 (gdb_collect): Adjust to get the register cache size from the
13960 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13961 (gdbserver_xmltarget): Delete.
13962 (initialize_low_tracepoint): Set the ipa's target description.
13963 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13964 (initialize_low_tracepoint): Set the ipa's target description.
13965 * linux-x86-low.c: Include tdesc.h.
13966 [__x86_64__] (is_64bit_tdesc): New.
13967 (ps_get_thread_area, x86_get_thread_area): Use it.
13968 (i386_cannot_store_register): Rename to ...
13969 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13970 (i386_cannot_fetch_register): Rename to ...
13971 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13972 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13974 (target_regsets): Rename to ...
13975 (x86_regsets): ... this.
13976 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13978 (x86_siginfo_fixup): Use is_64bit_tdesc.
13979 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13980 (tdesc_x32_avx_linux, tdesc_x32_linux)
13981 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13983 (x86_linux_update_xmltarget): Delete.
13984 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13985 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13986 (AMD64_LINUX_USER64_CS): New.
13987 (x86_linux_read_description): New, based on
13988 x86_linux_update_xmltarget.
13989 (same_process_callback): New.
13990 (x86_arch_setup_process_callback): New.
13991 (x86_linux_update_xmltarget): New.
13992 (x86_regsets_info): New.
13993 (amd64_linux_regs_info): New.
13994 (i386_linux_usrregs_info): New.
13995 (i386_linux_regs_info): New.
13996 (x86_linux_regs_info): New.
13997 (x86_arch_setup): Reimplement.
13998 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13999 (x86_emit_ops): Ditto.
14000 (the_low_target): Adjust. Install x86_linux_regs_info,
14001 x86_cannot_fetch_register, and x86_cannot_store_register.
14002 (initialize_low_arch): New.
14003 * linux-ia64-low.c (tdesc_ia64): Declare.
14004 (ia64_fetch_register): Adjust.
14005 (ia64_usrregs_info, regs_info): New globals.
14006 (ia64_regs_info): New function.
14007 (the_low_target): Adjust.
14008 (initialize_low_arch): New function.
14009 * linux-sparc-low.c (tdesc_sparc64): Declare.
14010 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14012 (sparc_arch_setup): New function.
14013 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14014 (the_low_target): Adjust.
14015 (initialize_low_arch): New function.
14016 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14017 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14018 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14019 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14020 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14021 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14022 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14023 (tdesc_powerpc_isa205_vsx64l): Declare.
14024 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14025 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14026 (ppc_set_pc, ppc_get_hwcap): Adjust.
14027 (ppc_usrregs_info): Forward declare.
14028 (!__powerpc64__) ppc_regmap_adjusted: New global.
14029 (ppc_arch_setup): Adjust to the current process'es target
14031 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14032 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14033 (ppc_store_evrregset): Adjust.
14034 (target_regsets): Rename to ...
14035 (ppc_regsets): ... this, and make static.
14036 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14037 (ppc_regs_info): New function.
14038 (the_low_target): Adjust.
14039 (initialize_low_arch): New function.
14040 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14041 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14042 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14043 (tdesc_s390x_linux64v2): Declare.
14044 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14045 (s390_fill_gregset, s390_store_last_break): Adjust.
14046 (target_regsets): Rename to ...
14047 (s390_regsets): ... this, and make static.
14048 (s390_get_pc, s390_set_pc): Adjust.
14049 (s390_get_hwcap): New target_desc parameter, and use it.
14050 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14051 (s390_arch_setup): Adjust to set the current process'es target
14052 description. Don't adjust the regmap.
14053 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14054 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14055 (regs_info_3264): New globals.
14056 (s390_regs_info): New function.
14057 (the_low_target): Adjust.
14058 (initialize_low_arch): New function.
14059 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14060 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14061 [__mips64] (init_registers_mips_linux)
14062 (init_registers_mips_dsp_linux): Delete defines.
14063 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14064 (have_dsp): New global.
14065 (mips_read_description): New, based on mips_arch_setup.
14066 (mips_arch_setup): Reimplement.
14067 (get_usrregs_info): New function.
14068 (mips_cannot_fetch_register, mips_cannot_store_register)
14069 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14070 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14071 (target_regsets): Rename to ...
14072 (mips_regsets): ... this, and make static.
14073 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14074 (dsp_regs_info, regs_info): New globals.
14075 (mips_regs_info): New function.
14076 (the_low_target): Adjust.
14077 (initialize_low_arch): New function.
14078 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14079 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14081 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14082 (arm_read_description): New, with bits factored from
14084 (arm_arch_setup): Reimplement.
14085 (target_regsets): Rename to ...
14086 (arm_regsets): ... this, and make static.
14087 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14088 (arm_regs_info): New function.
14089 (the_low_target): Adjust.
14090 (initialize_low_arch): New function.
14091 * linux-m68k-low.c (tdesc_m68k): Declare.
14092 (target_regsets): Rename to ...
14093 (m68k_regsets): ... this, and make static.
14094 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14095 (m68k_regs_info): New function.
14096 (m68k_arch_setup): New function.
14097 (the_low_target): Adjust.
14098 (initialize_low_arch): New function.
14099 * linux-sh-low.c (tdesc_sharch): Declare.
14100 (target_regsets): Rename to ...
14101 (sh_regsets): ... this, and make static.
14102 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14103 (sh_regs_info, sh_arch_setup): New functions.
14104 (the_low_target): Adjust.
14105 (initialize_low_arch): New function.
14106 * linux-bfin-low.c (tdesc_bfin): Declare.
14107 (bfin_arch_setup): New function.
14108 (bfin_usrregs_info, regs_info): New globals.
14109 (bfin_regs_info): New function.
14110 (the_low_target): Adjust.
14111 (initialize_low_arch): New function.
14112 * linux-cris-low.c (tdesc_cris): Declare.
14113 (cris_arch_setup): New function.
14114 (cris_usrregs_info, regs_info): New globals.
14115 (cris_regs_info): New function.
14116 (the_low_target): Adjust.
14117 (initialize_low_arch): New function.
14118 * linux-cris-low.c (tdesc_crisv32): Declare.
14119 (cris_arch_setup): New function.
14120 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14121 (cris_regs_info): New function.
14122 (the_low_target): Adjust.
14123 (initialize_low_arch): New function.
14124 * linux-m32r-low.c (tdesc_m32r): Declare.
14125 (m32r_arch_setup): New function.
14126 (m32r_usrregs_info, regs_info): New globals.
14127 (m32r_regs_info): Adjust.
14128 (initialize_low_arch): New function.
14129 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14130 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14131 (tic6x_usrregs_info): Forward declare.
14132 (tic6x_read_description): New function, based on ...
14133 (tic6x_arch_setup): ... this. Reimplement.
14134 (target_regsets): Rename to ...
14135 (tic6x_regsets): ... this, and make static.
14136 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14137 (tic6x_regs_info): New function.
14138 (the_low_target): Adjust.
14139 (initialize_low_arch): New function.
14140 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14141 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14142 (target_regsets): Rename to ...
14143 (xtensa_regsets): ... this, and make static.
14144 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14146 (xtensa_arch_setup, xtensa_regs_info): New functions.
14147 (the_low_target): Adjust.
14148 (initialize_low_arch): New function.
14149 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14150 (nios2_arch_setup): Set the current process'es tdesc.
14151 (target_regsets): Rename to ...
14152 (nios2_regsets): ... this.
14153 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14154 (nios2_regs_info): New function.
14155 (the_low_target): Adjust.
14156 (initialize_low_arch): New function.
14157 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14158 (aarch64_arch_setup): Set the current process'es tdesc.
14159 (target_regsets): Rename to ...
14160 (aarch64_regsets): ... this.
14161 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14162 (aarch64_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14167 (target_regsets): Rename to ...
14168 (tile_regsets): ... this.
14169 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14170 (tile_regs_info): New function.
14171 (tile_arch_setup): Set the current process'es tdesc.
14172 (the_low_target): Adjust.
14173 (initialize_low_arch): New function.
14174 * spu-low.c (tdesc_spu): Declare.
14175 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14176 * win32-arm-low.c (tdesc_arm): Declare.
14177 (arm_arch_setup): New function.
14178 (the_low_target): Install arm_arch_setup instead of
14179 init_registers_arm.
14180 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14181 (init_windows_x86): Rename to ...
14182 (i386_arch_setup): ... this. Set `win32_tdesc'.
14183 (the_low_target): Adjust.
14184 * win32-low.c (win32_tdesc): New global.
14185 (child_add_thread): Don't create the thread cache here.
14186 (do_initial_child_stuff): Set the new process'es tdesc.
14187 * win32-low.h (struct target_desc): Forward declare.
14188 (win32_tdesc): Declare.
14189 * lynx-i386-low.c (tdesc_i386): Declare global.
14190 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14191 * lynx-low.c (lynx_tdesc): New global.
14192 (lynx_add_process): Set the new process'es tdesc.
14193 * lynx-low.h (struct target_desc): Forward declare.
14194 (lynx_tdesc): Declare global.
14195 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14196 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14197 * nto-low.c (nto_tdesc): New global.
14198 (do_attach): Set the new process'es tdesc.
14199 * nto-low.h (struct target_desc): Forward declare.
14200 (nto_tdesc): Declare.
14201 * nto-x86-low.c (tdesc_i386): Declare.
14202 (nto_x86_arch_setup): Set `nto_tdesc'.
14204 2013-06-04 Gary Benson <gbenson@redhat.com>
14206 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14207 to qSupported response when appropriate.
14208 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14209 with nonzero-length annex.
14210 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14211 arguments supplied in annex.
14213 2013-05-31 Doug Evans <dje@google.com>
14216 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14217 64 bits in 64-cross-32 environment.
14219 2013-05-28 Pedro Alves <palves@redhat.com>
14221 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14222 (aarch64-without-fpu.c): Delete rule.
14223 * configure.srv (aarch64*-*-linux*): Remove references to
14224 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14225 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14228 2013-05-24 Pedro Alves <palves@redhat.com>
14230 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14231 instead of strchr/decode_address. Error if the range isn't split
14232 with a ','. Don't assume there's be a ':' in the action.
14234 2013-05-23 Yao Qi <yao@codesourcery.com>
14235 Pedro Alves <palves@redhat.com>
14237 * linux-low.c (lwp_in_step_range): New function.
14238 (linux_wait_1): If the thread was range stepping and stopped
14239 outside the stepping range, report the stop to GDB. Otherwise,
14240 continue stepping. Add range stepping debug output.
14241 (linux_set_resume_request): Copy the step range from the resume
14242 request to the lwp.
14243 (linux_supports_range_stepping): New.
14244 (linux_target_ops) <supports_range_stepping>: Set to
14245 linux_supports_range_stepping.
14246 * linux-low.h (struct linux_target_ops)
14247 <supports_range_stepping>: New field.
14248 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14249 * linux-x86-low.c (x86_supports_range_stepping): New.
14250 (the_low_target) <supports_range_stepping>: Set to
14251 x86_supports_range_stepping.
14252 * server.c (handle_v_cont): Handle 'r' action.
14253 (handle_v_requests): Append ";r" if the target supports range
14255 * target.h (struct thread_resume) <step_range_start,
14256 step_range_end>: New fields.
14257 (struct target_ops) <supports_range_stepping>:
14259 (target_supports_range_stepping): New macro.
14261 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14263 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14264 confusion in comment.
14266 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14268 * lynx-low.c (struct process_info_private): New type.
14269 (lynx_add_process): New function.
14270 (lynx_create_inferior, lynx_attach): Replace calls to
14271 add_process by calls to lynx_add_process.
14272 (lynx_resume): If PTID is null, then try using
14273 current_process()->private->last_wait_event_ptid.
14275 (lynx_clear_inferiors): Delete. The contents of that function
14276 has been inlined in lynx_mourn;
14277 (lynx_wait_1): Save the ptid in the process's private data.
14278 (lynx_mourn): Free the process' private data. Replace call
14279 to lynx_clear_inferiors by call to clear_inferiors.
14281 2013-05-17 Yao Qi <yao@codesourcery.com>
14283 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14286 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14288 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14289 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14290 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14291 PT_TEXT_END_ADDR guards. Update comments.
14292 (linux_target_op) <read_offsets>: Conditionally define to
14293 linux_read_offsets if the target is UCLIBC and if it defines
14294 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14296 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14297 Andrew Jenner <andrew@codesourcery.com>
14299 * Makefile.in (SFILES): Add linux-nios2-low.c.
14300 (clean): Add action to delete nios2-linux.c.
14301 (nios2-linux.c): New rule.
14302 * configure.srv: Add nios2*-*-linux*.
14303 * linux-nios2-low.c: New.
14305 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14307 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14309 2013-04-25 Hui Zhu <hui@codesourcery.com>
14312 * ax.c (ax_printf): Add fflush.
14314 2013-04-22 Tom Tromey <tromey@redhat.com>
14316 * Makefile.in (SFILES): Add filestuff.c.
14317 (OBS): Add filestuff.o.
14318 (filestuff.o): New target.
14319 * config.in, configure: Rebuild.
14320 * configure.ac: Check for fdwalk, pipe2.
14322 2013-04-17 Pedro Alves <palves@redhat.com>
14324 * configure.ac (USE_THREAD_DB): Delete variable.
14325 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14326 Don't AC_SUBST USE_THREAD_DB.
14327 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14328 * config.in, configure: Regenerate.
14330 2013-04-16 Pedro Alves <palves@redhat.com>
14332 * linux-low.h (struct lwp_info) <thread_known>: Move under
14333 the USE_THREAD_DB #ifdef.
14335 2013-04-16 Pedro Alves <palves@redhat.com>
14337 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14338 (linux-low.o): Delete rule.
14339 * linux-low.h: Always include "gdb_thread_db.h" instead of
14340 conditionally including thread_db.h.
14341 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14344 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14346 * Makefile.in (install-only): Fix make install regression.
14348 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14350 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14351 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14353 * gdbserver.1: Remove.
14355 2013-03-22 Pedro Alves <palves@redhat.com>
14357 * linux-low.c (handle_extended_wait): Don't call
14358 linux_enable_event_reporting.
14360 2013-03-15 Tony Theodore <tonyt@logyst.com>
14363 * Makefile.in (SHELL): Use @SHELL@.
14365 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14367 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14370 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14372 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14373 Remove extraneous NULL element.
14375 2013-03-13 Yao Qi <yao@codesourcery.com>
14377 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14378 'V' block in trace frame.
14380 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14382 * target.h (struct target_ops): Add btrace ops.
14383 (target_supports_btrace): New macro.
14384 (target_enable_btrace): New macro.
14385 (target_disable_btrace): New macro.
14386 (target_read_btrace): New macro.
14387 * gdbthread.h (struct thread_info): Add btrace field.
14388 * server.c: Include btrace-common.h.
14389 (handle_btrace_general_set): New function.
14390 (handle_btrace_enable): New function.
14391 (handle_btrace_disable): New function.
14392 (handle_general_set): Call handle_btrace_general_set.
14393 (handle_qxfer_btrace): New function.
14394 (struct qxfer qxfer_packets[]): Add btrace entry.
14395 * inferiors.c (remove_thread): Disable btrace.
14396 * linux-low: Include linux-btrace.h.
14397 (linux_low_enable_btrace): New function.
14398 (linux_low_read_btrace): New function.
14399 (linux_target_ops): Add btrace ops.
14400 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14401 Add srv_linux_btrace=yes.
14402 (x86_64-*-linux*): Add linux-btrace.o.
14403 Add srv_linux_btrace=yes.
14404 * configure.ac: Define HAVE_LINUX_BTRACE.
14405 * config.in: Regenerated.
14406 * configure: Regenerated.
14408 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14410 * server.c (handle_qxfer): Preserve error message if -3 is
14412 (qxfer): Document the -3 return value.
14414 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14416 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14417 (linux_btrace_h): New variable.
14418 (linux-btrace.o): New rule.
14420 2013-03-08 Stan Shebs <stan@codesourcery.com>
14421 Hafiz Abid Qadeer <abidh@codesourcery.com>
14423 * tracepoint.c (trace_buffer_size): New global.
14424 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14425 (init_trace_buffer): Change to one-argument function. Allocate
14426 trace buffer memory.
14427 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14428 handle QTBuffer:size packet.
14429 (cmd_bigqtbuffer_size): New function.
14430 (initialize_tracepoint): Call init_trace_buffer with
14431 DEFAULT_TRACE_BUFFER_SIZE.
14432 * server.c (handle_query): Add QTBuffer:size in the
14435 2013-03-07 Yao Qi <yao@codesourcery.com>
14437 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14438 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14440 (cmd_qtsp): Adjust condition. Do post increment.
14441 Set cur_action and cur_step_action back to 0.
14443 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14446 * linux-low.c (linux_write_memory): Return early success if LEN is
14449 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14451 * configure.srv: Add x86_64-*-cygwin* as target.
14453 2013-02-28 Tom Tromey <tromey@redhat.com>
14455 * configure.ac: Invoke AC_SYS_LARGEFILE.
14456 * configure, config.in: Rebuild.
14458 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14460 * win32-low.c: Throughout, fix format strings and casts of
14461 printf-like functions to avoid type related warnings on all
14463 (get_child_debug_event): Print dwDebugEventCode as hex since
14464 that's how it's usually documented.
14466 2013-02-28 Yao Qi <yao@codesourcery.com>
14468 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14471 2013-02-27 Jiong Wang <jiwang@tilera.com>
14473 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14474 (reg-tilegx32.c): New rule.
14475 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14476 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14477 different register info initializer according to elf class.
14478 (init_registers_tilgx32): New function. The tilegx32 register info
14480 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14481 (tile_store_gregset): Likewise.
14483 2013-02-27 Yao Qi <yao@codesourcery.com>
14485 * server.c (process_point_options): Print debug message when
14486 debug_threads is true.
14488 2013-02-26 Yao Qi <yao@codesourcery.com>
14490 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14492 2013-02-19 Pedro Alves <palves@redhat.com>
14493 Kai Tietz <ktietz@redhat.com>
14497 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14498 instead of strtoul to extract address from packet.
14499 (process_serial_event) <'z'>: Likewise.
14501 2013-02-18 Yao Qi <yao@codesourcery.com>
14503 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14505 2013-02-14 Pedro Alves <palves@redhat.com>
14509 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14510 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14512 2013-02-14 Pedro Alves <palves@redhat.com>
14514 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14516 2013-02-14 Pedro Alves <palves@redhat.com>
14518 * tracepoint.c (save_string): Delete.
14519 (add_tracepoint_action): Use savestring instead of save_string.
14521 2013-02-12 Pedro Alves <palves@redhat.com>
14523 * linux-xtensa-low.c: Ditto.
14524 * xtensa-xtregs.c: Ditto.
14526 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14528 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14531 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14533 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14534 aarch64_num_wp_regs and aarch64_num_bp_regs to
14535 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14537 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14539 * linux-aarch64-low.c (ps_get_thread_area): Replace
14540 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14542 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14543 Marcus Shawcroft <marcus.shawcroft@arm.com>
14544 Nigel Stephens <nigel.stephens@arm.com>
14545 Yufeng Zhang <yufeng.zhang@arm.com>
14547 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14548 (aarch64.c, aarch64-without-fpu.c): New targets.
14549 * configure.srv (aarch64*-*-linux*): New.
14550 * linux-aarch64-low.c: New file.
14552 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14554 * linux-low.c (handle_extended_wait, linux_create_inferior)
14555 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14556 (dequeue_one_deferred_signal, linux_resume_one_thread)
14557 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14558 (linux_tracefork_grandchild, linux_test_for_tracefork)
14559 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14560 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14561 where the argument is 0.
14563 2013-01-25 Yao Qi <yao@codesourcery.com>
14565 * event-loop.c: Include "queue.h".
14566 (gdb_event_p): New typedef.
14567 (struct gdb_event) <next_event>: Remove.
14568 (event_queue): Change to QUEUE(gdb_event_p).
14569 (async_queue_event): Remove.
14570 (gdb_event_xfree): New.
14571 (initialize_event_loop): New.
14572 (process_event): Use API from QUEUE.
14573 (wait_for_event): Likewise.
14574 * server.c (main): Call initialize_event_loop.
14575 * server.h (initialize_event_loop): Declare.
14577 2013-01-18 Yao Qi <yao@codesourcery.com>
14579 * ax.h (struct eval_agent_expr_context): New.
14580 (gdb_eval_agent_expr): Update declaration.
14581 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14582 TFRAME. Add new argument CTX.
14583 * server.h (struct eval_agent_expr_context): Declare.
14584 (agent_mem_read, agent_tsv_read): Update declaration.
14585 (agent_mem_read_string): Likewise.
14586 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14587 (add_traceframe_block): Add new argument TPOINT.
14588 Increase TPOINT->traceframe_usage.
14589 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14590 eval_tracepoint_agent_expr.
14591 (condition_true_at_tracepoint): Likewise.
14592 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14593 (agent_mem_read_string, agent_tsv_read): Likewise.
14595 2013-01-16 Yao Qi <yao@codesourcery.com>
14597 * linux-low.c (linux_resume_one_lwp): Don't check
14598 'lwp->bp_reinsert != 0'.
14600 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14601 Pedro Alves <palves@redhat.com>
14603 * lynx-low.c (ptrace_request_to_str): Define a temporary
14604 macro and use it to simplify this function's implementation.
14606 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14608 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14611 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14613 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14615 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14617 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14619 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14621 * lynx-low.c (lynx_resume): Use the resume_info parameter
14622 to determine the ptid for the lynx_ptrace call, unless
14623 it is equal to minus_one_ptid, in which case we use the
14624 ptid of the current_inferior.
14625 (lynx_wait_1): After having received a thread create/exit
14626 event, resume the inferior's execution using the signaling
14627 thread's ptid, rather than the old ptid.
14629 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14631 * lynx-low.c (lynx_resume): Delete variable ret.
14633 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14635 * gdbreplay.c (gdbreplay_version): Update copyright year.
14636 * server.c (gdbserver_version): Likewise.
14638 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14640 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14643 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14645 * lynx-low.c (ptrace_request_to_str): Add handling for
14646 PTRACE_GETTRACESIG.
14648 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14650 * lynx-low.c (lynx_attach): Delete variable new_process.
14652 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14654 * lynx-low.c (lynx_create_inferior): Delete variable
14657 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14659 * lynx-low.c (ptrace_request_to_str): Do not handle
14660 PTRACE_GETTHREADLIST if this macro does not exist.
14662 2012-12-15 Yao Qi <yao@codesourcery.com>
14664 * Makefile.in (OBS): Add notif.o.
14665 * notif.c, notif.h: New.
14666 * server.c: Include "notif.h".
14667 (struct vstop_notif) <next>: Remove.
14669 (queue_stop_reply): Update.
14670 (push_event, send_next_stop_reply): Remove.
14671 (discard_queued_stop_replies): Update.
14672 (notif_stop): New variable.
14673 (handle_v_stopped): Remove.
14674 (handle_v_requests): Don't call handle_v_stopped. Call
14675 handle_ack_notif instead.
14676 (queue_stop_reply_callback): Call notif_event_enque instead
14677 of queue_stop_reply.
14678 (handle_status): Don't call send_next_stop_reply, call
14679 notif_write_event instead.
14680 (kill_inferior_callback): Likewise.
14681 (detach_or_kill_inferior_callback): Likewise.
14682 (main): Call initialize_notif.
14683 (process_serial_event): Call QUEUE_is_empty.
14684 (handle_target_event): Call notif_push instead of push event.
14685 * server.h (push_event): Remove declaration.
14687 2012-12-10 Tom Tromey <tromey@redhat.com>
14689 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14690 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14693 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14694 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14695 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14696 (amd64-linux-ipa.o, ax.o): Rewrite.
14697 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14698 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14699 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14700 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14701 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14702 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14703 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14704 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14705 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14706 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14707 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14708 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14709 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14710 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14711 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14712 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14713 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14714 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14715 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14716 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14717 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14718 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14719 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14720 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14721 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14722 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14723 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14724 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14725 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14726 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14727 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14728 (reg-tilegx.o): Remove.
14729 (all_object_files): New macro.
14730 Include .deps files.
14731 * aclocal.m4, configure: Rebuild.
14732 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14733 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14734 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14736 2012-12-05 Tom Tromey <tromey@redhat.com>
14739 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14741 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14743 * configure.ac: Check for linux/perf_event.h.
14744 * config.in: Regenerated.
14745 * configure: Regenerated.
14747 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14749 * hostio.c (handle_readlink): Decrease buffer size
14750 parameter passed to readlink by one byte.
14752 2012-11-26 Yao Qi <yao@codesourcery.com>
14754 * configure.ac (build_warnings): Append '-Wempty-body'.
14755 * configure: Regenerated.
14756 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14759 2012-11-15 Pierre Muller <muller@sourceware.org>
14761 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14762 * config.in: Regenerate.
14763 * configure: Regenerate.
14764 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14765 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14766 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14767 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14769 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14770 instead of <sys/wait.h> header.
14771 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14773 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14775 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14776 (various make rules): Remove -DGDBSERVER
14778 2012-11-09 Yao Qi <yao@codesourcery.com>
14780 * spu-low.c (current_ptid): Move it to ..
14781 * gdbthread.h: ... here. New.
14782 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14783 * server.c (myresume, process_serial_event): Likewise.
14784 * thread-db.c (thread_db_find_new_threads): Likewise.
14785 * tracepoint.c (run_inferior_command): Likewise.
14787 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14789 * server.c (handle_search_memory_1): Include access length in
14792 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14794 * linux-crisv32-low.c: Fix compile errors.
14796 2012-09-04 Yao Qi <yao@codesourcery.com>
14798 * tracepoint.c (cmd_qtsv): Adjust debug message.
14799 Don't check CUR_TPOINT.
14801 2012-08-28 Yao Qi <yao@codesourcery.com>
14803 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14804 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14805 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14806 Remove declarations of xmalloc, xreallloc, xstrdup and
14808 * Makefile.in (libiberty_h): New.
14809 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14810 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14812 2012-08-23 Yao Qi <yao@codesourcery.com>
14814 * server.h: Remove declaration of 'xsnprintf'.
14816 2012-08-22 Keith Seitz <keiths@redhat.com>
14818 * server.h: Include build-gnulib-gbserver/config.h.
14819 * gdbreplay.c: Likewise.
14821 2012-08-08 Doug Evans <dje@google.com>
14823 * Makefile.in (SFILES): Add gdb_vecs.c.
14824 (OBS): Add gdb_vecs.o.
14825 (gdb_vecs_h, host_defs_h): New variables.
14826 (thread-db.o): Add $(gdb_vecs_h) dependency.
14827 (gdb_vecs.o): New rule.
14828 * thread-db.c: #include "gdb_vecs.h".
14829 (thread_db_load_search): Use a vector to iterate over path elements.
14830 Handle text appearing after "$pdir".
14832 * configure.ac: Add check for strstr.
14833 * config.in: Regenerate.
14834 * configure: Regenerate.
14836 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14838 * hostio.c (handle_pread): If pread fails, fall back to attempting
14840 (handle_pwrite): Likewise for pwrite.
14842 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14844 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14845 between unsupported TYPE and unimplementable ADDR/LEN combination.
14846 (arm_insert_point): Act on new return value.
14848 2012-07-31 Pedro Alves <palves@redhat.com>
14850 * server.c (process_point_options): Only skip tokens if we find
14851 one that is unrecognized. Don't treat 'X' specially while
14852 skipping unrecognized tokens.
14854 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14856 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14857 to 4-byte-align HW breakpoint addresses for Thumb.
14859 2012-07-27 Yao Qi <yao@codesourcery.com>
14863 * server.h: Declare gdb_agent_about_to_close.
14864 * target.c (kill_inferior): Include "agent.h".
14865 New. Send command 'kill'.
14866 * target.h (kill_inferior): Removed macro.
14867 * tracepoint.c (gdb_agent_about_to_close): New.
14868 (gdb_agent_helper_thread): Handle command 'close'.
14869 Wait endlessly until the inferior stops.
14870 Install gdb_agent_remove_socket to atexit hook.
14871 (agent_socket_name): New static variable.
14872 (gdb_agent_socket_init): Replace local variable 'name' with
14873 'agent_socket_name'.
14874 (gdb_agent_remove_socket): New.
14876 2012-07-27 Yao Qi <yao@codesourcery.com>
14878 * server.c (process_point_options): Stop at 'X' when parsing.
14880 2012-07-19 Michael Eager <eager@eagercon.com>
14882 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14884 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14885 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14886 hardware breakpoint.
14888 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14890 * gdbserver/linux-low.c (initialize_low): Call
14891 linux_ptrace_init_warnings.
14893 2012-07-02 Doug Evans <dje@google.com>
14895 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14898 2012-07-02 Stan Shebs <stan@codesourcery.com>
14900 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14901 (ax.o): Add it to build rule.
14903 (OBS): Add format.o.
14904 (IPA_OBS): Add format.o.
14905 * server.c (handle_query): Claim support for breakpoint commands.
14906 (process_point_options): Add command case.
14907 (process_serial_event): Leave running if there are printfs in
14909 * mem-break.h (any_persistent_commands): Declare.
14910 (add_breakpoint_commands): Declare.
14911 (gdb_no_commands_at_breakpoint): Declare.
14912 (run_breakpoint_commands): Declare.
14913 * mem-break.c (struct point_command_list): New struct.
14914 (struct breakpoint): New field command_list.
14915 (any_persistent_commands): New function.
14916 (add_commands_to_breakpoint): New function.
14917 (add_breakpoint_commands): New function.
14918 (gdb_no_commands_at_breakpoint): New function.
14919 (run_breakpoint_commands): New function.
14920 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14922 * ax.c: Include format.h.
14923 (ax_printf): New function.
14924 (gdb_eval_agent_expr): Add printf opcode.
14926 2012-06-13 Yao Qi <yao@codesourcery.com>
14928 * server.c (start_inferior): Remove duplicated writes to fields
14929 'last_resume_kind' and 'last_status' of 'current_inferior'.
14931 2012-06-12 Yao Qi <yao@codesourcery.com>
14932 Pedro Alves <palves@redhat.com>
14934 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14936 * server.c (handle_v_cont): Extend comment.
14938 2012-06-11 Yao Qi <yao@codesourcery.com>
14940 * linux-low.c (linux_attach): Add 'static'.
14942 2012-06-06 Yao Qi <yao@codesourcery.com>
14944 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14946 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14948 Fix gcc -flto compilation warning.
14949 * server.c (main): Make variable multi_mode and attach volatile.
14951 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14953 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14954 if the platform doesn't know about it.
14956 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14958 * Makefile.in (SFILES): Add linux-tile-low.c.
14959 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14960 * configure.srv: Handle tilegx-*-linux*.
14961 * linux-tile-low.c: New file.
14963 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14965 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14967 2012-05-24 Pedro Alves <palves@redhat.com>
14971 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14973 2012-05-24 Pedro Alves <palves@redhat.com>
14977 Replace target_signal with gdb_signal throughout.
14979 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14981 * linux-low.c (linux_store_registers): Avoid the copying sequence
14982 when no data has been retrieved by ptrace.
14984 2012-05-22 Will Deacon <will.deacon@arm.com>
14986 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14987 Include asm/ptrace.h.
14988 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14991 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14993 * linux-low.c (linux_store_registers): Don't re-retrieve data
14994 with ptrace that has already been obtained from /proc. Always
14995 copy any data retrieved with ptrace to the buffer supplied.
14997 2012-05-11 Yao Qi <yao@codesourcery.com>
14998 Pedro Alves <palves@redhat.com>
15000 * linux-low.c (enum stopping_threads_kind): New.
15001 (stopping_threads): Change type to `enum stopping_threads_kind'.
15002 (handle_extended_wait): If stopping and suspending threads, leave
15003 the new_lwp suspended too.
15004 (linux_wait_for_event): Adjust.
15005 (stop_all_lwps): Set `stopping_threads' to
15006 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15007 whether we're suspending threads or just stopping them. Assert no
15010 2012-04-29 Yao Qi <yao@codesourcery.com>
15012 * server.h: Move some code to ...
15013 * gdbthread.h: ... here. New.
15014 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15015 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15016 (nto-low.o, win32-low.o): Likewise.
15017 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15018 * regcache.c, remote-utils.c, server.c: Likewise.
15019 * target.c, tracepoint.c, win32-low.c: Likewise.
15021 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15023 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15024 (PTRACE_ARG4_TYPE): Likewise.
15025 (PTRACE_XFER_TYPE): Likewise.
15026 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15027 ptrace to PTRACE_ARG3_TYPE.
15028 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15029 (PTRACE_ARG4_TYPE): Likewise.
15030 (PTRACE_XFER_TYPE): Likewise.
15031 (linux_detach_one_lwp): Cast fourth argument of
15032 ptrace to long then PTRACE_ARG4_TYPE.
15033 (regsets_fetch_inferior_registers): Cast third argument of
15034 ptrace to long then PTRACE_ARG3_TYPE.
15035 (regsets_store_inferior_registers): Likewise.
15037 2012-04-20 Pedro Alves <palves@redhat.com>
15039 * configure: Regenerate.
15041 2012-04-19 Pedro Alves <palves@redhat.com>
15043 * Makefile.in (GNULIB_BUILDDIR): New.
15044 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15045 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15046 (all, install-only, uninstall, clean-info, all-lib, clean): No
15047 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15048 (maintainer-clean realclean distclean): Use subdir_do.
15050 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15051 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15052 * acinclude.m4: Include acx_configure_dir.m4.
15053 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15054 calls. Call AC_PROG_RANLIB. Configure gnulib using
15057 (GNULIB_STDINT_H): Adjust.
15058 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15059 * gdbreplay.c: Include build-gnulib/config.h.
15060 * server.h: Likewise.
15061 * aclocal.m4: Regenerate.
15062 * config.in: Regenerate.
15063 * configure: Regenerate.
15065 2012-04-19 Pedro Alves <palves@redhat.com>
15067 * Makefile.in (LIBGNU, INCGNU): Adjust.
15068 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15069 (all, install-only, uninstall, clean-info, all-lib, clean)
15070 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15071 * configure.ac: Adjust AC_OUTPUT output.
15072 * aclocal.m4: Regenerate.
15073 * configure: Regenerate.
15075 2012-04-19 Pedro Alves <palves@redhat.com>
15077 * Makefile.in (generated_files): New.
15078 (server_h): Remove the explicit dependency on config.h, and depend
15079 on $generated_files.
15081 2012-04-19 Pedro Alves <palves@redhat.com>
15083 * Makefile.in (INCGNU): Add -Ignulib.
15085 2012-04-19 Pedro Alves <palves@redhat.com>
15087 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15088 (INCGNU): ... this, and spell out -I here.
15089 (GNULIB_LIB): Rename to ...
15090 (LIBGNU): ... this.
15091 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15093 2012-04-19 Pedro Alves <palves@redhat.com>
15095 * config.in: Regenerate.
15097 2012-04-19 Pedro Alves <palves@redhat.com>
15099 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15100 * server.h (memmem): Remove declaration.
15101 * config.in: Regenerate.
15102 * configure: Regenerate.
15104 2012-04-19 Yao Qi <yao@codesourcery.com>
15106 * Makefile.in (SFILES): Add common/vec.c.
15110 2012-04-19 Yao Qi <yao@codesourcery.com>
15112 * remote-utils.c (prepare_resume_reply): Replace with macro
15113 target_core_of_thread.
15114 * server.c (handle_qxfer_threads_proper): Likewise.
15115 * target.h (traget_core_of_thread): New macro.
15117 2012-04-18 Pedro Alves <palves@redhat.com>
15119 * aclocal.m4: Regenerate.
15120 * configure: Regenerate.
15122 2012-04-16 Yao Qi <yao@codesourcery.com>
15124 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15125 duplicated on address.
15127 2012-04-16 Yao Qi <yao@codesourcery.com>
15129 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15130 (struct tracepoint_action_ops) <send>: New field.
15131 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15132 (agent_expr_send, x_tracepoint_action_send): New.
15133 (l_tracepoint_action_send): New.
15134 (cmd_qtdp): Download and install tracepoint
15135 according to `use_agent'.
15136 (run_inferior_command): Add one more parameter `len'.
15138 (tracepoint_send_agent): New.
15139 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15141 2012-04-16 Yao Qi <yao@codesourcery.com>
15143 * tracepoint.c (download_tracepoints): Moved to ...
15144 (cmd_qtstart): ... here.
15146 2012-04-14 Yao Qi <yao@codesourcery.com>
15148 * tracepoint.c: Include inttypes.h.
15149 (struct collect_memory_action): Use sized types.
15150 (struct tracepoint): Likewise.
15151 (cmd_qtdp, stop_tracing): Update print specifiers.
15152 (cmd_qtp, response_tracepoint): Likewise.
15153 (collect_data_at_tracepoint): Likewise.
15154 (collect_data_at_step): Likewise.
15156 2012-04-14 Yao Qi <yao@codesourcery.com>
15158 Import gnulib module inttypes.
15159 * aclocal.m4, config.in, configure: Regenerated.
15161 2012-04-14 Yao Qi <yao@codesourcery.com>
15163 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15164 Makefile and config.status at last.
15166 2012-04-13 Yao Qi <yao@codesourcery.com>
15168 * tracepoint.c: Include stdint.h unconditionally.
15170 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15172 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15173 on BFD_HAVE_SYS_PROCFS_TYPE.
15174 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15175 * configure: Regenerate.
15176 * config.in: Likewise.
15178 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15180 * Makefile.in (clean): Also remove x32.c x32-linux.c
15181 x32-avx.c x32-avx-linux.c.
15182 (x32.o): New target.
15184 (x32-linux.o): Likewise.
15185 (x32-linux.c): Likewise.
15186 (x32-avx.o): Likewise.
15187 (x32-avx.c): Likewise.
15188 (x32-avx-linux.o): Likewise.
15189 (x32-avx-linux.c): Likewise.
15191 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15192 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15193 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15194 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15195 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15196 i386/x32-avx-linux.xml.
15198 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15199 (init_registers_x32_avx_linux): Likwise.
15200 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15201 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15203 2012-04-13 Pedro Alves <palves@redhat.com>
15205 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15206 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15207 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15208 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15211 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15213 * linux-x86-low.c (compat_x32_clock_t): New.
15214 (compat_x32_siginfo_t): Likewise.
15215 (compat_x32_siginfo_from_siginfo): Likewise.
15216 (siginfo_from_compat_x32_siginfo): Likewise.
15217 (linux_is_elf64): Likewise.
15218 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15219 and siginfo_from_compat_x32_siginfo for x32.
15220 (x86_arch_setup): Set linux_is_elf64.
15222 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15225 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15227 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15228 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15229 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15230 compatible with process.
15232 2012-04-12 Yao Qi <yao@codesourcery.com>
15234 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15235 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15236 (install-only, install-info, clean): Handle sub dir gnulib.
15237 (all-lib, am--refresh): New targets.
15238 (memmem.o): Remove target.
15239 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15240 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15241 (AC_REPLACE_FUNCS): Remove memmem.
15242 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15243 (AC_OUTPUT): Generate Makefile in gnulib/.
15244 * aclocal.m4, config.in, configure: Regenerated.
15246 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15248 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15250 2012-04-05 Pedro Alves <palves@redhat.com>
15252 -Werror=strict-aliasing
15254 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15257 2012-04-04 Pedro Alves <palves@redhat.com>
15259 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15260 (sparc_store_gregset_from_stack, sparc_store_gregset)
15261 (sparc_breakpoint_at): Fix formatting.
15263 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15265 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15267 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15268 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15269 * config.in: Regenerate.
15270 * configure: Likewise.
15272 2012-03-29 Pedro Alves <palves@redhat.com>
15274 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15275 Correct ptrace arguments.
15277 2012-03-28 Pedro Alves <palves@redhat.com>
15279 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15280 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15281 (IA64_FR1_REGNUM): New defines.
15282 (ia64_fetch_register): New.
15283 (the_low_target): Install it.
15284 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15286 * linux-low.c (linux_fetch_registers): Try the
15287 the_low_target.fetch_register hook first.
15289 * linux-arm-low.c (the_low_target): Adjust.
15290 * linux-bfin-low.c (the_low_target): Adjust.
15291 * linux-cris-low.c (the_low_target): Adjust.
15292 * linux-crisv32-low.c (the_low_target): Adjust.
15293 * linux-m32r-low.c (the_low_target): Adjust.
15294 * linux-m68k-low.c (the_low_target): Adjust.
15295 * linux-mips-low.c (the_low_target): Adjust.
15296 * linux-ppc-low.c (the_low_target): Adjust.
15297 * linux-s390-low.c (the_low_target): Adjust.
15298 * linux-sh-low.c (the_low_target): Adjust.
15299 * linux-sparc-low.c (the_low_target): Adjust.
15300 * linux-tic6x-low.c (the_low_target): Adjust.
15301 * linux-x86-low.c (the_low_target): Adjust.
15302 * linux-xtensa-low.c (the_low_target): Adjust.
15304 2012-03-26 Pedro Alves <palves@redhat.com>
15306 * server.c (handle_qxfer_libraries): Don't bail early if
15307 the_target->qxfer_libraries_svr4 is not NULL.
15309 2012-03-26 Pedro Alves <palves@redhat.com>
15311 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15313 2012-03-23 Pedro Alves <palves@redhat.com>
15315 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15316 "library-list-svr4" element's start tag when the the DSO list is
15319 2012-03-23 Pedro Alves <palves@redhat.com>
15321 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15322 a variable whose type size is the same as the inferior's pointer
15325 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15327 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15329 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15330 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15331 * linux-low.h: Include <signal.h>.
15332 (struct siginfo): Remove forward declaration.
15333 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15336 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15338 * .gitignore: Ignore more files.
15340 2012-03-19 Pedro Alves <palves@redhat.com>
15341 Jan Kratochvil <jan.kratochvil@redhat.com>
15343 * server.c (cont_thread, general_thread): Add describing comments.
15344 (start_inferior): Clear `cont_thread'.
15345 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15348 2012-03-15 Yao Qi <yao@codesourcery.com>
15350 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15352 (cmd_qtdp): ... here.
15354 2012-03-15 Yao Qi <yao@codesourcery.com>
15356 * tracepoint.c (struct tracepoint_action_ops): New.
15357 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15358 (m_tracepoint_action_download): New.
15359 (r_tracepoint_action_download): New.
15360 (x_tracepoint_action_download): New.
15361 (l_tracepoint_action_download): New.
15362 (add_tracepoint_action): Install `action->ops' according type.
15363 (download_tracepoint_1): Move code `download' function pointer
15364 of various tracepoint_action_ops.
15366 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15368 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15369 linux_ptrace_attach_warnings.
15371 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15373 * Makefile.in (linux-ptrace.o): New.
15374 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15375 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15376 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15377 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15378 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15380 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15382 2012-03-08 Yao Qi <yao@codesourcery.com>
15383 Pedro Alves <palves@redhat.com>
15385 Fix PR server/13392.
15386 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15387 offset of JMP insn.
15388 * tracepoint.c (remove_tracepoint): New.
15389 (cmd_qtdp): Call remove_tracepoint when failed to install.
15391 2012-03-07 Pedro Alves <palves@redhat.com>
15393 * linux-low.c (get_detach_signal): New.
15394 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15395 Pass on pending signals to PTRACE_DETACH. Check the result of the
15397 * server.c (program_signals, program_signals_p): New.
15398 (handle_general_set): Handle QProgramSignals.
15399 * server.h (program_signals, program_signals_p): Declare.
15401 2012-03-05 Pedro Alves <palves@redhat.com>
15402 Jan Kratochvil <jan.kratochvil@redhat.com>
15404 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15407 2012-03-03 Yao Qi <yao@codesourcery.com>
15409 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15410 agent_look_up_symbols.
15412 2012-03-03 Yao Qi <yao@codesourcery.com>
15414 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15415 (linux-x86-low.o): Likewise.
15416 * server.h: Remove in_process_agent_loaded.
15417 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15421 2012-03-03 Yao Qi <yao@codesourcery.com>
15423 * tracepoint.c (gdb_agent_capability): New global.
15424 (in_process_agent_loaded_ust): Renamed to
15425 `in_process_agent_supports_ust'.
15427 (in_process_agent_supports_ust): Call agent_capability_check.
15428 (clear_installed_tracepoints): Assert that agent supports
15431 2012-03-03 Yao Qi <yao@codesourcery.com>
15433 * linux-low.c (linux_supports_agent): New.
15434 (linux_target_ops): Initialize field `supports_agent' with
15435 linux_supports_agent.
15436 * target.h (struct target_ops) <supports_agent>: New.
15437 (target_supports_agent): New macro.
15438 * server.c (handle_general_set): Handle packet 'QAgent'.
15439 (handle_query): Send `QAgent+'.
15440 * Makefile.in (server.o): Depends on agent.h.
15442 2012-03-03 Yao Qi <yao@codesourcery.com>
15444 * Makefile.in (OBS): Add agent.o.
15445 Add new rule for agent.o.
15446 Track dependence of tracepoint.c on agent.h.
15447 * tracepoint.c (run_inferior_command_1):
15448 (run_inferior_command): Call agent_run_command.
15449 (gdb_ust_connect_sync_socket): Deleted. Move it to
15451 (resume_thread, stop_thread): Likewise.
15452 (gdb_ust_socket_init): Renamed to ...
15453 (gdb_agent_socket_init): ... New.
15454 (gdb_ust_thread): Renamed to ...
15455 (gdb_agent_helper_thread): ... New.
15456 (gdb_ust_init): Move some code to ...
15457 (gdb_agent_init): ... here. New.
15458 [HAVE_UST]: Call gdb_ust_init.
15459 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15460 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15461 * config.in, configure: Regenerated.
15463 2012-03-02 Pedro Alves <palves@redhat.com>
15465 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15466 * linux-low.c (struct simple_pid_list): New.
15467 (stopped_pids): New a struct simple_pid_list pointer.
15468 (add_to_pid_list, pull_pid_from_list): New.
15469 (handle_extended_wait): Don't assume the first signal new children
15470 report is SIGSTOP. Adjust call to pull_pid_from_list.
15471 (linux_wait_for_lwp): Adjust.
15473 2012-03-02 Yao Qi <yao@codesourcery.com>
15475 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15478 2012-03-02 Yao Qi <yao@codesourcery.com>
15480 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15481 `stop_pc' and `tpoint'. Update caller.
15483 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15485 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15486 * linux-low.c (use_linux_regsets): New macro.
15487 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15488 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15489 (linux_register_in_regsets): New function.
15490 (usr_fetch_inferior_registers): Skip registers covered by
15492 (usr_store_inferior_registers): Likewise.
15493 (usr_fetch_inferior_registers): New macro.
15494 (usr_store_inferior_registers): Likewise.
15495 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15496 (linux_store_registers): Likewise.
15497 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15499 (init_registers_mips64_dsp_linux): Likewise.
15500 (init_registers_mips_linux): New macro.
15501 (init_registers_mips_dsp_linux): Likewise.
15502 (mips_dsp_num_regs): Likewise.
15503 (DSP_BASE, DSP_CONTROL): New fallback macros.
15504 (mips_base_regs): New macro.
15505 (mips_regmap): Use it. Fix the size.
15506 (mips_dsp_regmap): New variable.
15507 (mips_dsp_regset_bitmap): Likewise.
15508 (mips_arch_setup): New function.
15509 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15511 (mips_cannot_store_register): Likewise.
15512 (the_low_target): Update .arch_setup, .num_regs and .regmap
15513 initializers. Add .regset_bitmap initializer.
15514 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15516 * linux-bfin-low.c (the_low_target): Likewise.
15517 * linux-cris-low.c (the_low_target): Likewise.
15518 * linux-crisv32-low.c (the_low_target): Likewise.
15519 * linux-ia64-low.c (the_low_target): Likewise.
15520 * linux-m32r-low.c (the_low_target): Likewise.
15521 * linux-m68k-low.c (the_low_target): Likewise.
15522 * linux-ppc-low.c (the_low_target): Likewise.
15523 * linux-s390-low.c (the_low_target): Likewise.
15524 * linux-sh-low.c (the_low_target): Likewise.
15525 * linux-sparc-low.c (the_low_target): Likewise.
15526 * linux-tic6x-low.c (the_low_target): Likewise.
15527 * linux-x86-low.c (the_low_target): Likewise.
15528 * linux-xtensa-low.c (the_low_target): Likewise.
15529 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15530 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15531 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15533 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15534 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15536 2012-02-29 Yao Qi <yao@codesourcery.com>
15537 Pedro Alves <palves@redhat.com>
15539 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15540 `step_over_finished' is true.
15542 2012-02-27 Pedro Alves <palves@redhat.com>
15544 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15545 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15547 2012-02-27 Pedro Alves <palves@redhat.com>
15550 * linux-low.c (pid_is_stopped): New.
15551 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15553 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15555 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15558 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15560 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15562 2012-02-24 Luis Machado <lgustavo@codesourcery>
15564 * server.c (handle_query): Advertise support for target-side
15565 breakpoint condition evaluation.
15566 (process_point_options): New function.
15567 (process_serial_event): When inserting a breakpoint, check for
15568 a target-side condition that should be evaluated.
15570 * mem-break.c: Include regcache.h and ax.h.
15571 (point_cond_list_t): New data structure.
15572 (breakpoint) <cond_list>: New field.
15573 (find_gdb_breakpoint_at): Make non-static.
15574 (delete_gdb_breakpoint_at): Clear any target-side
15576 (clear_gdb_breakpoint_conditions): New function.
15577 (add_condition_to_breakpoint): Likewise.
15578 (add_breakpoint_condition): Likewise.
15579 (gdb_condition_true_at_breakpoint): Likewise.
15580 (gdb_breakpoint_here): Return result directly instead
15581 of going through a local variable.
15583 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15584 (clear_gdb_breakpoint_conditions): Likewise.
15585 (add_breakpoint_condition): Likewise.
15586 (gdb_condition_true_at_breakpoint): Likewise.
15588 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15589 (need_step_over_p): Take target-side breakpoint condition into
15592 2012-02-24 Luis Machado <lgustavo@codesourcery>
15594 * server.h: Include tracepoint.h.
15595 (agent_mem_read, agent_get_trace_state_variable_value,
15596 agent_set_trace_state_variable_value,
15597 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15598 get_set_tsv_func_addr): New prototypes.
15600 * ax.h: New include file.
15601 * ax.c: New source file.
15603 * tracepoint.c: Include ax.h.
15604 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15605 agent_expr, eval_result_type): Move to ax.h.
15606 (parse_agent_expr): Rename to ...
15607 (gdb_parse_agent_expr): ... this, make it non-static and move
15609 (unparse_agent_expr) Rename to ...
15610 (gdb_unparse_agent_expr): ... this, make it non-static and move
15612 (eval_agent_expr): Rename to ...
15613 (eval_tracepoint_agent_expr): ... this.
15614 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15615 forward declarations.
15616 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15617 (agent_get_trace_state_variable_value): New function.
15618 (agent_set_trace_state_variable_value): New function.
15619 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15620 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15621 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15622 (condition_true_at_tracepoint): Likewise.
15623 (parse_agent_expr): Rename to ...
15624 (gdb_parse_agent_expr): ... this and move to ax.c.
15625 (unparse_agent_expr): Rename to ...
15626 (gdb_unparse_agent_expr): ... this and move to ax.c.
15627 (gdb_agent_op_name): Move to ax.c.
15628 (eval_agent_expr): Rename to ...
15629 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15631 (eval_tracepoint_agent_expr): New function.
15632 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15634 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15636 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15637 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15638 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15639 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15640 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15641 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15642 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15643 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15644 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15645 (compile_bytecodes): Remove forward declaration.
15646 (is_goto_target): Move to ax.c.
15647 (compile_bytecodes): Move to ax.c and call
15648 agent_get_trace_state_variable_value (...) and
15649 agent_set_trace_state_variable_value (...).
15651 * Makefile.in: Update ax.c and IPA dependencies.
15653 2012-02-24 Pedro Alves <palves@redhat.com>
15655 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15656 (cmd_bigqtbuffer_circular): ... this. Only handle
15657 'QTBuffer:circular:'.
15658 (handle_tracepoint_general_set): Adjust.
15660 2012-02-16 Yao Qi <yao@codesourcery.com>
15662 * inferiors.c: Move code to ...
15663 * dll.c: .... here. New.
15664 * server.h: Declare clear_dlls.
15665 * Makefile.in (SFILES): Add dll.c.
15669 2012-02-11 Yao Qi <yao@codesourcery.com>
15671 * server.c: (handle_monitor_command): Add a new parameter
15673 (handle_query): Update caller.
15675 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15677 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15678 * configure, config.in: Regenerate.
15679 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15682 2012-02-02 Pedro Alves <palves@redhat.com>
15684 Try SIGKILL first, then PTRACE_KILL.
15685 * linux-low.c (linux_kill_one_lwp): New.
15686 (linux_kill_one_lwp): Rename to ...
15687 (kill_one_lwp_callback): ... this. Use the new
15688 linux_kill_one_lwp.
15690 2012-02-02 Pedro Alves <palves@redhat.com>
15692 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15695 2012-01-27 Pedro Alves <palves@redhat.com>
15697 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15698 (elf_64_file_p): Make static.
15699 (linux_pid_exe_is_elf_64_file): New.
15700 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15701 Delete declarations.
15702 (linux_pid_exe_is_elf_64_file): Declare.
15703 * linux-x86-low.c (x86_arch_setup): Use
15704 linux_pid_exe_is_elf_64_file.
15706 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15708 * linux-low.c (linux_wait_for_event_1): Rename to ...
15709 (linux_wait_for_event): ... here and merge it with former
15710 linux_wait_for_event - new variable wait_ptid, use it.
15711 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15713 2012-01-23 Pedro Alves <palves@redhat.com>
15715 * server.c (main): Avoid yet another case of infinite loop while
15716 detaching/killing after a longjmp.
15718 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15721 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15723 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15725 * hostio.c (handle_readlink): New function.
15726 (handle_vFile): Call it to handle "vFile:readlink" packets.
15728 2012-01-20 Pedro Alves <palves@redhat.com>
15729 Ulrich Weigand <ulrich.weigand@linaro.org>
15731 * server.c (handle_v_requests): Only support vAttach and vRun to
15732 start multiple processes when in extended protocol mode.
15734 2012-01-17 Pedro Alves <palves@redhat.com>
15736 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15737 memalign plus mprotect to allocate the scratch buffer.
15739 2012-01-13 Pedro Alves <palves@redhat.com>
15741 * server.c (attach_inferior): Clear `cont_thread'.
15743 2012-01-13 Pedro Alves <palves@redhat.com>
15745 * server.c (main): Avoid infinite loop while detaching/killing
15748 2012-01-09 Doug Evans <dje@google.com>
15750 * server.c (start_inferior): Set last_ptid in --wrapper case.
15752 2012-01-06 Yao Qi <yao@codesourcery.com>
15754 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15756 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15758 2012-01-04 Yao Qi <yao@codesourcery.com>
15760 * tracepoint.c (cmd_qtdp): Print debug message
15761 for static tracepoint.
15763 2012-01-04 Yao Qi <yao@codesourcery.com>
15765 * tracepoint.c (trace_vdebug): Differentiate debug message
15766 between gdbserver and IPA.
15768 2012-01-03 Yao Qi <yao@codesourcery.com>
15770 * tracepoint.c (tracepoint_was_hit): Don't collect for
15773 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15775 * terminal.h: Reformat copyright header.
15777 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15779 * server.c (gdbserver_version): Update copyright year.
15780 * gdbreplay.c (gdbreplay_version): Likewise.
15782 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15784 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15787 2011-12-18 Hui Zhu <teawater@gmail.com>
15788 * linux-low.c (linux_create_inferior): Save return value to ret.
15790 2011-12-18 Hui Zhu <teawater@gmail.com>
15792 * linux-low.c (linux_create_inferior): Save return value to ret.
15794 2011-12-16 Doug Evans <dje@google.com>
15796 * linux-low.c (linux_create_inferior): If stdio connection,
15797 redirect stdin from /dev/null, stdout to stderr.
15798 * remote-utils.c (remote_is_stdio): New static global.
15799 (remote_connection_is_stdio): New function.
15800 (remote_prepare): Handle stdio connection.
15801 (remote_open): Ditto.
15802 (remote_close): Don't close stdin for stdio connections.
15803 (read_prim,write_prim): New functions. Replace all calls to
15804 read/write to these.
15805 * server.c (main): Watch for "-" argument. Move call to
15806 remote_prepare before start_inferior.
15807 * server.h (STDIO_CONNECTION_NAME): New macro.
15808 (remote_connection_is_stdio): Declare.
15810 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15811 in debugging output.
15813 2011-12-15 Yao Qi <yao@codesourcery.com>
15815 * tracepoint.c: Include sys/syscall.h.
15816 (gdb_ust_thread): Remove preprocessor conditional.
15818 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15820 * linux-low.c (linux_detach_one_lwp): Call
15821 the_low_target.prepare_to_resume before detaching.
15823 2011-12-14 Yao Qi <yao@codesourcery.com>
15825 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15828 2011-12-14 Yao Qi <yao@codesourcery.com>
15830 * i386-low.c (i386_low_stopped_data_address): Initialize local
15831 variable `control'.
15833 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15837 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15838 DR_CONTROL unless necessary. Extend comments.
15839 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15840 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15842 2011-12-13 Yao Qi <yao@codesourcery.com>
15844 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15846 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15848 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15850 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15851 Print new debug message for such case.
15853 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15855 Fix overlapping memcpy.
15856 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15857 the read_inferior_memory transfer.
15858 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15859 write_inferior_memory transfer.
15860 (set_fast_tracepoint_jump): New variable buf. Use it for the
15861 read_inferior_memory and write_inferior_memory transfers.
15862 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15863 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15864 Use it for the write_inferior_memory transfer.
15865 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15868 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15870 * linux-low.c (fetch_register, store_register): Make code
15871 consistent, fix formatting.
15873 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15875 * linux-low.c (usr_store_inferior_registers): Factor out code
15876 to handle individual registers into...
15877 (store_register): ... this new function.
15879 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15881 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15882 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15883 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15884 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15885 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15886 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15887 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15888 (srv_xmlfiles): Add new XML files.
15890 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15892 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15893 (init_registers_s390_linux32v1): Add prototype.
15894 (init_registers_s390_linux32v2): Likewise.
15895 (init_registers_s390_linux64v1): Likewise.
15896 (init_registers_s390_linux64v2): Likewise.
15897 (init_registers_s390x_linux64v1): Likewise.
15898 (init_registers_s390x_linux64v2): Likewise.
15899 (s390_num_regs): Increment to 52.
15900 (s390_regmap): Add orig_r2 register.
15901 (s390_num_regs_3264): Increment to 68.
15902 (s390_regmap_3264): Add orig_r2 register.
15903 (s390_collect_ptrace_register): Handle orig_r2 register.
15904 (s390_supply_ptrace_register): Likewise.
15905 (s390_fill_last_break): New function.
15906 (s390_store_last_break): Likewise.
15907 (s390_fill_system_call): New function.
15908 (s390_store_system_call): Likewise.
15909 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15911 (s390_check_regset): New function.
15912 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15913 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15914 Update target_regsets for available register sets.
15916 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15917 Jan Kratochvil <jan.kratochvil@redhat.com>
15919 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15920 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15922 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15923 * linux-low.h (struct process_info_private): New member r_debug.
15924 * server.c (handle_qxfer_libraries): Call
15925 the_target->qxfer_libraries_svr4.
15926 (handle_qxfer_libraries_svr4): New function.
15927 (qxfer_packets): New entry "libraries-svr4".
15928 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15929 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15930 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15931 PACKET_qXfer_libraries_svr4.
15933 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15935 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15936 PSW address/mask between 8-byte and 16-byte formats.
15937 (s390_supply_ptrace_register): Likewise.
15938 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15939 basic addressing mode bit.
15941 2011-11-24 Stan Shebs <stan@codesourcery.com>
15943 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15945 2011-11-17 Stan Shebs <stan@codesourcery.com>
15947 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15948 (tracing_start_time): New global.
15949 (tracing_stop_time): New global.
15950 (tracing_user_name): New global.
15951 (tracing_notes): New global.
15952 (tracing_stop_note): New global.
15953 (cmd_qtstart): Set traceframe_usage, start_time.
15954 (stop_tracing): Set stop_time.
15955 (cmd_qtstatus): Report additional status.
15956 (cmd_qtp): New function.
15957 (handle_tracepoint_query): Call it.
15958 (cmd_qtnotes): New function.
15959 (handle_tracepoint_general_set): Call it.
15960 (get_timestamp): Rename from tsv_get_timestamp.
15962 2011-11-14 Stan Shebs <stan@codesourcery.com>
15963 Kwok Cheung Yeung <kcy@codesourcery.com>
15965 * linux-x86-low.c (small_jump_insn): New.
15966 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15967 trampoline and error message, build a trampoline and issue a small
15968 jump instruction to it.
15969 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15970 trampoline and error message.
15971 (x86_get_min_fast_tracepoint_insn_len): New.
15972 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15973 * linux-low.h (struct linux_target_ops): Add arguments to
15974 install_fast_tracepoint_jump_pad operation, add new operation.
15975 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15977 (linux_get_min_fast_tracepoint_insn_len): New function.
15978 (linux_target_op): Add new operation.
15979 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15980 (gdb_trampoline_buffer_end): Ditto.
15981 (gdb_trampoline_buffer_error): Ditto.
15982 (struct ipa_sym_addresses): Add fields for new IPA variables.
15983 (symbol_list): Add entries for new IPA variables.
15984 (struct tracepoint): Add fields to hold the address range of the
15985 trampoline used by the tracepoint.
15986 (trampoline_buffer_head): New static variable.
15987 (trampoline_buffer_tail): Ditto.
15988 (claim_trampoline_space): New function.
15989 (have_fast_tracepoint_trampoline_buffer): New function.
15990 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15992 (install_fast_tracepoint): Ditto, also add error buffer argument.
15993 (cmd_qtminftpilen): New function.
15994 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15995 (fast_tracepoint_from_trampoline_address): New function.
15996 (fast_tracepoint_collecting): Handle trampoline as part of jump
15998 (set_trampoline_buffer_space): New function.
15999 (initialize_tracepoint): Initialize new IPA variables.
16000 * target.h (struct target_ops): Add arguments to
16001 install_fast_tracepoint_jump_pad operation, add new
16002 get_min_fast_tracepoint_insn_len operation.
16003 (target_get_min_fast_tracepoint_insn_len): New.
16004 (install_fast_tracepoint_jump_pad): Add arguments.
16005 * server.h (IPA_BUFSIZ): Define.
16006 * linux-i386-ipa.c: Include extra header files.
16007 (initialize_fast_tracepoint_trampoline_buffer): New function.
16008 (initialize_low_tracepoint): Call it.
16009 * server.h (set_trampoline_buffer_space): Declare.
16010 (claim_trampoline_space): Ditto.
16011 (have_fast_tracepoint_trampoline_buffer): Ditto.
16013 2011-11-14 Yao Qi <yao@codesourcery.com>
16015 * server.c (handle_query): Handle InstallInTrace for qSupported.
16016 * tracepoint.c (add_tracepoint): Sort list.
16017 (install_tracepoint, download_tracepoint): New.
16018 (cmd_qtdp): Call them to install and download tracepoints.
16019 (sort_tracepoints): Removed.
16020 (cmd_qtstart): Update.
16022 2011-11-14 Yao Qi <yao@codesourcery.com>
16024 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16025 * mem-break.h: Declare.
16026 * tracepoint.c (cmd_qtstart): Move some code to ...
16027 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16029 (download_tracepoints): Move some code to ...
16030 (download_tracepoint_1): ... here. New.
16032 2011-11-08 Yao Qi <yao@codesourcery.com>
16034 * remote-utils.c (relocate_instruction): A comment fix.
16036 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16038 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16039 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16040 dr_status_mirror and dr_control_mirror from debug_reg_state.
16041 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16042 (i386_initial_stuff): Remove use of deleted globals.
16043 (i386_get_thread_context, i386_set_thread_context,
16044 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16045 from debug_reg_state.
16047 2011-11-05 Yao Qi <yao@codesourcery.com>
16049 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16050 address as TPOINT's.
16052 2011-11-02 Stan Shebs <stan@codesourcery.com>
16054 * tracepoint.c (agent_mem_read_string): New function.
16055 (eval_agent_expr): Call it for tracenz.
16056 * server.c (handle_query): Report support for tracenz.
16058 2011-11-02 Yao Qi <yao@codesourcery.com>
16060 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16062 2011-11-02 Yao Qi <yao@codesourcery.com>
16064 * target.h: Fix a typo in comment.
16066 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16068 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16069 clobber the breakpoints' shadows with fast tracepoint jumps.
16070 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16071 * target.c (write_inferior_memory): Also pass MYADDR down to
16074 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16076 * configure.ac: Check support for personality routine.
16077 * configure: Regenerate.
16078 * config.in: Likewise.
16079 * linux-low.c: Include <sys/personality.h>.
16080 Define ADDR_NO_RANDOMIZE if necessary.
16081 (linux_create_inferior): Disable address space randomization when
16082 forking inferior, if requested.
16083 (linux_supports_disable_randomization): New function.
16084 (linux_target_ops): Install it.
16085 * server.h (disable_randomization): Declare.
16086 * server.c (disable_randomization): New global variable.
16087 (handle_general_set): Handle QDisableRandomization.
16088 (handle_query): Likewise for qSupported.
16089 (main): Support --disable-randomization and --no-disable-randomization
16090 command line arguments.
16091 * target.h (struct target_ops): Add supports_disable_randomization.
16092 (target_supports_disable_randomization): New macro.
16094 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16096 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16098 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16099 [!PT_GETDSBT] (target_loadmap): New definition.
16100 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16101 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16102 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16103 and PT_GETDSBT to LINUX_LOADMAP.
16104 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16105 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16107 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16109 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16110 (arm_linux_hwbp_cap): New static variable.
16111 (arm_linux_get_hwbp_cap): Replace by ...
16112 (arm_linux_init_hwbp_cap): ... this new function.
16113 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16114 (arm_linux_get_hw_watchpoint_count): Likewise.
16115 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16116 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16117 (arm_prepare_to_resume): Use perror_with_name instead of error.
16119 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16121 * linux-arm-low.c: Include <signal.h>.
16122 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16123 (struct arm_linux_hwbp_cap): New data type.
16124 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16125 (struct arm_linux_hw_breakpoint): New data type.
16126 (MAX_BPTS, MAX_WPTS): Define.
16127 (struct arch_process_info, struct arch_lwp_info): New data types.
16128 (arm_linux_get_hwbp_cap): New function.
16129 (arm_linux_get_hw_breakpoint_count): Likewise.
16130 (arm_linux_get_hw_watchpoint_count): Likewise.
16131 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16132 (arm_hwbp_control_initialize): Likewise.
16133 (arm_hwbp_control_is_enabled): Likewise.
16134 (arm_hwbp_control_is_initialized): Likewise.
16135 (arm_hwbp_control_disable): Likewise.
16136 (arm_linux_hw_breakpoint_equal): Likewise.
16137 (arm_linux_hw_point_initialize): Likewise.
16138 (struct update_registers_data): New data structure.
16139 (update_registers_callback: New function.
16140 (arm_insert_point): Likewise.
16141 (arm_remove_point): Likewise.
16142 (arm_stopped_by_watchpoint): Likewise.
16143 (arm_stopped_data_address): Likewise.
16144 (arm_new_process): Likewise.
16145 (arm_new_thread): Likewise.
16146 (arm_prepare_to_resume): Likewise.
16147 (the_low_target): Register arm_insert_point, arm_remove_point,
16148 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16149 arm_new_thread, and arm_prepare_to_resume.
16151 2011-09-15 Stan Shebs <stan@codesourcery.com>
16153 * server.h (struct emit_ops): Add compare-goto fields.
16154 * tracepoint.c (gdb_agent_op_sizes): New table.
16155 (emit_eq_goto): New function.
16156 (emit_ne_goto): New function.
16157 (emit_lt_goto): New function.
16158 (emit_le_goto): New function.
16159 (emit_gt_goto): New function.
16160 (emit_ge_goto): New function.
16161 (is_goto_target): New function.
16162 (compile_bytecodes): Recognize special cases of compare-goto
16163 combinations and call specialized emitters for them.
16164 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16165 (amd64_emit_ne_goto): New function.
16166 (amd64_emit_lt_goto): New function.
16167 (amd64_emit_le_goto): New function.
16168 (amd64_emit_gt_goto): New function.
16169 (amd64_emit_ge_goto): New function.
16170 (amd64_emit_ops): Add the new functions.
16171 (i386_emit_eq_goto): New function.
16172 (i386_emit_ne_goto): New function.
16173 (i386_emit_lt_goto): New function.
16174 (i386_emit_le_goto): New function.
16175 (i386_emit_gt_goto): New function.
16176 (i386_emit_ge_goto): New function.
16177 (i386_emit_ops): Add the new functions.
16179 2011-09-08 Stan Shebs <stan@codesourcery.com>
16181 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16182 (i386_emit_epilogue): Restore %ebx.
16184 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16186 * server.c (step_thread): Remove definition.
16187 (process_serial_event): Don't handle Hs.
16188 * server.h (step_thread): Remove declaration.
16189 * target.c (set_desired_inferior): Remove use of step_thread.
16191 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16193 * linux-low.c: Include linux-procfs.h.
16194 (linux_attach_lwp_1): Update comments.
16195 (linux_attach): Scan for existing threads when attaching to a
16196 process that is the tgid.
16197 * Makefile.in: Update dependencies.
16199 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16201 * configure.srv: Add linux-procfs.o dependencies.
16203 2011-08-14 Yao Qi <yao@codesourcery.com>
16205 * target.h (struct target_ops): Fix indent.
16206 * win32-low.c (win32_target_ops): Fix comment.
16208 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16209 Yao Qi <yao@codesourcery.com>
16211 * Makefile.in (clean): Remove tic6x-*.c files.
16212 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16213 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16214 (tic6x-c64xp-linux.c): Likewise.
16215 * configure.srv: Add support for tic6x-*-uclinux.
16216 * linux-tic6x-low.c: New.
16217 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16219 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16220 Yao Qi <yao@codesourcery.com>
16222 * target.h (struct target_ops): Add read_loadmap.
16223 * linux-low.c (struct target_loadseg): New type.
16224 (struct target_loadmap): New type.
16225 (linux_read_loadmap): New function.
16226 (linux_target_ops): Add linux_read_loadmap.
16227 * server.c (handle_query): Support qXfer:fdpic:read packet.
16228 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16231 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16233 * win32-low.c: Include <stdint.h>.
16235 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16237 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16238 to the inferior here.
16239 (i386_remove_aligned_watchpoint): Ditto.
16240 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16241 fit part of the watchpoint in the debug registers.
16242 (i386_update_inferior_debug_regs): New.
16243 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16244 registers, and only update the inferior on success.
16245 (i386_low_remove_watchpoint): Ditto.
16247 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16249 * linux-low.c (compare_ints, unique, list_threads, show_process,
16250 linux_core_of_thread): Delete.
16251 (linux_target_ops): Change linux_core_of_thread to
16252 linux_common_core_of_thread.
16253 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16254 * utils.c (malloc_failure): Change type of argument.
16255 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16256 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16257 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16258 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16259 (IPA_OBJS): Add common-utils-ipa.o.
16260 (ptid_h, linux_osdata_h): New macros.
16261 (server_h): Add common/common-utils.h, common/xml-utils.h,
16262 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16264 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16265 ptid.o, buffer.o): New rules.
16266 (linux-low.o): Add common/linux-osdata.h as a dependency.
16267 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16268 * configure.ac: Add AC_HEADER_DIRENT check.
16269 * config.in: Regenerate.
16270 * configure: Regenerate.
16271 * remote-utils.c (xml_escape_text): Delete.
16272 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16273 buffer_xml_printf): Move to common/buffer.c.
16274 * server.c (main): Remove call to initialize_inferiors.
16275 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16276 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16277 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16278 internal_error, gdb_assert, gdb_assert_fail): Delete.
16279 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16280 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16282 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16283 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16284 initialize_inferiors): Delete.
16286 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16288 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16291 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16293 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16295 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16297 2011-05-26 Yao Qi <yao@codesourcery.com>
16299 * Makefile.in (thread-db.o): Track dependence to
16300 common/gdb_thread_db.h.
16301 * thread-db.c: include gdb_thread_db.h from right place.
16303 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16305 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16306 __FILE__ and __LINE__ to internal_error.
16308 2011-05-13 Doug Evans <dje@google.com>
16310 * thread-db.c (try_thread_db_load_from_sdir): New function.
16311 (try_thread_db_load_from_dir): New function.
16312 (thread_db_load_search): Handle $sdir, ignore $pdir.
16313 Remove trying of system directories if search of
16314 libthread-db-search-path fails, that is now done via $sdir.
16316 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16318 * server.c (handle_query): Add EnableDisableTracepoints to the list
16319 of supported features.
16320 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16322 (cmd_qtenable_disable): New.
16323 (cmd_qtstart): Install tracepoints even if disabled.
16324 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16325 receiving a QTEnable or QTDisable packet.
16326 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16327 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16329 (gdb_probe): Skip data collection if static tracepoint is disabled.
16331 2011-05-10 Doug Evans <dje@google.com>
16333 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16335 2011-05-04 Doug Evans <dje@google.com>
16337 * linux-low.c (linux_join): Skip process lookup.
16338 * spu-low.c (spu_join): Ditto.
16339 * server.c (join_inferiors_callback): Delete.
16340 (process_serial_event): For 'D' packet (detach) call join_inferior
16343 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16345 * README: Don't mention xscale*-*-linux*.
16346 * configure.srv (xscale*-*-linux*): Don't handle target.
16348 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16350 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16352 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16353 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16354 (i386_emit_void_call_2): Likewise.
16356 2011-04-26 Yao Qi <yao@codesourcery.com>
16358 * linux-low.c: Move common macros to linux-ptrace.h.
16359 Include linux-ptrace.h.
16360 * Makefile.in (linux_ptrace_h): New.
16361 (linux-low.o): Depends on linux-ptrace.h.
16363 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16365 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16366 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16367 (remote_prepare): New function with most of the TCP code from ...
16368 (remote_open): ... here. Detect PORT here unconditionally. Move also
16369 setting transport_is_reliable.
16370 * server.c (run_once): New variable.
16371 (gdbserver_usage): Document it.
16372 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16373 the first run if RUN_ONCE.
16374 * server.h (run_once, remote_prepare): New declarations.
16376 2011-04-19 Tom Tromey <tromey@redhat.com>
16378 * win32-low.c (handle_load_dll): Remove duplicate "the".
16380 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16382 Remove support for old Cygwin 1.5 versions.
16383 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16384 function to avoid warning.
16385 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16388 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16390 * gdbserver/server.h (Macro _): Define it if not available.
16392 2011-03-14 Michael Snyder <msnyder@vmware.com>
16394 * hostio.c (handle_close): Remove unnecessary null test.
16396 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16398 * Makefile.in (maintainer-clean realclean distclean): Remove
16399 "make ... subdir_do" command.
16401 2011-03-10 Michael Snyder <msnyder@vmware.com>
16403 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16405 * server.c (handle_v_run): Free alloced buffer on early return.
16407 2011-03-09 Yao Qi <yao@codesourcery.com>
16410 2011-03-04 Yao Qi <yao@codesourcery.com>
16412 * Makefile.in: Remove GNU make feature --directory.
16414 2011-03-05 Yao Qi <yao@codesourcery.com>
16416 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16417 (subdir_do): New make target. Copied from gdb/Makefile.
16418 (maintainer-clean, realclean, distclean, clean): Call corresponding
16419 make targets in common/Makefile.
16421 2011-02-11 Yao Qi <yao@codesourcery.com>
16423 * configure.ac: Call AC_PROG_RANLIB.
16424 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16425 * configure: Regenerate.
16427 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16429 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16431 2011-03-06 Yao Qi <yao@codesourcery.com>
16433 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16435 2011-03-05 Yao Qi <yao@codesourcery.com>
16437 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16438 (subdir_do): New make target. Copied from gdb/Makefile.
16439 (maintainer-clean, realclean, distclean, clean): Call corresponding
16440 make targets in common/Makefile.
16442 2011-03-04 Yao Qi <yao@codesourcery.com>
16444 * Makefile.in: Remove GNU make feature --directory.
16446 2011-03-04 Michael Snyder <msnyder@vmware.com>
16448 * server.c (queue_stop_reply): Call xmalloc not malloc.
16450 2011-03-02 Michael Snyder <msnyder@vmware.com>
16452 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16454 2011-02-28 Michael Snyder <msnyder@vmware.com>
16456 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16457 (cmd_qtframe): Ditto.
16458 (cmd_qtbuffer): Ditto.
16459 (cmd_bigqtbuffer): Ditto.
16461 * utils.c (decimal2str): Initialize 'width' to nine, then
16462 don't mess with it.
16464 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16466 * hostio.c (require_data): Free *data, not data.
16468 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16470 * hostio.c (require_data): Use free, not xfree.
16472 2011-02-27 Michael Snyder <msnyder@vmware.com>
16474 * server.c (handle_query): Discard unused value.
16476 * hostio.c (require_data): Free malloc memory before returning
16479 2011-02-26 Michael Snyder <msnyder@vmware.com>
16481 * linux-low.c (list_threads): Call closedir for dirent.
16483 2011-02-27 Michael Snyder <msnyder@vmware.com>
16485 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16486 a case statement falls through.
16488 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16490 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16493 2011-02-26 Michael Snyder <msnyder@vmware.com>
16495 * utils.c (decimal2str): Eliminate dead code and dead param.
16496 (pulongest): Drop dead param from call to decimal2str.
16499 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16501 Revert the following patch (not approved yet):
16502 2011-02-21 Hui Zhu <teawater@gmail.com>
16503 * tracepoint.c (tp_printf): New function.
16504 (eval_agent_expr): Handle gdb_agent_op_printf.
16506 2011-02-21 Hui Zhu <teawater@gmail.com>
16508 * tracepoint.c (tp_printf): New function.
16509 (eval_agent_expr): Handle gdb_agent_op_printf.
16511 2011-02-18 Tom Tromey <tromey@redhat.com>
16513 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16514 (tracepoint.o): Likewise.
16515 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16516 (gdb_agent_op_names): Likewise.
16518 2011-02-18 Tom Tromey <tromey@redhat.com>
16520 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16521 gdb_agent_op_rot>: New constants.
16522 (gdb_agent_op_names): Add pick and roll.
16523 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16526 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16528 * aclocal.m4: Regenerated with aclocal-1.11.1.
16530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16532 * server.c (handle_qxfer_traceframe_info): New.
16533 (qxfer_packets): Register "traceframe-info".
16534 (handle_query): Report support for qXfer:traceframe-info:read+.
16535 * tracepoint.c (match_blocktype): New.
16536 (traceframe_find_block_type): Rename to ...
16537 (traceframe_walk_blocks): ... this. Add callback filter argument,
16539 (traceframe_find_block_type): New, reimplemented on top of
16540 traceframe_walk_blocks.
16541 (build_traceframe_info_xml): New.
16542 (traceframe_read_info): New.
16543 * server.h (traceframe_read_info): Declare.
16545 2011-02-11 Yao Qi <yao@codesourcery.com>
16547 * configure.ac: Call AC_PROG_RANLIB.
16548 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16549 * configure: Regenerate.
16551 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16553 * server.c (gdb_read_memory): Change return semantics to allow
16555 (handle_search_memory_1): Adjust.
16556 (process_serial_event) <'m' packet>: Handle partial transfers.
16557 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16559 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16561 * regcache.c (init_register_cache): Initialize
16562 regcache->register_status.
16563 (free_register_cache): Release regcache->register_status.
16564 (regcache_cpy): Copy register_status.
16565 (registers_to_string): Print 'x's for unavailable registers.
16566 (supply_register): Mark the register's status valid or
16567 unavailable, depending on whether a buffer was passed in or not.
16568 (supply_register_zeroed): New.
16569 (supply_regblock): Mark the registers' status valid or
16570 unavailable, depending on whether a buffer was passed in or not.
16571 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16572 (struct regcache): New `register_status' field.
16573 (supply_register_zeroed): Declare.
16574 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16575 supply_register_zeroed, rather than passing a NULL buffer to
16577 * tracepoint.c (fetch_traceframe_registers): Update comment.
16579 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16581 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16584 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16586 * server.h (decode_xfer_write): Change prototype.
16587 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16588 and don't extract the annex here.
16589 * server.c (decode_xfer_read): Remove `annex' parameter,
16590 and don't extract the annex here.
16591 (decode_xfer): New.
16592 (struct qxfer): New.
16593 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16594 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16595 (handle_qxfer_statictrace): New functions, abstracted out from
16596 handle_query, and made to use the struct qxfer interface.
16597 (handle_threads_qxfer_proper): Rename to ...
16598 (handle_qxfer_threads_proper): ... this.
16599 (handle_threads_qxfer): Rename to ...
16600 (handle_qxfer_threads): ... this. Adjust.
16601 (qxfer_packets): New array.
16602 (handle_qxfer): New function.
16603 (handle_query): Use handle_qxfer.
16605 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16607 * gdbreplay.c: Shorten lines of >= 80 columns.
16608 * linux-low.c: Ditto.
16609 * linux-ppc-low.c: Ditto.
16610 * linux-s390-low.c: Ditto.
16611 * linux-sparc-low.c: Ditto.
16612 * linux-x86-low.c: Ditto.
16613 * linux-xtensa-low.c: Ditto.
16614 * mem-break.c: Ditto.
16615 * nto-low.c: Ditto.
16616 * regcache.h: Ditto.
16617 * remote-utils.c: Ditto.
16620 * thread-db.c: Ditto.
16621 * tracepoint.c: Ditto.
16623 * win32-low.h: Ditto.
16625 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16627 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16630 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16632 * server.c (gdbserver_version): Update copyright year in version
16634 * gdbreplay.c (gdbreplay_version): Ditto.
16636 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16638 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16639 * linux-bfin-low.c: New file.
16640 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16641 PT_DATA_ADDR for BFIN targets.
16642 * Makefile.in (SFILES): Add linux-bfin-low.c.
16643 (clean): Remove reg-bfin.c.
16644 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16645 * README: Mention supported Blackfin targets.
16647 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16649 * .gitignore: New file.
16651 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16653 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16655 2010-10-22 Jie Zhang <jie@codesourcery.com>
16657 * Makefile.in: Add FLAGS_TO_PASS variable.
16658 (install): Remove dependency of install-only and recursively
16659 invoke make for install-only.
16661 2010-10-04 Doug Evans <dje@google.com>
16663 * Makefile.in (uninstall): Use $(DESTDIR).
16665 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16669 * linux-x86-low.c (compat_siginfo_from_siginfo)
16670 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16671 si_code is < 0. Check for si_code == SI_TIMER before checking for
16674 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16676 * lynx-i386-low.c: New file.
16677 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16679 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16681 * lynx-low.c (ptrace_request_to_str): Remove handling for
16682 request values that have been removed in LynxOS 5.x.
16684 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16686 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16689 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16691 * configure.ac: Add --enable-inprocess-agent option.
16692 * configure: Rebuilt.
16694 2010-09-06 Yao Qi <yao@codesourcery.com>
16696 * linux-low.c (linux_kill): Remove unused variable.
16697 (linux_stabilize_threads): Likewise.
16698 * server.c (start_inferior): Likewise.
16699 (queue_stop_reply_callback): Likewise.
16700 * tracepoint.c (do_action_at_tracepoint): Likewise.
16702 2010-09-06 Yao Qi <yao@codesourcery.com>
16704 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16707 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16709 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16711 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16713 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16716 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16718 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16719 gdbserver/lynx-ppc-low.c: New files.
16720 * Makefile.in (lynx_low_h): New variable.
16721 (lynx-low.o, lynx-ppc-low.o): New rules.
16722 * configure.ac: On LynxOS, link with -lnetinet.
16723 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16724 * configure: regenerate.
16726 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16728 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16729 * configure.ac: Add check for vasprintf and vsnprintf.
16730 * configure, config.in: Regenerate.
16731 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16733 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16735 * gdbreplay.c: Move include of alloca.h up, next to include of
16737 * server.h: Add include of malloc.h.
16738 * mem-break.c: Remove include of malloc.h.
16739 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16741 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16743 * Makefile.in (memmem.o): Build with -Wno-error.
16745 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16747 * utils.c (xsnprintf): Make non-static.
16748 * server.h: Add xsnprintf declaration.
16749 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16750 replace calls to snprintf by calls to xsnprintf throughout.
16752 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16754 * configure.ac: Add configure check for alloca.
16755 * configure, config.in: Regenerate.
16756 * server.h: Include alloca.h if it exists.
16757 * gdbreplay.c: Include alloca.h if it exists.
16759 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16761 * linux-low.c (__SIGRTMIN): Define if not already defined.
16762 (linux_create_inferior): Check for __ANDROID__ rather than
16764 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16765 are already deferred.
16766 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16767 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16768 stopped and already has a pending signal to report.
16769 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16770 a pending signal to report or is moving out of a jump pad.
16771 (linux_init_signals): Check for __ANDROID__ rather than
16774 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16776 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16777 debug_threads check. Avoid a linear search when not doing debug
16780 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16782 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16783 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16784 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16785 (process_event): Change local fd's type to gdb_fildes_t.
16786 (create_file_handler): Adjust prototype.
16787 (delete_file_handler): Adjust prototype.
16788 (handle_file_event): Adjust prototype. Use pfildes.
16789 (create_file_event): Adjsut prototype.
16790 * remote-utils.c (remote_desc, listen_desc): Change type to
16792 * server.h: New gdb_fildes_t typedef.
16793 [USE_WIN32API]: Include winsock2.h.
16794 (delete_file_handler, add_file_handler): Adjust prototypes.
16795 (pfildes): Declare.
16796 * utils.c (pfildes): New.
16798 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16800 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16801 * configure: Regenerate.
16803 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16805 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16806 (linux_done_accessing_memory): ... this.
16807 (linux_target_ops): Adjust.
16808 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16809 * nto-low.c (nto_target_ops): Adjust comment.
16810 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16811 * spu-low.c (spu_target_ops): Adjust comment.
16812 * target.h (target_ops): Rename unprepare_to_access_memory field
16813 to done_accessing_memory.
16814 (unprepare_to_access_memory): Rename to ...
16815 (done_accessing_memory): ... this.
16817 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16819 * linux-low.c (linux_prepare_to_access_memory): New.
16820 (linux_unprepare_to_access_memory): New.
16821 (linux_target_ops): Install them.
16822 * server.c (read_memory): Rename to ...
16823 (gdb_read_memory): ... this. Use
16824 prepare_to_access_memory/prepare_to_access_memory.
16825 (write_memory): Rename to ...
16826 (gdb_write_memory): ... this. Use
16827 prepare_to_access_memory/prepare_to_access_memory.
16828 (handle_search_memory_1): Adjust.
16829 (process_serial_event): Adjust.
16830 * target.h (struct target_ops): New fields
16831 prepare_to_access_memory and unprepare_to_access_memory.
16832 (prepare_to_access_memory, unprepare_to_access_memory): New.
16833 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16834 prepare_to_access_memory/prepare_to_access_memory.
16835 * nto-low.c (nto_target_ops): Adjust.
16836 * spu-low.c (spu_target_ops): Adjust.
16837 * win32-low.c (win32_target_ops): Adjust.
16839 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16841 * Makefile.in (WARN_CFLAGS): Get it from configure.
16842 (WERROR_CFLAGS): New.
16843 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16844 * configure.ac: Introduce --enable-werror, which adds -Werror to
16845 the compiler command line. Enabled by default. Disable with
16846 --disable-werror. Add -Wdeclaration-after-statement
16847 Wpointer-arith and -Wformat-nonliteral to warning flags.
16848 * configure: Regenerate.
16850 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16852 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16854 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16856 * gdbreplay.c (remote_error): New.
16858 (expect): Use gdbchar. Check for error reading from GDB.
16859 Clarify sync error output.
16860 (play): Check for errors writing to GDB.
16861 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16862 * remote-utils.c (getpkt): Check for errors writing to the remote
16865 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16867 * linux-low.c (linux_wait_1): Move non-debugging code out of
16868 `debug_threads' control.
16870 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16872 * linux-low.c (linux_wait_1): Don't set last_status here.
16873 * server.c (push_event, queue_stop_reply_callback): Assert we're
16874 not pushing a TARGET_WAITKIND_IGNORE event.
16875 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16876 (myresume, handle_target_event): Set the thread's last_resume_kind
16877 and last_status from the target returned status.
16879 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16883 * linux-x86-low.c (update_debug_registers_callback): New.
16884 (i386_dr_low_set_addr): Use it.
16885 (i386_dr_low_get_addr): New.
16886 (i386_dr_low_set_control): Use update_debug_registers_callback.
16887 (i386_dr_low_get_control): New.
16888 (i386_dr_low_get_status): Adjust.
16889 * linux-low.c (linux_stop_lwp): New.
16890 * linux-low.h (linux_stop_lwp): Declare.
16892 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16893 argument instead of a i386_debug_reg_state.
16894 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16895 a i386_debug_reg_state.
16896 (i386_insert_aligned_watchpoint): Adjust.
16897 (i386_remove_aligned_watchpoint): Adjust.
16898 (i386_low_stopped_data_address): Read the debug registers from the
16899 inferior instead of from the mirrors.
16900 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16901 (i386_dr_low_get_addr): Declare.
16902 (i386_dr_low_get_control): Declare.
16903 (i386_dr_low_get_status): Change prototype.
16905 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16906 (i386_dr_low_get_addr): New.
16907 (i386_dr_low_get_control): New.
16908 (i386_dr_low_get_status): Adjust prototype. Return
16910 (i386_initial_stuff): Clear dr_status_mirror and
16912 (i386_get_thread_context): Adjust.
16913 (i386_set_thread_context): Adjust.
16914 (i386_thread_added): Adjust.
16916 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16918 * linux-low.h (linux_thread_area): Delete declaration.
16920 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16922 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16923 after its termination.
16925 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16927 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16928 (gdb_wants_all_stopped): Delete.
16929 (linux_wait_1): Don't call them.
16930 * server.c (handle_v_cont): Tag all threads as want-stopped.
16931 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16932 stopped as "client-wants-stopped".
16934 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16936 * Makefile.in (signals_h): New.
16937 (server_h): Depend on it.
16938 (server.o): Don't depend on $(signals_def).
16939 (signals.o): Depend on $(signals_def).
16941 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16943 * Makefile.in (signals_def): New.
16944 (server_h): Append include/gdb/signals.h and signals_def.
16945 (server.o): Append signals_def.
16947 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16949 * server.c (handle_target_event): Use target_signal_to_host for
16950 resume_info.sig initialization.
16951 * target.h (struct thread_resume) <sig>: New comment.
16953 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16955 * server.c (handle_query): strcpy() the returned string from paddress()
16956 instead of sprintf().
16957 * utils.c (paddress): Return phex_nz().
16959 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16961 * server.c (handle_v_cont): Call mourn_inferior if process
16963 (myresume): Likewise.
16965 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16967 Static tracepoints, and integration with UST.
16969 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16970 * mem-break.c (uninsert_all_breakpoints)
16971 (reinsert_all_breakpoints): New.
16972 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16973 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16974 (gdb_agent_ust_loaded, helper_thread_id)
16975 (gdb_agent_helper_thread_id): New macros.
16976 (struct ipa_sym_addresses): Add addr_ust_loaded,
16977 addr_helper_thread_id, addr_cmd_buf.
16978 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16979 (in_process_agent_loaded_ust): New.
16980 (write_e_ust_not_loaded): New.
16981 (maybe_write_ipa_ust_not_loaded): New.
16982 (struct collect_static_trace_data_action): New.
16983 (enum tracepoint_type) <static_tracepoint>: New.
16984 (struct tracepoint) <handle>: Mention static tracepoints.
16985 (struct static_tracepoint_ctx): New.
16986 (CMD_BUF_SIZE): New.
16987 (add_tracepoint_action): Handle static tracepoint actions.
16988 (unprobe_marker_at): New.
16989 (clear_installed_tracepoints): Handle static tracepoints.
16990 (cmd_qtdp): Handle static tracepoints.
16991 (probe_marker_at): New.
16992 (cmd_qtstart): Handle static tracepoints.
16993 (response_tracepoint): Handle static tracepoints.
16994 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16995 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16996 (get_context_regcache): Handle static tracepoints.
16997 (do_action_at_tracepoint): Handle static tracepoint actions.
16998 (traceframe_find_block_type): Handle static trace data blocks.
16999 (traceframe_read_sdata): New.
17000 (download_tracepoints): Download static tracepoint actions.
17001 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17002 (GDB_PROBE_NAME): New.
17004 (GET_UST_SYM): New.
17007 (ust_marker_to_static_tracepoint): New.
17009 (collect_ust_data_at_tracepoint): New.
17010 (gdb_ust_probe): New.
17011 (UNIX_PATH_MAX, SOCK_DIR): New.
17012 (gdb_ust_connect_sync_socket): New.
17013 (resume_thread, stop_thread): New.
17014 (run_inferior_command): New.
17015 (init_named_socket): New.
17016 (gdb_ust_socket_init): New.
17017 (cstr_to_hexstr): New.
17019 (first_marker, next_marker): New.
17020 (response_ust_marker): New.
17021 (cmd_qtfstm, cmd_qtsstm): New.
17022 (unprobe_marker_at, probe_marker_at): New.
17023 (cmd_qtstmat, gdb_ust_thread): New.
17024 (gdb_ust_init): New.
17025 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17026 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17027 (ST_REGENTRY): New.
17028 (x86_64_st_collect_regmap): New.
17029 (X86_64_NUM_ST_COLLECT_GREGS): New.
17030 (AMD64_RIP_REGNUM): New.
17031 (supply_static_tracepoint_registers): New.
17032 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17033 (ST_REGENTRY): New.
17034 (i386_st_collect_regmap): New.
17035 (i386_NUM_ST_COLLECT_GREGS): New.
17036 (supply_static_tracepoint_registers): New.
17037 * server.c (handle_query): Handle qXfer:statictrace:read.
17038 <qSupported>: Report support for StaticTracepoints, and
17039 qXfer:statictrace:read features.
17040 * server.h (traceframe_read_sdata)
17041 (supply_static_tracepoint_registers): Declare.
17042 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17043 (unpack_varlen_hex): Include in IPA build.
17044 * Makefile.in (ustlibs, ustinc): New.
17045 (IPA_OBJS): Add remote-utils-ipa.o.
17046 ($(IPA_LIB)): Link -ldl and -lpthread.
17048 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17049 * config.in, configure: Regenerate.
17051 2010-06-20 Ian Lance Taylor <iant@google.com>
17052 Pedro Alves <pedro@codesourcery.com>
17054 * linux-x86-low.c (always_true): Delete.
17055 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17056 trying to fool the compiler with always_true.
17058 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17060 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17061 conditions in gdbserver.
17063 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17065 * spu-low.c (spu_read_memory): Wrap around local store limit.
17066 (spu_write_memory): Likewise.
17068 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17070 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17071 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17073 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17075 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17076 uses with LONGEST uses.
17078 2010-06-14 Stan Shebs <stan@codesourcery.com>
17079 Pedro Alves <pedro@codesourcery.com>
17083 * linux-x86-low.c: Include limits.h.
17085 (always_true): New.
17088 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17089 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17090 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17091 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17092 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17093 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17094 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17095 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17096 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17097 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17098 (amd64_emit_void_call_2): New.
17099 (amd64_emit_ops): New.
17100 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17101 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17102 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17103 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17104 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17105 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17106 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17107 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17108 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17109 (i386_emit_stack_adjust, i386_emit_int_call_1)
17110 (i386_emit_void_call_2): New.
17111 (i386_emit_ops): New.
17112 (x86_emit_ops): New.
17113 (the_low_target): Install x86_emit_ops.
17114 * server.h (struct emit_ops): New.
17115 (get_raw_reg_func_addr): Declare.
17116 (current_insn_ptr, emit_error): Declare.
17117 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17118 (set_trace_state_variable_value): New defines.
17119 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17120 addr_get_trace_state_variable_value and
17121 addr_set_trace_state_variable_value.
17122 (symbol_list): New fields for get_raw_reg,
17123 get_trace_state_variable_value and set_trace_state_variable_value.
17124 (condfn): New typedef.
17125 (struct tracepoint): New field `compiled_cond'.
17126 (do_action_at_tracepoint): Clear compiled_cond.
17127 (get_trace_state_variable_value, set_trace_state_variable_value):
17129 (condition_true_at_tracepoint): If there's a compiled condition,
17131 (current_insn_ptr, emit_error): New globals.
17132 (struct bytecode_address): New.
17133 (get_raw_reg_func_addr): New.
17134 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17135 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17136 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17137 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17138 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17139 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17140 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17141 (compile_tracepoint_condition, compile_bytecodes): New.
17142 * target.h (emit_ops): Forward declare.
17143 (struct target_ops): New field emit_ops.
17144 (target_emit_ops): New.
17145 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17146 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17147 * linux-low.c (linux_emit_ops): New.
17148 (linux_target_ops): Install it.
17149 * linux-low.h (struct linux_target_ops): New field emit_ops.
17151 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17153 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17154 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17156 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17157 Stan Shebs <stan@codesourcery.com>
17159 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17160 (all): Depend on $(extra_libraries).
17161 (install-only): Install the IPA.
17162 (IPA_OBJS, IPA_LIB): New.
17163 (clean): Remove the IPA lib.
17164 (IPAGENT_CFLAGS): New.
17165 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17166 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17167 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17168 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17169 * configure.ac: Check for atomic builtins support in the compiler.
17170 (IPA_DEPFILES, extra_libraries): Define.
17171 * configure.srv (ipa_obj): Add description.
17172 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17173 (i[34567]86-*-linux*): Set ipa_obj.
17174 (x86_64-*-linux*): Set ipa_obj.
17175 * linux-low.c (stabilizing_threads): New.
17176 (supports_fast_tracepoints): New.
17177 (linux_detach): Stabilize threads before detaching.
17178 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17179 the lwp is either not stabilizing, or is moving out of a jump pad.
17180 (linux_fast_tracepoint_collecting): New.
17181 (maybe_move_out_of_jump_pad): New.
17182 (enqueue_one_deferred_signal): New.
17183 (dequeue_one_deferred_signal): New.
17184 (linux_wait_for_event_1): If moving out of a jump pad, defer
17185 pending signals to later.
17186 (linux_stabilize_threads): New.
17187 (linux_wait_1): Check if threads need moving out of jump pads, and
17189 (stuck_in_jump_pad_callback): New.
17190 (move_out_of_jump_pad_callback): New.
17191 (lwp_running): New.
17192 (linux_resume_one_lwp): Handle moving out of jump pads.
17193 (linux_set_resume_request): Dequeue deferred signals.
17194 (need_step_over_p): Also step over fast tracepoint jumps.
17195 (start_step_over): Also uninsert fast tracepoint jumps.
17196 (finish_step_over): Also reinsert fast tracepoint jumps.
17197 (linux_install_fast_tracepoint_jump): New.
17198 (linux_target_ops): Install linux_stabilize_threads and
17199 linux_install_fast_tracepoint_jump_pad.
17200 * linux-low.h (linux_target_ops) <get_thread_area,
17201 install_fast_tracepoint_jump_pad>: New fields.
17202 (struct lwp_info) <collecting_fast_tracepoint,
17203 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17204 (linux_get_thread_area): Declare.
17205 * linux-x86-low.c (jump_insn): New.
17206 (x86_get_thread_area): New.
17207 (append_insns): New.
17208 (push_opcode): New.
17209 (amd64_install_fast_tracepoint_jump_pad): New.
17210 (i386_install_fast_tracepoint_jump_pad): New.
17211 (x86_install_fast_tracepoint_jump_pad): New.
17212 (the_low_target): Install x86_get_thread_area and
17213 x86_install_fast_tracepoint_jump_pad.
17214 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17215 (struct fast_tracepoint_jump): New.
17216 (fast_tracepoint_jump_insn): New.
17217 (fast_tracepoint_jump_shadow): New.
17218 (find_fast_tracepoint_jump_at): New.
17219 (fast_tracepoint_jump_here): New.
17220 (delete_fast_tracepoint_jump): New.
17221 (set_fast_tracepoint_jump): New.
17222 (uninsert_fast_tracepoint_jumps_at): New.
17223 (reinsert_fast_tracepoint_jumps_at): New.
17224 (set_breakpoint_at): Use write_inferior_memory.
17225 (uninsert_raw_breakpoint): Use write_inferior_memory.
17226 (check_mem_read): Mask out fast tracepoint jumps.
17227 (check_mem_write): Mask out fast tracepoint jumps.
17228 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17229 (set_fast_tracepoint_jump): Declare.
17230 (delete_fast_tracepoint_jump)
17231 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17232 (reinsert_fast_tracepoint_jumps_at): Declare.
17233 * regcache.c: Don't compile many functions when building the
17234 in-process agent library.
17235 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17236 the register buffer in the heap.
17237 (free_register_cache): If the register buffer isn't owned by the
17238 regcache, don't free it.
17239 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17240 pre-existing register caches.
17241 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17243 (convert_ascii_to_int): : Constify `from' parameter type.
17244 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17245 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17246 the needed buffer in-place.
17247 (relocate_instruction): New.
17248 * server.c (handle_query) <qSymbols>: If the target supports
17249 tracepoints, give it a chance of looking up symbols. Report
17250 support for fast tracepoints.
17251 (handle_status): Stabilize threads.
17252 (process_serial_event): Adjust.
17253 * server.h (struct fast_tracepoint_jump): Forward declare.
17254 (struct process_info) <fast_tracepoint_jumps>: New field.
17255 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17256 (decode_X_packet, decode_M_packet): Adjust.
17257 (relocate_instruction): Declare.
17258 (in_process_agent_loaded): Declare.
17259 (tracepoint_look_up_symbols): Declare.
17260 (struct fast_tpoint_collect_status): Declare.
17261 (fast_tracepoint_collecting): Declare.
17262 (force_unlock_trace_buffer): Declare.
17263 (handle_tracepoint_bkpts): Declare.
17264 (initialize_low_tracepoint)
17265 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17266 * target.h (struct target_ops) <stabilize_threads,
17267 install_fast_tracepoint_jump_pad>: New fields.
17268 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17269 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17270 [HAVE_STDINT_H]: Include stdint.h.
17271 (trace_debug_1): Rename to ...
17272 (trace_vdebug): ... this.
17273 (trace_debug): Rename to ...
17274 (trace_debug_1): ... this. Add `level' parameter.
17275 (trace_debug): New.
17276 (ATTR_USED, ATTR_NOINLINE): New.
17277 (IP_AGENT_EXPORT): New.
17278 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17279 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17280 (about_to_request_buffer_space, trace_buffer_is_full)
17281 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17282 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17283 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17284 (traceframe_write_count, traceframes_created)
17285 (trace_state_variables)
17286 New renaming defines.
17287 (struct ipa_sym_addresses): New.
17288 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17289 (symbol_list): New.
17290 (ipa_sym_addrs): New.
17291 (all_tracepoint_symbols_looked_up): New.
17292 (in_process_agent_loaded): New.
17293 (write_e_ipa_not_loaded): New.
17294 (maybe_write_ipa_not_loaded): New.
17295 (tracepoint_look_up_symbols): New.
17296 (debug_threads) [IN_PROCESS_AGENT]: New.
17297 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17298 (UNKNOWN_SIDE_EFFECTS): New.
17299 (stop_tracing): New.
17300 (flush_trace_buffer): New.
17301 (stop_tracing_bkpt): New.
17302 (flush_trace_buffer_bkpt): New.
17303 (read_inferior_integer): New.
17304 (read_inferior_uinteger): New.
17305 (read_inferior_data_pointer): New.
17306 (write_inferior_data_pointer): New.
17307 (write_inferior_integer): New.
17308 (write_inferior_uinteger): New.
17309 (struct collect_static_trace_data_action): Delete.
17310 (enum tracepoint_type): New.
17311 (struct tracepoint) <type>: New field `type'.
17312 <actions_str, step_actions, step_actions_str>: Only include in
17314 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17315 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17316 (tracepoints): Use IP_AGENT_EXPORT.
17317 (last_tracepoint): Don't include in the IPA.
17318 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17319 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17320 (alloced_trace_state_variables): New.
17321 (trace_state_variables): Use IP_AGENT_EXPORT.
17322 (traceframe_t): Delete unused variable.
17323 (circular_trace_buffer): Don't include in the IPA.
17324 (trace_buffer_start): Delete.
17325 (struct trace_buffer_control): New.
17326 (trace_buffer_free): Delete.
17327 (struct ipa_trace_buffer_control): New.
17328 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17329 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17331 (trace_buffer_ctrl): New.
17332 (TRACE_BUFFER_CTRL_CURR): New.
17333 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17334 Reimplement as macros.
17335 (trace_buffer_wrap): Delete.
17336 (traceframe_write_count, traceframe_read_count)
17337 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17338 (struct tracepoint_hit_ctx) <type>: New field.
17339 (struct fast_tracepoint_ctx): New.
17340 (memory_barrier): New.
17342 (record_tracepoint_error): Update atomically in the IPA.
17343 (clear_inferior_trace_buffer): New.
17344 (about_to_request_buffer_space): New.
17345 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17346 updating the same buffer.
17347 (add_tracepoint): Default the tracepoint's type to trap
17348 tracepoint, and orig_size to -1.
17349 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17350 internal variables.
17351 (create_trace_state_variable): New parameter `gdb'. Handle it.
17352 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17353 (cmd_qtdp): Handle fast tracepoints.
17354 (cmd_qtdv): Adjust.
17355 (max_jump_pad_size): New.
17356 (gdb_jump_pad_head): New.
17357 (get_jump_space_head): New.
17358 (claim_jump_space): New.
17359 (sort_tracepoints): New.
17360 (MAX_JUMP_SIZE): New.
17361 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17363 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17364 support. Upload fast traceframes, and delete internal IPA
17366 (stop_tracing_handler): New.
17367 (flush_trace_buffer_handler): New.
17368 (cmd_qtstop): Upload fast tracepoints.
17369 (response_tracepoint): Handle fast tracepoints.
17370 (tracepoint_finished_step): Upload fast traceframes. Set the
17371 tracepoint hit context's tracepoint type.
17372 (handle_tracepoint_bkpts): New.
17373 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17374 type. Add comment about fast tracepoints.
17375 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17376 non-existing action_str field.
17377 (get_context_regcache): Handle fast tracepoints.
17378 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17380 (fast_tracepoint_from_jump_pad_address): New.
17381 (fast_tracepoint_from_ipa_tpoint_address): New.
17382 (collecting_t): New.
17383 (force_unlock_trace_buffer): New.
17384 (fast_tracepoint_collecting): New.
17386 (gdb_collect): New.
17387 (write_inferior_data_ptr): New.
17388 (target_tp_heap): New.
17389 (target_malloc): New.
17390 (download_agent_expr): New.
17392 (download_tracepoints): New.
17393 (download_trace_state_variables): New.
17394 (upload_fast_traceframes): New.
17395 (IPA_FIRST_TRACEFRAME): New.
17396 (IPA_NEXT_TRACEFRAME_1): New.
17397 (IPA_NEXT_TRACEFRAME): New.
17398 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17399 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17400 (gdb_jump_pad_buffer_end): New.
17401 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17402 (initialize_tracepoint): Adjust.
17403 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17404 buffer. Initialize the low module.
17405 * utils.c (PREFIX, TOOLNAME): New.
17406 (malloc_failure): Use PREFIX.
17407 (error): In the IPA, an error causes an exit.
17408 (fatal, warning): Use PREFIX.
17409 (internal_error): Use TOOLNAME.
17410 (NUMCELLS): Increase to 10.
17411 * configure, config.in: Regenerate.
17413 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17415 * server.c (handle_query) <qSupported>: Do two passes over the
17416 qSupported string to avoid nesting strtok.
17418 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17420 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17422 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17423 -Wl,--dynamic-list.
17424 * configure: Regenerate.
17425 * proc-service.list: New.
17427 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17429 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17432 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17434 * gdbreplay.c (remote_open): Check error return from socket() call by
17435 its equality to -1 not by it being negative.
17436 * remote-utils.c (remote_open): Likewise.
17438 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17440 * config.h: Regenerate.
17442 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17444 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17445 doesn't provide PTRACE_GET_THREAD_AREA.
17447 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17449 * linux-m68k-low.c: Include <asm/ptrace.h>
17450 (ps_get_thread_area): Implement.
17452 2010-05-03 Doug Evans <dje@google.com>
17454 * event-loop.c (struct callback_event): New struct.
17455 (callback_list): New global.
17456 (append_callback_event, delete_callback_event): New functions.
17457 (process_callback): New function.
17458 (start_event_loop): Call it.
17459 * remote-utils.c (NOT_SCHEDULED): Define.
17460 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17461 moved out of readchar.
17462 (readchar): Rewrite. Call reschedule before returning.
17463 (reset_readchar): New function.
17464 (remote_close): Call it.
17465 (process_remaining, reschedule): New functions.
17466 * server.h (callback_handler_func): New typedef.
17467 (append_callback_event, delete_callback_event): Declare.
17469 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17471 * proc-service.c (ps_pglobal_lookup): Use
17472 thread_db_look_up_one_symbol.
17473 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17474 parameter. Use it instead of all_symbols_looked_up.
17475 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17477 (all_symbols_looked_up): Don't declare.
17478 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17479 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17481 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17482 Set all_symbols_looked_up here.
17483 (thread_db_look_up_one_symbol): New.
17484 (thread_db_get_tls_address): Adjust.
17485 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17486 thread_db object on the heap, and tentatively set it in the
17488 (thread_db_init): Don't set all_symbols_looked_up here.
17489 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17491 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17493 * linux-low.c (linux_kill, linux_detach): Adjust.
17494 (status_pending_p_callback): Remove redundant statement. Check
17495 for !TARGET_WAITIKIND_IGNORE, instead of
17496 TARGET_WAITKIND_STOPPED.
17497 (handle_tracepoints): Make sure LWP is locked. Adjust.
17498 (linux_wait_for_event_1): Adjust.
17499 (linux_cancel_breakpoints): New.
17500 (unsuspend_one_lwp): New.
17501 (unsuspend_all_lwps): New.
17502 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17503 (send_sigstop_callback): Change return type to int, add new
17504 `except' parameter and handle it.
17505 (suspend_and_send_sigstop_callback): New.
17506 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17507 pass them down. If SUSPEND, also increment the lwp's suspend
17509 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17510 (need_step_over_p): Don't consider suspended LWPs.
17511 (start_step_over): Adjust.
17512 (proceed_one_lwp): Change return type to int, add new `except'
17513 parameter and handle it.
17514 (unsuspend_and_proceed_one_lwp): New.
17515 (proceed_all_lwps): Use find_inferior instead of
17517 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17518 also decrement the suspend count of LWPs. Pass `except' down,
17519 instead of hacking its suspend count.
17520 (linux_pause_all): Add `freeze' parameter. Adjust.
17521 (linux_unpause_all): New.
17522 (linux_target_ops): Install linux_unpause_all.
17523 * server.c (handle_status): Adjust.
17524 * target.h (struct target_ops): New fields `unpause_all' and
17525 `cancel_breakpoints'. Add new parameter to `pause_all'.
17526 (pause_all): Add new `freeze' parameter.
17527 (unpause_all): New.
17528 (cancel_breakpoints): New.
17529 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17530 cancel breakpoints.
17531 (cmd_qtstart): Pause threads.
17532 (stop_tracing): Pause threads, and cancel breakpoints.
17533 * win32-low.c (win32_target_ops): Adjust.
17535 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17537 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17538 the inferior right away from here...
17539 (linux_wait_1): ... to here, and adjust to check the thread's
17540 last_resume_kind instead of the lwp's step or stop_expected flags.
17542 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17544 * README: Use consistent `GDB' and `GDBserver' spellings.
17546 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17548 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17549 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17550 (linux_detach_one_lwp): Assume the lwp is stopped.
17551 (any_thread_of): Delete.
17552 (linux_detach): Stop all lwps here. Don't blindly delete all
17554 (delete_lwp_callback): New.
17555 (linux_mourn): Delete all lwps of the process that is gone.
17556 (linux_wait_1): Don't delete the last lwp of the process here.
17557 * mem-break.h (mark_breakpoints_out): Declare.
17558 * mem-break.c (mark_breakpoints_out): New.
17559 (free_all_breakpoints): Use it.
17560 * server.c (handle_target_event): If the process is gone, mark
17562 * thread-db.c (struct thread_db) <create_bp>: New field.
17563 (thread_db_enable_reporting): Fix prototype. Store a thread event
17564 breakpoint reference in the thread_db struct.
17565 (thread_db_load_search): Clear the thread_db object.
17566 (try_thread_db_load_1): Ditto.
17567 (switch_to_process): New.
17568 (disable_thread_event_reporting): Use it.
17569 (remove_thread_event_breakpoints): New.
17570 (thread_db_detach, thread_db_mourn): Use it.
17572 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17574 * linux-low.c (linux_enable_event_reporting): New.
17575 (linux_wait_for_event_1, handle_extended_wait): Use it.
17577 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17579 * linux-low.c (linux_kill_one_lwp, linux_kill)
17580 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17581 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17582 SIGSTOP even if the LWP is stopped.
17583 (send_sigstop_callback): New.
17584 (stop_all_lwps): Use send_sigstop_callback instead.
17585 (linux_resume_one_thread): Adjust.
17586 (proceed_one_lwp): Still proceed an LWP that the client has
17587 requested to stop, if we haven't reported it as stopped yet. Make
17588 sure that LWPs the client want stopped, have a pending SIGSTOP.
17590 2010-04-26 Doug Evans <dje@google.com>
17592 * server.c (handle_general_set): Make static.
17594 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17595 Print received char after testing for error/eof instead of before.
17596 (input_interrupt): Tweak comment.
17598 2010-04-23 Doug Evans <dje@google.com>
17600 * server.c (start_inferior): Print inferior argv if --debug.
17602 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17604 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17605 * nto-x86-low.c: Include server.h
17607 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17609 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17610 be consistent with other sources of this directory.
17611 (init_registers_amd64): Correct name of source file of this function
17614 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17616 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17617 64-bit executables.
17619 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17621 * win32-i386-low.c: Add 64-bit support.
17622 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17623 (init_registers_amd64): Declare.
17624 (mappings): Add 64-bit version of array.
17625 (init_windows_x86): New function.
17626 (the_low_target): Change init_arch field to init_windows_x86.
17628 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17630 * win32-low.c: Adapt to support also 64-bit architecture.
17631 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17632 (get_image_name): Use SIZE_T type for local variable `done'.
17633 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17634 (toolhelp_get_dll_name): Idem.
17635 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17636 Use uintptr_t typecast to avoid warning.
17637 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17638 (handle_exception): Use phex_nz to avoid warning.
17639 (win32_wait): Remove unused local variable `process'.
17641 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17643 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17646 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17648 * configure.ac: Use `ws2_32' library for srv_mingw.
17649 * configure: Regenerate.
17650 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17651 * remote-utils.c: Likewise.
17653 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17655 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17656 if __x86_64__ is defined.
17658 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17660 * configure: Regenerate.
17662 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17664 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17665 * target.h (target_ops): New get_tib_address field.
17666 * win32-low.h (win32_thread_info): Add thread_local_base field.
17667 * win32-low.c (child_add_thread): Add tlb argument.
17668 Set thread_local_base field to TLB.
17669 (get_child_debug_event): Adapt to child_add_thread change.
17670 (win32_get_tib_address): New function.
17671 (win32_target_ops): Set get_tib_address field to
17672 win32_get_tib_address.
17673 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17675 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17677 * linux-low.c (linux_mourn): Also remove the process.
17678 * server.c (handle_target_event): Don't remove the process here.
17679 * nto-low.c (nto_mourn): New.
17680 (nto_target_ops): Install it.
17681 * spu-low.c (spu_mourn): New.
17682 (spu_target_ops): Install it.
17683 * win32-low.c (win32_mourn): New.
17684 (win32_target_ops): Install it.
17686 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17688 * server.h (buffer_xml_printf): Remove redundant `;'.
17690 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17692 * regcache.c (set_register_cache): Invalidate regcaches before
17693 changing the register cache layout.
17694 (regcache_invalidate_one): Allow a NULL regcache.
17695 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17696 regcaches before changing the register cache layout or the target
17699 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17701 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17702 variable warning on Linux/x86-64.
17704 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17706 GDBserver disconnected tracing support.
17708 * linux-low.c (linux_remove_process): Delete.
17709 (add_lwp): Don't set last_resume_kind here.
17710 (linux_kill): Use `mourn'.
17711 (linux_detach): Use `thread_db_detach', and `mourn'.
17712 (linux_mourn): New.
17713 (linux_attach_lwp_1): Adjust comment.
17714 (linux_attach): last_resume_kind moved the thread_info; adjust.
17715 (status_pending_p_callback): Adjust.
17716 (linux_wait_for_event_1): Adjust.
17717 (count_events_callback, select_singlestep_lwp_callback)
17718 (select_event_lwp_callback, cancel_breakpoints_callback)
17719 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17720 (proceed_one_lwp): Adjust.
17721 (linux_async): Add debug output.
17722 (linux_thread_stopped): New.
17723 (linux_pause_all): New.
17724 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17726 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17727 (thread_db_free): Delete declaration.
17728 (thread_db_detach, thread_db_mourn): Declare.
17729 * thread-db.c (thread_db_init): Use thread_db_mourn.
17730 (thread_db_free): Delete, split in two.
17731 (disable_thread_event_reporting): New.
17732 (thread_db_detach): New.
17733 (thread_db_mourn): New.
17735 * server.h (struct thread_info) <last_resume_kind>: New field.
17736 <attached>: Add comment.
17737 <gdb_detached>: New field.
17738 (handler_func): Change return type to int.
17739 (handle_serial_event, handle_target_event): Ditto.
17740 (gdb_connected): Declare.
17742 (disconnected_tracing): Declare.
17743 (stop_tracing): Declare.
17745 * server.c (handle_query) <qSupported>: Report support for
17746 disconnected tracing.
17747 (queue_stop_reply_callback): Account for running threads.
17748 (gdb_wants_thread_stopped): New.
17749 (gdb_wants_all_threads_stopped): New.
17750 (gdb_reattached_process): New.
17751 (handle_status): Clear the `gdb_detached' flag of all processes.
17752 In all-stop, stop all threads.
17753 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17754 (process_serial_event): If the remote connection breaks, or if an
17755 exit was forced with "monitor exit", force an event loop exit.
17756 Handle disconnected tracing on detach.
17757 (handle_serial_event): Adjust.
17758 (handle_target_event): If GDB isn't connected, forward events back
17759 to the inferior, unless the last process exited, in which case,
17760 exit gdbserver. Adjust interface.
17762 * remote-utils.c (remote_open): Don't block in accept. Instead
17763 register an event loop source on the listen socket file
17764 descriptor. Refactor bits into ...
17765 (listen_desc): ... this new global.
17766 (gdb_connected): ... this new function.
17767 (enable_async_notification): ... this new function.
17768 (handle_accept_event): ... this new function.
17769 (remote_close): Clear remote_desc.
17771 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17773 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17775 (mourn_inferior): Define.
17776 (target_process_qsupported): Avoid the dangling else problem.
17777 (thread_stopped): Define.
17778 (pause_all): Define.
17779 (target_waitstatus_to_string): Declare.
17780 * target.c (target_waitstatus_to_string): New.
17782 * tracepoint.c (tracing): Make extern.
17783 (disconnected_tracing): New.
17784 (stop_tracing): Make extern. Handle tracing stops due to GDB
17786 (cmd_qtdisconnected): New.
17787 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17788 (handle_tracepoint_general_set): Handle QTDisconnected.
17790 * event-loop.c (event_handler_func): Change return type to int.
17791 (process_event): Bail out if the event handler wants the event
17793 (handle_file_event): Ditto.
17794 (start_event_loop): Bail out if the event handler wants the event
17797 * nto-low.c (nto_target_ops): Adjust.
17798 * spu-low.c (spu_wait): Don't remove the process here.
17799 (spu_target_ops): Adjust.
17800 * win32-low.c (win32_wait): Don't remove the process here.
17801 (win32_target_ops): Adjust.
17803 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17805 * regcache.c (realloc_register_cache): Invalidate inferior's
17806 regcache before recreating it.
17808 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17810 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17812 2010-04-09 Stan Shebs <stan@codesourcery.com>
17813 Pedro Alves <pedro@codesourcery.com>
17815 * server.h (LONGEST): New.
17816 (struct thread_info) <while_stepping>: New field.
17817 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17819 (initialize_tracepoint, handle_tracepoint_general_set)
17820 (handle_tracepoint_query, tracepoint_finished_step)
17821 (tracepoint_was_hit, release_while_stepping_state_list):
17822 (current_traceframe): Declare.
17823 * server.c (handle_general_set): Handle tracepoint packets.
17824 (read_memory): New.
17825 (write_memory): New.
17826 (handle_search_memory_1): Use read_memory.
17827 (handle_query): Report support for conditional tracepoints, trace
17828 state variables, and tracepoint sources. Handle tracepoint
17830 (main): Initialize the tracepoints module.
17831 (process_serial_event): Handle traceframe reads/writes.
17833 * linux-low.c (handle_tracepoints): New.
17834 (linux_wait_1): Call it.
17835 (linux_resume_one_lwp): Handle while-stepping.
17836 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17837 (linux_target_ops): Install them.
17838 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17840 * linux-x86-low.c (x86_supports_tracepoints): New.
17841 (the_low_target). Install it.
17843 * mem-break.h (delete_breakpoint): Declare.
17844 * mem-break.c (delete_breakpoint): Make external.
17846 * target.h (struct target_ops): Add `supports_tracepoints',
17847 `read_pc', and `write_pc' fields.
17848 (target_supports_tracepoints): Define.
17849 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17852 * regcache.h (struct regcache) <registers_owned>: New field.
17853 (init_register_cache, regcache_cpy): Declare.
17854 (regcache_read_pc, regcache_write_pc): Declare.
17855 (register_cache_size): Declare.
17856 (supply_regblock): Declare.
17857 * regcache.c (init_register_cache): New.
17858 (new_register_cache): Use it.
17859 (regcache_cpy): New.
17860 (register_cache_size): New.
17861 (supply_regblock): New.
17862 (regcache_read_pc, regcache_write_pc): New.
17864 * tracepoint.c: New.
17866 * Makefile.in (OBS): Add tracepoint.o.
17867 (tracepoint.o): New rule.
17869 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17871 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17873 (i386-mmx.c): Likewise.
17874 (i386-mmx-linux.o): Likewise.
17875 (i386-mmx-linux.c): Likewise.
17877 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17878 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17879 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17880 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17882 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17883 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17884 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17886 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17888 * Makefile.in (clean): Updated.
17890 (i386-avx.c): Likewise.
17891 (i386-avx-linux.o): Likewise.
17892 (i386-avx-linux.c): Likewise.
17893 (amd64-avx.o): Likewise.
17894 (amd64-avx.c): Likewise.
17895 (amd64-avx-linux.o): Likewise.
17896 (amd64-avx-linux.c): Likewise.
17898 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17899 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17900 (srv_amd64_regobj): Add amd64-avx.o.
17901 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17902 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17903 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17904 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17905 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17906 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17907 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17909 * i387-fp.c: Include "i386-xstate.h".
17911 (i387_cache_to_xsave): Likewise.
17912 (i387_xsave_to_cache): Likewise.
17913 (x86_xcr0): Likewise.
17915 * i387-fp.h (i387_cache_to_xsave): Likewise.
17916 (i387_xsave_to_cache): Likewise.
17917 (x86_xcr0): Likewise.
17919 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17920 * linux-crisv32-low.c (target_regsets): Likewise.
17921 * linux-m68k-low.c (target_regsets): Likewise.
17922 * linux-mips-low.c (target_regsets): Likewise.
17923 * linux-ppc-low.c (target_regsets): Likewise.
17924 * linux-s390-low.c (target_regsets): Likewise.
17925 * linux-sh-low.c (target_regsets): Likewise.
17926 * linux-sparc-low.c (target_regsets): Likewise.
17927 * linux-xtensa-low.c (target_regsets): Likewise.
17929 * linux-low.c: Include <sys/uio.h>.
17930 (regsets_fetch_inferior_registers): Support nt_type.
17931 (regsets_store_inferior_registers): Likewise.
17932 (linux_process_qsupported): New.
17933 (linux_target_ops): Add linux_process_qsupported.
17935 * linux-low.h (regset_info): Add nt_type.
17936 (linux_target_ops): Add process_qsupported.
17938 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17940 (init_registers_i386_avx_linux): New.
17941 (init_registers_amd64_avx_linux): Likewise.
17942 (xmltarget_i386_linux_no_xml): Likewise.
17943 (xmltarget_amd64_linux_no_xml): Likewise.
17944 (PTRACE_GETREGSET): Likewise.
17945 (PTRACE_SETREGSET): Likewise.
17946 (x86_fill_xstateregset): Likewise.
17947 (x86_store_xstateregset): Likewise.
17948 (use_xml): Likewise.
17949 (x86_linux_update_xmltarget): Likewise.
17950 (x86_linux_process_qsupported): Likewise.
17951 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17952 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17953 init_registers_i386_linux here. Call
17954 x86_linux_update_xmltarget.
17955 (the_low_target): Add x86_linux_process_qsupported.
17957 * server.c (handle_query): Call target_process_qsupported.
17959 * target.h (target_ops): Add process_qsupported.
17960 (target_process_qsupported): New.
17962 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17964 * inferiors.c (add_thread): Set last_status kind to
17965 TARGET_WAITKIND_IGNORE.
17966 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17967 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17968 (linux_wait_1): Move `thread' local definition to block that uses
17969 it. Don't NULL initialize `event_child'.
17970 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17971 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17972 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17974 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17976 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17977 an extended waitstatus, or by a watchpoint.
17978 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17979 thread was stepping or has been stopped by a watchpoint.
17981 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17983 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17984 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17985 of another, then delete the previous, and validate all
17987 (validate_inserted_breakpoint): New.
17988 (delete_disabled_breakpoints): New.
17989 (validate_breakpoints): New.
17990 (check_mem_read): Validate breakpoints before trusting their
17991 shadow. Delete disabled breakpoints.
17992 (check_mem_write): Validate breakpoints before trusting they
17993 should be inserted. Delete disabled breakpoints.
17994 * mem-break.h (validate_breakpoints):
17995 * server.c (handle_query): Validate breakpoints when we see a
17998 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18000 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18001 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18002 if we could tell there's a GDB breakpoint at stop_pc.
18003 (need_step_over_p): Don't do a step over if we find a GDB
18004 breakpoint at the resume PC.
18006 * mem-break.c (struct raw_breakpoint): New.
18007 (enum bkpt_type): New type `gdb_breakpoint'.
18008 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18009 fields. New field `raw'.
18010 (find_raw_breakpoint_at): New.
18011 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18012 breakpoint instead.
18013 (set_breakpoint_at): Adjust.
18014 (delete_raw_breakpoint): New.
18015 (release_breakpoint): New.
18016 (delete_breakpoint): Rename to...
18017 (delete_breakpoint_1): ... this. Add proc parameter. Use
18018 release_breakpoint. Return ENOENT.
18019 (delete_breakpoint): Reimplement.
18020 (find_breakpoint_at): Delete.
18021 (find_gdb_breakpoint_at): New.
18022 (delete_breakpoint_at): Delete.
18023 (set_gdb_breakpoint_at): New.
18024 (delete_gdb_breakpoint_at): New.
18025 (gdb_breakpoint_here): New.
18026 (set_reinsert_breakpoint): Use release_breakpoint.
18027 (uninsert_breakpoint): Rename to ...
18028 (uninsert_raw_breakpoint): ... this.
18029 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18030 (reinsert_raw_breakpoint): Change parameter type to
18032 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18034 (check_breakpoints): Adjust. Use release_breakpoint.
18035 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18036 (breakpoint_inserted_here): Ditto.
18037 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18038 Don't trust the breakpoint's shadow if it is not inserted.
18039 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18040 (delete_all_breakpoints): Adjust.
18041 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18042 use delete_breakpoint_1.
18044 * mem-break.h (breakpoints_supported): Delete declaration.
18045 (set_gdb_breakpoint_at): Declare.
18046 (gdb_breakpoint_here): Declare.
18047 (delete_breakpoint_at): Delete.
18048 (delete_gdb_breakpoint_at): Declare.
18050 * server.h (struct raw_breakpoint): Forward declare.
18051 (struct process_info): New field `raw_breakpoints'.
18053 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18056 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18058 * linux-low.c (status_pending_p_callback): Fix comment.
18059 (linux_wait_for_event_1): Move most of the internal breakpoint
18060 handling from here...
18061 (linux_wait_1): ... to here.
18062 (count_events_callback): New.
18063 (select_singlestep_lwp_callback): New.
18064 (select_event_lwp_callback): New.
18065 (cancel_breakpoints_callback): New.
18066 (select_event_lwp): New.
18067 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18068 priority to all LWPs that have had events that should be reported
18069 to the client. Cancel breakpoints when about to reporting the
18070 event to the client, not while stopping lwps. No longer cancel
18071 finished single-steps here.
18072 (cancel_finished_single_step): Delete.
18073 (cancel_finished_single_steps): Delete.
18075 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18077 * mem-break.c (enum bkpt_type): New.
18078 (struct breakpoint): New field `type'.
18079 (set_breakpoint_at): Change return type to struct breakpoint
18080 pointer. Set type to `other_breakpoint' by default.
18081 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18082 in the breakpoint list.
18083 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18084 (reinsert_breakpoint): Rename to ...
18085 (reinsert_raw_breakpoint): ... this.
18086 (reinsert_breakpoints_at): Adjust.
18087 * mem-break.h (struct breakpoint): Declare.
18088 (set_breakpoint_at): Change return type to struct breakpoint
18091 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18093 * server.c (handle_query): Assign, not compare.
18095 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18097 Teach linux gdbserver to step-over-breakpoints.
18099 * linux-low.c (can_hardware_single_step): New.
18100 (supports_breakpoints): New.
18101 (handle_extended_wait): If stopping threads, read the stop pc of
18102 the new cloned LWP.
18104 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18105 low target doesn't support retrieving the PC.
18106 (add_lwp): Set last_resume_kind to resume_continue.
18107 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18108 (linux_attach): Don't clear stop_expected. Set the lwp's
18109 last_resume_kind to resume_stop.
18110 (linux_detach_one_lwp): Don't check for removed breakpoints.
18111 (check_removed_breakpoint): Delete.
18112 (status_pending_p): Rename to ...
18113 (status_pending_p_callback): ... this. Don't check for removed
18114 breakpoints. Don't consider threads that are stopped from GDB's
18116 (linux_wait_for_lwp): Always read the stop_pc here.
18117 (cancel_breakpoint): New.
18118 (step_over_bkpt): New global.
18119 (linux_wait_for_event_1): Implement stepping over breakpoints.
18120 (gdb_wants_lwp_stopped): New.
18121 (gdb_wants_all_stopped): New.
18122 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18123 single-step traps here. Store the thread's last reported target
18125 (send_sigstop): Don't clear stop_expected. Always set it,
18127 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18128 (cancel_finished_single_step): New.
18129 (cancel_finished_single_steps): New.
18130 (wait_for_sigstop): Don't cancel finished single-step traps here.
18131 (linux_resume_one_lwp): Don't check for removed breakpoints.
18132 Don't set `step' on non-hardware step archs.
18133 (linux_set_resume_request): Ignore resume_stop requests if already
18134 stopping or stopped. Set the lwp's last_resume_kind.
18135 (resume_status_pending_p): Don't check for removed breakpoints.
18136 (need_step_over_p): New.
18137 (start_step_over): New.
18138 (finish_step_over): New.
18139 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18140 requests. Clear the thread's last reported target waitstatus.
18141 Don't use the `suspended' flag. Don't consider pending breakpoints.
18142 (linux_resume): Start a step-over if necessary.
18143 (proceed_one_lwp): New.
18144 (proceed_all_lwps): New.
18145 (unstop_all_lwps): New.
18146 * linux-low.h (struct lwp_info): Rewrite comment for the
18147 `suspended' flag. Add the `stop_pc' field. Delete the
18148 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18149 Add `'last_resume_kind' and `need_step_over' fields.
18150 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18151 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18152 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18153 (set_raw_breakpoint_at): New.
18154 (set_breakpoint_at): Rewrite to use it.
18155 (reinsert_breakpoint_handler): Delete.
18156 (set_reinsert_breakpoint): New.
18157 (reinsert_breakpoint_by_bp): Delete.
18158 (delete_reinsert_breakpoints): New.
18159 (uninsert_breakpoint): Rewrite.
18160 (uninsert_breakpoints_at): New.
18161 (reinsert_breakpoint): Rewrite.
18162 (reinsert_breakpoints_at): New.
18163 (check_breakpoints): Rewrite.
18164 (breakpoint_here): New.
18165 (breakpoint_inserted_here): New.
18166 (check_mem_read): Adjust.
18167 * mem-break.h (breakpoints_supported, breakpoint_here)
18168 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18169 (reinsert_breakpoint_by_bp): Delete declaration.
18170 (delete_reinsert_breakpoints): Declare.
18171 (reinsert_breakpoint): Delete declaration.
18172 (reinsert_breakpoints_at): Declare.
18173 (uninsert_breakpoint): Delete declaration.
18174 (uninsert_breakpoints_at): Declare.
18175 (check_breakpoints): Adjust prototype.
18176 * server.h: Adjust include order.
18177 (struct thread_info): Declare here. Add a `last_status' field.
18179 2010-03-23 Michael Snyder <msnyder@vmware.com>
18181 * server.c (crc32): New function.
18182 (handle_query): Add handling for 'qCRC:' request.
18184 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18186 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18187 lwp had been stopped by a watchpoint.
18189 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18191 * server.h (internal_error): Declare.
18192 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18193 * utils.c (internal_error): New function.
18195 2010-03-15 Andreas Schwab <schwab@redhat.com>
18197 * configure.srv: Fix typo setting srv_regobj.
18199 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18201 * linux-low.c (fetch_register): Avoid passing a non string literal
18203 (usr_store_inferior_registers): Ditto.
18205 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18207 * linux-low.c (linux_write_memory): Bail out early if peeking
18210 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18212 * linux-low.h (struct lwp_info): New fields
18213 `stopped_by_watchpoint' and `stopped_data_address'.
18214 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18215 here, and cache them in the lwp object.
18216 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18218 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18220 (linux_stopped_by_watchpoint): Rewrite.
18221 (linux_stopped_data_address): Rewrite.
18223 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18225 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18226 switching the current inferior, not before.
18228 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18230 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18231 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18232 i386-linux.c and amd64-linux.c.
18233 (reg-i386.o): Removed.
18234 (reg-i386.c): Likewise.
18235 (reg-i386-linux.o): Likewise.
18236 (reg-i386-linux.c): Likewise.
18237 (reg-x86-64.o): Likewise.
18238 (reg-x86-64.c): Likewise.
18239 (reg-x86-64-linux.o): Likewise.
18240 (reg-x86-64-linux.c): Likewise.
18242 (i386.c): Likewise.
18243 (i386-linux.o): Likewise.
18244 (i386-linux.c): Likewise.
18245 (amd64.o): Likewise.
18246 (amd64.c): Likewise.
18247 (amd64-linux.o): Likewise.
18248 (amd64-linux.c): Likewise.
18250 * configure.srv (srv_i386_regobj): New.
18251 (srv_i386_linux_regobj): Likewise.
18252 (srv_amd64_regobj): Likewise.
18253 (srv_amd64_linux_regobj): Likewise.
18254 (srv_i386_32bit_xmlfiles): Likewise.
18255 (srv_i386_64bit_xmlfiles): Likewise.
18256 (srv_i386_xmlfiles): Likewise.
18257 (srv_amd64_xmlfiles): Likewise.
18258 (srv_i386_linux_xmlfiles): Likewise.
18259 (srv_amd64_linux_xmlfiles): Likewise.
18260 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18261 srv_xmlfiles to $srv_i386_xmlfiles.
18262 (i[34567]86-*-mingw32ce*): Likewise.
18263 (i[34567]86-*-mingw*): Likewise.
18264 (i[34567]86-*-nto*): Likewise.
18265 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18266 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18267 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18268 (x86_64-*-linux*): Likewise.
18270 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18271 (init_registers_amd64_linux): New.
18272 (x86_arch_setup): Replace init_registers_x86_64_linux with
18273 init_registers_amd64_linux.
18275 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18277 * configure.ac: Check for libdl. If it is not available link against
18278 static libthread_db.
18279 * configure: Regenerate.
18281 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18285 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18286 handing a read watchpoint.
18287 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18289 2010-02-12 Doug Evans <dje@google.com>
18291 * linux-low.c (linux_supports_tracefork_flag): Document.
18292 (linux_look_up_symbols): Add comment.
18294 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18296 * regcache.c (supply_register): Clear regcache if buf is NULL.
18298 2010-02-02 Nicolas Roche <roche@sourceware.org>
18299 Joel Brobecker <brobecker@adacore.com>
18301 * inferiors.c (find_inferior): Add function documentation.
18302 (unloaded_dll): Handle the case where the unloaded dll has not
18303 been previously registered in the dll list.
18305 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18307 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18308 (thumb2_breakpoint): New.
18309 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18311 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18313 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18314 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18317 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18319 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18321 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18323 * linux-s390-low.c (s390_collect_ptrace_register)
18324 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18326 2010-01-21 Doug Evans <dje@google.com>
18328 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18329 (PTRACE_ARG4_TYPE): New macro.
18330 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18331 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18332 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18333 (usr_store_inferior_registers): Ditto.
18334 (linux_read_memory, linux_write_memory): Ditto.
18335 (linux_test_for_tracefork): Ditto.
18337 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18338 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18340 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18342 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18345 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18347 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18348 prototype to take a regcache. Adjust.
18350 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18352 * regcache.h (struct thread_info): Forward declare.
18353 (struct regcache): New.
18354 (new_register_cache): Adjust prototype.
18355 (get_thread_regcache): Declare.
18356 (free_register_cache): Adjust prototype.
18357 (registers_to_string, registers_from_string): Ditto.
18358 (supply_register, supply_register_by_name, collect_register)
18359 (collect_register_as_string, collect_register_by_name): Ditto.
18360 * regcache.c (struct inferior_regcache_data): Delete.
18361 (get_regcache): Rename to ...
18362 (get_thread_regcache): ... this. Adjust. Switch inferior before
18363 fetching registers.
18364 (regcache_invalidate_one): Adjust.
18365 (regcache_invalidate): Fix prototype.
18366 (new_register_cache): Return the new register cache.
18367 (free_register_cache): Change prototype.
18368 (realloc_register_cache): Adjust.
18369 (registers_to_string): Change prototype to take a regcache. Adjust.
18370 (registers_from_string): Ditto.
18371 (register_data): Ditto.
18372 (supply_register): Ditto.
18373 (supply_register_by_name): Ditto.
18374 (collect_register): Ditto.
18375 (collect_register_as_string): Ditto.
18376 (collect_register_by_name): Ditto.
18377 * server.c (process_serial_event): Adjust.
18378 * linux-low.h (regset_fill_func, regset_store_func): Change
18380 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18382 * linux-low.c (get_stop_pc): Adjust.
18383 (check_removed_breakpoint): Adjust.
18384 (linux_wait_for_event): Adjust.
18385 (linux_resume_one_lwp): Adjust.
18386 (fetch_register): Add regcache parameter. Adjust.
18387 (usr_store_inferior_registers): Ditto.
18388 (regsets_fetch_inferior_registers): Ditto.
18389 (regsets_store_inferior_registers): Ditto.
18390 (linux_fetch_registers, linux_store_registers): Ditto.
18391 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18393 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18395 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18396 prototype to take a regcache.
18397 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18398 * remote-utils.c (convert_ascii_to_int, outreg)
18399 (prepare_resume_reply): Change prototype to take a regcache.
18401 * target.h (struct target_ops) <fetch_registers, store_registers>:
18402 Change prototype to take a regcache.
18403 (fetch_inferior_registers, store_inferior_registers): Change
18404 prototype to take a regcache. Adjust.
18405 * proc-service.c (ps_lgetregs): Adjust.
18406 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18407 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18408 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18409 take a regcache. Adjust.
18410 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18411 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18412 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18413 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18414 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18415 (cris_cannot_fetch_register):
18416 (cris_breakpoint_at): Change prototype to take a regcache.
18418 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18419 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18420 to take a regcache. Adjust.
18421 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18423 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18424 take a regcache. Adjust.
18425 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18426 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18427 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18428 * linux-mips-low.c (mips_get_pc):
18429 (mips_set_pc): Change prototype to take a regcache. Adjust.
18430 (mips_reinsert_addr): Adjust.
18431 (mips_collect_register): Change prototype to take a regcache.
18433 (mips_supply_register):
18434 (mips_collect_register_32bit, mips_supply_register_32bit)
18435 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18436 (mips_store_fpregset): Ditto.
18437 * linux-ppc-low.c (ppc_supply_ptrace_register)
18438 (ppc_supply_ptrace_register): Ditto.
18439 (parse_spufs_run): Adjust.
18440 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18441 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18442 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18443 take a regcache. Adjust.
18444 * linux-s390-low.c (s390_collect_ptrace_register)
18445 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18446 (s390_set_pc): Change prototype to take a regcache. Adjust.
18447 (s390_arch_setup): Adjust.
18448 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18449 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18450 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18451 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18452 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18454 (sparc_breakpoint_at): Adjust.
18455 * linux-xtensa-low.c (xtensa_fill_gregset):
18456 (xtensa_store_gregset):
18457 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18458 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18459 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18460 prototype to take a regcache. Adjust.
18461 * win32-arm-low.c (arm_fetch_inferior_register)
18462 (arm_store_inferior_register): Change prototype to take a
18464 * win32-i386-low.c (i386_fetch_inferior_register)
18465 (i386_store_inferior_register): Change prototype to take a
18467 * win32-low.c (child_fetch_inferior_registers)
18468 (child_store_inferior_registers): Change prototype to take a
18470 (win32_wait): Adjust.
18471 (win32_fetch_inferior_registers): Change prototype to take a
18473 (win32_store_inferior_registers): Adjust.
18474 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18475 store_inferior_register>: Change prototype to take a regcache.
18477 2010-01-20 Doug Evans <dje@google.com>
18479 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18481 (linux_wait_for_event1, linux_init_signals): Ditto.
18482 (W_STOPCODE): Provide definition if missing.
18484 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18486 * linux-low.c (linux_core_of_thread): New.
18487 (compare_ints, show_process, list_threads): New.
18488 (linux_qxfer_osdata): Report threads and cores.
18489 (linux_target_op): Register linux_core_of_thread.
18490 * remote-utils.c (prepare_resume_reply): Report the core.
18491 (buffer_xml_printf): Support %d specifier.
18492 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18494 (handle_query): Handle qXfer:threads. Announce availability
18496 * target.h (struct target_ops): New field core_of_thread.
18498 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18500 * Makefile.in (clean): Remove new generated files.
18501 (reg-s390.o, reg-s390.c): Remove rules.
18502 (reg-s390x.o, reg-s390x.c): Likewise.
18503 (s390-linux32.o, s390-linux32.c): Add rules.
18504 (s390-linux64.o, s390-linux64.c): Likewise.
18505 (s390x-linux64.o, s390x-linux64.c): Likewise.
18506 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18507 * linux-s390-low.c: Include <elf.h>.
18508 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18509 (init_registers_s390): Remove prototype.
18510 (init_registers_s390x): Likewise.
18511 (init_registers_s390_linux32): Add prototype.
18512 (init_registers_s390_linux64): Likewise.
18513 (init_registers_s390x_linux64): Likewise.
18514 (s390_num_regs_3264): New define.
18515 (s390_regmap_3264): New global variable.
18516 (s390_cannot_fetch_register): Remove obsolete check.
18517 (s390_cannot_store_register): Likewise.
18518 (s390_collect_ptrace_register): Handle upper/lower register halves.
18519 (s390_supply_ptrace_register): Likewise.
18520 (s390_fill_gregset): Update to register number changes.
18521 (s390_get_hwcap): New routine.
18522 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18523 Install appropriate regmap and register set.
18525 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18527 * server.c (gdbserver_version): Update copyright year to 2010.
18528 * gdbreplay.c (gdbreplay_version): Likewise.
18530 2009-12-28 Doug Evans <dje@google.com>
18532 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18533 elf/external.h. Include <elf.h> instead but only if necessary.
18535 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18537 * linux-low.c (linux_remove_process): Remove `detaching'
18538 parameter. Don't release/detach from thread_db here.
18539 (linux_kill): Release/detach from thread_db here, ...
18540 (linux_detach): ... and here, before actually detaching.
18541 (linux_wait_1): ... and here, when a process exits.
18542 * thread-db.c (any_thread_of): New.
18543 (thread_db_free): Switch the current inferior to a thread of the
18546 2009-12-21 Doug Evans <dje@google.com>
18548 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18550 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18551 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18552 warning ifndef __NR_tkill. Move setting of errno there too.
18553 Delete unnecessary resetting of errno after syscall.
18554 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18556 * configure.ac: Check for dladdr.
18557 * config.in: Regenerate.
18558 * configure: Regenerate.
18559 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18560 (try_thread_db_load): Update.
18562 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18564 2009-12-18 Doug Evans <dje@google.com>
18566 * event-loop.c: Include unistd.h if it exists.
18568 * linux-low.c (my_waitpid): Move definition away from being in
18569 between linux_tracefork_child/linux_test_for_tracefork.
18571 * gdb_proc_service.h (psaddr_t): Fix type.
18572 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18573 signature to match glibc.
18575 2009-12-16 Doug Evans <dje@google.com>
18577 * linux-low.c (linux_read_memory): Fix argument to read.
18579 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18581 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18582 events, don't leave current_inferior pointing at null.
18584 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18586 * win32-low.c (LOG): Delete.
18587 (OUTMSG): Output to stderr.
18588 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18589 on compile time LOG macro.
18590 (win32_wait): Fix debug output.
18592 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18594 * win32-low.c (win32_add_one_solib): If the dll name is
18595 "ntdll.dll", prepend the system directory to the dll path.
18597 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18599 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18601 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18602 Vladimir Prus <vladimir@codesourcery.com>
18604 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18605 * configure.ac: Check for __mcoldfire__ and set
18606 gdb_cv_m68k_is_coldfire.
18607 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18608 reg-cf.o and reg-m68k.o.
18609 * configure: Regenerated.
18611 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18613 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18614 Pass it to thread_db_free.
18615 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18616 proper `detaching' argument to linux_remove_process.
18617 * linux-low.h (thread_db_free): Add `detaching' parameter.
18618 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18620 (thread_db_free): Add `detaching' parameter. Only
18621 call td_ta_clear_event if detaching from process.
18623 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18625 * thread-db.c (thread_db_free): Fix typo.
18627 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18630 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18632 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18634 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18635 with an i686 compiler.
18636 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18638 * configure: Rebuilt.
18640 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18644 * server.c (handle_search_memory_1): Correct read_addr initialization
18645 in loop for searching subsequent chunks.
18647 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18649 * configure.ac: New --with-libthread-db option.
18650 * thread-db.c: Allow direct dependence on libthread_db.
18651 (thread_db_free): Adjust.
18652 * config.in: Regenerate.
18653 * configure: Likewise.
18655 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18658 * thread-db.c (attach_thread): New function.
18659 (maybe_attach_thread): Return success/failure.
18660 (find_new_threads_callback): Adjust.
18661 (thread_db_find_new_threads): Loop until no new threads.
18663 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18665 * proc-service.c (ps_lgetregs): Formatting.
18667 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18669 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18670 * configure.ac: Adjust.
18671 * linux-low.h (struct process_info_private): Move members to struct
18673 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18674 * linux-low.c (linux_remove_process): Adjust.
18675 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18676 * server.c (handle_query): Move code ...
18677 (handle_monitor_command): ... here. New function.
18678 * target.h (struct target_ops): New member.
18679 * thread-db.c (struct thread_db): New.
18680 (libthread_db_search_path): New variable.
18681 (thread_db_create_event, thread_db_enable_reporting)
18682 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18683 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18684 (try_thread_db_load_1, dladdr_to_soname): New functions.
18685 (try_thread_db_load, thread_db_load_search): New functions.
18686 (thread_db_init): Search for libthread_db.
18687 (thread_db_free): New function.
18688 (thread_db_handle_monitor_command): Likewise.
18689 * config.in: Regenerate.
18690 * configure: Regenerate.
18692 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18694 * spu-low.c (spu_kill): Wait for inferior to terminate.
18695 Call clear_inferiors.
18696 (spu_detach): Call clear_inferiors.
18698 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18700 * aclocal.m4: Regenerate.
18701 * config.in: Likewise.
18702 * configure: Likewise.
18704 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18706 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18707 (parse_spufs_run): New function.
18708 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18709 (ppc_breakpoint_at): Handle SPU breakpoints.
18711 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18713 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18714 (SPUFS_MAGIC): Define.
18715 (spu_enumerate_spu_ids): New function.
18716 (linux_qxfer_spu): New function.
18717 (linux_target_ops): Install linux_qxfer_spu.
18719 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18721 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18722 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18723 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18724 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18725 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18726 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18727 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18728 (init_registers_powerpc_cell32l): Add prototype.
18729 (init_registers_powerpc_cell64l): Likewise.
18730 (ppc_arch_setup): Detect Cell/B.E. architecture.
18732 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18734 * Makefile.in (datarootdir): New variable.
18736 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18738 * linux-low.c (linux_write_memory): Update debugging output.
18739 * Makefile.in (clean): Add new descriptions.
18740 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18741 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18742 * configure.srv: Add new files for arm*-*-linux*.
18743 * linux-arm-low.c: Add new declarations.
18744 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18745 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18746 (HWCAP_VFPv3D16): New.
18747 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18748 instead of __IWMMXT__.
18749 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18750 (arm_arch_setup): New.
18751 (target_regsets): Remove #ifdef. Add VFP regset.
18752 (the_low_target): Use arm_arch_setup.
18754 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18756 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18757 the main thread again.
18759 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18761 Adding Neutrino gdbserver.
18762 * configure: Regenerated.
18763 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18764 * configure.srv (i[34567]86-*-nto*): New target.
18765 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18766 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18767 (nto_comctrl) [__QNX__]: New function.
18768 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18770 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18772 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18775 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18776 Pedro Alves <pedro@codesourcery.com>
18778 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18779 don't support CONTEXT_EXTENDED_REGISTERS.
18780 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18781 (the_low_target): Install them.
18782 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18783 failing with ERROR_PIPE_NOT_CONNECTED.
18785 2009-06-30 Doug Evans <dje@google.com>
18786 Pierre Muller <muller@ics.u-strasbg.fr>
18788 Add h/w watchpoint support to x86-linux, win32-i386.
18789 * Makefile.in (SFILES): Add i386-low.c
18790 (i386_low_h): Define.
18791 (i386-low.o): Add dependencies.
18792 (linux-x86-low.o): Add i386-low.h dependency.
18793 (win32-i386-low.o): Ditto.
18794 * i386-low.c: New file.
18795 * i386-low.h: New file.
18796 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18797 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18798 * linux-low.c (linux_add_process): Initialize arch_private.
18799 (linux_remove_process): Free arch_private.
18800 (add_lwp): Initialize arch_private.
18801 (delete_lwp): Free arch_private.
18802 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18804 * linux-low.h (process_info_private): New member arch_private.
18805 (lwp_info): New member arch_private.
18806 (linux_target_ops): New members new_process, new_thread,
18808 (ptid_of): New macro.
18809 * linux-x86-low.c: Include stddef.h, i386-low.h.
18810 (arch_process_info): New struct.
18811 (arch_lwp_info): New struct.
18812 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18813 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18814 (i386_dr_low_get_status): New function.
18815 (x86_insert_point, x86_remove_point): New functions.
18816 (x86_stopped_by_watchpoint): New function.
18817 (x86_stopped_data_address): New function.
18818 (x86_linux_new_process, x86_linux_new_thread): New functions.
18819 (x86_linux_prepare_to_resume): New function.
18820 (the_low_target): Add entries for insert_point, remove_point,
18821 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18823 * server.c (debug_hw_points): New global.
18824 (monitor_show_help): Document set debug-hw-points.
18825 (handle_query): Process "set debug-hw-points".
18826 * server.h (debug_hw_points): Declare.
18827 (paddress): Declare.
18828 * utils.c (NUMCELLS, CELLSIZE): New macros.
18829 (get_sell, xsnprintf, paddress): New functions.
18830 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18831 remove_point, stopped_by_watchpoint, stopped_data_address.
18832 * win32-i386-low.c: Include i386-low.h.
18833 (debug_reg_state): Replaces dr.
18834 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18835 (i386_dr_low_get_status): New function.
18836 (i386_insert_point, i386_remove_point): New functions.
18837 (i386_stopped_by_watchpoint): New function.
18838 (i386_stopped_data_address): New function.
18839 (i386_initial_stuff): Update.
18840 (get_thread_context,set_thread_context,i386_thread_added): Update.
18841 (the_low_target): Add entries for insert_point,
18842 remove_point, stopped_by_watchpoint, stopped_data_address.
18843 * win32-low.c (win32_insert_watchpoint): New function.
18844 (win32_remove_watchpoint): New function.
18845 (win32_stopped_by_watchpoint): New function.
18846 (win32_stopped_data_address): New function.
18847 (win32_target_ops): Add entries for insert_watchpoint,
18848 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18849 * win32-low.h (win32_target_ops): New members insert_point,
18850 remove_point, stopped_by_watchpoint, stopped_data_address.
18852 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18854 * server.c (process_serial_event): Re-return unsupported, not
18855 error, if the type isn't recognized. Re-allow supporting only
18856 insert or remove packets. Also call require_running for
18857 breakpoints. Add missing break statement to default case. Tidy.
18858 * target.h (struct target_ops): Rename insert_watchpoint to
18859 insert_point, and remove_watchpoint to remove_point.
18861 * linux-low.h (struct linux_target_ops): Likewise.
18862 * linux-low.c (linux_insert_watchpoint): Rename to ...
18863 (linux_insert_point): ... this. Adjust.
18864 (linux_remove_watchpoint): Rename to ...
18865 (linux_remove_point): ... this. Adjust.
18866 (linux_target_ops): Adjust.
18867 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18868 (cris_insert_point): ... this.
18869 (cris_remove_watchpoint): Rename to ...
18870 (cris_remove_point): ... this.
18871 (the_low_target): Adjust.
18873 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18875 * server.c (handle_v_kill): Pass signal_pid to
18876 kill_inferior if multi_process is zero.
18878 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18880 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18881 * target.h (target_ops): Comment for *_watchpoint to make it clear
18882 the functions can get types '0' and '1'.
18884 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18886 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18887 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18888 * regcache.c (get_regcache): Likewise.
18889 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18890 * win32-low.c (child_fetch_inferior_registers): Remove check for
18893 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18894 Pedro Alves <pedro@codesourcery.com>
18896 * target.h (struct target_ops) <supports_multi_process>: New
18898 (target_supports_multi_process): New.
18899 * server.c (handle_query): Even if GDB reports support, only
18900 enable multi-process if the target also supports it. Report
18901 multi-process support only if the target backend supports it.
18902 * linux-low.c (linux_supports_multi_process): New function.
18903 (linux_target_ops): Install it as target_supports_multi_process
18906 2009-05-24 Doug Evans <dje@google.com>
18908 Global renaming of find_thread_pid to find_thread_ptid.
18909 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18910 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18911 All callers updated.
18913 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18914 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18917 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18918 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18919 (linux_resume_one_lwp): Ditto.
18921 2009-05-23 Doug Evans <dje@google.com>
18923 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18924 from struct inferior_list_entry * to struct lwp_info *.
18925 All callers updated.
18927 2009-05-13 Doug Evans <dje@google.com>
18929 * linux-x86-low.c: Don't include assert.h.
18930 (x86_siginfo_fixup): Use fatal, not assert.
18931 (x86_arch_setup): Fix comment.
18933 2009-05-12 Doug Evans <dje@google.com>
18935 Biarch support for i386/amd64 gdbserver.
18936 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18937 Add linux-x86-low.c.
18938 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18939 (linux-x86-low.o): Add.
18940 * linux-x86-64-low.c: Delete.
18941 * linux-i386-low.c: Delete.
18942 * linux-x86-low.c: New file.
18943 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18945 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18947 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18948 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18949 (linux_child_pid_to_exec_file): New function.
18950 (elf_64_header_p, elf_64_file_p): New functions.
18951 (siginfo_fixup): New function.
18952 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18953 give target a chance to convert layout.
18954 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18955 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18957 2009-05-07 Doug Evans <dje@google.com>
18959 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18960 (regsets_store_inferior_registers): Ditto.
18962 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18966 * linux-low.c (must_set_ptrace_flags): Delete.
18967 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18969 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18970 `lwp->must_set_ptrace_flags' instead.
18971 (linux_wait_for_event_1): Set ptrace options here.
18972 (linux_wait_1): ... not here.
18974 2009-04-30 Doug Evans <dje@google.com>
18976 * inferiors.c (started_inferior_callback): New function.
18977 (attached_inferior_callback): New function.
18978 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18979 * server.c (print_started_pid, print_attached_pid): New functions.
18980 (detach_or_kill_for_exit): New function.
18981 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18982 * server.h (have_started_inferiors_p): Declare.
18983 (have_attached_inferiors_p): Declare.
18985 * inferiors.c (remove_process): Fix memory leak, free process.
18986 * linux-low.c (linux_remove_process): New function.
18987 (linux_kill): Call it instead of remove_process.
18988 (linux_detach, linux_wait_1): Ditto.
18990 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18992 * configure.srv: Add x86 Windows CE target.
18994 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18996 * inferiors.c (get_thread_process): Make global.
18997 * server.h (get_thread_process): Add prototype.
18998 * thread-db.c (find_one_thread): Use get_thread_process
18999 instead of current_process.
19000 (thread_db_get_tls_address): Do not crash if called when
19001 thread layer is not yet initialized.
19003 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19005 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19006 * spu-low.c (current_tid): Rename to ...
19007 (current_ptid): ... this.
19008 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19009 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19010 ptid_get_lwp (current_ptid) instead of current_tid.
19011 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19012 instead of current_tid. Use find_process_pid to verify pid
19013 argument is valid. Pass proper argument to remove_process.
19014 (spu_thread_alive): Compare current_ptid instead of current_tid.
19015 (spu_resume): Likewise.
19017 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19019 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19022 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19024 Implement the multiprocess extensions, and add linux multiprocess
19027 * server.h (ULONGEST): Declare.
19028 (struct ptid, ptid_t): New.
19029 (minus_one_ptid, null_ptid): Declare.
19030 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19031 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19032 (struct inferior_list_entry): Change `id' type from unsigned from
19034 (struct sym_cache, struct breakpoint, struct
19035 process_info_private): Forward declare.
19036 (struct process_info): Declare.
19037 (current_process): Declare.
19038 (all_processes): Declare.
19039 (initialize_inferiors): Declare.
19040 (add_thread): Adjust to use ptid_t.
19041 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19042 (add_process, remove_process, find_thread_pid): Declare.
19043 (find_inferior_id): Adjust to use ptid_t.
19044 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19045 (multi_process): Declare.
19046 (push_event): Adjust to use ptid_t.
19047 (read_ptid, write_ptid): Declare.
19048 (prepare_resume_reply): Adjust to use ptid_t.
19049 (clear_symbol_cache): Declare.
19050 * inferiors.c (all_processes): New.
19051 (null_ptid, minus_one_ptid): New.
19052 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19053 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19054 (add_thread): Change unsigned long to ptid. Remove gdb_id
19056 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19057 (gdb_id_to_thread): Rename to ...
19058 (find_thread_pid): ... this. Change unsigned long to ptid.
19059 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19060 (loaded_dll, pull_pid_from_list): Adjust.
19061 (add_process, remove_process, find_process_pid)
19062 (get_thread_process, current_process, initialize_inferiors): New.
19063 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19064 (struct target_waitstatus) <related_pid>: Ditto.
19065 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19066 return type to int.
19067 (struct target_ops) <join>: Add `pid' argument.
19068 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19069 (struct target_ops) <wait>: Add `ptid' field. Change return type
19071 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19072 (mywait): Add `ptid' argument. Change return type to ptid_t.
19073 (target_pid_to_str): Declare.
19074 * target.c (set_desired_inferior): Adjust to use ptids.
19075 (mywait): Add new `ptid' argument. Adjust.
19076 (target_pid_to_str): New.
19077 * mem-break.h (free_all_breakpoints): Declare.
19078 * mem-break.c (breakpoints): Delelete.
19079 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19080 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19081 to use per-process breakpoint list.
19082 (free_all_breakpoints): New.
19083 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19084 (symbol_cache, all_symbols_looked_up): Delete.
19086 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19088 (prepare_resume_reply): Change ptid argument's type from unsigned
19089 long to ptid_t. Adjust. Implement W;process and X;process.
19090 (free_sym_cache, clear_symbol_cache): New.
19091 (look_up_one_symbol): Adjust to per-process symbol cache. *
19092 * server.c (cont_thread, general_thread, step_thread): Change type
19094 (attached): Delete.
19095 (multi_process): New.
19096 (last_ptid): Change type to ptid_t.
19097 (struct vstop_notif) <ptid>: Change type to ptid_t.
19098 (queue_stop_reply, push_event): Change `ptid' argument's type to
19100 (discard_queued_stop_replies): Add `pid' argument.
19101 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19102 changes. Don't reference the `attached' global.
19103 (attach_inferior): Adjust to mywait interface changes.
19104 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19105 features. Handle and report "multiprocess+". Handle
19107 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19109 (handle_v_kill): New.
19110 (handle_v_stopped): Adjust to use target_pid_to_str.
19111 (handle_v_requests): Allow multiple attaches and runs when
19112 multiprocess extensions are in effect. Handle "vKill".
19113 (myresume): Adjust to use ptids.
19114 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19115 (handle_status): Adjust to discard_queued_stop_replies interface
19117 (first_thread_of, kill_inferior_callback)
19118 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19119 (main): Call initialize_inferiors. Adjust to use ptids, killing
19120 and detaching from all inferiors. Handle multiprocess packet
19122 * linux-low.h: Include gdb_proc_service.h.
19123 (struct process_info_private): New.
19124 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19125 <lwpid_of>: Use ptid_get_lwp.
19126 (get_lwp_thread): Adjust.
19127 (struct lwp_info): Add `dead' member.
19128 (find_lwp_pid): Declare.
19129 * linux-low.c (thread_db_active): Delete.
19130 (new_inferior): Adjust comment.
19131 (inferior_pid): Delete.
19132 (linux_add_process): New.
19133 (handle_extended_wait): Adjust.
19134 (add_lwp): Change unsigned long to ptid.
19135 (linux_create_inferior): Add process to processes table. Adjust
19136 to use ptids. Don't set new_inferior here.
19137 (linux_attach_lwp): Rename to ...
19138 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19139 it. Adjust to use ptids.
19140 (linux_attach_lwp): New.
19141 (linux_attach): Add process to processes table. Don't set
19143 (struct counter): New.
19144 (second_thread_of_pid_p, last_thread_of_process_p): New.
19145 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19146 multiple processes.
19147 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19148 processes. Remove process from process table.
19149 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19150 to multiple processes.
19151 (any_thread_of): New.
19152 (linux_detach): Add `pid' argument, and handle it. Remove process
19153 from processes table.
19154 (linux_join): Add `pid' argument. Handle it.
19155 (linux_thread_alive): Change unsighed long argument to ptid_t.
19156 Consider dead lwps as not being alive.
19157 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19158 threads we're not interested in.
19159 (same_lwp, find_lwp_pid): New.
19160 (linux_wait_for_lwp): Change `pid' argument's type from int to
19162 (linux_wait_for_event): Rename to ...
19163 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19164 from int to ptid_t. Adjust.
19165 (linux_wait_for_event): New.
19166 (linux_wait_1): Add `ptid' argument. Change return type to
19167 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19168 that exit from the process table.
19169 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19171 (mark_lwp_dead): New.
19172 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19173 stopping all threads, mark its main lwp as dead.
19174 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19176 (fetch_register, usr_store_inferior_registers)
19177 (regsets_fetch_inferior_registers)
19178 (regsets_store_inferior_registers, linux_read_memory)
19179 (linux_write_memory): Inline `inferior_pid'.
19180 (linux_look_up_symbols): Adjust to use per-process
19181 `thread_db_active'.
19182 (linux_request_interrupt): Adjust to use ptids.
19183 (linux_read_auxv): Inline `inferior_pid'.
19184 (initialize_low): Don't reference thread_db_active.
19185 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19186 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19187 (ps_getpid): Return the pid of the current inferior.
19188 * thread-db.c (proc_handle, thread_agent): Delete.
19189 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19191 (find_one_thread): Change argument type to ptid_t. Adjust to
19193 (maybe_attach_thread): Adjust to per-process data and ptids.
19194 (thread_db_find_new_threads): Ditto.
19195 (thread_db_init): Ditto.
19196 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19197 processes table. Adjust to use ptids.
19198 (spu_kill, spu_detach): Adjust interface. Remove process from
19200 (spu_join, spu_thread_alive): Adjust interface.
19201 (spu_wait): Adjust interface. Remove process from processes
19202 table. Adjust to use ptids.
19203 * win32-low.c (current_inferior_tid): Delete.
19204 (current_inferior_ptid): New.
19205 (debug_event_ptid): New.
19206 (thread_rec): Take a ptid. Adjust.
19207 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19208 (child_delete_thread): Ditto.
19209 (do_initial_child_stuff): Add `attached' argument. Add process to
19211 (child_fetch_inferior_registers, child_store_inferior_registers):
19213 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19214 (win32_attach): Pass 1 to do_initial_child_stuff.
19215 (win32_kill): Adjust interface. Remove process from processes
19217 (win32_detach): Ditto.
19218 (win32_join): Adjust interface.
19219 (win32_thread_alive): Take a ptid.
19220 (win32_resume): Adjust to use ptids.
19221 (get_child_debug_event): Ditto.
19222 (win32_wait): Adjust interface. Remove exiting process from
19225 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19227 Non-stop mode support.
19229 * server.h (non_stop): Declare.
19230 (gdb_client_data, handler_func): Declare.
19231 (delete_file_handler, add_file_handler, start_event_loop):
19233 (handle_serial_event, handle_target_event, push_event)
19234 (putpkt_notif): Declare.
19235 * target.h (enum resume_kind): New.
19236 (struct thread_resume): Replace `step' field by `kind' field.
19237 (TARGET_WNOHANG): Define.
19238 (struct target_ops) <wait>: Add `options' argument.
19239 <supports_non_stop, async, start_non_stop>: New fields.
19240 (target_supports_non_stop, target_async): New.
19241 (start_non_stop): Declare.
19242 (mywait): Add `options' argument.
19243 * target.c (mywait): Add `options' argument. Print child exit
19244 notifications here.
19245 (start_non_stop): New.
19246 * server.c (non_stop, own_buf, mem_buf): New globals.
19247 (struct vstop_notif): New.
19248 (notif_queue): New global.
19249 (queue_stop_reply, push_event, discard_queued_stop_replies)
19250 (send_next_stop_reply): New.
19251 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19253 (attach_inferior): In non-stop mode, don't wait for the target
19255 (handle_general_set): Handle QNonStop.
19256 (handle_query): When handling qC, return the current general
19257 thread, instead of the first thread of the list.
19258 (handle_query): If the backend supports non-stop mode, include
19259 QNonStop+ in the qSupported query response.
19260 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19262 (handle_v_attach, handle_v_run): Handle non-stop mode.
19263 (handle_v_stopped): New.
19264 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19265 (myresume): Adjust to use resume_kind. Handle non-stop.
19266 (queue_stop_reply_callback): New.
19267 (handle_status): Handle non-stop mode.
19268 (main): Clear non_stop flag on reconnection. Use the event-loop.
19269 Refactor serial protocol handling from here ...
19270 (process_serial_event): ... to this new function. When GDB
19271 selects any thread, select one here. In non-stop mode, wait until
19272 GDB acks all pending events before exiting.
19273 (handle_serial_event, handle_target_event): New.
19274 * remote-utils.c (remote_open): Install remote_desc in the event
19276 (remote_close): Remove remote_desc from the event loop.
19277 (putpkt_binary): Rename to...
19278 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19279 (putpkt_binary): New as wrapper around putpkt_binary_1.
19280 (putpkt_notif): New.
19281 (prepare_resume_reply): In non-stop mode, don't change the
19283 * event-loop.c: New.
19284 * Makefile.in (OBJ): Add event-loop.o.
19285 (event-loop.o): New rule.
19287 * linux-low.h (pid_of): Moved here.
19289 (get_lwp_thread): Use lwpid_of.
19290 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19291 * linux-low.c (pid_of): Delete.
19292 (inferior_pid): Use lwpid_of.
19293 (linux_event_pipe): New.
19294 (target_is_async_p): New.
19296 (handle_extended_wait): Use lwpid_of.
19297 (add_lwp): Don't set lwpid field.
19298 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19299 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19300 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19301 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19302 first. Adjust to linux_wait_for_event interface changes. Use
19304 (linux_detach): Don't delete the main lwp here.
19305 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19306 (status_pending_p): Don't consider explicitly suspended lwps.
19307 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19308 pointer. Add OPTIONS argument. Change return type to int. Use
19309 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19310 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19311 pointer. Add status pointer argument. Return a pid instead of a
19312 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19313 changes. In non-stop mode, don't switch to a random thread.
19314 (linux_wait): Rename to...
19315 (linux_wait_1): ... this. Add target_options argument, and handle
19316 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19317 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19318 clean exit and signal exit code. Don't stop all threads in
19319 non-stop mode. In all-stop mode, only stop all threads when
19320 reporting a stop to GDB. Handle explicit thread stop requests.
19321 (async_file_flush, async_file_mark): New.
19323 (send_sigstop): Use lwpid_of.
19324 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19325 interface changes. In non-stop mode, don't switch to a random
19327 (linux_resume_one_lwp): Use lwpid_of.
19328 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19329 (linux_resume_one_thread): ... this. Handle resume_stop. In
19330 non-stop mode, don't look for pending flag in all threads.
19331 (resume_status_pending_p): Don't consider explicitly suspended
19333 (my_waitpid): Reimplement. Emulate __WALL.
19334 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19336 (sigchld_handler, linux_supports_non_stop, linux_async)
19337 (linux_start_non_stop): New.
19338 (linux_target_ops): Register linux_supports_non_stop, linux_async
19339 and linux_start_non_stop.
19340 (initialize_low): Install SIGCHLD handler.
19341 * thread-db.c (thread_db_create_event, find_one_thread)
19342 (thread_db_get_tls_address): Use lwpid_of.
19343 * win32-low.c (win32_detach): Adjust to use resume_kind.
19344 (win32_wait): Add `options' argument.
19345 * spu-low.c (spu_resume): Adjust to use resume_kind.
19346 (spu_wait): Add `options' argument.
19348 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19350 Decouple target code from remote protocol.
19352 * target.h (enum target_waitkind): New.
19353 (struct target_waitstatus): New.
19354 (struct target_ops) <wait>: Return an unsigned long. Take a
19355 target_waitstatus pointer instead of a char pointer.
19356 (mywait): Likewise.
19357 * target.c (mywait): Change prototype to return an unsigned long.
19358 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19359 * server.h (thread_from_wait, old_thread_from_wait): Delete
19361 (prepare_resume_reply): Change prototype to take a
19363 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19364 (last_status, last_ptid): New.
19365 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19366 pid instead of a signal.
19367 (attach_inferior): Remove "status" and "signal" parameters.
19369 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19371 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19372 (handle_v_requests, myresume): Remove "status" and "signal"
19373 parameters. Adjust.
19374 (handle_status): New.
19375 (main): Delete local `status'. Adjust.
19376 * remote-utils.c: Include target.h.
19377 (prepare_resume_reply): Change prototype to take a
19378 target_waitstatus. Adjust.
19380 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19382 * spu-low.c (spu_wait): Adjust.
19383 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19385 (win32_wait): Adjust.
19387 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19389 * target.h (struct thread_resume): Delete leave_stopped member.
19390 (struct target_ops): Add a `n' argument to the `resume' callback.
19391 * server.c (start_inferior): Adjust.
19392 (handle_v_cont, myresume): Adjust.
19393 * linux-low.c (check_removed_breakpoint): Adjust to resume
19394 interface change, and to removed leave_stopped field.
19395 (resume_ptr): Delete.
19396 (struct thread_resume_array): New.
19397 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19398 resume interface change.
19399 (linux_continue_one_thread, linux_queue_one_thread)
19400 (resume_status_pending_p): Check if the resume field is NULL
19401 instead of checking the leave_stopped member.
19402 (linux_resume): Adjust to the target resume interface change.
19403 * spu-low.c (spu_resume): Adjust to the target resume interface
19405 * win32-low.c (win32_detach, win32_resume): Ditto.
19407 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19409 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19411 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19413 (linux_continue_one_thread): Only preserve the stepping flag if
19414 there's a pending breakpoint.
19416 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19418 * server.c (main): After the inferior having exited, call
19419 remote_close before exiting gdbserver.
19421 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19423 Fix size of FPSCR in Power 7 processors.
19424 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19425 (PPC_FEATURE_HAS_DFP): New #define.
19426 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19429 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19431 * server.c (handle_query) Whitespace and formatting.
19433 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19435 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19436 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19437 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19438 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19439 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19440 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19441 Makefile.in, configure.ac: Fix whitespace throughout.
19442 * configure: Regenerate.
19444 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19446 * inferiors.c (find_inferior): Make it safe for the callback
19447 function to delete the currently iterated inferior.
19449 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19451 * Makefile.in (linuw_low_h): Move higher.
19452 (thread-db.o): Depend on $(linux_low_h).
19454 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19456 Rename "process" to "lwp" throughout.
19458 * linux-low.c (all_processes): Rename to...
19459 (all_lwps): ... this.
19460 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19461 (add_process): Rename to ...
19462 (add_lwp): ... this. Adjust.
19463 (linux_create_inferior): Adjust.
19464 (linux_attach_lwp): Adjust.
19465 (linux_attach): Adjust.
19466 (linux_kill_one_process): Rename to ...
19467 (linux_kill_one_lwp): ... this. Adjust.
19468 (linux_kill): Adjust.
19469 (linux_detach_one_process): Rename to ...
19470 (linux_detach_one_lwp): ... this. Adjust.
19471 (linux_detach): Adjust.
19472 (check_removed_breakpoint): Adjust.
19473 (status_pending_p): Adjust.
19474 (linux_wait_for_process): Rename to ...
19475 (linux_wait_for_lwp): ... this. Adjust.
19476 (linux_wait_for_event): Adjust.
19477 (send_sigstop): Adjust.
19478 (wait_for_sigstop): Adjust.
19479 (stop_all_processes): Rename to ...
19480 (stop_all_lwps): ... this.
19481 (linux_resume_one_process): Rename to ...
19482 (linux_resume_one_lwp): ... this. Adjust.
19483 (linux_set_resume_request, linux_continue_one_thread)
19484 (linux_queue_one_thread, resume_status_pending_p)
19485 (usr_store_inferior_registers, regsets_store_inferior_registers)
19486 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19488 * linux-low.h (get_process): Rename to ...
19489 (get_lwp): ... this. Adjust.
19490 (get_thread_process): Rename to ...
19491 (get_thread_lwp): ... this. Adjust.
19492 (get_process_thread): Rename to ...
19493 (get_lwp_thread): ... this. Adjust.
19494 (struct process_info): Rename to ...
19495 (struct lwp_info): ... this.
19496 (all_processes): Rename to ...
19497 (all_lwps): ... this.
19498 * proc-service.c (ps_lgetregs): Adjust.
19499 * thread-db.c (thread_db_create_event, find_one_thread)
19500 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19502 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19504 * server.c (handle_query): Handle "qAttached".
19506 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19508 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19509 GPLv3, update license URL.
19511 2009-03-01 Doug Evans <dje@google.com>
19513 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19514 (server_h): Add gdb_signals.h.
19515 (signals.o): Update.
19516 * server.h (target_signal_from_host,target_signal_to_host_p)
19517 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19519 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19521 * remote-utils.c (getpkt): Also generate remote-debug
19522 information if noack_mode is set.
19524 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19526 * server.c (handle_query): Report qXfer:siginfo:read and
19527 qXfer:siginfo:write as supported and handle them.
19528 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19529 * linux-low.c (linux_xfer_siginfo): New.
19530 (linux_target_ops): Set it.
19532 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19534 * server.c (gdbserver_usage): Mention --remote-debug.
19535 (main): Accept '--remote-debug' switch.
19537 2009-01-18 Doug Evans <dje@google.com>
19539 * regcache.c (new_register_cache): No need to check result of xcalloc.
19540 * server.c (handle_search_memory): Back out calls to xmalloc,
19541 result is checked and error is returned to user upon failure.
19542 (handle_query): Ditto. Add more checks for result of malloc.
19543 (handle_v_cont): Check result of malloc, report error back to
19545 (handle_v_run): Ditto. Call freeargv.
19546 * server.h (freeargv): Declare.
19547 * utils.c (freeargv): New fn.
19549 2009-01-15 Doug Evans <dje@google.com>
19551 * gdbreplay.c (perror_with_name): Make arg const char *.
19552 * server.h (target_signal_to_name): Make return type const char *.
19553 * thread-db.c (thread_db_err_str): Make return type const char *.
19554 * utils.c (perror_with_name): Make arg const char *.
19556 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19558 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19559 when handling a EXIT_PROCESS_DEBUG_EVENT.
19561 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19563 * gdbreplay.c (gdbreplay_version): Update copyright year.
19564 * server.c (gdbserver_version): Likewise.
19566 2009-01-05 Doug Evans <dje@google.com>
19568 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19569 (handle_extended_wait): Improve comment.
19571 2008-12-13 Doug Evans <dje@google.com>
19573 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19574 * server.h (ATTR_MALLOC): New macro.
19575 (xmalloc,xcalloc,xstrdup): Declare.
19576 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19577 * inferiors.c: Ditto.
19578 * linux-low.c: Ditto.
19579 * mem-break.c: Ditto.
19580 * regcache.c: Ditto.
19581 * remote-utils.c: Ditto.
19584 * win32-low.c: Ditto.
19586 2008-12-12 Doug Evans <dje@google.com>
19588 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19589 in debugging printf.
19591 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19593 2008-12-09 Doug Evans <dje@google.com>
19595 * linux-low.h (struct process_info): Delete member tid, unused.
19596 * thread-db.c (find_one_thread): Update.
19597 (maybe_attach_thread): Update.
19599 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19601 * target.h (struct target_ops): Add qxfer_osdata member.
19602 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19604 (linux_qxfer_osdata): New functions.
19605 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19607 * server.c (handle_query): Handle "qXfer:osdata:read:".
19608 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19609 (buffer_xml_printf): New functions.
19610 * server.h (struct buffer): New.
19611 (buffer_grow_str, buffer_grow_str0): New macros.
19612 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19613 (buffer_xml_printf): Declare.
19615 2008-11-24 Doug Evans <dje@google.com>
19617 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19619 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19621 * server.c (handle_v_run): Always use the supplied argument list.
19623 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19625 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19626 (xtensa_regmap_table): Add entry for scompare1.
19628 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19630 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19631 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19632 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19633 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19634 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19635 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19636 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19637 XML target descriptions.
19638 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19639 when inferior is running on an ISA 2.05 or later processor. Add
19640 special case to return offset for full 64-bit slot of FPSCR when
19643 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19645 * Makefile.in (SFILES, clean): Added sparc64 files.
19646 (reg-sparc64.o, reg-sparc64.c): New.
19647 * configure.srv (sparc*-*-linux*): New configuration.
19648 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19649 syscall arguments for SPARC.
19650 (regsets_store_inferior_registers): Likewise.
19651 * linux-sparc-low.c: New file.
19653 2008-10-21 Doug Evans <dje@google.com>
19655 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19656 (READLINE_DIR,READLINE_DEP): Delete.
19657 (INTERNAL_CFLAGS): Update.
19658 (LINTFLAGS): Update.
19660 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19662 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19663 whole argv from the last run, not just argv[0].
19665 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19667 * regcache.c (new_register_cache): Return NULL if the register
19668 cache size isn't known yet.
19669 (free_register_cache): Avoid dereferencing a NULL regcache.
19671 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19673 * configure.srv: Merge MIPS and MIPS64.
19675 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19677 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19679 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19681 * Makefile.in: Add required vsx dependencies.
19683 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19684 Declare init_registers_powerpc_vsx32l.
19685 Declare init_registers_powerpc_vsx64l.
19686 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19687 (ppc_arch_setup): Check for VSX in hwcap.
19688 (ppc_fill_vsxregset): New function.
19689 (ppc_store_vsxregset): New function.
19690 Add new VSX entry in regset_info target_regsets.
19692 * configure.srv: Add new VSX dependencies.
19694 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19696 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19697 (remote_open): Set or clear transport_is_reliable.
19698 (putpkt_binary): Don't expect acks in noack mode.
19699 (getpkt): Don't send ack/nac in noack mode.
19700 * server.c (handle_general_set): Handle QStartNoAckMode.
19701 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19703 (main): Reset noack_mode on every connection.
19704 * server.h (noack_mode): Declare.
19706 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19708 * Makefile.in (GDBREPLAY_OBS): New variable.
19709 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19711 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19712 Daniel Jacobowitz <dan@codesourcery.com>
19714 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19715 (usr_store_inferior_registers): Likewise.
19716 (regsets_store_inferior_registers): Likewise.
19718 2008-07-31 Rolf Jansen <rj@surtec.com>
19719 Pedro Alves <pedro@codesourcery.com>
19721 * configure.ac: Check for memmem declaration.
19722 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19723 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19724 (disable_packet_qfThreadInfo): Unconditionally compile.
19725 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19726 * configure, config.in: Regenerate.
19728 2008-07-28 Doug Kwan <dougkwan@google.com>
19730 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19731 (linux_write_memory): Remove declaration of errno.
19733 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19735 * linux-low.c (handle_extended_wait): Do not use "status"
19736 variable uninitialized.
19738 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19740 * server.c (handle_v_attach): Inhibit reporting dll changes.
19742 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19744 * remote-utils.c (prepare_resume_reply): If requested, don't
19745 output "thread:TID" in the T stop reply.
19747 * server.c (disable_packet_vCont, disable_packet_Tthread)
19748 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19749 (handle_query): If requested, disable support for qC, qfThreadInfo
19751 (handle_v_requests): If requested, disable support for vCont.
19752 (gdbserver_show_disableable): New.
19753 (main): Handle --disable-packet and --disable-packet=LIST.
19755 * server.h (disable_packet_vCont, disable_packet_Tthread)
19756 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19758 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19760 * server.c (gdbserver_usage): Mention --version.
19762 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19764 * Makefile.in (gdbreplay.o): New rule.
19766 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19768 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19769 message, not gdbserver.
19771 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19772 Nathan Sidwell <nathan@codesourcery.com>
19773 Joseph Myers <joseph@codesourcery.com>
19775 * acinclude.m4: Include ../../config/acx.m4.
19776 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19777 * configure, config.in: Regenerate.
19778 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19779 * server.c (gdbserver_version): Print PKGVERSION.
19780 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19781 (main): Adjust gdbserver_usage calls.
19782 * gdbreplay.c (version, host_name): Add declarations.
19783 (gdbreplay_version, gdbreplay_usage): New.
19784 (main): Accept --version and --help options.
19786 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19788 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19789 (arm_breakpoint_at): Handle Thumb.
19790 (the_low_target): Add comment.
19792 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19794 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19796 2008-05-09 Doug Evans <dje@google.com>
19798 * server.h (decode_search_memory_packet): Declare.
19799 * remote-utils.c (decode_search_memory_packet): New fn.
19800 * server.c (handle_search_memory_1): New fn.
19801 (handle_search_memory): New fn.
19802 (handle_query): Process qSearch:memory packets.
19804 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19806 * regcache.c (registers_length): Remove.
19807 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19808 full register packet.
19809 * regcache.h (registers_length): Remove prototype.
19810 * server.h (PBUFSIZ): Define to 16384.
19812 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19814 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19815 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19816 powerpc-64l.o, and powerpc-altivec64l.o.
19817 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19818 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19819 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19820 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19821 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19824 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19825 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19826 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19827 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19828 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19829 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19830 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19831 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19832 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19833 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19836 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19837 (init_registers_powerpc_32l): ... this new prototype.
19838 (init_registers_powerpc_32): Remove, replace by ...
19839 (init_registers_powerpc_altivec32l): ... this new prototype.
19840 (init_registers_powerpc_e500): Remove, replace by ...
19841 (init_registers_powerpc_e500l): ... this new prototype.
19842 (init_registers_ppc64): Remove, replace by ...
19843 (init_registers_powerpc_64l): ... this new prototype.
19844 (init_registers_powerpc_64): Remove, replace by ...
19845 (init_registers_powerpc_altivec64l): ... this new prototype.
19846 (ppc_num_regs): Set to 73.
19847 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19848 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19849 (ppc_cannot_store_register): Handle orig_r3 and trap.
19850 (ppc_arch_setup): Update init_registers_... calls.
19851 (ppc_fill_gregset): Handle orig_r3 and trap.
19853 * inferiors.c (clear_inferiors): Reset current_inferior.
19855 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19857 * acinclude.m4: Add override.m4.
19858 * configure: Regenerate.
19860 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19862 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19863 initial call to init_register_ppc64.
19865 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19867 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19868 single powerpc*-*-linux* case.
19869 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19871 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19873 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19874 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19876 * linux-ppc-low.c: Include <elf.h>.
19877 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19878 (ppc_hwcap): New global variable.
19879 (ppc_regmap): Remove __SPE__ #ifdef sections.
19880 (ppc_regmap_e500): New global variable.
19881 (ppc_cannot_store_register): Update __SPE__ special case.
19882 (ppc_get_hwcap): New function.
19883 (ppc_arch_setup): Use it to determine whether inferior supports
19884 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19885 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19886 Do not access registers if target does not support AltiVec.
19887 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19888 Do not access registers if target does not support SPE.
19889 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19891 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19893 * linux-low.c (disabled_regsets, num_regsets): New.
19894 (use_regsets_p): Delete.
19895 (linux_wait_for_process): Clear disabled_regsets.
19896 (regsets_fetch_inferior_registers): Check and set it.
19897 (regsets_store_inferior_registers): Likewise.
19898 (linux_fetch_registers, linux_store_registers): Do not use
19900 (initialize_low): Allocate disabled_regsets.
19902 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19904 * Makefile.in (LIBOBJS): New.
19905 (OBS): Use LIBOBJS.
19906 (memmem.o): New rule.
19907 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19908 * configure: Regenerated.
19910 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19912 * server.c (handle_query): Never return "unsupported" for
19913 qXfer:features:read queries.
19915 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19917 * server.c (get_features_xml): Fix inverted condition.
19918 (handle_query): Always support qXfer:feature:read.
19920 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19922 * server.c (wrapper_argv): New.
19923 (start_inferior): Handle wrapper_argv. If set, expect an extra
19925 (gdbserver_usage): Document --wrapper.
19926 (main): Parse --wrapper.
19928 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19930 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19931 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19932 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19933 (ppc_set_pc): Likewise.
19934 (ppc_arch_setup): New function.
19935 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19936 of collect_register.
19937 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19939 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19941 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19942 instead of linux-ppc64-low.o.
19943 * linux-ppc64-low.c: Remove file.
19944 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19945 (linux-ppc64-low.o): Remove rule.
19947 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19948 (init_registers_powerpc_64): Likewise.
19949 (ppc_regmap): Conditionally define depending on __powerpc64__.
19950 (ppc_cannot_store_register): Do not special-case "fpscr" when
19951 compiled on __powerpc64__.
19952 (ppc_collect_ptrace_register): New function.
19953 (ppc_supply_ptrace_register): New function.
19954 (ppc_breakpoint): Change type to "unsigned int".
19955 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19956 (the_low_target): Conditionally provide initializers for the
19957 arch_setup member depending on __powerpc64__. Install
19958 collect_ptrace_register and supply_ptrace_register members.
19960 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19962 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19963 * server.c (gdbserver_xmltarget): Define.
19964 (get_features_xml): Use it to replace "target.xml" and arch_string.
19966 * configure.srv: Remove srv_xmltarget. Add XML files that were
19967 mentioned there to srv_xmlfiles instead. Remove conditional tests
19968 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19969 srv_xmlfiles and srv_regobj to include all possible choices.
19970 * configure.ac (srv_xmltarget): Remove.
19971 (srv_xmlfiles): Do not add "target.xml".
19972 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19973 checks for supplementary target information.
19974 * configure: Regenerate.
19975 * Makefile.in (XML_TARGET): Remove.
19976 (target.xml): Remove rule.
19977 (clean): Do not clean up target.xml.
19978 (.PRECIOUS): Do not mention target.xml.
19980 * target.h (struct target_ops): Remove arch_string member.
19981 * linux-low.c (linux_arch_string): Remove.
19982 (linux_target_ops): Remove arch_string initializer.
19983 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19984 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19985 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19986 * spu-low.c (spu_arch_string): Remove.
19987 (spu_target_ops): Remove arch_string initializer.
19988 * win32-low.c (win32_arch_string): Remove.
19989 (win32_target_ops): Remove arch_string initializer.
19990 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19991 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19992 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19994 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19996 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19997 by collect_ptrace_register and supply_ptrace_register hooks.
19998 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19999 instead of checking for the_low_target.left_pad_xfer.
20000 (usr_store_inferior_registers): Use collect_ptrace_register callback
20001 instead of checking for the_low_target.left_pad_xfer.
20003 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20004 (s390_supply_ptrace_register): Likewise.
20005 (s390_fill_gregset): Call s390_collect_ptrace_register.
20006 (the_low_target): Update.
20008 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20009 (ppc_supply_ptrace_register): Likewise.
20010 (the_low_target): Update.
20012 * linux-i386-low.c (the_low_target): Update.
20013 * linux-x86-64-low.c (the_low_target): Update.
20015 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20017 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20018 reg-s390.o and reg-s390x.o.
20020 * linux-low.c (new_inferior): New global variable.
20021 (linux_create_inferior, linux_attach): Set it.
20022 (linux_wait_for_process): Call the_low_target.arch_setup after the
20023 target has stopped for the first time.
20024 (initialize_low): Do not call the_low_target.arch_setup.
20026 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20027 (s390_set_pc): Likewise.
20028 (s390_arch_setup): New function.
20029 (the_low_target): Use s390_arch_setup as arch_setup routine.
20031 * regcache.c (realloc_register_cache): New function.
20032 (set_register_cache): Call it for each existing regcache.
20034 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20036 * server.h (init_registers): Remove prototype.
20038 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20039 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20040 instead of init_registers ().
20041 * linux-arm-low.c (init_registers_arm): Add prototype.
20042 (init_registers_arm_with_iwmmxt): Likewise.
20043 (the_low_target): Add initializer for arch_setup field.
20044 * linux-cris-low.c (init_registers_cris): Add prototype.
20045 (the_low_target): Add initializer for arch_setup field.
20046 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20047 (the_low_target): Add initializer for arch_setup field.
20048 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20049 (the_low_target): Add initializer for arch_setup field.
20050 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20051 (the_low_target): Add initializer for arch_setup field.
20052 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20053 (the_low_target): Add initializer for arch_setup field.
20054 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20055 (the_low_target): Add initializer for arch_setup field.
20056 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20057 (init_registers_mips64_linux): Likewise.
20058 (the_low_target): Add initializer for arch_setup field.
20059 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20060 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20061 (the_low_target): Add initializer for arch_setup field.
20062 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20063 (init_registers_powerpc_64): Likewise.
20064 (the_low_target): Add initializer for arch_setup field.
20065 * linux-s390-low.c (init_registers_s390): Add prototype.
20066 (init_registers_s390x): Likewise.
20067 (the_low_target): Add initializer for arch_setup field.
20068 * linux-sh-low.c (init_registers_sh): Add prototype.
20069 (the_low_target): Add initializer for arch_setup field.
20070 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20071 (the_low_target): Add initializer for arch_setup field.
20072 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20073 (the_low_target): Add initializer for arch_setup field.
20075 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20076 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20077 instead of init_registers ().
20078 * win32-arm-low.c (init_registers_arm): Add prototype.
20079 (the_low_target): Add initializer for arch_setup field.
20080 * win32-i386-low.c (init_registers_i386): Add prototype.
20081 (the_low_target): Add initializer for arch_setup field.
20083 * spu-low.c (init_registers_spu): Add prototype.
20084 (initialize_low): Call initialie_registers_spu () instead of
20085 initialize_registers ().
20087 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20089 * server.c (handle_v_requests): When handling the vRun and vAttach
20090 packets, if already debugging a process, don't kill it. Return an
20093 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20095 * server.c (handle_query): Correct length check.
20097 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20099 * win32-low.c (do_initial_child_stuff): Add process handle
20100 parameter. Set current_process_handle and current_process_id from the
20101 parameters. Clear globals.
20102 (win32_create_inferior): Don't set current_process_handle and
20103 current_process_id here. Instead pass them on the call to
20104 do_initial_child_stuff.
20105 (win32_attach): Likewise.
20106 (win32_clear_inferiors): New.
20107 (win32_kill): Don't close the current process handle or the
20108 current thread handle here. Instead call win32_clear_inferiors.
20109 (win32_detach): Don't open a new handle to the process. Call
20110 win32_clear_inferiors.
20111 (win32_join): Don't rely on current_process_handle; open a new
20112 handle using the process id.
20113 (win32_wait): Call win32_clear_inferiors when the inferior process
20116 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20118 * server.c (monitor_show_help): Add "exit".
20120 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20122 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20123 (clean): Add reg-xtensa.c.
20124 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20125 * configure.srv (xtensa*-*-linux*) New target.
20126 * linux-xtensa-low.c: New.
20127 * xtensa-xtregs.c: New.
20129 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20131 * hostio.c: Don't include errno.h.
20132 (errno_to_fileio_errno): Move to hostio-errno.
20133 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20134 error number outputting to the target->hostio_last_error callback.
20135 (hostio_packet_error): Use FILEIO_EINVAL directly.
20136 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20137 calls to hostio_error.
20138 * hostio-errno.c: New.
20139 * server.h (hostio_last_error_from_errno): Declare.
20140 * target.h (target_ops): Add hostio_last_error member.
20141 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20142 as hostio_last_error handler.
20143 * spu-low.c (spu_target_ops): Likewise.
20144 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20145 (wince_hostio_last_error): New functions.
20146 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20147 as hostio_last_error handler.
20148 (win32_target_ops) [!_WIN32_WCE]: Register
20149 hostio_last_error_from_errno as hostio_last_error handler.
20150 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20151 (hostio-errno.o): New rule.
20152 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20153 * configure.srv (srv_hostio_err_objs): New variable. Default to
20155 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20156 * configure: Regenerate.
20158 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20160 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20161 (linux_kill, linux_detach): Clean up the process list.
20162 * remote-utils.c (remote_open): Improve port number parsing.
20163 (putpkt_binary, input_interrupt): Only send interrupts if the target
20165 * server.c (extended_protocol): Make static.
20166 (attached): Define earlier.
20167 (exit_requested, response_needed, program_argv): New variables.
20168 (target_running): New.
20169 (start_inferior): Clear attached here.
20170 (attach_inferior): Set attached here.
20171 (require_running): Define.
20172 (handle_query): Use require_running and target_running. Implement
20174 (handle_v_attach, handle_v_run): New.
20175 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20176 (gdbserver_usage): Update.
20177 (main): Redo argument parsing. Handle --debug and --multi. Handle
20178 --attach along with other options or after the port. Save
20179 program_argv. Support no initial program. Resynchronize
20180 communication with GDB after an error. Handle "monitor exit".
20181 Use require_running and target_running. Always allow the extended
20182 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20183 restart in extended mode.
20184 * README: Refer to the GDB manual. Update --attach usage.
20186 2007-12-20 Andreas Schwab <schwab@suse.de>
20188 * linux-low.c (STACK_SIZE): Define.
20189 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20190 (linux_test_for_tracefork): Likewise.
20192 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20194 * linux-low.c (linux_wait_for_event): Update messages. Do not
20195 reinsert auto-delete breakpoints.
20196 * mem-break.c (struct breakpoint): Change return type of handler to
20198 (set_breakpoint_at): Update handler type.
20199 (reinsert_breakpoint_handler): Return 1 instead of calling
20201 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20203 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20204 * mem-break.h (set_breakpoint_at): Update handler type.
20205 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20206 * win32-low.c (auto_delete_breakpoint): New.
20207 (get_child_debug_event): Use it.
20209 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20211 * configure.ac: Check for pread and pwrite.
20212 * hostio.c (handle_pread): Fall back to lseek and read.
20213 (handle_pwrite): Fall back to lseek and write.
20214 * config.in, configure: Regenerated.
20216 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20218 * server.c (myresume): Add own_buf argument.
20219 (main): Update calls.
20221 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20223 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20224 * remote-utils.c (remote_open): Do not call disable_async_io.
20225 (block_async_io): Delete.
20226 (unblock_async_io): Make static.
20227 (initialize_async_io): New.
20228 * server.c (handle_v_cont): Handle async I/O here.
20229 (myresume): Likewise. Move other common resume tasks here...
20230 (main): ... from here. Call initialize_async_io. Disable async
20231 I/O before the main loop.
20232 * server.h (initialize_async_io): Declare.
20233 (block_async_io, unblock_async_io): Delete prototypes.
20234 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20236 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20238 * remote-utils.c (readchar): Allow binary data in received messages.
20240 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20242 * win32-low.c (attaching): New global.
20243 (win32_create_inferior): Clear the `attaching' global.
20244 (win32_attach): Set the `attaching' global.
20245 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20246 attaching. Only set a breakpoint at the entry point if not
20249 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20251 * server.c (main): Don't report dll events on the initial
20252 connection on attaches.
20254 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20256 * server.c (main): Relax numerical bases supported for the pid of
20257 the --attach command line argument.
20259 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20261 * win32-low.c (win32_attach): Call OpenProcess before
20262 DebugActiveProcess, not after. Add last error output to error
20265 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20267 * win32-low.c (win32_get_thread_context)
20268 (win32_set_thread_context): New functions.
20269 (thread_rec): Use win32_get_thread_context.
20270 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20271 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20274 2007-12-03 Leo Zayas
20275 Pedro Alves <pedro_alves@portugalmail.pt>
20277 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20279 (child_add_thread): Minor cleanup.
20280 (child_continue): Resume artificially suspended threads before
20281 calling ContinueDebugEvent.
20282 (suspend_one_thread): New.
20283 (fake_breakpoint_event): New.
20284 (get_child_debug_event): Change return type to int. Check here if
20285 gdb sent an interrupt request. If a soft interrupt was requested,
20286 fake a breakpoint event. Return 0 if there is no event to handle,
20288 (win32_wait): Don't check here if gdb sent an interrupt request.
20289 Ensure there is a valid event to handle.
20290 (win32_request_interrupt): Add soft interruption method as last
20293 2007-12-03 Leo Zayas
20294 Pedro Alves <pedro_alves@portugalmail.pt>
20296 * win32-low.h (win32_thread_info): Add descriptions to the
20297 structure members. Replace `suspend_count' counter by a
20299 * win32-low.c (thread_rec): Update condition of when to get the
20300 context from the inferior. Rely on ContextFlags being set if it
20301 has already been retrieved. Only suspend the inferior thread if
20302 we haven't already. Warn if that fails.
20303 (continue_one_thread): s/suspend_count/suspended/. Only call
20304 ResumeThread once. Warn if that fails.
20306 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20308 * win32-low.c (win32_wait): Don't read from the inferior when it
20309 has already exited.
20311 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20313 * Makefile.in (win32_low_h): New variable.
20314 (win32-low.o): Add dependency on $(win32_low_h).
20315 (win32-arm-low.o, win32-i386-low.o): New rules.
20317 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20319 * hostio.c: Correct copyright year.
20321 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20323 * Makefile.in (OBS): Add hostio.o.
20324 (hostio.o): New rule.
20325 * server.h (handle_vFile): Declare.
20326 * hostio.c: New file.
20327 * server.c (handle_v_requests): Take packet_len and new_packet_len
20328 for binary packets. Call handle_vFile.
20329 (main): Update call to handle_v_requests.
20331 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20333 * linux-low.c: Include <sched.h>.
20335 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20337 * linux-low.c (linux_tracefork_grandchild): New.
20338 (linux_tracefork_child): Use clone.
20339 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20341 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20343 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20345 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20347 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20349 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20351 * inferiors.c (change_inferior_id): Delete.
20352 (add_pid_to_list, pull_pid_from_list): New.
20353 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20354 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20355 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20356 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20357 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20358 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20359 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20360 (using_threads): Always set to 1.
20361 (handle_extended_wait): New.
20362 (add_process): Do not set TID.
20363 (linux_create_inferior): Set must_set_ptrace_flags.
20364 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20365 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20366 (linux_thread_alive): Rename TID argument to LWPID.
20367 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20368 (linux_wait_for_event): Do not use TID or check using_threads. Update
20369 call to dead_thread_notify. Call handle_extended_wait.
20370 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20371 (send_sigstop): Delete sigstop_sent.
20372 (wait_for_sigstop): Avoid TID.
20373 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20374 (linux_test_for_tracefork): New.
20375 (linux_lookup_signals): Use thread_db_active and
20376 linux_supports_tracefork_flag.
20377 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20378 * linux-low.h (get_process_thread): Avoid TID.
20379 (struct process_ifo): Move thread_known and tid to the end. Remove
20381 (linux_attach_lwp, thread_db_init): Update prototypes.
20382 * server.h (change_inferior_id): Delete prototype.
20383 (add_pid_to_list, pull_pid_from_list): New prototypes.
20384 * thread-db.c (thread_db_use_events): New.
20385 (find_first_thread): Rename to...
20386 (find_one_thread): ...this. Update callers and messages. Do not
20387 call fatal. Check thread_db_use_events. Do not call
20388 change_inferior_id or new_thread_notify.
20389 (maybe_attach_thread): Update. Do not call new_thread_notify.
20390 (thread_db_init): Set thread_db_use_events. Check use_events.
20391 * utils.c (fatal, warning): Correct message prefix.
20393 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20395 * Makefile.in (clean): Remove new files.
20396 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20397 (powerpc-64.o, powerpc-64.c): New rules.
20398 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20399 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20401 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20403 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20404 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20405 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20406 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20407 (target_regsets): Add AltiVec and SPE register sets.
20408 * configure.ac: Check for AltiVec and SPE.
20409 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20410 (ppc_fill_vrregset, ppc_store_vrregset): New.
20411 (target_regsets): Add AltiVec register set.
20412 * configure: Regenerated.
20414 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20416 * linux-low.c (O_LARGEFILE): Define.
20417 (linux_read_memory): Use /proc/PID/mem.
20418 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20419 * configure, config.in: Regenerated.
20421 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20423 * linux-low.c (linux_wait_for_event): Do not pass signals while
20426 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20428 * win32-low.c (create_process): New.
20429 (win32_create_inferior): Use create_process instead of
20430 CreateProcess. If create_process failed retry appending an ".exe"
20431 suffix. Store the GetLastError result immediatelly after
20432 create_process calls and use it on the call to error.
20434 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20436 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20438 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20440 * configure.ac: Switch license to GPLv3.
20442 2007-08-01 Michael Snyder <msnyder@access-company.com>
20444 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20446 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20448 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20450 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20451 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20452 CloseToolhelp32Snapshot.
20453 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20454 CloseToolhelp32Snapshot.
20456 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20458 * server.c (main): Check for inferior exit before main loop.
20460 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20462 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20463 instead of on tmp_desc.
20465 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20466 Daniel Jacobowitz <dan@codesourcery.com>
20468 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20469 (add_thread): Minor cleanups.
20470 (clear_inferiors): Move lower in the file. Clear the DLL
20472 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20473 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20474 (xml_escape_text): New.
20475 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20477 (handle_v_cont): Report errors.
20478 (gdbserver_version): Update.
20479 (main): Correct size of own_buf. Do not report initial DLL events.
20480 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20481 (unloaded_dll, xml_escape_text): New.
20482 * win32-low.c (enum target_waitkind): Update comments.
20483 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20484 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20485 (win32_EnumProcessModules, win32_GetModuleInformation)
20486 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20487 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20488 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20489 (win32_Module32First, win32_Module32Next, load_toolhelp)
20490 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20491 (get_child_debug_event): Handle DLL events.
20492 (win32_wait): Likewise.
20494 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20496 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20497 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20499 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20501 * win32-low.c (handle_output_debug_string): Ignore event if not
20504 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20506 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20508 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20510 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20512 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20514 * inferiors.c (change_inferior_id): Add comment.
20515 * linux-low.c (check_removed_breakpoint): Add an early
20516 prototype. Improve debug output.
20517 (linux_attach): Doc update.
20518 (linux_detach_one_process, linux_detach): Clean up before releasing
20520 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20521 * linux-low.h (struct process_info): Doc improvement.
20522 * mem-break.c (delete_all_breakpoints): New.
20523 * mem-break.h (delete_all_breakpoints): New prototype.
20524 * thread-db.c (find_first_thread): New.
20525 (thread_db_create_event): Call it instead of
20526 thread_db_find_new_threads. Clean up unused variables.
20527 (maybe_attach_thread): Remove first thread handling.
20528 (thread_db_find_new_threads): Use find_first_thread.
20529 (thread_db_get_tls_address): Likewise.
20531 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20533 * thread-db.c (thread_db_find_new_threads): Add prototype.
20534 (thread_db_create_event): Check for the main thread before adding
20536 (maybe_attach_thread): Only enable event reporting if TID == 0.
20537 (thread_db_get_tls_address): Check for new threads.
20539 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20541 * linux-low.c (linux_create_inferior): Try execv before execvp.
20542 * spu-low.c (spu_create_inferior): Likewise.
20544 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20546 * linux-low.c (linux_create_inferior): Change execv to execvp.
20547 * spu-low.c (spu_create_inferior): Likewies.
20549 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20551 * Makefile.in (clean): Clean new files instead of deleted ones.
20552 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20553 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20555 * configure.srv: Specify XML files and new regformats for MIPS and
20557 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20558 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20559 an entry for the restart register.
20560 (mips_cannot_fetch_register, mips_cannot_store_register)
20561 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20562 register names to match the XML descriptions.
20563 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20564 restart register instead of $0.
20566 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20567 Markus Deuling <deuling@de.ibm.com>
20569 * remote-utils.c (decode_xfer_write): New function.
20570 * server.h (decode_xfer_write): Add prototype.
20571 * server.c (handle_query): Add PACKET_LEN argument. Support
20572 qXfer:spu:read and qXfer:spu:write packets.
20573 (main): Pass packet_len to handle_query.
20574 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20575 * target.h (target_ops): Add qxfer_spu.
20577 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20579 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20580 accessing non-seekable spufs files.
20582 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20584 * server.c (handle_query): Add reply for qC packet.
20586 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20587 Leo Zayas <lerele@champenstudios@com>
20589 * server.h (check_remote_input_interrupt_request): New function.
20590 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20591 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20592 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20593 (check_remote_input_interrupt_request): New function.
20594 * server.h (check_remote_input_interrupt_request): Declare.
20595 * win32-low.c (winapi_DebugBreakProcess,
20596 winapi_GenerateConsoleCtrlEvent): New typedefs.
20597 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20599 (win32_wait): Check for remote interrupt request
20600 with check_remote_input_interrupt_request.
20601 (win32_request_interrupt): New function.
20602 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20604 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20606 * win32-low.c (debug_registers_changed,
20607 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20608 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20609 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20610 (thread_rec): Get context using the low target.
20611 (child_add_thread): Call thread_added on the low target,
20612 which does the same thing.
20614 (do_initial_child_stuff): Remove debug registers references.
20615 Set context using the low target. Resume threads after
20616 setting the contexts.
20617 (child_continue): Remove dead variable. Remove debug
20618 registers references.
20619 (child_fetch_inferior_registers): Go through the low target.
20620 (do_child_store_inferior_registers): Remove.
20621 (child_store_inferior_registers): Go through the low target.
20622 (win32_resume): Remove debug registers references.
20623 Set context using the low target.
20624 (handle_exception): Change return type to void. Don't record
20625 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20626 first chance exception.
20627 (get_child_debug_event): Change return type to void. Remove
20628 goto loop. Always return after waiting for debug event.
20629 (win32_wait): Convert to switch statement. Handle spurious
20632 * win32-i386-low.c (debug_registers_changed,
20633 debug_registers_used): New.
20634 (initial_stuff): Rename to ...
20635 (i386_initial_stuff): ... this. Clear debug registers
20637 (store_debug_registers): Delete.
20638 (i386_get_thread_context): New.
20639 (load_debug_registers): Delete.
20640 (i386_set_thread_context): New.
20641 (i386_thread_added): New.
20642 (single_step): Rename to ...
20643 (i386_single_step): ... this.
20644 (do_fetch_inferior_registers): Rename to ...
20645 (i386_fetch_inferior_register): ... this.
20646 (i386_store_inferior_register): New.
20647 (the_low_target): Adapt to new interface.
20649 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20650 (arm_get_thread_context): New.
20651 (arm_set_thread_context): New.
20653 (do_fetch_inferior_registers): Rename to ...
20654 (arm_fetch_inferior_register): ... this.
20655 (arm_store_inferior_register): New.
20656 (arm_wince_breakpoint): Reimplement as unsigned long.
20657 (arm_wince_breakpoint_len): Define.
20658 (the_low_target): Adapt to new interface.
20660 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20661 load_debug_registers. Add get_thread_context, set_thread_context,
20662 thread_added and store_inferior_register. Rename
20663 fetch_inferior_registers to fetch_inferior_register.
20664 (regptr): Remove declaration.
20666 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20668 * linux-low.c (linux_detach): Change return type to int. Return 0.
20669 * spu-low.c (spu_detach): Likewise.
20671 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20673 * target.h (target_ops): Change return type of detach to int.
20675 (join_inferior): New.
20676 * server.c (main): Don't skip detach support on mingw32.
20677 If the inferior doesn't support detaching return error.
20678 Call join_inferior instead of using waitpid.
20679 * linux-low.c (linux_join): New.
20680 (linux_target_op): Add linux_join.
20681 * spu-low.c (spu_join): New.
20682 (spu_target_ops): Add spu_join.
20683 * win32-low.c (win32_detach): Adapt to new interface.
20684 Reopen current_process_handle before detaching. Issue a child
20685 resume before detaching.
20687 (win32_target_op): Add win32_join.
20689 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20691 * win32-low.c (win32-attach): Fix return value.
20692 * target.h (target_ops): Describe ATTACH return values.
20694 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20696 * win32-low.c (GETPROCADDRESS): Define.
20697 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20698 (winapi_DebugSetProcessKillOnExit): Likewise.
20699 (win32_create_inferior): Force usage of ansi CreateProcessA.
20700 (win32_attach): Use GETPROCADDRESS.
20701 (win32_detach): Likewise.
20703 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20705 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20707 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20709 * win32-low.c: Commit leftover changes from 2007-03-29.
20711 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20713 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20714 fields short instead of int. Add explicit padding.
20715 (i387_cache_to_fsave): Remove unnecessary casts.
20716 (i387_fsave_to_cache): Doc fix.
20717 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20719 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20721 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20722 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20724 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20726 * configure.srv (arm*-*-mingw32ce*): Move near the other
20729 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20731 * configure.ac: Add errno checking.
20732 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20733 sys/file.h and malloc.h.
20734 (AC_CHECK_DECLS): Add perror.
20735 (srv_mingwce): Handle.
20736 * configure.srv (i[34567]86-*-cygwin*): Add
20737 win32-i386-low.o to srv_tgtobj.
20738 (i[34567]86-*-mingw*): Likewise.
20739 (arm*-*-mingw32ce*): Add case.
20740 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20741 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20742 [__MINGW32CE__] (strerror): New function.
20743 [__MINGW32CE__] (errno): Define to GetLastError.
20744 [__MINGW32CE__] (COUNTOF): New macro.
20745 (remote_open): Remove extra close call.
20746 * mem-break.c (delete_breakpoint_at): New function.
20747 * mem-break.h (delete_breakpoint_at): Declare.
20748 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20749 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20750 [USE_WIN32API] (read, write): Add char* casts.
20751 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20752 * server.h: Include wincecompat.h on Windows CE.
20753 [HAVE_ERRNO_H]: Check.
20754 (perror): Declare if not declared.
20755 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20756 (perror_with_name): Remove errno declaration.
20757 * wincecompat.h: New.
20758 * wincecompat.c: New.
20759 * win32-low.h: New.
20760 * win32-arm-low.c: New.
20761 * win32-i386-low.c: New.
20762 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20763 (OUTMSG2): Make it safe.
20765 (COUNTOF): New macro.
20766 (NUM_REGS): Get it from the low target.
20767 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20768 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20769 (thread_rec): Let low target handle debug registers.
20770 (child_add_thread): Likewise.
20771 (child_init_thread_list): Likewise.
20772 (continue_one_thread): Likewise.
20774 (do_child_fetch_inferior_registers): Move to ...
20775 * win32-i386-low.c: ... here, and rename to ...
20776 (do_fetch_inferior_registers): ... this.
20777 * win32-low.c (child_fetch_inferior_registers):
20778 Go through the low target.
20779 (do_child_store_inferior_registers): Use regptr.
20780 (strwinerror): New function.
20781 (win32_create_inferior): Handle Windows CE.
20782 Use strwinerror instead of strerror on Windows error
20783 codes. Add program to the error output.
20784 Don't close the main thread handle on Windows CE.
20785 (win32_attach): Use coredll.dll on Windows CE.
20786 (win32_kill): Close current process and current
20788 (win32_detach): Use coredll.dll on Windows CE.
20789 (win32_resume): Let low target handle debug registers, and
20791 (handle_exception): Add/Remove initial breakpoint. Avoid
20792 non-existant WSTOPSIG on Windows CE.
20793 (win32_read_inferior_memory): Cast to remove warning.
20794 (win32_arch_string): Go through the low target.
20795 (initialize_low): Call set_breakpoint_data with the low
20796 target's breakpoint.
20797 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20798 FOP_REGNUM, mappings): Move to ...
20799 * win32-i386-low.c: ... here.
20800 * win32-low.c (win32_thread_info): Move to ...
20801 * win32-low.h: ... here.
20802 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20803 win32-arm-low.c and wincecompat.c.
20804 (all:): Add $EXEEXT.
20805 (install-only:): Likewise.
20806 (gdbserver:): Likewise.
20807 (gdbreplay:): Likewise.
20808 * config.in: Regenerate.
20809 * configure: Regenerate.
20811 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * win32-low.c: Rename typedef thread_info to
20814 win32_thread_info throughout.
20816 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20818 * win32-i386-low.c: Rename to ...
20819 * win32-low.c: ... this.
20820 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20821 * Makefile.in: Likewise.
20823 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20825 * remote-utils.c (monitor_output): Constify msg parameter.
20826 * server.h (monitor_output): Likewise.
20827 * win32-i386-low.c (handle_output_debug_string): New.
20828 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20829 handle_output_debug_string.
20830 (get_child_debug_event): Likewise.
20832 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20834 * server.c (main): Correct strtoul check.
20836 2007-03-27 Jon Ringle <jon@ringle.org>
20838 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20840 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20842 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20844 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20846 * terminal.h: Check HAVE_SGTTY_H.
20848 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20850 * remote-utils.c (remote_open): Print out the assigned port number.
20852 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20854 * remote-utils.c (monitor_output): New function.
20855 * server.c (debug_threads): Define here.
20856 (monitor_show_help): New function.
20857 (handle_query): Handle qRcmd.
20858 (main): Do not handle 'd' packet.
20859 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20860 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20863 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20865 * Makefile.in (EXEEXT): New.
20866 (clean): Use $(EXEEXT).
20868 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20870 * target.h (target_ops): Rename send_signal to request_interrupt,
20871 and remove enum target_signal parameter.
20872 * linux-low.c (linux_request_interrupt): Rename from
20873 linux_send_signal, and always send SIGINT.
20874 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20875 and always send SIGINT.
20876 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20878 (input_interrupt): Likewise.
20880 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20882 * server.c (get_features_xml): Check if target implemented
20884 * win32-i386-low.c (win32_arch_string): New.
20885 (win32_target_ops): Add win32_arch_string as arch_string member.
20887 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20889 * spu-low.c (spu_arch_string): New.
20890 (spu_target_ops): Add spu_arch_string.
20892 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20894 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20895 * configure.ac: Do not check for terminal.h.
20896 * configure, config.in: Regenerated.
20898 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20900 * Makefile.in (OBS): Add $(XML_BUILTIN).
20901 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20903 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20904 (arm-with-iwmmxt.c): New.
20905 * config.in, configure: Regenerate.
20906 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20907 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20908 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20909 (arm*-*-linux*): Add iWMMXt and regset support.
20910 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20911 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20912 (arm_store_wmmxregset, target_regsets): New.
20913 * server.c (get_features_xml): Take annex argument. Check builtin
20915 (handle_query): Handle multiple annexes.
20917 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20919 * remote-utils.c [USE_WIN32API] (read, write): Define.
20920 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20923 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20925 * linux-i386-low.c (the_low_target): Set arch_string.
20926 * linux-x86-64-low.c (the_low_target): Likewise.
20927 * linux-low.c (linux_arch_string): New.
20928 (linux_target_ops): Add it.
20929 * linux-low.h (struct linux_target_ops): Add arch_string.
20930 * server.c (write_qxfer_response): Use const void * for DATA.
20931 (get_features_xml): New.
20932 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20933 * target.h (struct target_ops): Add arch_string method.
20935 2007-01-03 Denis Pilat <denis.pilat@st.com>
20936 Daniel Jacobowitz <dan@codesourcery.com>
20938 * linux-low.c (linux_kill): Handle being called with no threads.
20939 * win32-i386-low.c (win32_kill): Likewise.
20940 (get_child_debug_event): Clear current_process_handle.
20942 2006-12-30 Denis PILAT <denis.pilat@st.com>
20943 Daniel Jacobowitz <dan@codesourcery.com>
20945 * remote-utils.c (remote_open): Check the type of specified
20946 serial port devices before opening them.
20947 * server.c (main): Kill the inferior if an error occurs during
20948 the first remote_open.
20950 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20952 * README: Update supported targets.
20954 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20956 * Makefile.in (clean): Remove reg-mips64.c.
20957 (reg-mips64.c, reg-mips64.o): New rules.
20958 * configure.srv: Handle mips64. Include regset support for mips.
20959 * linux-mips-low.c (union mips_register): New.
20960 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20961 (mips_breakpoint, mips_breakpoint_at): Use int.
20962 (mips_collect_register, mips_supply_register)
20963 (mips_collect_register_32bit, mips_supply_register_32bit)
20964 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20965 (mips_store_fpregset, target_regsets): New.
20966 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20968 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20970 * configure.srv: Add target "spu*-*-*".
20971 * Makefile.in (clean): Remove reg-spu.c.
20972 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20973 * spu-low.c: New file.
20975 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20977 * configure.ac: Correct td_thr_tls_get_addr test.
20978 * configure: Regenerated.
20980 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20982 * linux-low.c (linux_wait_for_event): Reformat. Use the
20983 pass_signals array.
20984 * remote-utils.c (decode_address_to_semicolon): New.
20985 * server.c (pass_signals, handle_general_set): New.
20986 (handle_query): Mention QPassSignals for qSupported.
20987 (main): Call handle_general_set.
20988 * server.h (pass_signals, decode_address_to_semicolon): New.
20990 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20992 * server.c (handle_query): Correct error handling for read_auxv.
20994 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20996 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20997 and srv_linux_thread_db to yes.
20998 * linux-s390-low.c (s390_fill_gregset): New function.
20999 (target_regsets): Define data structure.
21001 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21003 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21004 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21005 * config.in, configure: Regenerated.
21006 * inferiors.c (gdb_id_to_thread): New function.
21007 (gdb_id_to_thread_id): Use it.
21008 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21009 * linux-low.h (struct process_info): Add th member.
21010 (thread_db_get_tls_address): New prototype.
21011 * remote-utils.c (decode_address): Make non-static.
21012 * server.c (handle_query): Handle qGetTLSAddr.
21013 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21014 * target.h (struct target_ops): Add get_tls_address.
21015 * thread-db.c (maybe_attach_thread): Save the thread handle.
21016 (thread_db_get_tls_address): New.
21018 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21020 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21021 (linux_resume_one_process): Take a siginfo_t *. Update all
21022 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21023 (struct pending_signals): Add a siginfo_t.
21024 (linux_wait_for_process): Always set last_status.
21025 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21026 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21027 * linux-low.h (struct process_info): Add last_status.
21029 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21031 * remote-utils.c (try_rle): New function.
21032 (putpkt_binary): Use it.
21034 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21036 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21037 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21038 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21039 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21040 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21043 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21045 * server.c (terminal_fd): New variable.
21046 (old_foreground_pgrp): Likewise.
21047 (restore_old_foreground_pgrp): New function.
21048 (start_inferior): Record the terminal file descriptor in terminal_fd
21049 and its original foreground group in old_foreground_pgrp. Register
21050 restore_old_foreground_pgrp with atexit().
21052 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21054 * server.c (handle_query): Correct qPart to qXfer.
21056 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21058 * configure.ac: Check for more headers which are missing on
21059 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21060 * configure.srv: Add Cygwin and mingw32.
21061 * remote-utils.c: Don't include headers unconditionally which
21062 are missing on mingw32. Include <winsock.h> for mingw32.
21063 (remote_open): Adjust for mingw32 support. Flush
21064 standard error after writing to it.
21065 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21066 (unblock_async_io, enable_async_io, disable_async_io)
21067 (readchar, getpkt): Update for Winsock support.
21068 (prepare_resume_reply): Expect a protocol signal number.
21069 * server.c: Disable <sys/wait.h> on mingw32.
21070 (start_inferior): Adjust for mingw32 support. Flush
21071 standard error after writing to it.
21072 (attach_inferior): Likewise. Use protocol signal
21074 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21076 * win32-i386-low.c: New file.
21077 * Makefile.in (XM_CLIBS): Set.
21078 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21079 (win32-i386-low.o): New dependency rule.
21080 * linux-low.c (linux_wait): Use target signal numbers.
21081 * target.h (struct target_ops): Doc fix.
21082 * server.h (target_signal_to_name): New prototype.
21083 * gdbreplay.c: Don't include headers unconditionally which
21084 are missing on mingw32. Include <winsock.h> for mingw32.
21085 (remote_close, remote_open): Adjust for Winsock support.
21086 * configure, config.in: Regenerated.
21088 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21090 * server.c (decode_xfer_read, write_qxfer_response): New.
21091 (handle_query): Take a packet length argument. Handle
21092 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21093 the qSupported response.
21094 (main): Update call to handle_query.
21096 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21098 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21099 (putpkt_binary): Renamed from putpkt and adjusted for binary
21101 (putpkt): New wrapper for putpkt_binary.
21102 (readchar): Don't mask off the high bit.
21103 (decode_X_packet): New function.
21104 * server.c (main): Call putpkt_binary if a handler sets the packet
21105 length. Save the length of the incoming packet. Handle 'X'.
21106 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21108 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21110 * server.c (handle_query): Handle qSupported.
21112 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21114 * remote-utils.c (all_symbols_looked_up): New variable.
21115 (look_up_one_symbol): Check it.
21116 * server.h (look_up_one_symbol): New declaration.
21117 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21119 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21121 * Makefile.in (linux-arm-low.o): Update dependencies.
21122 * linux-arm-low.c: Include "gdb_proc_service.h".
21123 (PTRACE_GET_THREAD_AREA): Define.
21124 (ps_get_thread_area): New function.
21126 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21128 * configure.srv (m68k*-*-uclinux*): New target.
21129 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21130 (linux_resume_one_process): Remove extraneous cast.
21131 (linux_read_offsets): New.
21132 (linux_target_op): Add linux_read_offsets on mmuless systems.
21133 * server.c (handle_query): Add qOffsets logic.
21134 * target.h (struct target_ops): Add read_offsets.
21136 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21138 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21139 (PTRACE_GET_THREAD_AREA): Define.
21140 (ps_get_thread_area): New function.
21141 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21142 (linux-x86-64-low.o): Update.
21144 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21146 * configure.ac: Remove checks for prfpregset_t.
21147 * gdb_proc_service.h: New file.
21148 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21149 new "gdb_proc_service.h".
21150 * proc-service.c: Likewise.
21151 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21152 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21153 * Makefile.in (gdb_proc_service_h): Updated.
21154 * configure, config.in: Regenerated.
21156 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21158 * remote-utils.c (prepare_resume_reply): Move declaration
21159 of gdb_id_from_wait to the top of the block.
21161 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21163 * linux-low.c (regsets_store_inferior_registers): Read the regset
21164 from the target before filling it.
21166 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21168 * server.c (attach_inferior): Return SIGTRAP for a successful
21171 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21173 * Makefile.in (OBS): Add version.o.
21174 (STAGESTUFF): Delete.
21175 (version.o): Add dependencies.
21176 (version.c): Replace rule.
21177 (clean): Remove version.c.
21178 * server.c (gdbserver_version): New.
21179 (gdbserver_usage): Use printf.
21180 (main): Handle --version and --help.
21181 * server.h (version, host_name): Add declarations.
21183 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21195 * linux-x86-64-low.c:
21197 * linux-s390-low.c:
21198 * linux-ppc64-low.c:
21200 * linux-mips-low.c:
21201 * linux-m68k-low.c:
21202 * linux-m32r-low.c:
21205 * linux-ia64-low.c:
21206 * linux-i386-low.c:
21207 * linux-crisv32-low.c:
21219 * gdbserver.1: Add (C) after Copyright. Update the FSF
21222 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21224 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21225 (arm_breakpoint_at): Recognize both breakpoints.
21226 (the_low_target): Use the correct breakpoint instruction.
21228 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21230 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21231 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21232 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21233 (the_low_target): Update.
21235 2005-10-25 Andreas Schwab <schwab@suse.de>
21237 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21239 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21240 (ia64_num_regs): Reduce to 462.
21242 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21244 * acinclude.m4: Correct quoting.
21245 * aclocal.m4: Regenerated.
21247 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21248 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21249 (thread_db_init): Call thread_db_err_str.
21250 * configure.ac: Check for TD_VERSION.
21251 * config.in, configure: Regenerated.
21253 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21255 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21257 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21259 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21260 is not available. Define HAVE_PTRACE_GETREGS if it is.
21261 * config.in, configure: Regenerated.
21262 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21263 * linux-i386-low.c, linux-m68k-low.c: Update to use
21264 HAVE_PTRACE_GETREGS.
21265 * linux-low.c (regsets_fetch_inferior_registers)
21266 (regsets_store_inferior_registers): Only return 0 if we processed
21268 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21269 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21271 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21273 * inferiors.c (struct thread_info): Add gdb_id.
21274 (add_thread): Add gdb_id argument.
21275 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21276 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21277 calls to add_thread.
21278 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21279 * server.c (handle_query): Use thread_to_gdb_id.
21280 (handle_v_cont, main): Use gdb_id_to_thread_id.
21281 * server.h (add_thread): Update prototype.
21282 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21285 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21287 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21288 left-padded registers.
21289 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21290 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21292 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21294 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21295 * configure: Regenerate.
21296 * config.in: Regenerate.
21297 * server.h (NEED_DECLARATION_STRERROR):
21298 Replace with !HAVE_DECL_STRERROR.
21300 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21302 * linux-low.c (linux_wait, linux_send_signal): Don't test
21303 an unsigned long variable for > 0 if it could be MAX_ULONG.
21304 * server.c (myresume): Likewise.
21305 * target.c (set_desired_inferior): Likewise.
21307 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21309 * configure.ac: Simplify and improve check for socklen_t.
21310 * configure, config.in: Regenerate.
21312 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21314 * acconfig.h: Remove.
21315 * configure.ac: Add a test for socklen_t. Use three-argument
21316 AC_DEFINE throughout.
21317 * config.in: Regenerated using autoheader 2.59.
21318 * configure: Regenerated.
21320 * gdbreplay.c (socklen_t): Provide a default.
21321 (remote_open): Use socklen_t.
21322 * remote-utils.c (socklen_t): Provide a default.
21323 (remote_open): Use socklen_t.
21324 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21327 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21329 * linux-low.c (linux_read_memory, linux_write_memory)
21330 (linux_read_auxv): Likewise.
21331 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21332 (check_mem_write): Likewise.
21333 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21335 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21336 (registers_from_string, register_data): Likewise.
21337 * server.c (handle_query, main): Likewise.
21338 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21339 (decode_M_packet): Likewise.
21340 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21341 * target.h (struct target_ops): Update read_memory, write_memory,
21343 (read_inferior_memory, write_inferior_memory): Update.
21344 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21345 to unsigned char *.
21346 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21347 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21348 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21349 linux-s390-low.c, linux-sh-low.c: Update for changes in
21350 read_inferior_memory and the_low_target->breakpoint.
21352 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21354 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21355 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21356 * configure.srv: Add powerpc64-*-linux*.
21357 * linux-ppc64-low.c: New file.
21359 2005-05-23 Orjan Friberg <orjanf@axis.com>
21361 * linux-cris-low.c: New file with support for CRIS.
21362 * linux-crisv32-low.c: Ditto for CRISv32.
21363 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21364 (clean): Add reg-cris.c and reg-crisv32.c.
21365 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21366 reg-crisv32.o, and reg-crisv32.c to make rules.
21367 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21368 recognized targets.
21370 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21372 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21373 of sizeof (PTRACE_XFER_TYPE).
21374 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21376 2005-05-12 Orjan Friberg <orjanf@axis.com>
21378 * target.h (struct target_ops): Add insert_watchpoint,
21379 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21380 pointers for hardware watchpoint support.
21381 * linux-low.h (struct linux_target_ops): Ditto.
21382 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21383 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21384 to linux_target_ops.
21385 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21387 * server.c (main): Recognize 'Z' and 'z' packets.
21389 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21391 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21392 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21393 (the_low_target): Add new members.
21395 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21397 * proc-service.c (ps_lgetregs): Search all_processes instead of
21400 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21402 * server.c (start_inferior): Change return type to int.
21403 (attach_inferior): Change sigptr to int *.
21404 (handle_v_cont, handle_v_requests): Change signal to int *.
21405 (main): Change signal to int.
21407 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21409 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21410 * configure.srv: Add m32r*-*-linux*.
21411 * linux-m32r-low.c: New file.
21413 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21415 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21417 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21419 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21420 Take unsigned long arguments for PIDs.
21421 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21422 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21423 (wait_for_sigstop, linux_resume_one_process)
21424 (regsets_fetch_inferior_registers, linux_send_signal)
21425 (linux_read_auxv): Likewise. Update the types of variables holding
21426 PIDs. Update format string specifiers.
21427 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21428 * remote-utils.c (prepare_resume_reply): Likewise.
21429 * server.c (cont_thread, general_thread, step_thread)
21430 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21432 (handle_query): Update format specifiers.
21433 (handle_v_cont, main): Use strtoul for thread IDs.
21434 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21435 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21436 (general_thread, step_thread, thread_from_wait)
21437 (old_thread_from_wait): Update.
21438 * target.h (struct thread_resume): Use unsigned long for THREAD.
21439 (struct target_ops): Use unsigned long for arguments to attach and
21442 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21444 * acinclude.m4: Include bfd/bfd.m4 directly.
21445 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21446 <agriffis@toolchain.org>.
21447 * aclocal.m4, configure: Regenerated.
21449 2005-01-07 Andrew Cagney <cagney@gnu.org>
21451 * configure.ac: Rename configure.in, require autoconf 2.59.
21452 * configure: Re-generate.
21454 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21456 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21457 LIBS when finished.
21458 * aclocal.m4: Regenerated.
21459 * configure: Regenerated.
21461 2004-11-21 Andreas Schwab <schwab@suse.de>
21463 * linux-m68k-low.c (m68k_num_gregs): Define.
21464 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21465 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21466 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21467 (m68k_breakpoint_at): New. Add to the_low_target.
21469 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21470 srv_linux_thread_db to yes.
21472 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21474 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21475 (ARCH_SET_FS): Likewise.
21476 (ARCH_GET_FS): Likewise.
21477 (ARCH_GET_GS): Likewise.
21479 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21481 * linux-i386-low.c (ps_get_thread_area): New.
21482 * linux-x86-64-low.c (ps_get_thread_area): New.
21483 * linux-low.c: Include <sys/syscall.h>.
21484 (linux_kill_one_process): Don't kill the first thread here.
21485 (linux_kill): Kill the first thread here.
21486 (kill_lwp): New function.
21487 (send_sigstop, linux_send_signal): Use it.
21488 * proc-service.c: Clean up #ifdefs.
21489 (fpregset_info): Delete.
21490 (ps_lgetregs): Update and enable implementation.
21491 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21493 * remote-utils.c (struct sym_cache, symbol_cache): New.
21494 (input_interrupt): Print a clearer message.
21495 (async_io_enabled): New variable.
21496 (enable_async_io, disable_async_io): Use it. Update comments.
21497 (look_up_one_symbol): Use the symbol cache.
21498 * thread-db.c (thread_db_look_up_symbols): New function.
21499 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21501 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21503 * configure.in: Test for -rdynamic.
21504 * configure: Regenerated.
21505 * Makefile (INTERNAL_LDFLAGS): New.
21506 (gdbserver, gdbreplay): Use it.
21508 2004-09-02 Andrew Cagney <cagney@gnu.org>
21510 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21512 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21514 * linux-low.c (linux_wait): Clear all_processes list also.
21516 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21518 * linux-low.c: Include <errno.h>. Remove extern declaration of
21521 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21523 * gdbreplay.c, server.h, utils.c: Update copyright years.
21525 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21527 * server.c (main): Print child status or termination signal from
21528 variable 'signal', not 'sig'.
21530 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21532 * linux-low.c (linux_read_memory): Change return type to
21533 int. Check for and return error from ptrace().
21534 * target.c (read_inferior_memory): Change return type to int. Pass
21535 back return status from the_target->read_memory().
21536 * target.h (struct target_ops): Adapt *read_memory() prototype.
21538 (read_inferior_memory): Adapt prototype.
21539 * server.c (main): Return an error packet if
21540 read_inferior_memory() returns an error.
21542 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21544 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21545 Unify with other clean targets.
21547 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21549 * server.c (handle_v_cont): Call set_desired_inferior.
21551 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21553 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21555 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21557 * linux-low.c (linux_wait): Unblock async I/O.
21558 (linux_resume): Block and enable async I/O.
21559 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21560 * server.h (block_async_io, unblock_async_io): Add prototypes.
21562 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21564 * remote-utils.c (remote_open): Print a status notice after
21565 opening a TCP port.
21566 * server.c (attach_inferior): Print a status notice after
21569 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21571 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21573 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21575 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21577 * server.c, target.h: Update copyright years.
21579 2004-02-25 Roland McGrath <roland@redhat.com>
21581 * target.h (struct target_ops): New member `read_auxv'.
21582 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21583 * linux-low.c (linux_read_auxv): New function.
21584 (linux_target_ops): Initialize `read_auxv' member to that.
21586 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21588 Committed by Jim Blandy <jimb@redhat.com>.
21590 * linux-s390-low.c (s390_num_regs): Update.
21591 (s390_regmap): Remove control registers. Use __s390x__ predefine
21592 instead of GPR_SIZE to distiguish s390 and s390x targets.
21594 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21596 * linux-low.c: Update copyright year.
21597 (check_removed_breakpoint): Clear pending_is_breakpoint.
21598 (linux_set_resume_request, linux_queue_one_thread)
21599 (resume_status_pending_p): New functions.
21600 (linux_continue_one_thread): Use process->resume.
21601 (linux_resume): Only resume threads if there are no pending events.
21602 * linux-low.h (struct process_info): Add resume request
21605 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21607 * regcache.c (new_register_cache): Clear the allocated register
21608 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21610 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21612 * linux-low.c (linux_resume): Take a struct thread_resume *
21614 (linux_wait): Update call.
21615 (resume_ptr): New static variable.
21616 (linux_continue_one_thread): Renamed from
21617 linux_continue_one_process. Use resume_ptr.
21618 (linux_resume): Use linux_continue_one_thread.
21619 * server.c (handle_v_cont, handle_v_requests): New functions.
21620 (myresume): New function.
21621 (main): Handle 'v' case.
21622 * target.h (struct thread_resume): New type.
21623 (struct target_ops): Change argument of "resume" to struct
21625 (myresume): Delete macro.
21627 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21629 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21630 (uninstall): Support DESTDIR.
21632 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21634 * configure.srv: Add xscale*linux copy of arm*linux entry.
21636 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21638 * linux-arm-low.c (arm_reinsert_addr): New function.
21639 (the_low_target): Add arm_reinsert_addr.
21641 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21643 * mem-break.c: Remove whitespace at end of file.
21645 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21647 * configure.in: Check whether we need to prototype strerror.
21648 * server.h: Optionally prototype strerror.
21649 * gdbreplay.c (perror_with_name): Use strerror.
21650 * linux-low.c (linux_attach_lwp): Use strerror.
21651 * utils.c (perror_with_name): Use strerror.
21652 * config.in, configure: Regenerated.
21654 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21656 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21657 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21659 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21661 * Makefile.in (SFILES): Update.
21662 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21663 low-sun3.c: Remove files.
21665 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21667 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21668 (linux_detach_one_process, linux_detach): New functions.
21669 (linux_target_ops): Add linux_detach.
21670 * server.c (main): Handle 'D' packet.
21671 * target.h (struct target_ops): Add "detach" member.
21672 (detach_inferior): Define.
21674 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21676 From Kelley Cook <kelleycook@wideopenwest.com>:
21677 * configure.srv: Accept i[34567]86 variants.
21679 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21681 * linux-low.c (linux_wait_for_event): Correct comment typos.
21682 (linux_resume_one_process): Call check_removed_breakpoint.
21683 (linux_send_signal): New function.
21684 (linux_target_ops): Add linux_send_signal.
21685 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21687 * target.h (struct target_ops): Add send_signal.
21689 2003-05-29 Jim Blandy <jimb@redhat.com>
21691 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21692 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21693 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21694 away part of the register's value.
21696 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21698 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21699 (linux_wait_for_event, linux_init_signals): Likewise.
21701 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21703 * configure.in: Check for stdlib.h.
21704 * configure: Regenerated.
21705 * config.in: Regenerated.
21707 2003-01-04 Andreas Schwab <schwab@suse.de>
21709 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21711 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21713 * Makefile.in: Remove obsolete code.
21715 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21717 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21718 defined(PT_FPR0_HI).
21720 2002-11-17 Stuart Hughes <seh@zee2.com>
21722 * linux-arm-low.c (arm_num_regs): Increase.
21723 (arm_regmap): Include status register.
21725 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21727 * linux-low.c (register_addr): Remove incorrect -1 check.
21729 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21731 * linux-low.c (linux_create_inferior): Call setpgid. Return
21733 (unstopped_p, linux_signal_pid): Remove.
21734 (linux_target_ops): Remove linux_signal_pid.
21735 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21736 global instead of target method.
21737 * target.h (struct target_ops): Remove signal_pid. Update comment
21738 for create_inferior.
21739 * server.c (signal_pid): New variable.
21740 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21741 gdbserver. Set the child to be the foreground process group.
21742 (attach_inferior): Set signal_pid.
21744 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21746 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21748 2002-08-20 Jim Blandy <jimb@redhat.com>
21750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21753 2002-08-01 Andrew Cagney <cagney@redhat.com>
21755 * Makefile.in: Make chill references obsolete.
21757 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21759 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21760 * configure: Regenerate.
21761 * config.in: Regenerate.
21763 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21765 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21766 (perror_with_name, remote_close, remote_open, expect, play): Static.
21768 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21770 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21771 byte offsets instead of an array of indexes.
21772 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21774 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21776 * regcache.c: Add comment.
21778 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21780 * thread-db.c: New file.
21781 * proc-service.c: New file.
21782 * acinclude.m4: New file.
21783 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21784 proc-service.o, and thread-db.o.
21785 (linux-low.o): Add USE_THREAD_DB.
21786 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21787 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21788 * aclocal.m4: Regenerated.
21789 * config.in: Regenerated.
21790 * configure: Regenerated.
21791 * configure.in: Check for proc_service.h, sys/procfs.h,
21792 thread_db.h, and linux/elf.h headrs.
21793 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21794 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21795 Check for -lthread_db and thread support.
21796 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21797 PowerPC, and SuperH.
21798 * i387-fp.c: Constify arguments.
21799 * i387-fp.h: Likewise.
21800 * inferiors.c: (struct thread_info): Renamed from
21801 `struct inferior_info'. Remove PID member. Use generic inferior
21802 list header. All uses updated.
21803 (inferiors, signal_pid): Removed.
21804 (all_threads): New variable.
21805 (get_thread): Define.
21806 (add_inferior_to_list): New function.
21807 (for_each_inferior): New function.
21808 (change_inferior_id): New function.
21809 (add_inferior): Removed.
21810 (remove_inferior): New function.
21811 (add_thread): New function.
21812 (free_one_thread): New function.
21813 (remove_thread): New function.
21814 (clear_inferiors): Use for_each_inferior and free_one_thread.
21815 (find_inferior): New function.
21816 (find_inferior_id): New function.
21817 (inferior_target_data): Update argument type.
21818 (set_inferior_target_data): Likewise.
21819 (inferior_regcache_data): Likewise.
21820 (set_inferior_regcache_data): Likewise.
21821 * linux-low.c (linux_bp_reinsert): Remove.
21822 (all_processes, stopping_threads, using_thrads)
21823 (struct pending_signals, debug_threads, pid_of): New.
21824 (inferior_pid): Replace with macro.
21825 (struct inferior_linux_data): Remove.
21826 (get_stop_pc, add_process): New functions.
21827 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21828 Use add_process and add_thread.
21829 (linux_attach_lwp): New function, based on old linux_attach. Use
21830 add_process and add_thread. Set stop_expected for new threads.
21831 (linux_attach): New function.
21832 (linux_kill_one_process): New function.
21833 (linux_kill): Kill all LWPs.
21834 (linux_thread_alive): Use find_inferior_id.
21835 (check_removed_breakpoints, status_pending_p): New functions.
21836 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21837 Update. Use WNOHANG. Wait for cloned processes also. Update process
21838 struct for the found process.
21839 (linux_wait_for_event): New function.
21840 (linux_wait): Use it. Support LWPs.
21841 (send_sigstop, wait_for_sigstop, stop_all_processes)
21842 (linux_resume_one_process, linux_continue_one_process): New functions.
21843 (linux_resume): Support LWPs.
21844 (REGISTER_RAW_SIZE): Remove.
21845 (fetch_register): Use register_size instead. Call supply_register.
21846 (usr_store_inferior_registers): Likewise. Call collect_register.
21847 Fix recursive case.
21848 (regsets_fetch_inferior_registers): Improve error message.
21849 (regsets_store_inferior_registers): Add debugging.
21850 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21851 (unstopped_p, linux_signal_pid): New functions.
21852 (linux_target_ops): Add linux_signal_pid.
21853 (linux_init_signals): New function.
21854 (initialize_low): Call it. Initialize using_threads.
21855 * regcache.c (inferior_regcache_data): Add valid
21857 (get_regcache): Fetch registers lazily. Add fetch argument
21858 and update all callers.
21859 (regcache_invalidate_one, regcache_invalidate): New
21861 (new_register_cache): Renamed from create_register_cache.
21862 Return the new regcache.
21863 (free_register_cache): Change argument to a void *.
21864 (registers_to_string, registers_from_string): Call get_regcache
21865 with fetch flag set.
21866 (register_data): Make static. Pass fetch flag to get_regcache.
21867 (supply_register): Call get_regcache with fetch flag clear.
21868 (collect_register): Call get_regcache with fetch flag set.
21869 (collect_register_as_string): New function.
21870 * regcache.h: Update.
21871 * remote-utils.c (putpkt): Flush after debug output and use
21873 Handle input interrupts while waiting for an ACK.
21874 (input_interrupt): Use signal_pid method.
21875 (getpkt): Flush after debug output and use stderr.
21876 (outreg): Use collect_register_as_string.
21877 (new_thread_notify, dead_thread_notify): New functions.
21878 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21879 and general_thread.
21880 (look_up_one_symbol): Flush after debug output.
21881 * server.c (step_thread, server_waiting): New variables.
21882 (start_inferior): Don't use signal_pid. Update call to mywait.
21883 (attach_inferior): Update call to mywait.
21884 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21885 (main): Don't fetch/store registers explicitly. Use
21886 set_desired_inferior. Support proposed ``Hs'' packet. Update
21888 * server.h: Update.
21889 (struct inferior_list, struct_inferior_list_entry): New.
21890 * target.c (set_desired_inferior): New.
21891 (write_inferior_memory): Constify.
21892 (mywait): New function.
21893 * target.h: Update.
21894 (struct target_ops): New signal_pid method.
21895 (mywait): Removed macro, added prototype.
21897 * linux-low.h (regset_func): Removed.
21898 (regset_fill_func, regset_store_func): New.
21899 (enum regset_type): New.
21900 (struct regset_info): Add type field. Use new operation types.
21901 (struct linux_target_ops): stop_pc renamed to get_pc.
21902 Add decr_pc_after_break and breakpoint_at.
21903 (get_process, get_thread_proess, get_process_thread)
21904 (strut process_info, all_processes, linux_attach_lwp)
21905 (thread_db_init): New.
21907 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21908 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21909 (the_low_target): Add new members.
21910 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21911 (i386_store_fpxregset): Constify.
21912 (target_regsets): Add new kind identifier.
21913 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21914 (i386_set_pc): Add debugging.
21915 (i386_breakpoint_at): New function.
21916 (the_low_target): Add new members.
21917 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21918 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21919 (mips_breakpoint_at): New.
21920 (the_low_target): Add new members.
21921 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21922 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21923 (the_low_target): Add new members.
21924 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21925 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21926 (the_low_target): Add new members.
21927 * linux-x86-64-low.c (target_regsets): Add new kind
21930 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21932 From Martin Pool <mbp@samba.org>:
21933 * server.c (gdbserver_usage): New function.
21936 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21938 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21939 stop_at -> stop_pc.
21941 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21943 * Makefile.in: Remove obsolete code.
21945 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21947 * linux-low.c (regsets_fetch_inferior_registers),
21948 (regsets_store_inferior_registers): Removed cast to int from
21950 * regcache.h: Added declaration of struct inferior_info.
21952 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21954 * inferiors.c (struct inferior_info): Add regcache_data.
21955 (add_inferior): Call create_register_cache.
21956 (clear_inferiors): Call free_register_cache.
21957 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21958 * regcache.c (struct inferior_regcache_data): New.
21959 (registers): Remove.
21960 (get_regcache): New function.
21961 (create_register_cache, free_register_cache): New functions.
21962 (set_register_cache): Don't initialize the register cache here.
21963 (registers_to_string, registers_from_string, register_data): Call
21965 * regcache.h: Add prototypes.
21966 * server.h: Likewise.
21968 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21970 * mem-break.c: New file.
21971 * mem-break.h: New file.
21972 * Makefile.in: Add mem-break.o rule; update server.h
21974 * inferiors.c (struct inferior_info): Add target_data
21976 (clear_inferiors): Free target_data member if set.
21977 (inferior_target_data, set_inferior_target_data): New functions.
21978 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21979 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21980 * linux-low.c (linux_bp_reinsert): New variable.
21981 (struct inferior_linux_data): New.
21982 (linux_create_inferior): Use set_inferior_target_data.
21983 (linux_attach): Likewise. Call add_inferior.
21984 (linux_wait_for_one_inferior): New function.
21985 (linux_wait): Call it.
21986 (linux_write_memory): Add const.
21987 (initialize_low): Call set_breakpoint_data.
21988 * linux-low.h (struct linux_target_ops): Add breakpoint
21990 * server.c (attach_inferior): Remove extra add_inferior
21992 * server.h: Include mem-break.h. Update inferior.c
21994 * target.c (read_inferior_memory)
21995 (write_inferior_memory): New functions.
21996 * target.h (read_inferior_memory)
21997 (write_inferior_memory): Change macros to prototypes.
21998 (struct target_ops): Update comments. Add const to write_memory
22001 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22003 * linux-low.c (usr_store_inferior_registers): Support
22004 registers which are allowed to fail to store.
22005 * linux-low.h (linux_target_ops): Likewise.
22006 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22007 (ppc_cannot_store_register): FPSCR may not be storable.
22009 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22011 * server.h: Include <string.h> if HAVE_STRING_H.
22012 * ChangeLog: Correct paths in last ChangeLog entry.
22014 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22016 * linux-low.h: Remove obsolete prototypes.
22017 (struct linux_target_ops): New.
22018 (extern the_low_target): New.
22019 * linux-low.c (num_regs, regmap): Remove declarations.
22020 (register_addr): Use the_low_target explicitly.
22021 (fetch_register): Likewise.
22022 (usr_fetch_inferior_registers): Likewise.
22023 (usr_store_inferior_registers): Likewise.
22024 * linux-arm-low.c (num_regs): Remove.
22025 (arm_num_regs): Define.
22026 (arm_regmap): Renamed from regmap, made static.
22027 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22029 (arm_cannot_store_register): Renamed from cannot_store_register,
22031 (the_low_target): New.
22032 * linux-i386-low.c (num_regs): Remove.
22033 (i386_num_regs): Define.
22034 (i386_regmap): Renamed from regmap, made static.
22035 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22037 (i386_cannot_store_register): Renamed from cannot_store_register,
22039 (the_low_target): New.
22040 * linux-ia64-low.c (num_regs): Remove.
22041 (ia64_num_regs): Define.
22042 (ia64_regmap): Renamed from regmap, made static.
22043 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22045 (ia64_cannot_store_register): Renamed from cannot_store_register,
22047 (the_low_target): New.
22048 * linux-m68k-low.c (num_regs): Remove.
22049 (m68k_num_regs): Define.
22050 (m68k_regmap): Renamed from regmap, made static.
22051 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22053 (m68k_cannot_store_register): Renamed from cannot_store_register,
22055 (the_low_target): New.
22056 * linux-mips-low.c (num_regs): Remove.
22057 (mips_num_regs): Define.
22058 (mips_regmap): Renamed from regmap, made static.
22059 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22061 (mips_cannot_store_register): Renamed from cannot_store_register,
22063 (the_low_target): New.
22064 * linux-ppc-low.c (num_regs): Remove.
22065 (ppc_num_regs): Define.
22066 (ppc_regmap): Renamed from regmap, made static.
22067 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22069 (ppc_cannot_store_register): Renamed from cannot_store_register,
22071 (the_low_target): New.
22072 * linux-s390-low.c (num_regs): Remove.
22073 (s390_num_regs): Define.
22074 (s390_regmap): Renamed from regmap, made static.
22075 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22077 (s390_cannot_store_register): Renamed from cannot_store_register,
22079 (the_low_target): New.
22080 * linux-sh-low.c (num_regs): Remove.
22081 (sh_num_regs): Define.
22082 (sh_regmap): Renamed from regmap, made static.
22083 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22085 (sh_cannot_store_register): Renamed from cannot_store_register,
22087 (the_low_target): New.
22088 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22089 (the_low_target): New.
22091 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22093 * Makefile.in: Add stamp-h target.
22094 * configure.in: Create stamp-h.
22095 * configure: Regenerated.
22097 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22099 * inferiors.c: New file.
22100 * target.c: New file.
22101 * target.h: New file.
22102 * Makefile.in: Add target.o and inferiors.o. Update
22104 * linux-low.c (inferior_pid): New static variable,
22105 moved from server.c.
22106 (linux_create_inferior): Renamed from create_inferior.
22107 Call add_inferior. Return 0 on success instead of a PID.
22108 (linux_attach): Renamed from myattach.
22109 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22110 (linux_thread_alive): Renamed from mythread_alive.
22111 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22113 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22114 (regsets_store_inferior_registers): Correct error message.
22115 Add missing ``return 0''.
22116 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22117 (linux_store_registers): Renamed from store_inferior_registers.
22118 (linux_read_memory): Renamed from read_inferior_memory.
22119 (linux_write_memory): Renamed from write_inferior_memory.
22120 (linux_target_ops): New structure.
22121 (initialize_low): Call set_target_ops ().
22122 * remote-utils.c (unhexify): New function.
22123 (hexify): New function.
22124 (input_interrupt): Send signals to ``signal_pid''.
22125 * server.c (inferior_pid): Remove.
22126 (start_inferior): Update create_inferior call.
22127 (attach_inferior): Call add_inferior.
22128 (handle_query): New function.
22129 (main): Call handle_query for `q' packets.
22130 * server.h: Include "target.h". Remove obsolete prototypes.
22131 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22133 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22135 * Makefile.in: Add WARN_CFLAGS. Update configury
22137 * configure.in: Check for <string.h>
22138 * configure: Regenerate.
22139 * config.in: Regenerate.
22140 * gdbreplay.c: Include needed system headers.
22141 (remote_open): Remove strchr prototype.
22142 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22143 * regcache.c (supply_register): Change buf argument to const void *.
22144 (supply_register_by_name): Likewise.
22145 (collect_register): Change buf argument to void *.
22146 (collect_register_by_name): Likewise.
22147 * regcache.h: Add missing prototypes.
22148 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22149 * server.c (handle_query): New function.
22150 (attached): New static variable, moved out of main.
22151 (main): Quiet longjmp clobber warnings.
22152 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22153 * utils.c (error): Remove NORETURN.