1 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
3 * win32-i386-low.cc (i386_supports_z_point_type): Handle
5 (i386_insert_point): Handle raw_bkpt_type type.
6 (i386_remove_point): Likewise.
8 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
12 * win32-arm-low.cc (arm_num_regs): New function.
13 (struct win32_target_ops): Use arm_num_regs.
14 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
16 (i386_get_thread_context): Likewise.
17 (i386_prepare_to_resume): Likewise.
18 (i386_thread_added): Likewise.
19 (i386_single_step): Likewise.
20 (i386_fetch_inferior_register): Likewise.
21 (i386_store_inferior_register): Likewise.
22 (i386_arch_setup): Likewise.
23 (i386_win32_num_regs): New function.
24 (struct win32_target_ops): Use i386_win32_num_regs.
25 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
27 (win32_require_context): Likewise.
28 (child_add_thread): Likewise.
29 (do_initial_child_stuff): Likewise.
30 (continue_one_thread): Likewise.
31 (win32_process_target::resume): Likewise.
32 (load_psapi): Likewise.
33 (win32_add_all_dlls): Likewise.
34 (maybe_adjust_pc): Likewise.
35 (win32_process_target::qxfer_siginfo): Likewise.
36 (initialize_low): Likewise.
37 * win32-low.h (struct win32_target_ops): Change num_regs to
40 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
42 * configure.ac: Remove check for fs_base/gs_base in
44 * configure: Re-generate.
45 * config.in: Re-generate.
46 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
47 x86_store_gregset): Adjust.
49 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
51 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
54 2020-04-16 Tom Tromey <tromey@adacore.com>
56 * win32-low.cc (windows_nat::handle_access_violation): New
59 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
61 * win32-low.cc (get_child_debug_event): Fix format string warning.
63 2020-04-13 Tom Tromey <tom@tromey.com>
65 * server.h (gdb_fildes_t): Remove typedef.
66 * remote-utils.c (remote_desc, list_desc): Now int.
67 (INVALID_DESCRIPTOR): Remove.
68 (gdb_connected, remote_close)
69 (check_remote_input_interrupt_request): Update.
70 * utils.h (pfildes): Don't declare.
71 * utils.c (pfildes): Remove.
73 2020-04-13 Tom Tromey <tom@tromey.com>
75 * server.h (handle_serial_event, handle_target_event): Update.
76 * server.c: Don't call initialize_event_loop.
77 (keep_processing_events): New global.
78 (handle_serial_event): Return void. Set keep_processing_events.
79 (handle_target_event): Return void.
80 (start_event_loop): Move from event-loop.c. Rewrite.
81 * remote-utils.c (handle_accept_event): Return void.
82 (reset_readchar): Use delete_timer.
83 (process_remaining): Return void.
84 (reschedule): Use create_timer.
85 * event-loop.h: Remove.
86 * event-loop.cc: Remove.
87 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
89 2020-04-13 Tom Tromey <tom@tromey.com>
91 * server.c (invoke_async_signal_handlers)
92 (check_async_event_handlers, flush_streams, gdb_select): New
95 2020-04-13 Tom Tromey <tom@tromey.com>
100 2020-04-08 Tom Tromey <tromey@adacore.com>
103 * win32-low.c (child_continue): Call matching_pending_stop.
104 (get_child_debug_event): Call fetch_pending_stop. Push pending
107 2020-04-08 Tom Tromey <tromey@adacore.com>
109 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
110 (win32_process_target::supports_stopped_by_sw_breakpoint):
112 * win32-low.c (win32_supports_z_point_type): Always handle
114 (win32_insert_point): Call insert_memory_breakpoint when needed.
115 (win32_remove_point): Call remove_memory_breakpoint when needed.
116 (win32_process_target::stopped_by_sw_breakpoint)
117 (win32_process_target::supports_stopped_by_sw_breakpoint): New
119 (win32_target_ops): Update.
120 (maybe_adjust_pc): New function.
121 (win32_wait): Call maybe_adjust_pc.
123 2020-04-08 Tom Tromey <tromey@adacore.com>
125 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
127 * win32-i386-low.c (the_low_target): Update.
128 * win32-arm-low.c (the_low_target): Update.
130 2020-04-08 Tom Tromey <tromey@adacore.com>
132 * win32-low.h (win32_process_target::read_pc)
133 (win32_process_target::write_pc): Declare.
134 * win32-low.c (win32_process_target::read_pc)
135 (win32_process_target::write_pc): New methods.
136 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
138 (the_low_target): Update.
139 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
141 (the_low_target): Update.
143 2020-04-08 Tom Tromey <tromey@adacore.com>
145 * win32-low.c (win32_kill, get_child_debug_event): Use
146 wait_for_debug_event.
148 2020-04-08 Tom Tromey <tromey@adacore.com>
150 * win32-low.c (child_continue): Call continue_last_debug_event.
152 2020-04-08 Tom Tromey <tromey@adacore.com>
154 * win32-low.c (handle_exception): Remove.
155 (windows_nat::handle_ms_vc_exception): New function.
156 (get_child_debug_event): Add "continue_status" parameter.
158 (win32_wait): Update.
160 2020-04-08 Tom Tromey <tromey@adacore.com>
162 * win32-low.c (windows_nat::handle_load_dll): Rename from
163 handle_load_dll. No longer static.
164 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
167 2020-04-08 Tom Tromey <tromey@adacore.com>
169 * win32-low.c (handle_output_debug_string): Add parameter. Change
171 (win32_kill, get_child_debug_event): Update.
173 2020-04-08 Tom Tromey <tromey@adacore.com>
175 * win32-low.c (current_process_handle, current_process_id)
176 (main_thread_id, last_sig, current_event, siginfo_er): Move to
179 2020-04-08 Tom Tromey <tromey@adacore.com>
181 * win32-low.c (get_image_name): Remove.
182 (handle_load_dll): Update.
184 2020-04-08 Tom Tromey <tromey@adacore.com>
186 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
187 No longer static. Change parameters.
188 (child_add_thread, child_fetch_inferior_registers)
189 (child_store_inferior_registers, win32_resume)
190 (win32_get_tib_address): Update.
192 2020-04-08 Tom Tromey <tromey@adacore.com>
194 * win32-low.h (struct win32_target_ops): Use qualified names where
196 * win32-i386-low.c: Add "using namespace".
197 * win32-low.c: Add "using namespace".
198 * win32-arm-low.c: Add "using namespace".
200 2020-04-08 Tom Tromey <tromey@adacore.com>
202 * win32-low.c (delete_thread_info): Don't call CloseHandle.
204 2020-04-08 Tom Tromey <tromey@adacore.com>
206 * win32-low.c (win32_require_context, suspend_one_thread): Use
207 windows_thread_info::suspend.
208 (continue_one_thread): Use windows_thread_info::resume.
209 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
211 2020-04-08 Tom Tromey <tromey@adacore.com>
213 * win32-i386-low.c (update_debug_registers)
214 (i386_prepare_to_resume, i386_thread_added): Update.
216 2020-04-08 Tom Tromey <tromey@adacore.com>
218 * win32-low.c (child_add_thread): Use new.
219 (delete_thread_info): Use delete.
221 2020-04-08 Tom Tromey <tromey@adacore.com>
223 * win32-low.h (struct windows_thread_info): Remove.
225 2020-04-08 Tom Tromey <tromey@adacore.com>
227 * win32-low.h (struct windows_thread_info): Rename from
228 win32_thread_info. Remove typedef.
229 (struct win32_target_ops, win32_require_context): Update.
230 * win32-low.c (win32_get_thread_context)
231 (win32_set_thread_context, win32_prepare_to_resume)
232 (win32_require_context, thread_rec, child_add_thread)
233 (delete_thread_info, continue_one_thread)
234 (child_fetch_inferior_registers, child_store_inferior_registers)
235 (win32_resume, suspend_one_thread, win32_get_tib_address):
237 * win32-i386-low.c (update_debug_registers)
238 (win32_get_current_dr, i386_get_thread_context)
239 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
240 (i386_fetch_inferior_register, i386_store_inferior_register):
242 * win32-arm-low.c (arm_get_thread_context)
243 (arm_fetch_inferior_register, arm_store_inferior_register):
246 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
248 * linux-low.h (struct linux_target_ops): Remove.
249 (the_low_target): Remove.
250 * linux-x86-low.cc (the_low_target): Remove.
251 * linux-aarch64-low.cc (the_low_target): Ditto.
252 * linux-arm-low.cc (the_low_target): Ditto.
253 * linux-bfin-low.cc (the_low_target): Ditto.
254 * linux-cris-low.cc (the_low_target): Ditto.
255 * linux-crisv32-low.cc (the_low_target): Ditto.
256 * linux-ia64-low.cc (the_low_target): Ditto.
257 * linux-m32r-low.cc (the_low_target): Ditto.
258 * linux-m68k-low.cc (the_low_target): Ditto.
259 * linux-mips-low.cc (the_low_target): Ditto.
260 * linux-nios2-low.cc (the_low_target): Ditto.
261 * linux-ppc-low.cc (the_low_target): Ditto.
262 * linux-riscv-low.cc (the_low_target): Ditto.
263 * linux-s390-low.cc (the_low_target): Ditto.
264 * linux-sh-low.cc (the_low_target): Ditto.
265 * linux-sparc-low.cc (the_low_target): Ditto.
266 * linux-tic6x-low.cc (the_low_target): Ditto.
267 * linux-tile-low.cc (the_low_target): Ditto.
268 * linux-xtensa-low.cc (the_low_target): Ditto.
270 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
272 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
273 linux target define the op by overriding the declaration in
274 process_stratum_target.
276 * linux-low.h (struct linux_target_ops): Remove the op.
277 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
278 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
279 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
280 (x86_get_ipa_tdesc_idx): Turn into...
281 (x86_target::get_ipa_tdesc_idx): ...this.
282 (the_low_target): Remove the op field.
283 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
284 (ppc_get_ipa_tdesc_idx): Turn into...
285 (ppc_target::get_ipa_tdesc_idx): ...this.
286 (the_low_target): Remove the op field.
287 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
288 (s390_get_ipa_tdesc_idx): Turn into...
289 (s390_target::get_ipa_tdesc_idx): ...this.
290 (the_low_target): Remove the op field.
292 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
294 Turn the 'get_syscall_trapinfo' linux target op into a method
295 of process_stratum_target.
297 * linux-low.h (struct linux_target_ops): Remove the op.
298 (class linux_process_target) <get_syscall_trapinfo>
299 <gdb_catch_this_syscall>
300 <low_supports_catch_syscall>
301 <low_get_syscall_trapinfo>: Declare.
302 * linux-low.cc (get_syscall_trapinfo): Turn into...
303 (linux_process_target::get_syscall_trapinfo): ...this.
304 (linux_process_target::low_get_syscall_trapinfo): Define.
305 (gdb_catch_this_syscall_p): Turn into...
306 (linux_process_target::gdb_catch_this_syscall): ...this.
307 (linux_process_target::low_supports_catch_syscall): Define.
309 Update the callers below.
311 (linux_process_target::wait_1)
312 (linux_process_target::supports_catch_syscall)
314 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
315 <low_get_syscall_trapinfo>: Declare.
316 (x86_target::low_supports_catch_syscall): Define.
317 (x86_get_syscall_trapinfo): Turn into...
318 (x86_target::low_get_syscall_trapinfo): ...this.
319 (the_low_target): Remove the op field.
320 * linux-aarch64-low.cc (class aarch64_target)
321 <low_supports_catch_syscall>
322 <low_get_syscall_trapinfo>: Declare.
323 (aarch64_target::low_supports_catch_syscall): Define.
324 (aarch64_get_syscall_trapinfo): Turn into...
325 (aarch64_target::low_get_syscall_trapinfo): ...this.
326 (the_low_target): Remove the op field.
327 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
328 <low_get_syscall_trapinfo>: Declare.
329 (arm_target::low_supports_catch_syscall): Define.
330 (arm_get_syscall_trapinfo): Turn into...
331 (arm_target::low_get_syscall_trapinfo): ...this.
332 (the_low_target): Remove the op field.
333 * linux-ppc-low.cc (the_low_target): Remove the op field.
334 * linux-s390-low.cc (the_low_target): Remove the op field.
336 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 Remove the 'supports_hardware_single_step' linux target op and
339 override the process_stratum_target's op definition in
340 linux_process_target to return true.
342 * linux-low.h (struct linux_target_ops): Remove the op.
343 (class linux_process_target) <finish_step_over>
344 <maybe_hw_step>: Declare.
345 * linux-low.cc (can_hardware_single_step): Remove.
346 (maybe_hw_step): Turn into...
347 (linux_process_target::maybe_hw_step): ...this.
348 (finish_step_over): Turn into...
349 (linux_process_target::finish_step_over): ...this.
350 (linux_process_target::supports_hardware_single_step): Update
353 Update the callers below.
355 (linux_process_target::single_step)
356 (linux_process_target::resume_one_lwp_throw)
358 * linux-arm-low.cc (class arm_target)
359 <supports_hardware_single_step>: Declare.
360 (arm_supports_hardware_single_step): Turn into...
361 (arm_target::supports_hardware_single_step): ...this.
362 (the_low_target): Remove the op field.
363 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
364 (the_low_target): Remove the op field.
365 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
367 (the_low_target): Remove the op field.
368 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
369 (the_low_target): Remove the op field.
370 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
371 (the_low_target): Remove the op field.
372 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
373 (the_low_target): Remove the op field.
374 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
375 (the_low_target): Remove the op field.
376 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
377 (the_low_target): Remove the op field.
378 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
381 (the_low_target): Remove the op field.
382 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
383 (the_low_target): Remove the op field.
384 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
385 (the_low_target): Remove the op field.
386 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
388 (the_low_target): Remove the op field.
390 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
392 Turn the 'supports_range_stepping' linux target op into a method
393 of linux_process_target.
395 * linux-low.h (struct linux_target_ops): Remove the op.
396 (class linux_process_target) <low_supports_range_stepping>: Declare.
397 * linux-low.cc (linux_process_target::low_supports_range_stepping):
399 (linux_process_target::supports_range_stepping): Update the call
401 * linux-x86-low.cc (class x86_target)
402 <low_supports_range_stepping>: Declare.
403 (x86_supports_range_stepping): Turn into...
404 (x86_target::low_supports_range_stepping): ...this.
405 (the_low_target): Remove the op field.
406 * linux-aarch64-low.cc (class aarch64_target)
407 <low_supports_range_stepping>: Declare.
408 (aarch64_supports_range_stepping): Turn into...
409 (aarch64_target::low_supports_range_stepping): ...this.
410 (the_low_target): Remove the op field.
411 * linux-arm-low.cc (the_low_target): Remove the op field.
412 * linux-bfin-low.cc (the_low_target): Ditto.
413 * linux-crisv32-low.cc (the_low_target): Ditto.
414 * linux-m32r-low.cc (the_low_target): Ditto.
415 * linux-m68k-low.cc (the_low_target): Ditto.
416 * linux-ppc-low.cc (the_low_target): Ditto.
417 * linux-s390-low.cc (the_low_target): Ditto.
418 * linux-sh-low.cc (the_low_target): Ditto.
419 * linux-tic6x-low.cc (the_low_target): Ditto.
420 * linux-tile-low.cc (the_low_target): Ditto.
421 * linux-xtensa-low.cc (the_low_target): Ditto.
423 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
425 Remove the 'emit_ops' linux target ops and let the concrete
426 linux target define the op by overriding the declaration of
427 process_stratum_target.
429 * linux-low.h (struct linux_target_ops): Remove the op.
430 (class linux_process_target) <emit_ops>: Remove.
431 * linux-low.cc (linux_process_target::emit_ops): Remove.
432 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
433 (x86_emit_ops): Turn into...
434 (x86_target::emit_ops): ...this.
435 (the_low_target): Remove the op field.
436 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
437 (aarch64_emit_ops): Turn into...
438 (aarch64_target::emit_ops): ...this.
439 (the_low_target): Remove the op field.
440 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
441 (ppc_emit_ops): Turn into...
442 (ppc_target::emit_ops): ...this.
443 (the_low_target): Remove the op field.
444 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
445 (s390_emit_ops): Turn into...
446 (s390_target::emit_ops): ...this.
447 (the_low_target): Remove the op field.
448 * linux-arm-low.cc (the_low_target): Remove the op field.
449 * linux-bfin-low.cc (the_low_target): Ditto.
450 * linux-crisv32-low.cc (the_low_target): Ditto.
451 * linux-m32r-low.cc (the_low_target): Ditto.
452 * linux-m68k-low.cc (the_low_target): Ditto.
453 * linux-sh-low.cc (the_low_target): Ditto.
454 * linux-tic6x-low.cc (the_low_target): Ditto.
455 * linux-tile-low.cc (the_low_target): Ditto.
456 * linux-xtensa-low.cc (the_low_target): Ditto.
458 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460 Remove the 'install_fast_tracepoint_jump_pad' and
461 'get_min_fast_tracepoint_insn_len' linux target ops to let the
462 concrete linux target define the ops by overriding the declarations
463 of process_stratum_target.
465 * linux-low.h (struct linux_target_ops): Remove the ops.
466 (class linux_process_target) <supports_fast_tracepoints>
467 <install_fast_tracepoint_jump_pad>
468 <get_min_fast_tracepoint_insn_len>: Remove.
469 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
470 (linux_process_target::install_fast_tracepoint_jump_pad)
471 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
472 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
473 <install_fast_tracepoint_jump_pad>
474 <get_min_fast_tracepoint_insn_len>: Declare.
475 (x86_target::supports_fast_tracepoints): Define.
476 (x86_install_fast_tracepoint_jump_pad): Turn into...
477 (x86_target::install_fast_tracepoint_jump_pad): ...this.
478 (x86_get_min_fast_tracepoint_insn_len): Turn into...
479 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
480 (the_low_target): Remove the op fields.
481 * linux-aarch64-low.cc (class aarch64_target)
482 <supports_fast_tracepoints>
483 <install_fast_tracepoint_jump_pad>
484 <get_min_fast_tracepoint_insn_len>: Declare.
485 (aarch64_target::supports_fast_tracepoints): Define.
486 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
487 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
488 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
489 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
490 (the_low_target): Remove the op fields.
491 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
492 <install_fast_tracepoint_jump_pad>
493 <get_min_fast_tracepoint_insn_len>: Declare.
494 (ppc_target::supports_fast_tracepoints): Define.
495 (ppc_install_fast_tracepoint_jump_pad): Turn into...
496 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
497 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
498 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
499 (the_low_target): Remove the op fields.
500 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
501 <install_fast_tracepoint_jump_pad>
502 <get_min_fast_tracepoint_insn_len>: Declare.
503 (s390_target::supports_fast_tracepoints): Define.
504 (s390_install_fast_tracepoint_jump_pad): Turn into...
505 (s390_target::install_fast_tracepoint_jump_pad): ...this.
506 (s390_get_min_fast_tracepoint_insn_len): Turn into...
507 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
508 (the_low_target): Remove the op fields.
509 * linux-arm-low.cc (the_low_target): Remove the op fields.
510 * linux-bfin-low.cc (the_low_target): Ditto.
511 * linux-crisv32-low.cc (the_low_target): Ditto.
512 * linux-m32r-low.cc (the_low_target): Ditto.
513 * linux-m68k-low.cc (the_low_target): Ditto.
514 * linux-sh-low.cc (the_low_target): Ditto.
515 * linux-tic6x-low.cc (the_low_target): Ditto.
516 * linux-tile-low.cc (the_low_target): Ditto.
517 * linux-xtensa-low.cc (the_low_target): Ditto.
519 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
521 Turn the 'get_thread_area' linux target op into a method of
522 process_stratum_target.
524 * linux-low.h (struct linux_target_ops): Remove the op.
525 (class linux_process_target) <stuck_in_jump_pad>
526 <linux_fast_tracepoint_collecting>
527 <low_get_thread_area>: Declare.
528 * linux-low.cc (supports_fast_tracepoints): Remove.
529 (linux_fast_tracepoint_collecting): Turn into...
530 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
531 (linux_process_target::low_get_thread_area): Define.
532 (stuck_in_jump_pad_callback): Turn into...
533 (linux_process_target::stuck_in_jump_pad): ...this.
535 Update the caller below.
537 (linux_process_target::stabilize_threads)
539 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
541 (x86_get_thread_area): Turn into...
542 (x86_target::low_get_thread_area): ...this.
543 (the_low_target): Remove the op field.
544 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
546 (aarch64_get_thread_area): Turn into...
547 (aarch64_target::low_get_thread_area): ...this.
548 (the_low_target): Remove the op field.
549 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
551 (ppc_get_thread_area): Turn into...
552 (ppc_target::low_get_thread_area): ...this.
553 (the_low_target): Remove the op field.
554 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
556 (s390_get_thread_area): Turn into...
557 (s390_target::low_get_thread_area): ...this.
558 (the_low_target): Remove the op field.
559 * linux-arm-low.cc (the_low_target): Remove the op field.
560 * linux-bfin-low.cc (the_low_target): Ditto.
561 * linux-crisv32-low.cc (the_low_target): Ditto.
562 * linux-m32r-low.cc (the_low_target): Ditto.
563 * linux-m68k-low.cc (the_low_target): Ditto.
564 * linux-sh-low.cc (the_low_target): Ditto.
565 * linux-tic6x-low.cc (the_low_target): Ditto.
566 * linux-tile-low.cc (the_low_target): Ditto.
567 * linux-xtensa-low.cc (the_low_target): Ditto.
569 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571 Remote the 'supports_tracepoints' linux target op and let the
572 concrete linux target define it by overriding the op declared in
573 process_stratum_target.
575 * linux-low.h (struct linux_target_ops): Remove the op.
576 (class linux_process_target) <supports_tracepoints>: Remove.
577 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
578 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
580 (x86_supports_tracepoints): Turn into...
581 (x86_target::supports_tracepoints): ...this.
582 (the_low_target): Remove the op field.
583 * linux-aarch64-low.cc (class aarch64_target)
584 <supports_tracepoints>: Declare.
585 (aarch64_supports_tracepoints): Turn into...
586 (aarch64_target::supports_tracepoints): ...this.
587 (the_low_target): Remove the op field.
588 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
590 (ppc_supports_tracepoints): Turn into...
591 (ppc_target::supports_tracepoints): ...this.
592 (the_low_target): Remove the op field.
593 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
595 (s390_supports_tracepoints): Turn into...
596 (s390_target::supports_tracepoints): ...this.
597 (the_low_target): Remove the op field.
598 * linux-arm-low.cc (the_low_target): Remove the op field.
599 * linux-bfin-low.cc (the_low_target): Ditto.
600 * linux-crisv32-low.cc (the_low_target): Ditto.
601 * linux-m32r-low.cc (the_low_target): Ditto.
602 * linux-m68k-low.cc (the_low_target): Ditto.
603 * linux-sh-low.cc (the_low_target): Ditto.
604 * linux-tic6x-low.cc (the_low_target): Ditto.
605 * linux-tile-low.cc (the_low_target): Ditto.
606 * linux-xtensa-low.cc (the_low_target): Ditto.
608 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610 Remove the 'process_qsupported' linux target op and let a concrete
611 linux target define the op by overriding the op declaration in
612 process_stratum_target.
614 * linux-low.h (struct linux_target_ops): Remove the op.
615 (class linux_process_target) <process_qsupported>: Remove.
616 * linux-low.cc (linux_process_target::process_qsupported): Remove.
617 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
618 (x86_linux_process_qsupported): Turn into...
619 (x86_target::process_qsupported): ...this.
620 (the_low_target): Remove the op field.
621 * linux-aarch64-low.cc (the_low_target): Remove the op
623 * linux-arm-low.cc (the_low_target): Ditto.
624 * linux-bfin-low.cc (the_low_target): Ditto.
625 * linux-crisv32-low.cc (the_low_target): Ditto.
626 * linux-m32r-low.cc (the_low_target): Ditto.
627 * linux-m68k-low.cc (the_low_target): Ditto.
628 * linux-ppc-low.cc (the_low_target): Ditto.
629 * linux-s390-low.cc (the_low_target): Ditto.
630 * linux-sh-low.cc (the_low_target): Ditto.
631 * linux-tic6x-low.cc (the_low_target): Ditto.
632 * linux-tile-low.cc (the_low_target): Ditto.
633 * linux-xtensa-low.cc (the_low_target): Ditto.
635 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
637 Turn the 'prepare_to_resume' linux target op into a method of
638 linux_process_target.
640 * linux-low.h (struct linux_target_ops): Remove the op.
641 (class linux_process_target) <low_prepare_to_resume>: Declare.
642 * linux-low.cc (linux_process_target::low_prepare_to_resume):
645 Update the callers below:
647 (linux_process_target::resume_one_lwp_throw)
648 (linux_process_target::low_prepare_to_resume)
650 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
652 (x86_target::low_prepare_to_resume): Define.
653 (the_low_target): Remove the op field.
654 * linux-aarch64-low.cc (class aarch64_target)
655 <low_prepare_to_resume>: Declare.
656 (aarch64_target::low_prepare_to_resume): Define.
657 (the_low_target): Remove the op field.
658 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
660 (arm_prepare_to_resume): Turn into...
661 (arm_target::low_prepare_to_resume): ...this.
662 (the_low_target): Remove the op field.
663 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
665 (mips_linux_prepare_to_resume): Turn into...
666 (mips_target::low_prepare_to_resume): ...this.
667 (the_low_target): Remove the op field.
668 * linux-bfin-low.cc (the_low_target): Remove the op field.
669 * linux-crisv32-low.cc (the_low_target): Ditto.
670 * linux-m32r-low.cc (the_low_target): Ditto.
671 * linux-m68k-low.cc (the_low_target): Ditto.
672 * linux-ppc-low.cc (the_low_target): Ditto.
673 * linux-s390-low.cc (the_low_target): Ditto.
674 * linux-sh-low.cc (the_low_target): Ditto.
675 * linux-tic6x-low.cc (the_low_target): Ditto.
676 * linux-tile-low.cc (the_low_target): Ditto.
677 * linux-xtensa-low.cc (the_low_target): Ditto.
679 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681 Turn the 'new_process', 'delete_process', 'new_thread',
682 'delete_thread', and 'new_fork' linux target ops into methods
683 of linux_process_target.
685 * linux-low.h (struct linux_target_ops): Remove the ops.
686 (class linux_process_target) <add_linux_process>
691 <check_zombie_leaders>
697 <low_new_fork>: Declare.
698 * linux-low.cc (delete_lwp): Turn into...
699 (linux_process_target::delete_lwp): ...this.
700 (linux_process_target::low_delete_thread): Define.
701 (linux_add_process): Turn into...
702 (linux_process_target::add_linux_process): ...this.
703 (linux_process_target::low_new_process): Define.
704 (linux_process_target::low_delete_process): Define.
705 (linux_process_target::low_new_fork): Define.
706 (add_lwp): Turn into...
707 (linux_process_target::add_lwp): ...this.
708 (linux_process_target::low_new_thread): Define.
709 (linux_attach_lwp): Turn into...
710 (linux_process_target::attach_lwp): ...this.
711 (linux_detach_one_lwp): Turn into...
712 (linux_process_target::detach_one_lwp): ...this.
713 (linux_detach_lwp_callback): Remove and inline...
714 (linux_process_target::detach): ...here.
715 (check_zombie_leaders): Turn into...
716 (linux_process_target::check_zombie_leaders): ...this.
717 (filter_exit_event): Turn into...
718 (linux_process_target::filter_exit_event): ...this.
720 Update the callers below.
722 (linux_process_target::handle_extended_wait)
723 (linux_process_target::create_inferior)
724 (attach_proc_task_lwp_callback)
725 (linux_process_target::attach)
726 (linux_process_target::detach)
727 (linux_process_target::mourn)
728 * thread-db.cc (attach_thread)
730 * linux-x86-low.cc (class x86_target) <low_new_process>
734 <low_new_fork>: Declare.
735 (x86_linux_new_process): Turn into...
736 (x86_target::low_new_process): ...this.
737 (x86_linux_delete_process): Turn into...
738 (x86_target::low_delete_process): ...this.
739 (x86_target::low_new_thread): Define.
740 (x86_target::low_delete_thread): Define.
741 (x86_linux_new_fork): Turn into...
742 (x86_target::low_new_fork): ...this.
743 (the_low_target): Remove the op fields.
744 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
748 <low_new_fork>: Declare.
749 (aarch64_linux_new_process): Turn into...
750 (aarch64_target::low_new_process): ...this.
751 (aarch64_linux_delete_process): Turn into...
752 (aarch64_target::low_delete_process): ...this.
753 (aarch64_target::low_new_thread): Define.
754 (aarch64_target::low_delete_thread): Define.
755 (aarch64_linux_new_fork): Turn into...
756 (aarch64_target::low_new_fork): ...this.
757 (the_low_target): Remove the op fields.
758 * linux-arm-low.cc (class arm_target) <low_new_process>
762 <low_new_fork>: Declare.
763 (arm_new_process): Turn into...
764 (arm_target::low_new_process): ...this.
765 (arm_delete_process): Turn into...
766 (arm_target::low_delete_process): ...this.
767 (arm_new_thread): Turn into...
768 (arm_target::low_new_thread): ...this.
769 (arm_delete_thread): Turn into...
770 (arm_target::low_delete_thread): ...this.
771 (arm_new_fork): Turn into...
772 (arm_target::low_new_fork): ...this.
773 (the_low_target): Remove the op fields.
774 * linux-mips-low.cc (class mips_target) <low_new_process>
778 <low_new_fork>: Declare.
779 (mips_linux_new_process): Turn into...
780 (mips_target::low_new_process): ...this.
781 (mips_linux_delete_process): Turn into...
782 (mips_target::low_delete_process): ...this.
783 (mips_linux_new_thread): Turn into...
784 (mips_target::low_new_thread): ...this.
785 (mips_linux_delete_thread): Turn into...
786 (mips_target::low_delete_thread): ...this.
787 (mips_linux_new_fork): Turn into...
788 (mips_target::low_new_fork): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-bfin-low.cc (the_low_target): Remove the op fields.
791 * linux-crisv32-low.cc (the_low_target): Ditto.
792 * linux-m32r-low.cc (the_low_target): Ditto.
793 * linux-m68k-low.cc (the_low_target): Ditto.
794 * linux-ppc-low.cc (the_low_target): Ditto.
795 * linux-s390-low.cc (the_low_target): Ditto.
796 * linux-sh-low.cc (the_low_target): Ditto.
797 * linux-tic6x-low.cc (the_low_target): Ditto.
798 * linux-tile-low.cc (the_low_target): Ditto.
799 * linux-xtensa-low.cc (the_low_target): Ditto.
801 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803 Turn the 'siginfo_fixup' linux target op into a method of
804 linux_process_target.
806 * linux-low.h (struct linux_target_ops): Remove the op.
807 (class linux_process_target) <siginfo_fixup>
808 <low_siginfo_fixup>: Declare.
809 * linux-low.cc (siginfo_fixup): Turn into...
810 (linux_process_target::siginfo_fixup): ...this.
811 (linux_process_target::low_siginfo_fixup): Define.
812 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
813 (x86_siginfo_fixup): Turn into...
814 (x86_target::low_siginfo_fixup): ...this.
815 (the_low_target): Remove the op field.
816 * linux-aarch64-low.cc (class aarch64_target):
817 <low_siginfo_fixup>: Declare.
818 (aarch64_linux_siginfo_fixup): Turn into...
819 (aarch64_target::low_siginfo_fixup): ...this.
820 (the_low_target): Remove the op field.
821 * linux-arm-low.cc (the_low_target): Remove the op field.
822 * linux-bfin-low.cc (the_low_target): Ditto.
823 * linux-crisv32-low.cc (the_low_target): Ditto.
824 * linux-m32r-low.cc (the_low_target): Ditto.
825 * linux-m68k-low.cc (the_low_target): Ditto.
826 * linux-mips-low.cc (the_low_target): Ditto.
827 * linux-ppc-low.cc (the_low_target): Ditto.
828 * linux-s390-low.cc (the_low_target): Ditto.
829 * linux-sh-low.cc (the_low_target): Ditto.
830 * linux-tic6x-low.cc (the_low_target): Ditto.
831 * linux-tile-low.cc (the_low_target): Ditto.
832 * linux-xtensa-low.cc (the_low_target): Ditto.
834 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
836 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
837 linux target ops into methods of linux_process_target.
839 * linux-low.h (struct linux_target_ops): Remove the ops.
840 (class linux_process_target) <low_collect_ptrace_register>
841 <low_store_ptrace_register>: Declare.
842 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
843 (linux_process_target::low_supply_ptrace_register): Define.
845 Update the callers below.
847 (linux_process_target::fetch_register)
848 (linux_process_target::store_register)
850 * linux-x86-low.cc (the_low_target): Remove the op fields.
851 * linux-aarch64-low.cc (the_low_target): Ditto.
852 * linux-arm-low.cc (the_low_target): Ditto.
853 * linux-bfin-low.cc (the_low_target): Ditto.
854 * linux-crisv32-low.cc (the_low_target): Ditto.
855 * linux-m32r-low.cc (the_low_target): Ditto.
856 * linux-m68k-low.cc (the_low_target): Ditto.
857 * linux-sh-low.cc (the_low_target): Ditto.
858 * linux-sparc-low.cc (the_low_target): Ditto.
859 * linux-tic6x-low.cc (the_low_target): Ditto.
860 * linux-tile-low.cc (the_low_target): Ditto.
861 * linux-xtensa-low.cc (the_low_target): Ditto.
862 * linux-mips-low.cc (class mips_target)
863 <low_collect_ptrace_register>
864 <low_supply_ptrace_register>: Declare.
865 (mips_collect_ptrace_register): Turn into ...
866 (mips_target::low_collect_ptrace_register): ...this.
867 (mips_supply_ptrace_register): Turn into...
868 (mips_target::low_supply_ptrace_register): ...this.
869 (the_low_target): Remove the op fields.
870 * linux-ppc-low.cc (class ppc_target)
871 <low_collect_ptrace_register>
872 <low_supply_ptrace_register>: Declare.
873 (ppc_collect_ptrace_register): Turn into ...
874 (ppc_target::low_collect_ptrace_register): ...this.
875 (ppc_supply_ptrace_register): Turn into ...
876 (ppc_target::low_supply_ptrace_register): ...this.
877 (ppc_fill_gregset): Update for the calls to
878 low_collect_ptrace_register.
879 (the_low_target): Remove the op fields.
880 * linux-s390-low.cc (class s390_target)
881 <low_collect_ptrace_register>
882 <low_supply_ptrace_register>: Declare.
883 (s390_collect_ptrace_register): Turn into ...
884 (s390_target::low_collect_ptrace_register): ...this.
885 (s390_supply_ptrace_register): Turn into ...
886 (s390_target::low_supply_ptrace_register): ...this.
887 (s390_fill_gregset): Update for the calls to
888 low_collect_ptrace_register.
889 (the_low_target): Remove the op fields.
891 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
893 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
894 target ops into methods of linux_process_target.
896 * linux-low.h (struct linux_target_ops): Remove the ops.
897 (class linux_process_target) <check_stopped_by_watchpoint>
898 <low_stopped_by_watchpoint>
899 <low_stopped_data_address>: Declare.
900 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
901 (linux_process_target::check_stopped_by_watchpoint): ...this.
902 (linux_process_target::low_stopped_by_watchpoint): Define.
903 (linux_process_target::low_stopped_data_address): Define.
904 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
905 <low_stopped_data_address>: Declare.
906 (x86_stopped_by_watchpoint): Turn into...
907 (x86_target::low_stopped_by_watchpoint): ...this.
908 (x86_stopped_data_address): Turn into...
909 (x86_target::low_stopped_data_address): ...this.
910 (the_low_target): Remove the op fields.
911 * linux-aarch64-low.cc (class aarch64_target)
912 <low_stopped_by_watchpoint>
913 <low_stopped_data_address>: Declare.
914 (aarch64_stopped_by_watchpoint): Turn into...
915 (aarch64_target::low_stopped_by_watchpoint): ...this.
916 (aarch64_stopped_data_address): Turn into...
917 (aarch64_target::low_stopped_data_address): ...this.
918 (the_low_target): Remove the op fields.
919 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
920 <low_stopped_data_address>: Declare.
921 (arm_stopped_by_watchpoint): Turn into...
922 (arm_target::low_stopped_by_watchpoint): ...this.
923 (arm_stopped_data_address): Turn into...
924 (arm_target::low_stopped_data_address): ...this.
925 (the_low_target): Remove the op fields.
926 * linux-crisv32-low.cc (class crisv32_target)
927 <low_stopped_by_watchpoint>
928 <low_stopped_data_address>: Declare.
929 (cris_stopped_by_watchpoint): Turn into...
930 (crisv32_target::low_stopped_by_watchpoint): ...this.
931 (cris_stopped_data_address): Turn into...
932 (crisv32_target::low_stopped_data_address): ...this.
933 (the_low_target): Remove the op fields.
934 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
935 <low_stopped_data_address>: Declare.
936 (mips_stopped_by_watchpoint): Turn into...
937 (mips_target::low_stopped_by_watchpoint): ...this.
938 (mips_stopped_data_address): Turn into...
939 (mips_target::low_stopped_data_address): ...this.
940 (the_low_target): Remove the op fields.
941 * linux-bfin-low.cc (the_low_target): Remove the op fields.
942 * linux-m32r-low.cc (the_low_target): Ditto.
943 * linux-m68k-low.cc (the_low_target): Ditto.
944 * linux-ppc-low.cc (the_low_target): Ditto.
945 * linux-s390-low.cc (the_low_target): Ditto.
946 * linux-sh-low.cc (the_low_target): Ditto.
947 * linux-sparc-low.cc (the_low_target): Ditto.
948 * linux-tic6x-low.cc (the_low_target): Ditto.
949 * linux-tile-low.cc (the_low_target): Ditto.
950 * linux-xtensa-low.cc (the_low_target): Ditto.
952 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954 Turn the 'insert_point' and 'remove_point' linux target ops into
955 methods of linux_process_target.
957 * linux-low.h (struct linux_target_ops): Remove the ops.
958 (class linux_process_target) <low_insert_point>
959 <low_remove_point>: Declare.
960 * linux-low.cc (linux_process_target::low_insert_point)
961 (linux_process_target::low_remove_point): Define.
962 (linux_process_target::insert_point)
963 (linux_process_target::remove_point): Update for calls to
964 low_insert_point and low_remove_point.
965 * linux-x86-low.cc (class x86_target) <low_insert_point>
966 <low_remove_point>: Declare.
967 (x86_insert_point): Turn into...
968 (x86_target::low_insert_point): ...this.
969 (x86_remove_point): Turn into...
970 (x86_target::low_remove_point): ...this.
971 (the_low_target): Remove the op fields.
972 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
973 <low_remove_point>: Declare.
974 (aarch64_insert_point): Turn into...
975 (aarch64_target::low_insert_point): ...this.
976 (aarch64_remove_point): Turn into...
977 (aarch64_target::low_remove_point): ...this.
978 (the_low_target): Remove the op fields.
979 * linux-arm-low.cc (class arm_target) <low_insert_point>
980 <low_remove_point>: Declare.
981 (arm_insert_point): Turn into...
982 (arm_target::low_insert_point): ...this.
983 (arm_remove_point): Turn into...
984 (arm_target::low_remove_point): ...this.
985 (the_low_target): Remove the op fields.
986 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
987 <low_remove_point>: Declare.
988 (crisv32_insert_point): Turn into...
989 (crisv32_target::low_insert_point): ...this.
990 (crisv32_remove_point): Turn into...
991 (crisv32_target::low_remove_point): ...this.
992 (the_low_target): Remove the op fields.
993 * linux-mips-low.cc (class mips_target) <low_insert_point>
994 <low_remove_point>: Declare.
995 (mips_insert_point): Turn into...
996 (mips_target::low_insert_point): ...this.
997 (mips_remove_point): Turn into...
998 (mips_target::low_remove_point): ...this.
999 (the_low_target): Remove the op fields.
1000 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1001 <low_remove_point>: Declare.
1002 (ppc_insert_point): Turn into...
1003 (ppc_target::low_insert_point): ...this.
1004 (ppc_remove_point): Turn into...
1005 (ppc_target::low_remove_point): ...this.
1006 (the_low_target): Remove the op fields.
1007 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1008 * linux-m32r-low.cc (the_low_target): Ditto.
1009 * linux-m68k-low.cc (the_low_target): Ditto.
1010 * linux-s390-low.cc (the_low_target): Ditto.
1011 * linux-sh-low.cc (the_low_target): Ditto.
1012 * linux-sparc-low.cc (the_low_target): Ditto.
1013 * linux-tic6x-low.cc (the_low_target): Ditto.
1014 * linux-tile-low.cc (the_low_target): Ditto.
1015 * linux-xtensa-low.cc (the_low_target): Ditto.
1017 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019 Remove the 'supports_z_point_type' linux target op and let the
1020 concrete linux target define it by overriding the op declared in
1021 process_stratum_target.
1023 * linux-low.cc (linux_process_target::supports_z_point_type):
1025 * linux-low.h (struct linux_target_ops): Remove the op.
1026 (class linux_process_target) <supports_z_point_type>: Remove.
1027 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1029 (x86_supports_z_point_type): Turn into...
1030 (x86_target::supports_z_point_type): ...this.
1031 (the_low_target): Remove the op field.
1032 * linux-aarch64-low.cc (class aarch64_target)
1033 <supports_z_point_type>: Declare.
1034 (aarch64_supports_z_point_type): Turn into...
1035 (aarch64_target::supports_z_point_type): ...this.
1036 (the_low_target): Remove the op field.
1037 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1039 (arm_supports_z_point_type): Turn into...
1040 (arm_target::supports_z_point_type): ...this.
1041 (the_low_target): Remove the op field.
1042 * linux-crisv32-low.cc (class crisv32_target)
1043 <supports_z_point_type>: Declare.
1044 (cris_supports_z_point_type): Turn into...
1045 (crisv32_target::supports_z_point_type): ...this.
1046 (the_low_target): Remove the op field.
1047 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1049 (mips_supports_z_point_type): Turn into...
1050 (mips_target::supports_z_point_type): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1054 (ppc_supports_z_point_type): Turn into...
1055 (ppc_target::supports_z_point_type): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1059 (s390_supports_z_point_type): Turn into...
1060 (s390_target::supports_z_point_type): ...this.
1061 (the_low_target): Remove the op field.
1062 * linux-bfin-low.cc (the_low_target): Remove the op field.
1063 * linux-m32r-low.cc (the_low_target): Ditto.
1064 * linux-m68k-low.cc (the_low_target): Ditto.
1065 * linux-sh-low.cc (the_low_target): Ditto.
1066 * linux-sparc-low.cc (the_low_target): Ditto.
1067 * linux-tic6x-low.cc (the_low_target): Ditto.
1068 * linux-tile-low.cc (the_low_target): Ditto.
1069 * linux-xtensa-low.cc (the_low_target): Ditto.
1071 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1073 Turn the 'breakpoint_at' linux target op into a method of
1074 linux_process_target.
1076 * linux-low.h (struct linux_target_ops): Remove the op.
1077 (class linux_process_target) <low_breakpoint_at>: Declare.
1079 Update the callers below:
1081 * linux-low.cc (linux_process_target::save_stop_reason)
1082 (linux_process_target::thread_still_has_status_pending)
1083 (linux_process_target::wait_1)
1085 * linux-x86-low.cc (class x86_target)
1086 <low_breakpoint_at>: Declare.
1087 (x86_breakpoint_at): Turn into...
1088 (x86_target::low_breakpoint_at): ...this.
1089 (the_low_target): Remove the op field.
1090 * linux-aarch64-low.cc (class aarch64_target)
1091 <low_breakpoint_at>: Declare.
1092 (aarch64_breakpoint_at): Turn into...
1093 (aarch64_target::low_breakpoint_at): ...this.
1094 (the_low_target): Remove the op field.
1095 * linux-arm-low.cc (class arm_target)
1096 <low_breakpoint_at>: Declare.
1097 (arm_target::low_breakpoint_at): Define.
1098 (the_low_target): Remove the op field.
1099 * linux-bfin-low.cc (class bfin_target)
1100 <low_breakpoint_at>: Declare.
1101 (bfin_breakpoint_at): Turn into...
1102 (bfin_target::low_breakpoint_at): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-cris-low.cc (class cris_target)
1105 <low_breakpoint_at>: Declare.
1106 (cris_breakpoint_at): Turn into...
1107 (cris_target::low_breakpoint_at): ...this.
1108 (the_low_target): Remove the op field.
1109 * linux-crisv32-low.cc (class crisv32_target)
1110 <low_breakpoint_at>: Declare.
1111 (crisv32_breakpoint_at): Turn into...
1112 (crisv32_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-ia64-low.cc (class ia64_target)
1115 <low_breakpoint_at>: Declare.
1116 (ia64_target::low_breakpoint_at): Define.
1117 * linux-m32r-low.cc (class m32r_target)
1118 <low_breakpoint_at>: Declare.
1119 (m32r_breakpoint_at): Turn into...
1120 (m32r_target::low_breakpoint_at): ...this.
1121 (the_low_target): Remove the op field.
1122 * linux-m68k-low.cc (class m68k_target)
1123 <low_breakpoint_at>: Declare.
1124 (m68k_breakpoint_at): Turn into...
1125 (m68k_target::low_breakpoint_at): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-mips-low.cc (class mips_target)
1128 <low_breakpoint_at>: Declare.
1129 (mips_breakpoint_at): Turn into...
1130 (mips_target::low_breakpoint_at): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-nios2-low.cc (class nios2_target)
1133 <low_breakpoint_at>: Declare.
1134 (nios2_breakpoint_at): Turn into...
1135 (nios2_target::low_breakpoint_at): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-ppc-low.cc (class ppc_target)
1138 <low_breakpoint_at>: Declare.
1139 (ppc_breakpoint_at): Turn into...
1140 (ppc_target::low_breakpoint_at): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-riscv-low.cc (class riscv_target)
1143 <low_breakpoint_at>: Declare.
1144 (riscv_breakpoint_at): Turn into...
1145 (riscv_target::low_breakpoint_at): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-s390-low.cc (class s390_target)
1148 <low_breakpoint_at>: Declare.
1149 (s390_breakpoint_at): Turn into...
1150 (s390_target::low_breakpoint_at): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-sh-low.cc (class sh_target)
1153 <low_breakpoint_at>: Declare.
1154 (sh_breakpoint_at): Turn into...
1155 (sh_target::low_breakpoint_at): ...this.
1156 (the_low_target): Remove the op field.
1157 * linux-sparc-low.cc (class sparc_target)
1158 <low_breakpoint_at>: Declare.
1159 (sparc_breakpoint_at): Turn into...
1160 (sparc_target::low_breakpoint_at): ...this.
1161 (the_low_target): Remove the op field.
1162 * linux-tic6x-low.cc (class tic6x_target)
1163 <low_breakpoint_at>: Declare.
1164 (tic6x_breakpoint_at): Turn into...
1165 (tic6x_target::low_breakpoint_at): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-tile-low.cc (class tile_target)
1168 <low_breakpoint_at>: Declare.
1169 (tile_breakpoint_at): Turn into...
1170 (tile_target::low_breakpoint_at): ...this.
1171 (the_low_target): Remove the op field.
1172 * linux-xtensa-low.cc (class xtensa_target)
1173 <low_breakpoint_at>: Declare.
1174 (xtensa_breakpoint_at): Turn into...
1175 (xtensa_target::low_breakpoint_at): ...this.
1176 (the_low_target): Remove the op field.
1178 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1180 Turn the 'decr_pc_after_break' linux_target_ops field into
1181 a method of linux_process_target.
1183 * linux-low.h (struct linux_target_ops)
1184 <decr_pc_after_break>: Remove.
1185 (class linux_process_target) <low_decr_pc_after_break>: New method
1187 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1188 New method implementation.
1190 Update the users below.
1192 (linux_process_target::save_stop_reason)
1193 (linux_process_target::wait_1)
1194 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1196 (x86_target::low_decr_pc_after_break): New method implementation.
1197 (the_low_target): Remove the field.
1198 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1200 (bfin_target::low_decr_pc_after_break): New method implementation.
1201 (the_low_target): Remove the field.
1202 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1204 (m68k_target::low_decr_pc_after_break): New method implementation.
1205 (the_low_target): Remove the field.
1206 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1208 (s390_target::low_decr_pc_after_break): New method implementation.
1209 (the_low_target): Remove the field.
1210 * linux-aarch64-low.cc (the_low_target): Remove the field.
1211 * linux-arm-low.cc (the_low_target): Remove the field.
1212 * linux-cris-low.cc (the_low_target): Remove the field.
1213 * linux-crisv32-low.cc (the_low_target): Remove the field.
1214 * linux-m32r-low.cc (the_low_target): Remove the field.
1215 * linux-mips-low.cc (the_low_target): Remove the field.
1216 * linux-nios2-low.cc (the_low_target): Remove the field.
1217 * linux-ppc-low.cc (the_low_target): Remove the field.
1218 * linux-riscv-low.cc (the_low_target): Remove the field.
1219 * linux-sh-low.cc (the_low_target): Remove the field.
1220 * linux-sparc-low.cc (the_low_target): Remove the field.
1221 * linux-tic6x-low.cc (the_low_target): Remove the field.
1222 * linux-tile-low.cc (the_low_target): Remove the field.
1223 * linux-xtensa-low.cc (the_low_target): Remove the field.
1225 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227 Remove the 'supports_software_single_step' linux target op and let
1228 the concrete linux target define it by overriding the op in
1229 process_stratum_target.
1230 Turn the 'get_next_pcs' linux target op into a method of
1231 linux_process_target.
1233 * linux-low.h (struct linux_target_ops): Remove the ops.
1234 (class linux_process_target) <supports_software_single_step>:
1236 <low_get_next_pcs>: Declare.
1237 * linux-low.cc (can_software_single_step): Remove.
1238 (linux_process_target::low_get_next_pcs): Define.
1239 (linux_process_target::supports_software_single_step): Remove.
1241 Update the callers below.
1243 (linux_process_target::handle_extended_wait)
1244 (linux_process_target::wait_1)
1245 (linux_process_target::install_software_single_step_breakpoints)
1246 (linux_process_target::single_step)
1247 (linux_process_target::thread_needs_step_over)
1248 (linux_process_target::proceed_one_lwp)
1249 (linux_process_target::supports_range_stepping)
1251 * linux-x86-low.cc (the_low_target): Remove the op field.
1252 * linux-aarch64-low.cc (the_low_target): Ditto.
1253 * linux-bfin-low.cc (the_low_target): Ditto.
1254 * linux-cris-low.cc (the_low_target): Ditto.
1255 * linux-crisv32-low.cc (the_low_target): Ditto.
1256 * linux-m32r-low.cc (the_low_target): Ditto.
1257 * linux-m68k-low.cc (the_low_target): Ditto.
1258 * linux-mips-low.cc (the_low_target): Ditto.
1259 * linux-nios2-low.cc (the_low_target): Ditto.
1260 * linux-ppc-low.cc (the_low_target): Ditto.
1261 * linux-riscv-low.cc (the_low_target): Ditto.
1262 * linux-s390-low.cc (the_low_target): Ditto.
1263 * linux-sh-low.cc (the_low_target): Ditto.
1264 * linux-sparc-low.cc (the_low_target): Ditto.
1265 * linux-tic6x-low.cc (the_low_target): Ditto.
1266 * linux-tile-low.cc (the_low_target): Ditto.
1267 * linux-xtensa-low.cc (the_low_target): Ditto.
1268 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1269 <supports_software_single_step>: Declare.
1270 (arm_target::supports_software_single_step): Define.
1271 (arm_gdbserver_get_next_pcs): Turn into...
1272 (arm_target::low_get_next_pcs): ...this.
1273 (the_low_target): Remove the op field.
1275 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1278 the concrete linux target define it by overriding the op
1279 in process_stratum_target.
1281 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1283 * linux-low.h (struct linux_target_ops): Remove the op.
1284 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1285 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1287 (x86_sw_breakpoint_from_kind): Turn into...
1288 (x86_target::sw_breakpoint_from_kind): ...this.
1289 (the_low_target): Remove the op field.
1290 * linux-aarch64-low.cc (class aarch64_target)
1291 <sw_breakpoint_from_kind>: Declare.
1292 (aarch64_sw_breakpoint_from_kind): Turn into...
1293 (aarch64_target::sw_breakpoint_from_kind): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1297 (arm_target::sw_breakpoint_from_kind): Define.
1298 (the_low_target): Remove the op field.
1299 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1301 (bfin_sw_breakpoint_from_kind): Turn into...
1302 (bfin_target::sw_breakpoint_from_kind): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1306 (cris_sw_breakpoint_from_kind): Turn into...
1307 (cris_target::sw_breakpoint_from_kind): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-crisv32-low.cc (class crisv32_target)
1310 <sw_breakpoint_from_kind>: Declare.
1311 (cris_sw_breakpoint_from_kind): Turn into...
1312 (crisv32_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1316 (ia64_target::sw_breakpoint_from_kind): Define.
1317 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1319 (m32r_sw_breakpoint_from_kind): Turn into...
1320 (m32r_target::sw_breakpoint_from_kind): ...this.
1321 (the_low_target): Remove the op field.
1322 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1324 (m68k_sw_breakpoint_from_kind): Turn into...
1325 (m68k_target::sw_breakpoint_from_kind): ...this.
1326 (the_low_target): Remove the op field.
1327 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1329 (mips_sw_breakpoint_from_kind): Turn into...
1330 (mips_target::sw_breakpoint_from_kind): ...this.
1331 (the_low_target): Remove the op field.
1332 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1334 (nios2_sw_breakpoint_from_kind): Turn into...
1335 (nios2_target::sw_breakpoint_from_kind): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1339 (ppc_sw_breakpoint_from_kind): Turn into...
1340 (ppc_target::sw_breakpoint_from_kind): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1344 (riscv_sw_breakpoint_from_kind): Turn into...
1345 (riscv_target::sw_breakpoint_from_kind): ...this.
1346 (the_low_target): Remove the op field.
1347 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1349 (s390_sw_breakpoint_from_kind): Turn into...
1350 (s390_target::sw_breakpoint_from_kind): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1354 (sh_sw_breakpoint_from_kind): Turn into...
1355 (sh_target::sw_breakpoint_from_kind): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1359 (sparc_sw_breakpoint_from_kind): Turn into...
1360 (sparc_target::sw_breakpoint_from_kind): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1364 (tic6x_sw_breakpoint_from_kind): Turn into...
1365 (tic6x_target::sw_breakpoint_from_kind): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1369 (tile_sw_breakpoint_from_kind): Turn into...
1370 (tile_target::sw_breakpoint_from_kind): ...this.
1371 (the_low_target): Remove the op field.
1372 * linux-xtensa-low.cc (class xtensa_target)
1373 <sw_breakpoint_from_kind>: Declare.
1374 (xtensa_sw_breakpoint_from_kind): Turn into...
1375 (xtensa_target::sw_breakpoint_from_kind): ...this.
1376 (the_low_target): Remove the op field.
1378 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380 Remove the 'breakpoint_kind_from_pc' and
1381 'breakpoint_kind_from_current_state' linux target ops, and let the
1382 concrete linux target define them by overriding the ops of
1383 process_stratum_target.
1385 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1387 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1388 * linux-low.h (struct linux_target_ops): Remove ops.
1389 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1390 <breakpoint_kind_from_current_state>: Remove.
1391 * linux-x86-low.cc (the_low_target): Remove the op fields.
1392 * linux-bfin-low.cc (the_low_target): Ditto.
1393 * linux-cris-low.cc (the_low_target): Ditto.
1394 * linux-crisv32-low.cc (the_low_target): Ditto.
1395 * linux-m32r-low.cc (the_low_target): Ditto.
1396 * linux-m68k-low.cc (the_low_target): Ditto.
1397 * linux-mips-low.cc (the_low_target): Ditto.
1398 * linux-nios2-low.cc (the_low_target): Ditto.
1399 * linux-ppc-low.cc (the_low_target): Ditto.
1400 * linux-s390-low.cc (the_low_target): Ditto.
1401 * linux-sh-low.cc (the_low_target): Ditto.
1402 * linux-sparc-low.cc (the_low_target): Ditto.
1403 * linux-tic6x-low.cc (the_low_target): Ditto.
1404 * linux-tile-low.cc (the_low_target): Ditto.
1405 * linux-xtensa-low.cc (the_low_target): Ditto.
1406 * linux-aarch64-low.cc (class aarch64_target)
1407 <breakpoint_kind_from_pc>
1408 <breakpoint_kind_from_current_state>: Declare.
1409 (aarch64_breakpoint_kind_from_pc): Turn into...
1410 (aarch64_target::breakpoint_kind_from_pc): ...this.
1411 (aarch64_breakpoint_kind_from_current_state): Turn into...
1412 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1413 (the_low_target): Remove the op fields.
1414 * linux-arm-low.cc (class arm_target):
1415 <breakpoint_kind_from_pc>
1416 <breakpoint_kind_from_current_state>: Declare.
1417 (arm_target::breakpoint_kind_from_pc): Define.
1418 (arm_target::breakpoint_kind_from_current_state): Define.
1419 (the_low_target): Remove the op fields.
1420 * linux-riscv-low.cc (class riscv_target):
1421 <breakpoint_kind_from_pc>: Declare.
1422 (riscv_breakpoint_kind_from_pc): Turn into...
1423 (riscv_target::breakpoint_kind_from_pc): ...this.
1424 (the_low_target): Remove the op fields.
1426 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1428 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1429 of linux_process_target.
1431 * linux-low.h (struct linux_target_ops): Remove the ops.
1432 (class linux_process_target) <low_supports_breakpoints>
1434 <low_set_pc>: Declare.
1435 * linux-low.cc (supports_breakpoints): Turn into...
1436 (linux_process_target::low_supports_breakpoints): ...this.
1437 (linux_process_target::low_get_pc): Define.
1438 (linux_process_target::low_set_pc): Define.
1440 Update the callers below.
1442 (linux_process_target::get_pc)
1443 (linux_process_target::save_stop_reason)
1444 (linux_process_target::maybe_move_out_of_jump_pad)
1445 (linux_process_target::wait_1)
1446 (linux_process_target::resume_one_lwp_throw)
1447 (linux_process_target::resume)
1448 (linux_process_target::proceed_all_lwps)
1449 (linux_process_target::read_pc)
1450 (linux_process_target::write_pc)
1452 * linux-x86-low.cc (class linux_process_target)
1453 <low_supports_breakpoints>
1455 <low_set_pc>: Declare.
1456 (x86_target::low_supports_breakpoints): Define.
1457 (x86_get_pc): Turn into...
1458 (x86_target::low_get_pc): ...this.
1459 (x86_set_pc): Turn into...
1460 (x86_target::low_set_pc): ...this.
1461 (the_low_target): Remove the op fields.
1462 * linux-arm-low.cc (class arm_target)
1463 <low_supports_breakpoints>
1465 <low_set_pc>: Declare.
1466 (arm_target::low_supports_breakpoints)
1467 (arm_target::low_get_pc)
1468 (arm_target::low_set_pc): Define.
1469 (the_low_target): Remove the op fields.
1470 * linux-bfin-low.cc (class bfin_target)
1471 <low_supports_breakpoints>
1473 <low_set_pc>: Declare.
1474 (bfin_target::low_supports_breakpoints)
1475 (bfin_target::low_get_pc)
1476 (bfin_target::low_set_pc): Define.
1477 (the_low_target): Remove the op fields.
1478 * linux-cris-low.cc (class cris_target)
1479 <low_supports_breakpoints>
1481 <low_set_pc>: Declare.
1482 (cris_target::low_supports_breakpoints)
1483 (cris_target::low_get_pc)
1484 (cris_target::low_set_pc): Define.
1485 (the_low_target): Remove the op fields.
1486 * linux-crisv32-low.cc (class crisv32_target)
1487 <low_supports_breakpoints>
1489 <low_set_pc>: Declare.
1490 (crisv32_target::low_supports_breakpoints)
1491 (crisv32_target::low_get_pc)
1492 (crisv32_target::low_set_pc): Define.
1493 (the_low_target): Remove the op fields.
1494 * linux-m32r-low.cc (class m32r_target)
1495 <low_supports_breakpoints>
1497 <low_set_pc>: Declare.
1498 (m32r_target::low_supports_breakpoints)
1499 (m32r_target::low_get_pc)
1500 (m32r_target::low_set_pc): Define.
1501 (the_low_target): Remove the op fields.
1502 * linux-m68k-low.cc (class m68k_target)
1503 <low_supports_breakpoints>
1505 <low_set_pc>: Declare.
1506 (m68k_target::low_supports_breakpoints)
1507 (m68k_target::low_get_pc)
1508 (m68k_target::low_set_pc): Define.
1509 (the_low_target): Remove the op fields.
1510 * linux-nios2-low.cc (class nios2_target)
1511 <low_supports_breakpoints>
1513 <low_set_pc>: Declare.
1514 (nios2_target::low_supports_breakpoints)
1515 (nios2_target::low_get_pc)
1516 (nios2_target::low_set_pc): Define.
1517 (the_low_target): Remove the op fields.
1518 * linux-sh-low.cc (class sh_target)
1519 <low_supports_breakpoints>
1521 <low_set_pc>: Declare.
1522 (sh_target::low_supports_breakpoints)
1523 (sh_target::low_get_pc)
1524 (sh_target::low_set_pc): Define.
1525 (the_low_target): Remove the op fields.
1526 * linux-xtensa-low.cc (class xtensa_target)
1527 <low_supports_breakpoints>
1529 <low_set_pc>: Declare.
1530 (xtensa_target::low_supports_breakpoints)
1531 (xtensa_target::low_get_pc)
1532 (xtensa_target::low_set_pc): Define.
1533 (the_low_target): Remove the op fields.
1534 * linux-sparc-low.cc (class sparc_target)
1535 <low_supports_breakpoints>
1536 <low_get_pc>: Declare.
1537 (sparc_target::low_supports_breakpoints)
1538 (sparc_target::low_get_pc): Define.
1539 (the_low_target): Remove the op fields.
1540 * linux-tile-low.cc (class tile_target)
1541 <low_supports_breakpoints>
1543 <low_set_pc>: Declare.
1544 (tile_target::low_supports_breakpoints)
1545 (tile_target::low_get_pc)
1546 (tile_target::low_set_pc): Define.
1547 (the_low_target): Remove the op fields.
1548 * linux-aarch64-low.cc (class aarch64_target)
1549 <low_supports_breakpoints>
1551 <low_set_pc>: Declare.
1552 (aarch64_target::low_supports_breakpoints): Define.
1553 (aarch64_get_pc): Turn into...
1554 (aarch64_target::low_get_pc): ...this.
1555 (aarch64_set_pc): Turn into...
1556 (aarch64_target::low_set_pc): ...this.
1557 (the_low_target): Remove the op fields.
1558 * linux-mips-low.cc (class mips_target)
1559 <low_supports_breakpoints>
1561 <low_set_pc>: Declare.
1562 (mips_target::low_supports_breakpoints): Define.
1563 (mips_get_pc): Turn into...
1564 (mips_target::low_get_pc): ...this.
1565 (mips_set_pc): Turn into...
1566 (mips_target::low_set_pc): ...this.
1567 (the_low_target): Remove the op fields.
1568 * linux-ppc-low.cc (class ppc_target)
1569 <low_supports_breakpoints>
1571 <low_set_pc>: Declare.
1572 (ppc_target::low_supports_breakpoints): Define.
1573 (ppc_get_pc): Turn into...
1574 (ppc_target::low_get_pc): ...this.
1575 (ppc_set_pc): Turn into...
1576 (ppc_target::low_set_pc): ...this.
1577 (the_low_target): Remove the op fields.
1578 * linux-riscv-low.cc (class riscv_target)
1579 <low_supports_breakpoints>
1581 <low_set_pc>: Declare.
1582 (riscv_target::low_supports_breakpoints): Define.
1583 (riscv_get_pc): Turn into...
1584 (riscv_target::low_get_pc): ...this.
1585 (riscv_set_pc): Turn into...
1586 (riscv_target::low_set_pc): ...this.
1587 (the_low_target): Remove the op fields.
1588 * linux-s390-low.cc (class s390_target)
1589 <low_supports_breakpoints>
1591 <low_set_pc>: Declare.
1592 (s390_target::low_supports_breakpoints): Define.
1593 (s390_get_pc): Turn into...
1594 (s390_target::low_get_pc): ...this.
1595 (s390_set_pc): Turn into...
1596 (s390_target::low_set_pc): ...this.
1597 (the_low_target): Remove the op fields.
1598 * linux-tic6x-low.cc (class tic6x_target)
1599 <low_supports_breakpoints>
1601 <low_set_pc>: Declare.
1602 (tic6x_target::low_supports_breakpoints): Define.
1603 (tic6x_get_pc): Turn into...
1604 (tic6x_target::low_get_pc): ...this.
1605 (tic6x_set_pc): Turn into...
1606 (tic6x_target::low_set_pc): ...this.
1607 (the_low_target): Remove the op fields.
1609 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1611 Turn some more static methods in linux-low into private methods
1612 of linux_process_target.
1614 * linux-low.cc (get_pc): Turn into...
1615 (linux_process_target::get_pc): ...this.
1616 (save_stop_reason): Turn into...
1617 (linux_process_target::save_stop_reason): ...this.
1618 (thread_still_has_status_pending_p): Turn into...
1619 (linux_process_target::thread_still_has_status_pending): ...this.
1620 (status_pending_p_callback): Turn into...
1621 (linux_process_target::status_pending_p_callback): ...this.
1622 (resume_stopped_resumed_lwps): Turn into...
1623 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1624 (install_software_single_step_breakpoints): Turn into...
1625 (linux_process_target::install_software_single_step_breakpoints):
1627 (single_step): Turn into...
1628 (linux_process_target::single_step): ...this.
1629 (linux_resume_one_lwp_throw): Turn into...
1630 (linux_process_target::resume_one_lwp_throw): ...this.
1631 (linux_resume_one_lwp): Turn into...
1632 (linux_process_target::resume_one_lwp): ...this.
1633 (resume_status_pending_p): Turn into...
1634 (linux_process_target::resume_status_pending): ...this.
1635 (need_step_over_p): Turn into...
1636 (linux_process_target::thread_needs_step_over): ...this.
1637 (linux_resume_one_thread): Turn into...
1638 (linux_process_target::resume_one_thread): ...this.
1639 (proceed_one_lwp): Turn into...
1640 (linux_process_target::proceed_one_lwp): ...this.
1641 (unsuspend_and_proceed_one_lwp): Turn into...
1642 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1644 Update the calls/references to the above functions below.
1646 (linux_process_target::handle_extended_wait)
1647 (linux_process_target::filter_event)
1648 (linux_process_target::wait_for_event_filtered)
1649 (linux_process_target::wait_1)
1650 (linux_process_target::move_out_of_jump_pad)
1651 (linux_process_target::start_step_over)
1652 (linux_process_target::resume)
1653 (linux_process_target::proceed_all_lwps)
1654 (regsets_store_inferior_registers)
1655 (linux_process_target::store_register)
1657 * linux-low.h (class linux_process_target)
1660 <thread_still_has_status_pending>
1661 <status_pending_p_callback>
1662 <resume_stopped_resumed_lwps>
1663 <install_software_single_step_breakpoints>
1665 <resume_one_lwp_throw>
1667 <resume_status_pending>
1668 <thread_needs_step_over>
1671 <unsuspend_and_proceed_one_lwp>: Declare.
1673 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675 Turn the 'fetch_register' linux target op into a method of
1676 linux_process_target.
1678 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1679 (class linux_process_target) <low_fetch_register>: Declare.
1680 * linux-x86-low.cc (the_low_target)
1681 * linux-aarch64-low.cc (the_low_target)
1682 * linux-arm-low.cc (the_low_target)
1683 * linux-bfin-low.cc (the_low_target)
1684 * linux-cris-low.cc (the_low_target)
1685 * linux-crisv32-low.cc (the_low_target)
1686 * linux-m32r-low.cc (the_low_target)
1687 * linux-m68k-low.cc (the_low_target)
1688 * linux-nios2-low.cc (the_low_target)
1689 * linux-ppc-low.cc (the_low_target)
1690 * linux-s390-low.cc (the_low_target)
1691 * linux-sh-low.cc (the_low_target)
1692 * linux-sparc-low.cc (the_low_target)
1693 * linux-tic6x-low.cc (the_low_target)
1694 * linux-tile-low.cc (the_low_target)
1695 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1696 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1698 (ia64_fetch_register): Turn into...
1699 (ia64_target::low_fetch_register): ...this.
1700 (the_low_target): Remove the op field.
1701 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1703 (mips_fetch_register): Turn into...
1704 (mips_target::low_fetch_register): ...this.
1705 (the_low_target): Remove the op field.
1706 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1708 (riscv_fetch_register): Turn into...
1709 (riscv_target::low_fetch_register): ...this.
1710 (the_low_target): Remove the op field.
1712 Update the callers below.
1714 * linux-low.cc (linux_process_target::fetch_registers)
1715 (linux_process_target::low_fetch_register)
1717 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1719 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1720 linux target ops into methods of linux_process_target.
1722 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1723 (class linux_process_target) <fetch_register>
1725 <usr_fetch_inferior_registers>
1726 <usr_store_inferior_registers>
1727 <low_cannot_fetch_register>
1728 <low_cannot_fetch_register> Declare.
1729 * linux-low.cc (fetch_register): Turn into...
1730 (linux_process_target::fetch_register): ...this.
1731 (store_register): Turn into ...
1732 (linux_process_target::store_register): ...this.
1733 (usr_fetch_inferior_registers): Turn into...
1734 (linux_process_target::usr_fetch_inferior_registers): ...this.
1735 (usr_store_inferior_registers): Turn into...
1736 (linux_process_target::usr_store_inferior_registers): ...this.
1737 * linux-x86-low.cc (class x86_target)
1738 <low_cannot_fetch_register>
1739 <low_cannot_store_register>: Declare.
1740 (x86_cannot_store_register): Turn into...
1741 (x86_target::low_cannot_store_register): ...this.
1742 (x86_cannot_fetch_register): Turn into...
1743 (x86_target::low_cannot_fetch_register): ...this.
1744 (the_low_target): Remove the target op fields.
1745 * linux-aarch64-low.cc (class aarch64_target)
1746 <low_cannot_fetch_register>
1747 <low_cannot_store_register>: Declare.
1748 (aarch64_target::low_cannot_fetch_register)
1749 (aarch64_target::low_cannot_store_register): Define.
1750 (the_low_target): Remove the op fields.
1751 * linux-arm-low.cc (class arm_target)
1752 <low_cannot_fetch_register>
1753 <low_cannot_store_register>: Declare.
1754 (arm_cannot_fetch_register): Turn into...
1755 (arm_target::low_cannot_fetch_register): ...this.
1756 (arm_cannot_store_register): Turn into...
1757 (arm_target::low_cannot_store_register): ...this.
1758 (the_low_target): Remove the op fields.
1759 * linux-bfin-low.cc (class bfin_target)
1760 <low_cannot_fetch_register>
1761 <low_cannot_store_register>: Declare.
1762 (bfin_cannot_fetch_register): Turn into...
1763 (bfin_target::low_cannot_fetch_register): ...this.
1764 (bfin_cannot_store_register): Turn into...
1765 (bfin_target::low_cannot_store_register): ...this.
1766 (the_low_target): Remove the op fields.
1767 * linux-cris-low.cc (class cris_target)
1768 <low_cannot_fetch_register>
1769 <low_cannot_store_register>: Declare.
1770 (cris_cannot_fetch_register): Turn into...
1771 (cris_target::low_cannot_fetch_register): ...this.
1772 (cris_cannot_store_register): Turn into...
1773 (cris_target::low_cannot_store_register): ...this.
1774 (the_low_target): Remove the op fields.
1775 * linux-crisv32-low.cc (class crisv32_target)
1776 <low_cannot_fetch_register>
1777 <low_cannot_store_register>: Declare.
1778 (crisv32_target::low_cannot_fetch_register)
1779 (crisv32_target::low_cannot_store_register): Define.
1780 (the_low_target): Remove the op fields.
1781 * linux-ia64-low.cc (class ia64_target)
1782 <low_cannot_fetch_register>
1783 <low_cannot_store_register>: Declare.
1784 (ia64_cannot_fetch_register): Turn into...
1785 (ia64_target::low_cannot_fetch_register): ...this.
1786 (ia64_cannot_store_register): Turn into...
1787 (ia64_target::low_cannot_store_register): ...this.
1788 (the_low_target): Remove the op fields.
1789 * linux-m32r-low.cc (class m32r_target)
1790 <low_cannot_fetch_register>
1791 <low_cannot_store_register>: Declare.
1792 (m32r_cannot_fetch_register): Turn into...
1793 (m32r_target::low_cannot_fetch_register): ...this.
1794 (m32r_cannot_store_register): Turn into...
1795 (m32r_target::low_cannot_store_register): ...this.
1796 (the_low_target): Remove the op fields.
1797 * linux-m68k-low.cc (class m68k_target)
1798 <low_cannot_fetch_register>
1799 <low_cannot_store_register>: Declare.
1800 (m68k_cannot_fetch_register): Turn into...
1801 (m68k_target::low_cannot_fetch_register): ...this.
1802 (m68k_cannot_store_register): Turn into...
1803 (m68k_target::low_cannot_store_register): ...this.
1804 (the_low_target): Remove the op fields.
1805 * linux-mips-low.cc (class mips_target)
1806 <low_cannot_fetch_register>
1807 <low_cannot_store_register>: Declare.
1808 (mips_cannot_fetch_register): Turn into...
1809 (mips_target::low_cannot_fetch_register): ...this.
1810 (mips_cannot_store_register): Turn into...
1811 (mips_target::low_cannot_store_register): ...this.
1812 (get_usrregs_info): Inline at the call sites in
1813 low_cannot_fetch_register and low_cannot_store_register,
1815 (the_low_target): Remove the op fields.
1816 * linux-nios2-low.cc (class nios2_target)
1817 <low_cannot_fetch_register>
1818 <low_cannot_store_register>: Declare.
1819 (nios2_cannot_fetch_register): Turn into...
1820 (nios2_target::low_cannot_fetch_register): ...this.
1821 (nios2_cannot_store_register): Turn into...
1822 (nios2_target::low_cannot_store_register): ...this.
1823 (the_low_target): Remove the op fields.
1824 * linux-ppc-low.cc (class ppc_target)
1825 <low_cannot_fetch_register>
1826 <low_cannot_store_register>: Declare.
1827 (ppc_cannot_fetch_register): Turn into...
1828 (ppc_target::low_cannot_fetch_register): ...this.
1829 (ppc_cannot_store_register): Turn into...
1830 (ppc_target::low_cannot_store_register): ...this.
1831 (the_low_target): Remove the op fields.
1832 * linux-riscv-low.cc (class riscv_target)
1833 <low_cannot_fetch_register>
1834 <low_cannot_store_register>: Declare.
1835 (riscv_target::low_cannot_fetch_register)
1836 (riscv_target::low_cannot_store_register): Define.
1837 (the_low_target): Remove the op fields.
1838 * linux-s390-low.cc (class s390_target)
1839 <low_cannot_fetch_register>
1840 <low_cannot_store_register>: Declare.
1841 (s390_cannot_fetch_register): Turn into...
1842 (s390_target::low_cannot_fetch_register): ...this.
1843 (s390_cannot_store_register): Turn into...
1844 (s390_target::low_cannot_store_register): ...this.
1845 (the_low_target): Remove the op fields.
1846 * linux-sh-low.cc (class sh_target)
1847 <low_cannot_fetch_register>
1848 <low_cannot_store_register>: Declare.
1849 (sh_cannot_fetch_register): Turn into...
1850 (sh_target::low_cannot_fetch_register): ...this.
1851 (sh_cannot_store_register): Turn into...
1852 (sh_target::low_cannot_store_register): ...this.
1853 (the_low_target): Remove the op fields.
1854 * linux-sparc-low.cc (class sparc_target)
1855 <low_cannot_fetch_register>
1856 <low_cannot_store_register>: Declare.
1857 (sparc_cannot_fetch_register): Turn into...
1858 (sparc_target::low_cannot_fetch_register): ...this.
1859 (sparc_cannot_store_register): Turn into...
1860 (sparc_target::low_cannot_store_register): ...this.
1861 (the_low_target): Remove the op fields.
1862 * linux-tic6x-low.cc (class tic6x_target)
1863 <low_cannot_fetch_register>
1864 <low_cannot_store_register>: Declare.
1865 (tic6x_cannot_fetch_register): Turn into...
1866 (tic6x_target::low_cannot_fetch_register): ...this.
1867 (tic6x_cannot_store_register): Turn into...
1868 (tic6x_target::low_cannot_store_register): ...this.
1869 (the_low_target): Remove the op fields.
1870 * linux-tile-low.cc (class tile_target)
1871 <low_cannot_fetch_register>
1872 <low_cannot_store_register>: Declare.
1873 (tile_cannot_fetch_register): Turn into...
1874 (tile_target::low_cannot_fetch_register): ...this.
1875 (tile_cannot_store_register): Turn into...
1876 (tile_target::low_cannot_store_register): ...this.
1877 (the_low_target): Remove the op fields.
1878 * linux-xtensa-low.cc (class xtensa_target)
1879 <low_cannot_fetch_register>
1880 <low_cannot_store_register>: Declare.
1881 (xtensa_target::low_cannot_fetch_register)
1882 (xtensa_target::low_cannot_store_register): Define.
1883 (the_low_target): Remove the op fields.
1885 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1887 Turn the 'regs_info' linux target op into a method of
1888 linux_process_target.
1890 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1891 (class linux_process_target) <get_regs_info>: Define.
1893 Update the callers below.
1895 * linux-low.cc (linux_process_target::fetch_registers)
1896 (linux_process_target::store_registers)
1897 * proc-service.cc (gregset_info)
1899 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1900 (x86_linux_regs_info): Turn into ...
1901 (x86_target::get_regs_info): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1905 (aarch64_regs_info): Turn into ...
1906 (aarch64_target::get_regs_info): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1909 (arm_regs_info): Turn into ...
1910 (arm_target::get_regs_info): ...this.
1911 (the_low_target): Remove the op field.
1912 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1913 (bfin_regs_info): Turn into ...
1914 (bfin_target::get_regs_info): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1917 (cris_regs_info): Turn into ...
1918 (cris_target::get_regs_info): ...this.
1919 (the_low_target): Remove the op field.
1920 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1922 (crisv32_regs_info): Turn into ...
1923 (crisv32_target::get_regs_info): ...this.
1924 (the_low_target): Remove the op field.
1925 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1926 (ia64_regs_info): Turn into ...
1927 (ia64_target::get_regs_info): ...this.
1928 (the_low_target): Remove the op field.
1929 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1930 (m32r_regs_info): Turn into ...
1931 (m32r_target::get_regs_info): ...this.
1932 (the_low_target): Remove the op field.
1933 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1934 (m68k_regs_info): Turn into ...
1935 (m68k_target::get_regs_info): ...this.
1936 (the_low_target): Remove the op field.
1937 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1938 (mips_regs_info): Turn into ...
1939 (mips_target::get_regs_info): ...this.
1940 (the_low_target): Remove the op field.
1941 (get_usrregs_info): Update the call to the op.
1942 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1943 (nios2_regs_info): Turn into ...
1944 (nios2_target::get_regs_info): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1947 (ppc_regs_info): Turn into ...
1948 (ppc_target::get_regs_info): ...this.
1949 (the_low_target): Remove the op field.
1950 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1951 (riscv_regs_info): Turn into ...
1952 (riscv_target::get_regs_info): ...this.
1953 (the_low_target): Remove the op field.
1954 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1955 (s390_regs_info): Turn into ...
1956 (s390_target::get_regs_info): ...this.
1957 (the_low_target): Remove the op field.
1958 (s390_collect_ptrace_register)
1959 (s390_supply_ptrace_register)
1960 (s390_fill_gregset): Update the call to the op.
1961 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1962 (sh_regs_info): Turn into ...
1963 (sh_target::get_regs_info): ...this.
1964 (the_low_target): Remove the op field.
1965 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1966 (sparc_regs_info): Turn into ...
1967 (sparc_target::get_regs_info): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1970 (tic6x_regs_info): Turn into ...
1971 (tic6x_target::get_regs_info): ...this.
1972 (the_low_target): Remove the op field.
1973 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1974 (tile_regs_info): Turn into ...
1975 (tile_target::get_regs_info): ...this.
1976 (the_low_target): Remove the op field.
1977 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1979 (xtensa_regs_info): Turn into ...
1980 (xtensa_target::get_regs_info): ...this.
1981 (the_low_target): Remove the op field.
1983 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1985 Turn the 'arch_setup' linux target op into a method of
1986 linux_process_target.
1988 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1989 (class linux_process_target) <arch_setup_thread>
1990 <low_arch_setup>: New declarations.
1991 * linux-low.cc (linux_arch_setup): Delete.
1992 (linux_arch_setup_thread): Turn into...
1993 (linux_process_target::arch_setup_thread): ... this.
1995 Update the callers below.
1997 (linux_process_target::handle_extended_wait)
1998 (linux_process_target::post_create_inferior)
1999 (linux_process_target::filter_event)
2001 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2003 (x86_linux_update_xmltarget): Turn into...
2004 (x86_target::update_xmltarget): ...this.
2005 (x86_linux_process_qsupported): Update the call to
2006 x86_linux_update_xmltarget.
2007 (x86_arch_setup): Turn into ...
2008 (x86_target::low_arch_setup): ...this.
2009 (the_low_target): Remove the op field.
2010 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2012 (aarch64_arch_setup): Turn into ...
2013 (aarch64_target::low_arch_setup): ...this.
2014 (the_low_target): Remove the op field.
2015 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2017 (arm_arch_setup): Turn into ...
2018 (arm_target::low_arch_setup): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2022 (bfin_arch_setup): Turn into ...
2023 (bfin_target::low_arch_setup): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2027 (cris_arch_setup): Turn into ...
2028 (cris_target::low_arch_setup): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2032 (crisv32_arch_setup): Turn into ...
2033 (crisv32_target::low_arch_setup): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2037 (ia64_arch_setup): Turn into ...
2038 (ia64_target::low_arch_setup): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2042 (m32r_arch_setup): Turn into ...
2043 (m32r_target::low_arch_setup): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2047 (m68k_arch_setup): Turn into ...
2048 (m68k_target::low_arch_setup): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2052 (mips_arch_setup): Turn into ...
2053 (mips_target::low_arch_setup): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2057 (nios2_arch_setup): Turn into ...
2058 (nios2_target::low_arch_setup): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2062 (ppc_arch_setup): Turn into ...
2063 (ppc_target::low_arch_setup): ...this.
2064 (the_low_target): Remove the op field.
2065 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2067 (riscv_arch_setup): Turn into ...
2068 (riscv_target::low_arch_setup): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2072 (s390_arch_setup): Turn into ...
2073 (s390_target::low_arch_setup): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2077 (sh_arch_setup): Turn into ...
2078 (sh_target::low_arch_setup): ...this.
2079 (the_low_target): Remove the op field.
2080 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2082 (sparc_arch_setup): Turn into ...
2083 (sparc_target::low_arch_setup): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2087 (tic6x_arch_setup): Turn into ...
2088 (tic6x_target::low_arch_setup): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2092 (tile_arch_setup): Turn into ...
2093 (tile_target::low_arch_setup): ...this.
2094 (the_low_target): Remove the op field.
2095 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2097 (xtensa_arch_setup): Turn into ...
2098 (xtensa_target::low_arch_setup): ...this.
2099 (the_low_target): Remove the op field.
2101 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2103 * linux-low.h (the_linux_target): New extern declaration.
2104 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2106 (the_linux_target): Remove.
2107 * linux-x86-low.cc (class x86_target): New class.
2108 (the_x86_target): New static object.
2109 (the_linux_target): Define as pointer to the_x86_target.
2110 * linux-aarch64-low.cc (class aarch64_target): New class.
2111 (the_aarch64_target): New static object.
2112 (the_linux_target): Define as pointer to the_aarch64_target.
2113 * linux-arm-low.cc (class arm_target): New class.
2114 (the_arm_target): New static object.
2115 (the_linux_target): Define as pointer to the_arm_target.
2116 * linux-bfin-low.cc (class bfin_target): New class.
2117 (the_bfin_target): New static object.
2118 (the_linux_target): Define as pointer to the_bfin_target.
2119 * linux-cris-low.cc (class cris_target): New class.
2120 (the_cris_target): New static object.
2121 (the_linux_target): Define as pointer to the_cris_target.
2122 * linux-crisv32-low.cc (class crisv32_target): New class.
2123 (the_crisv32_target): New static object.
2124 (the_linux_target): Define as pointer to the_crisv32_target.
2125 * linux-ia64-low.cc (class ia64_target): New class.
2126 (the_ia64_target): New static object.
2127 (the_linux_target): Define as pointer to the_ia64_target.
2128 * linux-m32r-low.cc (class m32r_target): New class.
2129 (the_m32r_target): New static object.
2130 (the_linux_target): Define as pointer to the_m32r_target.
2131 * linux-m68k-low.cc (class m68k_target): New class.
2132 (the_m68k_target): New static object.
2133 (the_linux_target): Define as pointer to the_m68k_target.
2134 * linux-mips-low.cc (class mips_target): New class.
2135 (the_mips_target): New static object.
2136 (the_linux_target): Define as pointer to the_mips_target.
2137 * linux-nios2-low.cc (class nios2_target): New class.
2138 (the_nios2_target): New static object.
2139 (the_linux_target): Define as pointer to the_nios2_target.
2140 * linux-ppc-low.cc (class ppc_target): New class.
2141 (the_ppc_target): New static object.
2142 (the_linux_target): Define as pointer to the_ppc_target.
2143 * linux-riscv-low.cc (class riscv_target): New class.
2144 (the_riscv_target): New static object.
2145 (the_linux_target): Define as pointer to the_riscv_target.
2146 * linux-s390-low.cc (class s390_target): New class.
2147 (the_s390_target): New static object.
2148 (the_linux_target): Define as pointer to the_s390_target.
2149 * linux-sh-low.cc (class sh_target): New class.
2150 (the_sh_target): New static object.
2151 (the_linux_target): Define as pointer to the_sh_target.
2152 * linux-sparc-low.cc (class sparc_target): New class.
2153 (the_sparc_target): New static object.
2154 (the_linux_target): Define as pointer to the_sparc_target.
2155 * linux-tic6x-low.cc (class tic6x_target): New class.
2156 (the_tic6x_target): New static object.
2157 (the_linux_target): Define as pointer to the_tic6x_target.
2158 * linux-tile-low.cc (class tile_target): New class.
2159 (the_tile_target): New static object.
2160 (the_linux_target): Define as pointer to the_tile_target.
2161 * linux-xtensa-low.cc (class xtensa_target): New class.
2162 (the_xtensa_target): New static object.
2163 (the_linux_target): Define as pointer to the_xtensa_target.
2165 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167 Turn some static functions in linux-low.cc into private methods of
2168 linux_process_target.
2170 * linux-low.cc (handle_extended_wait): Turn into ...
2171 (linux_process_target::handle_extended_wait): ...this. Call
2172 'mourn' on 'this' object instead of 'the_target'.
2173 (maybe_move_out_of_jump_pad): Turn into...
2174 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2175 (linux_low_filter_event): Turn into...
2176 (linux_process_target::filter_event): ...this.
2177 (linux_wait_for_event_filtered): Turn into...
2178 (linux_process_target::wait_for_event_filtered): ...this.
2179 (linux_wait_for_event): Turn into...
2180 (linux_process_target::wait_for_event): ...this.
2181 (linux_wait_1): Turn into...
2182 (linux_process_target::wait_1): ...this.
2183 (wait_for_sigstop): Turn into...
2184 (linux_process_target::wait_for_sigstop): ...this.
2185 (move_out_of_jump_pad_callback): Turn into...
2186 (linux_process_target::move_out_of_jump_pad): ...this.
2187 (stop_all_lwps): Turn into...
2188 (linux_process_target::stop_all_lwps): ...this.
2189 (start_step_over): Turn into...
2190 (linux_process_target::start_step_over): ...this.
2191 (complete_ongoing_step_over): Turn into...
2192 (linux_process_target::complete_ongoing_step_over): ...this.
2193 (proceed_all_lwps): Turn into...
2194 (linux_process_target::proceed_all_lwps): ...this.
2195 (unstop_all_lwps): Turn into...
2196 (linux_process_target::unstop_all_lwps): ...this.
2198 * linux-low.h (class linux_process_target)
2199 <handle_extended_wait>
2200 <maybe_move_out_of_jump_pad>
2202 <wait_for_event_filtered>
2206 <move_out_of_jump_pad>
2209 <complete_ongoing_step_over>
2211 <unstop_all_lwps>: Declare.
2213 Update the callers below.
2215 * linux-low.cc (linux_process_target::attach): Update.
2216 (linux_process_target::stabilize_threads): Ditto.
2217 (linux_process_target::wait): Ditto.
2219 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2221 * linux-low.h (struct linux_target_ops): Update the comment for
2222 'cannot_store_register' to return 0 or 1.
2223 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2226 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2228 * config.in: Re-generate.
2229 * configure: Re-generate.
2231 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2233 * regcache.cc (find_register_by_number): Update.
2234 * tdesc.cc (init_target_desc): Likewise.
2235 * tdesc.h (target_desc::reg_defs): Likewise.
2237 2020-03-12 Tom Tromey <tom@tromey.com>
2239 * configure: Rebuild.
2240 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2241 (WIN32APILIBS): New subst.
2242 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2244 (gdbsupport/%.o): Remove target.
2245 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2246 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2247 (WIN32APILIBS): New variable.
2248 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2249 (gdbreplay$(EXEEXT)): Likewise.
2251 2020-03-12 Tom Tromey <tom@tromey.com>
2253 * config.in, configure: Rebuild.
2254 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2255 * acinclude.m4: Include gettext-sister.m4.
2256 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2258 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2259 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2261 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2263 * acinclude.m4: Update path to selftest.m4.
2265 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2267 * configure.ac: Don't source bfd/development.sh, move
2268 GDB_AC_COMMON higher.
2269 * configure: Re-generate.
2271 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2273 * configure: Re-generate.
2275 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2277 * configure: Re-generate.
2279 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2281 * .dir-locals.el: New file.
2283 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2285 * .gitattributes: New file.
2287 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2289 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2290 reply into an S reply.
2291 * server.cc (disable_packet_T): New global.
2292 (captured_main): Set new global when appropriate.
2293 * server.h (disable_packet_T): Declare.
2295 2020-02-21 Tom Tromey <tom@tromey.com>
2297 * Makefile.in (mostlyclean): New target.
2299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2301 * target.h (struct process_stratum_target): Remove.
2302 (class process_target): Rename to ...
2303 (class process_stratum_target): ... this.
2304 * linux-low.h (class linux_process_target): Derive from
2305 'process_stratum_target'.
2306 * linux-low.cc (linux_target_ops): Remove.
2307 (initialize_low): Set the_target to the singleton instance of
2308 linux_process_target.
2309 * lynx-low.h (class lynx_process_target): Derive from
2310 'process_stratum_target'.
2311 * lynx-low.cc (lynx_target_ops): Remove.
2312 (initialize_low): Set the_target to the singleton instance of
2313 lynx_process_target.
2314 * nto-low.h (class nto_process_target): Derive from
2315 'process_stratum_target'.
2316 * nto-low.cc (nto_target_ops): Remove.
2317 (initialize_low): Set the_target to the singleton instance of
2319 * win32-low.h (class win32_process_target): Derive from
2320 'process_stratum_target'.
2321 * win32-low.cc (win32_target_ops): Remove.
2322 (initialize_low): Set the_target to the singleton instance of
2323 win32_process_target.
2325 Replace 'the_target->pt' with 'the_target' in the uses below.
2327 * hostio.cc (hostio_error)
2332 * linux-aarch32-low.cc (arm_breakpoint_at)
2333 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2334 * linux-arm-low.cc (arm_sigreturn_next_pc)
2336 (arm_get_syscall_trapinfo)
2337 * linux-cris-low.cc (cris_breakpoint_at)
2338 * linux-crisv32-low.cc (cris_breakpoint_at)
2339 * linux-low.cc (handle_extended_wait)
2342 (linux_process_target::breakpoint_kind_from_pc)
2344 * linux-m32r-low.cc (m32r_breakpoint_at)
2345 * linux-mips-low.cc (mips_breakpoint_at)
2346 * linux-nios2-low.cc (nios2_breakpoint_at)
2347 * linux-ppc-low.cc (ppc_breakpoint_at)
2348 * linux-s390-low.cc (s390_get_hwcap)
2349 * linux-sh-low.cc (sh_breakpoint_at)
2350 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2351 (sparc_store_gregset_from_stack)
2352 (sparc_breakpoint_at)
2353 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2354 * linux-tile-low.cc (tile_breakpoint_at)
2355 * linux-x86-low.cc (x86_breakpoint_at)
2356 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2357 * mem-break.cc (bp_size)
2359 (insert_memory_breakpoint)
2360 (set_raw_breakpoint_at)
2361 (delete_raw_breakpoint)
2363 (uninsert_raw_breakpoint)
2364 (reinsert_raw_breakpoint)
2365 (validate_inserted_breakpoint)
2366 * regcache.cc (regcache_read_pc)
2368 * remote-utils.cc (putpkt_binary_1)
2371 (prepare_resume_reply)
2372 * server.cc (handle_general_set)
2375 (handle_qxfer_exec_file)
2376 (handle_qxfer_libraries_svr4)
2377 (handle_qxfer_osdata)
2378 (handle_qxfer_siginfo)
2379 (handle_qxfer_fdpic)
2383 (queue_stop_reply_callback)
2385 * target.cc (prepare_to_access_memory)
2386 (done_accessing_memory)
2387 (read_inferior_memory)
2388 (target_write_memory)
2389 (target_stop_and_wait)
2391 (target_mourn_inferior)
2392 (target_continue_no_signal)
2394 (target_supports_multi_process)
2397 (target_create_inferior)
2398 (target_post_create_inferior)
2400 (target_supports_fork_events)
2401 (target_supports_vfork_events)
2402 (target_supports_exec_events)
2403 (target_handle_new_gdb_connection)
2406 (fetch_inferior_registers)
2407 (store_inferior_registers)
2409 (target_supports_non_stop)
2411 (target_process_qsupported)
2412 (target_supports_catch_syscall)
2413 (target_get_ipa_tdesc_idx)
2414 (target_supports_tracepoints)
2415 (target_supports_fast_tracepoints)
2416 (target_get_min_fast_tracepoint_insn_len)
2417 (target_thread_stopped)
2419 (target_unpause_all)
2420 (target_stabilize_threads)
2421 (target_install_fast_tracepoint_jump_pad)
2423 (target_supports_disable_randomization)
2424 (target_supports_agent)
2425 (target_enable_btrace)
2426 (target_disable_btrace)
2427 (target_read_btrace)
2428 (target_read_btrace_conf)
2429 (target_supports_range_stepping)
2430 (target_supports_stopped_by_sw_breakpoint)
2431 (target_stopped_by_sw_breakpoint)
2432 (target_supports_stopped_by_hw_breakpoint)
2433 (target_supports_hardware_single_step)
2434 (target_stopped_by_hw_breakpoint)
2435 (target_breakpoint_kind_from_pc)
2436 (target_breakpoint_kind_from_current_state)
2437 (target_supports_software_single_step)
2438 (target_core_of_thread)
2439 (target_thread_name)
2440 (target_thread_handle)
2441 * win32-low.cc (do_initial_child_stuff)
2443 Rename target op default definitions listed below.
2445 * target.cc (process_target::post_create_inferior): Rename as ...
2446 (process_stratum_target::post_create_inferior): ... this.
2447 (process_target::prepare_to_access_memory): Rename as ...
2448 (process_stratum_target::prepare_to_access_memory): ... this.
2449 (process_target::done_accessing_memory): Rename as ...
2450 (process_stratum_target::done_accessing_memory): ... this.
2451 (process_target::look_up_symbols): Rename as ...
2452 (process_stratum_target::look_up_symbols): ... this.
2453 (process_target::supports_read_auxv): Rename as ...
2454 (process_stratum_target::supports_read_auxv): ... this.
2455 (process_target::read_auxv): Rename as ...
2456 (process_stratum_target::read_auxv): ... this.
2457 (process_target::supports_z_point_type): Rename as ...
2458 (process_stratum_target::supports_z_point_type): ... this.
2459 (process_target::insert_point): Rename as ...
2460 (process_stratum_target::insert_point): ... this.
2461 (process_target::remove_point): Rename as ...
2462 (process_stratum_target::remove_point): ... this.
2463 (process_target::stopped_by_sw_breakpoint): Rename as ...
2464 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2465 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2466 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2467 (process_target::stopped_by_hw_breakpoint): Rename as ...
2468 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2469 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2470 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2471 (process_target::supports_hardware_single_step): Rename as ...
2472 (process_stratum_target::supports_hardware_single_step): ... this.
2473 (process_target::stopped_by_watchpoint): Rename as ...
2474 (process_stratum_target::stopped_by_watchpoint): ... this.
2475 (process_target::stopped_data_address): Rename as ...
2476 (process_stratum_target::stopped_data_address): ... this.
2477 (process_target::supports_read_offsets): Rename as ...
2478 (process_stratum_target::supports_read_offsets): ... this.
2479 (process_target::read_offsets): Rename as ...
2480 (process_stratum_target::read_offsets): ... this.
2481 (process_target::supports_get_tls_address): Rename as ...
2482 (process_stratum_target::supports_get_tls_address): ... this.
2483 (process_target::get_tls_address): Rename as ...
2484 (process_stratum_target::get_tls_address): ... this.
2485 (process_target::hostio_last_error): Rename as ...
2486 (process_stratum_target::hostio_last_error): ... this.
2487 (process_target::supports_qxfer_osdata): Rename as ...
2488 (process_stratum_target::supports_qxfer_osdata): ... this.
2489 (process_target::qxfer_osdata): Rename as ...
2490 (process_stratum_target::qxfer_osdata): ... this.
2491 (process_target::supports_qxfer_siginfo): Rename as ...
2492 (process_stratum_target::supports_qxfer_siginfo): ... this.
2493 (process_target::qxfer_siginfo): Rename as ...
2494 (process_stratum_target::qxfer_siginfo): ... this.
2495 (process_target::supports_non_stop): Rename as ...
2496 (process_stratum_target::supports_non_stop): ... this.
2497 (process_target::async): Rename as ...
2498 (process_stratum_target::async): ... this.
2499 (process_target::start_non_stop): Rename as ...
2500 (process_stratum_target::start_non_stop): ... this.
2501 (process_target::supports_multi_process): Rename as ...
2502 (process_stratum_target::supports_multi_process): ... this.
2503 (process_target::supports_fork_events): Rename as ...
2504 (process_stratum_target::supports_fork_events): ... this.
2505 (process_target::supports_vfork_events): Rename as ...
2506 (process_stratum_target::supports_vfork_events): ... this.
2507 (process_target::supports_exec_events): Rename as ...
2508 (process_stratum_target::supports_exec_events): ... this.
2509 (process_target::handle_new_gdb_connection): Rename as ...
2510 (process_stratum_target::handle_new_gdb_connection): ... this.
2511 (process_target::handle_monitor_command): Rename as ...
2512 (process_stratum_target::handle_monitor_command): ... this.
2513 (process_target::core_of_thread): Rename as ...
2514 (process_stratum_target::core_of_thread): ... this.
2515 (process_target::supports_read_loadmap): Rename as ...
2516 (process_stratum_target::supports_read_loadmap): ... this.
2517 (process_target::read_loadmap): Rename as ...
2518 (process_stratum_target::read_loadmap): ... this.
2519 (process_target::process_qsupported): Rename as ...
2520 (process_stratum_target::process_qsupported): ... this.
2521 (process_target::supports_tracepoints): Rename as ...
2522 (process_stratum_target::supports_tracepoints): ... this.
2523 (process_target::read_pc): Rename as ...
2524 (process_stratum_target::read_pc): ... this.
2525 (process_target::write_pc): Rename as ...
2526 (process_stratum_target::write_pc): ... this.
2527 (process_target::supports_thread_stopped): Rename as ...
2528 (process_stratum_target::supports_thread_stopped): ... this.
2529 (process_target::thread_stopped): Rename as ...
2530 (process_stratum_target::thread_stopped): ... this.
2531 (process_target::supports_get_tib_address): Rename as ...
2532 (process_stratum_target::supports_get_tib_address): ... this.
2533 (process_target::get_tib_address): Rename as ...
2534 (process_stratum_target::get_tib_address): ... this.
2535 (process_target::pause_all): Rename as ...
2536 (process_stratum_target::pause_all): ... this.
2537 (process_target::unpause_all): Rename as ...
2538 (process_stratum_target::unpause_all): ... this.
2539 (process_target::stabilize_threads): Rename as ...
2540 (process_stratum_target::stabilize_threads): ... this.
2541 (process_target::supports_fast_tracepoints): Rename as ...
2542 (process_stratum_target::supports_fast_tracepoints): ... this.
2543 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2544 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2545 (process_target::emit_ops): Rename as ...
2546 (process_stratum_target::emit_ops): ... this.
2547 (process_target::supports_disable_randomization): Rename as ...
2548 (process_stratum_target::supports_disable_randomization): ... this.
2549 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2550 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2551 (process_target::qxfer_libraries_svr4): Rename as ...
2552 (process_stratum_target::qxfer_libraries_svr4): ... this.
2553 (process_target::supports_agent): Rename as ...
2554 (process_stratum_target::supports_agent): ... this.
2555 (process_target::enable_btrace): Rename as ...
2556 (process_stratum_target::enable_btrace): ... this.
2557 (process_target::disable_btrace): Rename as ...
2558 (process_stratum_target::disable_btrace): ... this.
2559 (process_target::read_btrace): Rename as ...
2560 (process_stratum_target::read_btrace): ... this.
2561 (process_target::read_btrace_conf): Rename as ...
2562 (process_stratum_target::read_btrace_conf): ... this.
2563 (process_target::supports_range_stepping): Rename as ...
2564 (process_stratum_target::supports_range_stepping): ... this.
2565 (process_target::supports_pid_to_exec_file): Rename as ...
2566 (process_stratum_target::supports_pid_to_exec_file): ... this.
2567 (process_target::pid_to_exec_file): Rename as ...
2568 (process_stratum_target::pid_to_exec_file): ... this.
2569 (process_target::supports_multifs): Rename as ...
2570 (process_stratum_target::supports_multifs): ... this.
2571 (process_target::multifs_open): Rename as ...
2572 (process_stratum_target::multifs_open): ... this.
2573 (process_target::multifs_unlink): Rename as ...
2574 (process_stratum_target::multifs_unlink): ... this.
2575 (process_target::multifs_readlink): Rename as ...
2576 (process_stratum_target::multifs_readlink): ... this.
2577 (process_target::breakpoint_kind_from_pc): Rename as ...
2578 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2579 (process_target::breakpoint_kind_from_current_state): Rename as ...
2580 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2581 (process_target::thread_name): Rename as ...
2582 (process_stratum_target::thread_name): ... this.
2583 (process_target::thread_handle): Rename as ...
2584 (process_stratum_target::thread_handle): ... this.
2585 (process_target::supports_software_single_step): Rename as ...
2586 (process_stratum_target::supports_software_single_step): ... this.
2587 (process_target::supports_catch_syscall): Rename as ...
2588 (process_stratum_target::supports_catch_syscall): ... this.
2589 (process_target::get_ipa_tdesc_idx): Rename as ...
2590 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2592 2020-02-20 Pedro Alves <palves@redhat.com>
2594 * target.cc (set_target_ops): Simply copy the given target pointer
2595 instead of creating a copy of the pointed object.
2597 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2599 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2602 * target.h (struct process_stratum_target): Remove the target op.
2603 (class process_target): Add the target op.
2604 (target_get_ipa_tdesc_idx): Update the macro.
2605 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2607 Update the derived classes and callers below.
2609 * linux-low.cc (linux_target_ops): Update.
2610 (linux_get_ipa_tdesc_idx): Turn into ...
2611 (linux_process_target::get_ipa_tdesc_idx): ... this.
2612 * linux-low.h (class linux_process_target): Update.
2613 * lynx-low.cc (lynx_target_ops): Update.
2614 * nto-low.cc (nto_target_ops): Update.
2615 * win32-low.cc (win32_target_ops): Update.
2617 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2619 Turn process_stratum_target's supports_catch_syscall op into a
2620 method of process_target.
2622 * target.h (struct process_stratum_target): Remove the target op.
2623 (class process_target): Add the target op.
2624 (target_supports_catch_syscall): Update the macro.
2625 * target.cc (process_target::supports_catch_syscall): Define.
2627 Update the derived classes and callers below.
2629 * linux-low.cc (linux_target_ops): Update.
2630 (linux_supports_catch_syscall): Turn into ...
2631 (linux_process_target::supports_catch_syscall): ... this.
2632 * linux-low.h (class linux_process_target): Update.
2633 * lynx-low.cc (lynx_target_ops): Update.
2634 * nto-low.cc (nto_target_ops): Update.
2635 * win32-low.cc (win32_target_ops): Update.
2637 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2639 Turn process_stratum_target's supports_software_single_step op
2640 into a method of process_target.
2642 * target.h (struct process_stratum_target): Remove the target op.
2643 (class process_target): Add the target op.
2644 (target_supports_software_single_step): Update the macro.
2645 * target.cc (process_target::supports_software_single_step): Define.
2647 Update the derived classes and callers below.
2649 * linux-low.cc (linux_target_ops): Update.
2650 (linux_supports_software_single_step): Turn into ...
2651 (linux_process_target::supports_software_single_step): ... this.
2652 * linux-low.h (class linux_process_target): Update.
2653 * lynx-low.cc (lynx_target_ops): Update.
2654 * nto-low.cc (nto_target_ops): Update.
2655 * win32-low.cc (win32_target_ops): Update.
2657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659 Turn process_stratum_target's thread_name and thread_handle ops
2660 into methods of process_target.
2662 * target.h (struct process_stratum_target): Remove the target ops.
2663 (class process_target): Add the target ops.
2664 (target_thread_name): Update the macro.
2665 (target_thread_handle): Update the macro.
2666 * target.cc (process_target::thread_name): Define.
2667 (process_target::thread_handle): Define.
2669 Update the derived classes and callers below.
2671 * linux-low.cc (linux_target_ops): Update.
2672 (linux_process_target::thread_name): Define.
2673 (linux_process_target::thread_handle): Define.
2674 * linux-low.h (class linux_process_target): Update.
2675 * lynx-low.cc (lynx_target_ops): Update.
2676 * nto-low.cc (nto_target_ops): Update.
2677 * win32-low.cc (win32_target_ops): Update.
2679 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681 Turn process_stratum_target's breakpoint_kind_from_pc,
2682 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2683 ops into methods of process_target.
2685 * target.h (struct process_stratum_target): Remove the target op.
2686 (class process_target): Add the target op.
2687 (target_breakpoint_kind_from_pc): Update the macro.
2688 (target_breakpoint_kind_from_current_state): Update the macro.
2689 (default_breakpoint_kind_from_pc): Remove declaration.
2690 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2691 (process_target::breakpoint_kind_from_pc): ... this.
2692 (process_target::breakpoint_kind_from_current_state): Define.
2694 Update the derived classes and callers below.
2696 * mem-break.cc (bp_size): Update.
2697 (bp_opcode): Update.
2698 * linux-low.cc (linux_target_ops): Update.
2699 (linux_wait_1): Update.
2700 (linux_breakpoint_kind_from_pc): Turn into ...
2701 (linux_process_target::breakpoint_kind_from_pc): ... this.
2702 (linux_sw_breakpoint_from_kind): Turn into ...
2703 (linux_process_target::sw_breakpoint_from_kind): ... this.
2704 (linux_breakpoint_kind_from_current_state): Turn into ...
2705 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 (lynx_process_target::sw_breakpoint_from_kind): Define.
2709 * lynx-low.h (class lynx_process_target): Update.
2710 * nto-low.cc (nto_target_ops): Update.
2711 (nto_sw_breakpoint_from_kind): Turn into ...
2712 (nto_process_target::sw_breakpoint_from_kind): ... this.
2713 * nto-low.h (class nto_process_target): Update.
2714 * win32-low.cc (win32_target_ops): Update.
2715 (win32_sw_breakpoint_from_kind): Turn into ...
2716 (win32_process_target::sw_breakpoint_from_kind): ... this.
2717 * win32-low.h (class win32_process_target): Update.
2719 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721 Turn process_stratum_target's multifs_open, multifs_readlink,
2722 multifs_unlink ops into methods of process_target.
2724 * target.h (struct process_stratum_target): Remove the target ops.
2725 (class process_target): Add the target ops. Also add
2727 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2729 (process_target::supports_multifs): Define.
2730 (process_target::multifs_open): Define.
2731 (process_target::multifs_readlink): Define.
2732 (process_target::multifs_unlink): Define.
2734 Update the derived classes and callers below.
2736 * hostio.cc (handle_setfs): Update.
2737 (handle_open): Update.
2738 (handle_unlink): Update.
2739 (handle_readlink): Update.
2740 * linux-low.cc (linux_target_ops): Update.
2741 (linux_process_target::supports_multifs): Define.
2742 (linux_process_target::multifs_open): Define.
2743 (linux_process_target::multifs_readlink): Define.
2744 (linux_process_target::multifs_unlink): Define.
2745 * linux-low.h (class linux_process_target): Update.
2746 * lynx-low.cc (lynx_target_ops): Update.
2747 * nto-low.cc (nto_target_ops): Update.
2748 * win32-low.cc (win32_target_ops): Update.
2750 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2752 Turn process_stratum_target's pid_to_exec_file op into a method
2755 * target.h (struct process_stratum_target): Remove the target op.
2756 (class process_target): Add the target op. Also add
2757 'supports_pid_to_exec_file'.
2758 * target.cc (process_target::pid_to_exec_file): Define.
2759 (process_target::supports_pid_to_exec_file): Define.
2761 Update the derived classes and callers below.
2763 * server.cc (handle_qxfer_exec_file): Update.
2764 (handle_query): Update.
2765 * linux-low.cc (linux_target_ops): Update.
2766 (linux_process_target::supports_pid_to_exec_file): Define.
2767 (linux_process_target::pid_to_exec_file): Define.
2768 * linux-low.h (class linux_process_target): Update.
2769 * lynx-low.cc (lynx_target_ops): Update.
2770 * nto-low.cc (nto_target_ops): Update.
2771 * win32-low.cc (win32_target_ops): Update.
2773 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2775 Turn process_stratum_target's supports_range_stepping op into a
2776 method of process_target.
2778 * target.h (struct process_stratum_target): Remove the target op.
2779 (class process_target): Add the target op.
2780 (target_supports_range_stepping): Update the macro.
2781 * target.cc (process_target::supports_range_stepping): Define.
2783 Update the derived classes and callers below.
2785 * linux-low.cc (linux_target_ops): Update.
2786 (linux_supports_range_stepping): Turn into ...
2787 (linux_process_target::supports_range_stepping): ... this.
2788 * linux-low.h (class linux_process_target): Update.
2789 * lynx-low.cc (lynx_target_ops): Update.
2790 * nto-low.cc (nto_target_ops): Update.
2791 * win32-low.cc (win32_target_ops): Update.
2793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2795 Turn process_stratum_target's btrace-related ops (enable_btrace,
2796 disable_btrace, read_btrace, read_btrace_conf) into methods of
2799 * target.h (struct process_stratum_target): Remove the target ops.
2800 (class process_target): Add the target ops.
2801 (target_enable_btrace): Update.
2802 (target_disable_btrace): Update.
2803 (target_read_btrace): Update.
2804 (target_read_btrace_conf): Update.
2805 * target.cc (process_target::enable_btrace): Define.
2806 (process_target::disable_btrace): Define.
2807 (process_target::read_btrace): Define.
2808 (process_target::read_btrace_conf): Define.
2810 Update the derived classes and callers below.
2812 * linux-low.cc (linux_target_ops): Update.
2813 (linux_process_target:enable_btrace): Define as a wrapper around
2814 linux_enable_btrace.
2815 (linux_low_disable_btrace): Turn into ...
2816 (linux_process_target::disable_btrace): ... this.
2817 (linux_low_read_btrace): Turn into ...
2818 (linux_process_target::read_btrace): ... this.
2819 (linux_low_btrace_conf): Turn into ...
2820 (linux_process_target::read_btrace_conf): ... this.
2821 * linux-low.h (class linux_process_target): Update.
2822 * lynx-low.cc (lynx_target_ops): Update.
2823 * nto-low.cc (nto_target_ops): Update.
2824 * win32-low.cc (win32_target_ops): Update.
2826 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2828 Turn process_stratum_target's supports_agent op into a method of
2831 * target.h (struct process_stratum_target): Remove the target op.
2832 (class process_target): Add the target op.
2833 (target_supports_agent): Update the macro.
2834 * target.cc (process_target::supports_agent): Define.
2836 Update the derived classes and callers below.
2838 * linux-low.cc (linux_target_ops): Update.
2839 (linux_supports_agent): Turn into ...
2840 (linux_process_target::supports_agent): ... this.
2841 * linux-low.h (class linux_process_target): Update.
2842 * lynx-low.cc (lynx_target_ops): Update.
2843 * nto-low.cc (nto_target_ops): Update.
2844 * win32-low.cc (win32_target_ops): Update.
2846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2848 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2849 method of process_target.
2851 * target.h (struct process_stratum_target): Remove the target op.
2852 (class process_target): Add the target op. Also add
2853 'supports_qxfer_libraries_svr4'.
2854 * target.cc (process_target::qxfer_libraries_svr4): Define.
2855 (process_target::supports_qxfer_libraries_svr4): Define.
2857 Update the derived classes and callers below.
2859 * server.cc (handle_qxfer_libraries_svr4): Update.
2860 (handle_query): Update.
2861 * linux-low.cc (linux_target_ops): Update.
2862 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2863 (linux_qxfer_libraries_svr4): Turn into ...
2864 (linux_process_target::qxfer_libraries_svr4): ... this.
2865 * linux-low.h (class linux_process_target): Update.
2866 * lynx-low.cc (lynx_target_ops): Update.
2867 * nto-low.cc (nto_target_ops): Update.
2868 * win32-low.cc (win32_target_ops): Update.
2870 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872 Turn process_stratum_target's supports_disable_randomization op
2873 into a method of process_target.
2875 * target.h (struct process_stratum_target): Remove the target op.
2876 (class process_target): Add the target op.
2877 (target_supports_disable_randomization): Update the macro.
2878 * target.cc (process_target::supports_disable_randomization): Define.
2880 Update the derived classes and callers below.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_supports_disable_randomization): Turn into ...
2884 (linux_process_target::supports_disable_randomization): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892 Turn process_stratum_target's emit_ops op into a method of
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op.
2897 (target_emit_ops): Update the macro.
2898 * target.cc (process_target::emit_ops): Define.
2900 Update the derived classes and callers below.
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_emit_ops): Turn into ...
2904 (linux_process_target::emit_ops): ... this.
2905 * linux-low.h (class linux_process_target): Update.
2906 * lynx-low.cc (lynx_target_ops): Update.
2907 * nto-low.cc (nto_target_ops): Update.
2908 * win32-low.cc (win32_target_ops): Update.
2910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2913 and get_min_fast_tracepoint_insn_len ops into methods of
2916 * target.h (struct process_stratum_target): Remove the target ops.
2917 (class process_target): Add the target ops. Also add
2918 'supports_fast_tracepoints'.
2919 (target_supports_fast_tracepoints): Update the macro.
2920 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2921 (install_fast_tracepoint_jump_pad): Update and rename the macro
2923 (target_install_fast_tracepoint_jump_pad): ... this.
2924 * target.cc (process_target::supports_fast_tracepoints): Define.
2925 (process_target::install_fast_tracepoint_jump_pad): Define.
2926 (process_target::get_min_fast_tracepoint_insn_len): Define.
2928 Update the derived classes and callers below.
2930 * tracepoint.cc (install_fast_tracepoint): Update.
2931 * linux-low.cc (linux_target_ops): Update.
2932 (linux_process_target::supports_fast_tracepoints): Define.
2933 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2934 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2935 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2936 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2937 * linux-low.h (class linux_process_target): Update.
2938 * lynx-low.cc (lynx_target_ops): Update.
2939 * nto-low.cc (nto_target_ops): Update.
2940 * win32-low.cc (win32_target_ops): Update.
2942 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2944 Turn process_stratum_target's stabilize_threads op into a
2945 method of process_target.
2947 * target.h (struct process_stratum_target): Remove the target op.
2948 (class process_target): Add the target op.
2949 (target_stabilize_threads): Update the macro.
2950 * target.cc (process_target::stabilize_threads): Define.
2952 Update the derived classes and callers below.
2954 * server.cc (handle_status): Update.
2955 * tracepoint.cc (cmd_qtdp): Update.
2956 (cmd_qtstart): Update.
2957 * linux-low.cc (linux_target_ops): Update.
2958 (linux_stabilize_threads): Turn into ...
2959 (linux_process_target::stabilize_threads): ... this.
2960 (linux_wait_1): Update.
2961 * linux-low.h (class linux_process_target): Update.
2962 * lynx-low.cc (lynx_target_ops): Update.
2963 * nto-low.cc (nto_target_ops): Update.
2964 * win32-low.cc (win32_target_ops): Update.
2966 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2968 Turn process_stratum_target's pause_all and unpause_all ops
2969 into methods of process_target.
2971 * target.h (struct process_stratum_target): Remove the target ops.
2972 (class process_target): Add the target ops.
2973 (pause_all): Update the macro and rename to...
2974 (target_pause_all): ... this.
2975 (unpause_all): Update the macro and rename to...
2976 (target_unpause_all): ... this.
2977 * target.cc (process_target::pause_all): Define.
2978 (process_target::unpause_all): Define.
2980 Update the derived classes and callers below.
2982 * server.cc (handle_status): Update.
2983 * tracepoint.cc (clear_installed_tracepoints): Update.
2985 (cmd_qtstart): Update.
2986 (stop_tracing): Update.
2987 (cmd_qtstatus): Update.
2988 (upload_fast_traceframes): Update.
2989 (run_inferior_command): Update.
2990 * linux-low.cc (linux_target_ops): Update.
2991 (linux_pause_all): Turn into ...
2992 (linux_process_target::pause_all): ... this.
2993 (linux_unpause_all): Turn into ...
2994 (linux_process_target::unpause_all): ... this.
2995 (linux_process_target::prepare_to_access_memory): Update.
2996 (linux_process_target::done_accessing_memory): Update.
2997 * linux-low.h (class linux_process_target): Update.
2998 * lynx-low.cc (lynx_target_ops): Update.
2999 * nto-low.cc (nto_target_ops): Update.
3000 * win32-low.cc (win32_target_ops): Update.
3002 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3004 Turn process_stratum_target's get_tib_address op into a method of
3007 * target.h (struct process_stratum_target): Remove the target op.
3008 (class process_target): Add the target op. Also add
3009 'supports_get_tib_address'.
3010 * target.cc (process_target::get_tib_address): Define.
3011 (process_target::supports_get_tib_address): Define.
3013 Update the derived classes and callers below.
3015 * server.cc (handle_query): Update.
3016 * linux-low.cc (win32_target_ops): Update.
3017 * lynx-low.cc (lynx_target_ops): Update.
3018 * nto-low.cc (nto_target_ops): Update.
3019 * win32-low.cc (win32_target_ops): Update.
3020 (win32_process_target::supports_get_tib_address): Define.
3021 (win32_get_tib_address): Turn into ...
3022 (win32_process_target::get_tib_address): ... this.
3023 * win32-low.h (class win32_process_target): Update.
3025 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3027 Turn process_stratum_target's thread_stopped op into a method of
3030 * target.h (struct process_stratum_target): Remove the target op.
3031 (class process_target): Add the target op. Also add
3032 'supports_thread_stopped'.
3033 (target_thread_stopped): Update the macro.
3034 * target.cc (process_target::thread_stopped): Define.
3035 (process_target::supports_thread_stopped): Define.
3036 (prepare_to_access_memory): Update.
3038 Update the derived classes and callers below.
3040 * server.cc (queue_stop_reply_callback): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_process_target::supports_thread_stopped): Define.
3043 (linux_thread_stopped): Turn into ...
3044 (linux_process_target::thread_stopped): ... this.
3045 * linux-low.h (class linux_process_target): Update.
3046 * lynx-low.cc (lynx_target_ops): Update.
3047 * nto-low.cc (nto_target_ops): Update.
3048 * win32-low.cc (win32_target_ops): Update.
3050 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052 Turn process_stratum_target's read_pc and write_pc ops into
3053 methods of process_target.
3055 * target.h (struct process_stratum_target): Remove the target ops.
3056 (class process_target): Add the target ops.
3057 * target.cc (process_target::read_pc): Define.
3058 (process_target::write_pc): Define.
3060 Update the derived classes and callers below.
3062 * regcache.cc (regcache_read_pc): Update.
3063 (regcache_write_pc): Update.
3064 * linux-low.cc (linux_target_ops): Update.
3065 (linux_read_pc): Turn into ...
3066 (linux_process_target::read_pc): ... this.
3067 (linux_write_pc): Turn into ...
3068 (linux_process_target::write_pc): ... this.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 * win32-low.cc (win32_target_ops): Update.
3074 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3076 Turn process_stratum_target's supports_tracepoints op into a
3077 method of process_target.
3079 * target.h (struct process_stratum_target): Remove the target op.
3080 (class process_target): Add the target op.
3081 (target_supports_tracepoints): Update the macro.
3082 * target.cc (process_target::supports_tracepoints): Define.
3084 Update the derived classes and callers below.
3086 * linux-low.cc (linux_target_ops): Update.
3087 (linux_supports_tracepoints): Turn into ...
3088 (linux_process_target::supports_tracepoints): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 * win32-low.cc (win32_target_ops): Update.
3094 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3096 Turn process_stratum_target's process_qsupported op into a method
3099 * target.h (struct process_stratum_target): Remove the target op.
3100 (class process_target): Add the target op.
3101 (target_process_qsupported): Update the macro.
3102 * target.cc (process_target::process_qsupported): Define.
3104 Update the derived classes and callers below.
3106 * linux-low.cc (linux_target_ops): Update.
3107 (linux_process_qsupported): Turn into ...
3108 (linux_process_target::process_qsupported): ... this.
3109 * linux-low.h (class linux_process_target): Update.
3110 * lynx-low.cc (lynx_target_ops): Update.
3111 * nto-low.cc (nto_target_ops): Update.
3112 * win32-low.cc (win32_target_ops): Update.
3114 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3116 Turn process_stratum_target's read_loadmap op into a method of
3119 * target.h (struct process_stratum_target): Remove the target op.
3120 (class process_target): Add the target op. Also add
3121 'supports_read_loadmap'.
3122 * target.cc (process_target::read_loadmap): Define.
3123 (process_target::supports_read_loadmap): Define.
3125 Update the derived classes and callers below.
3127 * server.cc (handle_qxfer_fdpic): Update.
3128 (handle_query): Update.
3129 * linux-low.cc (linux_target_ops): Update.
3130 (linux_process_target::supports_read_loadmap): Define.
3131 (linux_read_loadmap): Turn into ...
3132 (linux_process_target::read_loadmap): ... this.
3133 * linux-low.h (class linux_process_target): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 * nto-low.cc (nto_target_ops): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3138 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140 Turn process_stratum_target's core_of_thread op into a method of
3143 * target.h (struct process_stratum_target): Remove the target op.
3144 (class process_target): Add the target op.
3145 (target_core_of_thread): Update the macro.
3146 * target.cc (process_target::core_of_thread): Define.
3148 Update the derived classes and callers below.
3150 * linux-low.cc (linux_target_ops): Update.
3151 (linux_process_target::core_of_thread): Define.
3152 * linux-low.h (class linux_process_target): Update.
3153 * lynx-low.cc (lynx_target_ops): Update.
3154 * nto-low.cc (nto_target_ops): Update.
3155 * win32-low.cc (win32_target_ops): Update.
3157 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3159 Turn process_stratum_target's handle_monitor_command op into a
3160 method of process_target.
3162 * target.h (struct process_stratum_target): Remove the target op.
3163 (class process_target): Add the target op.
3164 (target_handle_monitor_command): Update the macro.
3165 * target.cc (process_target::handle_monitor_command): Define.
3167 Update the derived classes and callers below.
3169 * server.cc (handle_query): Update.
3170 * linux-low.cc (linux_target_ops): Update.
3171 (linux_process_target::handle_monitor_command): Define.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179 Turn process_stratum_target's handle_new_gdb_connection op into a
3180 method of process_target.
3182 * target.h (struct process_stratum_target): Remove the target op.
3183 (class process_target): Add the target op.
3184 (target_handle_new_gdb_connection): Update the macro.
3185 * target.cc (process_target::handle_new_gdb_connection): Define.
3187 Update the derived classes and callers below.
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_handle_new_gdb_connection): Turn into ...
3191 (linux_process_target::handle_new_gdb_connection): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's supports_fork_events,
3200 supports_vfork_events, and supports_exec_events ops into methods
3203 * target.h (struct process_stratum_target): Remove the target ops.
3204 (class process_target): Add the target ops.
3205 (target_supports_fork_events): Update the macro.
3206 (target_supports_vfork_events): Update the macro.
3207 (target_supports_exec_events): Update the macro.
3208 * target.cc (process_target::supports_fork_events): Define.
3209 (process_target::supports_vfork_events): Define.
3210 (process_target::supports_exec_events): Define.
3212 Update the derived classes and callers below.
3214 * linux-low.cc (linux_target_ops): Update.
3215 (linux_supports_fork_events): Turn into ...
3216 (linux_process_target::supports_fork_events): ... this.
3217 (linux_supports_vfork_events): Turn into ...
3218 (linux_process_target::supports_vfork_events): ... this.
3219 (linux_supports_exec_events): Turn into ...
3220 (linux_process_target::supports_exec_events): ... this.
3221 * linux-low.h (class linux_process_target): Update.
3222 * lynx-low.cc (lynx_target_ops): Update.
3223 * nto-low.cc (nto_target_ops): Update.
3224 * win32-low.cc (win32_target_ops): Update.
3226 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3228 Turn process_stratum_target's supports_multi_process op into a
3229 method of process_target.
3231 * target.h (struct process_stratum_target): Remove the target op.
3232 (class process_target): Add the target op.
3233 * target.cc (process_target::supports_multi_process): Define.
3234 (target_supports_multi_process): Update.
3236 Update the derived classes and callers below.
3238 * linux-low.cc (linux_target_ops): Update.
3239 (linux_supports_multi_process): Turn into ...
3240 (linux_process_target::supports_multi_process): ... this.
3241 * linux-low.h (class linux_process_target): Update.
3242 * lynx-low.cc (lynx_target_ops): Update.
3243 * nto-low.cc (nto_target_ops): Update.
3244 * win32-low.cc (win32_target_ops): Update.
3246 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248 Turn process_stratum_target's supports_non_stop, async, and
3249 start_non_stop ops into methods of process_target.
3251 * target.h (struct process_stratum_target): Remove the target ops.
3252 (class process_target): Add the target ops.
3253 (target_supports_non_stop): Update the macro.
3254 (target_async): Update the macro.
3255 (start_non_stop): Remove declaration.
3256 * target.cc (process_target::supports_non_stop): Define.
3257 (process_target::async): Define.
3258 (process_target::start_non_stop): Define.
3259 (start_non_stop): Remove.
3261 Update the derived classes and callers below.
3263 * server.cc (handle_qxfer_siginfo): Update.
3264 (handle_query): Update.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_non_stop): Turn into ...
3267 (linux_process_target::supports_non_stop): ... this.
3268 (linux_async): Turn into ...
3269 (linux_process_target::async): ... this.
3270 (linux_start_non_stop): Turn into ...
3271 (linux_process_target::start_non_stop): ... this.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 (nto_supports_non_stop): Remove; rely on the default behavior
3277 * win32-low.cc (win32_target_ops): Update.
3279 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3281 Turn process_stratum_target's qxfer_siginfo op into a method of
3284 * target.h (struct process_stratum_target): Remove the target op.
3285 (class process_target): Add the target op. Also add
3286 'supports_qxfer_siginfo'.
3287 * target.cc (process_target::qxfer_siginfo): Define.
3288 (process_target::supports_qxfer_siginfo): Define.
3290 Update the derived classes and callers below.
3292 * server.cc (handle_qxfer_siginfo): Update.
3293 (handle_query): Update.
3294 * linux-low.cc (linux_target_ops): Update.
3295 (linux_process_target::supports_qxfer_siginfo): Define.
3296 (linux_xfer_siginfo): Turn into ...
3297 (linux_process_target::qxfer_siginfo): ... this.
3298 * linux-low.h (class linux_process_target): Update.
3299 * lynx-low.cc (lynx_target_ops): Update.
3300 * nto-low.cc (nto_target_ops): Update.
3301 * win32-low.cc (win32_target_ops): Update.
3303 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3305 Turn process_stratum_target's qxfer_osdata op into a method of
3308 * target.h (struct process_stratum_target): Remove the target op.
3309 (class process_target): Add the target op. Also add
3310 'supports_qxfer_osdata'.
3311 * target.cc (process_target::qxfer_osdata): Define.
3312 (process_target::supports_qxfer_osdata): Define.
3314 Update the derived classes and callers below.
3316 * server.cc (handle_qxfer_osdata): Update.
3317 (handle_query): Update.
3318 * linux-low.cc (linux_target_ops): Update.
3319 (linux_process_target::supports_qxfer_osdata): Define.
3320 (linux_qxfer_osdata): Turn into ...
3321 (linux_process_target::qxfer_osdata): ... this.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 * win32-low.cc (win32_target_ops): Update.
3327 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3329 Turn process_stratum_target's hostio_last_error op into a
3330 method of process_target.
3332 * target.h (struct process_stratum_target): Remove the target op.
3333 (class process_target): Add the target op.
3334 * target.cc: Add "hostio.h" to includes.
3335 (process_target::hostio_last_error): Define.
3337 Update the derived classes and callers below.
3339 * hostio.cc (hostio_error): Update.
3340 * linux-low.cc: Remove "hostio.h" from includes.
3341 (linux_target_ops): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.h (class win32_process_target): Update.
3345 * win32-low.cc (win32_target_ops): Update.
3346 (wince_hostio_last_error): Turn into ...
3347 (win32_process_target::hostio_last_error): ... this.
3349 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351 Turn process_stratum_target's get_tls_address op into a method of
3354 * target.h (struct process_stratum_target): Remove the target op.
3355 (class process_target): Add the target op. Also add
3356 'supports_get_tls_address'.
3357 * target.cc (process_target::get_tls_address): Define.
3358 (process_target::supports_get_tls_address): Define.
3360 Update the derived classes and callers below.
3362 * server.cc (handle_query): Update.
3363 * linux-low.cc (linux_target_ops): Update.
3364 (linux_process_target::supports_get_tls_address): Define.
3365 (linux_process_target::get_tls_address): Define.
3366 * linux-low.h (class linux_process_target): Update.
3367 * lynx-low.cc (lynx_target_ops): Update.
3368 * nto-low.cc (nto_target_ops): Update.
3369 * win32-low.cc (win32_target_ops): Update.
3371 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3373 Turn process_stratum_target's read_offsets op into a method of
3376 * target.h (struct process_stratum_target): Remove the target op.
3377 (class process_target): Add the target op. Also add
3378 'supports_read_offsets'.
3379 * target.cc (process_target::read_offsets): Define.
3380 (process_target::supports_read_offsets): Define.
3382 Update the derived classes and callers below.
3384 * server.cc (handle_query): Update.
3385 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3386 (linux_target_ops): Update.
3387 (linux_process_target::supports_read_offsets): Define.
3388 (linux_read_offsets): Turn into ...
3389 (linux_process_target::read_offsets): ... this.
3390 * linux-low.h (class linux_process_target): Update.
3391 * lynx-low.cc (lynx_target_ops): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 * win32-low.cc (win32_target_ops): Update.
3395 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3397 Turn process_stratum_target's stopped_by_watchpoint and
3398 stopped_data_address ops into methods of process_target.
3400 * target.h (struct process_stratum_target): Remove the target ops.
3401 (class process_target): Add the target ops.
3402 * target.cc (process_target::stopped_by_watchpoint): Define.
3403 (process_target::stopped_data_address): Define.
3405 Update the derived classes and callers below.
3407 * remote-utils.cc (prepare_resume_reply): Update.
3408 * linux-low.cc (linux_target_ops): Update.
3409 (linux_stopped_by_watchpoint): Turn into ...
3410 (linux_process_target::stopped_by_watchpoint): ... this.
3411 (linux_stopped_data_address): Turn into ...
3412 (linux_process_target::stopped_data_address): ... this.
3413 * linux-low.h (class linux_process_target): Update.
3414 * lynx-low.cc (lynx_target_ops): Update.
3415 * nto-low.cc (nto_target_ops): Update.
3416 (nto_stopped_by_watchpoint): Turn into ...
3417 (nto_process_target::stopped_by_watchpoint): ... this.
3418 (nto_stopped_data_address): Turn into ...
3419 (nto_process_target::stopped_data_address): ... this.
3420 * nto-low.h (class nto_process_target): Update.
3421 * win32-low.cc (win32_target_ops): Update.
3422 (win32_stopped_by_watchpoint): Turn into ...
3423 (win32_process_target::stopped_by_watchpoint): ... this.
3424 (win32_stopped_data_address): Turn into ...
3425 (win32_process_target::stopped_data_address): ... this.
3426 * win32-low.h (class win32_process_target): Update.
3428 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3430 Turn process_stratum_target's supports_hardware_single_step op into
3431 a method of process_target.
3433 * target.h (struct process_stratum_target): Remove the target op.
3434 (class process_target): Add the target op.
3435 (target_supports_hardware_single_step): Update the macro.
3436 (target_can_do_hardware_single_step): Remove declaration.
3437 * target.cc (process_target::supports_hardware_single_step): Define.
3438 (target_can_do_hardware_single_step): Remove.
3440 Update the derived classes and callers below.
3442 * linux-low.h (class linux_process_target): Update.
3443 * linux-low.cc (linux_target_ops): Update.
3444 (linux_supports_hardware_single_step): Turn into ...
3445 (linux_process_target::supports_hardware_single_step): ... this.
3446 * lynx-low.h (class lynx_process_target): Update.
3447 * lynx-low.cc (lynx_target_ops): Update.
3448 (lynx_process_target::supports_hardware_single_step): Define.
3449 * nto-low.h (class nto_process_target): Update.
3450 * nto-low.cc (nto_target_ops): Update.
3451 (nto_process_target::supports_hardware_single_step): Define.
3452 * win32-low.h (class win32_process_target): Update.
3453 * win32-low.cc (win32_target_ops): Update.
3454 (win32_process_target::supports_hardware_single_step): Define.
3456 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3458 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3459 ops into methods of process_target.
3461 * target.h (struct process_stratum_target): Remove the target ops.
3462 (class process_target): Add the target ops.
3463 (target_stopped_by_hw_breakpoint): Update the macro.
3464 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3465 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3466 (process_target::supports_stopped_by_hw_breakpoint): Define.
3468 Update the derived classes and callers below.
3470 * linux-low.cc (linux_target_ops): Update.
3471 (linux_stopped_by_hw_breakpoint): Turn into ...
3472 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3473 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3474 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3475 * linux-low.h (class linux_process_target): Update.
3476 * lynx-low.cc (lynx_target_ops): Update.
3477 * nto-low.cc (nto_target_ops): Update.
3478 * win32-low.cc (win32_target_ops): Update.
3480 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3483 ops into methods of process_target.
3485 * target.h (struct process_stratum_target): Remove the target ops.
3486 (class process_target): Add the target ops.
3487 (target_stopped_by_sw_breakpoint): Update the macro.
3488 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3489 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3490 (process_target::supports_stopped_by_sw_breakpoint): Define.
3492 Update the derived classes and callers below.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_stopped_by_sw_breakpoint): Turn into ...
3496 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3497 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3498 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3499 * linux-low.h (class linux_process_target): Update.
3500 * lynx-low.cc (lynx_target_ops): Update.
3501 * nto-low.cc (nto_target_ops): Update.
3502 * win32-low.cc (win32_target_ops): Update.
3504 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3506 Turn process_stratum_target's insert_point and remove_point ops
3507 into methods of process_target.
3509 * target.h (struct process_stratum_target): Remove the target ops.
3510 (class process_target): Add the target ops.
3511 * target.cc (process_target::insert_point): Define.
3512 (process_target::remove_point): Define.
3514 Update the derived classes and callers below.
3516 * mem-break.cc (set_raw_breakpoint_at): Update.
3517 (delete_raw_breakpoint): Update.
3518 (uninsert_raw_breakpoint): Update.
3519 (reinsert_raw_breakpoint): Update.
3520 * linux-low.cc (linux_target_ops): Update.
3521 (linux_insert_point): Turn into ...
3522 (linux_process_target::insert_point): ... this.
3523 (linux_remove_point): Turn into ...
3524 (linux_process_target::remove_point): ... this.
3525 * linux-low.h (class linux_process_target): Update.
3526 * lynx-low.cc (lynx_target_ops): Update.
3527 * nto-low.cc (nto_target_ops): Update.
3528 (nto_insert_point): Turn into ...
3529 (nto_process_target::insert_point): ... this.
3530 (nto_remove_point): Turn into ...
3531 (nto_process_target::remove_point): ... this.
3532 * nto-low.h (class nto_process_target): Update.
3533 * win32-low.cc (win32_target_ops): Update.
3534 (win32_insert_point): Turn into ...
3535 (win32_process_target::insert_point): ... this.
3536 (win32_remove_point): Turn into ...
3537 (win32_process_target::remove_point): ... this.
3538 * win32-low.h (class win32_process_target): Update.
3540 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3542 Turn process_stratum_target's supports_z_point_type op into a
3543 method of process_target.
3545 * target.h (struct process_stratum_target): Remove the target op.
3546 (class process_target): Add the target op.
3547 * target.cc (process_target::supports_z_point_type): Define.
3549 Update the derived classes and callers below.
3551 * mem-break.cc (z_type_supported): Update.
3552 * linux-low.cc (linux_target_ops): Update.
3553 (linux_supports_z_point_type): Turn into ...
3554 (linux_process_target::supports_z_point_type): ... this.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 (nto_supports_z_point_type): Turn into ...
3559 (nto_process_target::supports_z_point_type): ... this.
3560 * nto-low.h (class nto_process_target): Update.
3561 * win32-low.cc (win32_target_ops): Update.
3562 (win32_supports_z_point_type): Turn into ...
3563 (win32_process_target::supports_z_point_type): ... this.
3564 * win32-low.h (class win32_process_target): Update.
3566 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3568 Turn process_stratum_target's read_auxv op into a method of
3571 * target.h (class process_stratum_target): Remove the target op.
3572 (struct process_target): Add the target op. Also add
3573 'supports_read_auxv'.
3574 * target.cc (process_target::read_auxv): Define.
3575 (process_target::supports_read_auxv): Define.
3577 Update the derived classes and callers below.
3579 * server.cc (handle_qxfer_auxv): Update.
3580 (handle_query): Update.
3581 * linux-low.cc (linux_target_ops): Update.
3582 (linux_process_target::supports_read_auxv): Define.
3583 (linux_read_auxv): Turn into ...
3584 (linux_process_target::read_auxv): ... this.
3585 * linux-low.h (class linux_process_target): Update.
3586 * lynx-low.cc (lynx_target_ops): Update.
3587 * nto-low.cc (nto_target_ops): Update.
3588 (nto_process_target::supports_read_auxv): Define.
3589 (nto_read_auxv): Turn into ...
3590 (nto_process_target::read_auxv): ... this.
3591 * nto-low.h (class nto_process_target): Update.
3592 * win32-low.cc (win32_target_ops): Update.
3594 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596 Turn process_stratum_target's request_interrupt op into a method of
3599 * target.h (struct process_stratum_target): Remove the target op.
3600 (class process_target): Add the target op.
3602 Update the derived classes and callers below.
3604 * remote-utils.cc (putpkt_binary_1): Update.
3605 (input_interrupt): Update.
3607 * server.cc (handle_v_requests): Update.
3608 * linux-low.cc (linux_target_ops): Update.
3609 (linux_request_interrupt): Turn into ...
3610 (linux_process_target::request_interrupt): ... this.
3611 * linux-low.h (class linux_process_target): Update.
3612 * lynx-low.cc (lynx_target_ops): Update.
3613 (lynx_request_interrupt): Turn into ...
3614 (lynx_process_target::request_interrupt): ... this.
3615 * lynx-low.h (class lynx_process_target): Update.
3616 * nto-low.cc (nto_target_ops): Update.
3617 (nto_request_interrupt): Turn into ...
3618 (nto_process_target::request_interrupt): ... this.
3619 * nto-low.h (class nto_process_target): Update.
3620 * win32-low.cc (win32_target_ops): Update.
3621 (win32_request_interrupt): Turn into ...
3622 (win32_process_target::request_interrupt): ... this.
3623 * win32-low.h (class win32_process_target): Update.
3625 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3627 Turn process_stratum_target's look_up_symbols op into a method of
3630 * target.h (struct process_stratum_target): Remove the target op.
3631 (class process_target): Add the target op.
3632 * target.cc (process_target::look_up_symbols): Define.
3634 Update the derived classes and callers below.
3636 * server.cc (handle_query): Update.
3637 * linux-low.cc (linux_target_ops): Update.
3638 (linux_look_up_symbols): Turn into ...
3639 (linux_process_target::look_up_symbols): ... this.
3640 * linux-low.h (class linux_process_target): Update.
3641 * lynx-low.cc (lynx_target_ops): Update.
3642 * nto-low.cc (nto_target_ops): Update.
3643 * win32-low.cc (win32_target_ops): Update.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's read_memory and write_memory
3648 ops into methods of process_target.
3650 * target.h (struct process_stratum_target): Remove the target ops.
3651 (class process_target): Add the target ops.
3653 Update the derived classes and callers below.
3655 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3656 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3657 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3658 (arm_get_syscall_trapinfo): Update.
3659 * linux-cris-low.cc (cris_breakpoint_at): Update.
3660 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3661 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3662 * linux-mips-low.cc (mips_breakpoint_at): Update.
3663 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3664 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3665 * linux-sh-low.cc (sh_breakpoint_at): Update.
3666 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3667 (sparc_store_gregset_from_stack): Update.
3668 (sparc_breakpoint_at): Update.
3669 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3670 * linux-tile-low.cc (tile_breakpoint_at): Update.
3671 * linux-x86-low.cc (x86_breakpoint_at): Update.
3672 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3673 * mem-brea.cc (insert_memory_breakpoint): Update.
3674 (validate_inserted_breakpoint): Update.
3675 * target.cc (read_inferior_memory): Update.
3676 (target_write_memory): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_read_memory): Make a wrapper around the read_memory target
3680 (linux_process_target::read_memory): Rename from linux_read_memory.
3681 (linux_write_memory): Turn into ...
3682 (linux_process_target::write_memory): ... this.
3683 * linux-low.h (class linux_process_target): Update.
3684 * lynx-low.cc (lynx_target_ops): Update.
3685 (lynx_read_memory): Turn into ...
3686 (lynx_process_target::read_memory): ... this.
3687 (lynx_write_memory): Turn into ...
3688 (lynx_process_target::write_memory): ... this.
3689 * lynx-low.h (class lynx_process_target): Update.
3690 * nto-low.cc (nto_target_ops): Update.
3691 (nto_read_memory): Turn into ...
3692 (nto_process_target::read_memory): ... this.
3693 (nto_write_memory): Turn into ...
3694 (nto_process_target::write_memory): ... this.
3695 * nto-low.h (class nto_process_target): Update.
3696 * win32-low.cc (win32_target_ops): Update.
3697 (win32_read_inferior_memory): Turn into ...
3698 (win32_process_target::read_memory): ... this.
3699 (win32_write_inferior_memory): Turn into ...
3700 (win32_process_target::write_memory): ... this.
3701 * win32-low.h (class win32_process_target): Update.
3703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3705 Turn process_stratum_target's prepare_to_access_memory and
3706 done_accessing_memory ops into methods of process_target.
3708 * target.h (struct process_stratum_target): Remove the target ops.
3709 (class process_target): Add the target ops.
3710 * target.cc (process_target::prepare_to_access_memory): Define.
3711 (process_target::done_accessing_memory): Define.
3712 (prepare_to_access_memory): Update.
3713 (done_accessing_memory): Update.
3715 Update the derived classes and callers below.
3717 * linux-low.cc (linux_target_ops): Update.
3718 (linux_prepare_to_access_memory): Turn into ...
3719 (linux_process_target::prepare_to_access_memory): ... this.
3720 (linux_done_accessing_memory): Turn into ...
3721 (linux_process_target::done_accessing_memory): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3729 Turn process_stratum_target's fetch_registers and store_registers
3730 ops into methods of process_target.
3732 * target.h (struct process_stratum_target): Remove the target ops.
3733 (class process_target): Add the target ops.
3734 (fetch_inferior_registers): Update the macro.
3735 (store_inferior_registers): Update the macro.
3737 Update the derived classes and callers below.
3739 * linux-low.cc (linux_target_ops): Update.
3740 (linux_fetch_registers): Turn into ...
3741 (linux_process_target::fetch_registers): ... this.
3742 (linux_store_registers): Turn into ...
3743 (linux_process_target::store_registers): ... this.
3744 * linux-low.h (class linux_process_target): Update.
3745 * lynx-low.cc (lynx_target_ops): Update.
3746 (lynx_fetch_registers): Turn into ...
3747 (lynx_process_target::fetch_registers): ... this.
3748 (lynx_store_registers): Turn into ...
3749 (lynx_process_target::store_registers): ... this.
3750 * lynx-low.h (class lynx_process_target): Update.
3751 * nto-low.cc (nto_target_ops): Update.
3752 (nto_fetch_registers): Turn into ...
3753 (nto_process_target::fetch_registers): ... this.
3754 (nto_store_registers): Turn into ...
3755 (nto_process_target::store_registers): ... this.
3756 * nto-low.h (class nto_process_target): Update.
3757 * win32-low.cc (win32_target_ops): Update.
3758 (win32_fetch_inferior_registers): Turn into ...
3759 (win32_process_target::fetch_registers): ... this.
3760 (win32_store_inferior_registers): Turn into ...
3761 (win32_process_target::store_registers): ... this.
3762 * win32-low.h (class win32_process_target): Update.
3764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766 Turn process_stratum_target's wait op into a method of
3769 * target.h (struct process_stratum_target): Remove the target op.
3770 (class process_target): Add the target op.
3772 Update the derived classes and callers below.
3774 * target.cc (target_wait): Update.
3775 * linux-low.cc (linux_target_ops): Update.
3776 (linux_wait): Turn into ...
3777 (linux_process_target::wait): ... this.
3778 * linux-low.h (class linux_process_target): Update.
3779 * lynx-low.cc (lynx_target_ops): Update.
3780 (lynx_wait): Turn into ...
3781 (lynx_process_target::wait): ... this.
3782 * lynx-low.h (class lynx_process_target): Update.
3783 * nto-low.cc (nto_target_ops): Update.
3784 (nto_wait): Turn into ...
3785 (nto_process_target::wait): ... this.
3786 * nto-low.h (class nto_process_target): Update.
3787 * win32-low.cc (win32_target_ops): Update.
3788 (win32_wait): Turn into ...
3789 (win32_process_target::wait): ... this.
3790 (do_initial_child_stuff): Update.
3791 * win32-low.h (class win32_process_target): Update.
3793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795 Turn process_stratum_target's resume op into a method of
3798 * target.h (struct process_stratum_target): Remove the target op.
3799 (class process_target): Add the target op.
3801 Update the derived classes and callers below.
3803 * server.cc (resume): Update.
3804 * target.cc (target_stop_and_wait): Update.
3805 (target_continue_no_signal): Update.
3806 (target_continue): Update.
3807 * linux-low.cc (linux_target_ops): Update.
3808 (linux_resume): Turn into ...
3809 (linux_process_target::resume): ... this.
3810 * linux-low.h (class linux_process_target): Update.
3811 * lynx-low.cc (lynx_target_ops): Update.
3812 (lynx_resume): Turn into ...
3813 (lynx_process_target::resume): ... this.
3814 * lynx-low.h (class lynx_process_target): Update.
3815 * nto-low.cc (nto_target_ops): Update.
3816 (nto_resume): Turn into ...
3817 (nto_process_target::resume): ... this.
3818 * nto-low.h (class nto_process_target): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820 (win32_resume): Turn into ...
3821 (win32_process_target::resume): ... this.
3822 (win32_process_target::detach): Update.
3823 (do_initial_child_stuff): Update.
3824 * win32-low.h (class win32_process_target): Update.
3826 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3828 Turn process_stratum_target's thread_alive op into a method of
3831 * target.h (struct process_stratum_target): Remove the target op.
3832 (class process_target): Add the target op.
3833 (mythread_alive): Update the macro.
3835 Update the derived classes and callers below.
3837 * linux-low.cc (linux_target_ops): Update.
3838 (linux_thread_alive): Turn into ...
3839 (linux_process_target::thread_alive): ... this.
3840 (wait_for_sigstop): Update.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_thread_alive): Turn into ...
3844 (lynx_process_target::thread_alive): ... this.
3845 * lynx-low.h (class lynx_process_target): Update.
3846 * nto-low.cc (nto_target_ops): Update.
3847 (nto_thread_alive): Turn into ...
3848 (nto_process_target::thread_alive): ... this.
3849 * nto-low.h (class nto_process_target): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3851 (win32_thread_alive): Turn into ...
3852 (win32_process_target::thread_alive): ... this.
3853 * win32-low.h (class win32_process_target): Update.
3855 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857 Turn process_stratum_target's join op into a method of
3860 * target.h (struct process_stratum_target): Remove the target op.
3861 (class process_target): Add the target op.
3862 (join_inferior): Update the macro.
3864 Update the derived classes and callers below.
3866 * linux-low.cc (linux_target_ops): Update.
3867 (linux_join): Turn into ...
3868 (linux_process_target::join): ... this.
3869 * linux-low.h (class linux_process_target): Update.
3870 * lynx-low.cc (lynx_target_ops): Update.
3871 (lynx_join): Turn into ...
3872 (lynx_process_target::join): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 (nto_process_target::join): Define.
3876 * nto-low.h (class nto_process_target): Update.
3877 * win32-low.cc (win32_target_ops): Update.
3878 (win32_join): Turn into ...
3879 (win32_process_target::join): ... this.
3880 * win32-low.h (class win32_process_target): Update.
3882 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3884 Turn process_stratum_target's mourn op into a method of
3887 * target.h (struct process_stratum_target): Remove the target op.
3888 (class process_target): Add the target op.
3890 Update the derived classes and callers below.
3892 * target.cc (target_mourn_inferior): Update.
3893 * linux-low.cc (linux_target_ops): Update.
3894 (linux_mourn): Turn into ...
3895 (linux_process_target::mourn): ... this.
3896 (handle_extended_wait): Update.
3897 (linux_process_target::kill): Update.
3898 (linux_process_target::detach): Update.
3899 * linux-low.h (class linux_process_target): Update.
3900 * lynx-low.cc (lynx_target_ops): Update.
3901 (lynx_mourn): Turn into ...
3902 (lynx_process_target::mourn): ... this.
3903 * lynx-low.h (class lynx_process_target): Update.
3904 * nto-low.cc (nto_target_ops): Update.
3905 (nto_mourn): Turn into ...
3906 (nto_process_target::mourn): ... this.
3907 * nto-low.h (class nto_process_target): Update.
3908 * win32-low.cc (win32_target_ops): Update.
3909 (win32_mourn): Turn into ...
3910 (win32_process_target::mourn): ... this.
3911 * win32-low.h (class win32_process_target): Update.
3913 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3915 Turn process_stratum_target's detach op into a method of
3918 * target.h (struct process_stratum_target): Remove the target op.
3919 (class process_target): Add the target op.
3920 (detach_inferior): Update the macro.
3922 Update the derived classes and callers below.
3924 * linux-low.cc (linux_target_ops): Update.
3925 (linux_detach): Turn into ...
3926 (linux_process_target::detach): ... this.
3927 * linux-low.h (class linux_process_target): Update.
3928 * lynx-low.cc (lynx_target_ops): Update.
3929 (lynx_detach): Turn into ...
3930 (lynx_process_target::detach): ... this.
3931 * lynx-low.h (class lynx_process_target): Update.
3932 * nto-low.cc (nto_target_ops): Update.
3933 (nto_detach): Turn into ...
3934 (nto_process_target::detach): ... this.
3935 * nto-low.h (class nto_process_target): Update.
3936 * win32-low.cc (win32_target_ops): Update.
3937 (win32_detach): Turn into ...
3938 (win32_process_target::detach): ... this.
3939 * win32-low.h (class win32_process_target): Update.
3941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943 Turn process_stratum_target's kill op into a method of
3946 * target.h (struct process_stratum_target): Remove the target op.
3947 (class process_target): Add the target op.
3949 Update the derived classes and callers below.
3951 * target.cc (kill_inferior): Update.
3952 * linux-low.cc (linux_target_ops): Update.
3953 (linux_kill): Turn into ...
3954 (linux_process_target::kill): ... this.
3955 * linux-low.h (class linux_process_target): Update.
3956 * lynx-low.cc (lynx_target_ops): Update.
3957 (lynx_kill): Turn into ...
3958 (lynx_process_target::kill): ... this.
3959 * lynx-low.h (class lynx_process_target): Update.
3960 * nto-low.cc (nto_target_ops): Update.
3961 (nto_kill): Turn into ...
3962 (nto_process_target::kill): ... this.
3963 * nto-low.h (class nto_process_target): Update.
3964 * win32-low.cc (win32_target_ops): Update.
3965 (win32_kill): Turn into ...
3966 (win32_process_target::kill): ... this.
3967 * win32-low.h (class win32_process_target): Update.
3969 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3971 Turn process_stratum_target's attach op into a method of
3974 * target.h (struct process_stratum_target): Remove the target op.
3975 (class process_target): Add the target op.
3976 (myattach): Update the macro.
3978 Update the derived classes and callers below.
3980 * linux-low.cc (linux_target_ops): Update.
3981 (linux_attach): Turn into ...
3982 (linux_process_target::attach): ... this.
3983 * linux-low.h (class linux_process_target): Update.
3984 * lynx-low.cc (lynx_target_ops): Update.
3985 (lynx_attach): Turn into ...
3986 (lynx_process_target::attach): ... this.
3987 * lynx-low.h (class lynx_process_target): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 (nto_attach): Turn into ...
3990 (nto_process_target::attach): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_attach): Turn into ...
3994 (win32_process_target::attach): ... this.
3995 * win32-low.h (class win32_process_target): Update.
3997 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999 Turn process_stratum_target's post_create_inferior op into a method
4002 * target.h (struct process_stratum_target): Remove the target op.
4003 (class process_target): Add the target op.
4004 (target_post_create_inferior): Update the macro.
4005 * target.cc (process_target::post_create_inferior): Define.
4007 Update the derived classes and callers below.
4009 * linux-low.cc (linux_target_ops): Update.
4010 (linux_post_create_inferior): Turn into ...
4011 (linux_process_target::post_create_inferior): ... this.
4012 * linux-low.h (class linux_process_target): Update.
4013 * lynx-low.cc (lynx_target_ops): Update.
4014 * nto-low.cc (nto_target_ops): Update.
4015 * win32-low.cc (win32_target_ops): Update.
4017 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4019 Turn process_stratum_target's create_inferior op into a method of
4022 * target.h (struct process_stratum_target): Remove the target op.
4023 (class process_target): Add the target op.
4024 (create_inferior): Rename the macro to ...
4025 (target_create_inferior): ... this.
4027 Update the derived classes and callers below.
4029 * server.cc (handle_v_run): Update.
4030 (captured_main): Update.
4031 (process_serial_event): Update.
4032 * linux-low.cc (linux_target_ops): Update.
4033 (linux_create_inferior): Turn into ...
4034 (linux_process_target::create_inferior): ... this.
4035 * linux-low.h (class linux_process_target): Update.
4036 * lynx-low.cc (lynx_target_ops): Update.
4037 (lynx_create_inferior): Turn into ...
4038 (lynx_process_target::create_inferior): ... this.
4039 * lynx-low.h (class lynx_process_target): Update.
4040 * nto-low.cc (nto_target_ops): Update.
4041 (nto_create_inferior): Turn into ...
4042 (nto_process_target::create_inferior): ... this.
4043 * nto-low.h (class nto_process_target): Update.
4044 * win32-low.cc (win32_target_ops): Update.
4045 (win32_create_inferior): Turn into ...
4046 (win32_process_target::create_inferior): ... this.
4047 * win32-low.h (class win32_process_target): Update.
4049 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4051 * target.h (class process_target): New class definition.
4052 (struct process_stratum_target) <pt>: New field with type
4054 * linux-low.h (class linux_process_target): Define as a derived
4055 class of 'process_target'.
4056 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4058 * lynx-low.h (class lynx_process_target): Define as a derived
4059 class of 'process_target'.
4060 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4062 * nto-low.h (class nto_process_target): Define as a derived
4063 class of 'process_target'.
4064 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4066 * win32-low.h (class win32_process_target): Define as a derived
4067 class of 'process_target'.
4068 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4071 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4073 * configure: Regenerate.
4075 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4076 Andrew Burgess <andrew.burgess@embecosm.com>
4078 * linux-riscv-low.cc: New file.
4079 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4080 and nat/riscv-linux-tdesc.c.
4081 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4082 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4085 2020-02-14 Tom Tromey <tom@tromey.com>
4087 * acinclude.m4: Don't include acx_configure_dir.m4.
4088 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4089 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4090 (all, install-only, uninstall, clean-info, clean)
4091 (maintainer-clean): Don't recurse.
4092 (subdir_do, all-lib): Remove.
4093 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4095 (generated_files): Update.
4096 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4097 * configure: Rebuild.
4098 * configure.ac: Don't configure gnulib or libiberty.
4101 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4103 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4104 preparing the command line for CreateProcess.
4105 (win32_create_inferior): Reflect the program name in debugging
4106 output that shows the process and its command line.
4108 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4110 * Makefile.in: Rename source files from .c to .cc.
4111 * %.c: Rename to %.cc.
4112 * configure.ac: Rename server.c to server.cc.
4113 * configure: Re-generate.
4115 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4117 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4119 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4121 * win32-low.c (win32_create_inferior): Set signal_pid.
4123 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4124 Pedro Alves <palves@redhat.com>
4126 Skip building gdbserver in a cross-configuration.
4127 * configure.srv: Set $gdbserver_host depending on whether $target
4128 is $host. Use $gdbserver_host instead of $host.
4130 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4132 * configure: Re-generate.
4134 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4136 * configure: Re-generate.
4138 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4140 * acinclude.m4: Update warning.m4 path.
4142 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4144 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4145 (handle_exception): Set siginfo_er.
4146 (win32_xfer_siginfo): New function.
4148 2020-02-07 Tom Tromey <tom@tromey.com>
4149 Pedro Alves <palves@redhat.com>
4151 * README: Update build documentation.
4152 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4154 * configure.ac: Update paths.
4155 * configure: Rebuild.
4156 * acinclude.m4: Update paths.
4157 * Makefile.in: Update include paths.
4158 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4159 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4160 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4161 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4162 (%-generated.c): Update paths.
4163 * Move entire directory from ../gdb/gdbserver.
4165 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4167 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4169 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4171 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4172 assignment instead of srv_linux_obj.
4174 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4176 * server.c (handle_qxfer_libraries): Write segment-address with
4179 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4181 * Makefile.in (install-strip): New target.
4182 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4183 * aclocal.m4: Regenerate.
4184 * configure: Regenerate.
4185 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4187 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4189 * Makefile.in (SFILES): Adjust paths to point to real files.
4190 (OBS): Move waitstatus.o to target/waitstatus.o.
4191 (TAGS): Transform paths appropriately.
4193 (nat/%.o): ... this pattern rule.
4195 (target/%.o): ... this pattern rule.
4196 * configure.srv: Adjust paths throughout to include nat/ prefix
4197 with the revant files.
4198 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4199 * configure: Regenerate.
4201 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4203 * Makefile.in (TAGS): Remove config files from the recipe.
4205 2020-01-14 Tom Tromey <tom@tromey.com>
4207 * configure: Rebuild.
4208 * configure.ac: Remove any checks that were added to common.m4.
4209 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4212 2020-01-14 Tom Tromey <tom@tromey.com>
4214 * server.h: Include config.h.
4215 * gdbreplay.c: Include config.h.
4216 * configure: Rebuild.
4217 * configure.ac: Don't source common.host.
4218 * acinclude.m4: Update path.
4219 * Makefile.in (INCSUPPORT): New variable.
4220 (INCLUDE_CFLAGS): Add INCSUPPORT.
4221 (SFILES): Update paths.
4222 (version-generated.c): Update path to create-version.sh.
4223 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4225 2020-01-14 Tom Tromey <tom@tromey.com>
4227 * configure.ac (LIBS): Use WIN32APILIBS.
4228 (USE_WIN32API): Don't define.
4229 * configure: Rebuild.
4231 2020-01-14 Tom Tromey <tom@tromey.com>
4233 * configure: Rebuild.
4235 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4237 * Makefile.in (%-generated.c): Remove rule for files from
4240 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4242 * configure: Re-generate.
4244 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4246 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4248 * tracepoint.c (stop_tracing, flush_trace_buffer,
4249 about_to_request_buffer_space, get_trace_state_variable_value,
4250 set_trace_state_variable_value, gdb_collect): Add declaration.
4252 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4254 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4255 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4256 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4257 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4258 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4261 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4263 * inferiors.c: Include gdbsupport/common-inferior.h.
4265 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4267 * hostio-errno.c: Include hostio.h.
4269 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4271 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4274 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4276 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4277 * linux-arm-tdesc.h: Include arch/arm.h.
4279 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4281 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4283 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4285 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4286 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4288 2020-01-10 Pedro Alves <palves@redhat.com>
4290 * fork-child.c (post_fork_inferior): Pass target down to
4292 * inferiors.c (switch_to_thread): Add process_stratum_target
4294 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4295 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4296 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4297 * remote-utils.c (prepare_resume_reply): Pass the target to
4299 * target.c (the_target): Now a process_stratum_target.
4300 (done_accessing_memory): Pass the target to switch_to_thread.
4301 (set_target_ops): Ajust to use process_stratum_target.
4302 * target.h (struct target_ops): Rename to ...
4303 (struct process_stratum_target): ... this.
4304 (the_target, set_target_ops): Adjust.
4305 (prepare_to_access_memory): Adjust comment.
4306 * win32-low.c (child_xfer_memory): Adjust to use
4307 process_stratum_target.
4308 (win32_target_ops): Now a process_stratum_target.
4310 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4311 Pedro Alves <palves@redhat.com>
4313 * win32-low.c (get_child_debug_event): Extract the fatal exception
4314 from the exit status and convert to the equivalent Posix signal
4316 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4317 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4319 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4321 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4323 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4325 * server.c (gdbserver_version): Change copyright year to 2020.
4326 * gdbreplay.c (gdbreplay_version): Likewise.
4328 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4330 * configure: Regenerate.
4331 * configure.ac: Quote variable arguments of test.
4333 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4335 * Makefile.in: Fix build with GNU Make 3.81
4337 2019-12-16 Tom Tromey <tromey@adacore.com>
4339 * server.c (get_exec_file): Constify result.
4341 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4343 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4344 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4345 * config.in: Regenerate.
4346 * configure: Regenerate.
4347 * configure.ac: Don't check for strerror.
4348 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4349 Call safe_strerror instead of strerror.
4350 * server.h (strerror): Remove this now-unnecessary declaration.
4351 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4353 (gdb_agent_helper_thread): Likewise.
4354 * utils.c (perror_with_name): Likewise.
4356 2019-11-26 Tom Tromey <tom@tromey.com>
4358 * configure, config.in: Rebuild.
4360 2019-11-26 Tom Tromey <tom@tromey.com>
4362 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4363 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4365 * configure, config.in: Rebuild.
4367 2019-11-26 Tom Tromey <tom@tromey.com>
4369 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4370 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4371 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4372 * acinclude.m4: Include ax_pthread.m4.
4373 * config.in, configure: Rebuild.
4375 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4377 * debug.c (debug_set_output): Call safe_strerror instead of
4379 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4380 (linux_kill_one_lwp): Likewise.
4381 (linux_detach_one_lwp): Likewise.
4382 (linux_wait_for_event_filtered): Likewise.
4383 (store_register): Likewise.
4384 * lynx-low.c (lynx_attach): Likewise.
4385 * mem-break.c (insert_memory_breakpoint): Likewise.
4386 (remove_memory_breakpoint): Likewise.
4387 (delete_fast_tracepoint_jump): Likewise.
4388 (set_fast_tracepoint_jump): Likewise.
4389 (uninsert_fast_tracepoint_jumps_at): Likewise.
4390 (reinsert_fast_tracepoint_jumps_at): Likewise.
4391 * nto-low.c (nto_xfer_memory): Likewise.
4392 (nto_resume): Likewise.
4394 2019-11-20 Luis Machado <luis.machado@linaro.org>
4396 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4397 instead of register count.
4398 * tdesc.c (tdesc_contains_feature): New function.
4399 * tdesc.h (tdesc_contains_feature): New prototype.
4401 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4403 * Makefile.in: Add safe-strerror.c.
4404 * configure: Regenerate.
4405 * configure.ac: Don't source common.host.
4407 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4409 * config.in: Regenerate.
4410 * configure: Regenerate.
4412 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4414 * ax.c (ax_printf): Handle size_t_arg.
4416 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4418 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4419 * mi/mi-main.c (output_cores): Likewise.
4420 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4421 (linux_xfer_osdata_modules): Likewise.
4422 * remote.c (register_remote_support_xml): Likewise.
4423 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4424 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4426 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4428 * configure: Regenerate.
4429 * configure.ac: Remove check for strerror_r.
4431 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4433 * config.in: Regenerate.
4434 * configure: Regenerate.
4435 * configure.ac: Also check for strerror_r.
4437 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4439 * ax.h (debug_agent): Remove duplicate declaration.
4441 2019-10-26 Tom de Vries <tdevries@suse.de>
4443 * linux-aarch64-low.c: Fix typos in comments.
4444 * linux-arm-low.c: Same.
4445 * linux-low.c: Same.
4446 * linux-ppc-low.c: Same.
4447 * proc-service.c: Same.
4450 * tracepoint.c: Same.
4451 * win32-low.c: Same.
4453 2019-10-25 Tom Tromey <tromey@adacore.com>
4455 * utils.c (xstrdup): Remove.
4457 2019-10-23 Tom Tromey <tom@tromey.com>
4459 * configure, config.in: Rebuild.
4461 2019-10-23 Tom Tromey <tom@tromey.com>
4463 * configure: Rebuild.
4464 * acinclude.m4: Use m4_include, not sinclude.
4466 2019-10-17 Tom Tromey <tromey@adacore.com>
4468 * configure: Rebuild.
4469 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4470 in AC_CONFIG_FILES invocation.
4471 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4474 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4476 * server.c: Include xml-builtin.h.
4477 (get_xml_features): Don't declare xml_builtins here.
4479 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4481 * Makefile.in: Remove references to vec-ipa.o.
4483 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4485 * Makefile.in: Remove references to vec.c.
4487 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4489 * server.c (server_waiting): Change to bool.
4490 (extended_protocol): Likewise.
4491 (response_needed): Likewise.
4492 (exit_requested): Likewise.
4493 (run_once): Likewise.
4494 (report_no_resumed): Likewise.
4495 (non_stop): Likewise.
4496 (disable_packet_vCont): Likewise.
4497 (disable_packet_Tthread): Likewise.
4498 (disable_packet_qC): Likewise.
4499 (disable_packet_qfThreadInfo): Likewise.
4500 (handle_general_set): Update.
4501 (handle_detach): Update.
4502 (handle_monitor_command): Update.
4503 (handle_query): Update.
4504 (captured_main): Update.
4505 (process_serial_event): Update.
4506 * server.h (server_waiting): Change to bool.
4507 (disable_packet_vCont): Likewise.
4508 (disable_packet_Tthread): Likewise.
4509 (disable_packet_qC): Likewise.
4510 (disable_packet_qfThreadInfo): Likewise.
4511 (run_once): Likewise.
4512 (non_stop): Likewise.
4513 * target.c (target_stop_and_wait): Update.
4515 2019-10-02 Tom Tromey <tromey@adacore.com>
4517 * Makefile.in (SFILES): Add common-inferior.c.
4518 (OBS): Add common-inferior.o.
4519 * server.c (startup_with_shell): Don't define.
4521 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4523 * linux-low.c (linux_low_read_btrace): Update for change to
4526 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4528 * debug.c (debug_threads): Remove comment in favor of the header.
4529 * debug.h (using_threads): Add declaration.
4530 (debug_threads): Add comment.
4531 * linux-aarch64-low.c: Include debug.h and remove declaration of
4533 * nto-low.c: Likewise.
4534 * remote-utils.c: Likewise.
4535 * thread-db.c: Likewise.
4537 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4539 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4540 and powerpc-cell64l-ipa.o.
4541 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4542 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4543 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4546 * spu-low.c: Remove file.
4548 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4549 (parse_spufs_run): Remove.
4550 (ppc_get_pc): Remove Cell/B.E. support.
4551 (ppc_set_pc): Likewise.
4552 (ppc_breakpoint_at): Likewise.
4553 (ppc_arch_setup): Likewise.
4554 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4555 tdesc_powerpc_cell32l.
4556 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4557 or init_registers_powerpc_cell32l.
4558 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4559 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4560 or init_registers_powerpc_cell32l.
4561 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4562 (init_registers_powerpc_cell32l): Remove prototype.
4563 (init_registers_powerpc_cell64l): Likewise.
4565 * target.h (struct target_ops): Remove qxfer_spu member.
4566 * server.c (handle_qxfer_spu): Remove.
4567 (qxfer_packets): Remove entry for "spu".
4568 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4569 * linux-low.c (SPUFS_MAGIC): Remove.
4570 (spu_enumerate_spu_ids): Remove.
4571 (linux_qxfer_spu): Remove.
4572 (linux_target_ops): Remove qxfer_spu member.
4573 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4574 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4575 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4577 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4579 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4580 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4581 * config.in: Regenerate.
4582 * configure: Regenerate.
4584 2019-08-15 Tom Tromey <tromey@adacore.com>
4586 * target.c (target_write_memory): Use gdb::byte_vector.
4588 2019-08-15 Tom Tromey <tromey@adacore.com>
4590 * tracepoint.c (write_inferior_data_pointer)
4591 (write_inferior_integer, write_inferior_int8)
4592 (write_inferior_uinteger, m_tracepoint_action_download)
4593 (r_tracepoint_action_download, x_tracepoint_action_download)
4594 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4595 (download_agent_expr, download_tracepoint_1)
4596 (download_trace_state_variables, upload_fast_traceframes): Update.
4597 * server.c (gdb_write_memory): Update.
4598 * remote-utils.c (relocate_instruction): Update.
4599 * proc-service.c (ps_pdwrite): Update.
4600 * mem-break.c (remove_memory_breakpoint)
4601 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4602 (uninsert_fast_tracepoint_jumps_at)
4603 (reinsert_fast_tracepoint_jumps_at): Update.
4604 * linux-x86-low.c (append_insns)
4605 (i386_install_fast_tracepoint_jump_pad)
4606 (amd64_write_goto_address, i386_write_goto_address): Update.
4607 * linux-s390-low.c (append_insns, s390_write_goto_address):
4609 * linux-ppc-low.c (ppc_relocate_instruction)
4610 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4611 (ppc_write_goto_address): Update.
4612 * linux-aarch64-low.c (append_insns): Update.
4613 * target.h (struct target_ops): Update.
4614 (write_inferior_memory): Don't declare.
4615 * target.c (target_write_memory): Rename from
4616 write_inferior_memory. Remove old target_write_memory.
4618 2019-08-15 Tom Tromey <tromey@adacore.com>
4620 * target.c (write_inferior_memory): Use std::vector.
4622 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4625 * configure.ac: Drop enable-libmcheck support.
4626 * configure, config.in: Rebuild.
4627 * acinclude.m4: Don't include it.
4629 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4631 * configure.srv: Remove Arm xml files.
4633 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4635 * configure.srv: Add new files. Remove xml generated files.
4636 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4638 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4639 * linux-aarch32-tdesc.c: New file.
4640 * linux-aarch32-tdesc.h: New file.
4641 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4642 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4643 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4644 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4645 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4646 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4647 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4648 (arm_read_description): Call arm_linux_read_description.
4649 (initialize_low_arch): Don't init registers.
4650 * linux-arm-tdesc.c: New file.
4651 * linux-arm-tdesc.h: New file.
4653 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4655 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4656 Move counter inside for.
4657 (arm_read_description): Check ptrace earlier.
4658 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4660 2019-07-09 Tom Tromey <tom@tromey.com>
4662 * configure: Rebuild.
4663 * configure.ac: Change common to gdbsupport.
4664 * acinclude.m4: Change common to gdbsupport.
4665 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4666 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4667 common to gdbsupport.
4668 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4669 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4670 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4671 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4672 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4673 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4674 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4675 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4676 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4677 common to gdbsupport.
4679 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4681 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4683 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4685 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4687 * configure.srv: Remove legacy xml.
4688 * linux-aarch64-low.c (initialize_low_arch): Remove
4689 initialize_low_tdesc call.
4690 * linux-aarch64-tdesc-selftest.c: Remove file.
4691 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4692 * linux-x86-low.c (initialize_low_arch): Remove
4693 initialize_low_tdesc call.
4694 * linux-x86-tdesc-selftest.c: Remove file.
4695 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4697 2019-06-20 Tom de Vries <tdevries@suse.de>
4699 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4700 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4702 2019-06-19 Tom de Vries <tdevries@suse.de>
4704 * debug.h (debug_write): Change return type to ssize_t.
4705 * debug.c (debug_write): Same.
4707 2019-06-14 Tom Tromey <tom@tromey.com>
4709 * configure.ac: Use new path to gnulib.
4710 * configure: Rebuild.
4711 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4714 2019-06-11 Tom Tromey <tom@tromey.com>
4716 * Makefile.in (SFILES): Add alloc.c.
4718 (IPA_OBJS): Add alloc-ipa.o.
4719 (alloc-ipa.o): New target.
4720 (%.o: ../%.c): New pattern rule.
4722 2019-06-10 Tom Tromey <tromey@adacore.com>
4724 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4725 end warning with a newline.
4726 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4728 * thread-db.c (attach_thread): Don't end warning with a newline.
4729 (thread_db_notice_clone): Likewise.
4730 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4732 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4733 end warning with a newline.
4735 2019-06-04 Pedro Alves <palves@redhat.com>
4737 * server.c (captured_main): Use make_unique_xstrdup.
4739 2019-06-02 Tom Tromey <tom@tromey.com>
4741 * gdbreplay.c (fromhex): Remove.
4742 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4744 2019-05-29 Tom Tromey <tromey@adacore.com>
4746 * configure: Rebuild.
4748 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4750 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4751 sign extension code on 32-bit builds.
4753 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4756 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4758 2019-04-19 Tom Tromey <tom@tromey.com>
4760 * server.c (struct vstop_notif): Derive from notif_event.
4762 (queue_stop_reply): Update.
4763 (remove_all_on_match_ptid): Change type. Rewrite.
4764 (discard_queued_stop_replies): Rewrite.
4765 (in_queued_stop_replies_ptid): Change type.
4766 (in_queued_stop_replies): Rewrite.
4767 (notif_stop): Update.
4768 (queue_stop_reply_callback): Update.
4769 (captured_main): Don't call initialize_notif.
4770 (push_stop_notification): Update.
4771 * notif.c (notif_write_event, handle_notif_ack)
4772 (notif_event_enque, notif_push): Update.
4773 (notif_event_xfree, initialize_notif): Remove.
4774 * notif.h (struct notif_event): Include <list>, not
4776 (struct notif_server) <queue>: Now a std::list.
4777 (notif_event_p): Remove typedef.
4778 (initialize_notif): Don't declare.
4779 (struct notif_event): Add virtual destructor.
4781 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4783 * ax.c (ax_vdebug): Call debug_printf.
4784 * debug.c (debug_write): New function.
4785 * debug.h (debug_write): New declaration.
4786 * linux-low.c (sigchld_handler): Call debug_write.
4788 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4790 * debug.c (debug_set_output): New function.
4791 (debug_vprintf): Send output to debug_file.
4792 (debug_flush): Likewise.
4793 * debug.h (debug_set_output): New declaration.
4794 * server.c (handle_monitor_command): Add debug-file option.
4795 (captured_main): Likewise.
4797 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4799 * debug.c (remote_debug): Add definition.
4800 * debug.h (remote_debug): Add declaration.
4801 * hostio.c (remote_debug): Remove declaration.
4802 * remote-utils.c (struct ui_file): Likewise.
4803 (remote_debug): Likewise.
4804 * remote-utils.h (remote_debug): Likewise,
4805 * server.c (remote_debug): Remove definition.
4807 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4809 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4810 when using a 64-bit gdbserver.
4812 2019-04-09 Tom Tromey <tromey@adacore.com>
4814 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4816 2019-04-08 Tom Tromey <tom@tromey.com>
4818 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4820 (linux_resume_one_lwp): Likewise.
4822 2019-04-08 Tom Tromey <tom@tromey.com>
4824 * gdbreplay.c: Update.
4825 * linux-low.c: Update.
4828 2019-04-08 Tom Tromey <tom@tromey.com>
4830 * server.c: Use C++ exception handling.
4831 * linux-low.c: Use C++ exception handling.
4832 * gdbreplay.c: Use C++ exception handling.
4834 2019-04-08 Tom Tromey <tom@tromey.com>
4836 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4837 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4838 (captured_main, main): Update.
4839 * gdbreplay.c (main): Update.
4841 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4843 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4844 value in argument pointer, return 1 if the entry is found and 0
4845 otherwise. Move comment.
4846 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4847 * linux-low.h (linux_get_auxv): Declare.
4848 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4850 2019-04-05 Tom Tromey <tromey@adacore.com>
4852 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4855 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4857 * linux-low.c (AT_HWCAP2): Add define if not already included.
4859 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4861 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4862 (aarch64_arch_setup): Call linux_get_hwcap.
4863 * linux-arm-low.c (arm_get_hwcap): Remove function.
4864 (arm_read_description): Call linux_get_hwcap.
4865 * linux-low.c (linux_get_auxv): New function.
4866 (linux_get_hwcap): Likewise.
4867 (linux_get_hwcap2): Likewise.
4868 * linux-low.h (linux_get_hwcap): New declaration.
4869 (linux_get_hwcap2): Likewise.
4870 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4871 (ppc_arch_setup): Call linux_get_hwcap.
4872 * linux-s390-low.c (s390_get_hwcap): Remove function.
4873 (s390_arch_setup): Call linux_get_hwcap.
4875 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4876 Jiong Wang <jiong.wang@arm.com>
4878 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4879 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4881 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4883 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4884 Jiong Wang <jiong.wang@arm.com>
4886 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4887 (aarch64_get_hwcap): New function.
4888 (aarch64_arch_setup): Read APIA hwcap.
4890 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4891 Jiong Wang <jiong.wang@arm.com>
4893 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4894 (initialize_low_tracepoint): Likewise.
4895 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4896 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4897 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4898 (aarch64_linux_read_description): Likewise.
4899 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4901 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4903 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4904 i386_create_target_description for 'segments' parameter.
4905 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4906 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4907 * win32-i386-low.c (i386_arch_setup): Likewise.
4909 2019-03-12 Tom Tromey <tromey@adacore.com>
4911 * linux-low.c (iterate_over_lwps): Update.
4913 2019-03-06 Tom Tromey <tom@tromey.com>
4915 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4916 (captured_main): Use SCOPE_EXIT.
4918 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4920 * configure.srv: Use '$enable_unittest' instead of '$development'
4921 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4924 2019-02-27 Tom Tromey <tromey@adacore.com>
4926 * gdbreplay.c (logchar): Handle \r\n.
4928 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4930 * linux-low.c (linux_attach): Add process before lwp.
4931 * server.c (attach_inferior): Check if already attached.
4933 2019-02-07 Tom Tromey <tom@tromey.com>
4935 * x86-tdesc.h: Rename include guard.
4936 * x86-low.h: Add include guard.
4937 * wincecompat.h: Rename include guard.
4938 * win32-low.h: Add include guard.
4939 * utils.h: Rename include guard.
4940 * tracepoint.h: Rename include guard.
4941 * tdesc.h: Rename include guard.
4942 * target.h: Rename include guard.
4943 * server.h: Rename include guard.
4944 * remote-utils.h: Rename include guard.
4945 * regcache.h: Rename include guard.
4946 * nto-low.h: Rename include guard.
4947 * notif.h: Add include guard.
4948 * mem-break.h: Rename include guard.
4949 * lynx-low.h: Add include guard.
4950 * linux-x86-tdesc.h: Add include guard.
4951 * linux-s390-tdesc.h: Add include guard.
4952 * linux-ppc-tdesc-init.h: Add include guard.
4953 * linux-low.h: Add include guard.
4954 * linux-aarch64-tdesc.h: Add include guard.
4955 * linux-aarch32-low.h: Add include guard.
4956 * inferiors.h: Rename include guard.
4957 * i387-fp.h: Rename include guard.
4958 * hostio.h: Rename include guard.
4959 * gdbthread.h: Rename include guard.
4960 * gdb_proc_service.h: Rename include guard.
4961 * event-loop.h: Rename include guard.
4962 * dll.h: Rename include guard.
4963 * debug.h: Rename include guard.
4964 * ax.h: Rename include guard.
4966 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4969 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4970 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4972 2019-01-25 Tom Tromey <tom@tromey.com>
4974 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4976 2019-01-25 Tom Tromey <tom@tromey.com>
4978 * win32-low.c: Fix common/ includes.
4979 * win32-i386-low.c: Fix common/ includes.
4980 * tracepoint.c: Fix common/ includes.
4981 * thread-db.c: Fix common/ includes.
4982 * target.h: Fix common/ includes.
4983 * symbol.c: Fix common/ includes.
4984 * spu-low.c: Fix common/ includes.
4985 * server.h: Fix common/ includes.
4986 * server.c: Fix common/ includes.
4987 * remote-utils.c: Fix common/ includes.
4988 * regcache.h: Fix common/ includes.
4989 * regcache.c: Fix common/ includes.
4990 * nto-x86-low.c: Fix common/ includes.
4991 * notif.h: Fix common/ includes.
4992 * mem-break.h: Fix common/ includes.
4993 * lynx-low.c: Fix common/ includes.
4994 * lynx-i386-low.c: Fix common/ includes.
4995 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4996 * linux-x86-low.c: Fix common/ includes.
4997 * linux-low.c: Fix common/ includes.
4998 * inferiors.h: Fix common/ includes.
4999 * i387-fp.c: Fix common/ includes.
5000 * hostio.c: Fix common/ includes.
5001 * hostio-errno.c: Fix common/ includes.
5002 * gdbthread.h: Fix common/ includes.
5003 * gdbreplay.c: Fix common/ includes.
5004 * fork-child.c: Fix common/ includes.
5005 * event-loop.c: Fix common/ includes.
5007 (enum gdb_agent_op): Fix common/ includes.
5009 2019-01-21 Tom Tromey <tom@tromey.com>
5011 * tracepoint.c: Fix includes.
5012 * remote-utils.c: Fix includes.
5013 * linux-x86-low.c: Fix includes.
5015 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5017 * gdbreplay.c (gdbreplay_version): Update copyright year in
5019 * server.c (gdbserver_version): Likewise.
5021 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5023 * linux-low.c (add_lwp): Switch ordering.
5025 2018-11-29 Tom Tromey <tom@tromey.com>
5027 * win32-low.c (win32_join): Take pid, not process.
5028 * target.h (struct target_ops) <join>: Change argument type.
5029 (join_inferior): Change argument name.
5030 * spu-low.c (spu_join): Take pid, not process.
5031 * server.c (handle_detach): Preserve pid before destroying
5033 * lynx-low.c (lynx_join): Take pid, not process.
5034 * linux-low.c (linux_join): Take pid, not process.
5036 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5038 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5039 (aarch64_cannot_fetch_register): Likewise.
5040 (struct linux_target_ops): Update references.
5042 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5044 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5046 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5048 * configure.srv (ipa_ppc_linux_regobj): Add
5049 powerpc-isa207-htm-vsx32l-ipa.o and
5050 powerpc-isa207-htm-vsx64l-ipa.o.
5051 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5052 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5053 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5054 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5055 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5056 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5057 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5058 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5059 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5060 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5061 (init_registers_powerpc_isa207_htm_vsx32l)
5062 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5063 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5064 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5065 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5066 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5067 (ppc_store_tm_ctarregset): New functions.
5068 (ppc_regsets): Add entries for HTM regsets.
5069 (ppc_arch_setup): Set htm in features struct when needed. Set
5070 sizes for the HTM regsets.
5071 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5072 (initialize_low_arch): Call
5073 init_registers_powerpc_isa207_htm_vsx32l and
5074 init_registers_powerpc_isa207_htm_vsx64l.
5075 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5076 PPC_TDESC_ISA207_HTM_VSX.
5077 (initialize_low_tracepoint): Call
5078 init_registers_powerpc_isa207_htm_vsx32l and
5079 init_registers_powerpc_isa207_htm_vsx64l.
5081 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5083 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5084 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5085 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5086 (ppc_store_pmuregset): New functions.
5087 (ppc_regsets): Add entries for ebb and pmu regsets.
5088 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5089 pmu regsets are available. Set sizes for these regsets.
5091 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5093 * configure.srv (ipa_ppc_linux_regobj): Add
5094 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5095 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5096 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5097 rs6000/powerpc-isa207-vsx32l.xml, and
5098 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5099 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5100 <PPC_TDESC_ISA207_VSX>: New enum value.
5101 (init_registers_powerpc_isa207_vsx32l): Declare.
5102 (init_registers_powerpc_isa207_vsx64l): Declare.
5103 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5104 (ppc_store_tarregset): New function.
5105 (ppc_regsets): Add entry for the TAR regset.
5106 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5107 size for the TAR regsets.
5108 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5109 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5110 and init_registers_powerpc_isa207_vsx64l.
5111 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5112 (initialize_low_tracepoint): Call
5113 init_registers_powerpc_isa207_vsx32l and
5114 init_registers_powerpc_isa207_vsx64l.
5116 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5117 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5119 * configure.srv (ipa_ppc_linux_regobj): Add
5120 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5121 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5122 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5123 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5124 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5125 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5126 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5127 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5128 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5129 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5130 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5131 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5132 (ppc_hwcap): Add comment.
5133 (ppc_hwcap2): New global.
5134 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5135 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5136 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5137 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5138 when needed. Set sizes for the the DSCR and PPR regsets.
5139 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5140 (initialize_low_arch): Call
5141 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5142 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5143 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5144 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5145 (initialize_low_tracepoint): Call
5146 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5147 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5149 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5151 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5153 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5154 Simon Marchi <simark@simark.ca>
5156 * acinclude.m4: Include "../selftest.m4".
5157 * configure: Regenerate.
5158 * configure.ac: Use "GDB_AC_SELFTEST".
5159 * configure.srv: Use "$enable_unittests" instead of
5160 "$development" when checking whether unit tests have been
5162 * server.c (captured_main): Update message informing that
5163 selftests have been disabled.
5165 2018-10-04 Tom Tromey <tom@tromey.com>
5167 * configure: Rebuild.
5169 2018-10-04 Tom Tromey <tom@tromey.com>
5171 * server.c (handle_status): Rename inner "thread".
5172 (process_serial_event): Declare "res" in 'm' case.
5173 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5174 (iterate_over_lwps): Rename inner "thread".
5175 (linux_qxfer_libraries_svr4): Rename inner "len".
5176 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5178 2018-10-01 Gary Benson <gbenson@redhat.com>
5180 * gdb_proc_service.h: Moved common code to
5181 common/gdb_proc_service.h.
5183 2018-10-01 Gary Benson <gbenson@redhat.com>
5185 * gdb_proc_service.h: Synchronize comments and whitespace with
5186 GDB's version of this file.
5188 2018-09-25 Tom Tromey <tom@tromey.com>
5190 * configure: Rebuild.
5191 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5193 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5195 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5196 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5197 ($(IPA_LIB)): Sort IPA_OBJS.
5199 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5201 * Makefile.in: Remove references to $(ADD_DEPS).
5203 2018-09-16 Tom Tromey <tom@tromey.com>
5205 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5207 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5210 2018-09-05 Tom Tromey <tom@tromey.com>
5212 * configure: Rebuild.
5214 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5217 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5219 2018-08-27 Tom Tromey <tom@tromey.com>
5222 * configure: Rebuild.
5224 2018-08-27 Tom Tromey <tom@tromey.com>
5226 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5227 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5228 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5229 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5230 (s390x_emit_stack_adjust): Add casts to unsigned char.
5232 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5236 * server.h (struct client_state) <disable_randomization>:
5239 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5241 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5243 (mips_supply_ptrace_register): Likewise.
5245 2018-07-22 Tom Tromey <tom@tromey.com>
5247 * configure: Rebuild.
5249 2018-07-22 Tom Tromey <tom@tromey.com>
5251 * win32-low.c (win32_create_inferior): Remove unused variables.
5252 * gdbreplay.c (remote_open): Remove unused variable.
5253 * remote-utils.c (remote_prepare): Remove unused variable.
5254 * x86-tdesc.h (X86_TDESC_H): Define.
5255 (amd64_expedite_regs): Define conditionally.
5256 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5257 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5258 * remote-utils.c (readchar): Remove unused variable.
5260 2018-07-13 Pedro Alves <palves@redhat.com>
5262 * linux-low.c (linux_kill): Change parameter to process_info
5263 pointer instead of pid. Adjust.
5264 * lynx-low.c (lynx_kill): Likewise.
5265 * nto-low.c (nto_kill): Likewise.
5266 * spu-low.c (spu_kill): Likewise.
5267 * win32-low.c (win32_kill): Likewise.
5268 * server.c (handle_v_kill, kill_inferior_callback)
5269 (detach_or_kill_for_exit): Adjust.
5270 * target.c (kill_inferior): Change parameter to process_info
5271 pointer instead of pid. Adjust.
5272 * target.h (struct target_ops) <kill>: Change parameter to
5273 process_info pointer instead of pid. Adjust all implementations
5275 (kill_inferior): Likewise.
5277 2018-07-13 Pedro Alves <palves@redhat.com>
5279 * linux-low.c (linux_detach, linux_join): Change parameter to
5280 process_info pointer instead of pid. Adjust.
5281 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5282 * nto-low.c (nto_detach): Likewise.
5283 * spu-low.c (spu_detach, spu_join): Likewise.
5284 * win32-low.c (win32_detach, win32_join): Likewise.
5285 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5286 * target.h (struct target_ops) <detach, join>: Change parameter to
5287 process_info pointer instead of pid. Adjust all implementations
5289 (detach_inferior, join_inferior): Rename 'pid' parameter to
5292 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5293 Jan Kratochvil <jan.kratochvil@redhat.com>
5294 Paul Fertser <fercerpav@gmail.com>
5295 Tsutomu Seki <sekiriki@gmail.com>
5297 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5298 (OBS): Add 'common/netstuff.o'.
5299 (GDBREPLAY_OBS): Likewise.
5300 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5301 (remote_open): Implement support for IPv6
5303 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5305 (handle_accept_event): Accept connections from IPv6 sources.
5306 (remote_prepare): Handle IPv6-style hostnames; implement
5307 support for IPv6 connections.
5308 (remote_open): Implement support for printing connections from
5311 2018-07-11 Pedro Alves <palves@redhat.com>
5314 * mem-break.c (any_persistent_commands): Add process_info
5315 parameter and use it instead of relying on the current process.
5316 Change return type to bool.
5317 * mem-break.h (any_persistent_commands): Add process_info
5318 parameter and change return type to bool.
5319 * server.c (handle_detach): Remove require_running_or_return call.
5320 Look up the process_info for the process we're about to detach.
5321 If not found, return back error to GDB. Adjust
5322 any_persistent_commands call to pass down a process pointer.
5324 2018-07-11 Pedro Alves <palves@redhat.com>
5326 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5327 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5328 instead of collect_register_by_name.
5329 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5330 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5332 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5333 Pedro Alves <palves@redhat.com>
5335 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5337 2018-07-03 Tom Tromey <tom@tromey.com>
5339 * linux-low.c: Update.
5340 * lynx-low.c: Update.
5341 * mem-break.c: Update.
5342 * nto-low.c: Update.
5343 * remote-utils.c: Update.
5345 * spu-low.c: Update.
5347 * win32-low.c: Update.
5349 2018-07-03 Tom Tromey <tom@tromey.com>
5353 2018-07-03 Tom Tromey <tom@tromey.com>
5355 * linux-low.c: Update.
5357 2018-07-03 Tom Tromey <tom@tromey.com>
5361 2018-07-03 Tom Tromey <tom@tromey.com>
5363 * linux-low.c: Update.
5364 * linux-mips-low.c: Update.
5365 * lynx-low.c: Update.
5366 * nto-low.c: Update.
5367 * remote-utils.c: Update.
5369 * spu-low.c: Update.
5371 * thread-db.c: Update.
5373 2018-07-03 Tom Tromey <tom@tromey.com>
5375 * linux-low.c: Update.
5376 * linux-mips-low.c: Update.
5377 * lynx-low.c: Update.
5378 * mem-break.c: Update.
5379 * nto-low.c: Update.
5380 * remote-utils.c: Update.
5382 * spu-low.c: Update.
5384 * tracepoint.c: Update.
5386 2018-07-03 Tom Tromey <tom@tromey.com>
5388 * linux-low.c: Update.
5389 * linux-ppc-low.c: Update.
5390 * linux-x86-low.c: Update.
5391 * proc-service.c: Update.
5393 * spu-low.c: Update.
5394 * thread-db.c: Update.
5395 * win32-low.c: Update.
5397 2018-07-03 Tom Tromey <tom@tromey.com>
5399 * linux-low.c: Update.
5400 * lynx-low.c: Update.
5401 * nto-low.c: Update.
5402 * remote-utils.c: Update.
5403 * spu-low.c: Update.
5404 * thread-db.c: Update.
5405 * win32-low.c: Update.
5407 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5409 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5410 parameter in call to 'amd64_create_target_description'.
5412 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5414 * x86-tdesc.h: Remove executable permission flag.
5416 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5418 * configure.ac: Remove AC_PREREQ, add missing quoting.
5419 * configure: Re-generate.
5420 * config.in: Re-generate.
5421 * aclocal.m4: Re-generate.
5423 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5425 * tracepoint.h (current_traceframe): Remove declaration.
5427 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5429 * linux-aarch64-low.c (is_sve_tdesc): New function.
5430 (aarch64_sve_regs_copy_to_regcache): Likewise.
5431 (aarch64_sve_regs_copy_from_regcache): Likewise.
5432 (aarch64_regs_info): Add SVE checks.
5433 (initialize_low_arch): Initialize SVE.
5435 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5437 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5439 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5441 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5442 (initialize_low_tracepoint): Likewise
5443 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5444 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5446 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5448 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5450 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5452 * server.h (PBUFSIZ): Increase size
5454 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5456 * regcache.c (regcache::raw_compare): New function.
5457 * regcache.h (regcache::raw_compare): New declaration.
5459 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5461 * regcache.c (new_register_cache): Use new.
5462 (free_register_cache): Use delete.
5463 (register_data): Use const.
5464 (supply_register): Move body inside regcache.
5465 (regcache::raw_supply): New override function.
5466 (collect_register): Move body inside regcache.
5467 (regcache::raw_collect): New override function.
5468 (regcache::get_register_status): New override function.
5469 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5471 2018-06-09 Tom Tromey <tom@tromey.com>
5473 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5475 (event_queue): Use std::queue.
5476 (gdb_event_xfree): Remove.
5477 (initialize_event_loop, process_event, wait_for_event): Update.
5479 2018-06-08 Stan Cox <scox@redhat.com>
5481 * win32-low.c (win32_create_inferior): last_ptid and last_status
5482 moved to client_state.
5484 2018-06-08 Pedro Alves <palves@redhat.com>
5486 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5487 common/common-exceptions.o, common/common-utils.o,
5488 common/errors.o, common/print-utils.o and utils.o.
5489 * gdbreplay.c: Include "common-defs.h" instead of the two
5490 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5491 string.h or alloca.h.
5492 (perror_with_name): Delete.
5493 (remote_open): Use xstrdup instead of strdup.
5494 (main): Rename to ...
5495 (captured_main): ... this.
5498 2018-06-08 Tom Tromey <tom@tromey.com>
5500 * linux-low.c (linux_low_read_btrace): Update.
5502 2018-06-04 Stan Cox <scox@redhat.com>
5504 * server.h (struct client_state): New.
5505 * server.c (cont_thread, general_thread, multi_process)
5506 (report_fork_events, report_vfork_events, report_exec_events)
5507 (report_thread_events, swbreak_feature, hwbreak_feature)
5508 (vCont_supported, disable_randomization, pass_signals)
5509 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5510 Moved to client_state.
5511 * remote-utils.c (remote_debug, noack_mode)
5512 (transport_is_reliable): Moved to client_state.
5513 * tracepoint.c (current_traceframe): Moved to client_state.
5516 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5517 linux-low.c, remote-utils.h, target.c: Use client_state.
5519 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5521 * configure.srv: Add new c/h file.
5523 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5525 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5528 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5530 * gdb.arch/mips-fpregset-core.exp: New test.
5531 * gdb.arch/mips-fpregset-core.c: New test source.
5533 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5536 * hostio.c (require_int): Do not report overflow for integers
5537 between 0xfffffff and 0x7fffffff.
5539 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5541 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5542 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5543 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5545 (the_low_target): Wire them.
5547 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5549 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5550 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5551 mode. Call collect_register_by_name with vscr using
5552 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5553 (ppc_store_vrregset): Add and set vscr_offset variable as in
5554 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5557 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5559 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5560 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5561 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5563 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5565 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5566 (ppc_store_vsxregset): Likewise.
5567 (ppc_fill_vrregset): Likewise.
5568 (ppc_store_vrregset): Likewise.
5569 (ppc_fill_evrregset): Likewise.
5570 (ppc_store_evrregset): Likewise.
5571 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5572 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5575 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5577 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5578 wordsize of the inferior. Call ppc_linux_target_wordsize.
5580 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5582 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5583 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5584 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5585 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5586 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5587 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5588 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5589 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5590 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5591 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5592 (tdesc_powerpc_e500l): Remove.
5593 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5594 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5595 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5596 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5598 (ppc_arch_setup): Remove target description matching code. Fill a
5599 ppc_linux_features struct and call ppc_linux_match_description
5602 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5604 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5605 width of the requested register exceeds the width of the
5607 (mips_cannot_store_register): Likewise.
5609 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5611 * linux-mips-low.c (mips_fetch_register): New function. Update
5613 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5614 (the_low_target): Wire `mips_fetch_register'.
5616 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5618 * lynx-i386-low.c (LYNXOS_178): New macro.
5619 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5620 the layout on LynxOS-178.
5621 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5622 handle floating point registers that are not supported by
5625 2018-05-10 Tom Tromey <tom@tromey.com>
5627 * configure: Rebuild.
5629 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5632 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5633 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5634 Use it to set the expedite_regs field in the given tdesc.
5635 * x86-tdesc.h: New file.
5636 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5637 Adjust following the addition of the new expedite_regs parameter
5638 to init_target_desc.
5639 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5640 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5641 (i386_linux_read_description, amd64_linux_read_description):
5642 Adjust following the addition of the new expedite_regs parameter
5643 to init_target_desc.
5644 * lynx-i386-low.c: #include "x86-tdesc.h".
5645 (lynx_i386_arch_setup): Adjust following the addition of the new
5646 expedite_regs parameter to init_target_desc.
5647 * nto-x86-low.c: #include "x86-tdesc.h".
5648 (nto_x86_arch_setup): Adjust following the addition of the new
5649 expedite_regs parameter to init_target_desc.
5650 * win32-i386-low.c: #include "x86-tdesc.h".
5651 (i386_arch_setup): Adjust following the addition of the new
5652 expedite_regs parameter to init_target_desc.
5654 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5657 * win32-low.c (win32_create_inferior): Add call to my_wait
5658 setting last_status global.
5660 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5663 * win32-low.c (create_process): Only call gdb_tilde_expand if
5664 inferior_cwd is not NULL.
5666 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5668 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5669 registers to the cache if their values have changed.
5670 (i387_xsave_to_cache): Provide default values for x87 control
5671 registers when these features are available, but disabled.
5672 * regcache.c (supply_register_by_name_zeroed): New function.
5673 * regcache.h (supply_register_by_name_zeroed): Declare new
5676 2018-05-07 Tom Tromey <tom@tromey.com>
5678 * configure: Rebuild.
5680 2018-05-04 Tom Tromey <tom@tromey.com>
5682 * configure: Rebuild.
5684 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5685 Pedro Alves <palves@redhat.com>
5687 * linux-aarch64-low.c (aarch64_stopped_data_address):
5690 2018-04-27 Tom Tromey <tom@tromey.com>
5692 * configure: Rebuild.
5694 2018-04-23 Tom Tromey <tom@tromey.com>
5696 * configure: Rebuild.
5698 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5700 * Makefile.in (depcomp): Add "..".
5701 (all_deps_files): New and use it.
5703 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5705 * configure.srv (aarch64*-*-linux*): Don't include xml.
5706 (i[34567]86-*-cygwin*): Likewise.
5707 (i[34567]86-*-linux*): Likewise.
5708 (i[34567]86-*-lynxos*): Likewise.
5709 (i[34567]86-*-mingw32ce*): Likewise.
5710 (i[34567]86-*-mingw*): Likewise.
5711 (i[34567]86-*-nto*): Likewise.
5712 (tic6x-*-uclinux): Likewise.
5713 (x86_64-*-linux*): Likewise.
5714 (x86_64-*-mingw*): Likewise.
5715 (x86_64-*-cygwin*): Likewise.
5717 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5719 * tdesc.c: Remove xml parameter.
5721 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5723 * server.c (get_features_xml): Remove cast.
5724 * tdesc.c (void target_desc::accept): Fill in function.
5725 (tdesc_get_features_xml): Remove old xml creation.
5726 (print_xml_feature::visit_pre): Add xml vistor.
5727 * tdesc.h (struct target_desc): Make xmltarget mutable.
5728 (tdesc_get_features_xml): Remove declaration.
5730 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5732 * tdesc.c (tdesc_architecture_name): Add new function.
5733 (tdesc_osabi_name): Likewise.
5734 (tdesc_get_features_xml): Use new functions.
5736 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5738 * tdesc.c (tdesc_create_flags): Remove.
5739 (tdesc_add_flag): Likewise.
5740 (tdesc_named_type): Likewise.
5741 (tdesc_create_union): Likewise.
5742 (tdesc_create_struct): Likewise.
5743 (tdesc_create_vector): Likewise.
5744 (tdesc_add_bitfield): Likewise.
5745 (tdesc_add_field): Likewise.
5746 (tdesc_set_struct_size): Likewise.
5748 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5750 * tdesc.c (~target_desc): Remove implictly deleted items.
5751 (init_target_desc): Iterate all features.
5752 (tdesc_get_features_xml): Use vector.
5753 (tdesc_create_feature): Create feature.
5754 * tdesc.h (tdesc_feature) Remove
5755 (target_desc): Add features.
5757 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5759 * Makefile.in: Add common/tdesc.c
5760 * tdesc.c (init_target_desc): init all reg_defs from register
5762 (tdesc_create_reg): Create tdesc_reg.
5763 * tdesc.h (tdesc_feature): Add register vector.
5765 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5767 * tdesc.h (struct target_desc) <features>: Change type to
5768 std::vector<std::string>.
5769 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5771 (tdesc_get_features_xml): Likewise.
5772 (tdesc_create_feature): Likewise.
5774 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5776 * regcache.c (find_register_by_number): Return a ref.
5777 (find_regno): Use references.
5778 (register_size): Likewise.
5779 (register_data): Likewise.
5780 * tdesc.c (target_desc::~target_desc): Remove free calls.
5781 (target_desc::operator==): Use std::vector compare.
5782 (init_target_desc): Use reference.
5783 (tdesc_create_reg): Use reg constructors.
5784 * tdesc.h (struct target_desc): Replace pointer with object.
5786 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5788 * regcache.c (find_register_by_number): Make static.
5789 (find_regno): Use find_register_by_number
5790 * regcache.h (struct reg): Remove declaration.
5792 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5794 * tdesc.c (target_desc::~target_desc): Move to here.
5795 (target_desc::operator==): Likewise.
5796 * tdesc.h (target_desc::~target_desc): Move from here.
5797 (target_desc::operator==): Likewise.
5799 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5801 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5803 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5805 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5807 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5808 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5809 and init_registers_s390_gs_linux64.
5811 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5813 * linux-s390-low.c (s390_fill_gs): Remove function.
5814 (s390_fill_gsbc): Remove function.
5815 (s390_regsets): Set fill functions for the guarded storage regsets
5818 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5820 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5821 the word size. Add comment.
5822 (s390_get_wordsize): New function.
5823 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5824 pswm with it. Instead, use s390_get_wordsize to determine the
5825 word size first and derive the correct tdesc from that directly.
5827 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5829 * Makefile.in: Include silent-rules.mk.
5830 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5831 (COMPILE): Add ECHO_CXX.
5832 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5833 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5834 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5835 (version-generated.c): Add ECHO_GEN.
5836 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5837 (IPAGENT_COMPILE): Add ECHO_CXX.
5838 (%-generated.c): Add ECHO_REGDAT.
5840 2018-03-14 Tom Tromey <tom@tromey.com>
5843 * ax.c (ax_printf): Special case for NULL.
5845 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5847 * linux-low.c (linux_qxfer_libraries_svr4): Use
5848 xml_escape_text_append.
5850 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5852 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5854 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5856 * server.c (handle_general_set): Remove unnecessary xstrdup.
5858 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5860 * server.c (parse_debug_format_options): Adjust to
5861 delim_string_to_char_ptr_vec changes.
5862 * thread-db.c (thread_db_load_search): Adjust to
5863 dirnames_to_char_ptr_vec changes.
5865 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5867 * target.h (target_enable_btrace, target_disable_btrace)
5868 (target_read_btrace, target_read_btrace_conf): Turn macro into
5869 inline function. Throw error if target method is not defined.
5870 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5871 check for btrace target method. Be prepared to handle exceptions
5872 from btrace target methods.
5874 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5876 * server.c (captured_main): Change order of error message printed
5877 when the current working directory cannot be found.
5879 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5881 * server.c: Include "filenames.h" and "pathstuff.h".
5882 (program_name): Delete variable.
5883 (program_path): New anonymous class.
5884 (get_exec_wrapper): Use "program_path" instead of
5886 (handle_v_run): Likewise.
5887 (captured_main): Likewise.
5888 (process_serial_event): Likewise.
5890 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5892 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5893 (OBJS): Add "pathstuff.o".
5894 * server.c (current_directory): New global variable.
5895 (captured_main): Initialize "current_directory".
5897 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5899 * tdesc.c: Use common/tdesc.h.
5900 * tdesc.h: Likewise.
5902 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5903 Simon Marchi <simon.marchi@ericsson.com>
5905 * Makefile.in: Switch order of make rules.
5907 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5909 * Makefile.in: Add common directory in build.
5910 * configure.ac: Add common reference.
5911 * configure: Regenerate.
5913 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5915 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5916 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5917 * spu-low.c (spu_target_ops): Likewise.
5918 * win32-low.c (win32_target_ops): Likewise.
5919 * server.c (supported_btrace_packets): Report packets unconditionally.
5920 * target.h (target_ops) <supports_btrace>: Remove.
5921 (target_supports_btrace): Remove.
5923 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5925 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5926 (handle_btrace_disable): Change return type to void. Use exceptions
5928 (handle_btrace_general_set): Catch exception and copy message to
5931 2018-02-08 Tom Tromey <tom@tromey.com>
5933 * linux-low.c (install_software_single_step_breakpoints): Use
5934 make_scoped_restore.
5935 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5936 (do_restore_current_thread_cleanup): Remove.
5937 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5940 2018-02-08 Tom Tromey <tom@tromey.com>
5942 * mem-break.c (set_raw_breakpoint_at): Use
5943 gdb::unique_xmalloc_ptr.
5945 2018-01-30 Pedro Alves <palves@redhat.com>
5948 * target.c (target_terminal::terminal_state): Rename to ...
5949 (target_terminal::m_terminal_state): ... this.
5951 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5953 * linux-low.c (handle_extended_wait): Surround call to
5954 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5956 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5958 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5959 linux_ptrace_attach_fail_reason_string now returning an
5961 (linux_attach): Likewise.
5962 * thread-db.c (attach_thread): Likewise.
5964 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5967 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5968 checking for fs_base/gs_base fields in struct user_regs_struct.
5969 * configure: Regenerate.
5971 2018-01-16 Yao Qi <yao.qi@linaro.org>
5974 * linux-low.c (fetch_register): Call supply_register instead of
5977 2018-01-08 Yao Qi <yao.qi@linaro.org>
5978 Simon Marchi <simon.marchi@ericsson.com>
5980 * Makefile.in (OBS): Remove selftest.o.
5981 * configure.ac: Set srv_selftest_objs if $development is true.
5982 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5983 * configure: Re-generated.
5984 * server.c (captured_main): Wrap variable selftest_filter with
5987 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5989 * server.c (parse_debug_format_options): Return std::string.
5990 (handle_monitor_command, captured_main): Adjust.
5992 2018-01-05 Pedro Alves <palves@redhat.com>
5995 * server.c (captured_main): Pass quiet=false to
5996 save_original_signals_state.
5998 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6000 * gdbreplay.c (gdbreplay_version): Update copyright year in
6002 * server.c (gdbserver_version): Likewise.
6004 2017-12-08 Tom Tromey <tom@tromey.com>
6006 * ax.c (ax_printf): Update.
6008 2017-12-07 Yao Qi <yao.qi@linaro.org>
6010 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6011 aarch64_linux_read_description.
6012 * linux-amd64-ipa.c (idx2mask): New array.
6013 (get_ipa_tdesc): Move idx2mask out.
6014 (initialize_low_tracepoint): Initialize target descriptions.
6015 * linux-i386-ipa.c (idx2mask): New array.
6016 (get_ipa_tdesc): Move idx2mask out.
6017 (initialize_low_tracepoint): Initialize target descriptions.
6019 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6021 * tdesc.c (struct tdesc_type): Change return type.
6022 (tdesc_add_flag): Change parameter type.
6023 (tdesc_add_bitfield): Likewise.
6024 (tdesc_add_field): Likewise.
6025 (tdesc_set_struct_size): Likewise.
6027 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6029 * regcache.c (registers_to_string): Remove unused variable.
6031 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6033 * inferiors.c (for_each_inferior_with_data): Remove.
6034 * inferiors.h (for_each_inferior_with_data): Remove.
6035 * server.c (handle_qxfer_threads_worker): Change parameter type.
6036 (handle_qxfer_threads_proper): Use for_each_thread.
6038 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6040 * inferiors.c (for_each_inferior): Remove.
6041 (clear_inferiors): Use for_each_thread.
6042 * inferiors.h (for_each_inferior): Remove.
6043 * linux-low.c (linux_wait_for_event_filtered): Use
6045 (linux_stabilize_threads): Likewise.
6046 * regcache.c (regcache_release): Likewise.
6047 * server.c (gdb_wants_all_threads_stopped): Likewise.
6048 (clear_pending_status_callback): Remove.
6049 (handle_status): Use for_each_thread.
6050 (captured_main): Likewise.
6051 * win32-low.c (child_init_thread_list): Likewise.
6052 (win32_clear_inferiors): Likewise.
6053 (fake_breakpoint_event): Likewise.
6055 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6057 * inferiors.h (find_inferior): Remove.
6058 * inferiors.c (find_inferior): Remove.
6060 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6062 * linux-low.c (resume_status_pending_p): Update comment.
6063 (need_step_over_p): Update comment.
6065 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6067 * linux-low.c (proceed_one_lwp): Return void, change parameter
6069 (unsuspend_and_proceed_one_lwp): Likewise.
6070 (proceed_all_lwps): Use for_each_thread.
6071 (unstop_all_lwps): Likewise.
6073 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6075 * linux-low.c (linux_resume_one_thread): Return void, take
6077 (linux_resume): Use for_each_thread.
6079 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6081 * linux-low.c (send_sigstop_callback): Return void, change
6082 parameter type. Rename to...
6083 (send_sigstop): ... this.
6084 (suspend_and_send_sigstop_callback): Return void, change parameter
6086 (suspend_and_send_sigstop): ... this.
6087 (stop_all_lwps): Use for_each_thread.
6089 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6091 * linux-low.c (lwp_running): Return bool, remove unused
6093 (linux_stabilize_threads): Use find_thread.
6095 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6097 * linux-low.c (select_singlestep_lwp_callback): Remove.
6098 (count_events_callback): Remove.
6099 (select_event_lwp_callback): Remove.
6100 (select_event_lwp): Use find_thread/for_each_thread.
6102 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6104 * linux-low.c (not_stopped_callback): Return bool, take filter
6106 (linux_wait_for_event_filtered): Use find_thread.
6107 (linux_wait_1): Likewise.
6109 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6111 * linux-low.c (same_lwp): Remove.
6112 (find_lwp_pid): Use find_thread.
6114 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6116 * linux-low.c (delete_lwp_callback): Remove.
6117 (linux_mourn): Use for_each_thread.
6119 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6121 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6122 args parameter, don't check for pid.
6123 (linux_detach): Use for_each_thread.
6125 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6127 * linux-low.c (struct counter): Remove.
6128 (second_thread_of_pid_p): Remove.
6129 (last_thread_of_process_p): Use find_thread.
6131 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6133 * inferiors.c (find_inferior_in_random): Remove.
6134 * inferiors.h (find_inferior_in_random): Remove.
6135 * linux-low.c (status_pending_p_callback): Return bool, accept
6136 parameter ptid directly.
6137 (linux_wait_for_event_filtered): Use find_thread_in_random.
6138 (linux_wait_1): Likewise.
6140 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6142 * inferiors.c (find_inferior_id): Remove.
6143 (find_thread_ptid): Move implemention from find_inferior_id to
6145 * inferiors.h (find_inferior_id): Remove.
6146 * server.c (handle_status): Use find_thread_ptid.
6147 (process_serial_event): Likewise.
6148 * thread-db.c (find_one_thread): Likewise.
6149 (thread_db_thread_handle): Likewise.
6150 * win32-low.c (thread_rec): Likewise.
6151 (child_delete_thread): Likewise.
6152 (win32_thread_alive): Likewise.
6153 (get_child_debug_event): Likewise.
6155 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6157 * linux-mips-low.c (update_watch_registers_callback): Return
6158 void, remove pid_p parameter, don't check for pid.
6159 (mips_insert_point, mips_remove_point): Use for_each_thread.
6161 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6163 * lynx.low (lynx_delete_thread_callback): Remove.
6164 (lynx_mourn): Use for_each_thread.
6166 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6168 * regcache.c (regcache_invalidate_one): Remove.
6169 (regcache_invalidate_pid): use for_each_thread.
6171 2017-11-26 Tom Tromey <tom@tromey.com>
6173 * linux-low.c (linux_create_inferior): Update.
6175 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6177 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6179 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6181 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6182 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6183 * linux-aarch64-tdesc-selftest.c: New file.
6184 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6186 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6188 * configure.srv: Add new file.
6189 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6190 * linux-aarch64-tdesc-selftest.c: New file.
6191 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6193 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6195 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6196 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6197 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6199 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6201 * configure.srv: Add new files.
6202 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6203 aarch64_linux_read_description.
6204 * linux-aarch64-low.c (aarch64_linux_read_description):
6205 Merge with aarch64_arch_setup.
6206 (aarch64_arch_setup): Call aarch64_linux_read_description.
6207 * linux-aarch64-tdesc.c: New file.
6208 * linux-aarch64-tdesc.h: New file.
6210 2017-11-24 Yao Qi <yao.qi@linaro.org>
6212 * configure.srv: Set $srv_regobj for tic6x-linux.
6213 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6214 (tic6x_read_description): Move some code to tic6x_arch_setup.
6215 (tic6x_tdesc_test): New function.
6216 (initialize_low_arch): Call selftests::register_test.
6218 2017-11-22 Yao Qi <yao.qi@linaro.org>
6220 * remote-utils.c (prepare_resume_reply): Use memcpy.
6222 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6224 * linux-low.c (kill_one_lwp_callback): Return void, take
6225 argument directly, don't filter on pid.
6226 (linux_kill): Use for_each_thread.
6228 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6230 * linux-low.c (need_step_over_p): Return bool, remove dummy
6232 (linux_resume, proceed_all_lwps): Use find_thread.
6234 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6236 * linux-low.c (resume_status_pending_p): Return bool, remove
6238 (linux_resume): Use find_thread.
6240 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6242 * linux-low.c (struct thread_resume_array): Remove.
6243 (linux_set_resume_request): Return void, take arguments
6245 (linux_resume): Use for_each_thread.
6247 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6249 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6250 return bool, remove data argument.
6251 (linux_stabilize_threads): Use find_thread.
6253 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6255 * linux-low.c (unsuspend_one_lwp): Remove.
6256 (unsuspend_all_lwps): Use for_each_thread, inline code from
6259 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6261 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6262 * linux-low.c (struct iterate_over_lwps_args): Remove.
6263 (iterate_over_lwps_filter): Remove.
6264 (iterate_over_lwps): Use find_thread.
6266 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6268 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6269 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6270 code from reset_lwp_ptrace_options_callback.
6272 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6274 * linux-arm-low.c (struct update_registers_data): Remove.
6275 (update_registers_callback): Return void, take arguments
6276 directly, don't check thread's pid.
6277 (arm_insert_point, arm_remove_point): Use for_each_thread.
6279 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6281 * win32-low.c (continue_one_thread): Return void, take argument
6283 (child_continue): Use for_each_thread.
6285 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6287 * win32-i386-low.c (update_debug_registers_callback): Rename
6289 (update_debug_registers): ... this, return void, remove pid_p arg.
6290 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6292 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6294 * inferiors.h (struct process_info): Add constructor, initialize
6296 <syscalls_to_catch>: Change type to std::vector<int>.
6297 * inferiors.c (add_process): Allocate process_info with new.
6298 (remove_process): Free process_info with delete.
6299 * linux-low.c (handle_extended_wait): Adjust.
6300 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6301 * server.c (handle_general_set): Adjust.
6303 2017-11-16 Pedro Alves <palves@redhat.com>
6305 * remote-utils.c (remote_close): Block SIGIO signals instead of
6306 uninstalling the SIGIO handler.
6308 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6310 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6312 2017-11-16 Yao Qi <yao.qi@linaro.org>
6314 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6315 (tic6x_store_gregset): Likewise.
6316 (tic6x_usrregs_info): Move it up.
6318 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6320 * Makefile.in: Update arch rules.
6321 * configure.srv: Explicitly mark arch/ files.
6323 2017-11-13 Andreas Schwab <schwab@suse.de>
6325 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6327 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6329 2017-11-06 Pedro Alves <palves@redhat.com>
6331 * config.in, configure: Regenerate.
6333 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6335 * target.c (struct thread_search): Remove.
6336 (thread_search_callback): Remove.
6337 (prepare_to_access_memory): Use for_each_thread instead of
6338 find_inferior. Inline code from thread_search_callback.
6340 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6342 * server.c (struct visit_actioned_threads_data): Remove.
6343 (visit_actioned_threads): Change prototype to take arguments
6345 (resume): Use find_thread instead of find_inferior.
6347 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6349 * server.c (queue_stop_reply_callback): Change prototype, return
6351 (find_status_pending_thread_callback): Remove.
6352 (handle_status): Replace find_inferior with find_thread and
6355 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6357 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6359 (aarch64_store_gregset): Likewise.
6360 (aarch64_fill_fpregset): Likewise.
6361 (aarch64_store_fpregset): Likewise.
6363 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6365 * gdbthread.h (find_thread, for_each_thread): New functions.
6366 * inferiors.c (thread_of_pid): Remove.
6367 (find_any_thread_of_pid): Use find_thread.
6368 * linux-low.c (num_lwps): Use for_each_thread.
6370 2017-10-17 Yao Qi <yao.qi@linaro.org>
6372 * Makefile.in: Remove one rule.
6373 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6375 2017-10-17 Yao Qi <yao.qi@linaro.org>
6377 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6378 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6380 2017-10-17 Yao Qi <yao.qi@linaro.org>
6382 * configure.srv: Rename arm.o with arch/arm.o.
6384 2017-10-17 Yao Qi <yao.qi@linaro.org>
6386 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6387 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6388 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6389 (arch-i386.o, arch-amd64.o): Remove rules.
6390 (arch/%.o): New rule.
6391 Update POSTCOMPILE and COMPILE.pre.
6392 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6393 * configure: Re-generated.
6394 * configure.srv: Replace arch-i386.o with arch/i386.o.
6395 Replace arch-amd64.o with arch/amd64.o.
6397 2017-10-16 Yao Qi <yao.qi@linaro.org>
6399 * configure: Regenerated.
6401 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6403 * inferiors.h: (struct inferior_list): Remove.
6404 (struct inferior_list_entry); Remove.
6405 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6406 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6407 get_first_inferior): Remove.
6408 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6409 find_inferior_id, find_inferior_in_random): Change signature.
6410 * inferiors.c (all_threads): Change type to
6411 std::list<thread_info *>.
6412 (get_thread): Remove macro.
6413 (find_inferior, find_inferior_id): Change signature, implement
6415 (find_inferior_in_random): Change signature, implement using
6416 find_thread_in_random.
6417 (for_each_inferior, for_each_inferior_with_data): Change
6418 signature, implement using for_each_thread.
6419 (add_inferior_to_list, remove_inferior): Remove.
6420 (add_thread, get_first_thread, thread_of_pid,
6421 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6422 (get_first_inferior, one_inferior_p, clear_inferior_list):
6424 (clear_inferiors, get_thread_process): Update.
6425 * gdbthread.h: Include <list>.
6426 (struct thread_info) <entry>: Remove field.
6428 (all_threads): Change type to std::list<thread_info *>.
6429 (get_first_inferior): Add doc.
6430 (find_thread, for_each_thread, find_thread_in_random): New
6432 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6433 * linux-arm-low.c (update_registers_callback): Update.
6434 * linux-low.c (second_thread_of_pid_p): Update.
6435 (kill_one_lwp_callback, linux_detach_lwp_callback,
6436 delete_lwp_callback, status_pending_p_callback, same_lwp,
6437 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6438 iterate_over_lwps, not_stopped_callback,
6439 resume_stopped_resumed_lwps, count_events_callback,
6440 select_singlestep_lwp_callback, select_event_lwp_callback,
6441 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6442 suspend_and_send_sigstop_callback, wait_for_sigstop,
6443 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6444 lwp_running, linux_set_resume_request, resume_status_pending_p,
6445 need_step_over_p, start_step_over, linux_resume_one_thread,
6446 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6447 reset_lwp_ptrace_options_callback): Update.
6448 * linux-mips-low.c (update_watch_registers_callback): Update.
6449 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6451 (free_register_cache_thread_one): Remove.
6452 (regcache_release): Update.
6453 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6454 handle_qxfer_threads_worker): Update.
6455 (handle_query): Update, use list iterator.
6456 (visit_actioned_threads, handle_pending_status,
6457 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6458 clear_pending_status_callback, set_pending_status_callback,
6459 find_status_pending_thread_callback, handle_status,
6460 process_serial_event): Update.
6461 * target.c (thread_search_callback): Update.
6462 * thread-db.c (thread_db_get_tls_address): Update.
6463 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6465 * win32-i386-low.c (update_debug_registers_callback): Update.
6466 * win32-low.c (delete_thread_info, child_delete_thread,
6467 continue_one_thread, suspend_one_thread,
6468 get_child_debug_event): Adjust.
6470 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6472 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6473 * inferiors.h: Include <list>.
6474 (struct process_info) <entry>: Remove field.
6476 (pid_of): Change macro to function.
6477 (ptid_of, lwpid_of): Remove macro.
6478 (all_processes): Change type to std::list<process_info *>.
6479 (ALL_PROCESSES): Remove macro.
6480 (for_each_process, find_process): New function.
6481 * inferiors.c (all_processes): Change type to
6482 std::list<process_info *>.
6483 (find_thread_process): Adjust.
6484 (add_process): Likewise.
6485 (remove_process): Likewise.
6486 (find_process_pid): Likewise.
6487 (get_first_process): Likewise.
6488 (started_inferior_callback): Remove.
6489 (have_started_inferiors_p): Adjust.
6490 (attached_inferior_callback): Remove.
6491 (have_attached_inferiors_p): Adjust.
6492 * linux-low.c (check_zombie_leaders): Likewise.
6493 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6494 (x86_linux_update_xmltarget): Adjust.
6495 * server.c (handle_query): Likewise.
6496 (gdb_reattached_process): Remove.
6497 (handle_status): Adjust.
6498 (kill_inferior_callback): Likewise.
6499 (detach_or_kill_inferior): Remove.
6500 (print_started_pid): Likewise.
6501 (print_attached_pid): Likewise.
6502 (detach_or_kill_for_exit): Update.
6503 (process_serial_event): Likewise.
6504 * linux-arm-low.c (arm_new_fork): Likewise.
6506 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6508 * dll.h: Include <list>.
6509 (struct dll_info): Add constructor.
6510 <entry>: Remove field.
6511 (all_dlls): Change type to std::list<dll_info>.
6512 * dll.c: Include <algorithm>.
6513 (get_dll): Remove macro.
6514 (all_dlls): Change type to std::list<dll_info *>.
6515 (free_one_dll): Remove.
6516 (match_dll): Likewise.
6517 (loaded_dll): Adjust.
6518 (unloaded_dll): Adjust to all_dlls type change, use
6519 std::find_if. Inline code from match_dll.
6520 (clear_dlls): Adjust to all_dlls type change.
6521 * server.c (emit_dll_description): Remove.
6522 (handle_qxfer_libraries): Adjust to all_dlls type change,
6523 integrate emit_dll_description's functionality.
6525 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6527 * linux-low.h (struct linux_target_ops) <delete_process>: New
6529 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6530 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6531 (struct linux_target_ops): Add delete_process callback.
6532 * linux-arm-low.c (arm_delete_process): New.
6533 (struct linux_target_ops): Add delete_process callback.
6534 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6535 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6536 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6537 * linux-mips-low.c (mips_linux_delete_process): New.
6538 (struct linux_target_ops): Add delete_process callback.
6539 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6540 * linux-s390-low.c (struct linux_target_ops): Likewise.
6541 * linux-sh-low.c (struct linux_target_ops): Likewise.
6542 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6543 * linux-tile-low.c (struct linux_target_ops): Likewise.
6544 * linux-x86-low.c (x86_linux_delete_process): New.
6545 (struct linux_target_ops): Add delete_process callback.
6546 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6548 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6550 * linux-aarch64-low.c (the_low_target): Add thread delete
6552 * linux-arm-low.c (arm_delete_thread): New function.
6553 (the_low_target): Add thread delete callback.
6554 * linux-bfin-low.c (the_low_target): Likewise.
6555 * linux-crisv32-low.c (the_low_target): Likewise.
6556 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6558 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6560 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6561 * linux-mips-low.c (mips_linux_delete_thread): New function.
6562 (the_low_target): Add thread delete callback.
6563 * linux-ppc-low.c (the_low_target): Likewise.
6564 * linux-s390-low.c (the_low_target): Likewise.
6565 * linux-sh-low.c (the_low_target): Likewise.
6566 * linux-tic6x-low.c (the_low_target): Likewise.
6567 * linux-tile-low.c (the_low_target): Likewise.
6568 * linux-x86-low.c (the_low_target): Likewise.
6569 * linux-xtensa-low.c (the_low_target): Likewise.
6571 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6573 * win32-low.c: Include "common-inferior.h".
6575 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6577 * inferiors.c (set_inferior_cwd): New function.
6578 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6579 (handle_query): Inform that QSetWorkingDir is supported.
6580 * win32-low.c (create_process): Pass the inferior's cwd to
6583 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6585 * inferiors.c (current_inferior_cwd): New global variable.
6586 (get_inferior_cwd): New function.
6587 * inferiors.h (struct process_info) <cwd>: New field.
6589 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6591 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6592 (OBS): Add gdb_tilde_expand.o.
6594 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6596 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6597 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6599 2017-09-29 Pedro Alves <palves@redhat.com>
6601 * ax.c (gdb_parse_agent_expr): Constify.
6602 * ax.h (gdb_parse_agent_expr): Constify.
6603 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6605 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6606 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6607 * remote-utils.h (read_ptid): Constify.
6608 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6609 (process_point_options, process_serial_event): Constify.
6610 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6611 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6612 (cmd_qtbuffer): Constify.
6614 2017-09-29 Pedro Alves <palves@redhat.com>
6616 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6619 2017-09-29 Pedro Alves <palves@redhat.com>
6621 * linux-low.c (handle_extended_wait): Pass parent thread instead
6622 of process to thread_db_notice_clone.
6623 * linux-low.h (thread_db_notice_clone): Replace parent process
6624 parameter with parent thread parameter.
6625 * thread-db.c (find_one_thread): Add comment.
6626 (thread_db_notice_clone): Replace parent process parameter with
6627 parent thread parameter. Temporarily switch to the parent thread.
6629 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6631 * gdbthread.h: Include "common-gdbthread.h".
6632 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6633 "if" when validating the ptid.
6634 * remote-utils.c: Include "gdbthread.h".
6635 (prepare_resume_reply): Use "switch_to_thread".
6636 * target.c (done_accessing_memory): Likewise.
6638 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6640 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6641 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6642 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6643 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6644 s390x-gs-linux64-ipa.o to ipa_obj.
6645 * linux-s390-low.c (HWCAP_S390_GS): New define.
6646 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6648 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6649 (s390_arch_setup): Check for guarded-storage support and choose
6651 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6652 init_registers_s390x_gs_linux64.
6653 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6655 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6656 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6658 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6660 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6662 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6664 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6665 (thread_db_thread_handle): Declare.
6666 * linux-low.c (linux_target_ops): Initialize thread_handle.
6667 * server.c (handle_qxfer_threads_worker): Add support for
6669 * target.h (struct target_ops): Add new function pointer,
6671 (target_thread_handle): Define.
6672 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6674 (thread_db_thread_handle): New function.
6676 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6678 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6679 * linux-low.h (thread_db_notice_clone): Declare.
6680 * thread-db.c (thread_db_notice_clone): New function.
6682 2017-09-21 Pedro Alves <palves@redhat.com>
6684 * server.c (gdb_read_memory, handle_status, process_serial_event)
6685 (handle_serial_event, handle_target_event): Adjust to
6686 set_desired_thread prototype change.
6687 * target.c (set_desired_thread): Remove 'use_general' parameter
6689 * target.h (set_desired_thread): Remove 'use_general' parameter.
6691 2017-09-20 Tom Tromey <tom@tromey.com>
6693 * target.c (target_terminal::terminal_state): Define.
6694 (target_terminal::init): Rename from target_terminal_init.
6695 (target_terminal::inferior): Rename from
6696 target_terminal_inferior.
6697 (target_terminal::ours): Rename from target_terminal_ours.
6698 (target_terminal::ours_for_output, target_terminal::info): New.
6700 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6702 * server.c (accumulate_file_name_length): Remove.
6703 (emit_dll_description): Adjust to std::string change.
6704 (handle_qxfer_libraries): Use std::string to hold document.
6706 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6708 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6709 return type of xml_escape_text.
6710 * server.c (emit_dll_description): Likewise.
6712 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6714 * server.c (captured_main): Accept argument for --selftest.
6715 Update run_tests call.
6716 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6717 when registering selftests.
6719 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6721 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6722 instead of "VEC" for "target_desc.reg_defs".
6723 (regcache_cpy): Likewise.
6724 (registers_to_string): Likewise.
6725 (registers_from_string): Likewise.
6726 (find_regno): Likewise.
6727 (supply_regblock): Likewise.
6728 (regcache_raw_read_unsigned): Likewise.
6729 * tdesc.c (init_target_desc): Likewise.
6730 (tdesc_create_reg): Likewise.
6731 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6732 (struct target_desc) <reg_defs>: Convert to "std::vector".
6733 (target_desc): Do not initialize "reg_defs".
6734 (~target_desc): Update code to use "std::vector" instead of "VEC"
6735 for "target_desc.reg_defs".
6736 (operator==): Likewise.
6738 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6740 * inferiors.h (thread_to_gdb_id): Remove.
6741 * inferiors.c (thread_to_gdb_id): Remove.
6742 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6743 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6744 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6746 * nto-low.c (nto_fetch_registers, nto_store_registers,
6747 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6749 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6751 * inferiors.h (gdb_id_to_thread_id): Remove.
6752 * inferiors.c (gdb_id_to_thread_id): Remove.
6753 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6754 removal. Move pid declaration closer to where it's used.
6756 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6758 * server.c (handle_detach): New function.
6759 (process_serial_event): Move code out, call handle_detach.
6761 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6763 * server.c (require_running): Rename to ...
6764 (require_running_or_return): ... this ...
6765 (require_running_or_break): ... and this.
6766 (handle_query, process_serial_event): Adjust.
6768 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6770 * linux-low.c (linux_set_resume_request): Remove unused
6773 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6775 * server.c (first_thread_of): Remove.
6776 (process_serial_event): Replace usage of first_thread_of with
6777 find_any_thread_of_pid.
6778 * tracepoint.c (same_process_p): Remove.
6779 (gdb_agent_about_to_close): Replace usage of same_process_p with
6780 find_any_thread_of_pid.
6781 * linux-x86-low.c (same_process_callback): Remove.
6782 (x86_arch_setup_process_callback): Replace usage of
6783 same_process_callback with find_any_thread_of_pid.
6784 * thread-db.c (any_thread_of): Remove.
6785 (switch_to_process): Replace usage of any_thread_of with
6786 find_any_thread_of_pid.
6787 * inferiors.c (thread_pid_matches_callback): Remove.
6788 (find_thread_process): Adjust to use find_any_thread_of_pid.
6790 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6792 * regcache.c (get_thread_regcache): Guard calls to "memset"
6795 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6797 * linux-low.c (handle_extended_wait): Use
6798 "allocate_target_description" instead of "XNEW".
6799 * linux-x86-low.c (initialize_low_arch): Likewise.
6801 2017-09-05 Yao Qi <yao.qi@linaro.org>
6803 * configure.srv (srv_i386_regobj): Remove.
6804 (srv_amd64_regobj): Remove.
6805 (srv_regobj): Set it to "" for x86 non-linux targets.
6806 * linux-x86-tdesc.c (i386_linux_read_description):
6807 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6808 (init_registers_i386): Remove the declaration.
6809 (tdesc_i386): Remove the declaration.
6810 (lynx_i386_arch_setup): Call i386_create_target_description.
6811 * nto-x86-low.c: Likewise.
6812 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6813 [!__x86_64__]: include arch/i386.h.
6814 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6816 2017-09-05 Yao Qi <yao.qi@linaro.org>
6818 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6819 i386/amd64-XXX-linux from it.
6821 2017-09-05 Yao Qi <yao.qi@linaro.org>
6823 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6825 (ipa_amd64_linux_regobj): Remove.
6826 (ipa_x32_linux_regobj): Remove.
6828 2017-09-05 Yao Qi <yao.qi@linaro.org>
6830 * Makefile.in (arch-amd64.o): New rule.
6831 * configure.srv: Append arch-amd64.o.
6832 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6833 (get_ipa_tdesc): Call amd64_linux_read_description.
6834 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6835 and init_registers_amd64_XXX.
6836 * linux-x86-low.c (x86_linux_read_description): Call
6837 amd64_linux_read_description.
6838 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6839 (initialize_low_arch): Don't call init_registers_x32_XXX and
6840 init_registers_amd64_XXX.
6841 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6842 and tdesc_amd64_XXX.
6843 [__x86_64__] (amd64_tdesc_test): New function.
6844 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6845 and init_registers_amd64_XXX.
6846 * linux-x86-tdesc.c: Include arch/amd64.h.
6847 (xcr0_to_tdesc_idx): New function.
6848 (i386_linux_read_description): New function.
6849 (amd64_get_ipa_tdesc_idx): New function.
6850 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6851 (amd64_get_ipa_tdesc): Declare.
6853 2017-09-05 Yao Qi <yao.qi@linaro.org>
6855 * configure.srv (srv_i386_linux_xmlfiles): Remove
6856 i386/i386-XXX-linux.xml from it.
6858 2017-09-05 Yao Qi <yao.qi@linaro.org>
6860 * configure.srv: Set srv_i386_linux_regobj empty if $development
6862 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6863 initialize_low_tdesc.
6864 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6865 with #if initialize_low_tdesc.
6866 * linux-x86-tdesc-selftest.c: New file.
6867 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6869 2017-09-05 Yao Qi <yao.qi@linaro.org>
6871 * Makefile.in (arch-i386.o): New rule.
6872 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6873 (x86_64-*-linux*): Likewise.
6874 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6875 include arch/i386.h.
6876 (i386_linux_read_description): Remove code and call
6877 i386_create_target_description.
6878 * tdesc.c (allocate_target_description): New function.
6879 * tdesc.h (set_tdesc_architecture): Remove declaration.
6880 (set_tdesc_osabi): Likewise.
6882 2017-09-05 Yao Qi <yao.qi@linaro.org>
6884 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6885 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6886 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6888 * server.c (get_features_xml): Call tdesc_get_features_xml.
6889 * tdesc.c (set_tdesc_architecture): New function.
6890 (set_tdesc_osabi): New function.
6891 (tdesc_get_features_xml): New function.
6892 (tdesc_create_feature): Add an argument.
6893 * tdesc.h (struct target_desc) <features>: New field.
6894 <arch, osabi>: New field.
6895 (~target_desc): xfree features, arch, and osabi.
6896 (target_desc::oerator==): Don't compare .xmltarget.
6897 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6898 (set_tdesc_osabi): Likewise.
6899 (tdesc_get_features_xml): Likewise.
6901 2017-09-05 Yao Qi <yao.qi@linaro.org>
6903 * linux-x86-tdesc.c: Include selftest.h.
6904 (i386_tdesc_test): New function.
6905 (initialize_low_tdesc): Call selftests::register_test.
6906 * tdesc.h: Include regdef.h.
6907 (target_desc): Override operator == and !=.
6909 2017-09-05 Yao Qi <yao.qi@linaro.org>
6911 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6912 (ipa_obj): Likewise.
6913 * linux-i386-ipa.c: Include common/x86-xstate.h
6914 (get_ipa_tdesc): Call i386_linux_read_description.
6915 (initialize_low_tracepoint): Don't call init_registers_XXX
6916 functions, call initialize_low_tdesc instead.
6917 * linux-x86-low.c (x86_linux_read_description): Call
6918 i386_linux_read_description.
6919 (initialize_low_arch): Don't call init_registers_i386_XXX
6920 functions, call initialize_low_tdesc.
6921 * linux-x86-tdesc.c: New file.
6922 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6923 (i386_get_ipa_tdesc_idx): Declare.
6924 (i386_get_ipa_tdesc): Declare.
6925 (initialize_low_tdesc): Declare.
6927 2017-09-05 Yao Qi <yao.qi@linaro.org>
6929 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6932 2017-09-05 Yao Qi <yao.qi@linaro.org>
6934 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6935 * regcache.c (get_thread_regcache): Use VEC_length.
6936 (init_register_cache): Likewise.
6937 (regcache_cpy): Likewise.
6938 (registers_to_string): Iterate reg_defs via VEC_iterate.
6939 (find_regno): Likewise.
6940 (find_register_by_number): Use VEC_index.
6941 (register_size): Call find_register_by_number.
6942 (register_data): Call find_register_by_number.
6943 (supply_regblock): Use VEC_length.
6944 (regcache_raw_read_unsigned): Likewise.
6945 * tdesc.c (init_target_desc): Iterate reg_defs via
6947 (default_description): Update initializer.
6948 (copy_target_description): Don't update field num_registers.
6949 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6950 <num_registers>: Remove.
6952 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6954 * Makefile.in (.SECONDARY): Define target.
6956 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6958 * linux-low.c (linux_wait_1): Adjust.
6959 * server.c (queue_stop_reply_callback): Adjust.
6961 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6963 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6964 QEnvironmentUnset and QEnvironmentReset packets.
6965 (handle_query): Inform remote that QEnvironmentHexEncoded,
6966 QEnvironmentUnset and QEnvironmentReset are supported.
6968 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6970 * inferiors.h (inferior_target_data): Rename to ...
6971 (thread_target_data): ... this.
6972 (inferior_regcache_data): Rename to ...
6973 (thread_regcache_data): ... this.
6974 (set_inferior_regcache_data): Rename to ...
6975 (set_thread_regcache_data): ... this.
6976 * inferiors.c (inferior_target_data): Rename to ...
6977 (thread_target_data): ... this.
6978 (inferior_regcache_data): Rename to ...
6979 (thread_regcache_data): ... this.
6980 (set_inferior_regcache_data): Rename to ...
6981 (set_thread_regcache_data): ... this.
6982 (free_one_thread): Update.
6983 * linux-low.h (get_thread_lwp): Update.
6984 * regcache.c (get_thread_regcache): Update.
6985 (regcache_invalidate_thread): Update.
6986 (free_register_cache_thread): Update.
6987 * win32-i386-low.c (update_debug_registers_callback): Update.
6988 (win32_get_current_dr): Update.
6989 * win32-low.c (thread_rec): Update.
6990 (delete_thread_info): Update.
6991 (continue_one_thread): Update.
6992 (suspend_one_thread): Update.
6994 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6996 * inferiors.c (set_inferior_target_data): Remove.
6997 * inferiors.h (set_inferior_target_data): Remove.
6999 2017-08-18 Yao Qi <yao.qi@linaro.org>
7001 * Makefile.in (OBS): Add selftest.o.
7002 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7003 * configure, config.in: Re-generated.
7004 * server.c: Include common/sefltest.h.
7005 (captured_main): Handle option --selftest.
7007 2017-08-09 Yao Qi <yao.qi@linaro.org>
7009 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7010 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7011 i386-avx-mpx.o and i386-mmx.o.
7012 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7013 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7014 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7015 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7016 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7017 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7018 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7019 i386/amd64-avx-mpx.xml.
7021 2017-08-09 Yao Qi <yao.qi@linaro.org>
7023 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7024 and x32-avx-avx512.o.
7025 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7026 i386/x32-avx-avx512.xml.
7028 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7030 * tracepoint.h (enum class fast_tpoint_collect_result): New
7032 (fast_tracepoint_collecting): Change return type to
7033 fast_tpoint_collect_result.
7034 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7035 * linux-low.h: Include tracepoint.h.
7036 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7037 fast_tpoint_collect_result.
7038 * linux-low.c (handle_tracepoints): Adjust.
7039 (linux_fast_tracepoint_collecting): Change return type to
7040 fast_tpoint_collect_result.
7041 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7042 linux_wait_1, stuck_in_jump_pad_callback,
7043 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7044 proceed_one_lwp): Adjust to type change.
7046 2017-07-10 Yao Qi <yao.qi@linaro.org>
7048 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7050 2017-06-29 Yao Qi <yao.qi@linaro.org>
7052 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7054 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7056 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7058 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7060 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7062 * linux-low.c (linux_create_inferior): Adjust code to access the
7063 environment information via 'gdb_environ' class.
7064 * lynx-low.c (lynx_create_inferior): Likewise.
7065 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7066 (get_environ): Return a pointer to 'our_environ'.
7067 (captured_main): Initialize 'our_environ'.
7068 * server.h (get_environ): Adjust prototype.
7069 * spu-low.c (spu_create_inferior): Adjust code to access the
7070 environment information via 'gdb_environ' class.
7072 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7074 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7075 usage of "register" keyword.
7077 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7079 * configure: Re-generate.
7081 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7083 * configure: Re-generate.
7085 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7087 * Makefile.in (COMPILE.pre): Add "-x c++".
7089 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7091 * fork-child.c: Conditionally include <signal.h>.
7093 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7095 * server.c (handle_general_set): Handle new packet
7096 "QStartupWithShell".
7097 (handle_query): Add "QStartupWithShell" to the list of supported
7099 (gdbserver_usage): Add help text explaining the
7100 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7102 (captured_main): Recognize and act upon the presence of the new
7105 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7106 Pedro Alves <palves@redhat.com>
7108 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7109 * configure: Regenerate.
7110 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7112 (i[34567]86-*-lynxos*): Likewise.
7113 (spu*-*-*): Likewise.
7114 * fork-child.c: New file.
7115 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7117 (linux_ptrace_fun): New function.
7118 (linux_create_inferior): Adjust function prototype to reflect
7119 change on "target.h". Adjust function code to use
7121 (linux_request_interrupt): Delete "signal_pid".
7122 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7123 (lynx_ptrace_fun): New function.
7124 (lynx_create_inferior): Adjust function prototype to reflect
7125 change on "target.h". Adjust function code to use
7127 * nto-low.c (nto_create_inferior): Adjust function prototype and
7128 code to reflect change on "target.h". Update comments.
7129 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7130 "common-terminal.h" and "environ.h".
7131 (terminal_fd): Moved to fork-child.c.
7132 (old_foreground_pgrp): Likewise.
7133 (restore_old_foreground_pgrp): Likewise.
7134 (last_status): Make it global.
7135 (last_ptid): Likewise.
7136 (our_environ): New variable.
7137 (startup_with_shell): Likewise.
7138 (program_name): Likewise.
7139 (program_argv): Rename to...
7140 (program_args): ...this.
7141 (wrapper_argv): New variable.
7142 (start_inferior): Delete function.
7143 (get_exec_wrapper): New function.
7144 (get_exec_file): Likewise.
7145 (get_environ): Likewise.
7146 (prefork_hook): Likewise.
7147 (post_fork_inferior): Likewise.
7148 (postfork_hook): Likewise.
7149 (postfork_child_hook): Likewise.
7150 (handle_v_run): Update code to deal with arguments coming from the
7151 remote host. Update calls from "start_inferior" to
7153 (captured_main): Likewise. Initialize environment variable. Call
7155 * server.h (post_fork_inferior): New prototype.
7156 (get_environ): Likewise.
7157 (last_status): Declare.
7158 (last_ptid): Likewise.
7159 (signal_pid): Likewise.
7160 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7161 (spu_ptrace_fun): New function.
7162 (spu_create_inferior): Adjust function prototype to reflect change
7163 on "target.h". Adjust function code to use "fork_inferior".
7164 * target.c (target_terminal_init): New function.
7165 (target_terminal_inferior): Likewise.
7166 (target_terminal_ours): Likewise.
7167 * target.h: Include <vector>.
7168 (struct target_ops) <create_inferior>: Update prototype.
7169 (create_inferior): Update macro.
7170 * utils.c (gdb_flush_out_err): New function.
7171 * win32-low.c (win32_create_inferior): Adjust function prototype
7172 and code to reflect change on "target.h".
7174 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7176 * inferiors.c (switch_to_thread): New function.
7178 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7180 * Makefile.in (SFILE): Add "common/job-control.c".
7181 (OBS): Add "job-control.o".
7183 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7185 * Makefile: Remove "@host_makefile_frag@".
7187 2017-05-05 Pedro Alves <palves@redhat.com>
7189 * configure: Regenerate.
7191 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7193 * configure: Regenerate.
7195 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7197 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7198 software_single_step change of return type to
7199 std::vector<CORE_ADDR>.
7200 * linux-low.c (install_software_single_step_breakpoints):
7202 * linux-low.h (install_software_single_step_breakpoints):
7205 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7207 * remote-utils.c: Include "gdb_termios.h" instead of
7209 * terminal.h: Delete file.
7211 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7213 * server.c: Include <vector>.
7214 <program_argv, wrapper_argv>: Convert to std::vector.
7215 (start_inferior): Rewrite function to use C++.
7216 (handle_v_run): Likewise. Update code that calculates the argv
7217 based on the vRun packet; use C++.
7218 (captured_main): Likewise.
7220 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7222 * server.c (handle_v_cont): Initialize thread_resume::thread
7225 2017-04-05 Pedro Alves <palves@redhat.com>
7227 * configure: Regenerate.
7229 2017-04-05 Pedro Alves <palves@redhat.com>
7231 * gdbreplay.c (sync_error): Constify.
7232 * linux-x86-low.c (push_opcode): Constify.
7234 2017-04-05 Pedro Alves <palves@redhat.com>
7236 * win32-low.c (get_child_debug_event)
7237 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7238 Report TARGET_WAITKIND_SPURIOUS instead.
7240 2017-04-05 Pedro Alves <palves@redhat.com>
7242 * remote-utils.c (remote_prepare, remote_open): Constify.
7243 * remote-utils.h (remote_prepare, remote_open): Constify.
7244 * server.c (captured_main): Constify 'port' handling.
7246 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7248 * Makefile.in (clean): Clear .deps.
7250 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7252 * .gitignore: Remove generated files, replace with wildcard.
7253 * (clean): Replace removal of generated files with wildcard.
7254 (version.c): Replace with...
7255 (version-generated.c): ...this.
7256 (xml-builtin.c): Replace with...
7257 (xml-builtin-generated.c): ...this.
7258 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7259 (%.c: *regformats*): Replace with...
7260 (%-generated.c: *regformats*): ...this.
7262 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7264 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7265 (xtensa_fill_gregset): Call collect_register_by_name for
7267 (xtensa_store_gregset): Call supply_register_by_name for
7270 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7272 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7273 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7274 (xtensa_store_gregset): Call supply_register for all registers in
7275 a0_regnum..a0_regnum + C0_NREGS range.
7277 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7279 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7280 (ax-ipa.o: ax.c): Remove.
7281 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7282 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7283 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7284 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7285 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7287 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7289 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7290 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7291 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7292 (errors-ipa.o: ../common/errors.c): Remove.
7293 (format-ipa.o: ../common/format.c): Remove.
7294 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7296 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7298 * Makefile.in (%-ipa.o: %.c): New rule.
7299 (tracepoint-ipa.o: tracepoint.c): Remove.
7300 (utils-ipa.o: utils.c): Remove.
7301 (remote-utils-ipa.o: remote-utils.c): Remove.
7302 (regcache-ipa.o: regcache.c): Remove.
7303 (i386-linux-ipa.o: i386-linux.c): Remove.
7304 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7305 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7306 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7307 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7308 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7309 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7310 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7311 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7312 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7313 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7314 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7315 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7316 (aarch64-ipa.o: aarch64.c): Remove.
7317 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7318 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7319 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7320 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7321 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7322 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7323 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7324 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7325 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7326 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7327 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7328 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7329 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7330 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7331 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7332 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7333 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7334 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7335 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7336 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7337 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7338 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7339 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7340 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7341 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7342 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7343 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7344 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7345 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7346 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7347 (tdesc-ipa.o: tdesc.c): Remove.
7348 (x32-linux-ipa.o: x32-linux.c): Remove.
7349 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7350 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7352 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7354 * Makefile.in (%.o: ../arch/%.c): New rule.
7355 (arm.o: ../arch/arm.c): Remove.
7356 (arm-linux.o: ../arch/arm-linux.c): Remove.
7357 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7358 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7360 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7362 * Makefile.in (%.o: ../nat/%.c): New rule.
7363 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7364 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7365 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7366 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7367 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7368 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7369 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7370 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7371 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7372 (linux-personality.o: ../nat/linux-personality.c): Remove.
7373 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7374 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7375 (x86-linux.o: ../nat/x86-linux.c): Remove.
7376 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7377 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7379 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7381 * Makefile.in (%.o: ../common/%.c): New rule.
7382 (signals.o: ../common/signals.c): Remove.
7383 (print-utils.o: ../common/print-utils.c): Remove.
7384 (rsp-low.o: ../common/rsp-low.c): Remove.
7385 (common-utils.o: ../common/common-utils.c): Remove.
7386 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7387 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7388 (vec.o: ../common/vec.c): Remove.
7389 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7390 (xml-utils.o: ../common/xml-utils.c): Remove.
7391 (ptid.o: ../common/ptid.c): Remove.
7392 (buffer.o: ../common/buffer.c): Remove.
7393 (format.o: ../common/format.c): Remove.
7394 (filestuff.o: ../common/filestuff.c): Remove.
7395 (agent.o: ../common/agent.c): Remove.
7396 (errors.o: ../common/errors.c): Remove.
7397 (environ.o: ../common/environ.c): Remove.
7398 (common-debug.o: ../common/common-debug.c): Remove.
7399 (cleanups.o: ../common/cleanups.c): Remove.
7400 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7401 (fileio.o: ../common/fileio.c): Remove.
7402 (common-regcache.o: ../common/common-regcache.c): Remove.
7403 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7404 (new-op.o: ../common/new-op.c): Remove.
7405 (btrace-common.o: ../common/btrace-common.c): Remove.
7407 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7409 * Makefile.in (%.o: ../target/%.c): New rule.
7410 (waitstatus.o: ../target/waitstatus.c): Remove.
7412 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7415 (%.c: ../regformats/%.dat,
7416 (%.c: ../regformats/arm/%.dat,
7417 (%.c: ../regformats/i386/%.dat,
7418 (%.c: ../regformats/rs6000/%.dat): New rules.
7419 (aarch64.c): Remove.
7420 (reg-arm.c): Remove.
7421 (arm-with-iwmmxt.c): Remove.
7422 (arm-with-vfpv2.c): Remove.
7423 (arm-with-vfpv3.c): Remove.
7424 (arm-with-neon.c): Remove.
7425 (reg-bfin.c): Remove.
7426 (reg-cris.c): Remove.
7427 (reg-crisv32.c): Remove.
7429 (i386-linux.c): Remove.
7430 (i386-avx.c): Remove.
7431 (i386-avx-linux.c): Remove.
7432 (i386-avx-avx512.c): Remove.
7433 (i386-avx-avx512-linux.c): Remove.
7434 (i386-mpx.c): Remove.
7435 (i386-mpx-linux.c): Remove.
7436 (i386-avx-mpx-avx512-pku.c): Remove.
7437 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7438 (i386-avx-mpx.c): Remove.
7439 (i386-avx-mpx-linux.c): Remove.
7440 (i386-mmx.c): Remove.
7441 (i386-mmx-linux.c): Remove.
7442 (reg-ia64.c): Remove.
7443 (reg-m32r.c): Remove.
7444 (reg-m68k.c): Remove.
7446 (mips-linux.c): Remove.
7447 (mips-dsp-linux.c): Remove.
7448 (mips64-linux.c): Remove.
7449 (mips64-dsp-linux.c): Remove.
7450 (nios2-linux.c): Remove.
7451 (powerpc-32.c): Remove.
7452 (powerpc-32l.c): Remove.
7453 (powerpc-altivec32l.c): Remove.
7454 (powerpc-cell32l.c): Remove.
7455 (powerpc-vsx32l.c): Remove.
7456 (powerpc-isa205-32l.c): Remove.
7457 (powerpc-isa205-altivec32l.c): Remove.
7458 (powerpc-isa205-vsx32l.c): Remove.
7459 (powerpc-e500l.c): Remove.
7460 (powerpc-64l.c): Remove.
7461 (powerpc-altivec64l.c): Remove.
7462 (powerpc-cell64l.c): Remove.
7463 (powerpc-vsx64l.c): Remove.
7464 (powerpc-isa205-64l.c): Remove.
7465 (powerpc-isa205-altivec64l.c): Remove.
7466 (powerpc-isa205-vsx64l.c): Remove.
7467 (s390-linux32.c): Remove.
7468 (s390-linux32v1.c): Remove.
7469 (s390-linux32v2.c): Remove.
7470 (s390-linux64.c): Remove.
7471 (s390-linux64v1.c): Remove.
7472 (s390-linux64v2.c): Remove.
7473 (s390-te-linux64.c): Remove.
7474 (s390-vx-linux64.c): Remove.
7475 (s390-tevx-linux64.c): Remove.
7476 (s390x-linux64.c): Remove.
7477 (s390x-linux64v1.c): Remove.
7478 (s390x-linux64v2.c): Remove.
7479 (s390x-te-linux64.c): Remove.
7480 (s390x-vx-linux64.c): Remove.
7481 (s390x-tevx-linux64.c): Remove.
7482 (tic6x-c64xp-linux.c): Remove.
7483 (tic6x-c64x-linux.c): Remove.
7484 (tic6x-c62x-linux.c): Remove.
7486 (reg-sparc64.c): Remove.
7487 (reg-spu.c): Remove.
7489 (amd64-linux.c): Remove.
7490 (amd64-avx.c): Remove.
7491 (amd64-avx-linux.c): Remove.
7492 (amd64-avx-avx512.c): Remove.
7493 (amd64-avx-avx512-linux.c): Remove.
7494 (amd64-mpx.c): Remove.
7495 (amd64-mpx-linux.c): Remove.
7496 (amd64-avx-mpx-avx512-pku.c): Remove.
7497 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7498 (amd64-avx-mpx.c): Remove.
7499 (amd64-avx-mpx-linux.c): Remove.
7501 (x32-linux.c): Remove.
7502 (x32-avx.c): Remove.
7503 (x32-avx-linux.c): Remove.
7504 (x32-avx-avx512.c): Remove.
7505 (x32-avx-avx512-linux.c): Remove.
7506 (reg-xtensa.c): Remove.
7507 (reg-tilegx.c): Remove.
7508 (reg-tilegx32.c): Remove.
7510 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7512 * Makefile.in (SFILES): Add "common/environ.c".
7513 (OBJS): Add "common/environ.h".
7515 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7517 * configure.ac: Check if the fs_base and gs_base members of
7518 `struct user_regs_struct' exist.
7519 * config.in: Regenerated.
7520 * configure: Likewise.
7522 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7524 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7526 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7527 (get_next_pcs_syscall_next_pc): Likewise.
7529 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7531 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7532 * nto-x86-low.c: Likewise.
7534 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7536 * Makefile.in: Include disable-implicit-rules.mk.
7538 2016-11-23 Pedro Alves <palves@redhat.com>
7540 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7541 (debug_vprintf): Use std::chrono::steady_clock instead of
7542 gettimeofday. Use '.' instead of ':'.
7543 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7544 (get_timestamp): Use std::chrono::steady_clock instead of
7547 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7549 * Makefile.in: Fix whitespace formatting.
7551 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7553 * Makefile.in (SFILES, OBS): Flatten list and order
7556 2016-11-23 Pedro Alves <palves@redhat.com>
7558 * event-loop.c (handle_file_event): Use warning.
7559 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7560 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7563 2016-11-23 Pedro Alves <palves@redhat.com>
7565 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7567 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7568 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7569 debug_printf and debug_flush for debug output.
7570 * server.c (handle_general_set): Likewise.
7571 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7574 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7576 * Makefile.in (.c.o): Replace rule with ...
7577 (%.o: %.c): ... this one.
7579 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7581 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7582 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7584 * configure.ac: Remove checks for the make program.
7585 * configure: Re-generate.
7587 2016-10-28 Pedro Alves <palves@redhat.com>
7589 * Makefile.in (CXX_DIALECT): Get from configure.
7590 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7591 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7592 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7593 * config.in: Regenerate.
7594 * configure: Regenerate.
7596 2016-10-27 Yao Qi <yao.qi@linaro.org>
7598 * linux-low.c (linux_supports_range_stepping): Return true if
7599 can_software_single_step return true.
7601 2016-10-27 Yao Qi <yao.qi@linaro.org>
7603 * inferiors.c (find_inferior_in_random): New function.
7604 * inferiors.h (find_inferior_in_random): Declare.
7605 * linux-low.c (linux_wait_for_event_filtered): Call
7606 find_inferior_in_random instead of find_inferior.
7608 2016-10-27 Yao Qi <yao.qi@linaro.org>
7610 * linux-low.c (linux_wait_1): If single-step breakpoints are
7611 inserted, remove them.
7613 2016-10-26 Pedro Alves <palves@redhat.com>
7615 * linux-low.c (handle_extended_wait): Link parent/child fork
7617 (linux_wait_1): Unlink them.
7618 (linux_set_resume_request): Ignore resume requests for
7619 already-resumed and unhandled fork child threads.
7620 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7621 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7623 (handle_v_requests) <vCont>: Don't call require_running.
7624 * server.h (in_queued_stop_replies): New declaration.
7626 2016-10-24 Yao Qi <yao.qi@linaro.org>
7629 * linux-aarch64-low.c (append_insns): Cast the return value to
7632 2016-10-10 Yao Qi <yao.qi@linaro.org>
7634 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7636 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7638 * target.c (target_supports_multi_process): New function, moved
7640 * target.h (target_supports_multi_process): ... here. Remove
7643 2016-10-05 Tom Tromey <tom@tromey.com>
7646 * tracepoint.c (handle_tracepoint_bkpts): Check
7647 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7649 2016-10-05 Yao Qi <yao.qi@linaro.org>
7651 * configure.srv: Update the path of arm-*.xml files.
7653 2016-10-05 Terry Guo <terry.guo@arm.com>
7654 Yao Qi <yao.qi@linaro.org>
7656 * Makefile.in: Adjust the path of rules.
7657 * configure.srv: Update the path of xml files.
7658 * regformats/arm-with-iwmmxt.dat: Regenerated.
7659 * regformats/arm-with-neon.dat: Likewise.
7660 * regformats/arm-with-vfpv2.dat: Likewise.
7661 * regformats/arm-with-vfpv3.dat Likewise.
7663 2016-09-30 Yao Qi <yao.qi@linaro.org>
7666 * target.c (target_stop_and_wait): Don't call
7667 target_continue_no_signal, use resume_stop instead.
7669 2016-09-26 Yao Qi <yao.qi@linaro.org>
7671 * linux-low.c (linux_wait_1): Call debug_exit.
7673 2016-09-23 Pedro Alves <palves@redhat.com>
7675 * Makefile.in (SFILES): Add common/new-op.c.
7676 (OBS): Add common/new-op.o.
7677 (new-op.o): New rule.
7679 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7681 * .gitinore: Ignore more files.
7683 2016-09-21 Yao Qi <yao.qi@linaro.org>
7685 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7688 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7690 * server.c (start_inferior): Call target_mourn_inferior instead of
7691 mourn_inferior; pass ptid_t argument to it.
7693 (handle_target_event): Likewise.
7694 * target.c (target_mourn_inferior): New function.
7695 * target.h (mourn_inferior): Delete macro.
7697 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7699 * linux-low.c (lwp_is_stepping): New function.
7701 2016-09-06 Carl Love <cel@us.ibm.com>
7703 * server.c (start_inferior): Fixed comment, requested comment change
7704 didn't get updated correctly. Removed reference to ptrace () call as
7705 it is only true on Linux systems.
7707 2016-09-06 Carl Love <cel@us.ibm.com>
7709 * server.c (start_inferior): Do not call
7710 function target_post_create_inferior () if the
7711 inferior process has already exited.
7713 2016-09-05 Pedro Alves <palves@redhat.com>
7715 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7716 (COMPILE.pre, CC_LD): Use CXX directly.
7717 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7718 * acinclude.m4: Don't include build-with-cxx.m4.
7719 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7720 * configure: Regenerate.
7722 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7725 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7726 call writing data to own_buf.
7728 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7730 * target.c (mywait): Call target_wait instead of
7732 (target_wait): New function.
7734 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7736 * server.c (start_inferior): New variable 'ptid'. Replace calls
7737 to the_target->resume by target_continue{,_no_signal}, depending
7739 * target.c (target_stop_and_wait): Call target_continue_no_signal
7740 instead of the_target->resume.
7741 (target_continue): New function.
7743 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7745 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7747 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7750 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7752 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7753 * linux-arm-low.c (ps_get_thread_area): Likewise.
7754 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7755 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7756 * linux-mips-low.c (ps_get_thread_area): Likewise.
7757 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7758 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7759 * linux-x86-low.c (ps_get_thread_area): Likewise.
7760 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7762 2016-08-19 Pedro Alves <palves@redhat.com>
7764 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7766 2016-08-19 Pedro Alves <palves@redhat.com>
7768 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7769 comment. Use memcpy instead of casting through unsigned long.
7771 2016-08-19 Pedro Alves <palves@redhat.com>
7773 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7774 allocating around 0x80000000.
7776 2016-08-19 Pedro Alves <palves@redhat.com>
7779 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7780 (x32-avx512-linux-ipa.o): New rules.
7781 * configure.ac (x86_64-*-linux*): New x32 check.
7782 * configure.srv (ipa_x32_linux_regobj): New.
7783 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7784 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7786 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7788 * configure: Regenerate.
7790 2016-08-09 Pedro Alves <palves@redhat.com>
7793 * Makefile.in (OBS): Add signals-state-save-restore.o.
7794 (signals-state-save-restore.o): New rule.
7795 * config.in: Regenerate.
7796 * configure: Regenerate.
7797 * linux-low.c: Include "signals-state-save-restore.h".
7798 (linux_create_inferior): Call
7799 restore_original_signals_state.
7800 * server.c: Include "dispositions-save-restore.h".
7801 (captured_main): Call save_original_signals_state.
7803 2016-08-05 Pedro Alves <palves@redhat.com>
7805 * configure: Regenerate.
7807 2016-08-04 Yao Qi <yao.qi@linaro.org>
7809 * linux-low.c (regsets_fetch_inferior_registers): Check
7810 errno is ESRCH or not.
7812 2016-08-02 Yao Qi <yao.qi@linaro.org>
7814 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7815 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7816 (thread_db_load_search): Update.
7817 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7818 td_ta_set_event and td_ta_event_getmsg.
7820 2016-07-26 Pedro Alves <palves@redhat.com>
7823 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7824 of unsigned long for 64-bit registers and use uint32_t instead of
7825 unsigned int for 32-bit registers.
7827 2016-07-26 Pedro Alves <palves@redhat.com>
7829 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7832 2016-07-21 Tom Tromey <tom@tromey.com>
7834 * configure: Rebuild.
7836 2016-07-21 Yao Qi <yao.qi@linaro.org>
7838 * mem-break.c (find_gdb_breakpoint): Cast bp to
7839 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7841 2016-07-21 Yao Qi <yao.qi@linaro.org>
7843 * server.c (handle_v_requests): Support s and S actions
7844 if target_supports_software_single_step return true.
7846 2016-07-21 Yao Qi <yao.qi@linaro.org>
7848 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7849 is resume_step, call maybe_hw_step.
7850 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7852 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7854 (proceed_one_lwp): If resume request is resume_step, install
7855 reinsert breakpoints and call maybe_hw_step.
7857 2016-07-21 Yao Qi <yao.qi@linaro.org>
7859 * linux-low.c (proceed_one_lwp): Declare.
7860 (linux_resume_one_thread): Remove local variable 'step'.
7861 Lift code enqueue signal. Call proceed_one_lwp instead of
7862 linux_resume_one_lwp.
7864 2016-07-21 Yao Qi <yao.qi@linaro.org>
7866 * linux-low.c (linux_resume_one_thread): Call
7867 enqueue_pending_signal.
7869 2016-07-21 Yao Qi <yao.qi@linaro.org>
7871 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7872 * inferiors.c (do_restore_current_thread_cleanup): New function.
7873 (make_cleanup_restore_current_thread): Likewise.
7874 * linux-low.c (install_software_single_step_breakpoints): Call
7875 make_cleanup_restore_current_thread. Switch current_thread to
7878 2016-07-21 Yao Qi <yao.qi@linaro.org>
7880 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7881 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7882 (clone_one_breakpoint): Likewise.
7883 (delete_reinsert_breakpoints): Change parameter to thread.
7885 (has_reinsert_breakpoints): Likewise.
7886 (uninsert_reinsert_breakpoints): Likewise.
7887 (reinsert_reinsert_breakpoints): Likewise.
7888 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7889 (delete_reinsert_breakpoints): Likewise.
7890 (reinsert_reinsert_breakpoints): Likewise.
7891 (uninsert_reinsert_breakpoints): Likewise.
7892 (has_reinsert_breakpoints): Likewise.
7894 2016-07-21 Yao Qi <yao.qi@linaro.org>
7896 * inferiors.c (get_thread_process): Make parameter const.
7897 * inferiors.h (get_thread_process): Update declaration.
7898 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7899 Add new parameters child_thread and parent_thread. Callers
7901 * mem-break.h (clone_all_breakpoints): Update declaration.
7903 2016-07-21 Yao Qi <yao.qi@linaro.org>
7905 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7906 <command_list, handler>: Remove.
7907 (struct gdb_breakpoint): New.
7908 (struct other_breakpoint): New.
7909 (struct reinsert_breakpoint): New.
7910 (is_gdb_breakpoint): New function.
7911 (any_persistent_commands): Update command_list if
7912 is_gdb_breakpoint returns true.
7913 (set_breakpoint): Create breakpoints according to their types.
7914 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7915 (set_gdb_breakpoint_1): Likewise.
7916 (set_gdb_breakpoint): Likewise.
7917 (clear_breakpoint_conditions): Change parameter type to
7918 'struct gdb_breakpoint *'.
7919 (clear_breakpoint_commands): Likewise.
7920 (clear_breakpoint_conditions_and_commands): Likewise.
7921 (add_condition_to_breakpoint): Likewise.
7922 (add_breakpoint_condition): Likewise.
7923 (add_commands_to_breakpoint): Likewise.
7924 (check_breakpoints): Check other_breakpoint.
7925 (clone_one_breakpoint): Clone breakpopint according to its type.
7926 * mem-break.h (struct gdb_breakpoint): Declare.
7927 (set_gdb_breakpoint): Update declaration.
7928 (clear_breakpoint_conditions_and_commands): Likewise.
7929 (add_breakpoint_condition): Likewise.
7930 (add_breakpoint_commands): Likewise.
7931 * server.c (process_point_options): Change parameter type to
7932 'struct gdb_breakpoint *'.
7934 2016-07-21 Yao Qi <yao.qi@linaro.org>
7936 * mem-break.c (set_breakpoint_at): Rename it to ...
7937 (set_breakpoint_type_at): ... it.
7938 (set_breakpoint_at): Call set_breakpoint_type_at.
7939 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7940 * mem-break.h (set_breakpoint_at): Update comments.
7942 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7944 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7946 (nios2_store_gregset): Likewise.
7948 2016-07-01 Pedro Alves <palves@redhat.com>
7949 Antoine Tremblay <antoine.tremblay@ericsson.com>
7951 * linux-low.c: Change interface to take the target lwp_info
7952 pointer directly and return void. Handle detaching from a zombie
7954 (linux_detach_lwp_callback): New function.
7955 (linux_detach): Detach from the leader thread after detaching from
7958 2016-06-28 Yao Qi <yao.qi@linaro.org>
7960 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7961 for variable new_offset.
7962 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7963 (aarch64_ftrace_insn_reloc_cb): Likewise.
7964 (aarch64_ftrace_insn_reloc_tb): Likewise.
7965 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7966 PRIx64 instead of PRIx32.
7968 2016-06-28 Yao Qi <yao.qi@linaro.org>
7970 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7971 (the_low_target): Install arm_get_syscall_trapinfo.
7973 2016-06-28 Yao Qi <yao.qi@linaro.org>
7975 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7977 (the_low_target): Install aarch64_get_syscall_trapinfo.
7979 2016-06-28 Yao Qi <yao.qi@linaro.org>
7981 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7983 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7984 Remove parameter sysno.
7985 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7988 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7990 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7991 (s390_emit_ne_goto): Likewise.
7992 (s390_emit_lt_goto): Likewise.
7993 (s390_emit_le_goto): Likewise.
7994 (s390_emit_gt_goto): Likewise.
7995 (s390_emit_ge_goto): Likewise.
7996 (s390x_emit_eq_goto): Likewise.
7997 (s390x_emit_ne_goto): Likewise.
7998 (s390x_emit_lt_goto): Likewise.
7999 (s390x_emit_le_goto): Likewise.
8000 (s390x_emit_gt_goto): Likewise.
8001 (s390x_emit_ge_goto): Likewise.
8002 (s390_emit_ops_impl): Mark variable static.
8003 (s390x_emit_ops): Likewise.
8005 2016-06-17 Yao Qi <yao.qi@linaro.org>
8007 * linux-low.c (handle_extended_wait): Call
8008 uninsert_reinsert_breakpoints for the parent process. Remove
8009 reinsert breakpoints from the child process. Reinsert them to
8010 the parent process when vfork is done.
8011 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8012 (reinsert_reinsert_breakpoints): New function.
8013 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8014 (reinsert_reinsert_breakpoints): Declare.
8016 2016-06-17 Yao Qi <yao.qi@linaro.org>
8018 * linux-low.c (handle_extended_wait): If the parent is doing
8019 step-over, remove the reinsert breakpoints from the forked child.
8021 2016-06-17 Yao Qi <yao.qi@linaro.org>
8023 * linux-low.c (unsuspend_all_lwps): Declare.
8024 (linux_low_filter_event): If thread exited, call finish_step_over.
8025 If step-over is finished, unsuspend other threads.
8027 2016-06-17 Yao Qi <yao.qi@linaro.org>
8029 * linux-low.c (linux_resume_one_lwp_throw): Assert
8030 has_reinsert_breakpoints returns false.
8031 * mem-break.c (delete_disabled_breakpoints): Assert
8032 bp type isn't reinsert_breakpoint.
8034 2016-06-17 Yao Qi <yao.qi@linaro.org>
8036 * linux-low.c (maybe_hw_step): New function.
8037 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8038 (finish_step_over): Switch current_thread to lwp temporarily,
8039 and assert has_reinsert_breakpoints returns true.
8040 (proceed_one_lwp): Call maybe_hw_step.
8041 * mem-break.c (has_reinsert_breakpoints): New function.
8042 * mem-break.h (has_reinsert_breakpoints): Declare.
8044 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8046 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8048 2016-05-17 Yao Qi <yao.qi@linaro.org>
8050 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8051 instead of find_inferior.
8053 2016-05-05 Yao Qi <yao.qi@linaro.org>
8055 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8056 Initialize res to zero.
8058 2016-05-05 Yao Qi <yao.qi@linaro.org>
8060 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8063 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8065 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8066 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8067 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8069 2016-04-28 Par Olsson <par.olsson@windriver.com>
8070 Simon Marchi <simon.marchi@ericsson.com>
8072 * tracepoint.c (write_inferior_int8): New function.
8073 (cmd_qtenable_disable): Write enable flag using
8074 write_inferior_int8.
8076 2016-04-25 Yao Qi <yao.qi@linaro.org>
8078 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8079 (need_step_over_p): Return zero if the LWP has pending signals
8080 can be delivered on software single step target.
8082 2016-04-25 Yao Qi <yao.qi@linaro.org>
8084 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8085 return instead of error.
8087 2016-04-22 Yao Qi <yao.qi@linaro.org>
8089 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8092 2016-04-22 Yao Qi <yao.qi@linaro.org>
8094 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8095 signal when stepping over breakpoint with software single
8098 2016-04-21 Pedro Alves <palves@redhat.com>
8100 * linux-s390-low.c (s390_collect_ptrace_register)
8101 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8103 (s390_check_regset): Use void * instead of gdb_byte *.
8105 2016-04-20 Pedro Alves <palves@redhat.com>
8107 * configure: Renegerate.
8109 2016-04-20 Yao Qi <yao.qi@linaro.org>
8111 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8112 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8114 (arm_store_gregset): Likewise.
8116 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8118 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8119 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8120 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8121 (amd64-avx-mpx-linux.c): New rules.
8122 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8123 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8124 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8125 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8126 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8127 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8128 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8129 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8130 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8131 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8132 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8133 * linux-x86-low.c (x86_linux_read_description): Add case for
8134 X86_XSTATE_AVX_MPX_MASK.
8135 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8136 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8137 init_registers_i386_avx_mpx_linux.
8138 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8139 (initialize_low_tracepoint): Call
8140 init_registers_i386_avx_mpx_linux.
8141 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8142 (initialize_low_tracepoint): Call
8143 init_registers_amd64_avx_mpx_linux.
8144 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8145 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8146 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8149 2016-04-18 Pedro Alves <palves@redhat.com>
8151 * configure: Regenerate.
8153 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8155 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8156 (aarch64_emit_sub): Likewise.
8158 2016-04-12 Pedro Alves <palves@redhat.com>
8160 * utils.c (prepare_to_throw_exception): Delete.
8162 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8164 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8166 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8168 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8170 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8172 * linux-aarch64-ipa.c: Add <elf.h> include.
8173 * linux-ppc-ipa.c: Add <elf.h> include.
8174 * linux-s390-ipa.c: Add <elf.h> include.
8176 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8178 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8179 (get_raw_reg_ptr): Likewise.
8180 (get_trace_state_variable_value_ptr): Likewise.
8181 (set_trace_state_variable_value_ptr): Likewise.
8182 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8185 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8186 Marcin Kościelnicki <koriakin@0x04.net>
8189 * linux-ppc-low.c (emit_insns): New function.
8190 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8191 (ppc_emit_prologue): New function.
8192 (ppc_emit_epilogue): New function.
8193 (ppc_emit_add): New function.
8194 (ppc_emit_sub): New function.
8195 (ppc_emit_mul): New function.
8196 (ppc_emit_lsh): New function.
8197 (ppc_emit_rsh_signed): New function.
8198 (ppc_emit_rsh_unsigned): New function.
8199 (ppc_emit_ext): New function.
8200 (ppc_emit_zero_ext): New function.
8201 (ppc_emit_log_not): New function.
8202 (ppc_emit_bit_and): New function.
8203 (ppc_emit_bit_or): New function.
8204 (ppc_emit_bit_xor): New function.
8205 (ppc_emit_bit_not): New function.
8206 (ppc_emit_equal): New function.
8207 (ppc_emit_less_signed): New function.
8208 (ppc_emit_less_unsigned): New function.
8209 (ppc_emit_ref): New function.
8210 (ppc_emit_const): New function.
8211 (ppc_emit_reg): New function.
8212 (ppc_emit_pop): New function.
8213 (ppc_emit_stack_flush): New function.
8214 (ppc_emit_swap): New function.
8215 (ppc_emit_stack_adjust): New function.
8216 (ppc_emit_call): New function.
8217 (ppc_emit_int_call_1): New function.
8218 (ppc_emit_void_call_2): New function.
8219 (ppc_emit_if_goto): New function.
8220 (ppc_emit_goto): New function.
8221 (ppc_emit_eq_goto): New function.
8222 (ppc_emit_ne_goto): New function.
8223 (ppc_emit_lt_goto): New function.
8224 (ppc_emit_le_goto): New function.
8225 (ppc_emit_gt_goto): New function.
8226 (ppc_emit_ge_goto): New function.
8227 (ppc_write_goto_address): New function.
8228 (ppc_emit_ops_impl): New static variable.
8229 (ppc64v1_emit_prologue): New function.
8230 (ppc64v2_emit_prologue): New function.
8231 (ppc64_emit_epilogue): New function.
8232 (ppc64_emit_add): New function.
8233 (ppc64_emit_sub): New function.
8234 (ppc64_emit_mul): New function.
8235 (ppc64_emit_lsh): New function.
8236 (ppc64_emit_rsh_signed): New function.
8237 (ppc64_emit_rsh_unsigned): New function.
8238 (ppc64_emit_ext): New function.
8239 (ppc64_emit_zero_ext): New function.
8240 (ppc64_emit_log_not): New function.
8241 (ppc64_emit_bit_and): New function.
8242 (ppc64_emit_bit_or): New function.
8243 (ppc64_emit_bit_xor): New function.
8244 (ppc64_emit_bit_not): New function.
8245 (ppc64_emit_equal): New function.
8246 (ppc64_emit_less_signed): New function.
8247 (ppc64_emit_less_unsigned): New function.
8248 (ppc64_emit_ref): New function.
8249 (ppc64_emit_const): New function.
8250 (ppc64v1_emit_reg): New function.
8251 (ppc64v2_emit_reg): New function.
8252 (ppc64_emit_pop): New function.
8253 (ppc64_emit_stack_flush): New function.
8254 (ppc64_emit_swap): New function.
8255 (ppc64v1_emit_call): New function.
8256 (ppc64v2_emit_call): New function.
8257 (ppc64v1_emit_int_call_1): New function.
8258 (ppc64v2_emit_int_call_1): New function.
8259 (ppc64v1_emit_void_call_2): New function.
8260 (ppc64v2_emit_void_call_2): New function.
8261 (ppc64_emit_if_goto): New function.
8262 (ppc64_emit_eq_goto): New function.
8263 (ppc64_emit_ne_goto): New function.
8264 (ppc64_emit_lt_goto): New function.
8265 (ppc64_emit_le_goto): New function.
8266 (ppc64_emit_gt_goto): New function.
8267 (ppc64_emit_ge_goto): New function.
8268 (ppc64v1_emit_ops_impl): New static variable.
8269 (ppc64v2_emit_ops_impl): New static variable.
8270 (ppc_emit_ops): New function.
8271 (linux_low_target): Wire in ppc_emit_ops.
8273 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8274 Marcin Kościelnicki <koriakin@0x04.net>
8277 * Makefile.in: Add powerpc-*-ipa.o
8278 * configure.srv: Add ipa_obj for powerpc*-linux.
8279 * linux-ppc-ipa.c: New file.
8280 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8282 (PPC_FIELD): New macro.
8283 (PPC_SEXT): New macro.
8284 (PPC_OP6): New macro.
8285 (PPC_BO): New macro.
8286 (PPC_LI): New macro.
8287 (PPC_BD): New macro.
8288 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8289 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8290 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8291 (ppc_get_thread_area): New function.
8292 (is_elfv2_inferior): New function.
8293 (gen_ds_form): New function.
8294 (GEN_STD): New macro.
8295 (GEN_STDU): New macro.
8296 (GEN_LD): New macro.
8297 (GEN_LDU): New macro.
8298 (gen_d_form): New function.
8299 (GEN_ADDI): New macro.
8300 (GEN_ADDIS): New macro.
8301 (GEN_LI): New macro.
8302 (GEN_LIS): New macro.
8303 (GEN_ORI): New macro.
8304 (GEN_ORIS): New macro.
8305 (GEN_LWZ): New macro.
8306 (GEN_STW): New macro.
8307 (GEN_STWU): New macro.
8308 (gen_xfx_form): New function.
8309 (GEN_MFSPR): New macro.
8310 (GEN_MTSPR): New macro.
8311 (GEN_MFCR): New macro.
8312 (GEN_MTCR): New macro.
8313 (GEN_SYNC): New macro.
8314 (GEN_LWSYNC): New macro.
8315 (gen_x_form): New function.
8316 (GEN_OR): New macro.
8317 (GEN_MR): New macro.
8318 (GEN_LWARX): New macro.
8319 (GEN_STWCX): New macro.
8320 (GEN_CMPW): New macro.
8321 (gen_md_form): New function.
8322 (GEN_RLDICL): New macro.
8323 (GEN_RLDICR): New macro.
8324 (gen_i_form): New function.
8326 (GEN_BL): New macro.
8327 (gen_b_form): New function.
8328 (GEN_BNE): New macro.
8329 (GEN_LOAD): New macro.
8330 (GEN_STORE): New macro.
8331 (gen_limm): New function.
8332 (gen_atomic_xchg): New function.
8333 (gen_call): New function.
8334 (ppc_relocate_instruction): New function.
8335 (ppc_install_fast_tracepoint_jump_pad): New function.
8336 (ppc_get_min_fast_tracepoint_insn_len): New function.
8337 (ppc_get_ipa_tdesc_idx): New function.
8338 (the_low_target): Wire in the new functions.
8339 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8341 * linux-ppc-tdesc.h: New file.
8343 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8345 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8346 (alloc_jump_pad_buffer): New function.
8347 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8348 (alloc_jump_pad_buffer): New function.
8349 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8350 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8351 (alloc_jump_pad_buffer): New function.
8352 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8353 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8354 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8355 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8357 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8359 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8360 * linux-amd64-ipa.c: Likewise.
8361 * linux-i386-ipa.c: Likewise.
8362 * linux-s390-ipa.c: Likewise.
8363 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8364 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8365 set_trace_state_variable_value_ptr.
8366 (struct ipa_sym_addresses): Likewise.
8367 (symbol_list): Likewise.
8368 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8369 accessing gdb_collect directly.
8370 (gdb_collect_ptr_type): New typedef.
8371 (get_raw_reg_ptr_type): New typedef.
8372 (get_trace_state_variable_value_ptr_type): New typedef.
8373 (set_trace_state_variable_value_ptr_type): New typedef.
8374 (gdb_collect_ptr): New global.
8375 (get_raw_reg_ptr): New global.
8376 (get_trace_state_variable_value_ptr): New global.
8377 (set_trace_state_variable_value_ptr): New global.
8378 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8379 accessing get_raw_reg directly.
8380 (get_get_tsv_func_addr): Likewise for
8381 get_trace_state_variable_value_ptr.
8382 (get_set_tsv_func_addr): Likewise for
8383 set_trace_state_variable_value_ptr.
8384 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8386 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8388 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8390 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8392 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8394 (relocate_instruction): Remove own_buf.
8395 * server.c (own_buf): Make global.
8396 (handle_v_requests): Make global.
8397 * server.h (own_buf): New declaration.
8398 (handle_v_requests): New prototype.
8400 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8403 * linux-s390-low.c (add_insns): New function.
8404 (s390_emit_prologue): New function.
8405 (s390_emit_epilogue): New function.
8406 (s390_emit_add): New function.
8407 (s390_emit_sub): New function.
8408 (s390_emit_mul): New function.
8409 (s390_emit_lsh): New function.
8410 (s390_emit_rsh_signed): New function.
8411 (s390_emit_rsh_unsigned): New function.
8412 (s390_emit_ext): New function.
8413 (s390_emit_log_not): New function.
8414 (s390_emit_bit_and): New function.
8415 (s390_emit_bit_or): New function.
8416 (s390_emit_bit_xor): New function.
8417 (s390_emit_bit_not): New function.
8418 (s390_emit_equal): New function.
8419 (s390_emit_less_signed): New function.
8420 (s390_emit_less_unsigned): New function.
8421 (s390_emit_ref): New function.
8422 (s390_emit_if_goto): New function.
8423 (s390_emit_goto): New function.
8424 (s390_write_goto_address): New function.
8425 (s390_emit_litpool): New function.
8426 (s390_emit_const): New function.
8427 (s390_emit_call): New function.
8428 (s390_emit_reg): New function.
8429 (s390_emit_pop): New function.
8430 (s390_emit_stack_flush): New function.
8431 (s390_emit_zero_ext): New function.
8432 (s390_emit_swap): New function.
8433 (s390_emit_stack_adjust): New function.
8434 (s390_emit_set_r2): New function.
8435 (s390_emit_int_call_1): New function.
8436 (s390_emit_void_call_2): New function.
8437 (s390_emit_eq_goto): New function.
8438 (s390_emit_ne_goto): New function.
8439 (s390_emit_lt_goto): New function.
8440 (s390_emit_le_goto): New function.
8441 (s390_emit_gt_goto): New function.
8442 (s390_emit_ge_goto): New function.
8443 (s390x_emit_prologue): New function.
8444 (s390x_emit_epilogue): New function.
8445 (s390x_emit_add): New function.
8446 (s390x_emit_sub): New function.
8447 (s390x_emit_mul): New function.
8448 (s390x_emit_lsh): New function.
8449 (s390x_emit_rsh_signed): New function.
8450 (s390x_emit_rsh_unsigned): New function.
8451 (s390x_emit_ext): New function.
8452 (s390x_emit_log_not): New function.
8453 (s390x_emit_bit_and): New function.
8454 (s390x_emit_bit_or): New function.
8455 (s390x_emit_bit_xor): New function.
8456 (s390x_emit_bit_not): New function.
8457 (s390x_emit_equal): New function.
8458 (s390x_emit_less_signed): New function.
8459 (s390x_emit_less_unsigned): New function.
8460 (s390x_emit_ref): New function.
8461 (s390x_emit_if_goto): New function.
8462 (s390x_emit_const): New function.
8463 (s390x_emit_call): New function.
8464 (s390x_emit_reg): New function.
8465 (s390x_emit_pop): New function.
8466 (s390x_emit_stack_flush): New function.
8467 (s390x_emit_zero_ext): New function.
8468 (s390x_emit_swap): New function.
8469 (s390x_emit_stack_adjust): New function.
8470 (s390x_emit_int_call_1): New function.
8471 (s390x_emit_void_call_2): New function.
8472 (s390x_emit_eq_goto): New function.
8473 (s390x_emit_ne_goto): New function.
8474 (s390x_emit_lt_goto): New function.
8475 (s390x_emit_le_goto): New function.
8476 (s390x_emit_gt_goto): New function.
8477 (s390x_emit_ge_goto): New function.
8478 (s390_emit_ops): New function.
8479 (struct linux_target_ops): Fill in emit_ops hook.
8481 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8484 * Makefile.in: Add s390 IPA files.
8485 * configure.srv: Build IPA for s390.
8486 * linux-s390-ipa.c: New file.
8487 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8488 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8489 (tdesc_s390_linux32): Likewise.
8490 (init_registers_s390_linux32v1): Likewise.
8491 (tdesc_s390_linux32v1): Likewise.
8492 (init_registers_s390_linux32v2): Likewise.
8493 (tdesc_s390_linux32v2): Likewise.
8494 (init_registers_s390_linux64): Likewise.
8495 (tdesc_s390_linux64): Likewise.
8496 (init_registers_s390_linux64v1): Likewise.
8497 (tdesc_s390_linux64v1): Likewise.
8498 (init_registers_s390_linux64v2): Likewise.
8499 (tdesc_s390_linux64v2): Likewise.
8500 (init_registers_s390_te_linux64): Likewise.
8501 (tdesc_s390_te_linux64): Likewise.
8502 (init_registers_s390_vx_linux64): Likewise.
8503 (tdesc_s390_vx_linux64): Likewise.
8504 (init_registers_s390_tevx_linux64): Likewise.
8505 (tdesc_s390_tevx_linux64): Likewise.
8506 (init_registers_s390x_linux64): Likewise.
8507 (tdesc_s390x_linux64): Likewise.
8508 (init_registers_s390x_linux64v1): Likewise.
8509 (tdesc_s390x_linux64v1): Likewise.
8510 (init_registers_s390x_linux64v2): Likewise.
8511 (tdesc_s390x_linux64v2): Likewise.
8512 (init_registers_s390x_te_linux64): Likewise.
8513 (tdesc_s390x_te_linux64): Likewise.
8514 (init_registers_s390x_vx_linux64): Likewise.
8515 (tdesc_s390x_vx_linux64): Likewise.
8516 (init_registers_s390x_tevx_linux64): Likewise.
8517 (tdesc_s390x_tevx_linux64): Likewise.
8518 (have_hwcap_s390_vx): New static variable.
8519 (s390_arch_setup): Fill have_hwcap_s390_vx.
8520 (s390_get_thread_area): New function.
8521 (s390_ft_entry_gpr_esa): New const.
8522 (s390_ft_entry_gpr_zarch): New const.
8523 (s390_ft_entry_misc): New const.
8524 (s390_ft_entry_fr): New const.
8525 (s390_ft_entry_vr): New const.
8526 (s390_ft_main_31): New const.
8527 (s390_ft_main_64): New const.
8528 (s390_ft_exit_fr): New const.
8529 (s390_ft_exit_vr): New const.
8530 (s390_ft_exit_misc): New const.
8531 (s390_ft_exit_gpr_esa): New const.
8532 (s390_ft_exit_gpr_zarch): New const.
8533 (append_insns): New function.
8534 (s390_relocate_instruction): New function.
8535 (s390_install_fast_tracepoint_jump_pad): New function.
8536 (s390_get_min_fast_tracepoint_insn_len): New function.
8537 (s390_get_ipa_tdesc_idx): New function.
8538 (struct linux_target_ops): Wire in the above functions.
8539 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8540 * linux-s390-tdesc.h: New file.
8542 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8544 * linux-s390-low.c (s390_supports_tracepoints): New function.
8545 (struct linux_target_ops): Fill supports_tracepoints hook.
8547 2016-03-18 Yao Qi <yao.qi@linaro.org>
8549 * linux-low.c (lwp_signal_can_be_delivered): New function.
8550 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8552 2016-03-18 Yao Qi <yao.qi@linaro.org>
8554 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8555 0 if signal is enqueued. Remove 'signal' from one debugging
8556 message. Move one debugging message to some lines below.
8557 Remove code setting 'signal' to 0.
8559 2016-03-18 Yao Qi <yao.qi@linaro.org>
8561 * linux-low.c (linux_low_filter_event): Remove redundant
8562 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8564 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8566 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8567 (struct linux_target_ops): Wire in the above.
8569 2016-03-03 Yao Qi <yao.qi@linaro.org>
8571 * linux-low.c: Update comments to start_step_over.
8573 2016-03-03 Yao Qi <yao.qi@linaro.org>
8576 * linux-low.c (handle_extended_wait): Set child suspended
8577 if event_lwp->bp_reinsert isn't zero.
8579 2016-03-02 Yao Qi <yao.qi@linaro.org>
8581 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8582 enqueue_pending_signal.
8584 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8586 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8589 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8591 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8592 (s390_regmap_3264) [!__s390x__]: New global.
8593 (s390_collect_ptrace_register): Skip map entries containing -1.
8594 (s390_supply_ptrace_register): Ditto.
8595 (s390_fill_gprs_high): New function.
8596 (s390_store_gprs_high): New function.
8597 (s390_regsets): Add NT_S390_HIGH_GPRS.
8598 (s390_get_hwcap): Enable on 31-bit.
8599 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8600 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8601 Detect NT_S390_HIGH_GPRS.
8602 (s390_usrregs_info_3264): Enable on 31-bit.
8603 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8604 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8606 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8609 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8610 * configure.srv: Ditto.
8611 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8612 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8613 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8614 (init_registers_amd64_linux): Remove prototype.
8615 (tdesc_amd64_linux): Remove declaration.
8616 (get_ipa_tdesc): New function.
8617 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8618 initialize remaining tdescs.
8619 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8620 (init_registers_i386_linux): Remove prototype.
8621 (tdesc_i386_linux): Remove declaration.
8622 (get_ipa_tdesc): New function.
8623 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8624 initialize remaining tdescs.
8625 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8626 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8627 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8628 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8629 (x86_get_ipa_tdesc_idx): New function.
8630 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8631 * linux-x86-tdesc.h: New file.
8632 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8633 (target_get_ipa_tdesc_idx): New macro.
8634 * tracepoint.c (ipa_tdesc_idx): New macro.
8635 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8636 (symbol_list): Add ipa_tdesc_idx.
8637 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8638 (ipa_tdesc): Remove.
8639 (ipa_tdesc_idx): New variable.
8640 (get_context_regcache): Use get_ipa_tdesc.
8641 (gdb_collect): Ditto.
8643 * tracepoint.h (get_ipa_tdesc): New prototype.
8644 (ipa_tdesc): Remove.
8646 2016-02-24 Pedro Alves <palves@redhat.com>
8648 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8649 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8650 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8651 Factor out common code between the USE_SIGTRAP_SIGINFO and
8652 !USE_SIGTRAP_SIGINFO blocks.
8653 (linux_low_filter_event): Call save_stop_reason instead of
8654 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8656 (linux_wait_1): Update comments.
8658 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8660 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8661 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8662 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8663 ppc_insert_point, ppc_remove_point.
8665 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8667 * linux-s390-low.c (s390_supports_z_point_type): New function.
8668 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8670 2016-02-16 Yao Qi <yao.qi@linaro.org>
8672 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8673 PC. Get pc from regcache_read_pc.
8675 2016-02-12 Yao Qi <yao.qi@linaro.org>
8677 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8678 or linux_get_pc_32bit.
8679 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8681 2016-02-12 Yao Qi <yao.qi@linaro.org>
8683 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8684 arm_linux_get_next_pcs_fixup.
8686 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8688 * tracepoint.c (x_tracepoint_action_download): Change
8689 write_inferior_data_ptr to write_inferior_data_pointer.
8690 (cmd_qtstart): Likewise.
8691 (write_inferior_data_ptr): Remove.
8692 (download_agent_expr): Change write_inferior_data_ptr to
8693 write_inferior_data_pointer.
8694 (download_tracepoint_1): Likewise.
8695 (download_tracepoint): Likewise.
8696 (download_trace_state_variables): Likewise.
8698 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8699 Marcin Kościelnicki <koriakin@0x04.net>
8701 * tracepoint.c (struct tracepoint_action_ops): Remove.
8702 (struct tracepoint_action): Remove ops.
8703 (m_tracepoint_action_download, r_tracepoint_action_download)
8704 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8705 size and offset accordingly.
8706 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8707 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8708 (tracepoint_action_send, tracepoint_action_download): New functions.
8709 Helpers for trace action handlers.
8710 (add_tracepoint_action): Remove setup actions ops.
8711 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8713 2016-02-10 Yao Qi <yao.qi@linaro.org>
8715 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8717 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8719 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8721 * configure: Regenerate.
8723 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8725 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8726 void * to gdb_byte *.
8727 * linux-low.c (siginfo_fixup): Likewise.
8728 (linux_xfer_siginfo): Likewise.
8729 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8731 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8733 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8735 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8737 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8739 * linux-x86-low.c [__x86_64__]: Include
8740 "nat/amd64-linux-siginfo.h".
8741 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8742 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8743 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8744 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8745 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8746 (cpt_si_fd, si_timerid, si_overrun): Move from
8747 nat/amd64-linux-siginfo.c.
8748 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8750 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8752 * server.c (skip_to_semicolon): Remove.
8753 (process_point_options): Use strchrnul instead of
8756 2016-01-26 Yao Qi <yao.qi@linaro.org>
8758 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8759 * linux-low.c (install_software_single_step_breakpoints): Don't
8760 call regcache_read_pc.
8761 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8764 2016-01-26 Yao Qi <yao.qi@linaro.org>
8766 * linux-low.c (install_software_single_step_breakpoints): Call
8767 regcache_read_pc instead of get_pc.
8769 2016-01-26 Yao Qi <yao.qi@linaro.org>
8771 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8772 (unblock_async_io): Rename to ...
8773 (block_unblock_async_io): ... it. New function.
8774 (enable_async_io): Don't install SIGIO handler. Unblock it
8776 (disable_async_io): Don't ignore SIGIO. Block it instead.
8777 (initialize_async_io): Install SIGIO handler. Don't call
8780 2016-01-26 Yao Qi <yao.qi@linaro.org>
8782 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8783 first character is '\003', call *the_target->request_interrupt.
8785 2016-01-25 Yao Qi <yao.qi@linaro.org>
8787 * remote-utils.c (new_thread_notify): Remove.
8788 (dead_thread_notify): Likewise.
8789 * remote-utils.h (new_thread_notify): Remove declaration.
8790 (dead_thread_notify): Likewise.
8792 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8794 * gdb.trace/pending.exp: Fix expected message on continue.
8796 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8798 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8799 it works properly on big-endian machines where sizeof (CORE_ADDR)
8802 2016-01-21 Pedro Alves <palves@redhat.com>
8804 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8805 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8806 * configure: Regenerate.
8808 2016-01-21 Yao Qi <yao.qi@linaro.org>
8810 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8811 is_thumb and set it according to CPSR saved on the stack.
8812 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8813 arm_sigreturn_next_pc.
8815 2016-01-18 Yao Qi <yao.qi@linaro.org>
8817 * linux-low.c (linux_set_pc_64bit): New function.
8818 (linux_get_pc_64bit): New function.
8819 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8821 * linux-sparc-low.c (debug_threads): Remove declaration.
8822 (sparc_get_pc): Remove.
8823 (the_low_target): Use linux_get_pc_64bit instead of
8825 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8826 (the_low_target): Use linux_get_pc_64bit and
8829 2016-01-18 Yao Qi <yao.qi@linaro.org>
8831 * linux-arm-low.c (debug_threads): Remove declaration.
8832 (arm_get_pc, arm_set_pc): Remove.
8833 (the_low_target): Use linux_get_pc_32bit and
8835 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8836 (the_low_target): Use linux_get_pc_32bit and
8838 * linux-cris-low.c (debug_threads): Remove declaration.
8839 (cris_get_pc, cris_set_pc,): Remove.
8840 (the_low_target): Use linux_get_pc_32bit and
8842 * linux-crisv32-low.c (debug_threads): Remove declaration.
8843 (cris_get_pc, cris_set_pc): Remove.
8844 (the_low_target): Use linux_get_pc_32bit and
8846 * linux-low.c: Include inttypes.h.
8847 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8848 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8849 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8850 (the_low_target): Use linux_get_pc_32bit and
8852 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8853 (the_low_target): Use linux_get_pc_32bit and
8855 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8856 (the_low_target): Use linux_get_pc_32bit and
8858 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8859 (the_low_target): Use linux_get_pc_32bit and
8861 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8862 (the_low_target): Use linux_get_pc_32bit and
8865 2016-01-18 Gary Benson <gbenson@redhat.com>
8867 * configure.ac (AC_FUNC_FORK): New check.
8868 * config.in: Regenerate.
8869 * configure: Likewise.
8871 2016-01-14 Yao Qi <yao.qi@linaro.org>
8873 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8874 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8875 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8876 arm_get_next_pcs_ctor.
8878 2016-01-12 Josh Stone <jistone@redhat.com>
8879 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8881 * inferiors.h: Include "gdb_vecs.h".
8882 (struct process_info): Add syscalls_to_catch.
8883 * inferiors.c (remove_process): Free syscalls_to_catch.
8884 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8885 syscall_return stops.
8886 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8887 * server.c (handle_general_set): Handle QCatchSyscalls.
8888 (handle_query): Report support for QCatchSyscalls.
8889 * target.h (struct target_ops): Add supports_catch_syscall.
8890 (target_supports_catch_syscall): New macro.
8891 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8892 (struct lwp_info): Add syscall_state.
8893 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8894 Maintain syscall_state and syscalls_to_catch across exec.
8895 (get_syscall_trapinfo): New function, proxy to the_low_target.
8896 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8897 (linux_low_filter_event): Toggle syscall_state entry/return for
8898 syscall traps, and set it ignored for all others.
8899 (gdb_catching_syscalls_p): New function.
8900 (gdb_catch_this_syscall_p): New function.
8901 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8902 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8903 (linux_supports_catch_syscall): New function.
8904 (linux_target_ops): Install it.
8905 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8906 (the_low_target): Install it.
8908 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8910 * acinclude.m4: Include new ../warning.m4 file.
8911 * configure: Regenerated.
8912 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8914 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8916 * ax.c (is_goto_target): Mark static.
8917 * linux-low.c (register_addr): Likewise.
8918 (linux_fetch_registers, linux_store_registers): Likewise.
8919 * mem-break.c (any_persistent_commands): Fix old prototype.
8920 (add_commands_to_breakpoint): Mark static.
8921 * regcache.c (find_register_by_name): Delete unused func.
8922 * remote-utils.c (hex_or_minus_one): Mark static.
8923 * server.c (monitor_show_help): Mark static.
8924 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8925 handle_v_requests): Likewise.
8927 2016-01-12 Pedro Alves <palves@redhat.com>
8929 Remove use of the registered trademark symbol throughout.
8931 2016-01-08 Yao Qi <yao.qi@linaro.org>
8933 * remote-utils.c (getpkt): If c is '\003', call target hook
8936 2016-01-06 Yao Qi <yao.qi@linaro.org>
8938 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8939 linux-aarch32-low.c.
8940 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8941 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8942 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8943 (thumb2_breakpoint): Declare.
8944 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8945 linux-aarch32-low.h.
8946 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8947 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8948 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8950 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8952 * gdbreplay.c (gdbreplay_version): Change copyright year in
8954 * server.c (gdbserver_version): Likewise.
8956 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8958 * server.c (crc32_table): Delete.
8959 (crc32): Use libiberty's xcrc32 function.
8961 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8963 * lynx-low.c (lynx_delete_thread_callback): New function.
8964 (lynx_mourn): Properly delete our process and all of its
8965 threads. Remove call to clear_inferiors.
8967 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8969 * target.c (thread_search_callback): Add check that
8970 the thread_stopped target callback is not NULL before
8973 2015-12-21 Yao Qi <yao.qi@linaro.org>
8975 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8978 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8980 * server.c (handle_query): Call target_supports_software_single_step.
8982 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8984 * linux-low.c (single_step): New function.
8985 (linux_resume_one_lwp_throw): Call single_step.
8986 (start_step_over): Likewise.
8988 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8990 * Makefile.in (SFILES): Append arch/arm-linux.c,
8991 arch/arm-get-next-pcs.c.
8992 (arm-linux.o): New rule.
8993 (arm-get-next-pcs.o): New rule.
8994 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8996 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8997 to linux-aarch32-low.c.
8998 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8999 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9000 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9001 (thumb2_breakpoint_len): Likewise.
9002 (arm_is_thumb_mode): Make non-static.
9003 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9004 from linux-aarch32-low.c.
9005 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9006 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9007 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9008 (thumb2_breakpoint_len): Likewise.
9009 (arm_is_thumb_mode): New declaration.
9010 * linux-arm-low.c: Include arch/arm-linux.h
9011 aarch/arm-get-next-pcs.h, sys/syscall.h.
9012 (get_next_pcs_ops): New struct.
9013 (get_next_pcs_addr_bits_remove): New function.
9014 (get_next_pcs_is_thumb): New function.
9015 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9016 (arm_sigreturn_next_pc): Likewise.
9017 (get_next_pcs_syscall_next_pc): Likewise.
9018 (arm_gdbserver_get_next_pcs): Likewise.
9019 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9021 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9022 * server.h: Include gdb_vecs.h.
9024 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9026 * Makefile.in (SFILES): Append common/common-regcache.c.
9027 (OBS): Append common-regcache.o.
9028 (common-regcache.o): New rule.
9029 * regcache.c (init_register_cache): Initialize cache to
9031 (regcache_raw_read_unsigned): New function.
9032 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9033 register_status enum.
9035 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9037 * linux-aarch64-low.c (the_low_targets): Rename
9038 breakpoint_reinsert_addr to get_next_pcs.
9039 * linux-arm-low.c (the_low_targets): Likewise.
9040 * linux-bfin-low.c (the_low_targets): Likewise.
9041 * linux-cris-low.c (the_low_targets): Likewise.
9042 * linux-crisv32-low.c (the_low_targets): Likewise.
9043 * linux-low.c (can_software_single_step): Likewise.
9044 (install_software_single_step_breakpoints): New function.
9045 (start_step_over): Use install_software_single_step_breakpoints.
9046 * linux-low.h: New CORE_ADDR vector.
9047 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9049 * linux-mips-low.c (the_low_targets): Likewise.
9050 * linux-nios2-low.c (the_low_targets): Likewise.
9051 * linux-sparc-low.c (the_low_targets): Likewise.
9053 2015-12-17 Pedro Alves <palves@redhat.com>
9055 * linux-low.c (linux_kill_one_lwp): Remove references to
9057 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9059 (linux_init_signals): Delete.
9060 (initialize_low): Adjust.
9061 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9063 2015-12-16 Pedro Alves <palves@redhat.com>
9065 * configure.ac (compiler warning flags): When testing a
9066 -Wno-foo option, check whether -Wfoo works instead.
9067 * configure: Regenerate.
9069 2015-12-11 Don Breazeal <donb@codesourcery.com>
9071 * server.c (process_serial_event): Don't exit from gdbserver
9072 in remote mode if there are still active inferiors.
9074 2015-12-11 Yao Qi <yao.qi@linaro.org>
9076 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9077 arm_breakpoint_at if the process is 32-bit.
9079 2015-12-11 Yao Qi <yao.qi@linaro.org>
9081 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9084 2015-12-07 Yao Qi <yao.qi@linaro.org>
9086 * configure.srv: Append arm.o to srv_tgtobj for
9087 aarch64*-*-linux* target.
9088 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9089 from linux-arm-low.c.
9090 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9091 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9092 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9093 (thumb2_breakpoint_len): Likewise.
9094 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9095 (arm_breakpoint_kinds): Likewise.
9096 (arm_breakpoint_kind_from_pc): Likewise.
9097 (arm_sw_breakpoint_from_kind): Likewise.
9098 (arm_breakpoint_kind_from_current_state): Likewise.
9099 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9100 (arm_sw_breakpoint_from_kind): Declare.
9101 (arm_breakpoint_kind_from_current_state): Declare.
9102 (arm_breakpoint_at): Declare.
9103 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9104 arm_sw_breakpoint_from_kind if process is 32-bit.
9105 (aarch64_breakpoint_kind_from_pc): New function.
9106 (aarch64_breakpoint_kind_from_current_state): New function.
9107 (the_low_target): Initialize fields breakpoint_kind_from_pc
9108 and breakpoint_kind_from_current_state.
9109 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9110 linux-aarch32-low.c.
9111 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9112 (arm_breakpoint, arm_breakpoint_len): Likewise.
9113 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9114 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9115 (arm_is_thumb_mode): Likewise.
9116 (arm_breakpoint_at): Likewise.
9117 (arm_breakpoint_kind_from_pc): Likewise.
9118 (arm_sw_breakpoint_from_kind): Likewise.
9119 (arm_breakpoint_kind_from_current_state): Likewise.
9122 2015-08-04 Yao Qi <yao.qi@linaro.org>
9124 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9125 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9126 * server.c (extended_protocol): Remove "static".
9127 * server.h (extended_protocol): Declare it.
9129 2015-12-04 Josh Stone <jistone@redhat.com>
9131 * target.h (struct target_ops) <arch_setup>: Rename to ...
9132 (struct target_ops) <post_create_inferior>: ... this.
9133 (target_arch_setup): Rename to ...
9134 (target_post_create_inferior): ... this, calling post_create_inferior.
9135 * server.c (start_inferior): Update target_arch_setup calls to
9136 target_post_create_inferior.
9137 * linux-low.c (linux_low_ptrace_options): Forward declare.
9138 (linux_arch_setup): Update its comment for general use.
9139 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9140 (struct linux_target_ops): Use linux_post_create_inferior.
9141 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9142 to post_create_inferior.
9143 * nto-low.c (struct nto_target_ops): Likewise.
9144 * spu-low.c (struct spu_target_ops): Likewise.
9145 * win32-low.c (struct win32_target_ops): Likewise.
9147 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9149 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9151 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9153 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9154 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9155 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9156 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9157 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9158 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9159 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9160 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9161 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9162 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9163 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9164 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9166 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9168 * linux-low.c (linux_look_up_symbols): Don't call
9169 linux_supports_traceclone.
9170 * linux-low.h (thread_db_init): Remove use_events argument.
9171 * thread-db.c (thread_db_use_event): Remove global variable.
9172 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9173 (struct thread_db) <td_create_bp>: Remove field.
9174 (thread_db_create_event): Remove function.
9175 (thread_db_enable_reporting): Likewise.
9176 (find_one_thread): Don't check for thread_db_use_events.
9177 (attach_thread): Likewise.
9178 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9179 (try_thread_db_load_1): Don't check for thread_db_use_events.
9180 (thread_db_init): Remove use_events argument and thread events
9182 (remove_thread_event_breakpoints): Remove function.
9183 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9185 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9187 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9189 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9190 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9191 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9192 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9193 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9195 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9197 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9198 * linux-low.c (can_hardware_single_step): Use
9199 supports_hardware_single_step.
9200 (can_software_single_step): New function.
9201 (start_step_over): Call can_software_single_step.
9202 (linux_supports_hardware_single_step): New function.
9203 (struct target_ops) <supports_software_single_step>: Initialize.
9204 * linux-low.h (struct linux_target_ops)
9205 <supports_hardware_single_step>: Initialize.
9206 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9207 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9208 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9209 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9210 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9211 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9212 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9213 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9214 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9215 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9217 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9218 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9220 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9221 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9222 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9224 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9225 * target.h (struct target_ops): <supports_software_single_step>:
9227 (target_supports_software_single_step): New macro.
9229 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9231 * linux-low.c (linux_wait_1): Fix pc advance condition.
9232 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9233 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9235 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9237 * linux-arm-low.c (arm_is_thumb_mode): New function.
9238 (arm_breakpoint_at): Use arm_is_thumb_mode.
9239 (arm_breakpoint_kind_from_current_state): New function.
9240 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9242 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9243 (linux_breakpoint_kind_from_current_state): New function.
9244 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9245 * linux-low.h (struct linux_target_ops)
9246 <breakpoint_kind_from_current_state>: New field.
9247 * target.h (struct target_ops): Likewise.
9248 (target_breakpoint_kind_from_current_state): New macro.
9250 2015-11-30 Pedro Alves <palves@redhat.com>
9252 * linux-low.c (linux_resume): Wake up the event loop before
9255 2015-11-30 Pedro Alves <palves@redhat.com>
9257 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9259 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9261 * target.c (struct thread_search): New structure.
9262 (thread_search_callback): New function.
9263 (prev_general_thread): New global.
9264 (prepare_to_access_memory, done_accessing_memory): New functions.
9265 * target.h (prepare_to_access_memory, done_accessing_memory):
9266 Replace macros with function declarations.
9268 2015-11-30 Pedro Alves <palves@redhat.com>
9271 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9272 report TARGET_WAITKIND_NO_RESUMED.
9273 * remote-utils.c (prepare_resume_reply): Handle
9274 TARGET_WAITKIND_NO_RESUMED.
9275 * server.c (report_no_resumed): New global.
9276 (handle_query) <qSupported>: Handle "no-resumed+". Report
9277 "no-resumed+" support.
9278 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9279 return error if the client doesn't support no-resumed events.
9280 (push_stop_notification): New function.
9281 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9282 events if the client supports them.
9284 2015-11-30 Pedro Alves <palves@redhat.com>
9286 * linux-low.c (thread_still_has_status_pending_p): Don't check
9288 (lwp_resumed): New function.
9289 (status_pending_p_callback): Return early if the LWP is not
9290 supposed to be resumed.
9292 2015-11-30 Pedro Alves <palves@redhat.com>
9294 * linux-low.c (handle_extended_wait): Assert that the LWP's
9295 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9296 thread create events, leave the new child's status pending.
9297 (linux_low_filter_event): If GDB wants to hear about thread exit
9298 events, leave the LWP marked dead and don't delete it.
9299 (linux_wait_for_event_filtered): Don't check for thread exit.
9300 (filter_exit_event): New function.
9301 (linux_wait_1): Use it, when returning an exit event.
9302 (linux_resume_one_lwp_throw): Assert that the LWP's
9303 waitstatus is TARGET_WAITKIND_IGNORE.
9304 * remote-utils.c (prepare_resume_reply): Handle
9305 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9306 * server.c (report_thread_events): New global.
9307 (handle_general_set): Handle QThreadEvents.
9308 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9309 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9310 TARGET_WAITKIND_THREAD_EXITED.
9311 * server.h (report_thread_events): Declare.
9313 2015-11-30 Pedro Alves <palves@redhat.com>
9315 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9316 the thread's last_resume_kind was resume_stop.
9318 2015-11-30 Pedro Alves <palves@redhat.com>
9320 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9323 2015-11-30 Pedro Alves <palves@redhat.com>
9325 * server.c (handle_v_requests): Handle vCtrlC.
9327 2015-11-30 Pedro Alves <palves@redhat.com>
9329 * gdbthread.h (find_any_thread_of_pid): Declare.
9330 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9332 * server.c (handle_query): If current_thread is NULL, look for
9333 another thread of the selected process.
9335 2015-11-26 Daniel Colascione <dancol@dancol.org>
9336 Simon Marchi <simon.marchi@ericsson.com>
9338 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9339 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9341 * target.h (struct target_ops) <thread_name>: New field.
9342 (target_thread_name): New macro.
9344 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9346 * regcache.h (regcache_invalidate_pid): Add declaration.
9347 * regcache.c (regcache_invalidate_pid): New function, extracted
9348 from regcache_invalidate.
9349 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9350 Add trivial documentation comment.
9351 * lynx-low.c: Use regcache_invalidate_pid instead of
9352 regcache_invalidate.
9354 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9356 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9357 and Elf64_auxv_t if the target is Android.
9359 2015-11-22 Doug Evans <xdje42@gmail.com>
9361 * target.h: #include <sys/types.h>.
9363 2015-11-19 Pedro Alves <palves@redhat.com>
9365 * linux-low.c (linux_process_qsupported): Change prototype.
9367 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9369 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9370 and adjust to loop over all features.
9371 * server.c (handle_query) <qSupported>: Adjust to call
9372 target_process_qsupported once, passing it a vector of unprocessed
9374 * target.h (struct target_ops) <process_qsupported>: Change
9376 (target_process_qsupported): Adjust.
9378 2015-11-19 Pedro Alves <palves@redhat.com>
9380 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9382 * configure: Regenerate.
9384 2015-11-19 Pedro Alves <palves@redhat.com>
9386 * configure: Regenerate.
9388 2015-11-19 Yao Qi <yao.qi@linaro.org>
9390 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9393 2015-11-19 Yao Qi <yao.qi@linaro.org>
9395 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9396 (struct aarch64_operand): Move enum out.
9398 2015-11-19 Yao Qi <yao.qi@linaro.org>
9400 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9401 struct user_fpsimd_state *.
9402 (aarch64_store_fpregset): Likewise.
9404 2015-11-19 Yao Qi <yao.qi@linaro.org>
9406 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9407 struct user_pt_regs *.
9408 (aarch64_store_gregset): Likewise.
9410 2015-11-18 Pedro Alves <palves@redhat.com>
9412 * Makefile.in (all_object_files): Add $IPA_OBJS.
9414 2015-11-17 Pedro Alves <palves@redhat.com>
9416 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9417 GDB_SIGNAL_0 and gdb_signal_to_string.
9419 2015-11-17 Pedro Alves <palves@redhat.com>
9421 * win32-low.c (handle_output_debug_string): Remove parameter.
9422 (win32_kill): Remove our_status local and adjust call to
9423 handle_output_debug_string.
9424 (get_child_debug_event): Adjust call to
9425 handle_output_debug_string.
9427 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9429 * linux-mips-low.c (mips_fill_gregset): Add cast.
9430 (mips_store_gregset): Likewise.
9431 (mips_fill_fpregset): Likewise.
9432 (mips_store_fpregset): Likewise.
9434 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9436 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9439 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9441 * linux-mips-low.c (mips_linux_new_thread): Change type of
9442 watch_type to enum target_hw_bp_type.
9444 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9446 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9447 Change return type to arm_hwbp_type.
9449 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9451 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9452 (arm_store_gregset): Likewise.
9453 * linux-arm-low.c (arm_get_hwcap): Likewise.
9454 (arm_read_description): Likewise.
9456 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9458 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9460 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9462 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9463 (ppc_fill_vsxregset): Likewise.
9464 (ppc_store_vsxregset): Likewise.
9465 (ppc_fill_vrregset): Likewise.
9466 (ppc_store_vrregset): Likewise.
9467 (ppc_fill_evrregset): Likewise.
9468 (ppc_store_evrregset): Likewise.
9470 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9472 * linux-ppc-low.c (ppc_usrregs_info): Remove
9473 forward-declaration.
9474 (ppc_arch_setup): Move lower in file.
9476 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9478 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9479 (ps_pdwrite): Likewise.
9481 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9483 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9484 to after assert checks.
9486 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9488 * proc-service.c (ps_pdread): Add/adjust casts.
9489 (ps_pdwrite): Add/adjust casts.
9491 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9493 * server.c (handle_search_memory_1): Cast return value of
9496 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9498 * server.c (write_qxfer_response): Change type of data to
9501 2015-10-29 Pedro Alves <palves@redhat.com>
9503 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9505 2015-10-29 Pedro Alves <palves@redhat.com>
9507 * tracepoint.c (clear_installed_tracepoints): Add casts.
9509 2015-10-29 Pedro Alves <palves@redhat.com>
9511 * server.c (handle_v_cont, process_serial_event): Add enum
9512 gdb_signal casts to signal parsing code.
9514 2015-10-29 Pedro Alves <palves@redhat.com>
9516 * linux-low.h (NULL_REGSET): Define.
9517 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9518 * linux-arm-low.c (arm_regsets): Likewise.
9519 * linux-crisv32-low.c (cris_regsets): Likewise.
9520 * linux-m68k-low.c (m68k_regsets): Likewise.
9521 * linux-mips-low.c (mips_regsets): Likewise.
9522 * linux-nios2-low.c (nios2_regsets): Likewise.
9523 * linux-ppc-low.c (ppc_regsets): Likewise.
9524 * linux-s390-low.c (s390_regsets): Likewise.
9525 * linux-sh-low.c (sh_regsets): Likewise.
9526 * linux-sparc-low.c (sparc_regsets): Likewise.
9527 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9528 * linux-tile-low.c (tile_regsets): Likewise.
9529 * linux-x86-low.c (x86_regsets): Likewise.
9530 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9532 2015-10-29 Pedro Alves <palves@redhat.com>
9534 * linux-low.h (NULL_REGSET): Define.
9535 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9536 * linux-arm-low.c (arm_regsets): Likewise.
9537 * linux-crisv32-low.c (cris_regsets): Likewise.
9538 * linux-m68k-low.c (m68k_regsets): Likewise.
9539 * linux-mips-low.c (mips_regsets): Likewise.
9540 * linux-nios2-low.c (nios2_regsets): Likewise.
9541 * linux-ppc-low.c (ppc_regsets): Likewise.
9542 * linux-s390-low.c (s390_regsets): Likewise.
9543 * linux-sh-low.c (sh_regsets): Likewise.
9544 * linux-sparc-low.c (sparc_regsets): Likewise.
9545 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9546 * linux-tile-low.c (tile_regsets): Likewise.
9547 * linux-x86-low.c (x86_regsets): Likewise.
9548 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9550 2015-10-26 Doug Evans <dje@google.com>
9552 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9554 2015-10-26 Doug Evans <dje@google.com>
9556 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9558 2015-10-26 Doug Evans <dje@google.com>
9560 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9562 (attach_thread, find_new_threads_callback): Ditto.
9564 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9566 * mem-break.h (set_breakpoint_data): Remove.
9568 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9570 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9571 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9572 (initialize_low): Remove set_breakpoint_data call.
9573 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9574 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9575 (initialize_low): Remove set_breakpoint_data call.
9576 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9577 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9578 (initialize_low): Remove set_breakpoint_data call.
9580 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9582 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9583 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9584 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9585 * target.h (target_breakpoint_kind_from_pc): New macro.
9587 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9589 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9590 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9591 the default breakpoint kind.
9593 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9595 * linux-arm-low.c (arm_supports_z_point_type): Add software
9598 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9600 * linux-arm-low.c: Refactor breakpoint definitions.
9601 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9602 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9604 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9606 * Makefile.in: Add arm.c/o.
9607 * configure.srv: Likewise.
9608 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9609 (arm_breakpoint_kind_from_pc): New function.
9610 (arm_sw_breakpoint_from_kind): Return proper kind.
9611 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9613 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9615 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9617 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9618 (struct raw_breakpoint) <size>: Remove.
9619 (struct raw_breakpoint) <kind>: Add.
9620 (bp_size): New function.
9621 (bp_opcode): Likewise.
9622 (find_raw_breakpoint_at): Adjust for kind.
9623 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9624 (remove_memory_breakpoint): Adjust for kind call bp_size.
9625 (set_raw_breakpoint_at): Adjust for kind.
9626 (set_breakpoint): Likewise.
9627 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9628 (delete_raw_breakpoint): Adjust for kind.
9629 (delete_breakpoint): Likewise.
9630 (find_gdb_breakpoint): Likewise.
9631 (set_gdb_breakpoint_1): Likewise.
9632 (set_gdb_breakpoint): Likewise.
9633 (delete_gdb_breakpoint_1): Likewise.
9634 (delete_gdb_breakpoint): Likewise.
9635 (uninsert_raw_breakpoint): Likewise.
9636 (reinsert_raw_breakpoint): Likewise.
9637 (set_breakpoint_data): Remove.
9638 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9639 (check_mem_read): Adjust for kind call bp_size.
9640 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9641 (clone_one_breakpoint): Adjust for kind.
9642 * mem-break.h (set_gdb_breakpoint): Likewise.
9643 (delete_gdb_breakpoint): Likewise.
9644 * server.c (process_serial_event): Likewise.
9646 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9648 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9649 (struct linux_target_ops) <breakpoint>: Remove.
9650 (struct linux_target_ops) <breakpoint_len>: Remove.
9651 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9652 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9653 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9654 (arm_sw_breakpoint_from_kind): New function.
9655 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9656 (struct linux_target_ops) <breakpoint>: Remove.
9657 (struct linux_target_ops) <breakpoint_len>: Remove.
9658 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9659 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9660 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9661 (struct linux_target_ops) <breakpoint>: Remove.
9662 (struct linux_target_ops) <breakpoint_len>: Remove.
9663 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9664 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9665 * linux-crisv32-low.c (cris_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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9671 and sw_breakpoint_from_kind to increment the pc.
9672 (linux_breakpoint_kind_from_pc): New function.
9673 (linux_sw_breakpoint_from_kind): New function.
9674 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9675 (initialize_low): Call breakpoint_kind_from_pc and
9676 sw_breakpoint_from_kind to replace breakpoint_data/len.
9677 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9679 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9680 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9681 (struct linux_target_ops) <breakpoint>: Remove.
9682 (struct linux_target_ops) <breakpoint_len>: Remove.
9683 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9684 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9685 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9686 (struct linux_target_ops) <breakpoint>: Remove.
9687 (struct linux_target_ops) <breakpoint_len>: Remove.
9688 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9689 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9690 * linux-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9726 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9727 (struct linux_target_ops) <breakpoint>: Remove.
9728 (struct linux_target_ops) <breakpoint_len>: Remove.
9729 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9730 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9731 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9732 (struct linux_target_ops) <breakpoint>: Remove.
9733 (struct linux_target_ops) <breakpoint_len>: Remove.
9734 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9735 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9739 * linux-cris-low.c (cris_get_pc): Remove void arg.
9741 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9743 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9746 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9748 * inferiors.c (thread_pid_matches_callback): New function.
9749 (find_thread_process): New function.
9750 (remove_thread): Reset current_thread.
9751 (remove_process): Assert threads have been removed first.
9753 2015-10-15 Yao Qi <yao.qi@linaro.org>
9755 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9757 (aarch64_remove_point): Likewise.
9758 * regcache.c (regcache_register_size): New function.
9760 2015-10-12 Yao Qi <yao.qi@linaro.org>
9762 * linux-aarch64-low.c: Update all callers as emit_load_store
9763 is renamed to aarch64_emit_load_store.
9765 2015-10-12 Yao Qi <yao.qi@linaro.org>
9767 * linux-aarch64-low.c: Update all callers of function renaming
9768 from emit_insn to aarch64_emit_insn.
9770 2015-10-12 Yao Qi <yao.qi@linaro.org>
9772 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9773 arch/aarch64-insn.h.
9774 (struct aarch64_memory_operand): Likewise.
9776 (emit_insn): Move to arch/aarch64-insn.c.
9777 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9778 (emit_load_store): Move to arch/aarch64-insn.c.
9779 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9780 (can_encode_int32): Remove.
9782 2015-10-12 Yao Qi <yao.qi@linaro.org>
9784 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9785 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9786 (aarch64_relocate_instruction): Likewise.
9787 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9788 (struct aarch64_insn_visitor): Likewise.
9790 2015-10-12 Yao Qi <yao.qi@linaro.org>
9792 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9793 (struct aarch64_insn_visitor): New.
9794 (struct aarch64_insn_relocation_data): New.
9795 (aarch64_ftrace_insn_reloc_b): New function.
9796 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9797 (aarch64_ftrace_insn_reloc_cb): Likewise.
9798 (aarch64_ftrace_insn_reloc_tb): Likewise.
9799 (aarch64_ftrace_insn_reloc_adr): Likewise.
9800 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9801 (aarch64_ftrace_insn_reloc_others): Likewise.
9803 (aarch64_relocate_instruction): Use visitor.
9805 2015-10-12 Yao Qi <yao.qi@linaro.org>
9807 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9808 int. Add argument buf.
9809 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9810 aarch64_relocate_instruction.
9812 2015-10-12 Yao Qi <yao.qi@linaro.org>
9814 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9815 argument insn. Remove local variable insn. Don't call
9817 (aarch64_install_fast_tracepoint_jump_pad): Call
9820 2015-09-30 Yao Qi <yao.qi@linaro.org>
9822 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9823 (emit_load_store_pair): Likewise.
9825 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9827 * dll.c (match_dll): Add cast(s).
9828 (unloaded_dll): Likewise.
9829 * linux-low.c (second_thread_of_pid_p): Likewise.
9830 (delete_lwp_callback): Likewise.
9831 (count_events_callback): Likewise.
9832 (select_event_lwp_callback): Likewise.
9833 (linux_set_resume_request): Likewise.
9834 * server.c (accumulate_file_name_length): Likewise.
9835 (emit_dll_description): Likewise.
9836 (handle_qxfer_threads_worker): Likewise.
9837 (visit_actioned_threads): Likewise.
9838 * thread-db.c (any_thread_of): Likewise.
9839 * tracepoint.c (same_process_p): Likewise.
9840 (match_blocktype): Likewise.
9841 (build_traceframe_info_xml): Likewise.
9843 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9845 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9847 (gdb_unparse_agent_expr): Likewise.
9848 * hostio.c (require_data): Likewise.
9849 (handle_pread): Likewise.
9850 * linux-low.c (disable_regset): Likewise.
9851 (fetch_register): Likewise.
9852 (store_register): Likewise.
9853 (get_dynamic): Likewise.
9854 (linux_qxfer_libraries_svr4): Likewise.
9855 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9856 (set_fast_tracepoint_jump): Likewise.
9857 (uninsert_fast_tracepoint_jumps_at): Likewise.
9858 (reinsert_fast_tracepoint_jumps_at): Likewise.
9859 (validate_inserted_breakpoint): Likewise.
9860 (clone_agent_expr): Likewise.
9861 * regcache.c (init_register_cache): Likewise.
9862 * remote-utils.c (putpkt_binary_1): Likewise.
9863 (decode_M_packet): Likewise.
9864 (decode_X_packet): Likewise.
9865 (look_up_one_symbol): Likewise.
9866 (relocate_instruction): Likewise.
9867 (monitor_output): Likewise.
9868 * server.c (handle_search_memory): Likewise.
9869 (handle_qxfer_exec_file): Likewise.
9870 (handle_qxfer_libraries): Likewise.
9871 (handle_qxfer): Likewise.
9872 (handle_query): Likewise.
9873 (handle_v_cont): Likewise.
9874 (handle_v_run): Likewise.
9875 (captured_main): Likewise.
9876 * target.c (write_inferior_memory): Likewise.
9877 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9878 * tracepoint.c (init_trace_buffer): Likewise.
9879 (add_tracepoint_action): Likewise.
9880 (add_traceframe): Likewise.
9881 (add_traceframe_block): Likewise.
9882 (cmd_qtdpsrc): Likewise.
9883 (cmd_qtdv): Likewise.
9884 (cmd_qtstatus): Likewise.
9885 (response_source): Likewise.
9886 (response_tsv): Likewise.
9887 (cmd_qtnotes): Likewise.
9888 (gdb_collect): Likewise.
9889 (initialize_tracepoint): Likewise.
9891 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9893 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9894 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9895 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9897 (enum aarch64_condition_codes): New enum.
9898 (w0): New static global.
9901 (struct aarch64_memory_operand) <type>: New
9902 MEMORY_OPERAND_POSTINDEX type.
9903 (postindex_memory_operand): New helper function.
9904 (emit_ret): New function.
9905 (emit_load_store_pair): New function, factored out of emit_stp
9906 with support for MEMORY_OPERAND_POSTINDEX.
9907 (emit_stp): Rewrite using emit_load_store_pair.
9908 (emit_ldp): New function.
9909 (emit_load_store): Likewise.
9910 (emit_ldr): Mention post-index instruction in comment.
9911 (emit_ldrh): New function.
9912 (emit_ldrb): New function.
9913 (emit_ldrsw): Mention post-index instruction in comment.
9914 (emit_str): Likewise.
9915 (emit_subs): New function.
9916 (emit_cmp): Likewise.
9917 (emit_and): Likewise.
9918 (emit_orr): Likewise.
9919 (emit_orn): Likewise.
9920 (emit_eor): Likewise.
9921 (emit_mvn): Likewise.
9922 (emit_lslv): Likewise.
9923 (emit_lsrv): Likewise.
9924 (emit_asrv): Likewise.
9925 (emit_mul): Likewise.
9926 (emit_sbfm): Likewise.
9927 (emit_sbfx): Likewise.
9928 (emit_ubfm): Likewise.
9929 (emit_ubfx): Likewise.
9930 (emit_csinc): Likewise.
9931 (emit_cset): Likewise.
9932 (emit_nop): Likewise.
9933 (emit_ops_insns): New helper function.
9934 (emit_pop): Likewise.
9935 (emit_push): Likewise.
9936 (aarch64_emit_prologue): New function.
9937 (aarch64_emit_epilogue): Likewise.
9938 (aarch64_emit_add): Likewise.
9939 (aarch64_emit_sub): Likewise.
9940 (aarch64_emit_mul): Likewise.
9941 (aarch64_emit_lsh): Likewise.
9942 (aarch64_emit_rsh_signed): Likewise.
9943 (aarch64_emit_rsh_unsigned): Likewise.
9944 (aarch64_emit_ext): Likewise.
9945 (aarch64_emit_log_not): Likewise.
9946 (aarch64_emit_bit_and): Likewise.
9947 (aarch64_emit_bit_or): Likewise.
9948 (aarch64_emit_bit_xor): Likewise.
9949 (aarch64_emit_bit_not): Likewise.
9950 (aarch64_emit_equal): Likewise.
9951 (aarch64_emit_less_signed): Likewise.
9952 (aarch64_emit_less_unsigned): Likewise.
9953 (aarch64_emit_ref): Likewise.
9954 (aarch64_emit_if_goto): Likewise.
9955 (aarch64_emit_goto): Likewise.
9956 (aarch64_write_goto_address): Likewise.
9957 (aarch64_emit_const): Likewise.
9958 (aarch64_emit_call): Likewise.
9959 (aarch64_emit_reg): Likewise.
9960 (aarch64_emit_pop): Likewise.
9961 (aarch64_emit_stack_flush): Likewise.
9962 (aarch64_emit_zero_ext): Likewise.
9963 (aarch64_emit_swap): Likewise.
9964 (aarch64_emit_stack_adjust): Likewise.
9965 (aarch64_emit_int_call_1): Likewise.
9966 (aarch64_emit_void_call_2): Likewise.
9967 (aarch64_emit_eq_goto): Likewise.
9968 (aarch64_emit_ne_goto): Likewise.
9969 (aarch64_emit_lt_goto): Likewise.
9970 (aarch64_emit_le_goto): Likewise.
9971 (aarch64_emit_gt_goto): Likewise.
9972 (aarch64_emit_ge_got): Likewise.
9973 (aarch64_emit_ops_impl): New static global variable.
9974 (aarch64_emit_ops): New target function, return
9975 &aarch64_emit_ops_impl.
9976 (struct linux_target_ops): Install it.
9978 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9980 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9981 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9983 * linux-aarch64-ipa.c: New file.
9984 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9986 (aarch64_get_thread_area): New target method.
9987 (extract_signed_bitfield): New helper function.
9988 (aarch64_decode_ldr_literal): New function.
9989 (enum aarch64_opcodes): New enum.
9990 (struct aarch64_register): New struct.
9991 (struct aarch64_operand): New struct.
9992 (x0): New static global.
10001 (aarch64_register): New helper function.
10002 (register_operand): Likewise.
10003 (immediate_operand): Likewise.
10004 (struct aarch64_memory_operand): New struct.
10005 (offset_memory_operand): New helper function.
10006 (preindex_memory_operand): Likewise.
10007 (enum aarch64_system_control_registers): New enum.
10008 (ENCODE): New macro.
10009 (emit_insn): New helper function.
10010 (emit_b): New function.
10011 (emit_bcond): Likewise.
10012 (emit_cb): Likewise.
10013 (emit_tb): Likewise.
10014 (emit_blr): Likewise.
10015 (emit_stp): Likewise.
10016 (emit_ldp_q_offset): Likewise.
10017 (emit_stp_q_offset): Likewise.
10018 (emit_load_store): Likewise.
10019 (emit_ldr): Likewise.
10020 (emit_ldrsw): Likewise.
10021 (emit_str): Likewise.
10022 (emit_ldaxr): Likewise.
10023 (emit_stxr): Likewise.
10024 (emit_stlr): Likewise.
10025 (emit_data_processing_reg): Likewise.
10026 (emit_data_processing): Likewise.
10027 (emit_add): Likewise.
10028 (emit_sub): Likewise.
10029 (emit_mov): Likewise.
10030 (emit_movk): Likewise.
10031 (emit_mov_addr): Likewise.
10032 (emit_mrs): Likewise.
10033 (emit_msr): Likewise.
10034 (emit_sevl): Likewise.
10035 (emit_wfe): Likewise.
10036 (append_insns): Likewise.
10037 (can_encode_int32_in): New helper function.
10038 (aarch64_relocate_instruction): New function.
10039 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10040 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10041 (struct linux_target_ops): Install aarch64_get_thread_area,
10042 aarch64_install_fast_tracepoint_jump_pad and
10043 aarch64_get_min_fast_tracepoint_insn_len.
10045 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10047 * Makefile.in (aarch64-insn.o): New rule.
10048 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10050 2015-09-21 Yao Qi <yao.qi@linaro.org>
10052 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10054 2015-09-21 Yao Qi <yao.qi@linaro.org>
10056 * tracepoint.c (max_jump_pad_size): Remove.
10058 2015-09-18 Yao Qi <yao.qi@linaro.org>
10060 * linux-aarch64-low.c: Don't include sys/uio.h.
10061 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10063 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10065 * tracepoint.c (eval_result_type): Change prototype.
10066 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10068 2015-09-15 Pedro Alves <palves@redhat.com>
10070 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10071 Check whether to report exec events instead of checking whether
10072 multiprocess is enabled.
10074 2015-09-15 Pedro Alves <palves@redhat.com>
10077 * remote-utils.c (prepare_resume_reply): Merge
10078 TARGET_WAITKIND_VFORK_DONE switch case with the
10079 TARGET_WAITKIND_FORKED case.
10081 2015-09-15 Yao Qi <yao.qi@linaro.org>
10083 * server.c (handle_query): Check string comparison using
10084 "else if" instead of "if".
10086 2015-09-15 Yao Qi <yao.qi@linaro.org>
10088 * server.c (vCont_supported): New global variable.
10089 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10090 matches. Append ";vContSupported+" to own_buf.
10091 (handle_v_requests): Append ";s;S" to own_buf if target supports
10092 hardware single step or vCont_supported is false.
10093 (capture_main): Set vCont_supported to zero.
10095 2015-09-15 Yao Qi <yao.qi@linaro.org>
10097 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10099 (linux_supports_hardware_single_step): ... New function.
10100 (linux_target_ops): Update.
10101 * lynx-low.c (lynx_target_ops): Set field
10102 supports_hardware_single_step to target_can_do_hardware_single_step.
10103 * nto-low.c (nto_target_ops): Likewise.
10104 * spu-low.c (spu_target_ops): Likewise.
10105 * win32-low.c (win32_target_ops): Likewise.
10106 * target.c (target_can_do_hardware_single_step): New function.
10107 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10108 Remove. <supports_hardware_single_step>: New field.
10109 (target_supports_conditional_breakpoints): Remove.
10110 (target_supports_hardware_single_step): New macro.
10111 (target_can_do_hardware_single_step): Declare.
10112 * server.c (handle_query): Use target_supports_hardware_single_step
10113 instead of target_supports_conditional_breakpoints.
10115 2015-09-15 Yao Qi <yao.qi@linaro.org>
10117 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10119 (struct linux_target_ops the_low_target): Install
10120 aarch64_linux_siginfo_fixup.
10122 2015-09-11 Don Breazeal <donb@codesourcery.com>
10123 Luis Machado <lgustavo@codesourcery.com>
10125 * linux-low.c (linux_mourn): Static declaration.
10126 (linux_arch_setup): Move in front of
10127 handle_extended_wait.
10128 (linux_arch_setup_thread): New function.
10129 (handle_extended_wait): Handle exec events. Call
10130 linux_arch_setup_thread. Make event_lwp argument a
10131 pointer-to-a-pointer.
10132 (check_zombie_leaders): Do not check stopped threads.
10133 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10134 (linux_low_filter_event): Add lwp and thread for exec'ing
10135 non-leader thread if leader thread has been deleted.
10136 Refactor code into linux_arch_setup_thread and call it.
10137 Pass child lwp pointer by reference to handle_extended_wait.
10138 (linux_wait_for_event_filtered): Update comment.
10139 (linux_wait_1): Prevent clobbering exec event status.
10140 (linux_supports_exec_events): New function.
10141 (linux_target_ops) <supports_exec_events>: Initialize new member.
10142 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10144 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10145 * server.c (report_exec_events): New global variable.
10146 (handle_query): Handle qSupported query for exec-events feature.
10147 (captured_main): Initialize report_exec_events.
10148 * server.h (report_exec_events): Declare new global variable.
10149 * target.h (struct target_ops) <supports_exec_events>: New
10151 (target_supports_exec_events): New macro.
10152 * win32-low.c (win32_target_ops) <supports_exec_events>:
10153 Initialize new member.
10155 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10157 * linux-low.c (linux_low_enable_btrace): Remove.
10158 (linux_target_ops): Replace linux_low_enable_btrace with
10159 linux_enable_btrace.
10161 2015-09-03 Yao Qi <yao.qi@linaro.org>
10163 * linux-aarch64-low.c (aarch64_insert_point): Call
10164 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10167 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10169 * linux-low.c (check_stopped_by_breakpoint): Use
10170 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10172 2015-08-27 Pedro Alves <palves@redhat.com>
10174 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10176 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10178 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10179 the XNEW-family equivalent.
10180 (compile_bytecodes): Likewise.
10181 * dll.c (loaded_dll): Likewise.
10182 * event-loop.c (append_callback_event): Likewise.
10183 (create_file_handler): Likewise.
10184 (create_file_event): Likewise.
10185 * hostio.c (handle_open): Likewise.
10186 * inferiors.c (add_thread): Likewise.
10187 (add_process): Likewise.
10188 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10189 * linux-arm-low.c (arm_new_process): Likewise.
10190 (arm_new_thread): Likewise.
10191 * linux-low.c (add_to_pid_list): Likewise.
10192 (linux_add_process): Likewise.
10193 (handle_extended_wait): Likewise.
10194 (add_lwp): Likewise.
10195 (enqueue_one_deferred_signal): Likewise.
10196 (enqueue_pending_signal): Likewise.
10197 (linux_resume_one_lwp_throw): Likewise.
10198 (linux_resume_one_thread): Likewise.
10199 (linux_read_memory): Likewise.
10200 (linux_write_memory): Likewise.
10201 * linux-mips-low.c (mips_linux_new_process): Likewise.
10202 (mips_linux_new_thread): Likewise.
10203 (mips_add_watchpoint): Likewise.
10204 * linux-x86-low.c (initialize_low_arch): Likewise.
10205 * lynx-low.c (lynx_add_process): Likewise.
10206 * mem-break.c (set_raw_breakpoint_at): Likewise.
10207 (set_breakpoint): Likewise.
10208 (add_condition_to_breakpoint): Likewise.
10209 (add_commands_to_breakpoint): Likewise.
10210 (clone_agent_expr): Likewise.
10211 (clone_one_breakpoint): Likewise.
10212 * regcache.c (new_register_cache): Likewise.
10213 * remote-utils.c (look_up_one_symbol): Likewise.
10214 * server.c (queue_stop_reply): Likewise.
10215 (start_inferior): Likewise.
10216 (queue_stop_reply_callback): Likewise.
10217 (handle_target_event): Likewise.
10218 * spu-low.c (fetch_ppc_memory): Likewise.
10219 (store_ppc_memory): Likewise.
10220 * target.c (set_target_ops): Likewise.
10221 * thread-db.c (thread_db_load_search): Likewise.
10222 (try_thread_db_load_1): Likewise.
10223 * tracepoint.c (add_tracepoint): Likewise.
10224 (add_tracepoint_action): Likewise.
10225 (create_trace_state_variable): Likewise.
10226 (cmd_qtdpsrc): Likewise.
10227 (cmd_qtro): Likewise.
10228 (add_while_stepping_state): Likewise.
10229 * win32-low.c (child_add_thread): Likewise.
10230 (get_image_name): Likewise.
10232 2015-08-25 Yao Qi <yao.qi@linaro.org>
10234 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10236 2015-08-25 Yao Qi <yao.qi@linaro.org>
10238 * Makefile.in (aarch64-linux.o): New rule.
10239 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10241 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10242 (aarch64_init_debug_reg_state): Make it extern.
10243 (aarch64_linux_prepare_to_resume): Remove.
10245 2015-08-25 Yao Qi <yao.qi@linaro.org>
10247 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10248 lwp_arch_private_info and ptid_of_lwp.
10250 2015-08-25 Yao Qi <yao.qi@linaro.org>
10252 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10253 Find proc_info by find_process_pid. All callers updated.
10255 2015-08-25 Yao Qi <yao.qi@linaro.org>
10257 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10259 (debug_reg_change_callback): Remove.
10260 (aarch64_notify_debug_reg_change): Remove.
10262 2015-08-25 Yao Qi <yao.qi@linaro.org>
10264 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10265 Call current_lwp_ptid.
10267 2015-08-25 Yao Qi <yao.qi@linaro.org>
10269 * linux-aarch64-low.c (debug_reg_change_callback): Use
10272 2015-08-25 Yao Qi <yao.qi@linaro.org>
10274 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10276 2015-08-25 Yao Qi <yao.qi@linaro.org>
10278 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10280 2015-08-25 Yao Qi <yao.qi@linaro.org>
10282 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10285 2015-08-25 Yao Qi <yao.qi@linaro.org>
10287 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10289 (debug_reg_change_callback): Remove argument entry and add argument
10290 lwp. Remove local variable thread. Don't print thread id in the
10291 debugging output. Don't check whether pid of thread equals to pid.
10292 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10293 iterate_over_lwps instead find_inferior.
10295 2015-08-24 Pedro Alves <palves@redhat.com>
10297 * inferiors.c (get_first_process): New function.
10298 * inferiors.h (get_first_process): New declaration.
10299 * remote-utils.c (read_ptid): Default to the first process in the
10300 list, instead of to the current thread's process.
10302 2015-08-24 Pedro Alves <palves@redhat.com>
10304 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10305 * event-loop.c: Likewise.
10306 * remote-utils.c: Likewise.
10307 * tracepoint.c: Likewise.
10309 2015-08-24 Pedro Alves <palves@redhat.com>
10311 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10314 2015-08-21 Pedro Alves <palves@redhat.com>
10316 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10317 instead of literal 1.
10319 2015-08-21 Pedro Alves <palves@redhat.com>
10321 * tdesc.c (default_description): Explicitly zero-initialize.
10323 2015-08-21 Pedro Alves <palves@redhat.com>
10326 * inferiors.c (remove_thread): Discard any pending stop reply for
10328 * server.c (remove_all_on_match_pid): Rename to ...
10329 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10331 (discard_queued_stop_replies): Change parameter to a ptid. Now
10333 (handle_v_kill, kill_inferior_callback, captured_main)
10334 (process_serial_event): Adjust.
10335 * server.h (discard_queued_stop_replies): Declare.
10337 2015-08-21 Pedro Alves <palves@redhat.com>
10339 * linux-low.c (wait_for_sigstop): Always switch to no thread
10340 selected if the previously current thread dies.
10341 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10342 process instead of the current thread's.
10343 * remote-utils.c (input_interrupt): Don't check if there's no
10345 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10346 current thread to the general thread fails, error out.
10347 (handle_qxfer_auxv, handle_qxfer_libraries)
10348 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10349 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10350 (handle_query): Check if there's a thread selected instead of
10351 checking whether there's any thread in the thread list.
10352 (handle_qxfer_threads, handle_qxfer_btrace)
10353 (handle_qxfer_btrace_conf): Don't error out early if there's no
10354 thread in the thread list.
10355 (handle_v_cont, myresume): Don't set the current thread to the
10357 (process_serial_event) <Hg handling>: Also set thread_id if the
10358 previous general thread is still alive.
10359 (process_serial_event) <g/G handling>: If setting the current
10360 thread to the general thread fails, error out.
10361 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10362 thread's lwp instead of the current thread's.
10363 * target.c (set_desired_thread): If the desired thread was not
10364 found, leave the current thread pointing to NULL. Return an int
10365 (boolean) indicating success.
10366 * target.h (set_desired_thread): Change return type to int.
10368 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10370 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10371 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10373 (ps_get_thread_area): New function.
10375 2015-08-19 Gary Benson <gbenson@redhat.com>
10377 * hostio.c (handle_pread): Do not attempt to read more data
10378 than hostio_reply_with_data can fit in a packet.
10380 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10382 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10384 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10386 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10388 2015-08-06 Pedro Alves <palves@redhat.com>
10390 * tracepoint.c (expr_eval_result): Now an int.
10392 2015-08-06 Pedro Alves <palves@redhat.com>
10394 * gdbthread.h (struct regcache): Forward declare.
10395 (struct thread_info) <regcache_data>: Now a struct regcache
10397 * inferiors.c (inferior_regcache_data)
10398 (set_inferior_regcache_data): Now work with struct regcache
10400 * inferiors.h (struct regcache): Forward declare.
10401 (inferior_regcache_data, set_inferior_regcache_data): Now work
10402 with struct regcache pointers.
10403 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10404 (free_register_cache_thread): Remove struct regcache pointer
10407 2015-08-06 Pedro Alves <palves@redhat.com>
10409 * server.c (captured_main): On error, print the exception message
10410 to stderr, and if run_once is set, throw a quit.
10412 2015-08-06 Pedro Alves <palves@redhat.com>
10414 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10415 the current thread.
10417 2015-08-06 Pedro Alves <palves@redhat.com>
10419 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10420 reading beyond the passed in buffer length.
10422 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10424 * tracepoint.c (symbol_list) <required>: Remove.
10426 2015-08-06 Pedro Alves <palves@redhat.com>
10428 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10429 count if stopping and suspending threads.
10430 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10431 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10432 (linux_detach): Complete an ongoing step-over.
10433 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10435 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10436 (linux_wait_1): If passing a signal to the inferior after
10437 finishing a step-over, unsuspend and re-resume all lwps. If we
10438 see a single-step event but the thread should be continuing, don't
10439 pass the trap to gdb.
10440 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10441 internal_error instead of gdb_assert.
10442 (enqueue_pending_signal): New function.
10443 (check_ptrace_stopped_lwp_gone): Add debug output.
10444 (start_step_over): Use internal_error instead of gdb_assert.
10445 (complete_ongoing_step_over): New function.
10446 (linux_resume_one_thread): Don't resume a suspended thread.
10447 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10450 2015-08-06 Pedro Alves <palves@redhat.com>
10452 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10453 (linux_thread_alive): Use lwp_is_marked_dead.
10454 (extended_event_reported): Delete.
10455 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10456 instead of extended_event_reported.
10457 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10459 (lwp_is_marked_dead): New function.
10460 (lwp_running): Use lwp_is_marked_dead.
10461 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10464 2015-08-06 Pedro Alves <palves@redhat.com>
10466 * linux-low.c (linux_wait_1): Move fork event output out of the
10467 !report_to_gdb check. Pass event_child->waitstatus to
10468 target_waitstatus_to_string instead of ourstatus.
10470 2015-08-04 Yao Qi <yao.qi@linaro.org>
10472 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10473 if current_thread is 32 bit.
10475 2015-08-04 Yao Qi <yao.qi@linaro.org>
10477 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10478 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10479 * server.c (extended_protocol): Remove "static".
10480 * server.h (extended_protocol): Declare it.
10482 2015-08-04 Yao Qi <yao.qi@linaro.org>
10484 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10485 both aarch64 and aarch32.
10486 (aarch64_set_pc): Likewise.
10488 2015-08-04 Yao Qi <yao.qi@linaro.org>
10490 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10491 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10492 arm-with-neon.xml to srv_xmlfiles.
10493 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10494 (is_64bit_tdesc): New function.
10495 (aarch64_linux_read_description): New function.
10496 (aarch64_arch_setup): Call aarch64_linux_read_description.
10497 (regs_info): Rename to regs_info_aarch64.
10498 (aarch64_regs_info): Return right regs_info.
10499 (initialize_low_arch): Call initialize_low_arch_aarch32.
10501 2015-08-04 Yao Qi <yao.qi@linaro.org>
10503 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10504 * linux-aarch32-low.c: New file.
10505 * linux-aarch32-low.h: New file.
10506 * linux-arm-low.c (arm_fill_gregset): Move it to
10507 linux-aarch32-low.c.
10508 (arm_store_gregset): Likewise.
10509 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10510 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10511 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10512 (regs_info): Rename to regs_info_arm.
10513 (arm_regs_info): Return regs_info_aarch32 if
10514 have_ptrace_getregset is 1 and target description is
10515 arm_with_neon or arm_with_vfpv3.
10516 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10517 Call initialize_low_arch_aarch32 instead.
10519 2015-08-04 Yao Qi <yao.qi@linaro.org>
10521 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10522 * linux-low.c: ... here.
10523 * linux-low.h (have_ptrace_getregset): Declare it.
10525 2015-08-04 Pedro Alves <palves@redhat.com>
10527 * thread-db.c (struct thread_db): Use new typedefs.
10528 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10530 (disable_thread_event_reporting): Cast result of dlsym to
10531 destination function pointer type.
10532 (thread_db_mourn): Use td_ta_delete_ftype.
10534 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10536 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10538 (CDX_BREAKPOINT): Define for R2.
10539 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10540 (the_low_target): Add comments.
10542 2015-07-30 Yao Qi <yao.qi@linaro.org>
10544 * linux-arm-low.c (arm_hwcap): Remove it.
10545 (arm_read_description): New local variable arm_hwcap. Don't
10546 set arm_hwcap to zero.
10548 2015-07-30 Yao Qi <yao.qi@linaro.org>
10550 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10551 Use regcache->tdesc instead.
10552 (arm_store_wmmxregset): Likewise.
10553 (arm_fill_vfpregset): Likewise.
10554 (arm_store_vfpregset): Likewise.
10556 2015-07-30 Yao Qi <yao.qi@linaro.org>
10558 * linux-arm-low.c: Include arch/arm.h.
10559 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10560 (arm_store_gregset): Likewise.
10562 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10564 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10565 ptrace's 4th parameter.
10567 2015-07-27 Yao Qi <yao.qi@linaro.org>
10569 * configure.srv (case aarch64*-*-linux*): Don't set
10572 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10574 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10576 * linux-arm-low.c: Likewise.
10577 * linux-cris-low.c: Likewise.
10578 * linux-crisv32-low.c: Likewise.
10579 * linux-low.c: Likewise.
10580 * linux-m68k-low.c: Likewise.
10581 * linux-mips-low.c: Likewise.
10582 * linux-nios2-low.c: Likewise.
10583 * linux-s390-low.c: Likewise.
10584 * linux-sparc-low.c: Likewise.
10585 * linux-tic6x-low.c: Likewise.
10586 * linux-tile-low.c: Likewise.
10587 * linux-x86-low.c: Likewise.
10589 2015-07-24 Pedro Alves <palves@redhat.com>
10591 * config.in: Regenerate.
10592 * configure: Regenerate.
10594 2015-07-24 Pedro Alves <palves@redhat.com>
10596 * acinclude.m4: Include ../ptrace.m4.
10597 * configure.ac: Call GDB_AC_PTRACE.
10598 * config.in, configure: Regenerate.
10600 2015-07-24 Yao Qi <yao.qi@linaro.org>
10602 * linux-low.c (linux_create_inferior): Remove setting to
10603 proc->priv->new_inferior.
10604 (linux_attach): Likewise.
10605 (linux_low_filter_event): Likewise.
10606 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10608 2015-07-24 Yao Qi <yao.qi@linaro.org>
10610 * linux-low.c (linux_arch_setup): New function.
10611 (linux_low_filter_event): If proc->tdesc is NULL and
10612 proc->attached is true, call the_low_target.arch_setup.
10613 Otherwise, keep status pending, and return.
10614 (linux_resume_one_lwp_throw): Don't call get_pc if
10615 thread->while_stepping isn't NULL. Don't call
10616 get_thread_regcache if proc->tdesc is NULL.
10617 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10618 (linux_target_ops): Install arch_setup.
10619 * server.c (start_inferior): Call the_target->arch_setup.
10620 * target.h (struct target_ops) <arch_setup>: New field.
10621 (target_arch_setup): New marco.
10622 * lynx-low.c (lynx_target_ops): Update.
10623 * nto-low.c (nto_target_ops): Update.
10624 * spu-low.c (spu_target_ops): Update.
10625 * win32-low.c (win32_target_ops): Update.
10627 2015-07-24 Yao Qi <yao.qi@linaro.org>
10629 * linux-low.c (linux_add_process): Don't set
10630 proc->priv->new_inferior.
10631 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10632 (linux_attach): Likewise.
10634 2015-07-24 Yao Qi <yao.qi@linaro.org>
10636 * server.c (start_inferior): Code refactor.
10638 2015-07-24 Yao Qi <yao.qi@linaro.org>
10640 * server.c (process_serial_event): Set general_thread.
10642 2015-07-21 Yao Qi <yao.qi@linaro.org>
10644 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10645 aarch64_linux_get_debug_reg_capacity.
10647 2015-07-17 Yao Qi <yao.qi@linaro.org>
10649 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10650 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10651 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10652 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10653 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10654 (AARCH64_HWP_ALIGNMENT): Likewise.
10655 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10656 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10657 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10658 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10659 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10660 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10661 (struct aarch64_debug_reg_state): Likewise.
10662 (struct arch_lwp_info): Likewise.
10663 (aarch64_align_watchpoint): Likewise.
10664 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10665 (aarch64_watchpoint_length): Likewise.
10666 (aarch64_point_encode_ctrl_reg): Likewise
10667 (aarch64_point_is_aligned): Likewise.
10668 (aarch64_align_watchpoint): Likewise.
10669 (aarch64_linux_set_debug_regs):
10670 (aarch64_dr_state_insert_one_point): Likewise.
10671 (aarch64_dr_state_remove_one_point): Likewise.
10672 (aarch64_handle_breakpoint): Likewise.
10673 (aarch64_handle_aligned_watchpoint): Likewise.
10674 (aarch64_handle_unaligned_watchpoint): Likewise.
10675 (aarch64_handle_watchpoint): Likewise.
10677 2015-07-17 Yao Qi <yao.qi@linaro.org>
10679 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10680 and don't aarch64_get_debug_reg_state. All callers update.
10681 (aarch64_handle_aligned_watchpoint): Likewise.
10682 (aarch64_handle_unaligned_watchpoint): Likewise.
10683 (aarch64_handle_watchpoint): Likewise.
10684 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10685 (aarch64_remove_point): Likewise.
10687 2015-07-17 Yao Qi <yao.qi@linaro.org>
10689 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10691 (aarch64_handle_unaligned_watchpoint): Likewise.
10693 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10695 Revert the previous 3 commits:
10696 Move gdb_regex* to common/
10697 Move linux_find_memory_regions_full & co.
10698 gdbserver build-id attribute generator
10700 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10701 Jan Kratochvil <jan.kratochvil@redhat.com>
10703 gdbserver build-id attribute generator.
10704 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10705 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10706 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10708 (get_dynamic): Use find_pdhr to traverse program headers.
10709 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10710 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10711 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10712 (get_hex_build_id): New.
10713 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10714 to reply XML document.
10716 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10717 Jan Kratochvil <jan.kratochvil@redhat.com>
10719 * target.c: Include target/target-utils.h and fcntl.h.
10720 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10721 (target_fileio_read_stralloc): New functions.
10723 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10725 * Makefile.in (OBS): Add gdb_regex.o.
10726 (gdb_regex.o): New.
10727 * config.in: Rebuilt.
10728 * configure: Rebuilt.
10730 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10731 Jan Kratochvil <jan.kratochvil@redhat.com>
10733 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10734 * Makefile.in (OBS): Add target-utils.o.
10735 (linux-maps.o, target-utils.o): New.
10736 * configure.srv (srv_linux_obj): Add linux-maps.o.
10738 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10740 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10741 function, return 1.
10742 (the_low_target): Install it.
10744 2015-07-14 Pedro Alves <palves@redhat.com>
10746 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10747 Instead, ignore ECHILD, and throw an error for other errnos.
10749 2015-07-10 Pedro Alves <palves@redhat.com>
10751 * event-loop.c (struct callback_event) <data>: Change type to
10752 gdb_client_data instance instead of gdb_client_data pointer.
10753 (append_callback_event): Adjust.
10755 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10757 * linux-aarch64-low.c: Add comments for each linux_target_ops
10758 method. Remove comments already covered in target_ops and
10759 linux_target_ops definitions.
10760 (the_low_target): Add comments for each unimplemented method.
10762 2015-07-09 Yao Qi <yao.qi@linaro.org>
10764 * linux-aarch64-low.c (aarch64_regmap): Remove.
10765 (aarch64_usrregs_info): Remove.
10766 (regs_info): Set field usrregs to NULL.
10768 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10770 * linux-low.c: Include "rsp-low.h"
10771 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10772 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10773 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10774 (handle_btrace_enable_pt): New.
10775 (handle_btrace_general_set): Support "pt".
10776 (handle_btrace_conf_general_set): Support "pt:size".
10778 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10780 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10783 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10785 * linux-aarch64-low.c: Remove comment about endianness.
10786 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10787 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10790 2015-06-24 Gary Benson <gbenson@redhat.com>
10792 * linux-i386-ipa.c (stdint.h): Do not include.
10793 * lynx-i386-low.c (stdint.h): Likewise.
10794 * lynx-ppc-low.c (stdint.h): Likewise.
10795 * mem-break.c (stdint.h): Likewise.
10796 * thread-db.c (stdint.h): Likewise.
10797 * tracepoint.c (stdint.h): Likewise.
10798 * win32-low.c (stdint.h): Likewise.
10800 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10802 * server.c (write_qxfer_response): Update call to
10803 remote_escape_output.
10805 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10806 Jan Kratochvil <jan.kratochvil@redhat.com>
10808 Merge multiple hex conversions.
10809 * gdbreplay.c (tohex): Rename to 'fromhex'.
10810 (logchar): Use fromhex.
10812 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10814 * server.c (handle_qxfer_libraries): Set `version' attribute for
10817 2015-06-10 Gary Benson <gbenson@redhat.com>
10819 * target.h (struct target_ops) <multifs_open>: New field.
10820 <multifs_unlink>: Likewise.
10821 <multifs_readlink>: Likewise.
10822 * linux-low.c (nat/linux-namespaces.h): New include.
10823 (linux_target_ops): Initialize the_target->multifs_open,
10824 the_target->multifs_unlink and the_target->multifs_readlink.
10825 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10826 * hostio.c (hostio_fs_pid): New static variable.
10827 (hostio_handle_new_gdb_connection): New function.
10828 (handle_setfs): Likewise.
10829 (handle_open): Use the_target->multifs_open as appropriate.
10830 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10831 (handle_readlink): Use the_target->multifs_readlink as
10833 (handle_vFile): Handle vFile:setfs packets.
10834 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10835 after target_handle_new_gdb_connection.
10837 2015-06-10 Gary Benson <gbenson@redhat.com>
10839 * configure.ac (AC_CHECK_FUNCS): Add setns.
10840 * config.in: Regenerate.
10841 * configure: Likewise.
10842 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10843 (linux-namespaces.o): New rule.
10844 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10846 2015-06-09 Gary Benson <gbenson@redhat.com>
10848 * hostio.c (handle_open): Process mode argument with
10849 fileio_to_host_mode.
10851 2015-06-01 Yao Qi <yao.qi@linaro.org>
10853 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10854 * linux-x86-low.c: Likewise.
10856 2015-05-28 Don Breazeal <donb@codesourcery.com>
10858 * linux-low.c (handle_extended_wait): Initialize
10859 thread_info.last_resume_kind for new fork children.
10861 2015-05-15 Pedro Alves <palves@redhat.com>
10863 * target.h (target_handle_new_gdb_connection): Rewrite using if
10864 wrapped in do/while.
10866 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10868 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10869 * configure, config.in: Regenerate.
10870 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10873 2015-05-12 Don Breazeal <donb@codesourcery.com>
10875 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10876 PTRACE_EVENT_VFORK_DONE.
10877 (linux_low_ptrace_options, extended_event_reported): Add vfork
10879 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10880 and "vforkdone" for RSP 'T' Stop Reply Packet.
10881 * server.h (report_vfork_events): Declare
10884 2015-05-12 Don Breazeal <donb@codesourcery.com>
10886 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10887 (the_low_target) <new_fork>: Initialize new member.
10888 * linux-arm-low.c (arm_new_fork): New function.
10889 (the_low_target) <new_fork>: Initialize new member.
10890 * linux-low.c (handle_extended_wait): Call new target function
10892 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10893 * linux-mips-low.c (mips_add_watchpoint): New function
10894 extracted from mips_insert_point.
10895 (the_low_target) <new_fork>: Initialize new member.
10896 (mips_linux_new_fork): New function.
10897 (mips_insert_point): Call mips_add_watchpoint.
10898 * linux-x86-low.c (x86_linux_new_fork): New function.
10899 (the_low_target) <new_fork>: Initialize new member.
10901 2015-05-12 Don Breazeal <donb@codesourcery.com>
10903 * linux-low.c (handle_extended_wait): Implement return value,
10904 rename argument 'event_child' to 'event_lwp', handle
10905 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10906 (linux_low_ptrace_options): New function.
10907 (linux_low_filter_event): Call linux_low_ptrace_options,
10908 use different argument fo linux_enable_event_reporting,
10909 use return value from handle_extended_wait.
10910 (extended_event_reported): New function.
10911 (linux_wait_1): Call extended_event_reported and set
10912 status to report fork events.
10913 (linux_write_memory): Add pid to debug message.
10914 (reset_lwp_ptrace_options_callback): New function.
10915 (linux_handle_new_gdb_connection): New function.
10916 (linux_target_ops): Initialize new structure member.
10917 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10918 * lynx-low.c: Initialize new structure member.
10919 * remote-utils.c (prepare_resume_reply): Implement stop reason
10920 "fork" for "T" stop message.
10921 * server.c (handle_query): Call handle_new_gdb_connection.
10922 * server.h (report_fork_events): Declare global flag.
10923 * target.h (struct target_ops) <handle_new_gdb_connection>:
10925 (target_handle_new_gdb_connection): New macro.
10926 * win32-low.c: Initialize new structure member.
10928 2015-05-12 Don Breazeal <donb@codesourcery.com>
10930 * mem-break.c (APPEND_TO_LIST): Define macro.
10931 (clone_agent_expr): New function.
10932 (clone_one_breakpoint): New function.
10933 (clone_all_breakpoints): New function.
10934 * mem-break.h: Declare new functions.
10936 2015-05-12 Don Breazeal <donb@codesourcery.com>
10938 * linux-low.c (linux_supports_fork_events): New function.
10939 (linux_supports_vfork_events): New function.
10940 (linux_target_ops): Initialize new structure members.
10941 (initialize_low): Call linux_check_ptrace_features.
10942 * lynx-low.c (lynx_target_ops): Initialize new structure
10944 * server.c (report_fork_events, report_vfork_events):
10946 (handle_query): Add new features to qSupported packet and
10948 (captured_main): Initialize new global variables.
10949 * target.h (struct target_ops) <supports_fork_events>:
10951 <supports_vfork_events>: New member.
10952 (target_supports_fork_events): New macro.
10953 (target_supports_vfork_events): New macro.
10954 * win32-low.c (win32_target_ops): Initialize new structure
10957 2015-05-12 Gary Benson <gbenson@redhat.com>
10959 * server.c (handle_qxfer_exec_file): Use current process
10962 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10964 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10965 Remove HAVE_PTRACE_GETREGS conditionals.
10966 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10967 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10969 2015-05-08 Yao Qi <yao.qi@linaro.org>
10971 * linux-low.c (linux_supports_conditional_breakpoints): New
10973 (linux_target_ops): Install new target method.
10974 * lynx-low.c (lynx_target_ops): Install NULL hook for
10975 supports_conditional_breakpoints.
10976 * nto-low.c (nto_target_ops): Likewise.
10977 * spu-low.c (spu_target_ops): Likewise.
10978 * win32-low.c (win32_target_ops): Likewise.
10979 * server.c (handle_query): Check
10980 target_supports_conditional_breakpoints.
10981 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10983 (target_supports_conditional_breakpoints): New macro.
10985 2015-05-06 Pedro Alves <palves@redhat.com>
10988 * server.c (start_inferior): If the process exits, mourn it.
10990 2015-04-21 Gary Benson <gbenson@redhat.com>
10992 * hostio.c (fileio_open_flags_to_host): Factored out to
10993 fileio_to_host_openflags in common/fileio.c. Single use
10996 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10998 * linux-xtensa-low.c (xtensa_fill_gregset)
10999 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11002 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11004 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11005 (regs_info): Replace usrregs pointer with NULL.
11007 2015-04-17 Gary Benson <gbenson@redhat.com>
11009 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11010 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11011 * server.c (handle_qxfer_exec_file): New function.
11012 (qxfer_packets): Add exec-file entry.
11013 (handle_query): Report qXfer:exec-file:read as supported packet.
11015 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11017 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11019 2015-04-09 Gary Benson <gbenson@redhat.com>
11021 * hostio-errno.c (errno_to_fileio_error): Remove function.
11022 Update caller to use remote_fileio_to_fio_error.
11024 2015-04-09 Yao Qi <yao.qi@linaro.org>
11026 * linux-low.c (linux_insert_point): Call
11027 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11028 (linux_remove_point): Call remove_memory_breakpoint if type is
11030 * linux-x86-low.c (x86_insert_point): Don't call
11031 insert_memory_breakpoint.
11032 (x86_remove_point): Don't call remove_memory_breakpoint.
11034 2015-04-01 Pedro Alves <palves@redhat.com>
11035 Cleber Rosa <crosa@redhat.com>
11037 * server.c (gdbserver_usage): Reorganize and extend the usage
11040 2015-03-24 Pedro Alves <palves@redhat.com>
11042 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11043 output. Also dump TRAP_TRACE.
11044 (linux_low_filter_event): In debug output, distinguish a
11045 resume_stop SIGSTOP from a delayed SIGSTOP.
11047 2015-03-24 Gary Benson <gbenson@redhat.com>
11049 * linux-x86-low.c (x86_linux_new_thread): Moved to
11051 (x86_linux_prepare_to_resume): Likewise.
11053 2015-03-24 Gary Benson <gbenson@redhat.com>
11055 * Makefile.in (x86-linux-dregs.o): New rule.
11056 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11057 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11058 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11059 (x86_linux_dr_get): Likewise.
11060 (x86_linux_dr_set): Likewise.
11061 (update_debug_registers_callback): Likewise.
11062 (x86_linux_dr_set_addr): Likewise.
11063 (x86_linux_dr_get_addr): Likewise.
11064 (x86_linux_dr_set_control): Likewise.
11065 (x86_linux_dr_get_control): Likewise.
11066 (x86_linux_dr_get_status): Likewise.
11067 (x86_linux_update_debug_registers): Likewise.
11069 2015-03-24 Gary Benson <gbenson@redhat.com>
11071 * linux-x86-low.c (x86_linux_update_debug_registers):
11072 New function, factored out from...
11073 (x86_linux_prepare_to_resume): ...this.
11075 2015-03-24 Gary Benson <gbenson@redhat.com>
11077 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11078 (x86_linux_dr_set): Likewise.
11079 (update_debug_registers_callback): Likewise.
11080 (x86_linux_dr_set_addr): Likewise.
11081 (x86_linux_dr_get_addr): Likewise.
11082 (x86_linux_dr_set_control): Likewise.
11083 (x86_linux_dr_get_control): Likewise.
11084 (x86_linux_dr_get_status): Likewise.
11085 (x86_linux_prepare_to_resume): Likewise.
11087 2015-03-24 Gary Benson <gbenson@redhat.com>
11089 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11090 Use perror_with_name. Pass string through gettext.
11091 (x86_linux_dr_set): Likewise.
11093 2015-03-24 Gary Benson <gbenson@redhat.com>
11095 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11096 (x86_linux_dr_set_addr): ...this.
11097 (x86_dr_low_get_addr): Rename to...
11098 (x86_linux_dr_get_addr): ...this.
11099 (x86_dr_low_set_control): Rename to...
11100 (x86_linux_dr_set_control): ...this.
11101 (x86_dr_low_get_control): Rename to...
11102 (x86_linux_dr_get_control): ...this.
11103 (x86_dr_low_get_status): Rename to...
11104 (x86_linux_dr_get_status): ...this.
11105 (x86_dr_low): Update with new function names.
11107 2015-03-24 Gary Benson <gbenson@redhat.com>
11109 * Makefile.in (x86-linux.o): New rule.
11110 * configure.srv: Add x86-linux.o to relevant targets.
11111 * linux-low.c (lwp_set_arch_private_info): New function.
11112 (lwp_arch_private_info): Likewise.
11113 * linux-x86-low.c: Include nat/x86-linux.h.
11114 (arch_lwp_info): Removed structure.
11115 (update_debug_registers_callback):
11116 Use lwp_set_debug_registers_changed.
11117 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11118 and lwp_set_debug_registers_changed.
11119 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11121 2015-03-24 Gary Benson <gbenson@redhat.com>
11123 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11124 * linux-arm-low.c (arm_new_thread): Likewise.
11125 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11126 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11127 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11128 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11130 2015-03-24 Gary Benson <gbenson@redhat.com>
11132 * linux-low.c (ptid_of_lwp): New function.
11133 (lwp_is_stopped): Likewise.
11134 (lwp_stop_reason): Likewise.
11135 * linux-x86-low.c (update_debug_registers_callback):
11136 Use lwp_is_stopped.
11137 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11140 2015-03-24 Gary Benson <gbenson@redhat.com>
11142 * linux-low.h (linux_stop_lwp): Remove declaration.
11144 2015-03-24 Gary Benson <gbenson@redhat.com>
11146 * linux-low.h: Include nat/linux-nat.h.
11147 * linux-low.c (iterate_over_lwps_args): New structure.
11148 (iterate_over_lwps_filter): New function.
11149 (iterate_over_lwps): Likewise.
11150 * linux-x86-low.c (update_debug_registers_callback):
11151 Update signature to what iterate_over_lwps expects.
11152 Remove PID check that iterate_over_lwps now performs.
11153 (x86_dr_low_set_addr): Use iterate_over_lwps.
11154 (x86_dr_low_set_control): Likewise.
11156 2015-03-24 Gary Benson <gbenson@redhat.com>
11158 * linux-x86-low.c (x86_debug_reg_state): New function.
11159 (x86_linux_prepare_to_resume): Use the above.
11161 2015-03-24 Gary Benson <gbenson@redhat.com>
11163 * linux-low.c (current_lwp_ptid): New function.
11164 * linux-x86-low.c: Include nat/linux-nat.h.
11165 (x86_dr_low_get_addr): Use current_lwp_ptid.
11166 (x86_dr_low_get_control): Likewise.
11167 (x86_dr_low_get_status): Likewise.
11169 2015-03-20 Pedro Alves <palves@redhat.com>
11171 * tracepoint.c (cmd_qtstatus): Make "str" const.
11173 2015-03-20 Pedro Alves <palves@redhat.com>
11175 * server.c (handle_general_set): Make "req_str" const.
11177 2015-03-19 Pedro Alves <palves@redhat.com>
11179 * linux-low.c (linux_resume_one_lwp): Rename to ...
11180 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11181 instead call perror_with_name.
11182 (check_ptrace_stopped_lwp_gone): New function.
11183 (linux_resume_one_lwp): Reimplement as wrapper around
11184 linux_resume_one_lwp_throw that swallows errors if the LWP is
11187 2015-03-19 Pedro Alves <palves@redhat.com>
11189 * linux-low.c (count_events_callback, select_event_lwp_callback):
11190 No longer check whether the thread has resume_stop as last resume
11193 2015-03-19 Pedro Alves <palves@redhat.com>
11195 * linux-low.c (count_events_callback, select_event_lwp_callback):
11196 Use the lwp's status_pending_p field, not the thread's.
11198 2015-03-19 Pedro Alves <palves@redhat.com>
11200 * linux-low.c (select_event_lwp_callback): Update comments to
11201 no longer mention SIGTRAP.
11203 2015-03-18 Gary Benson <gbenson@redhat.com>
11205 * server.c (handle_query): Do not report vFile:fstat as supported.
11207 2015-03-11 Gary Benson <gbenson@redhat.com>
11209 * hostio.c (sys/types.h): New include.
11210 (sys/stat.h): Likewise.
11211 (common-remote-fileio.h): Likewise.
11212 (handle_fstat): New function.
11213 (handle_vFile): Handle vFile:fstat packets.
11215 2015-03-11 Gary Benson <gbenson@redhat.com>
11217 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11218 struct stat.st_blocks and struct stat.st_blksize.
11219 * configure: Regenerate.
11220 * config.in: Likewise.
11221 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11222 (OBS): Add common-remote-fileio.o.
11223 (common-remote-fileio.o): New rule.
11225 2015-03-09 Pedro Alves <palves@redhat.com>
11227 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11228 'struct sockaddr' pointer in 'accept' call.
11230 2015-03-09 Pedro Alves <palves@redhat.com>
11233 2015-03-07 Pedro Alves <palves@redhat.com>
11234 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11235 or <winsock2.h> here. Instead include "gdb_socket.h".
11236 (remote_open): Use union gdb_sockaddr_u.
11237 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11238 or <winsock2.h> here. Instead include "gdb_socket.h".
11239 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11240 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11242 (init_named_socket, gdb_agent_helper_thread): Use union
11245 2015-03-07 Pedro Alves <palves@redhat.com>
11247 * configure.ac (build_warnings): Move
11248 -Wdeclaration-after-statement to the C-specific set.
11249 * configure: Regenerate.
11251 2015-03-07 Pedro Alves <palves@redhat.com>
11253 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11254 or <winsock2.h> here. Instead include "gdb_socket.h".
11255 (remote_open): Use union gdb_sockaddr_u.
11256 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11257 or <winsock2.h> here. Instead include "gdb_socket.h".
11258 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11259 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11261 (init_named_socket, gdb_agent_helper_thread): Use union
11264 2015-03-07 Pedro Alves <palves@redhat.com>
11266 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11269 2015-03-06 Yao Qi <yao.qi@linaro.org>
11271 * linux-aarch64-low.c (aarch64_insert_point): Use
11272 show_debug_regs as a boolean.
11273 (aarch64_remove_point): Likewise.
11275 2015-03-05 Pedro Alves <palves@redhat.com>
11277 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11278 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11279 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11280 * nto-low.c (nto_target_ops): Likewise.
11281 * spu-low.c (spu_target_ops): Likewise.
11282 * win32-low.c (win32_target_ops): Likewise.
11284 2015-03-04 Pedro Alves <palves@redhat.com>
11286 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11287 Decide whether a breakpoint triggered based on the SIGTRAP's
11289 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11290 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11291 (linux_low_filter_event): Check for breakpoints before checking
11293 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11295 (linux_stopped_by_sw_breakpoint)
11296 (linux_supports_stopped_by_sw_breakpoint)
11297 (linux_stopped_by_hw_breakpoint)
11298 (linux_supports_stopped_by_hw_breakpoint): New functions.
11299 (linux_target_ops): Install new target methods.
11301 2015-03-04 Pedro Alves <palves@redhat.com>
11303 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11304 * server.c (swbreak_feature, hwbreak_feature): New globals.
11305 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11306 (captured_main): Clear swbreak_feature and hwbreak_feature.
11307 * server.h (swbreak_feature, hwbreak_feature): Declare.
11308 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11309 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11310 supports_stopped_by_hw_breakpoint>: New fields.
11311 (target_supports_stopped_by_sw_breakpoint)
11312 (target_stopped_by_sw_breakpoint)
11313 (target_supports_stopped_by_hw_breakpoint)
11314 (target_stopped_by_hw_breakpoint): Declare.
11316 2015-03-04 Pedro Alves <palves@redhat.com>
11318 enum lwp_stop_reason -> enum target_stop_reason
11319 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11320 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11321 (linux_wait_1, stuck_in_jump_pad_callback)
11322 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11323 (linux_stopped_by_watchpoint):
11324 * linux-low.h (enum lwp_stop_reason): Delete.
11325 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11326 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11328 2015-03-04 Yao Qi <yao.qi@linaro.org>
11330 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11332 2015-03-03 Gary Benson <gbenson@redhat.com>
11334 * hostio.c (handle_vFile): Fix prefix lengths.
11336 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11338 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11341 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11343 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11344 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11345 (clean): Add "rm -f" for above C files.
11346 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11347 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11348 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11349 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11350 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11351 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11352 (init_registers_s390x_vx_linux64)
11353 (init_registers_s390x_tevx_linux64)
11354 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11355 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11357 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11358 (s390_store_vxrs_high): New functions.
11359 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11361 (s390_arch_setup): Add logic for selecting one of the new target
11362 descriptions. Activate the new vector regsets if applicable.
11363 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11364 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11365 and init_registers_s390x_tevx_linux64.
11367 2015-03-01 Pedro Alves <palves@redhat.com>
11369 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11372 2015-02-27 Pedro Alves <palves@redhat.com>
11374 * linux-x86-low.c (u_debugreg_offset): New function.
11375 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11377 2015-02-27 Pedro Alves <palves@redhat.com>
11379 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11380 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11381 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11382 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11383 (ps_lsetfpregs, ps_getpid)
11384 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11385 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11386 (ps_lsetxregs, ps_plog): Declare.
11388 2015-02-27 Pedro Alves <palves@redhat.com>
11390 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11391 IP_AGENT_EXPORT_FUNC.
11392 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11393 IP_AGENT_EXPORT_FUNC.
11394 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11395 (IP_AGENT_EXPORT): Delete.
11396 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11397 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11398 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11399 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11400 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11401 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11402 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11403 (traceframe_read_count, traceframe_write_count)
11404 (traceframes_created, trace_state_variables, get_raw_reg)
11405 (get_trace_state_variable_value, set_trace_state_variable_value)
11406 (ust_loaded, helper_thread_id, cmd_buf): Use
11407 IPA_SYM_EXPORTED_NAME.
11408 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11409 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11410 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11411 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11412 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11413 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11414 EXTERN_C_PUSH/EXTERN_C_POP.
11415 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11416 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11417 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11418 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11419 (traceframe_write_count, traceframe_read_count)
11420 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11421 (about_to_request_buffer_space, get_trace_state_variable_value)
11422 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11423 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11424 EXTERN_C_PUSH/EXTERN_C_POP.
11425 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11426 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11427 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11428 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11429 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11430 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11431 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11432 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11434 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11435 (IP_AGENT_EXPORT_VAR_DECL): Define.
11436 (tracing): Declare.
11437 (gdb_agent_get_raw_reg): Declare.
11439 2015-02-27 Tom Tromey <tromey@redhat.com>
11440 Pedro Alves <palves@redhat.com>
11442 Rename symbols whose names are reserved C++ keywords throughout.
11444 2015-02-27 Pedro Alves <palves@redhat.com>
11446 * Makefile.in (COMPILER): New, get it from autoconf.
11447 (CXX): Get from autoconf instead.
11448 (COMPILE.pre): Use COMPILER.
11449 (CC-LD): Rename to ...
11450 (CC_LD): ... this. Use COMPILER.
11451 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11452 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11453 * acinclude.m4: Include build-with-cxx.m4.
11454 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11455 Disable -Werror by default if building in C++ mode.
11456 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11457 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11458 the C++ compiler. Save/restore CXXFLAGS too.
11459 * configure: Regenerate.
11461 2015-02-27 Pedro Alves <palves@redhat.com>
11463 * acinclude.m4: Include libiberty.m4.
11464 * configure.ac: Call libiberty_INIT.
11465 * config.in, configure: Regenerate.
11467 2015-02-26 Pedro Alves <palves@redhat.com>
11469 * linux-low.c (linux_wait_1): When incrementing the PC past a
11470 program breakpoint always use the_low_target.breakpoint_len as
11471 increment, rather than the maximum between that and
11472 the_low_target.decr_pc_after_break.
11474 2015-02-23 Pedro Alves <palves@redhat.com>
11476 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11477 thread was doing a step-over; always adjust the PC if
11478 we stepped over a permanent breakpoint.
11479 (linux_wait_1): If we stepped over breakpoint that was on top of a
11480 permanent breakpoint, manually advance the PC past it.
11482 2015-02-23 Pedro Alves <palves@redhat.com>
11484 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11486 (x86_fill_gregset, x86_store_gregset): Use it when handling
11489 2015-02-20 Pedro Alves <palves@redhat.com>
11491 * thread-db.c: Include "nat/linux-procfs.h".
11492 (thread_db_init): Skip listing new threads if the kernel supports
11493 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11495 2015-02-20 Pedro Alves <palves@redhat.com>
11497 * linux-low.c (status_pending_p_callback): Use ptid_match.
11499 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11501 PR breakpoints/16812
11502 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11503 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11504 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11506 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11508 PR breakpoints/15956
11509 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11511 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11513 * linux-low.c (linux_low_btrace_conf): Print size.
11514 * server.c (handle_btrace_conf_general_set): New.
11515 (hanle_general_set): Call handle_btrace_conf_general_set.
11516 (handle_query): Report Qbtrace-conf:bts:size as supported.
11518 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11520 * linux-low.c (linux_low_enable_btrace): Update parameters.
11521 (linux_low_btrace_conf): New.
11522 (linux_target_ops)<to_btrace_conf>: Initialize.
11523 * server.c (current_btrace_conf): New.
11524 (handle_btrace_enable): Rename to ...
11525 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11526 to target_enable_btrace. Update comment. Update users.
11527 (handle_qxfer_btrace_conf): New.
11528 (qxfer_packets): Add btrace-conf entry.
11529 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11530 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11531 (target_ops)<read_btrace_conf>: New.
11532 (target_enable_btrace): Update parameters.
11533 (target_read_btrace_conf): New.
11535 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11537 * server.c (handle_btrace_general_set): Remove call to
11538 target_supports_btrace.
11539 (supported_btrace_packets): New.
11540 (handle_query): Call supported_btrace_packets.
11541 * target.h: include btrace-common.h.
11542 (btrace_target_info): Removed.
11543 (supports_btrace, target_supports_btrace): Update parameters.
11545 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11547 * Makefile.in (SFILES): Add common/btrace-common.c.
11548 (OBS): Add common/btrace-common.o.
11549 (btrace-common.o): Add build rules.
11550 * linux-low: Include btrace-common.h.
11551 (linux_low_read_btrace): Use struct btrace_data. Call
11552 btrace_data_init and btrace_data_fini.
11554 2015-02-06 Pedro Alves <palves@redhat.com>
11556 * thread-db.c (find_new_threads_callback): Add debug output.
11558 2015-02-04 Pedro Alves <palves@redhat.com>
11560 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11561 (resume_stopped_resumed_lwps): New function.
11562 (linux_wait_for_event_filtered): Use it.
11564 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11566 * Makefile.in (SFILES): Add linux-personality.c.
11567 (linux-personality.o): New rule.
11568 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11569 list of objects to be built.
11570 * linux-low.c: Include nat/linux-personality.h.
11571 (linux_create_inferior): Remove code to disable address space
11572 randomization (moved to ../nat/linux-personality.c). Create
11573 cleanup to disable address space randomization.
11575 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11577 * Makefile.in (posix-strerror.o): New rule.
11578 (mingw-strerror.o): Likewise.
11579 * configure: Regenerated.
11580 * configure.ac: Source file ../common/common.host. Initialize new
11581 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11583 2015-01-14 Yao Qi <yao@codesourcery.com>
11585 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11586 (ppc-linux.o): New rule.
11587 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11588 * configure.ac: AC_CHECK_FUNCS(getauxval).
11589 * config.in: Re-generated.
11590 * configure: Re-generated.
11591 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11592 ppc64_64bit_inferior_p
11594 2015-01-14 Yao Qi <yao@codesourcery.com>
11596 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11597 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11598 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11599 (PT_ORIG_R3, PT_TRAP): Likewise.
11600 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11601 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11602 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11604 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11606 * i387-fp.c (i387_cache_to_xsave): In look over
11607 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11608 zmmh_low_space field by use of zmmh_high_space.
11610 2015-01-09 Pedro Alves <palves@redhat.com>
11612 * linux-low.c (step_over_bkpt): Move higher up in the file.
11613 (handle_extended_wait): Don't store the stop_pc here.
11614 (get_stop_pc): Adjust comments and rename to ...
11615 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11616 stopped for a software breakpoint or hardware breakpoint.
11617 (thread_still_has_status_pending_p): New function.
11618 (status_pending_p_callback): Use
11619 thread_still_has_status_pending_p. If the event is no longer
11620 interesting, resume the LWP.
11621 (handle_tracepoints): Add assert.
11622 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11623 (wstatus_maybe_breakpoint): New function.
11624 (cancel_breakpoint): Delete function.
11625 (check_stopped_by_watchpoint): New function, factored out from
11626 linux_low_filter_event.
11627 (lp_status_maybe_breakpoint): Delete function.
11628 (linux_low_filter_event): Remove filter_ptid argument.
11629 Leave thread group exits pending here. Store the LWP's stop PC.
11630 Always leave events pending.
11631 (linux_wait_for_event_filtered): Pull all events out of the
11632 kernel, and leave them all pending.
11633 (count_events_callback, select_event_lwp_callback): Consider all
11635 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11636 (select_event_lwp): Only give preference to the stepping LWP in
11637 all-stop mode. Adjust comments.
11638 (ignore_event): New function.
11639 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11640 references to cancel_breakpoints. Adjust to renames. Also give
11641 equal priority to all LWPs that have had events in non-stop mode.
11642 If reporting a software breakpoint event, unadjust the LWP's PC.
11643 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11644 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11646 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11647 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11648 (linux_stopped_by_watchpoint): Adjust.
11649 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11650 * linux-low.h (enum lwp_stop_reason): New.
11651 (struct lwp_info) <stop_pc>: Adjust comment.
11652 <stopped_by_watchpoint>: Delete field.
11653 <stop_reason>: New field.
11654 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11655 * mem-break.c (software_breakpoint_inserted_here)
11656 (hardware_breakpoint_inserted_here): New function.
11657 * mem-break.h (software_breakpoint_inserted_here)
11658 (hardware_breakpoint_inserted_here): Declare.
11659 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11660 (cancel_breakpoints): Delete.
11661 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11662 (upload_fast_traceframes): Remove references to
11663 cancel_breakpoints.
11665 2015-01-09 Pedro Alves <palves@redhat.com>
11667 * thread-db.c (find_new_threads_callback): Ignore thread if the
11668 kernel thread ID is -1.
11670 2015-01-09 Pedro Alves <palves@redhat.com>
11672 * linux-low.c (linux_attach_fail_reason_string): Move to
11673 nat/linux-ptrace.c, and rename.
11674 (linux_attach_lwp): Update comment.
11675 (attach_proc_task_lwp_callback): New function.
11676 (linux_attach): Adjust to rename and use
11677 linux_proc_attach_tgid_threads.
11678 (linux_attach_fail_reason_string): Delete declaration.
11680 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11682 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11683 * server.c (gdbserver_version): Likewise.
11685 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11687 * remote-utils.c: Include ctype.h.
11688 (input_interrupt): Explicitly handle the case when the char
11689 received is the NUL byte. Improve the printing of non-ASCII
11692 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11694 * linux-low.c (linux_low_filter_event): Update call to
11695 linux_enable_event_reporting following the addition of
11696 a new parameter to that function.
11698 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11701 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11702 (AARCH64_FPCR_REGNO): Likewise.
11703 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11704 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11705 (aarch64_store_fpregset): Likewise.
11707 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11709 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11710 Remove FIXME comment about assumption about N.
11712 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11714 * configure.ac: If large-file support is disabled in GDBserver,
11715 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11716 * configure: Regenerate.
11718 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11720 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11721 warning upon ENODATA from ptrace.
11722 * linux-s390-low.c (s390_store_tdb): New.
11723 (s390_regsets): Add regset for NT_S390_TDB.
11725 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11727 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11728 without a fill_function.
11729 * linux-s390-low.c (s390_fill_last_break): Remove.
11730 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11731 (s390_arch_setup): Use regset's size instead of fill_function for
11732 loop end condition.
11734 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11736 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11737 the regset's store function when ptrace returned an error.
11738 * regcache.c (get_thread_regcache): Invalidate register cache
11739 before fetching inferior's registers.
11741 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11743 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11744 while-loop as for-loop.
11745 (regsets_store_inferior_registers): Likewise.
11747 2014-11-28 Yao Qi <yao@codesourcery.com>
11749 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11750 * config.in, configure: Re-generate.
11751 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11754 2014-11-21 Yao Qi <yao@codesourcery.com>
11756 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11757 (AC_CHECK_HEADERS): Remove malloc.h.
11758 * configure: Re-generated.
11759 * config.in: Re-generated.
11760 * server.h: Don't include alloca.h and malloc.h.
11761 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11762 Don't include malloc.h.
11764 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11766 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11767 corresponding ERRNO check in same block.
11769 2014-11-12 Pedro Alves <palves@redhat.com>
11771 * server.c (cont_thread): Update comment.
11772 (start_inferior, attach_inferior): No longer clear cont_thread.
11773 (handle_v_cont): No longer set cont_thread.
11774 (captured_main): Clear cont_thread each time a GDB connects.
11776 2014-11-12 Pedro Alves <palves@redhat.com>
11778 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11779 thread, and don't resume all threads if the Hc thread has exited.
11781 2014-11-12 Pedro Alves <palves@redhat.com>
11783 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11784 the process group instead of to a specific LWP.
11786 2014-10-15 Pedro Alves <palves@redhat.com>
11789 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11791 (arm_set_thread_context): Delete.
11792 (the_low_target): Adjust.
11793 * win32-i386-low.c (debug_registers_changed)
11794 (debug_registers_used): Delete.
11795 (update_debug_registers_callback): New function.
11796 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11797 needing to update their debug registers.
11798 (win32_get_current_dr): New function.
11799 (x86_dr_low_get_addr, x86_dr_low_get_control)
11800 (x86_dr_low_get_status): Fetch the debug register from the thread
11802 (i386_initial_stuff): Adjust.
11803 (i386_get_thread_context): Remove current_event parameter. Don't
11804 clear debug_registers_changed nor copy DR values to
11806 (i386_set_thread_context): Delete.
11807 (i386_prepare_to_resume): New function.
11808 (i386_thread_added): Mark the thread as needing to update irs
11810 (the_low_target): Remove i386_set_thread_context and install
11811 i386_prepare_to_resume.
11812 * win32-low.c (win32_get_thread_context): Adjust.
11813 (win32_set_thread_context): Use SetThreadContext
11815 (win32_prepare_to_resume): New function.
11816 (win32_require_context): New function, factored out from ...
11817 (thread_rec): ... this.
11818 (continue_one_thread): Call win32_prepare_to_resume on each thread
11819 we're about to continue.
11820 (win32_resume): Call win32_prepare_to_resume on the event thread.
11821 * win32-low.h (struct win32_thread_info)
11822 <debug_registers_changed>: New field.
11823 (struct win32_target_ops): Change prototype of set_thread_context,
11824 delete set_thread_context and add prepare_to_resume.
11825 (win32_require_context): New declaration.
11827 2014-10-08 Gary Benson <gbenson@redhat.com>
11829 * server.h: Do not include common-exceptions.h.
11831 2014-10-08 Gary Benson <gbenson@redhat.com>
11833 * server.h: Do not include cleanups.h.
11835 2014-09-30 James Hogan <james.hogan@imgtec.com>
11837 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11838 mips64-dsp-linux.c.
11840 2014-09-23 Yao Qi <yao@codesourcery.com>
11842 * linux-low.c (lp_status_maybe_breakpoint): New function.
11843 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11844 (count_events_callback): Likewise.
11845 (select_event_lwp_callback): Likewise.
11846 (cancel_breakpoints_callback): Likewise.
11848 2014-09-19 Don Breazeal <donb@codesourcery.com>
11850 * linux-low.c (handle_extended_wait): Call
11851 linux_ptrace_get_extended_event.
11852 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11853 linux_is_extended_waitstatus.
11855 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11857 * Makefile.in (CPPFLAGS): Define.
11858 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11859 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11861 2014-09-16 Gary Benson <gbenson@redhat.com>
11863 * inferiors.h (current_inferior): Renamed as...
11864 (current_thread): New variable. All uses updated.
11865 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11866 (maybe_move_out_of_jump_pad): Likewise.
11867 (cancel_breakpoint): Likewise.
11868 (linux_low_filter_event): Likewise.
11869 (wait_for_sigstop): Likewise.
11870 (linux_resume_one_lwp): Likewise.
11871 (need_step_over_p): Likewise.
11872 (start_step_over): Likewise.
11873 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11874 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11875 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11876 and save_inferior as saved_thread.
11877 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11879 (regcache_invalidate_thread): Likewise.
11880 * remote-utils.c (prepare_resume_reply): Likewise.
11881 * thread-db.c (thread_db_get_tls_address): Likewise.
11882 (disable_thread_event_reporting): Likewise.
11883 (remove_thread_event_breakpoints): Likewise.
11884 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11886 * target.h (set_desired_inferior): Renamed as...
11887 (set_desired_thread): New declaration. All uses updated.
11888 * server.c (myresume): Updated comment to reference thread instead
11890 (handle_serial_event): Likewise.
11891 (handle_target_event): Likewise.
11893 2014-09-12 Tom Tromey <tromey@redhat.com>
11894 Gary Benson <gbenson@redhat.com>
11896 * regcache.h: Include common-regcache.h.
11897 (regcache_read_pc): Don't declare.
11898 * regcache.c (get_thread_regcache_for_ptid): New function.
11900 2014-09-11 Tom Tromey <tromey@redhat.com>
11901 Gary Benson <gbenson@redhat.com>
11903 * symbol.c: New file.
11904 * Makefile.in (SFILES): Add symbol.c.
11905 (OBS): Add symbol.o.
11907 2014-09-11 Gary Benson <gbenson@redhat.com>
11909 * target.c (target_stop_ptid, target_continue_ptid): New
11912 2014-09-11 Tom Tromey <tromey@redhat.com>
11913 Gary Benson <gbenson@redhat.com>
11915 * target.h: Include target/target.h.
11916 * target.c (target_read_memory, target_read_uint32)
11917 (target_write_memory): New functions.
11919 2014-09-11 Gary Benson <gbenson@redhat.com>
11921 * server.h (debug_hw_points): Don't declare.
11922 * server.c (debug_hw_points): Don't define. Replace all uses
11923 with show_debug_regs.
11924 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11925 all uses with show_debug_regs.
11927 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11929 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11930 endianness into account.
11931 (ppc_supply_ptrace_register): Likewise.
11933 2014-09-03 James Hogan <james.hogan@imgtec.com>
11935 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11936 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11938 2014-09-03 Gary Benson <gbenson@redhat.com>
11940 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11941 ALL_DEBUG_ADDRESS_REGISTERS.
11943 2014-09-02 Gary Benson <gbenson@redhat.com>
11945 * i386-low.h: Renamed as...
11946 * x86-low.h: New file. All type, function and variable name
11947 prefixes changed from "i386_" to "x86_". All references updated.
11948 * i386-low.c: Renamed as...
11949 * x86-low.c: New file. All type, function and variable name
11950 prefixes changed from "i386_" to "x86_". All references updated.
11952 2014-09-02 Gary Benson <gbenson@redhat.com>
11954 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11955 (x86_linux_new_thread): Likewise.
11957 2014-08-29 Gary Benson <gbenson@redhat.com>
11959 * server.h (setjmp.h): Do not include.
11960 (toplevel): Do not declare.
11961 (common-exceptions.h): Include.
11962 (cleanups.h): Likewise.
11963 * server.c (toplevel): Do not define.
11964 (exit_code): New static global.
11965 (detach_or_kill_for_exit_cleanup): New function.
11966 (main): New function. Original main renamed to...
11967 (captured_main): New function.
11968 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11970 2014-08-29 Gary Benson <gbenson@redhat.com>
11972 * Makefile.in (SFILES): Add common/common-exceptions.c.
11973 (OBS): Add common-exceptions.o.
11974 (common-exceptions.o): New rule.
11975 * utils.c (prepare_to_throw_exception): New function.
11977 2014-08-29 Gary Benson <gbenson@redhat.com>
11979 * config.in: Regenerate.
11980 * configure: Likewise.
11982 2014-08-29 Gary Benson <gbenson@redhat.com>
11984 * Makefile.in (SFILES): Add common/cleanups.c.
11986 (cleanups.o): New rule.
11988 2014-08-29 Gary Benson <gbenson@redhat.com>
11990 * utils.c (internal_vwarning): New function.
11992 2014-08-28 Gary Benson <gbenson@redhat.com>
11994 * utils.h (fatal): Remove declaration.
11995 * utils.c (fatal): Remove function.
11997 2014-08-28 Gary Benson <gbenson@redhat.com>
11999 * tracepoint.c (gdb_agent_init): Replace fatal with
12001 (initialize_tracepoint): Likewise.
12003 2014-08-28 Gary Benson <gbenson@redhat.com>
12005 * remote-utils.c (remote_prepare): Replace fatal with error.
12007 2014-08-28 Gary Benson <gbenson@redhat.com>
12009 * linux-low.c (linux_async): Replace fatal with warning.
12010 Tidy up and return.
12011 (linux_start_non_stop): Return -1 if linux_async failed.
12013 2014-08-28 Gary Benson <gbenson@redhat.com>
12015 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12017 (i386_dr_low_get_addr): Remove vague comment.
12018 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12021 2014-08-28 Gary Benson <gbenson@redhat.com>
12023 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12024 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12026 (linux_resume_one_lwp): Likewise.
12027 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12029 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12030 with internal_error.
12031 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12032 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12033 (find_register_by_name): Replace fatal with internal_error.
12034 (find_regno): Likewise.
12035 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12036 * thread-db.c (thread_db_create_event): Likewise.
12037 (thread_db_load_search): Likewise.
12038 (try_thread_db_load_1): Likewise.
12039 * tracepoint.c (get_jump_space_head): Replace fatal with
12041 (claim_trampoline_space): Likewise.
12042 (have_fast_tracepoint_trampoline_buffer): Likewise.
12043 (cmd_qtstart): Likewise.
12044 (stop_tracing): Likewise.
12045 (fast_tracepoint_collecting): Likewise.
12046 (target_malloc): Likewise.
12047 (download_tracepoint): Likewise.
12048 (download_trace_state_variables): Replace check with gdb_assert.
12049 (upload_fast_traceframes): Replace fatal with internal_error.
12051 2014-08-19 Tom Tromey <tromey@redhat.com>
12052 Gary Benson <gbenson@redhat.com>
12054 * Makefile.in (SFILES): Add common/common-debug.c.
12055 (OBS): Add common-debug.o.
12056 (common-debug.o): New rule.
12057 * debug.h (debug_printf): Don't declare.
12058 * debug.c (debug_printf): Renamed and rewritten as...
12059 (debug_vprintf): New function.
12061 2014-08-19 Gary Benson <gbenson@redhat.com>
12063 * utils.h: Do not include print-utils.h.
12065 2014-08-19 Tom Tromey <tromey@redhat.com>
12066 Gary Benson <gbenson@redhat.com>
12068 * server.h: Add static assertion.
12069 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12071 2014-08-19 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12074 * Makefile.in (SFILES): Add common/errors.c.
12075 (OBS): Add errors.o.
12076 (IPA_OBS): Add errors-ipa.o.
12077 (errors.o): New rule.
12078 (errors-ipa.o): Likewise.
12079 * utils.h (perror_with_name, error, warning): Don't declare.
12080 * utils.c (warning): Renamed and rewritten as...
12081 (vwarning): New function.
12082 (error): Renamed and rewritten as...
12083 (verror): New function.
12084 (internal_error): Renamed and rewritten as...
12085 (internal_verror): New function.
12087 2014-08-07 Gary Benson <gbenson@redhat.com>
12089 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12090 * configure: Regenerate.
12091 * config.in: Likewise.
12092 * server.h: Do not include errno.h.
12093 * event-loop.c: Likewise.
12094 * hostio-errno.c: Likewise.
12095 * linux-low.c: Likewise.
12096 * remote-utils.c: Likewise.
12097 * spu-low.c: Likewise.
12098 * utils.c: Likewise.
12099 * gdbreplay.c: Unconditionally include errno.h.
12101 2014-08-07 Gary Benson <gbenson@redhat.com>
12103 * server.h: Do not include string.h.
12104 * event-loop.c: Likewise.
12105 * linux-low.c: Likewise.
12106 * regcache.c: Likewise.
12107 * remote-utils.c: Likewise.
12108 * spu-low.c: Likewise.
12109 * utils.c: Likewise.
12111 2014-08-07 Gary Benson <gbenson@redhat.com>
12113 * server.h: Do not include gdb_assert.h.
12115 2014-08-07 Gary Benson <gbenson@redhat.com>
12117 * server.h: Do not include common-utils.h.
12119 2014-08-07 Gary Benson <gbenson@redhat.com>
12121 * server.h: Do not include ptid.h.
12122 * notif.h: Likewise.
12124 2014-08-07 Gary Benson <gbenson@redhat.com>
12126 * server.h: Do not include gdb_locale.h.
12128 2014-08-07 Gary Benson <gbenson@redhat.com>
12130 * server.h: Do not include gdb/signals.h.
12131 * win32-low.c: Likewise.
12133 2014-08-07 Gary Benson <gbenson@redhat.com>
12135 * server.h: Do not include pathmax.h.
12137 2014-08-07 Gary Benson <gbenson@redhat.com>
12139 * server.h: Do not include libiberty.h.
12140 * linux-bfin-low.c: Likewise.
12142 2014-08-07 Gary Benson <gbenson@redhat.com>
12144 * server.h: Do not include ansidecl.h.
12146 2014-08-07 Gary Benson <gbenson@redhat.com>
12148 * linux-x86-low.c: Do not include stddef.h.
12149 * lynx-ppc-low.c: Likewise.
12150 * tracepoint.c: Likewise.
12152 2014-08-07 Gary Benson <gbenson@redhat.com>
12154 * server.h: Do not include stdarg.h.
12155 * nto-low.c: Likewise.
12157 2014-08-07 Gary Benson <gbenson@redhat.com>
12159 * server.h: Do not include stdlib.h.
12160 * inferiors.c: Likewise.
12161 * linux-low.c: Likewise.
12162 * regcache.c: Likewise.
12163 * spu-low.c: Likewise.
12164 * tracepoint.c: Likewise.
12165 * utils.c: Likewise.
12167 2014-08-07 Gary Benson <gbenson@redhat.com>
12169 * server.h: Do not include stdio.h.
12170 * linux-low.c: Likewise.
12171 * remote-utils.c: Likewise.
12172 * spu-low.c: Likewise.
12173 * utils.c: Likewise.
12174 * wincecompat.c: Likewise.
12176 2014-08-06 Gary Benson <gbenson@redhat.com>
12178 * regcache.c (init_register_cache): Move conditionals inside if.
12180 2014-08-06 Gary Benson <gbenson@redhat.com>
12182 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12184 2014-07-31 Gary Benson <gbenson@redhat.com>
12186 * ax.h: Do not include server.h.
12187 * gdbthread.h: Likewise.
12188 * lynx-low.h: Likewise.
12189 * notif.h: Likewise.
12191 2014-07-30 Gary Benson <gbenson@redhat.com>
12193 * server.h: Include common-defs.h.
12194 Do not include config.h or build-gnulib-gdbserver/config.h.
12196 2014-07-30 Gary Benson <gbenson@redhat.com>
12198 * hostio-errno.c: Move server.h to top of includes list.
12199 * inferiors.c: Likewise.
12200 * linux-x86-low.c: Likewise.
12201 * notif.c: Include server.h.
12203 2014-07-24 Tom Tromey <tromey@redhat.com>
12204 Gary Benson <gbenson@redhat.com>
12206 * server.h (CORE_ADDR): Now unsigned.
12208 2014-07-16 Pedro Alves <palves@redhat.com>
12210 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12212 2014-07-15 Pedro Alves <palves@redhat.com>
12214 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12217 2014-07-11 Pedro Alves <palves@redhat.com>
12219 * linux-low.c (kill_wait_lwp): New function, based on
12220 kill_one_lwp_callback, but use my_waitpid directly.
12221 (kill_one_lwp_callback, linux_kill): Use it.
12223 2014-06-23 Pedro Alves <palves@redhat.com>
12225 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12226 before setting DR0..DR3.
12228 2014-06-20 Gary Benson <gbenson@redhat.com>
12230 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12231 * configure: Regenerated.
12232 * config.in: Likewise.
12234 2014-06-20 Gary Benson <gbenson@redhat.com>
12236 * Makefile.in (SFILES): Update locations for files moved
12237 from common to nat.
12238 (object file files): Reordered.
12240 2014-06-20 Gary Benson <gbenson@redhat.com>
12242 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12243 (i386_dr_low_set_addr): Likewise.
12244 (i386_dr_low_get_addr): Likewise.
12245 (i386_dr_low_can_set_control): Likewise.
12246 (i386_dr_low_set_control): Likewise.
12247 (i386_dr_low_get_control): Likewise.
12248 (i386_dr_low_get_status): Likewise.
12249 (i386_get_debug_register_length): Likewise.
12250 * linux-x86-low.c (i386_dr_low_set_addr):
12251 Changed signature. Made static.
12252 (i386_dr_low_get_addr): Likewise.
12253 (i386_dr_low_set_control): Likewise.
12254 (i386_dr_low_get_control): Likewise.
12255 (i386_dr_low_get_status): Likewise.
12256 (i386_dr_low): New global variable.
12257 * win32-i386-low.c (i386_dr_low_set_addr):
12258 Changed signature. Made static.
12259 (i386_dr_low_get_addr): Likewise.
12260 (i386_dr_low_set_control): Likewise.
12261 (i386_dr_low_get_control): Likewise.
12262 (i386_dr_low_get_status): Likewise.
12263 (i386_dr_low): New global variable.
12265 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12267 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12268 * Makefile.in (AR, AR_FLAGS): Define.
12269 * configure: Regenerate.
12271 2014-06-19 Gary Benson <gbenson@redhat.com>
12273 * Makefile.in (i386-dregs.o): New rule.
12274 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12275 * i386-low.c (target.h): Remove include.
12276 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12277 (DR_CONTROL_SHIFT): Likewise.
12278 (DR_CONTROL_SIZE): Likewise.
12279 (DR_RW_EXECUTE): Likewise.
12280 (DR_RW_WRITE): Likewise.
12281 (DR_RW_READ): Likewise.
12282 (DR_RW_IORW): Likewise.
12283 (DR_LEN_1): Likewise.
12284 (DR_LEN_2): Likewise.
12285 (DR_LEN_4): Likewise.
12286 (DR_LEN_8): Likewise.
12287 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12288 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12289 (DR_ENABLE_SIZE): Likewise.
12290 (DR_LOCAL_SLOWDOWN): Likewise.
12291 (DR_GLOBAL_SLOWDOWN): Likewise.
12292 (DR_CONTROL_RESERVED): Likewise.
12293 (I386_DR_CONTROL_MASK): Likewise.
12294 (I386_DR_VACANT): Likewise.
12295 (I386_DR_LOCAL_ENABLE): Likewise.
12296 (I386_DR_GLOBAL_ENABLE): Likewise.
12297 (I386_DR_DISABLE): Likewise.
12298 (I386_DR_SET_RW_LEN): Likewise.
12299 (I386_DR_GET_RW_LEN): Likewise.
12300 (I386_DR_WATCH_HIT): Likewise.
12301 (i386_wp_op_t): Likewise.
12302 (i386_show_dr): Likewise.
12303 (i386_length_and_rw_bits): Likewise.
12304 (i386_insert_aligned_watchpoint): Likewise.
12305 (i386_remove_aligned_watchpoint): Likewise.
12306 (i386_handle_nonaligned_watchpoint): Likewise.
12307 i386_update_inferior_debug_regs(): Likewise.
12308 (i386_dr_insert_watchpoint): Likewise.
12309 (i386_dr_remove_watchpoint): Likewise.
12310 (i386_dr_region_ok_for_watchpoint): Likewise.
12311 (i386_dr_stopped_data_address): Likewise.
12312 (i386_dr_stopped_by_watchpoint): Likewise.
12314 2014-06-19 Gary Benson <gbenson@redhat.com>
12316 * i386-low.c (i386_dr_show): Renamed to
12317 i386_show_dr and made static. All uses updated.
12318 (i386_dr_length_and_rw_bits): Renamed to
12319 i386_length_and_rw_bits and made static.
12321 (i386_dr_insert_aligned_watchpoint): Renamed to
12322 i386_insert_aligned_watchpoint and made static.
12324 (i386_dr_remove_aligned_watchpoint): Renamed to
12325 i386_remove_aligned_watchpoint and made static.
12327 (i386_dr_update_inferior_debug_regs): Renamed to
12328 i386_update_inferior_debug_regs and made static.
12331 2014-06-18 Gary Benson <gbenson@redhat.com>
12333 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12334 (i386_dr_low_can_set_control): Likewise.
12335 (i386_get_debug_register_length): Likewise.
12336 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12337 (i386_dr_low_can_set_control): Likewise.
12338 (i386_get_debug_register_length): Likewise.
12340 2014-06-17 Gary Benson <gbenson@redhat.com>
12342 * i386-low.h (i386-dregs.h): New include.
12343 (DR_FIRSTADDR): Now in i386-dregs.h.
12344 (DR_LASTADDR): Likewise.
12345 (DR_NADDR): Likewise.
12346 (DR_STATUS): Likewise.
12347 (DR_CONTROL): Likewise.
12348 (i386_debug_reg_state): Likewise.
12349 (i386_dr_insert_watchpoint): Likewise.
12350 (i386_dr_remove_watchpoint): Likewise.
12351 (i386_dr_region_ok_for_watchpoint): Likewise.
12352 (i386_dr_stopped_data_address): Likewise.
12353 (i386_dr_stopped_by_watchpoint): Likewise.
12354 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12356 2014-06-18 Gary Benson <gbenson@redhat.com>
12358 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12359 i386_dr_insert_watchpoint.
12360 (i386_low_remove_watchpoint): Renamed to
12361 i386_dr_remove_watchpoint.
12362 (i386_low_region_ok_for_watchpoint): Renamed to
12363 i386_dr_region_ok_for_watchpoint.
12364 (i386_low_stopped_data_address): Renamed to
12365 i386_dr_stopped_data_address.
12366 (i386_low_stopped_by_watchpoint): Renamed to
12367 i386_dr_stopped_by_watchpoint.
12368 * i386-low.c (i386_show_dr): Renamed to
12369 i386_dr_show and made nonstatic. All uses updated.
12370 (i386_length_and_rw_bits): Renamed to
12371 i386_dr_length_and_rw_bits and made nonstatic.
12373 (i386_insert_aligned_watchpoint): Renamed to
12374 i386_dr_insert_aligned_watchpoint and made nonstatic.
12376 (i386_remove_aligned_watchpoint): Renamed to
12377 i386_dr_remove_aligned_watchpoint and made nonstatic.
12379 (i386_update_inferior_debug_regs): Renamed to
12380 i386_dr_update_inferior_debug_regs and made nonstatic.
12382 (i386_low_insert_watchpoint): Renamed to
12383 i386_dr_insert_watchpoint. All uses updated.
12384 (i386_low_remove_watchpoint): Renamed to
12385 i386_dr_remove_watchpoint. All uses updated.
12386 (i386_low_region_ok_for_watchpoint): Renamed to
12387 i386_dr_region_ok_for_watchpoint. All uses updated.
12388 (i386_low_stopped_data_address): Renamed to
12389 i386_dr_stopped_data_address. All uses updated.
12390 (i386_low_stopped_by_watchpoint): Renamed to
12391 i386_dr_stopped_by_watchpoint. All uses updated.
12393 2014-06-18 Gary Benson <gbenson@redhat.com>
12395 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12396 (i386_dr_low_can_set_control): Likewise.
12397 (i386_insert_aligned_watchpoint): New check.
12399 2014-06-18 Gary Benson <gbenson@redhat.com>
12401 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12404 2014-06-18 Gary Benson <gbenson@redhat.com>
12406 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12407 instead of fatal and error.
12408 (i386_handle_nonaligned_watchpoint): Likewise.
12410 2014-06-18 Gary Benson <gbenson@redhat.com>
12412 * i386-low.c (i386_get_debug_register_length): New macro.
12413 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12414 (i386_show_dr): Use debug_printf instead of fprintf. Use
12415 phex to format values.
12417 2014-06-18 Gary Benson <gbenson@redhat.com>
12419 * i386-low.h: Comment changes.
12420 * i386-low.c: Likewise.
12422 2014-06-18 Gary Benson <gbenson@redhat.com>
12424 * i386-low.c: Whitespace changes.
12426 2014-06-12 Tom Tromey <tromey@redhat.com>
12428 * utils.c (freeargv): Remove.
12430 2014-06-12 Tom Tromey <tromey@redhat.com>
12432 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12433 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12434 (parse_debug_format_options): Likewise.
12435 (gdbserver_usage): Likewise.
12436 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12437 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12438 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12440 ($(LIBGNU)): Depend on libiberty.
12441 (all-lib): Recurse into all subdirs.
12442 (install-only): Invoke "install" target in subdirs.
12443 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12445 * configure: Rebuild.
12446 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12447 for vasprintf, vsnprintf, or gettimeofday.
12448 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12451 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12453 * development.sh: Delete.
12454 * Makefile.in (config.status): Adjust dependency on development.sh.
12455 * configure.ac: Adjust development.sh source call.
12456 * configure: Regenerate.
12458 2014-06-02 Pedro Alves <palves@redhat.com>
12460 * ax.c (gdb_free_agent_expr): New function.
12461 * ax.h (gdb_free_agent_expr): New declaration.
12462 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12464 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12466 (clear_breakpoint_conditions_and_commands): New function.
12467 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12468 (clear_breakpoint_conditions_and_commands): New declaration.
12470 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12472 * linux-aarch64-low.c (asm/ptrace.h): Include.
12474 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12476 Fix TLS access for -static -pthread.
12477 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12478 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12479 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12481 2014-05-20 Pedro Alves <palves@redhat.com>
12483 * linux-aarch64-low.c (aarch64_insert_point)
12484 (aarch64_remove_point): No longer check whether the type is
12485 supported here. Adjust to new interface.
12486 (the_low_target): Install aarch64_supports_z_point_type as
12487 supports_z_point_type method.
12488 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12489 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12490 instead of a Z packet char. Adjust.
12491 (arm_supports_z_point_type): New function.
12492 (arm_insert_point, arm_remove_point): Adjust to new interface.
12493 (the_low_target): Install arm_supports_z_point_type.
12494 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12495 (cris_insert_point, cris_remove_point): Adjust to new interface.
12496 Don't check whether the type is supported here.
12497 (the_low_target): Install cris_supports_z_point_type.
12498 * linux-low.c (linux_supports_z_point_type): New function.
12499 (linux_insert_point, linux_remove_point): Adjust to new interface.
12500 * linux-low.h (struct linux_target_ops) <insert_point,
12501 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12502 raw_breakpoint pointer parameter.
12503 <supports_z_point_type>: New method.
12504 * linux-mips-low.c (mips_supports_z_point_type): New function.
12505 (mips_insert_point, mips_remove_point): Adjust to new interface.
12506 Use mips_supports_z_point_type.
12507 (the_low_target): Install mips_supports_z_point_type.
12508 * linux-ppc-low.c (the_low_target): Install NULL as
12509 supports_z_point_type method.
12510 * linux-s390-low.c (the_low_target): Install NULL as
12511 supports_z_point_type method.
12512 * linux-sparc-low.c (the_low_target): Install NULL as
12513 supports_z_point_type method.
12514 * linux-x86-low.c (x86_supports_z_point_type): New function.
12515 (x86_insert_point): Adjust to new insert_point interface. Use
12516 insert_memory_breakpoint. Adjust to new
12517 i386_low_insert_watchpoint interface.
12518 (x86_remove_point): Adjust to remove_point interface. Use
12519 remove_memory_breakpoint. Adjust to new
12520 i386_low_remove_watchpoint interface.
12521 (the_low_target): Install x86_supports_z_point_type.
12522 * lynx-low.c (lynx_target_ops): Install NULL as
12523 supports_z_point_type callback.
12524 * nto-low.c (nto_supports_z_point_type): New.
12525 (nto_insert_point, nto_remove_point): Adjust to new interface.
12526 (nto_target_ops): Install nto_supports_z_point_type.
12527 * mem-break.c: Adjust intro comment.
12528 (struct raw_breakpoint) <raw_type, size>: New fields.
12529 <inserted>: Update comment.
12530 <shlib_disabled>: Delete field.
12531 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12532 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12533 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12534 (raw_bkpt_type_to_target_hw_bp_type): New function.
12535 (find_enabled_raw_code_breakpoint_at): New function.
12536 (find_raw_breakpoint_at): New type and size parameters. Use them.
12537 (insert_memory_breakpoint): New function, based off
12538 set_raw_breakpoint_at.
12539 (remove_memory_breakpoint): New function.
12540 (set_raw_breakpoint_at): Reimplement.
12541 (set_breakpoint): New, based on set_breakpoint_at.
12542 (set_breakpoint_at): Reimplement.
12543 (delete_raw_breakpoint): Go through the_target->remove_point
12544 instead of assuming memory breakpoints.
12545 (find_gdb_breakpoint_at): Delete.
12546 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12547 (find_gdb_breakpoint): New function.
12548 (set_gdb_breakpoint_at): Delete.
12549 (z_type_supported): New function.
12550 (set_gdb_breakpoint_1): New function, loosely based off
12551 set_gdb_breakpoint_at.
12552 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12553 (delete_gdb_breakpoint_at): Delete.
12554 (delete_gdb_breakpoint_1): New function, loosely based off
12555 delete_gdb_breakpoint_at.
12556 (delete_gdb_breakpoint): New function.
12557 (clear_gdb_breakpoint_conditions): Rename to ...
12558 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12560 (add_condition_to_breakpoint): Make static.
12561 (add_breakpoint_condition): Take a struct breakpoint pointer
12562 instead of an address. Adjust.
12563 (gdb_condition_true_at_breakpoint): Rename to ...
12564 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12566 (gdb_condition_true_at_breakpoint): Reimplement.
12567 (add_breakpoint_commands): Take a struct breakpoint pointer
12568 instead of an address. Adjust.
12569 (gdb_no_commands_at_breakpoint): Rename to ...
12570 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12571 parameter. Return true if no breakpoint was found. Change debug
12573 (gdb_no_commands_at_breakpoint): Reimplement.
12574 (run_breakpoint_commands): Rename to ...
12575 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12576 and change return type to boolean.
12577 (run_breakpoint_commands): New function.
12578 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12579 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12580 breakpoint. Go through the_target->remove_point instead of
12581 assuming memory breakpoint.
12582 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12583 software and hardware breakpoints.
12584 (reinsert_raw_breakpoint): Go through the_target->insert_point
12585 instead of assuming memory breakpoint.
12586 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12587 software and hardware breakpoints.
12588 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12589 Check both software and hardware breakpoints.
12590 (validate_inserted_breakpoint): Assert the breakpoint is a
12591 software breakpoint. Set the inserted flag to -1 instead of
12592 setting shlib_disabled.
12593 (delete_disabled_breakpoints): Adjust.
12594 (validate_breakpoints): Only validate software breakpoints.
12595 Adjust to inserted flag change.
12596 (check_mem_read, check_mem_write): Skip breakpoint types other
12597 than software breakpoints. Adjust to inserted flag change.
12598 * mem-break.h (enum raw_bkpt_type): New enum.
12599 (raw_breakpoint, struct process_info): Forward declare.
12600 (Z_packet_to_target_hw_bp_type): Delete declaration.
12601 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12602 (set_gdb_breakpoint, delete_gdb_breakpoint)
12603 (clear_breakpoint_conditions): New declarations.
12604 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12605 (breakpoint_inserted_here): Update comment.
12606 (add_breakpoint_condition, add_breakpoint_commands): Replace
12607 address parameter with a breakpoint pointer parameter.
12608 (gdb_breakpoint_here): Update comment.
12609 (delete_gdb_breakpoint_at): Delete.
12610 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12611 * server.c (process_point_options): Take a struct breakpoint
12612 pointer instead of an address. Adjust.
12613 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12614 delete_gdb_breakpoint.
12615 * spu-low.c (spu_target_ops): Install NULL as
12616 supports_z_point_type method.
12617 * target.h: Include mem-break.h.
12618 (struct target_ops) <prepare_to_access_memory>: Update comment.
12619 <supports_z_point_type>: New field.
12620 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12621 instead of a char. Also take a raw breakpoint pointer.
12622 * win32-arm-low.c (the_low_target): Install NULL as
12623 supports_z_point_type.
12624 * win32-i386-low.c (i386_supports_z_point_type): New function.
12625 (i386_insert_point, i386_remove_point): Adjust to new interface.
12626 (the_low_target): Install i386_supports_z_point_type.
12627 * win32-low.c (win32_supports_z_point_type): New function.
12628 (win32_insert_point, win32_remove_point): Adjust to new interface.
12629 (win32_target_ops): Install win32_supports_z_point_type.
12630 * win32-low.h (struct win32_target_ops):
12631 <supports_z_point_type>: New method.
12632 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12633 instead of a char. Also take a raw breakpoint pointer.
12635 2014-05-20 Pedro Alves <palves@redhat.com>
12637 * mem-break.h: Include break-common.h.
12638 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12639 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12640 (Z_packet_to_target_hw_bp_type): New declaration.
12641 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12642 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12643 (Z_PACKET_ACCESS_WP): Delete macros.
12644 (Z_packet_to_hw_type): Delete function.
12645 * i386-low.h: Don't include break-common.h here.
12646 (Z_packet_to_hw_type): Delete declaration.
12647 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12648 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12649 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12650 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12651 * linux-aarch64-low.c: Don't include break-common.h here.
12652 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12653 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12654 (Z_packet_to_target_hw_bp_type): Delete function.
12655 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12657 (mips_insert_point, mips_remove_point): Use
12658 Z_packet_to_target_hw_bp_type.
12660 2014-05-20 Pedro Alves <palves@redhat.com>
12662 * linux-aarch64-low.c: Include break-common.h.
12663 (enum target_point_type): Delete.
12664 (Z_packet_to_point_type): Rename to ...
12665 (Z_packet_to_target_hw_bp_type): ... this, and return a
12666 target_hw_bp_type instead.
12667 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12668 instead of an enum target_point_type.
12669 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12671 (aarch64_dr_state_insert_one_point)
12672 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12673 (aarch64_handle_aligned_watchpoint)
12674 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12675 Take an enum target_hw_bp_type instead of an enum
12677 (aarch64_supports_z_point_type): New function.
12678 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12679 use Z_packet_to_target_hw_bp_type.
12681 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12683 * configure.ac: Only use -Werror by default when DEVELOPMENT
12685 * configure: Regenerate.
12687 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12689 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12690 * linux-x86-low.c (X86_64_USER_REGS): New.
12691 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12693 2014-04-28 Yao Qi <yao@codesourcery.com>
12695 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12698 2014-04-25 Pedro Alves <palves@redhat.com>
12701 * linux-low.c (linux_attach_fail_reason_string): New function.
12702 (linux_attach_lwp): Delete.
12703 (linux_attach_lwp_1): Rename to ...
12704 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12705 argument. Remove "initial" parameter. Return int instead of
12706 void. Don't error or warn here.
12707 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12708 failure to attach to the tgid. Call warning when failing to
12710 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12711 argument. Remove "initial" parameter. Return int instead of
12712 void. Don't error or warn here.
12713 (linux_attach_fail_reason_string): New declaration.
12714 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12715 interface change. Use linux_attach_fail_reason_string.
12717 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12718 Walfred Tedeschi <walfred.tedeschi@intel.com>
12720 * Makefile.in: Added rules to handle new files
12721 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12722 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12723 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12724 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12725 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12726 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12727 x32-avx512-linux.o.
12728 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12729 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12730 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12731 i386/x32-avx512.xml.
12732 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12733 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12734 i386/x32-avx512-linux.xml.
12735 * i387-fp.c (num_avx512_k_registers): New constant for number
12737 (num_avx512_zmmh_low_registers): New constant for number of
12738 lower ZMM registers (0-15).
12739 (num_avx512_zmmh_high_registers): New constant for number of
12740 higher ZMM registers (16-31).
12741 (num_avx512_ymmh_registers): New contant for number of higher
12742 YMM registers (ymm16-31 added by avx521 on x86_64).
12743 (num_avx512_xmm_registers): New constant for number of higher
12744 XMM registers (xmm16-31 added by AVX512 on x86_64).
12745 (struct i387_xsave): Add space for AVX512 registers.
12746 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12747 Add code to handle AVX512 registers.
12748 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12749 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12750 prototypei from generated file.
12751 (tdesc_amd64_avx512_linux): Likewise.
12752 (init_registers_x32_avx512_linux): Likewise.
12753 (tdesc_x32_avx512_linux): Likewise.
12754 (init_registers_i386_avx512_linux): Likewise.
12755 (tdesc_i386_avx512_linux): Likewise.
12756 (x86_64_regmap): Add AVX512 registers.
12757 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12759 (initialize_low_arch): Add code to initialize AVX512 registers.
12761 2014-04-23 Pedro Alves <palves@redhat.com>
12763 * mem-break.c (find_gdb_breakpoint_at): Make static.
12764 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12766 2014-04-23 Pedro Alves <palves@redhat.com>
12768 * i386-low.c: Don't include break-common.h here.
12769 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12770 prototype to take target_hw_bp_type as argument instead of a Z
12772 * i386-low.h: Include break-common.h here.
12773 (Z_packet_to_hw_type): Declare.
12774 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12776 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12777 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12778 (x86_remove_point): Convert the packet number to a
12779 target_hw_bp_type before calling i386_low_remove_watchpoint.
12780 * win32-i386-low.c (i386_insert_point): Convert the packet number
12781 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12782 (i386_remove_point): Convert the packet number to a
12783 target_hw_bp_type before calling i386_low_remove_watchpoint.
12785 2014-04-23 Pedro Alves <palves@redhat.com>
12787 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12789 2014-04-10 Pedro Alves <palves@redhat.com>
12791 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12792 Check if the condition or command is NULL before checking if the
12793 breakpoint is known. On success, return true.
12794 * mem-break.h (add_breakpoint_condition): Document return.
12795 (add_breakpoint_commands): Add describing comment.
12796 * server.c (skip_to_semicolon): New function.
12797 (process_point_options): Use it.
12799 2014-04-09 Pedro Alves <palves@redhat.com>
12801 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12804 2014-02-27 Pedro Alves <palves@redhat.com>
12807 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12809 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12811 (last_thread_of_process_p): Take a PID argument instead of a
12813 (linux_wait_for_lwp): Delete.
12814 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12816 (linux_low_filter_event): New function, party factored out from
12817 linux_wait_for_event.
12818 (linux_wait_for_event): Rename to ...
12819 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12820 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12821 sigsuspend. Check for zombie leaders.
12822 (linux_wait_for_event): Reimplement as wrapper around
12823 linux_wait_for_event_filtered.
12824 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12825 a normal or signal exit is seen, it's the whole process exiting.
12826 (wait_for_sigstop): No longer a for_each_inferior callback.
12827 Rewrite on top of linux_wait_for_event_filtered.
12828 (stop_all_lwps): Call wait_for_sigstop directly.
12829 * server.c (resume, handle_target_event): Handle
12830 TARGET_WAITKIND_NO_RESUMED.
12832 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12834 * win32-low.c (psapi_get_dll_name,
12835 * win32_CreateToolhelp32Snapshot): Delete.
12836 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12837 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12839 (handle_load_dll): Add function description.
12840 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12842 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12844 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12846 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12847 base address when calling win32_add_one_solib.
12848 (handle_load_dll): Delete local variable load_addr.
12849 Remove 0x1000 offset applied to DLL base address when calling
12850 win32_add_one_solib.
12851 (handle_unload_dll): Add comment.
12853 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12855 * win32-low.c (win32_add_all_dlls): Renames
12856 win32_ensure_ntdll_loaded. Rewrite function documentation.
12857 Adjust implementation to always load all DLLs.
12858 Add 0x1000 offset to DLL base address when calling
12859 win32_add_one_solib.
12860 (child_initialization_done): New static global.
12861 (do_initial_child_stuff): Set child_initialization_done to
12862 zero during child initialization, and 1 after. Replace call
12863 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12865 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12866 (handle_unload_dll): Add function documentation.
12867 (get_child_debug_event): Ignore load and unload DLL events
12868 during child initialization.
12870 2014-02-20 Doug Evans <dje@google.com>
12872 Remove global all_lwps.
12873 * inferiors.h (ptid_of): Move here from linux-low.h.
12874 (pid_of, lwpid_of): Ditto.
12875 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12876 parameter is a struct thread_info * now.
12877 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12878 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12879 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12881 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12882 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12883 * linux-arm-low.c (update_registers_callback): Update, "entry"
12884 parameter is a struct thread_info * now.
12885 Fetch lwpid from current_inferior directly.
12886 (arm_insert_point): Pass &all_threads to find_inferior instead of
12888 (arm_remove_point): Ditto.
12889 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12890 (arm_prepare_to_resume): Fetch pid from thread.
12891 (arm_read_description): Fetch lwpid from current_inferior directly.
12892 * linux-low.c (all_lwps): Delete.
12893 (delete_lwp): Delete call to remove_inferior.
12894 (handle_extended_wait): Fetch lwpid from thread.
12895 (add_lwp): Don't set lwp->entry.id. Remove call to
12896 add_inferior_to_list.
12897 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12898 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12899 (kill_one_lwp_callback): Ditto.
12900 (linux_kill): Don't dereference NULL pointer.
12901 Fetch ptid,lwpid from thread.
12902 (get_detach_signal): Fetch ptid from thread.
12903 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12904 Simplify call to regcache_invalidate_thread.
12905 (delete_lwp_callback): Update, "entry" parameter is a
12906 struct thread_info * now. Fetch pid from thread.
12907 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12908 (status_pending_p_callback): Update, "entry" parameter is a
12909 struct thread_info * now. Fetch ptid from thread.
12910 (find_lwp_pid): Update, "entry" parameter is a
12911 struct thread_info * now.
12912 (linux_wait_for_lwp): Fetch pid from thread.
12913 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12914 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12915 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12916 (dequeue_one_deferred_signal): Ditto.
12917 (cancel_breakpoint): Fetch ptid from current_inferior.
12918 (linux_wait_for_event): Pass &all_threads to find_inferior,
12919 not &all_lwps. Fetch ptid, lwpid from thread.
12920 (count_events_callback): Update, "entry" parameter is a
12921 struct thread_info * now.
12922 (select_singlestep_lwp_callback): Ditto.
12923 (select_event_lwp_callback): Ditto.
12924 (cancel_breakpoints_callback): Ditto.
12925 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12927 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12928 (unsuspend_one_lwp): Update, "entry" parameter is a
12929 struct thread_info * now.
12930 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12932 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12933 Fetch lwpid from thread, not lwp.
12934 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12935 Pass &all_threads to find_inferior, not &all_lwps.
12936 (send_sigstop): Fetch lwpid from thread, not lwp.
12937 (send_sigstop_callback): Update, "entry" parameter is a
12938 struct thread_info * now.
12939 (suspend_and_send_sigstop_callback): Ditto.
12940 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12941 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12942 struct thread_info * now.
12943 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12945 (lwp_running): Update, "entry" parameter is a
12946 struct thread_info * now.
12947 (stop_all_lwps): Fetch ptid from thread.
12948 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12949 (linux_resume_one_lwp): Fetch lwpid from thread.
12950 (linux_set_resume_request): Update, "entry" parameter is a
12951 struct thread_info * now. Fetch pid, lwpid from thread.
12952 (resume_status_pending_p): Update, "entry" parameter is a
12953 struct thread_info * now.
12954 (need_step_over_p): Ditto. Fetch lwpid from thread.
12955 (start_step_over): Fetch lwpid from thread.
12956 (linux_resume_one_thread): Update, "entry" parameter is a
12957 struct thread_info * now. Fetch lwpid from thread.
12958 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12959 (proceed_one_lwp): Update, "entry" parameter is a
12960 struct thread_info * now. Fetch lwpid from thread.
12961 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12962 struct thread_info * now.
12963 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12964 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12965 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12967 (regsets_store_inferior_registers): Ditto.
12968 (fetch_register, store_register): Ditto.
12969 (linux_read_memory, linux_write_memory): Ditto.
12970 (linux_request_interrupt): Ditto.
12971 (linux_read_auxv): Ditto.
12972 (linux_xfer_siginfo): Ditto.
12973 (linux_qxfer_spu): Ditto.
12974 (linux_qxfer_libraries_svr4): Ditto.
12975 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12976 moved to inferiors.h.
12978 (get_thread_lwp): Update.
12979 (struct lwp_info): Delete member "entry". Simplify comment for
12981 (all_lwps): Delete.
12982 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12983 current_inferior directly.
12984 (update_watch_registers_callback): Update, "entry" parameter is a
12985 struct thread_info * now. Fetch pid from thread.
12986 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12987 (mips_insert_point): Fetch lwpid from current_inferior.
12988 Pass &all_threads to find_inferior, not &all_lwps.
12989 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12990 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12992 (mips_stopped_data_address): Ditto.
12993 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12995 * linux-tile-low.c (tile_arch_setup): Ditto.
12996 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12997 (update_debug_registers_callback): Update, "entry" parameter is a
12998 struct thread_info * now. Fetch pid from thread.
12999 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13000 Pass &all_threads to find_inferior, not &all_lwps.
13001 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13002 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13003 Pass &all_threads to find_inferior, not &all_lwps.
13004 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13005 (i386_dr_low_get_status): Ditto.
13006 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13007 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13008 (x86_linux_read_description): Ditto.
13009 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13011 2014-02-20 Doug Evans <dje@google.com>
13013 * inferiors.c (get_first_inferior): Fix buglet.
13015 2014-02-19 Doug Evans <dje@google.com>
13017 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13018 * inferiors.c (add_thread): Change result type to struct thread_info *.
13019 All callers updated.
13020 (add_lwp): Call add_thread here instead of in callers.
13021 All callers updated.
13022 * linux-low.h (get_lwp_thread): Rewrite.
13023 (struct lwp_info): New member "thread".
13025 2014-02-19 Doug Evans <dje@google.com>
13027 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13028 All callers updated.
13030 2014-02-19 Doug Evans <dje@google.com>
13032 * inferiors.c (add_thread): Fix whitespace.
13034 2014-02-19 Doug Evans <dje@google.com>
13036 * dll.c (clear_dlls): Replace accessing list implemention details
13038 * gdbthread.h (get_first_thread): Declare.
13039 * inferiors.c (for_each_inferior_with_data): New function.
13040 (get_first_thread): New function.
13041 (find_thread_ptid): Simplify.
13042 (get_first_inferior): New function.
13043 (clear_list): Delete.
13044 (one_inferior_p): New function.
13045 (clear_inferior_list): New function.
13046 (clear_inferiors): Update.
13047 * inferiors.h (for_each_inferior_with_data): Declare.
13048 (clear_inferior_list): Declare.
13049 (one_inferior_p): Declare.
13050 (get_first_inferior): Declare.
13051 * linux-low.c (linux_wait_for_event): Replace accessing list
13052 implemention details with API function.
13053 * server.c (target_running): Ditto.
13054 (accumulate_file_name_length): New function.
13055 (emit_dll_description): New function.
13056 (handle_qxfer_libraries): Replace accessing list implemention
13057 details with API function.
13058 (handle_qxfer_threads_worker): New function.
13059 (handle_qxfer_threads_proper): Replace accessing list implemention
13060 details with API function.
13061 (handle_query): Ditto.
13062 (visit_actioned_threads_callback_ftype): New typedef.
13063 (visit_actioned_threads_data): New struct.
13064 (visit_actioned_threads): Rewrite to be find_inferior callback.
13065 (resume): Call find_inferior.
13066 (handle_status): Replace accessing list implemention
13067 details with API function.
13068 (process_serial_event): Replace accessing list implemention details
13070 * target.c (set_desired_inferior): Replace accessing list implemention
13071 details with API function.
13072 * tracepoint.c (same_process_p): New function.
13073 (gdb_agent_about_to_close): Replace accessing list implemention
13074 details with API function.
13075 * win32-low.c (child_delete_thread): Replace accessing list
13076 implemention details with API function.
13077 (match_dll_by_basename): New function.
13078 (dll_is_loaded_by_basename): New function.
13079 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13080 details call to dll_is_loaded_by_basename.
13082 2014-02-19 Doug Evans <dje@google.com>
13084 * dll.h (struct dll_info): Add comment.
13085 * gdbthread.h (struct thread_info): Add comment.
13086 (current_ptid): Simplify.
13087 * inferiors.c (add_process): Update.
13088 (remove_process): Update.
13089 * inferiors.h (struct process_info): Rename member "head" to "entry".
13090 * linux-low.c (delete_lwp): Update.
13092 (last_thread_of_process_p): Update.
13093 (kill_one_lwp_callback, linux_kill): Update.
13094 (status_pending_p_callback): Update.
13095 (wait_for_sigstop): Update. Simplify read of ptid.
13096 (start_step_over): Update.
13097 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13098 (get_lwp_thread): Update.
13099 (struct lwp_info): Rename member "head" to "entry".
13100 * regcache.h (inferior_list_entry): Delete.
13101 * server.c (kill_inferior_callback): Update.
13102 (detach_or_kill_inferior_callback): Update.
13103 (print_started_pid): Update.
13104 (print_attached_pid): Update.
13105 (process_serial_event): Simplify read of ptid.
13106 * thread-db.c (thread_db_create_event): Update.
13107 (thread_db_get_tls_address): Update.
13108 * win32-low.c (current_inferior_ptid): Simplify.
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13112 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13114 (target_supports_btrace): Update.
13116 2014-02-14 Yao Qi <yao@codesourcery.com>
13118 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13119 (rsp-low-ipa.o): New target.
13121 2014-02-12 Tom Tromey <tromey@redhat.com>
13123 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13124 convert_ascii_to_int.
13125 * regcache.c (registers_to_string): Likewise.
13126 * remote-utils.c (decode_M_packet): Likewise.
13127 * server.c (process_serial_event): Likewise.
13129 2014-02-12 Tom Tromey <tromey@redhat.com>
13131 * server.c (handle_query, handle_v_run): Use hex2bin, not
13133 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13135 2014-02-12 Tom Tromey <tromey@redhat.com>
13137 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13138 convert_int_to_ascii.
13139 * regcache.c (registers_to_string, collect_register_as_string):
13141 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13143 * server.c (process_serial_event): Likewise.
13144 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13145 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13147 2014-02-12 Tom Tromey <tromey@redhat.com>
13149 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13150 bin2hex, not hexify.
13151 * tracepoint.c (cmd_qtstatus): Likewise.
13153 2014-02-12 Tom Tromey <tromey@redhat.com>
13155 * remote-utils.c (monitor_output): Pass explicit length to
13158 2014-02-12 Tom Tromey <tromey@redhat.com>
13160 * tracepoint.c: Include rsp-low.h.
13161 * server.c: Include rsp-low.h.
13162 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13163 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13165 * remote-utils.c: Include rsp-low.h.
13166 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13167 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13168 (convert_int_to_ascii, convert_ascii_to_int): Move to
13170 * regcache.c: Include rsp-low.h.
13171 * ax.c: Include rsp-low.h.
13172 * Makefile.in (SFILES): Add common/rsp-low.c.
13173 (OBS): Add rsp-low.o.
13174 (rsp-low.o): New target.
13176 2014-02-12 Tom Tromey <tromey@redhat.com>
13178 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13179 Include print-utils.h.
13180 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13181 (plongest, thirty_two, phex_nz): Remove.
13182 * Makefile.in (SFILES): Add common/print-utils.c.
13183 (OBS): Add print-utils.o.
13184 (print-utils-ipa.o): New target.
13185 (print-utils.o): New target.
13186 (IPA_OBJS): Add print-utils-ipa.o.
13188 2014-02-06 Tom Tromey <tromey@redhat.com>
13190 * Makefile.in (SFILES): Fix indentation.
13192 2014-02-05 Doug Evans <dje@google.com>
13194 * linux-low.c (linux_wait_for_event): Improve comment.
13195 (linux_wait_1): Keep current_inferior in sync with event_child.
13197 2014-01-22 Doug Evans <dje@google.com>
13199 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13201 2014-01-22 Doug Evans <dje@google.com>
13203 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13204 * configure: Regenerate.
13205 * config.in: Regenerate.
13206 * Makefile.in (SFILES): Add debug.c.
13207 (OBS): Add debug.o.
13208 * debug.c: New file.
13209 * debug.h: New file.
13210 * linux-aarch64-low.c (*): Update all debugging printfs to use
13211 debug_printf instead of fprintf.
13212 * linux-arm-low.c (*): Ditto.
13213 * linux-cris-low.c (*): Ditto.
13214 * linux-crisv32-low.c (*): Ditto.
13215 * linux-m32r-low.c (*): Ditto.
13216 * linux-sparc-low.c (*): Ditto.
13217 * linux-x86.c (*): Ditto.
13218 * linux-low.c (*): Ditto.
13219 (linux_wait_1): Add calls to debug_enter, debug_exit.
13220 (linux_wait): Remove redundant debugging printf.
13221 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13222 (linux_resume, unstop_all_lwps): Ditto.
13223 * mem-break.c (*): Update all debugging printfs to use
13224 debug_printf instead of fprintf.
13225 * remote-utils.c (*): Ditto.
13226 * thread-db.c (*): Ditto.
13227 * server.c #include <ctype.h>, "gdb_vecs.h".
13228 (debug_threads): Moved to debug.c.
13229 (*): Update all debugging printfs to use debug_printf instead of
13231 (start_inferior): Replace call to fflush with call to debug_flush.
13232 (monitor_show_help): Mention set debug-format.
13233 (parse_debug_format_options): New function.
13234 (handle_monitor_command): Handle "monitor set debug-format".
13235 (gdbserver_usage): Mention --debug-format.
13236 (main): Parse --debug-format.
13237 * server.h (debug_threads): Declaration moved to debug.h.
13238 #include "debug.h".
13239 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13240 trace_debug_1 that uses debug_printf.
13241 (tracepoint_look_up_symbols): Update all debugging printfs to use
13242 debug_printf instead of fprintf.
13244 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13246 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13249 2014-01-17 Pedro Alves <palves@redhat.com>
13252 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13253 defined after including gdb_proc_service.h.
13255 2014-01-16 Doug Evans <dje@google.com>
13257 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13258 (match_dll): Use it.
13260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13262 * target.h (target_ops) <read_btrace>: Change parameters and
13263 return type to allow error reporting.
13264 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13265 trace reading errors on.
13266 * linux-low.c (linux_low_read_btrace): Pass trace reading
13268 (linux_low_disable_btrace): New.
13270 2014-01-15 Doug Evans <dje@google.com>
13272 * inferiors.c (thread_id_to_gdb_id): Delete.
13273 * inferiors.h (thread_id_to_gdb_id): Delete.
13275 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13277 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13278 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13281 2014-01-08 Pedro Alves <palves@redhat.com>
13283 * server.c (handle_status): Don't discard previous queued stop
13284 replies or thread's pending status here.
13285 (main) <disconnection>: Do it here instead.
13287 2014-01-08 Pedro Alves <palves@redhat.com>
13289 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13290 * server.c (visit_actioned_threads, handle_pending_status): New
13292 (handle_v_cont): Factor out parts to ...
13293 (resume): ... this new function. If in all-stop, and a thread
13294 being resumed has a pending status, report it without actually
13296 (myresume): Adjust to use the new 'resume' function.
13297 (clear_pending_status_callback, set_pending_status_callback)
13298 (find_status_pending_thread_callback): New functions.
13299 (handle_status): Handle the case of multiple threads having
13300 interesting statuses to report. Report threads' real last signal
13301 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13302 with an interesting thread to report the status for, instead of
13303 always reporting the status of the first thread.
13305 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13307 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13308 * gdbreplay.c (gdbreplay_version): Likewise.
13310 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13312 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13313 iov.iov_len with the real length in use.
13315 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13317 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13318 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13319 for all targets that use win32-low.c.
13320 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13321 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13323 2013-12-13 Pedro Alves <palves@redhat.com>
13325 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13326 if equal to TARGET_WAITKIND_LOADED.
13327 * win32-low.c (cached_status): New static global.
13328 (win32_wait): Add declaration.
13329 (do_initial_child_stuff): Flush all initial pending debug events
13330 up to the initial breakpoint.
13331 (win32_wait): If CACHED_STATUS was set, return that instead
13332 of doing a real wait. Remove the code resuming the execution
13333 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13334 during the initial phase. Also remove the code changing
13335 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13336 TARGET_WAITKIND_STOPPED.
13338 2013-12-11 Yao Qi <yao@codesourcery.com>
13340 * notif.c (handle_notif_ack): Return 0 if no notification
13343 2013-11-20 Doug Evans <dje@google.com>
13345 * linux-low.c (linux_set_resume_request): Fix comment.
13347 2013-11-20 Doug Evans <dje@google.com>
13349 * linux-low.c (resume_status_pending_p): Tweak comment.
13351 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13353 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13354 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13355 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13356 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13357 (srv_amd64_regobj): Add amd64-mpx.o.
13358 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13359 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13360 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13361 * i387-fp.c (num_pl_bnd_register) Added constant.
13362 (num_pl_bnd_cfg_registers) Added constant.
13363 (struct i387_xsave) Added reserved area and MPX fields.
13364 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13365 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13367 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13368 (init_registers_amd64_mpx_linux): Declare new function.
13369 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13370 (x86_64_regmap): Add MPX registers.
13371 (x86_linux_read_description): Add MPX case.
13372 (initialize_low_arch): Initialize MPX targets.
13374 2013-11-18 Tom Tromey <tromey@redhat.com>
13376 * configure: Rebuild.
13377 * configure.ac: Don't check for stdlib.h.
13378 * gdbreplay.c: Unconditionally include stdlib.h.
13380 2013-11-18 Tom Tromey <tromey@redhat.com>
13382 * config.in: Rebuild.
13383 * configure: Rebuild.
13384 * configure.ac: Don't use AC_HEADER_DIRENT.
13386 2013-11-18 Tom Tromey <tromey@redhat.com>
13388 * server.h: Don't check HAVE_STRING_H.
13389 * gdbreplay.c: Don't check HAVE_STRING_H.
13390 * configure: Rebuild.
13392 2013-11-18 Tom Tromey <tromey@redhat.com>
13394 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13397 2013-11-08 Tom Tromey <tromey@redhat.com>
13399 * configure, config.in: Rebuild.
13400 * configure.ac: Remove unused configury.
13402 2013-11-08 Tom Tromey <tromey@redhat.com>
13404 * acinclude.m4: Include common.m4, codeset.m4.
13405 * configure, config.in: Rebuild.
13406 * configure.ac: Use GDB_AC_COMMON.
13408 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13410 * linux-s390-low.c (HWCAP_S390_TE): New define.
13411 (s390_arch_setup): Consider the TE field in the HWCAP for
13412 determining 'have_regset_tdb'.
13414 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13417 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13420 2013-10-02 Pedro Alves <palves@redhat.com>
13422 * server.c (process_serial_event): Don't output "GDBserver
13423 exiting" if GDB is connected through stdio.
13424 * target.c (mywait): Likewise, be silent if GDB is connected
13427 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13429 * lynx-low.c (lynx_add_threads_after_attach): New function.
13430 (lynx_attach): Remove call to add_thread. Add call to
13431 lynx_add_threads_after_attach instead.
13433 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13435 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13436 * config.in, configure: Regenerated.
13438 2013-09-18 Yao Qi <yao@codesourcery.com>
13441 * server.c (start_inferior): Clear 'resume_info'.
13443 2013-09-16 Jiong Wang <jiwang@tilera.com>
13445 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13448 2013-09-16 Jiong Wang <jiwang@tilera.com>
13450 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13451 linux-tile-low.o to srv_tgtobj.
13453 2013-09-16 Will Newton <will.newton@linaro.org>
13455 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13458 2013-09-06 Pedro Alves <palves@redhat.com>
13460 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13461 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13462 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13463 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13464 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13465 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13467 2013-09-06 Pedro Alves <palves@redhat.com>
13469 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13470 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13472 2013-09-06 Pedro Alves <palves@redhat.com>
13474 * linux-amd64-ipa.c: Include tracepoint.h.
13475 * linux-i386-ipa.c: Include tracepoint.h.
13477 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13479 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13480 (ps_get_thread_area): New function.
13482 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13484 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13485 (initialize_low_arch): Call init_registers_crisv32 rather than
13486 init_register_crisv32.
13488 2013-09-05 Pedro Alves <palves@redhat.com>
13490 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13492 * hostio.h: ... this new file.
13493 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13494 win32-low.c: Include hostio.h.
13496 2013-09-05 Pedro Alves <palves@redhat.com>
13498 * server.h (gdb_client_data, handler_func, callback_handler_func)
13499 (delete_file_handler, add_file_handler, append_callback_event)
13500 (delete_callback_event, start_event_loop, initialize_event_loop):
13501 Move to event-loop.h and include it.
13502 * event-loop.h: New file.
13504 2013-09-05 Pedro Alves <palves@redhat.com>
13506 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13507 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13508 (loaded_dll, unloaded_dll): Move to ...
13509 * dll.h: ... this new file.
13510 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13512 2013-09-05 Pedro Alves <palves@redhat.com>
13514 * server.h (current_process, get_thread_process, all_processes)
13515 (add_inferior_to_list, for_each_inferior, current_inferior)
13516 (remove_inferior, add_process, remove_process, find_process_pid)
13517 (have_started_inferiors_p, have_attached_inferiors_p)
13518 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13519 (clear_inferiors, find_inferior, find_inferior_id)
13520 (inferior_target_data, set_inferior_target_data)
13521 (inferior_regcache_data, set_inferior_regcache_data): Move to
13522 inferiors.h, and include it.
13523 * inferiors.h: New file.
13525 2013-09-05 Pedro Alves <palves@redhat.com>
13527 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13531 2013-09-05 Pedro Alves <palves@redhat.com>
13533 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13535 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13536 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13537 (handle_tracepoint_general_set, handle_tracepoint_query)
13538 (tracepoint_finished_step, tracepoint_was_hit)
13539 (release_while_stepping_state_list, current_traceframe)
13540 (in_readonly_region, traceframe_read_mem)
13541 (fetch_traceframe_registers, traceframe_read_sdata)
13542 (traceframe_read_info, struct fast_tpoint_collect_status)
13543 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13544 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13545 (supply_fast_tracepoint_registers)
13546 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13547 (ipa_tdesc, claim_trampoline_space)
13548 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13549 (agent_mem_read, agent_get_trace_state_variable_value)
13550 (agent_set_trace_state_variable_value, agent_tsv_read)
13551 (agent_mem_read_string, get_raw_reg_func_addr)
13552 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13553 * tracepoint.h: ... this new file.
13555 2013-09-05 Pedro Alves <palves@redhat.com>
13557 * server.h (perror_with_name, error, fatal, warning, paddress)
13558 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13560 * utils.h: New file.
13562 2013-09-05 Pedro Alves <palves@redhat.com>
13564 * server.h (remote_debug, noack_mode, transport_is_reliable)
13565 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13566 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13567 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13568 (write_enn, initialize_async_io, enable_async_io)
13569 (disable_async_io, check_remote_input_interrupt_request)
13570 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13571 (dead_thread_notify, prepare_resume_reply)
13572 (decode_address_to_semicolon, decode_address, decode_m_packet)
13573 (decode_M_packet, decode_X_packet, decode_xfer_write)
13574 (decode_search_memory_packet, unhexify, hexify)
13575 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13576 (look_up_one_symbol, relocate_instruction)
13577 (monitor_output): Move to remote-utils.h, and include it.
13578 * remote-utils.h: New file.
13580 2013-09-05 Pedro Alves <palves@redhat.com>
13582 * server.h (_): Delete.
13584 2013-09-02 Pedro Alves <palves@redhat.com>
13586 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13587 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13589 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13591 2013-09-02 Pierre Muller <muller@sourceware.org>
13593 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13594 or WriteProcessMemory complete successfully and handle
13595 ERROR_PARTIAL_COPY error.
13597 2013-09-02 Pedro Alves <palves@redhat.com>
13599 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13600 error instead of EIO.
13602 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13605 * linux-low.c: Include filestuff.h.
13606 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13607 * lynx-low.c: Include filestuff.h.
13608 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13609 * server.c: Include filestuff.h.
13610 (main): Call notice_open_fds.
13611 * spu-low.c: Include filestuff.h.
13612 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13614 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13616 * Makefile.in: Explain why ../target and ../nat are not
13617 listed as include file search paths.
13618 (linux-waitpid.o): New object file rule.
13619 * configure.srv (srv_native_linux_obj): New variable.
13620 Replace all occurrences of linux native object files with
13621 $srv_native_linux_obj.
13622 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13623 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13624 (linux_enable_event_reporting): Remove declaration.
13625 (my_waitpid): Moved to common/linux-waitpid.c.
13626 (linux_wait_for_event): Pass ptid when calling
13627 linux_enable_event_reporting.
13628 (linux_supports_tracefork_flag): Remove.
13629 (linux_enable_event_reporting): Likewise.
13630 (linux_tracefork_grandchild): Remove.
13631 (STACK_SIZE): Moved to common/linux-ptrace.c.
13632 (linux_tracefork_child): Remove.
13633 (linux_test_for_tracefork): Remove.
13634 (linux_look_up_symbols): Call linux_supports_traceclone.
13635 (initialize_low): Remove call to linux_test_for_tracefork.
13636 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13637 common/linux-ptrace.h.
13638 (PTRACE_TYPE_ARG4): Likewise.
13639 Include linux-ptrace.h.
13641 2013-08-21 Pedro Alves <palves@redhat.com>
13643 * config.in: Renegerate.
13645 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13647 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13648 (SFILES): Remove $(srcdir)/common/target-common.c and
13649 add $(srcdir)/target/waitstatus.c.
13650 (OBS): Remove target-common.o and add waitstatus.o.
13651 (server_h): Remove $(srcdir)/../common/target-common.h and
13652 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13653 and $(srcdir)/../target/waitstatus.h.
13654 (target-common.o): Remove.
13655 (waitstatus.o): New target object file.
13656 * target.h: Do not include target-common.h and
13657 include target/resume.h, target/wait.h and
13658 target/waitstatus.h.
13660 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13662 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13663 to PTRACE_TYPE_ARG3.
13664 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13665 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13667 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13668 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13670 2013-07-27 Jie Zhang <jie@codesourcery.com>
13671 Daniel Jacobowitz <dan@codesourcery.com>
13672 Yao Qi <yao@codesourcery.com>
13674 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13675 (mips-linux-watch.o): New rule.
13676 (mips_linux_watch_h): New variable.
13677 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13679 * linux-mips-low.c: Include mips-linux-watch.h.
13680 (struct arch_process_info, struct arch_lwp_info): New.
13681 (update_watch_registers_callback): New function.
13682 (mips_linux_new_process, mips_linux_new_thread) New functions.
13683 (mips_linux_prepare_to_resume, mips_insert_point): New
13685 (mips_remove_point, mips_stopped_by_watchpoint): New
13687 (rsp_bp_type_to_target_hw_bp_type): New function.
13688 (mips_stopped_data_address): New function.
13689 (the_low_target): Add watchpoint support functions.
13691 2013-07-27 Yao Qi <yao@codesourcery.com>
13693 * i386-low.c: Include break-common.h.
13694 (enum target_hw_bp_type): Remove.
13696 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13698 * Makefile.in (SFILES): /common/target-common.c.
13699 (OBS): Add target-common.o.
13700 (server_h): Add $(srcdir)/../common/target-common.h.
13701 (target-common.o): New target.
13702 * server.c (queue_stop_reply_callback): Free
13703 status string after use.
13704 * target.c (target_waitstatus_to_string): Remove.
13705 * target.h: Include target-common.h.
13706 (resume_kind): Likewise.
13707 (target_waitkind): Likewise.
13708 (target_waitstatus): Likewise.
13709 (TARGET_WNOHANG): Likewise.
13711 2013-07-04 Yao Qi <yao@codesourcery.com>
13713 * Makefile.in (host_alias): Use @host_noncanonical@.
13714 (target_alias): Use @target_noncanonical@.
13715 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13716 ACX_NONCANONICAL_HOST.
13717 * configure: Regenerated.
13720 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13722 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13723 * configure: Rebuild.
13724 * Makefile.in (version_host, version_target): Get from configure.
13725 (version.c): Use $(version_host) and $(version_target).
13727 2013-07-03 Pedro Alves <palves@redhat.com>
13729 * Makefile.in (config.status): Depend on development.sh.
13730 * acinclude.m4: Include libmcheck.m4.
13731 * configure: Regenerate.
13733 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13735 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13736 attribute inside the parentheses.
13737 (winapi_DebugSetProcessKillOnExit): Ditto.
13738 (winapi_DebugBreakProcess): Ditto.
13739 (winapi_GenerateConsoleCtrlEvent): Ditto.
13741 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13743 * notif.h (notif_event): Add a dummy member to avoid compiler
13746 2013-07-01 Pedro Alves <palves@redhat.com>
13748 * hostio.c (HOSTIO_PATH_MAX): Define.
13749 (require_filename, handle_open, handle_unlink, handle_readlink):
13752 2013-07-01 Pedro Alves <palves@redhat.com>
13754 * server.h: Include "pathmax.h".
13755 * linux-low.c: Don't include sys/param.h.
13756 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13758 * win32-low.c: Don't include sys/param.h.
13759 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13761 2013-07-01 Pedro Alves <palves@redhat.com>
13763 * event-loop.c: Don't check HAVE_UNISTD_H before including
13765 * gdbreplay.c: Likewise.
13766 * remote-utils.c: Likewise.
13767 * server.c: Likewise.
13768 * configure.ac: Don't check for unistd.h.
13769 * configure: Regenerate.
13771 2013-06-28 Tom Tromey <tromey@redhat.com>
13773 * Makefile.in (version.c): Use version.in, not
13776 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13778 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13779 * configure: Rebuild.
13780 * Makefile.in (version_host, version_target): Get from configure.
13781 (version.c): Use $(version_host) and $(version_target).
13783 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13785 Fix trace-status to output user name without trailing colon.
13786 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13788 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13790 Fix trace-status to output proper start-time and stop-time.
13791 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13792 output start time and stop time in hex as gdb expects.
13794 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13796 * tracepoint.c (build_traceframe_info_xml): Output trace state
13797 variables present in the trace buffer.
13799 2013-06-24 Tom Tromey <tromey@redhat.com>
13801 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13803 (version.o): Remove.
13804 * gdbreplay.c: Include version.h.
13805 (version, host_name): Don't declare.
13806 * server.h: Include version.h.
13807 (version, host_name): Don't declare.
13809 2013-06-12 Pedro Alves <palves@redhat.com>
13811 * linux-x86-low.c (linux_is_elf64): Delete global.
13812 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13813 with local linux_pid_exe_is_elf_64_file use.
13815 2013-06-11 Pedro Alves <palves@redhat.com>
13817 * linux-low.c (regset_disabled, disable_regset): New functions.
13818 (regsets_fetch_inferior_registers)
13819 (regsets_store_inferior_registers): Use them.
13820 (initialize_regsets_info); Don't allocate the disabled_regsets
13822 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13825 2013-06-11 Pedro Alves <palves@redhat.com>
13827 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13830 2013-06-11 Pedro Alves <palves@redhat.com>
13832 * linux-x86-low.c (initialize_low_arch): Call
13833 init_registers_x32_avx_linux.
13835 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13837 Fix compatibility with Android Bionic.
13838 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13841 2013-06-07 Pedro Alves <palves@redhat.com>
13844 * Makefile.in (OBS): Add tdesc.o.
13845 (IPA_OBJS): Add tdesc-ipa.o.
13846 (tdesc-ipa.o): New rule.
13847 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13849 * linux-low.c (new_inferior): Delete.
13850 (disabled_regsets, num_regsets): Delete.
13851 (linux_add_process): Adjust to set the new per-process
13853 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13854 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13855 was a stop. When calling arch_setup, switch the current inferior
13856 to the thread that got an event.
13857 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13858 (regsets_fetch_inferior_registers)
13859 (regsets_store_inferior_registers): New regsets_info parameter.
13861 (linux_register_in_regsets): New regs_info parameter. Adjust to
13863 (register_addr, fetch_register, store_register): New usrregs_info
13864 parameter. Adjust to use it.
13865 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13866 parameter regs_info. Adjust to use it.
13867 (linux_fetch_registers): Get the current inferior's regs_info, and
13869 (linux_store_registers): Ditto.
13870 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13871 (initialize_low): Don't initialize the target_regsets here. Call
13872 initialize_low_arch.
13873 * linux-low.h (target_regsets): Delete declaration.
13874 (struct regsets_info): New.
13875 (struct usrregs_info): New.
13876 (struct regs_info): New.
13877 (struct process_info_private) <new_inferior>: New field.
13878 (struct linux_target_ops): Delete the num_regs, regmap, and
13879 regset_bitmap fields. New field regs_info.
13880 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13881 * i387-fp.c (num_xmm_registers): Delete.
13882 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13883 calls to new interface.
13884 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13885 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13886 Infer the number of xmm registers from the regcache's target
13888 * i387-fp.h (num_xmm_registers): Delete.
13889 * inferiors.c (add_thread): Don't install the thread's regcache
13891 * proc-service.c (gregset_info): Fetch the current inferior's
13892 regs_info. Adjust to use it.
13893 * regcache.c: Include tdesc.h.
13894 (register_bytes, reg_defs, num_registers)
13895 (gdbserver_expedite_regs): Delete.
13896 (get_thread_regcache): If the thread doesn't have a regcache yet,
13897 create one, instead of aborting gdbserver.
13898 (regcache_invalidate_one): Rename to ...
13899 (regcache_invalidate_thread): ... this.
13900 (regcache_invalidate_one): New.
13901 (regcache_invalidate): Only invalidate registers of the current
13903 (init_register_cache): Add target_desc parameter, and use it.
13904 (new_register_cache): Ditto. Assert the target description has a
13905 non zero registers_size.
13906 (regcache_cpy): Add assertions. Adjust.
13907 (realloc_register_cache, set_register_cache): Delete.
13908 (registers_to_string, registers_from_string): Adjust.
13909 (find_register_by_name, find_regno, find_register_by_number)
13910 (register_cache_size): Add target_desc parameter, and use it.
13911 (free_register_cache_thread, free_register_cache_thread_one)
13912 (regcache_release, register_cache_size): New.
13913 (register_size): Add target_desc parameter, and use it.
13914 (register_data, supply_register, supply_register_zeroed)
13915 (supply_regblock, supply_register_by_name, collect_register)
13916 (collect_register_as_string, collect_register_by_name): Adjust.
13917 * regcache.h (struct target_desc): Forward declare.
13918 (struct regcache) <tdesc>: New field.
13919 (init_register_cache, new_register_cache): Add target_desc
13921 (regcache_invalidate_thread): Declare.
13922 (regcache_invalidate_one): Delete declaration.
13923 (regcache_release): Declare.
13924 (find_register_by_number, register_cache_size, register_size)
13925 (find_regno): Add target_desc parameter.
13926 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13928 * remote-utils.c: Include tdesc.h.
13929 (outreg, prepare_resume_reply): Adjust.
13930 * server.c: Include tdesc.h.
13931 (gdbserver_xmltarget): Delete declaration.
13932 (get_features_xml, process_serial_event): Adjust.
13933 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13935 (struct process_info) <tdesc>: New field.
13936 (ipa_tdesc): Declare.
13937 * tdesc.c: New file.
13938 * tdesc.h: New file.
13939 * tracepoint.c: Include tdesc.h.
13940 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13941 (get_context_regcache): Adjust to pass ipa_tdesc down.
13942 (do_action_at_tracepoint): Adjust to get the register cache size
13943 from the context regcache's description.
13944 (traceframe_walk_blocks): Adjust to get the register cache size
13945 from the current trace frame's description.
13946 (traceframe_get_pc): Adjust to get current trace frame's
13947 description and pass it down.
13948 (gdb_collect): Adjust to get the register cache size from the
13950 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13951 (gdbserver_xmltarget): Delete.
13952 (initialize_low_tracepoint): Set the ipa's target description.
13953 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13954 (initialize_low_tracepoint): Set the ipa's target description.
13955 * linux-x86-low.c: Include tdesc.h.
13956 [__x86_64__] (is_64bit_tdesc): New.
13957 (ps_get_thread_area, x86_get_thread_area): Use it.
13958 (i386_cannot_store_register): Rename to ...
13959 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13960 (i386_cannot_fetch_register): Rename to ...
13961 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13962 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13964 (target_regsets): Rename to ...
13965 (x86_regsets): ... this.
13966 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13968 (x86_siginfo_fixup): Use is_64bit_tdesc.
13969 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13970 (tdesc_x32_avx_linux, tdesc_x32_linux)
13971 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13973 (x86_linux_update_xmltarget): Delete.
13974 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13975 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13976 (AMD64_LINUX_USER64_CS): New.
13977 (x86_linux_read_description): New, based on
13978 x86_linux_update_xmltarget.
13979 (same_process_callback): New.
13980 (x86_arch_setup_process_callback): New.
13981 (x86_linux_update_xmltarget): New.
13982 (x86_regsets_info): New.
13983 (amd64_linux_regs_info): New.
13984 (i386_linux_usrregs_info): New.
13985 (i386_linux_regs_info): New.
13986 (x86_linux_regs_info): New.
13987 (x86_arch_setup): Reimplement.
13988 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13989 (x86_emit_ops): Ditto.
13990 (the_low_target): Adjust. Install x86_linux_regs_info,
13991 x86_cannot_fetch_register, and x86_cannot_store_register.
13992 (initialize_low_arch): New.
13993 * linux-ia64-low.c (tdesc_ia64): Declare.
13994 (ia64_fetch_register): Adjust.
13995 (ia64_usrregs_info, regs_info): New globals.
13996 (ia64_regs_info): New function.
13997 (the_low_target): Adjust.
13998 (initialize_low_arch): New function.
13999 * linux-sparc-low.c (tdesc_sparc64): Declare.
14000 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14002 (sparc_arch_setup): New function.
14003 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14004 (the_low_target): Adjust.
14005 (initialize_low_arch): New function.
14006 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14007 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14008 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14009 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14010 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14011 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14012 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14013 (tdesc_powerpc_isa205_vsx64l): Declare.
14014 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14015 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14016 (ppc_set_pc, ppc_get_hwcap): Adjust.
14017 (ppc_usrregs_info): Forward declare.
14018 (!__powerpc64__) ppc_regmap_adjusted: New global.
14019 (ppc_arch_setup): Adjust to the current process'es target
14021 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14022 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14023 (ppc_store_evrregset): Adjust.
14024 (target_regsets): Rename to ...
14025 (ppc_regsets): ... this, and make static.
14026 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14027 (ppc_regs_info): New function.
14028 (the_low_target): Adjust.
14029 (initialize_low_arch): New function.
14030 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14031 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14032 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14033 (tdesc_s390x_linux64v2): Declare.
14034 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14035 (s390_fill_gregset, s390_store_last_break): Adjust.
14036 (target_regsets): Rename to ...
14037 (s390_regsets): ... this, and make static.
14038 (s390_get_pc, s390_set_pc): Adjust.
14039 (s390_get_hwcap): New target_desc parameter, and use it.
14040 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14041 (s390_arch_setup): Adjust to set the current process'es target
14042 description. Don't adjust the regmap.
14043 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14044 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14045 (regs_info_3264): New globals.
14046 (s390_regs_info): New function.
14047 (the_low_target): Adjust.
14048 (initialize_low_arch): New function.
14049 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14050 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14051 [__mips64] (init_registers_mips_linux)
14052 (init_registers_mips_dsp_linux): Delete defines.
14053 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14054 (have_dsp): New global.
14055 (mips_read_description): New, based on mips_arch_setup.
14056 (mips_arch_setup): Reimplement.
14057 (get_usrregs_info): New function.
14058 (mips_cannot_fetch_register, mips_cannot_store_register)
14059 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14060 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14061 (target_regsets): Rename to ...
14062 (mips_regsets): ... this, and make static.
14063 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14064 (dsp_regs_info, regs_info): New globals.
14065 (mips_regs_info): New function.
14066 (the_low_target): Adjust.
14067 (initialize_low_arch): New function.
14068 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14069 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14071 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14072 (arm_read_description): New, with bits factored from
14074 (arm_arch_setup): Reimplement.
14075 (target_regsets): Rename to ...
14076 (arm_regsets): ... this, and make static.
14077 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14078 (arm_regs_info): New function.
14079 (the_low_target): Adjust.
14080 (initialize_low_arch): New function.
14081 * linux-m68k-low.c (tdesc_m68k): Declare.
14082 (target_regsets): Rename to ...
14083 (m68k_regsets): ... this, and make static.
14084 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14085 (m68k_regs_info): New function.
14086 (m68k_arch_setup): New function.
14087 (the_low_target): Adjust.
14088 (initialize_low_arch): New function.
14089 * linux-sh-low.c (tdesc_sharch): Declare.
14090 (target_regsets): Rename to ...
14091 (sh_regsets): ... this, and make static.
14092 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14093 (sh_regs_info, sh_arch_setup): New functions.
14094 (the_low_target): Adjust.
14095 (initialize_low_arch): New function.
14096 * linux-bfin-low.c (tdesc_bfin): Declare.
14097 (bfin_arch_setup): New function.
14098 (bfin_usrregs_info, regs_info): New globals.
14099 (bfin_regs_info): New function.
14100 (the_low_target): Adjust.
14101 (initialize_low_arch): New function.
14102 * linux-cris-low.c (tdesc_cris): Declare.
14103 (cris_arch_setup): New function.
14104 (cris_usrregs_info, regs_info): New globals.
14105 (cris_regs_info): New function.
14106 (the_low_target): Adjust.
14107 (initialize_low_arch): New function.
14108 * linux-cris-low.c (tdesc_crisv32): Declare.
14109 (cris_arch_setup): New function.
14110 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14111 (cris_regs_info): New function.
14112 (the_low_target): Adjust.
14113 (initialize_low_arch): New function.
14114 * linux-m32r-low.c (tdesc_m32r): Declare.
14115 (m32r_arch_setup): New function.
14116 (m32r_usrregs_info, regs_info): New globals.
14117 (m32r_regs_info): Adjust.
14118 (initialize_low_arch): New function.
14119 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14120 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14121 (tic6x_usrregs_info): Forward declare.
14122 (tic6x_read_description): New function, based on ...
14123 (tic6x_arch_setup): ... this. Reimplement.
14124 (target_regsets): Rename to ...
14125 (tic6x_regsets): ... this, and make static.
14126 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14127 (tic6x_regs_info): New function.
14128 (the_low_target): Adjust.
14129 (initialize_low_arch): New function.
14130 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14131 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14132 (target_regsets): Rename to ...
14133 (xtensa_regsets): ... this, and make static.
14134 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14136 (xtensa_arch_setup, xtensa_regs_info): New functions.
14137 (the_low_target): Adjust.
14138 (initialize_low_arch): New function.
14139 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14140 (nios2_arch_setup): Set the current process'es tdesc.
14141 (target_regsets): Rename to ...
14142 (nios2_regsets): ... this.
14143 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14144 (nios2_regs_info): New function.
14145 (the_low_target): Adjust.
14146 (initialize_low_arch): New function.
14147 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14148 (aarch64_arch_setup): Set the current process'es tdesc.
14149 (target_regsets): Rename to ...
14150 (aarch64_regsets): ... this.
14151 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14152 (aarch64_regs_info): New function.
14153 (the_low_target): Adjust.
14154 (initialize_low_arch): New function.
14155 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14157 (target_regsets): Rename to ...
14158 (tile_regsets): ... this.
14159 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14160 (tile_regs_info): New function.
14161 (tile_arch_setup): Set the current process'es tdesc.
14162 (the_low_target): Adjust.
14163 (initialize_low_arch): New function.
14164 * spu-low.c (tdesc_spu): Declare.
14165 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14166 * win32-arm-low.c (tdesc_arm): Declare.
14167 (arm_arch_setup): New function.
14168 (the_low_target): Install arm_arch_setup instead of
14169 init_registers_arm.
14170 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14171 (init_windows_x86): Rename to ...
14172 (i386_arch_setup): ... this. Set `win32_tdesc'.
14173 (the_low_target): Adjust.
14174 * win32-low.c (win32_tdesc): New global.
14175 (child_add_thread): Don't create the thread cache here.
14176 (do_initial_child_stuff): Set the new process'es tdesc.
14177 * win32-low.h (struct target_desc): Forward declare.
14178 (win32_tdesc): Declare.
14179 * lynx-i386-low.c (tdesc_i386): Declare global.
14180 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14181 * lynx-low.c (lynx_tdesc): New global.
14182 (lynx_add_process): Set the new process'es tdesc.
14183 * lynx-low.h (struct target_desc): Forward declare.
14184 (lynx_tdesc): Declare global.
14185 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14186 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14187 * nto-low.c (nto_tdesc): New global.
14188 (do_attach): Set the new process'es tdesc.
14189 * nto-low.h (struct target_desc): Forward declare.
14190 (nto_tdesc): Declare.
14191 * nto-x86-low.c (tdesc_i386): Declare.
14192 (nto_x86_arch_setup): Set `nto_tdesc'.
14194 2013-06-04 Gary Benson <gbenson@redhat.com>
14196 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14197 to qSupported response when appropriate.
14198 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14199 with nonzero-length annex.
14200 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14201 arguments supplied in annex.
14203 2013-05-31 Doug Evans <dje@google.com>
14206 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14207 64 bits in 64-cross-32 environment.
14209 2013-05-28 Pedro Alves <palves@redhat.com>
14211 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14212 (aarch64-without-fpu.c): Delete rule.
14213 * configure.srv (aarch64*-*-linux*): Remove references to
14214 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14215 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14218 2013-05-24 Pedro Alves <palves@redhat.com>
14220 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14221 instead of strchr/decode_address. Error if the range isn't split
14222 with a ','. Don't assume there's be a ':' in the action.
14224 2013-05-23 Yao Qi <yao@codesourcery.com>
14225 Pedro Alves <palves@redhat.com>
14227 * linux-low.c (lwp_in_step_range): New function.
14228 (linux_wait_1): If the thread was range stepping and stopped
14229 outside the stepping range, report the stop to GDB. Otherwise,
14230 continue stepping. Add range stepping debug output.
14231 (linux_set_resume_request): Copy the step range from the resume
14232 request to the lwp.
14233 (linux_supports_range_stepping): New.
14234 (linux_target_ops) <supports_range_stepping>: Set to
14235 linux_supports_range_stepping.
14236 * linux-low.h (struct linux_target_ops)
14237 <supports_range_stepping>: New field.
14238 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14239 * linux-x86-low.c (x86_supports_range_stepping): New.
14240 (the_low_target) <supports_range_stepping>: Set to
14241 x86_supports_range_stepping.
14242 * server.c (handle_v_cont): Handle 'r' action.
14243 (handle_v_requests): Append ";r" if the target supports range
14245 * target.h (struct thread_resume) <step_range_start,
14246 step_range_end>: New fields.
14247 (struct target_ops) <supports_range_stepping>:
14249 (target_supports_range_stepping): New macro.
14251 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14253 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14254 confusion in comment.
14256 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14258 * lynx-low.c (struct process_info_private): New type.
14259 (lynx_add_process): New function.
14260 (lynx_create_inferior, lynx_attach): Replace calls to
14261 add_process by calls to lynx_add_process.
14262 (lynx_resume): If PTID is null, then try using
14263 current_process()->private->last_wait_event_ptid.
14265 (lynx_clear_inferiors): Delete. The contents of that function
14266 has been inlined in lynx_mourn;
14267 (lynx_wait_1): Save the ptid in the process's private data.
14268 (lynx_mourn): Free the process' private data. Replace call
14269 to lynx_clear_inferiors by call to clear_inferiors.
14271 2013-05-17 Yao Qi <yao@codesourcery.com>
14273 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14276 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14278 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14279 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14280 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14281 PT_TEXT_END_ADDR guards. Update comments.
14282 (linux_target_op) <read_offsets>: Conditionally define to
14283 linux_read_offsets if the target is UCLIBC and if it defines
14284 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14286 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14287 Andrew Jenner <andrew@codesourcery.com>
14289 * Makefile.in (SFILES): Add linux-nios2-low.c.
14290 (clean): Add action to delete nios2-linux.c.
14291 (nios2-linux.c): New rule.
14292 * configure.srv: Add nios2*-*-linux*.
14293 * linux-nios2-low.c: New.
14295 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14297 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14299 2013-04-25 Hui Zhu <hui@codesourcery.com>
14302 * ax.c (ax_printf): Add fflush.
14304 2013-04-22 Tom Tromey <tromey@redhat.com>
14306 * Makefile.in (SFILES): Add filestuff.c.
14307 (OBS): Add filestuff.o.
14308 (filestuff.o): New target.
14309 * config.in, configure: Rebuild.
14310 * configure.ac: Check for fdwalk, pipe2.
14312 2013-04-17 Pedro Alves <palves@redhat.com>
14314 * configure.ac (USE_THREAD_DB): Delete variable.
14315 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14316 Don't AC_SUBST USE_THREAD_DB.
14317 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14318 * config.in, configure: Regenerate.
14320 2013-04-16 Pedro Alves <palves@redhat.com>
14322 * linux-low.h (struct lwp_info) <thread_known>: Move under
14323 the USE_THREAD_DB #ifdef.
14325 2013-04-16 Pedro Alves <palves@redhat.com>
14327 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14328 (linux-low.o): Delete rule.
14329 * linux-low.h: Always include "gdb_thread_db.h" instead of
14330 conditionally including thread_db.h.
14331 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14334 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14336 * Makefile.in (install-only): Fix make install regression.
14338 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14340 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14341 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14343 * gdbserver.1: Remove.
14345 2013-03-22 Pedro Alves <palves@redhat.com>
14347 * linux-low.c (handle_extended_wait): Don't call
14348 linux_enable_event_reporting.
14350 2013-03-15 Tony Theodore <tonyt@logyst.com>
14353 * Makefile.in (SHELL): Use @SHELL@.
14355 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14357 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14360 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14362 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14363 Remove extraneous NULL element.
14365 2013-03-13 Yao Qi <yao@codesourcery.com>
14367 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14368 'V' block in trace frame.
14370 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14372 * target.h (struct target_ops): Add btrace ops.
14373 (target_supports_btrace): New macro.
14374 (target_enable_btrace): New macro.
14375 (target_disable_btrace): New macro.
14376 (target_read_btrace): New macro.
14377 * gdbthread.h (struct thread_info): Add btrace field.
14378 * server.c: Include btrace-common.h.
14379 (handle_btrace_general_set): New function.
14380 (handle_btrace_enable): New function.
14381 (handle_btrace_disable): New function.
14382 (handle_general_set): Call handle_btrace_general_set.
14383 (handle_qxfer_btrace): New function.
14384 (struct qxfer qxfer_packets[]): Add btrace entry.
14385 * inferiors.c (remove_thread): Disable btrace.
14386 * linux-low: Include linux-btrace.h.
14387 (linux_low_enable_btrace): New function.
14388 (linux_low_read_btrace): New function.
14389 (linux_target_ops): Add btrace ops.
14390 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14391 Add srv_linux_btrace=yes.
14392 (x86_64-*-linux*): Add linux-btrace.o.
14393 Add srv_linux_btrace=yes.
14394 * configure.ac: Define HAVE_LINUX_BTRACE.
14395 * config.in: Regenerated.
14396 * configure: Regenerated.
14398 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14400 * server.c (handle_qxfer): Preserve error message if -3 is
14402 (qxfer): Document the -3 return value.
14404 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14406 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14407 (linux_btrace_h): New variable.
14408 (linux-btrace.o): New rule.
14410 2013-03-08 Stan Shebs <stan@codesourcery.com>
14411 Hafiz Abid Qadeer <abidh@codesourcery.com>
14413 * tracepoint.c (trace_buffer_size): New global.
14414 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14415 (init_trace_buffer): Change to one-argument function. Allocate
14416 trace buffer memory.
14417 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14418 handle QTBuffer:size packet.
14419 (cmd_bigqtbuffer_size): New function.
14420 (initialize_tracepoint): Call init_trace_buffer with
14421 DEFAULT_TRACE_BUFFER_SIZE.
14422 * server.c (handle_query): Add QTBuffer:size in the
14425 2013-03-07 Yao Qi <yao@codesourcery.com>
14427 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14428 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14430 (cmd_qtsp): Adjust condition. Do post increment.
14431 Set cur_action and cur_step_action back to 0.
14433 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14436 * linux-low.c (linux_write_memory): Return early success if LEN is
14439 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14441 * configure.srv: Add x86_64-*-cygwin* as target.
14443 2013-02-28 Tom Tromey <tromey@redhat.com>
14445 * configure.ac: Invoke AC_SYS_LARGEFILE.
14446 * configure, config.in: Rebuild.
14448 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14450 * win32-low.c: Throughout, fix format strings and casts of
14451 printf-like functions to avoid type related warnings on all
14453 (get_child_debug_event): Print dwDebugEventCode as hex since
14454 that's how it's usually documented.
14456 2013-02-28 Yao Qi <yao@codesourcery.com>
14458 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14461 2013-02-27 Jiong Wang <jiwang@tilera.com>
14463 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14464 (reg-tilegx32.c): New rule.
14465 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14466 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14467 different register info initializer according to elf class.
14468 (init_registers_tilgx32): New function. The tilegx32 register info
14470 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14471 (tile_store_gregset): Likewise.
14473 2013-02-27 Yao Qi <yao@codesourcery.com>
14475 * server.c (process_point_options): Print debug message when
14476 debug_threads is true.
14478 2013-02-26 Yao Qi <yao@codesourcery.com>
14480 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14482 2013-02-19 Pedro Alves <palves@redhat.com>
14483 Kai Tietz <ktietz@redhat.com>
14487 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14488 instead of strtoul to extract address from packet.
14489 (process_serial_event) <'z'>: Likewise.
14491 2013-02-18 Yao Qi <yao@codesourcery.com>
14493 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14495 2013-02-14 Pedro Alves <palves@redhat.com>
14499 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14500 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14502 2013-02-14 Pedro Alves <palves@redhat.com>
14504 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14506 2013-02-14 Pedro Alves <palves@redhat.com>
14508 * tracepoint.c (save_string): Delete.
14509 (add_tracepoint_action): Use savestring instead of save_string.
14511 2013-02-12 Pedro Alves <palves@redhat.com>
14513 * linux-xtensa-low.c: Ditto.
14514 * xtensa-xtregs.c: Ditto.
14516 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14518 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14521 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14523 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14524 aarch64_num_wp_regs and aarch64_num_bp_regs to
14525 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14527 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14529 * linux-aarch64-low.c (ps_get_thread_area): Replace
14530 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14532 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14533 Marcus Shawcroft <marcus.shawcroft@arm.com>
14534 Nigel Stephens <nigel.stephens@arm.com>
14535 Yufeng Zhang <yufeng.zhang@arm.com>
14537 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14538 (aarch64.c, aarch64-without-fpu.c): New targets.
14539 * configure.srv (aarch64*-*-linux*): New.
14540 * linux-aarch64-low.c: New file.
14542 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14544 * linux-low.c (handle_extended_wait, linux_create_inferior)
14545 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14546 (dequeue_one_deferred_signal, linux_resume_one_thread)
14547 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14548 (linux_tracefork_grandchild, linux_test_for_tracefork)
14549 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14550 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14551 where the argument is 0.
14553 2013-01-25 Yao Qi <yao@codesourcery.com>
14555 * event-loop.c: Include "queue.h".
14556 (gdb_event_p): New typedef.
14557 (struct gdb_event) <next_event>: Remove.
14558 (event_queue): Change to QUEUE(gdb_event_p).
14559 (async_queue_event): Remove.
14560 (gdb_event_xfree): New.
14561 (initialize_event_loop): New.
14562 (process_event): Use API from QUEUE.
14563 (wait_for_event): Likewise.
14564 * server.c (main): Call initialize_event_loop.
14565 * server.h (initialize_event_loop): Declare.
14567 2013-01-18 Yao Qi <yao@codesourcery.com>
14569 * ax.h (struct eval_agent_expr_context): New.
14570 (gdb_eval_agent_expr): Update declaration.
14571 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14572 TFRAME. Add new argument CTX.
14573 * server.h (struct eval_agent_expr_context): Declare.
14574 (agent_mem_read, agent_tsv_read): Update declaration.
14575 (agent_mem_read_string): Likewise.
14576 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14577 (add_traceframe_block): Add new argument TPOINT.
14578 Increase TPOINT->traceframe_usage.
14579 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14580 eval_tracepoint_agent_expr.
14581 (condition_true_at_tracepoint): Likewise.
14582 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14583 (agent_mem_read_string, agent_tsv_read): Likewise.
14585 2013-01-16 Yao Qi <yao@codesourcery.com>
14587 * linux-low.c (linux_resume_one_lwp): Don't check
14588 'lwp->bp_reinsert != 0'.
14590 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14591 Pedro Alves <palves@redhat.com>
14593 * lynx-low.c (ptrace_request_to_str): Define a temporary
14594 macro and use it to simplify this function's implementation.
14596 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14598 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14601 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14603 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14605 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14607 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14609 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14611 * lynx-low.c (lynx_resume): Use the resume_info parameter
14612 to determine the ptid for the lynx_ptrace call, unless
14613 it is equal to minus_one_ptid, in which case we use the
14614 ptid of the current_inferior.
14615 (lynx_wait_1): After having received a thread create/exit
14616 event, resume the inferior's execution using the signaling
14617 thread's ptid, rather than the old ptid.
14619 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14621 * lynx-low.c (lynx_resume): Delete variable ret.
14623 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14625 * gdbreplay.c (gdbreplay_version): Update copyright year.
14626 * server.c (gdbserver_version): Likewise.
14628 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14630 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14633 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14635 * lynx-low.c (ptrace_request_to_str): Add handling for
14636 PTRACE_GETTRACESIG.
14638 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14640 * lynx-low.c (lynx_attach): Delete variable new_process.
14642 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14644 * lynx-low.c (lynx_create_inferior): Delete variable
14647 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14649 * lynx-low.c (ptrace_request_to_str): Do not handle
14650 PTRACE_GETTHREADLIST if this macro does not exist.
14652 2012-12-15 Yao Qi <yao@codesourcery.com>
14654 * Makefile.in (OBS): Add notif.o.
14655 * notif.c, notif.h: New.
14656 * server.c: Include "notif.h".
14657 (struct vstop_notif) <next>: Remove.
14659 (queue_stop_reply): Update.
14660 (push_event, send_next_stop_reply): Remove.
14661 (discard_queued_stop_replies): Update.
14662 (notif_stop): New variable.
14663 (handle_v_stopped): Remove.
14664 (handle_v_requests): Don't call handle_v_stopped. Call
14665 handle_ack_notif instead.
14666 (queue_stop_reply_callback): Call notif_event_enque instead
14667 of queue_stop_reply.
14668 (handle_status): Don't call send_next_stop_reply, call
14669 notif_write_event instead.
14670 (kill_inferior_callback): Likewise.
14671 (detach_or_kill_inferior_callback): Likewise.
14672 (main): Call initialize_notif.
14673 (process_serial_event): Call QUEUE_is_empty.
14674 (handle_target_event): Call notif_push instead of push event.
14675 * server.h (push_event): Remove declaration.
14677 2012-12-10 Tom Tromey <tromey@redhat.com>
14679 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14680 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14683 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14684 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14685 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14686 (amd64-linux-ipa.o, ax.o): Rewrite.
14687 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14688 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14689 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14690 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14691 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14692 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14693 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14694 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14695 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14696 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14697 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14698 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14699 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14700 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14701 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14702 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14703 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14704 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14705 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14706 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14707 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14708 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14709 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14710 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14711 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14712 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14713 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14714 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14715 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14716 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14717 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14718 (reg-tilegx.o): Remove.
14719 (all_object_files): New macro.
14720 Include .deps files.
14721 * aclocal.m4, configure: Rebuild.
14722 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14723 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14724 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14726 2012-12-05 Tom Tromey <tromey@redhat.com>
14729 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14731 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14733 * configure.ac: Check for linux/perf_event.h.
14734 * config.in: Regenerated.
14735 * configure: Regenerated.
14737 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14739 * hostio.c (handle_readlink): Decrease buffer size
14740 parameter passed to readlink by one byte.
14742 2012-11-26 Yao Qi <yao@codesourcery.com>
14744 * configure.ac (build_warnings): Append '-Wempty-body'.
14745 * configure: Regenerated.
14746 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14749 2012-11-15 Pierre Muller <muller@sourceware.org>
14751 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14752 * config.in: Regenerate.
14753 * configure: Regenerate.
14754 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14755 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14756 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14757 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14759 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14760 instead of <sys/wait.h> header.
14761 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14763 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14765 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14766 (various make rules): Remove -DGDBSERVER
14768 2012-11-09 Yao Qi <yao@codesourcery.com>
14770 * spu-low.c (current_ptid): Move it to ..
14771 * gdbthread.h: ... here. New.
14772 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14773 * server.c (myresume, process_serial_event): Likewise.
14774 * thread-db.c (thread_db_find_new_threads): Likewise.
14775 * tracepoint.c (run_inferior_command): Likewise.
14777 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14779 * server.c (handle_search_memory_1): Include access length in
14782 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14784 * linux-crisv32-low.c: Fix compile errors.
14786 2012-09-04 Yao Qi <yao@codesourcery.com>
14788 * tracepoint.c (cmd_qtsv): Adjust debug message.
14789 Don't check CUR_TPOINT.
14791 2012-08-28 Yao Qi <yao@codesourcery.com>
14793 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14794 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14795 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14796 Remove declarations of xmalloc, xreallloc, xstrdup and
14798 * Makefile.in (libiberty_h): New.
14799 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14800 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14802 2012-08-23 Yao Qi <yao@codesourcery.com>
14804 * server.h: Remove declaration of 'xsnprintf'.
14806 2012-08-22 Keith Seitz <keiths@redhat.com>
14808 * server.h: Include build-gnulib-gbserver/config.h.
14809 * gdbreplay.c: Likewise.
14811 2012-08-08 Doug Evans <dje@google.com>
14813 * Makefile.in (SFILES): Add gdb_vecs.c.
14814 (OBS): Add gdb_vecs.o.
14815 (gdb_vecs_h, host_defs_h): New variables.
14816 (thread-db.o): Add $(gdb_vecs_h) dependency.
14817 (gdb_vecs.o): New rule.
14818 * thread-db.c: #include "gdb_vecs.h".
14819 (thread_db_load_search): Use a vector to iterate over path elements.
14820 Handle text appearing after "$pdir".
14822 * configure.ac: Add check for strstr.
14823 * config.in: Regenerate.
14824 * configure: Regenerate.
14826 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14828 * hostio.c (handle_pread): If pread fails, fall back to attempting
14830 (handle_pwrite): Likewise for pwrite.
14832 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14834 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14835 between unsupported TYPE and unimplementable ADDR/LEN combination.
14836 (arm_insert_point): Act on new return value.
14838 2012-07-31 Pedro Alves <palves@redhat.com>
14840 * server.c (process_point_options): Only skip tokens if we find
14841 one that is unrecognized. Don't treat 'X' specially while
14842 skipping unrecognized tokens.
14844 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14846 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14847 to 4-byte-align HW breakpoint addresses for Thumb.
14849 2012-07-27 Yao Qi <yao@codesourcery.com>
14853 * server.h: Declare gdb_agent_about_to_close.
14854 * target.c (kill_inferior): Include "agent.h".
14855 New. Send command 'kill'.
14856 * target.h (kill_inferior): Removed macro.
14857 * tracepoint.c (gdb_agent_about_to_close): New.
14858 (gdb_agent_helper_thread): Handle command 'close'.
14859 Wait endlessly until the inferior stops.
14860 Install gdb_agent_remove_socket to atexit hook.
14861 (agent_socket_name): New static variable.
14862 (gdb_agent_socket_init): Replace local variable 'name' with
14863 'agent_socket_name'.
14864 (gdb_agent_remove_socket): New.
14866 2012-07-27 Yao Qi <yao@codesourcery.com>
14868 * server.c (process_point_options): Stop at 'X' when parsing.
14870 2012-07-19 Michael Eager <eager@eagercon.com>
14872 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14874 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14875 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14876 hardware breakpoint.
14878 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14880 * gdbserver/linux-low.c (initialize_low): Call
14881 linux_ptrace_init_warnings.
14883 2012-07-02 Doug Evans <dje@google.com>
14885 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14888 2012-07-02 Stan Shebs <stan@codesourcery.com>
14890 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14891 (ax.o): Add it to build rule.
14893 (OBS): Add format.o.
14894 (IPA_OBS): Add format.o.
14895 * server.c (handle_query): Claim support for breakpoint commands.
14896 (process_point_options): Add command case.
14897 (process_serial_event): Leave running if there are printfs in
14899 * mem-break.h (any_persistent_commands): Declare.
14900 (add_breakpoint_commands): Declare.
14901 (gdb_no_commands_at_breakpoint): Declare.
14902 (run_breakpoint_commands): Declare.
14903 * mem-break.c (struct point_command_list): New struct.
14904 (struct breakpoint): New field command_list.
14905 (any_persistent_commands): New function.
14906 (add_commands_to_breakpoint): New function.
14907 (add_breakpoint_commands): New function.
14908 (gdb_no_commands_at_breakpoint): New function.
14909 (run_breakpoint_commands): New function.
14910 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14912 * ax.c: Include format.h.
14913 (ax_printf): New function.
14914 (gdb_eval_agent_expr): Add printf opcode.
14916 2012-06-13 Yao Qi <yao@codesourcery.com>
14918 * server.c (start_inferior): Remove duplicated writes to fields
14919 'last_resume_kind' and 'last_status' of 'current_inferior'.
14921 2012-06-12 Yao Qi <yao@codesourcery.com>
14922 Pedro Alves <palves@redhat.com>
14924 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14926 * server.c (handle_v_cont): Extend comment.
14928 2012-06-11 Yao Qi <yao@codesourcery.com>
14930 * linux-low.c (linux_attach): Add 'static'.
14932 2012-06-06 Yao Qi <yao@codesourcery.com>
14934 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14936 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14938 Fix gcc -flto compilation warning.
14939 * server.c (main): Make variable multi_mode and attach volatile.
14941 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14943 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14944 if the platform doesn't know about it.
14946 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14948 * Makefile.in (SFILES): Add linux-tile-low.c.
14949 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14950 * configure.srv: Handle tilegx-*-linux*.
14951 * linux-tile-low.c: New file.
14953 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14955 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14957 2012-05-24 Pedro Alves <palves@redhat.com>
14961 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14963 2012-05-24 Pedro Alves <palves@redhat.com>
14967 Replace target_signal with gdb_signal throughout.
14969 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14971 * linux-low.c (linux_store_registers): Avoid the copying sequence
14972 when no data has been retrieved by ptrace.
14974 2012-05-22 Will Deacon <will.deacon@arm.com>
14976 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14977 Include asm/ptrace.h.
14978 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14981 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14983 * linux-low.c (linux_store_registers): Don't re-retrieve data
14984 with ptrace that has already been obtained from /proc. Always
14985 copy any data retrieved with ptrace to the buffer supplied.
14987 2012-05-11 Yao Qi <yao@codesourcery.com>
14988 Pedro Alves <palves@redhat.com>
14990 * linux-low.c (enum stopping_threads_kind): New.
14991 (stopping_threads): Change type to `enum stopping_threads_kind'.
14992 (handle_extended_wait): If stopping and suspending threads, leave
14993 the new_lwp suspended too.
14994 (linux_wait_for_event): Adjust.
14995 (stop_all_lwps): Set `stopping_threads' to
14996 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14997 whether we're suspending threads or just stopping them. Assert no
15000 2012-04-29 Yao Qi <yao@codesourcery.com>
15002 * server.h: Move some code to ...
15003 * gdbthread.h: ... here. New.
15004 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15005 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15006 (nto-low.o, win32-low.o): Likewise.
15007 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15008 * regcache.c, remote-utils.c, server.c: Likewise.
15009 * target.c, tracepoint.c, win32-low.c: Likewise.
15011 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15013 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15014 (PTRACE_ARG4_TYPE): Likewise.
15015 (PTRACE_XFER_TYPE): Likewise.
15016 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15017 ptrace to PTRACE_ARG3_TYPE.
15018 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15019 (PTRACE_ARG4_TYPE): Likewise.
15020 (PTRACE_XFER_TYPE): Likewise.
15021 (linux_detach_one_lwp): Cast fourth argument of
15022 ptrace to long then PTRACE_ARG4_TYPE.
15023 (regsets_fetch_inferior_registers): Cast third argument of
15024 ptrace to long then PTRACE_ARG3_TYPE.
15025 (regsets_store_inferior_registers): Likewise.
15027 2012-04-20 Pedro Alves <palves@redhat.com>
15029 * configure: Regenerate.
15031 2012-04-19 Pedro Alves <palves@redhat.com>
15033 * Makefile.in (GNULIB_BUILDDIR): New.
15034 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15035 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15036 (all, install-only, uninstall, clean-info, all-lib, clean): No
15037 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15038 (maintainer-clean realclean distclean): Use subdir_do.
15040 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15041 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15042 * acinclude.m4: Include acx_configure_dir.m4.
15043 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15044 calls. Call AC_PROG_RANLIB. Configure gnulib using
15047 (GNULIB_STDINT_H): Adjust.
15048 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15049 * gdbreplay.c: Include build-gnulib/config.h.
15050 * server.h: Likewise.
15051 * aclocal.m4: Regenerate.
15052 * config.in: Regenerate.
15053 * configure: Regenerate.
15055 2012-04-19 Pedro Alves <palves@redhat.com>
15057 * Makefile.in (LIBGNU, INCGNU): Adjust.
15058 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15059 (all, install-only, uninstall, clean-info, all-lib, clean)
15060 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15061 * configure.ac: Adjust AC_OUTPUT output.
15062 * aclocal.m4: Regenerate.
15063 * configure: Regenerate.
15065 2012-04-19 Pedro Alves <palves@redhat.com>
15067 * Makefile.in (generated_files): New.
15068 (server_h): Remove the explicit dependency on config.h, and depend
15069 on $generated_files.
15071 2012-04-19 Pedro Alves <palves@redhat.com>
15073 * Makefile.in (INCGNU): Add -Ignulib.
15075 2012-04-19 Pedro Alves <palves@redhat.com>
15077 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15078 (INCGNU): ... this, and spell out -I here.
15079 (GNULIB_LIB): Rename to ...
15080 (LIBGNU): ... this.
15081 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15083 2012-04-19 Pedro Alves <palves@redhat.com>
15085 * config.in: Regenerate.
15087 2012-04-19 Pedro Alves <palves@redhat.com>
15089 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15090 * server.h (memmem): Remove declaration.
15091 * config.in: Regenerate.
15092 * configure: Regenerate.
15094 2012-04-19 Yao Qi <yao@codesourcery.com>
15096 * Makefile.in (SFILES): Add common/vec.c.
15100 2012-04-19 Yao Qi <yao@codesourcery.com>
15102 * remote-utils.c (prepare_resume_reply): Replace with macro
15103 target_core_of_thread.
15104 * server.c (handle_qxfer_threads_proper): Likewise.
15105 * target.h (traget_core_of_thread): New macro.
15107 2012-04-18 Pedro Alves <palves@redhat.com>
15109 * aclocal.m4: Regenerate.
15110 * configure: Regenerate.
15112 2012-04-16 Yao Qi <yao@codesourcery.com>
15114 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15115 duplicated on address.
15117 2012-04-16 Yao Qi <yao@codesourcery.com>
15119 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15120 (struct tracepoint_action_ops) <send>: New field.
15121 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15122 (agent_expr_send, x_tracepoint_action_send): New.
15123 (l_tracepoint_action_send): New.
15124 (cmd_qtdp): Download and install tracepoint
15125 according to `use_agent'.
15126 (run_inferior_command): Add one more parameter `len'.
15128 (tracepoint_send_agent): New.
15129 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15131 2012-04-16 Yao Qi <yao@codesourcery.com>
15133 * tracepoint.c (download_tracepoints): Moved to ...
15134 (cmd_qtstart): ... here.
15136 2012-04-14 Yao Qi <yao@codesourcery.com>
15138 * tracepoint.c: Include inttypes.h.
15139 (struct collect_memory_action): Use sized types.
15140 (struct tracepoint): Likewise.
15141 (cmd_qtdp, stop_tracing): Update print specifiers.
15142 (cmd_qtp, response_tracepoint): Likewise.
15143 (collect_data_at_tracepoint): Likewise.
15144 (collect_data_at_step): Likewise.
15146 2012-04-14 Yao Qi <yao@codesourcery.com>
15148 Import gnulib module inttypes.
15149 * aclocal.m4, config.in, configure: Regenerated.
15151 2012-04-14 Yao Qi <yao@codesourcery.com>
15153 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15154 Makefile and config.status at last.
15156 2012-04-13 Yao Qi <yao@codesourcery.com>
15158 * tracepoint.c: Include stdint.h unconditionally.
15160 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15162 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15163 on BFD_HAVE_SYS_PROCFS_TYPE.
15164 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15165 * configure: Regenerate.
15166 * config.in: Likewise.
15168 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15170 * Makefile.in (clean): Also remove x32.c x32-linux.c
15171 x32-avx.c x32-avx-linux.c.
15172 (x32.o): New target.
15174 (x32-linux.o): Likewise.
15175 (x32-linux.c): Likewise.
15176 (x32-avx.o): Likewise.
15177 (x32-avx.c): Likewise.
15178 (x32-avx-linux.o): Likewise.
15179 (x32-avx-linux.c): Likewise.
15181 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15182 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15183 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15184 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15185 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15186 i386/x32-avx-linux.xml.
15188 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15189 (init_registers_x32_avx_linux): Likwise.
15190 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15191 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15193 2012-04-13 Pedro Alves <palves@redhat.com>
15195 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15196 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15197 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15198 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15201 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15203 * linux-x86-low.c (compat_x32_clock_t): New.
15204 (compat_x32_siginfo_t): Likewise.
15205 (compat_x32_siginfo_from_siginfo): Likewise.
15206 (siginfo_from_compat_x32_siginfo): Likewise.
15207 (linux_is_elf64): Likewise.
15208 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15209 and siginfo_from_compat_x32_siginfo for x32.
15210 (x86_arch_setup): Set linux_is_elf64.
15212 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15215 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15217 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15218 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15219 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15220 compatible with process.
15222 2012-04-12 Yao Qi <yao@codesourcery.com>
15224 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15225 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15226 (install-only, install-info, clean): Handle sub dir gnulib.
15227 (all-lib, am--refresh): New targets.
15228 (memmem.o): Remove target.
15229 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15230 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15231 (AC_REPLACE_FUNCS): Remove memmem.
15232 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15233 (AC_OUTPUT): Generate Makefile in gnulib/.
15234 * aclocal.m4, config.in, configure: Regenerated.
15236 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15238 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15240 2012-04-05 Pedro Alves <palves@redhat.com>
15242 -Werror=strict-aliasing
15244 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15247 2012-04-04 Pedro Alves <palves@redhat.com>
15249 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15250 (sparc_store_gregset_from_stack, sparc_store_gregset)
15251 (sparc_breakpoint_at): Fix formatting.
15253 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15255 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15257 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15258 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15259 * config.in: Regenerate.
15260 * configure: Likewise.
15262 2012-03-29 Pedro Alves <palves@redhat.com>
15264 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15265 Correct ptrace arguments.
15267 2012-03-28 Pedro Alves <palves@redhat.com>
15269 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15270 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15271 (IA64_FR1_REGNUM): New defines.
15272 (ia64_fetch_register): New.
15273 (the_low_target): Install it.
15274 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15276 * linux-low.c (linux_fetch_registers): Try the
15277 the_low_target.fetch_register hook first.
15279 * linux-arm-low.c (the_low_target): Adjust.
15280 * linux-bfin-low.c (the_low_target): Adjust.
15281 * linux-cris-low.c (the_low_target): Adjust.
15282 * linux-crisv32-low.c (the_low_target): Adjust.
15283 * linux-m32r-low.c (the_low_target): Adjust.
15284 * linux-m68k-low.c (the_low_target): Adjust.
15285 * linux-mips-low.c (the_low_target): Adjust.
15286 * linux-ppc-low.c (the_low_target): Adjust.
15287 * linux-s390-low.c (the_low_target): Adjust.
15288 * linux-sh-low.c (the_low_target): Adjust.
15289 * linux-sparc-low.c (the_low_target): Adjust.
15290 * linux-tic6x-low.c (the_low_target): Adjust.
15291 * linux-x86-low.c (the_low_target): Adjust.
15292 * linux-xtensa-low.c (the_low_target): Adjust.
15294 2012-03-26 Pedro Alves <palves@redhat.com>
15296 * server.c (handle_qxfer_libraries): Don't bail early if
15297 the_target->qxfer_libraries_svr4 is not NULL.
15299 2012-03-26 Pedro Alves <palves@redhat.com>
15301 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15303 2012-03-23 Pedro Alves <palves@redhat.com>
15305 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15306 "library-list-svr4" element's start tag when the the DSO list is
15309 2012-03-23 Pedro Alves <palves@redhat.com>
15311 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15312 a variable whose type size is the same as the inferior's pointer
15315 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15317 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15319 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15320 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15321 * linux-low.h: Include <signal.h>.
15322 (struct siginfo): Remove forward declaration.
15323 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15326 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15328 * .gitignore: Ignore more files.
15330 2012-03-19 Pedro Alves <palves@redhat.com>
15331 Jan Kratochvil <jan.kratochvil@redhat.com>
15333 * server.c (cont_thread, general_thread): Add describing comments.
15334 (start_inferior): Clear `cont_thread'.
15335 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15338 2012-03-15 Yao Qi <yao@codesourcery.com>
15340 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15342 (cmd_qtdp): ... here.
15344 2012-03-15 Yao Qi <yao@codesourcery.com>
15346 * tracepoint.c (struct tracepoint_action_ops): New.
15347 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15348 (m_tracepoint_action_download): New.
15349 (r_tracepoint_action_download): New.
15350 (x_tracepoint_action_download): New.
15351 (l_tracepoint_action_download): New.
15352 (add_tracepoint_action): Install `action->ops' according type.
15353 (download_tracepoint_1): Move code `download' function pointer
15354 of various tracepoint_action_ops.
15356 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15358 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15359 linux_ptrace_attach_warnings.
15361 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15363 * Makefile.in (linux-ptrace.o): New.
15364 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15365 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15366 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15367 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15368 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15370 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15372 2012-03-08 Yao Qi <yao@codesourcery.com>
15373 Pedro Alves <palves@redhat.com>
15375 Fix PR server/13392.
15376 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15377 offset of JMP insn.
15378 * tracepoint.c (remove_tracepoint): New.
15379 (cmd_qtdp): Call remove_tracepoint when failed to install.
15381 2012-03-07 Pedro Alves <palves@redhat.com>
15383 * linux-low.c (get_detach_signal): New.
15384 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15385 Pass on pending signals to PTRACE_DETACH. Check the result of the
15387 * server.c (program_signals, program_signals_p): New.
15388 (handle_general_set): Handle QProgramSignals.
15389 * server.h (program_signals, program_signals_p): Declare.
15391 2012-03-05 Pedro Alves <palves@redhat.com>
15392 Jan Kratochvil <jan.kratochvil@redhat.com>
15394 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15397 2012-03-03 Yao Qi <yao@codesourcery.com>
15399 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15400 agent_look_up_symbols.
15402 2012-03-03 Yao Qi <yao@codesourcery.com>
15404 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15405 (linux-x86-low.o): Likewise.
15406 * server.h: Remove in_process_agent_loaded.
15407 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15411 2012-03-03 Yao Qi <yao@codesourcery.com>
15413 * tracepoint.c (gdb_agent_capability): New global.
15414 (in_process_agent_loaded_ust): Renamed to
15415 `in_process_agent_supports_ust'.
15417 (in_process_agent_supports_ust): Call agent_capability_check.
15418 (clear_installed_tracepoints): Assert that agent supports
15421 2012-03-03 Yao Qi <yao@codesourcery.com>
15423 * linux-low.c (linux_supports_agent): New.
15424 (linux_target_ops): Initialize field `supports_agent' with
15425 linux_supports_agent.
15426 * target.h (struct target_ops) <supports_agent>: New.
15427 (target_supports_agent): New macro.
15428 * server.c (handle_general_set): Handle packet 'QAgent'.
15429 (handle_query): Send `QAgent+'.
15430 * Makefile.in (server.o): Depends on agent.h.
15432 2012-03-03 Yao Qi <yao@codesourcery.com>
15434 * Makefile.in (OBS): Add agent.o.
15435 Add new rule for agent.o.
15436 Track dependence of tracepoint.c on agent.h.
15437 * tracepoint.c (run_inferior_command_1):
15438 (run_inferior_command): Call agent_run_command.
15439 (gdb_ust_connect_sync_socket): Deleted. Move it to
15441 (resume_thread, stop_thread): Likewise.
15442 (gdb_ust_socket_init): Renamed to ...
15443 (gdb_agent_socket_init): ... New.
15444 (gdb_ust_thread): Renamed to ...
15445 (gdb_agent_helper_thread): ... New.
15446 (gdb_ust_init): Move some code to ...
15447 (gdb_agent_init): ... here. New.
15448 [HAVE_UST]: Call gdb_ust_init.
15449 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15450 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15451 * config.in, configure: Regenerated.
15453 2012-03-02 Pedro Alves <palves@redhat.com>
15455 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15456 * linux-low.c (struct simple_pid_list): New.
15457 (stopped_pids): New a struct simple_pid_list pointer.
15458 (add_to_pid_list, pull_pid_from_list): New.
15459 (handle_extended_wait): Don't assume the first signal new children
15460 report is SIGSTOP. Adjust call to pull_pid_from_list.
15461 (linux_wait_for_lwp): Adjust.
15463 2012-03-02 Yao Qi <yao@codesourcery.com>
15465 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15468 2012-03-02 Yao Qi <yao@codesourcery.com>
15470 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15471 `stop_pc' and `tpoint'. Update caller.
15473 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15475 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15476 * linux-low.c (use_linux_regsets): New macro.
15477 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15478 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15479 (linux_register_in_regsets): New function.
15480 (usr_fetch_inferior_registers): Skip registers covered by
15482 (usr_store_inferior_registers): Likewise.
15483 (usr_fetch_inferior_registers): New macro.
15484 (usr_store_inferior_registers): Likewise.
15485 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15486 (linux_store_registers): Likewise.
15487 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15489 (init_registers_mips64_dsp_linux): Likewise.
15490 (init_registers_mips_linux): New macro.
15491 (init_registers_mips_dsp_linux): Likewise.
15492 (mips_dsp_num_regs): Likewise.
15493 (DSP_BASE, DSP_CONTROL): New fallback macros.
15494 (mips_base_regs): New macro.
15495 (mips_regmap): Use it. Fix the size.
15496 (mips_dsp_regmap): New variable.
15497 (mips_dsp_regset_bitmap): Likewise.
15498 (mips_arch_setup): New function.
15499 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15501 (mips_cannot_store_register): Likewise.
15502 (the_low_target): Update .arch_setup, .num_regs and .regmap
15503 initializers. Add .regset_bitmap initializer.
15504 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15506 * linux-bfin-low.c (the_low_target): Likewise.
15507 * linux-cris-low.c (the_low_target): Likewise.
15508 * linux-crisv32-low.c (the_low_target): Likewise.
15509 * linux-ia64-low.c (the_low_target): Likewise.
15510 * linux-m32r-low.c (the_low_target): Likewise.
15511 * linux-m68k-low.c (the_low_target): Likewise.
15512 * linux-ppc-low.c (the_low_target): Likewise.
15513 * linux-s390-low.c (the_low_target): Likewise.
15514 * linux-sh-low.c (the_low_target): Likewise.
15515 * linux-sparc-low.c (the_low_target): Likewise.
15516 * linux-tic6x-low.c (the_low_target): Likewise.
15517 * linux-x86-low.c (the_low_target): Likewise.
15518 * linux-xtensa-low.c (the_low_target): Likewise.
15519 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15520 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15521 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15523 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15524 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15526 2012-02-29 Yao Qi <yao@codesourcery.com>
15527 Pedro Alves <palves@redhat.com>
15529 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15530 `step_over_finished' is true.
15532 2012-02-27 Pedro Alves <palves@redhat.com>
15534 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15535 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15537 2012-02-27 Pedro Alves <palves@redhat.com>
15540 * linux-low.c (pid_is_stopped): New.
15541 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15543 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15545 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15548 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15550 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15552 2012-02-24 Luis Machado <lgustavo@codesourcery>
15554 * server.c (handle_query): Advertise support for target-side
15555 breakpoint condition evaluation.
15556 (process_point_options): New function.
15557 (process_serial_event): When inserting a breakpoint, check for
15558 a target-side condition that should be evaluated.
15560 * mem-break.c: Include regcache.h and ax.h.
15561 (point_cond_list_t): New data structure.
15562 (breakpoint) <cond_list>: New field.
15563 (find_gdb_breakpoint_at): Make non-static.
15564 (delete_gdb_breakpoint_at): Clear any target-side
15566 (clear_gdb_breakpoint_conditions): New function.
15567 (add_condition_to_breakpoint): Likewise.
15568 (add_breakpoint_condition): Likewise.
15569 (gdb_condition_true_at_breakpoint): Likewise.
15570 (gdb_breakpoint_here): Return result directly instead
15571 of going through a local variable.
15573 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15574 (clear_gdb_breakpoint_conditions): Likewise.
15575 (add_breakpoint_condition): Likewise.
15576 (gdb_condition_true_at_breakpoint): Likewise.
15578 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15579 (need_step_over_p): Take target-side breakpoint condition into
15582 2012-02-24 Luis Machado <lgustavo@codesourcery>
15584 * server.h: Include tracepoint.h.
15585 (agent_mem_read, agent_get_trace_state_variable_value,
15586 agent_set_trace_state_variable_value,
15587 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15588 get_set_tsv_func_addr): New prototypes.
15590 * ax.h: New include file.
15591 * ax.c: New source file.
15593 * tracepoint.c: Include ax.h.
15594 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15595 agent_expr, eval_result_type): Move to ax.h.
15596 (parse_agent_expr): Rename to ...
15597 (gdb_parse_agent_expr): ... this, make it non-static and move
15599 (unparse_agent_expr) Rename to ...
15600 (gdb_unparse_agent_expr): ... this, make it non-static and move
15602 (eval_agent_expr): Rename to ...
15603 (eval_tracepoint_agent_expr): ... this.
15604 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15605 forward declarations.
15606 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15607 (agent_get_trace_state_variable_value): New function.
15608 (agent_set_trace_state_variable_value): New function.
15609 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15610 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15611 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15612 (condition_true_at_tracepoint): Likewise.
15613 (parse_agent_expr): Rename to ...
15614 (gdb_parse_agent_expr): ... this and move to ax.c.
15615 (unparse_agent_expr): Rename to ...
15616 (gdb_unparse_agent_expr): ... this and move to ax.c.
15617 (gdb_agent_op_name): Move to ax.c.
15618 (eval_agent_expr): Rename to ...
15619 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15621 (eval_tracepoint_agent_expr): New function.
15622 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15624 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15626 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15627 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15628 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15629 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15630 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15631 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15632 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15633 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15634 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15635 (compile_bytecodes): Remove forward declaration.
15636 (is_goto_target): Move to ax.c.
15637 (compile_bytecodes): Move to ax.c and call
15638 agent_get_trace_state_variable_value (...) and
15639 agent_set_trace_state_variable_value (...).
15641 * Makefile.in: Update ax.c and IPA dependencies.
15643 2012-02-24 Pedro Alves <palves@redhat.com>
15645 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15646 (cmd_bigqtbuffer_circular): ... this. Only handle
15647 'QTBuffer:circular:'.
15648 (handle_tracepoint_general_set): Adjust.
15650 2012-02-16 Yao Qi <yao@codesourcery.com>
15652 * inferiors.c: Move code to ...
15653 * dll.c: .... here. New.
15654 * server.h: Declare clear_dlls.
15655 * Makefile.in (SFILES): Add dll.c.
15659 2012-02-11 Yao Qi <yao@codesourcery.com>
15661 * server.c: (handle_monitor_command): Add a new parameter
15663 (handle_query): Update caller.
15665 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15667 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15668 * configure, config.in: Regenerate.
15669 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15672 2012-02-02 Pedro Alves <palves@redhat.com>
15674 Try SIGKILL first, then PTRACE_KILL.
15675 * linux-low.c (linux_kill_one_lwp): New.
15676 (linux_kill_one_lwp): Rename to ...
15677 (kill_one_lwp_callback): ... this. Use the new
15678 linux_kill_one_lwp.
15680 2012-02-02 Pedro Alves <palves@redhat.com>
15682 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15685 2012-01-27 Pedro Alves <palves@redhat.com>
15687 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15688 (elf_64_file_p): Make static.
15689 (linux_pid_exe_is_elf_64_file): New.
15690 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15691 Delete declarations.
15692 (linux_pid_exe_is_elf_64_file): Declare.
15693 * linux-x86-low.c (x86_arch_setup): Use
15694 linux_pid_exe_is_elf_64_file.
15696 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15698 * linux-low.c (linux_wait_for_event_1): Rename to ...
15699 (linux_wait_for_event): ... here and merge it with former
15700 linux_wait_for_event - new variable wait_ptid, use it.
15701 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15703 2012-01-23 Pedro Alves <palves@redhat.com>
15705 * server.c (main): Avoid yet another case of infinite loop while
15706 detaching/killing after a longjmp.
15708 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15711 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15713 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15715 * hostio.c (handle_readlink): New function.
15716 (handle_vFile): Call it to handle "vFile:readlink" packets.
15718 2012-01-20 Pedro Alves <palves@redhat.com>
15719 Ulrich Weigand <ulrich.weigand@linaro.org>
15721 * server.c (handle_v_requests): Only support vAttach and vRun to
15722 start multiple processes when in extended protocol mode.
15724 2012-01-17 Pedro Alves <palves@redhat.com>
15726 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15727 memalign plus mprotect to allocate the scratch buffer.
15729 2012-01-13 Pedro Alves <palves@redhat.com>
15731 * server.c (attach_inferior): Clear `cont_thread'.
15733 2012-01-13 Pedro Alves <palves@redhat.com>
15735 * server.c (main): Avoid infinite loop while detaching/killing
15738 2012-01-09 Doug Evans <dje@google.com>
15740 * server.c (start_inferior): Set last_ptid in --wrapper case.
15742 2012-01-06 Yao Qi <yao@codesourcery.com>
15744 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15746 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15748 2012-01-04 Yao Qi <yao@codesourcery.com>
15750 * tracepoint.c (cmd_qtdp): Print debug message
15751 for static tracepoint.
15753 2012-01-04 Yao Qi <yao@codesourcery.com>
15755 * tracepoint.c (trace_vdebug): Differentiate debug message
15756 between gdbserver and IPA.
15758 2012-01-03 Yao Qi <yao@codesourcery.com>
15760 * tracepoint.c (tracepoint_was_hit): Don't collect for
15763 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15765 * terminal.h: Reformat copyright header.
15767 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15769 * server.c (gdbserver_version): Update copyright year.
15770 * gdbreplay.c (gdbreplay_version): Likewise.
15772 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15774 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15777 2011-12-18 Hui Zhu <teawater@gmail.com>
15778 * linux-low.c (linux_create_inferior): Save return value to ret.
15780 2011-12-18 Hui Zhu <teawater@gmail.com>
15782 * linux-low.c (linux_create_inferior): Save return value to ret.
15784 2011-12-16 Doug Evans <dje@google.com>
15786 * linux-low.c (linux_create_inferior): If stdio connection,
15787 redirect stdin from /dev/null, stdout to stderr.
15788 * remote-utils.c (remote_is_stdio): New static global.
15789 (remote_connection_is_stdio): New function.
15790 (remote_prepare): Handle stdio connection.
15791 (remote_open): Ditto.
15792 (remote_close): Don't close stdin for stdio connections.
15793 (read_prim,write_prim): New functions. Replace all calls to
15794 read/write to these.
15795 * server.c (main): Watch for "-" argument. Move call to
15796 remote_prepare before start_inferior.
15797 * server.h (STDIO_CONNECTION_NAME): New macro.
15798 (remote_connection_is_stdio): Declare.
15800 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15801 in debugging output.
15803 2011-12-15 Yao Qi <yao@codesourcery.com>
15805 * tracepoint.c: Include sys/syscall.h.
15806 (gdb_ust_thread): Remove preprocessor conditional.
15808 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15810 * linux-low.c (linux_detach_one_lwp): Call
15811 the_low_target.prepare_to_resume before detaching.
15813 2011-12-14 Yao Qi <yao@codesourcery.com>
15815 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15818 2011-12-14 Yao Qi <yao@codesourcery.com>
15820 * i386-low.c (i386_low_stopped_data_address): Initialize local
15821 variable `control'.
15823 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15827 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15828 DR_CONTROL unless necessary. Extend comments.
15829 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15830 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15832 2011-12-13 Yao Qi <yao@codesourcery.com>
15834 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15836 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15838 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15840 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15841 Print new debug message for such case.
15843 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15845 Fix overlapping memcpy.
15846 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15847 the read_inferior_memory transfer.
15848 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15849 write_inferior_memory transfer.
15850 (set_fast_tracepoint_jump): New variable buf. Use it for the
15851 read_inferior_memory and write_inferior_memory transfers.
15852 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15853 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15854 Use it for the write_inferior_memory transfer.
15855 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15858 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15860 * linux-low.c (fetch_register, store_register): Make code
15861 consistent, fix formatting.
15863 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15865 * linux-low.c (usr_store_inferior_registers): Factor out code
15866 to handle individual registers into...
15867 (store_register): ... this new function.
15869 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15871 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15872 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15873 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15874 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15875 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15876 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15877 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15878 (srv_xmlfiles): Add new XML files.
15880 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15882 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15883 (init_registers_s390_linux32v1): Add prototype.
15884 (init_registers_s390_linux32v2): Likewise.
15885 (init_registers_s390_linux64v1): Likewise.
15886 (init_registers_s390_linux64v2): Likewise.
15887 (init_registers_s390x_linux64v1): Likewise.
15888 (init_registers_s390x_linux64v2): Likewise.
15889 (s390_num_regs): Increment to 52.
15890 (s390_regmap): Add orig_r2 register.
15891 (s390_num_regs_3264): Increment to 68.
15892 (s390_regmap_3264): Add orig_r2 register.
15893 (s390_collect_ptrace_register): Handle orig_r2 register.
15894 (s390_supply_ptrace_register): Likewise.
15895 (s390_fill_last_break): New function.
15896 (s390_store_last_break): Likewise.
15897 (s390_fill_system_call): New function.
15898 (s390_store_system_call): Likewise.
15899 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15901 (s390_check_regset): New function.
15902 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15903 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15904 Update target_regsets for available register sets.
15906 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15907 Jan Kratochvil <jan.kratochvil@redhat.com>
15909 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15910 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15912 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15913 * linux-low.h (struct process_info_private): New member r_debug.
15914 * server.c (handle_qxfer_libraries): Call
15915 the_target->qxfer_libraries_svr4.
15916 (handle_qxfer_libraries_svr4): New function.
15917 (qxfer_packets): New entry "libraries-svr4".
15918 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15919 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15920 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15921 PACKET_qXfer_libraries_svr4.
15923 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15925 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15926 PSW address/mask between 8-byte and 16-byte formats.
15927 (s390_supply_ptrace_register): Likewise.
15928 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15929 basic addressing mode bit.
15931 2011-11-24 Stan Shebs <stan@codesourcery.com>
15933 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15935 2011-11-17 Stan Shebs <stan@codesourcery.com>
15937 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15938 (tracing_start_time): New global.
15939 (tracing_stop_time): New global.
15940 (tracing_user_name): New global.
15941 (tracing_notes): New global.
15942 (tracing_stop_note): New global.
15943 (cmd_qtstart): Set traceframe_usage, start_time.
15944 (stop_tracing): Set stop_time.
15945 (cmd_qtstatus): Report additional status.
15946 (cmd_qtp): New function.
15947 (handle_tracepoint_query): Call it.
15948 (cmd_qtnotes): New function.
15949 (handle_tracepoint_general_set): Call it.
15950 (get_timestamp): Rename from tsv_get_timestamp.
15952 2011-11-14 Stan Shebs <stan@codesourcery.com>
15953 Kwok Cheung Yeung <kcy@codesourcery.com>
15955 * linux-x86-low.c (small_jump_insn): New.
15956 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15957 trampoline and error message, build a trampoline and issue a small
15958 jump instruction to it.
15959 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15960 trampoline and error message.
15961 (x86_get_min_fast_tracepoint_insn_len): New.
15962 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15963 * linux-low.h (struct linux_target_ops): Add arguments to
15964 install_fast_tracepoint_jump_pad operation, add new operation.
15965 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15967 (linux_get_min_fast_tracepoint_insn_len): New function.
15968 (linux_target_op): Add new operation.
15969 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15970 (gdb_trampoline_buffer_end): Ditto.
15971 (gdb_trampoline_buffer_error): Ditto.
15972 (struct ipa_sym_addresses): Add fields for new IPA variables.
15973 (symbol_list): Add entries for new IPA variables.
15974 (struct tracepoint): Add fields to hold the address range of the
15975 trampoline used by the tracepoint.
15976 (trampoline_buffer_head): New static variable.
15977 (trampoline_buffer_tail): Ditto.
15978 (claim_trampoline_space): New function.
15979 (have_fast_tracepoint_trampoline_buffer): New function.
15980 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15982 (install_fast_tracepoint): Ditto, also add error buffer argument.
15983 (cmd_qtminftpilen): New function.
15984 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15985 (fast_tracepoint_from_trampoline_address): New function.
15986 (fast_tracepoint_collecting): Handle trampoline as part of jump
15988 (set_trampoline_buffer_space): New function.
15989 (initialize_tracepoint): Initialize new IPA variables.
15990 * target.h (struct target_ops): Add arguments to
15991 install_fast_tracepoint_jump_pad operation, add new
15992 get_min_fast_tracepoint_insn_len operation.
15993 (target_get_min_fast_tracepoint_insn_len): New.
15994 (install_fast_tracepoint_jump_pad): Add arguments.
15995 * server.h (IPA_BUFSIZ): Define.
15996 * linux-i386-ipa.c: Include extra header files.
15997 (initialize_fast_tracepoint_trampoline_buffer): New function.
15998 (initialize_low_tracepoint): Call it.
15999 * server.h (set_trampoline_buffer_space): Declare.
16000 (claim_trampoline_space): Ditto.
16001 (have_fast_tracepoint_trampoline_buffer): Ditto.
16003 2011-11-14 Yao Qi <yao@codesourcery.com>
16005 * server.c (handle_query): Handle InstallInTrace for qSupported.
16006 * tracepoint.c (add_tracepoint): Sort list.
16007 (install_tracepoint, download_tracepoint): New.
16008 (cmd_qtdp): Call them to install and download tracepoints.
16009 (sort_tracepoints): Removed.
16010 (cmd_qtstart): Update.
16012 2011-11-14 Yao Qi <yao@codesourcery.com>
16014 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16015 * mem-break.h: Declare.
16016 * tracepoint.c (cmd_qtstart): Move some code to ...
16017 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16019 (download_tracepoints): Move some code to ...
16020 (download_tracepoint_1): ... here. New.
16022 2011-11-08 Yao Qi <yao@codesourcery.com>
16024 * remote-utils.c (relocate_instruction): A comment fix.
16026 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16028 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16029 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16030 dr_status_mirror and dr_control_mirror from debug_reg_state.
16031 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16032 (i386_initial_stuff): Remove use of deleted globals.
16033 (i386_get_thread_context, i386_set_thread_context,
16034 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16035 from debug_reg_state.
16037 2011-11-05 Yao Qi <yao@codesourcery.com>
16039 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16040 address as TPOINT's.
16042 2011-11-02 Stan Shebs <stan@codesourcery.com>
16044 * tracepoint.c (agent_mem_read_string): New function.
16045 (eval_agent_expr): Call it for tracenz.
16046 * server.c (handle_query): Report support for tracenz.
16048 2011-11-02 Yao Qi <yao@codesourcery.com>
16050 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16052 2011-11-02 Yao Qi <yao@codesourcery.com>
16054 * target.h: Fix a typo in comment.
16056 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16058 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16059 clobber the breakpoints' shadows with fast tracepoint jumps.
16060 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16061 * target.c (write_inferior_memory): Also pass MYADDR down to
16064 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16066 * configure.ac: Check support for personality routine.
16067 * configure: Regenerate.
16068 * config.in: Likewise.
16069 * linux-low.c: Include <sys/personality.h>.
16070 Define ADDR_NO_RANDOMIZE if necessary.
16071 (linux_create_inferior): Disable address space randomization when
16072 forking inferior, if requested.
16073 (linux_supports_disable_randomization): New function.
16074 (linux_target_ops): Install it.
16075 * server.h (disable_randomization): Declare.
16076 * server.c (disable_randomization): New global variable.
16077 (handle_general_set): Handle QDisableRandomization.
16078 (handle_query): Likewise for qSupported.
16079 (main): Support --disable-randomization and --no-disable-randomization
16080 command line arguments.
16081 * target.h (struct target_ops): Add supports_disable_randomization.
16082 (target_supports_disable_randomization): New macro.
16084 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16086 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16088 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16089 [!PT_GETDSBT] (target_loadmap): New definition.
16090 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16091 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16092 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16093 and PT_GETDSBT to LINUX_LOADMAP.
16094 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16095 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16097 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16099 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16100 (arm_linux_hwbp_cap): New static variable.
16101 (arm_linux_get_hwbp_cap): Replace by ...
16102 (arm_linux_init_hwbp_cap): ... this new function.
16103 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16104 (arm_linux_get_hw_watchpoint_count): Likewise.
16105 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16106 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16107 (arm_prepare_to_resume): Use perror_with_name instead of error.
16109 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16111 * linux-arm-low.c: Include <signal.h>.
16112 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16113 (struct arm_linux_hwbp_cap): New data type.
16114 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16115 (struct arm_linux_hw_breakpoint): New data type.
16116 (MAX_BPTS, MAX_WPTS): Define.
16117 (struct arch_process_info, struct arch_lwp_info): New data types.
16118 (arm_linux_get_hwbp_cap): New function.
16119 (arm_linux_get_hw_breakpoint_count): Likewise.
16120 (arm_linux_get_hw_watchpoint_count): Likewise.
16121 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16122 (arm_hwbp_control_initialize): Likewise.
16123 (arm_hwbp_control_is_enabled): Likewise.
16124 (arm_hwbp_control_is_initialized): Likewise.
16125 (arm_hwbp_control_disable): Likewise.
16126 (arm_linux_hw_breakpoint_equal): Likewise.
16127 (arm_linux_hw_point_initialize): Likewise.
16128 (struct update_registers_data): New data structure.
16129 (update_registers_callback: New function.
16130 (arm_insert_point): Likewise.
16131 (arm_remove_point): Likewise.
16132 (arm_stopped_by_watchpoint): Likewise.
16133 (arm_stopped_data_address): Likewise.
16134 (arm_new_process): Likewise.
16135 (arm_new_thread): Likewise.
16136 (arm_prepare_to_resume): Likewise.
16137 (the_low_target): Register arm_insert_point, arm_remove_point,
16138 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16139 arm_new_thread, and arm_prepare_to_resume.
16141 2011-09-15 Stan Shebs <stan@codesourcery.com>
16143 * server.h (struct emit_ops): Add compare-goto fields.
16144 * tracepoint.c (gdb_agent_op_sizes): New table.
16145 (emit_eq_goto): New function.
16146 (emit_ne_goto): New function.
16147 (emit_lt_goto): New function.
16148 (emit_le_goto): New function.
16149 (emit_gt_goto): New function.
16150 (emit_ge_goto): New function.
16151 (is_goto_target): New function.
16152 (compile_bytecodes): Recognize special cases of compare-goto
16153 combinations and call specialized emitters for them.
16154 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16155 (amd64_emit_ne_goto): New function.
16156 (amd64_emit_lt_goto): New function.
16157 (amd64_emit_le_goto): New function.
16158 (amd64_emit_gt_goto): New function.
16159 (amd64_emit_ge_goto): New function.
16160 (amd64_emit_ops): Add the new functions.
16161 (i386_emit_eq_goto): New function.
16162 (i386_emit_ne_goto): New function.
16163 (i386_emit_lt_goto): New function.
16164 (i386_emit_le_goto): New function.
16165 (i386_emit_gt_goto): New function.
16166 (i386_emit_ge_goto): New function.
16167 (i386_emit_ops): Add the new functions.
16169 2011-09-08 Stan Shebs <stan@codesourcery.com>
16171 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16172 (i386_emit_epilogue): Restore %ebx.
16174 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16176 * server.c (step_thread): Remove definition.
16177 (process_serial_event): Don't handle Hs.
16178 * server.h (step_thread): Remove declaration.
16179 * target.c (set_desired_inferior): Remove use of step_thread.
16181 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16183 * linux-low.c: Include linux-procfs.h.
16184 (linux_attach_lwp_1): Update comments.
16185 (linux_attach): Scan for existing threads when attaching to a
16186 process that is the tgid.
16187 * Makefile.in: Update dependencies.
16189 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16191 * configure.srv: Add linux-procfs.o dependencies.
16193 2011-08-14 Yao Qi <yao@codesourcery.com>
16195 * target.h (struct target_ops): Fix indent.
16196 * win32-low.c (win32_target_ops): Fix comment.
16198 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16199 Yao Qi <yao@codesourcery.com>
16201 * Makefile.in (clean): Remove tic6x-*.c files.
16202 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16203 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16204 (tic6x-c64xp-linux.c): Likewise.
16205 * configure.srv: Add support for tic6x-*-uclinux.
16206 * linux-tic6x-low.c: New.
16207 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16209 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16210 Yao Qi <yao@codesourcery.com>
16212 * target.h (struct target_ops): Add read_loadmap.
16213 * linux-low.c (struct target_loadseg): New type.
16214 (struct target_loadmap): New type.
16215 (linux_read_loadmap): New function.
16216 (linux_target_ops): Add linux_read_loadmap.
16217 * server.c (handle_query): Support qXfer:fdpic:read packet.
16218 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16221 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16223 * win32-low.c: Include <stdint.h>.
16225 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16227 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16228 to the inferior here.
16229 (i386_remove_aligned_watchpoint): Ditto.
16230 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16231 fit part of the watchpoint in the debug registers.
16232 (i386_update_inferior_debug_regs): New.
16233 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16234 registers, and only update the inferior on success.
16235 (i386_low_remove_watchpoint): Ditto.
16237 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16239 * linux-low.c (compare_ints, unique, list_threads, show_process,
16240 linux_core_of_thread): Delete.
16241 (linux_target_ops): Change linux_core_of_thread to
16242 linux_common_core_of_thread.
16243 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16244 * utils.c (malloc_failure): Change type of argument.
16245 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16246 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16247 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16248 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16249 (IPA_OBJS): Add common-utils-ipa.o.
16250 (ptid_h, linux_osdata_h): New macros.
16251 (server_h): Add common/common-utils.h, common/xml-utils.h,
16252 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16254 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16255 ptid.o, buffer.o): New rules.
16256 (linux-low.o): Add common/linux-osdata.h as a dependency.
16257 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16258 * configure.ac: Add AC_HEADER_DIRENT check.
16259 * config.in: Regenerate.
16260 * configure: Regenerate.
16261 * remote-utils.c (xml_escape_text): Delete.
16262 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16263 buffer_xml_printf): Move to common/buffer.c.
16264 * server.c (main): Remove call to initialize_inferiors.
16265 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16266 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16267 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16268 internal_error, gdb_assert, gdb_assert_fail): Delete.
16269 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16270 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16272 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16273 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16274 initialize_inferiors): Delete.
16276 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16278 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16281 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16283 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16285 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16287 2011-05-26 Yao Qi <yao@codesourcery.com>
16289 * Makefile.in (thread-db.o): Track dependence to
16290 common/gdb_thread_db.h.
16291 * thread-db.c: include gdb_thread_db.h from right place.
16293 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16295 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16296 __FILE__ and __LINE__ to internal_error.
16298 2011-05-13 Doug Evans <dje@google.com>
16300 * thread-db.c (try_thread_db_load_from_sdir): New function.
16301 (try_thread_db_load_from_dir): New function.
16302 (thread_db_load_search): Handle $sdir, ignore $pdir.
16303 Remove trying of system directories if search of
16304 libthread-db-search-path fails, that is now done via $sdir.
16306 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16308 * server.c (handle_query): Add EnableDisableTracepoints to the list
16309 of supported features.
16310 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16312 (cmd_qtenable_disable): New.
16313 (cmd_qtstart): Install tracepoints even if disabled.
16314 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16315 receiving a QTEnable or QTDisable packet.
16316 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16317 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16319 (gdb_probe): Skip data collection if static tracepoint is disabled.
16321 2011-05-10 Doug Evans <dje@google.com>
16323 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16325 2011-05-04 Doug Evans <dje@google.com>
16327 * linux-low.c (linux_join): Skip process lookup.
16328 * spu-low.c (spu_join): Ditto.
16329 * server.c (join_inferiors_callback): Delete.
16330 (process_serial_event): For 'D' packet (detach) call join_inferior
16333 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16335 * README: Don't mention xscale*-*-linux*.
16336 * configure.srv (xscale*-*-linux*): Don't handle target.
16338 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16340 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16342 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16343 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16344 (i386_emit_void_call_2): Likewise.
16346 2011-04-26 Yao Qi <yao@codesourcery.com>
16348 * linux-low.c: Move common macros to linux-ptrace.h.
16349 Include linux-ptrace.h.
16350 * Makefile.in (linux_ptrace_h): New.
16351 (linux-low.o): Depends on linux-ptrace.h.
16353 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16355 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16356 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16357 (remote_prepare): New function with most of the TCP code from ...
16358 (remote_open): ... here. Detect PORT here unconditionally. Move also
16359 setting transport_is_reliable.
16360 * server.c (run_once): New variable.
16361 (gdbserver_usage): Document it.
16362 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16363 the first run if RUN_ONCE.
16364 * server.h (run_once, remote_prepare): New declarations.
16366 2011-04-19 Tom Tromey <tromey@redhat.com>
16368 * win32-low.c (handle_load_dll): Remove duplicate "the".
16370 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16372 Remove support for old Cygwin 1.5 versions.
16373 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16374 function to avoid warning.
16375 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16378 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16380 * gdbserver/server.h (Macro _): Define it if not available.
16382 2011-03-14 Michael Snyder <msnyder@vmware.com>
16384 * hostio.c (handle_close): Remove unnecessary null test.
16386 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16388 * Makefile.in (maintainer-clean realclean distclean): Remove
16389 "make ... subdir_do" command.
16391 2011-03-10 Michael Snyder <msnyder@vmware.com>
16393 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16395 * server.c (handle_v_run): Free alloced buffer on early return.
16397 2011-03-09 Yao Qi <yao@codesourcery.com>
16400 2011-03-04 Yao Qi <yao@codesourcery.com>
16402 * Makefile.in: Remove GNU make feature --directory.
16404 2011-03-05 Yao Qi <yao@codesourcery.com>
16406 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16407 (subdir_do): New make target. Copied from gdb/Makefile.
16408 (maintainer-clean, realclean, distclean, clean): Call corresponding
16409 make targets in common/Makefile.
16411 2011-02-11 Yao Qi <yao@codesourcery.com>
16413 * configure.ac: Call AC_PROG_RANLIB.
16414 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16415 * configure: Regenerate.
16417 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16419 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16421 2011-03-06 Yao Qi <yao@codesourcery.com>
16423 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16425 2011-03-05 Yao Qi <yao@codesourcery.com>
16427 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16428 (subdir_do): New make target. Copied from gdb/Makefile.
16429 (maintainer-clean, realclean, distclean, clean): Call corresponding
16430 make targets in common/Makefile.
16432 2011-03-04 Yao Qi <yao@codesourcery.com>
16434 * Makefile.in: Remove GNU make feature --directory.
16436 2011-03-04 Michael Snyder <msnyder@vmware.com>
16438 * server.c (queue_stop_reply): Call xmalloc not malloc.
16440 2011-03-02 Michael Snyder <msnyder@vmware.com>
16442 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16444 2011-02-28 Michael Snyder <msnyder@vmware.com>
16446 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16447 (cmd_qtframe): Ditto.
16448 (cmd_qtbuffer): Ditto.
16449 (cmd_bigqtbuffer): Ditto.
16451 * utils.c (decimal2str): Initialize 'width' to nine, then
16452 don't mess with it.
16454 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16456 * hostio.c (require_data): Free *data, not data.
16458 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16460 * hostio.c (require_data): Use free, not xfree.
16462 2011-02-27 Michael Snyder <msnyder@vmware.com>
16464 * server.c (handle_query): Discard unused value.
16466 * hostio.c (require_data): Free malloc memory before returning
16469 2011-02-26 Michael Snyder <msnyder@vmware.com>
16471 * linux-low.c (list_threads): Call closedir for dirent.
16473 2011-02-27 Michael Snyder <msnyder@vmware.com>
16475 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16476 a case statement falls through.
16478 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16480 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16483 2011-02-26 Michael Snyder <msnyder@vmware.com>
16485 * utils.c (decimal2str): Eliminate dead code and dead param.
16486 (pulongest): Drop dead param from call to decimal2str.
16489 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16491 Revert the following patch (not approved yet):
16492 2011-02-21 Hui Zhu <teawater@gmail.com>
16493 * tracepoint.c (tp_printf): New function.
16494 (eval_agent_expr): Handle gdb_agent_op_printf.
16496 2011-02-21 Hui Zhu <teawater@gmail.com>
16498 * tracepoint.c (tp_printf): New function.
16499 (eval_agent_expr): Handle gdb_agent_op_printf.
16501 2011-02-18 Tom Tromey <tromey@redhat.com>
16503 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16504 (tracepoint.o): Likewise.
16505 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16506 (gdb_agent_op_names): Likewise.
16508 2011-02-18 Tom Tromey <tromey@redhat.com>
16510 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16511 gdb_agent_op_rot>: New constants.
16512 (gdb_agent_op_names): Add pick and roll.
16513 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16516 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16518 * aclocal.m4: Regenerated with aclocal-1.11.1.
16520 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16522 * server.c (handle_qxfer_traceframe_info): New.
16523 (qxfer_packets): Register "traceframe-info".
16524 (handle_query): Report support for qXfer:traceframe-info:read+.
16525 * tracepoint.c (match_blocktype): New.
16526 (traceframe_find_block_type): Rename to ...
16527 (traceframe_walk_blocks): ... this. Add callback filter argument,
16529 (traceframe_find_block_type): New, reimplemented on top of
16530 traceframe_walk_blocks.
16531 (build_traceframe_info_xml): New.
16532 (traceframe_read_info): New.
16533 * server.h (traceframe_read_info): Declare.
16535 2011-02-11 Yao Qi <yao@codesourcery.com>
16537 * configure.ac: Call AC_PROG_RANLIB.
16538 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16539 * configure: Regenerate.
16541 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16543 * server.c (gdb_read_memory): Change return semantics to allow
16545 (handle_search_memory_1): Adjust.
16546 (process_serial_event) <'m' packet>: Handle partial transfers.
16547 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16549 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16551 * regcache.c (init_register_cache): Initialize
16552 regcache->register_status.
16553 (free_register_cache): Release regcache->register_status.
16554 (regcache_cpy): Copy register_status.
16555 (registers_to_string): Print 'x's for unavailable registers.
16556 (supply_register): Mark the register's status valid or
16557 unavailable, depending on whether a buffer was passed in or not.
16558 (supply_register_zeroed): New.
16559 (supply_regblock): Mark the registers' status valid or
16560 unavailable, depending on whether a buffer was passed in or not.
16561 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16562 (struct regcache): New `register_status' field.
16563 (supply_register_zeroed): Declare.
16564 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16565 supply_register_zeroed, rather than passing a NULL buffer to
16567 * tracepoint.c (fetch_traceframe_registers): Update comment.
16569 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16571 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16574 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16576 * server.h (decode_xfer_write): Change prototype.
16577 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16578 and don't extract the annex here.
16579 * server.c (decode_xfer_read): Remove `annex' parameter,
16580 and don't extract the annex here.
16581 (decode_xfer): New.
16582 (struct qxfer): New.
16583 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16584 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16585 (handle_qxfer_statictrace): New functions, abstracted out from
16586 handle_query, and made to use the struct qxfer interface.
16587 (handle_threads_qxfer_proper): Rename to ...
16588 (handle_qxfer_threads_proper): ... this.
16589 (handle_threads_qxfer): Rename to ...
16590 (handle_qxfer_threads): ... this. Adjust.
16591 (qxfer_packets): New array.
16592 (handle_qxfer): New function.
16593 (handle_query): Use handle_qxfer.
16595 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16597 * gdbreplay.c: Shorten lines of >= 80 columns.
16598 * linux-low.c: Ditto.
16599 * linux-ppc-low.c: Ditto.
16600 * linux-s390-low.c: Ditto.
16601 * linux-sparc-low.c: Ditto.
16602 * linux-x86-low.c: Ditto.
16603 * linux-xtensa-low.c: Ditto.
16604 * mem-break.c: Ditto.
16605 * nto-low.c: Ditto.
16606 * regcache.h: Ditto.
16607 * remote-utils.c: Ditto.
16610 * thread-db.c: Ditto.
16611 * tracepoint.c: Ditto.
16613 * win32-low.h: Ditto.
16615 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16617 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16620 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16622 * server.c (gdbserver_version): Update copyright year in version
16624 * gdbreplay.c (gdbreplay_version): Ditto.
16626 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16628 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16629 * linux-bfin-low.c: New file.
16630 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16631 PT_DATA_ADDR for BFIN targets.
16632 * Makefile.in (SFILES): Add linux-bfin-low.c.
16633 (clean): Remove reg-bfin.c.
16634 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16635 * README: Mention supported Blackfin targets.
16637 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16639 * .gitignore: New file.
16641 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16643 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16645 2010-10-22 Jie Zhang <jie@codesourcery.com>
16647 * Makefile.in: Add FLAGS_TO_PASS variable.
16648 (install): Remove dependency of install-only and recursively
16649 invoke make for install-only.
16651 2010-10-04 Doug Evans <dje@google.com>
16653 * Makefile.in (uninstall): Use $(DESTDIR).
16655 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16659 * linux-x86-low.c (compat_siginfo_from_siginfo)
16660 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16661 si_code is < 0. Check for si_code == SI_TIMER before checking for
16664 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16666 * lynx-i386-low.c: New file.
16667 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16669 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16671 * lynx-low.c (ptrace_request_to_str): Remove handling for
16672 request values that have been removed in LynxOS 5.x.
16674 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16676 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16679 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16681 * configure.ac: Add --enable-inprocess-agent option.
16682 * configure: Rebuilt.
16684 2010-09-06 Yao Qi <yao@codesourcery.com>
16686 * linux-low.c (linux_kill): Remove unused variable.
16687 (linux_stabilize_threads): Likewise.
16688 * server.c (start_inferior): Likewise.
16689 (queue_stop_reply_callback): Likewise.
16690 * tracepoint.c (do_action_at_tracepoint): Likewise.
16692 2010-09-06 Yao Qi <yao@codesourcery.com>
16694 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16697 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16699 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16701 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16703 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16706 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16708 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16709 gdbserver/lynx-ppc-low.c: New files.
16710 * Makefile.in (lynx_low_h): New variable.
16711 (lynx-low.o, lynx-ppc-low.o): New rules.
16712 * configure.ac: On LynxOS, link with -lnetinet.
16713 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16714 * configure: regenerate.
16716 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16718 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16719 * configure.ac: Add check for vasprintf and vsnprintf.
16720 * configure, config.in: Regenerate.
16721 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16723 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16725 * gdbreplay.c: Move include of alloca.h up, next to include of
16727 * server.h: Add include of malloc.h.
16728 * mem-break.c: Remove include of malloc.h.
16729 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16731 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16733 * Makefile.in (memmem.o): Build with -Wno-error.
16735 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16737 * utils.c (xsnprintf): Make non-static.
16738 * server.h: Add xsnprintf declaration.
16739 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16740 replace calls to snprintf by calls to xsnprintf throughout.
16742 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16744 * configure.ac: Add configure check for alloca.
16745 * configure, config.in: Regenerate.
16746 * server.h: Include alloca.h if it exists.
16747 * gdbreplay.c: Include alloca.h if it exists.
16749 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16751 * linux-low.c (__SIGRTMIN): Define if not already defined.
16752 (linux_create_inferior): Check for __ANDROID__ rather than
16754 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16755 are already deferred.
16756 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16757 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16758 stopped and already has a pending signal to report.
16759 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16760 a pending signal to report or is moving out of a jump pad.
16761 (linux_init_signals): Check for __ANDROID__ rather than
16764 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16766 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16767 debug_threads check. Avoid a linear search when not doing debug
16770 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16772 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16773 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16774 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16775 (process_event): Change local fd's type to gdb_fildes_t.
16776 (create_file_handler): Adjust prototype.
16777 (delete_file_handler): Adjust prototype.
16778 (handle_file_event): Adjust prototype. Use pfildes.
16779 (create_file_event): Adjsut prototype.
16780 * remote-utils.c (remote_desc, listen_desc): Change type to
16782 * server.h: New gdb_fildes_t typedef.
16783 [USE_WIN32API]: Include winsock2.h.
16784 (delete_file_handler, add_file_handler): Adjust prototypes.
16785 (pfildes): Declare.
16786 * utils.c (pfildes): New.
16788 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16790 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16791 * configure: Regenerate.
16793 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16795 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16796 (linux_done_accessing_memory): ... this.
16797 (linux_target_ops): Adjust.
16798 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16799 * nto-low.c (nto_target_ops): Adjust comment.
16800 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16801 * spu-low.c (spu_target_ops): Adjust comment.
16802 * target.h (target_ops): Rename unprepare_to_access_memory field
16803 to done_accessing_memory.
16804 (unprepare_to_access_memory): Rename to ...
16805 (done_accessing_memory): ... this.
16807 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16809 * linux-low.c (linux_prepare_to_access_memory): New.
16810 (linux_unprepare_to_access_memory): New.
16811 (linux_target_ops): Install them.
16812 * server.c (read_memory): Rename to ...
16813 (gdb_read_memory): ... this. Use
16814 prepare_to_access_memory/prepare_to_access_memory.
16815 (write_memory): Rename to ...
16816 (gdb_write_memory): ... this. Use
16817 prepare_to_access_memory/prepare_to_access_memory.
16818 (handle_search_memory_1): Adjust.
16819 (process_serial_event): Adjust.
16820 * target.h (struct target_ops): New fields
16821 prepare_to_access_memory and unprepare_to_access_memory.
16822 (prepare_to_access_memory, unprepare_to_access_memory): New.
16823 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16824 prepare_to_access_memory/prepare_to_access_memory.
16825 * nto-low.c (nto_target_ops): Adjust.
16826 * spu-low.c (spu_target_ops): Adjust.
16827 * win32-low.c (win32_target_ops): Adjust.
16829 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16831 * Makefile.in (WARN_CFLAGS): Get it from configure.
16832 (WERROR_CFLAGS): New.
16833 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16834 * configure.ac: Introduce --enable-werror, which adds -Werror to
16835 the compiler command line. Enabled by default. Disable with
16836 --disable-werror. Add -Wdeclaration-after-statement
16837 Wpointer-arith and -Wformat-nonliteral to warning flags.
16838 * configure: Regenerate.
16840 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16842 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16844 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16846 * gdbreplay.c (remote_error): New.
16848 (expect): Use gdbchar. Check for error reading from GDB.
16849 Clarify sync error output.
16850 (play): Check for errors writing to GDB.
16851 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16852 * remote-utils.c (getpkt): Check for errors writing to the remote
16855 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16857 * linux-low.c (linux_wait_1): Move non-debugging code out of
16858 `debug_threads' control.
16860 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16862 * linux-low.c (linux_wait_1): Don't set last_status here.
16863 * server.c (push_event, queue_stop_reply_callback): Assert we're
16864 not pushing a TARGET_WAITKIND_IGNORE event.
16865 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16866 (myresume, handle_target_event): Set the thread's last_resume_kind
16867 and last_status from the target returned status.
16869 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16873 * linux-x86-low.c (update_debug_registers_callback): New.
16874 (i386_dr_low_set_addr): Use it.
16875 (i386_dr_low_get_addr): New.
16876 (i386_dr_low_set_control): Use update_debug_registers_callback.
16877 (i386_dr_low_get_control): New.
16878 (i386_dr_low_get_status): Adjust.
16879 * linux-low.c (linux_stop_lwp): New.
16880 * linux-low.h (linux_stop_lwp): Declare.
16882 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16883 argument instead of a i386_debug_reg_state.
16884 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16885 a i386_debug_reg_state.
16886 (i386_insert_aligned_watchpoint): Adjust.
16887 (i386_remove_aligned_watchpoint): Adjust.
16888 (i386_low_stopped_data_address): Read the debug registers from the
16889 inferior instead of from the mirrors.
16890 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16891 (i386_dr_low_get_addr): Declare.
16892 (i386_dr_low_get_control): Declare.
16893 (i386_dr_low_get_status): Change prototype.
16895 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16896 (i386_dr_low_get_addr): New.
16897 (i386_dr_low_get_control): New.
16898 (i386_dr_low_get_status): Adjust prototype. Return
16900 (i386_initial_stuff): Clear dr_status_mirror and
16902 (i386_get_thread_context): Adjust.
16903 (i386_set_thread_context): Adjust.
16904 (i386_thread_added): Adjust.
16906 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16908 * linux-low.h (linux_thread_area): Delete declaration.
16910 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16912 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16913 after its termination.
16915 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16917 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16918 (gdb_wants_all_stopped): Delete.
16919 (linux_wait_1): Don't call them.
16920 * server.c (handle_v_cont): Tag all threads as want-stopped.
16921 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16922 stopped as "client-wants-stopped".
16924 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16926 * Makefile.in (signals_h): New.
16927 (server_h): Depend on it.
16928 (server.o): Don't depend on $(signals_def).
16929 (signals.o): Depend on $(signals_def).
16931 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16933 * Makefile.in (signals_def): New.
16934 (server_h): Append include/gdb/signals.h and signals_def.
16935 (server.o): Append signals_def.
16937 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16939 * server.c (handle_target_event): Use target_signal_to_host for
16940 resume_info.sig initialization.
16941 * target.h (struct thread_resume) <sig>: New comment.
16943 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16945 * server.c (handle_query): strcpy() the returned string from paddress()
16946 instead of sprintf().
16947 * utils.c (paddress): Return phex_nz().
16949 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16951 * server.c (handle_v_cont): Call mourn_inferior if process
16953 (myresume): Likewise.
16955 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16957 Static tracepoints, and integration with UST.
16959 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16960 * mem-break.c (uninsert_all_breakpoints)
16961 (reinsert_all_breakpoints): New.
16962 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16963 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16964 (gdb_agent_ust_loaded, helper_thread_id)
16965 (gdb_agent_helper_thread_id): New macros.
16966 (struct ipa_sym_addresses): Add addr_ust_loaded,
16967 addr_helper_thread_id, addr_cmd_buf.
16968 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16969 (in_process_agent_loaded_ust): New.
16970 (write_e_ust_not_loaded): New.
16971 (maybe_write_ipa_ust_not_loaded): New.
16972 (struct collect_static_trace_data_action): New.
16973 (enum tracepoint_type) <static_tracepoint>: New.
16974 (struct tracepoint) <handle>: Mention static tracepoints.
16975 (struct static_tracepoint_ctx): New.
16976 (CMD_BUF_SIZE): New.
16977 (add_tracepoint_action): Handle static tracepoint actions.
16978 (unprobe_marker_at): New.
16979 (clear_installed_tracepoints): Handle static tracepoints.
16980 (cmd_qtdp): Handle static tracepoints.
16981 (probe_marker_at): New.
16982 (cmd_qtstart): Handle static tracepoints.
16983 (response_tracepoint): Handle static tracepoints.
16984 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16985 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16986 (get_context_regcache): Handle static tracepoints.
16987 (do_action_at_tracepoint): Handle static tracepoint actions.
16988 (traceframe_find_block_type): Handle static trace data blocks.
16989 (traceframe_read_sdata): New.
16990 (download_tracepoints): Download static tracepoint actions.
16991 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16992 (GDB_PROBE_NAME): New.
16994 (GET_UST_SYM): New.
16997 (ust_marker_to_static_tracepoint): New.
16999 (collect_ust_data_at_tracepoint): New.
17000 (gdb_ust_probe): New.
17001 (UNIX_PATH_MAX, SOCK_DIR): New.
17002 (gdb_ust_connect_sync_socket): New.
17003 (resume_thread, stop_thread): New.
17004 (run_inferior_command): New.
17005 (init_named_socket): New.
17006 (gdb_ust_socket_init): New.
17007 (cstr_to_hexstr): New.
17009 (first_marker, next_marker): New.
17010 (response_ust_marker): New.
17011 (cmd_qtfstm, cmd_qtsstm): New.
17012 (unprobe_marker_at, probe_marker_at): New.
17013 (cmd_qtstmat, gdb_ust_thread): New.
17014 (gdb_ust_init): New.
17015 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17016 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17017 (ST_REGENTRY): New.
17018 (x86_64_st_collect_regmap): New.
17019 (X86_64_NUM_ST_COLLECT_GREGS): New.
17020 (AMD64_RIP_REGNUM): New.
17021 (supply_static_tracepoint_registers): New.
17022 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17023 (ST_REGENTRY): New.
17024 (i386_st_collect_regmap): New.
17025 (i386_NUM_ST_COLLECT_GREGS): New.
17026 (supply_static_tracepoint_registers): New.
17027 * server.c (handle_query): Handle qXfer:statictrace:read.
17028 <qSupported>: Report support for StaticTracepoints, and
17029 qXfer:statictrace:read features.
17030 * server.h (traceframe_read_sdata)
17031 (supply_static_tracepoint_registers): Declare.
17032 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17033 (unpack_varlen_hex): Include in IPA build.
17034 * Makefile.in (ustlibs, ustinc): New.
17035 (IPA_OBJS): Add remote-utils-ipa.o.
17036 ($(IPA_LIB)): Link -ldl and -lpthread.
17038 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17039 * config.in, configure: Regenerate.
17041 2010-06-20 Ian Lance Taylor <iant@google.com>
17042 Pedro Alves <pedro@codesourcery.com>
17044 * linux-x86-low.c (always_true): Delete.
17045 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17046 trying to fool the compiler with always_true.
17048 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17050 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17051 conditions in gdbserver.
17053 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17055 * spu-low.c (spu_read_memory): Wrap around local store limit.
17056 (spu_write_memory): Likewise.
17058 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17060 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17061 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17063 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17065 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17066 uses with LONGEST uses.
17068 2010-06-14 Stan Shebs <stan@codesourcery.com>
17069 Pedro Alves <pedro@codesourcery.com>
17073 * linux-x86-low.c: Include limits.h.
17075 (always_true): New.
17078 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17079 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17080 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17081 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17082 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17083 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17084 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17085 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17086 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17087 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17088 (amd64_emit_void_call_2): New.
17089 (amd64_emit_ops): New.
17090 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17091 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17092 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17093 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17094 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17095 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17096 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17097 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17098 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17099 (i386_emit_stack_adjust, i386_emit_int_call_1)
17100 (i386_emit_void_call_2): New.
17101 (i386_emit_ops): New.
17102 (x86_emit_ops): New.
17103 (the_low_target): Install x86_emit_ops.
17104 * server.h (struct emit_ops): New.
17105 (get_raw_reg_func_addr): Declare.
17106 (current_insn_ptr, emit_error): Declare.
17107 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17108 (set_trace_state_variable_value): New defines.
17109 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17110 addr_get_trace_state_variable_value and
17111 addr_set_trace_state_variable_value.
17112 (symbol_list): New fields for get_raw_reg,
17113 get_trace_state_variable_value and set_trace_state_variable_value.
17114 (condfn): New typedef.
17115 (struct tracepoint): New field `compiled_cond'.
17116 (do_action_at_tracepoint): Clear compiled_cond.
17117 (get_trace_state_variable_value, set_trace_state_variable_value):
17119 (condition_true_at_tracepoint): If there's a compiled condition,
17121 (current_insn_ptr, emit_error): New globals.
17122 (struct bytecode_address): New.
17123 (get_raw_reg_func_addr): New.
17124 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17125 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17126 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17127 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17128 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17129 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17130 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17131 (compile_tracepoint_condition, compile_bytecodes): New.
17132 * target.h (emit_ops): Forward declare.
17133 (struct target_ops): New field emit_ops.
17134 (target_emit_ops): New.
17135 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17136 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17137 * linux-low.c (linux_emit_ops): New.
17138 (linux_target_ops): Install it.
17139 * linux-low.h (struct linux_target_ops): New field emit_ops.
17141 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17143 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17144 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17146 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17147 Stan Shebs <stan@codesourcery.com>
17149 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17150 (all): Depend on $(extra_libraries).
17151 (install-only): Install the IPA.
17152 (IPA_OBJS, IPA_LIB): New.
17153 (clean): Remove the IPA lib.
17154 (IPAGENT_CFLAGS): New.
17155 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17156 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17157 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17158 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17159 * configure.ac: Check for atomic builtins support in the compiler.
17160 (IPA_DEPFILES, extra_libraries): Define.
17161 * configure.srv (ipa_obj): Add description.
17162 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17163 (i[34567]86-*-linux*): Set ipa_obj.
17164 (x86_64-*-linux*): Set ipa_obj.
17165 * linux-low.c (stabilizing_threads): New.
17166 (supports_fast_tracepoints): New.
17167 (linux_detach): Stabilize threads before detaching.
17168 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17169 the lwp is either not stabilizing, or is moving out of a jump pad.
17170 (linux_fast_tracepoint_collecting): New.
17171 (maybe_move_out_of_jump_pad): New.
17172 (enqueue_one_deferred_signal): New.
17173 (dequeue_one_deferred_signal): New.
17174 (linux_wait_for_event_1): If moving out of a jump pad, defer
17175 pending signals to later.
17176 (linux_stabilize_threads): New.
17177 (linux_wait_1): Check if threads need moving out of jump pads, and
17179 (stuck_in_jump_pad_callback): New.
17180 (move_out_of_jump_pad_callback): New.
17181 (lwp_running): New.
17182 (linux_resume_one_lwp): Handle moving out of jump pads.
17183 (linux_set_resume_request): Dequeue deferred signals.
17184 (need_step_over_p): Also step over fast tracepoint jumps.
17185 (start_step_over): Also uninsert fast tracepoint jumps.
17186 (finish_step_over): Also reinsert fast tracepoint jumps.
17187 (linux_install_fast_tracepoint_jump): New.
17188 (linux_target_ops): Install linux_stabilize_threads and
17189 linux_install_fast_tracepoint_jump_pad.
17190 * linux-low.h (linux_target_ops) <get_thread_area,
17191 install_fast_tracepoint_jump_pad>: New fields.
17192 (struct lwp_info) <collecting_fast_tracepoint,
17193 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17194 (linux_get_thread_area): Declare.
17195 * linux-x86-low.c (jump_insn): New.
17196 (x86_get_thread_area): New.
17197 (append_insns): New.
17198 (push_opcode): New.
17199 (amd64_install_fast_tracepoint_jump_pad): New.
17200 (i386_install_fast_tracepoint_jump_pad): New.
17201 (x86_install_fast_tracepoint_jump_pad): New.
17202 (the_low_target): Install x86_get_thread_area and
17203 x86_install_fast_tracepoint_jump_pad.
17204 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17205 (struct fast_tracepoint_jump): New.
17206 (fast_tracepoint_jump_insn): New.
17207 (fast_tracepoint_jump_shadow): New.
17208 (find_fast_tracepoint_jump_at): New.
17209 (fast_tracepoint_jump_here): New.
17210 (delete_fast_tracepoint_jump): New.
17211 (set_fast_tracepoint_jump): New.
17212 (uninsert_fast_tracepoint_jumps_at): New.
17213 (reinsert_fast_tracepoint_jumps_at): New.
17214 (set_breakpoint_at): Use write_inferior_memory.
17215 (uninsert_raw_breakpoint): Use write_inferior_memory.
17216 (check_mem_read): Mask out fast tracepoint jumps.
17217 (check_mem_write): Mask out fast tracepoint jumps.
17218 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17219 (set_fast_tracepoint_jump): Declare.
17220 (delete_fast_tracepoint_jump)
17221 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17222 (reinsert_fast_tracepoint_jumps_at): Declare.
17223 * regcache.c: Don't compile many functions when building the
17224 in-process agent library.
17225 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17226 the register buffer in the heap.
17227 (free_register_cache): If the register buffer isn't owned by the
17228 regcache, don't free it.
17229 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17230 pre-existing register caches.
17231 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17233 (convert_ascii_to_int): : Constify `from' parameter type.
17234 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17235 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17236 the needed buffer in-place.
17237 (relocate_instruction): New.
17238 * server.c (handle_query) <qSymbols>: If the target supports
17239 tracepoints, give it a chance of looking up symbols. Report
17240 support for fast tracepoints.
17241 (handle_status): Stabilize threads.
17242 (process_serial_event): Adjust.
17243 * server.h (struct fast_tracepoint_jump): Forward declare.
17244 (struct process_info) <fast_tracepoint_jumps>: New field.
17245 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17246 (decode_X_packet, decode_M_packet): Adjust.
17247 (relocate_instruction): Declare.
17248 (in_process_agent_loaded): Declare.
17249 (tracepoint_look_up_symbols): Declare.
17250 (struct fast_tpoint_collect_status): Declare.
17251 (fast_tracepoint_collecting): Declare.
17252 (force_unlock_trace_buffer): Declare.
17253 (handle_tracepoint_bkpts): Declare.
17254 (initialize_low_tracepoint)
17255 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17256 * target.h (struct target_ops) <stabilize_threads,
17257 install_fast_tracepoint_jump_pad>: New fields.
17258 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17259 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17260 [HAVE_STDINT_H]: Include stdint.h.
17261 (trace_debug_1): Rename to ...
17262 (trace_vdebug): ... this.
17263 (trace_debug): Rename to ...
17264 (trace_debug_1): ... this. Add `level' parameter.
17265 (trace_debug): New.
17266 (ATTR_USED, ATTR_NOINLINE): New.
17267 (IP_AGENT_EXPORT): New.
17268 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17269 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17270 (about_to_request_buffer_space, trace_buffer_is_full)
17271 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17272 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17273 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17274 (traceframe_write_count, traceframes_created)
17275 (trace_state_variables)
17276 New renaming defines.
17277 (struct ipa_sym_addresses): New.
17278 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17279 (symbol_list): New.
17280 (ipa_sym_addrs): New.
17281 (all_tracepoint_symbols_looked_up): New.
17282 (in_process_agent_loaded): New.
17283 (write_e_ipa_not_loaded): New.
17284 (maybe_write_ipa_not_loaded): New.
17285 (tracepoint_look_up_symbols): New.
17286 (debug_threads) [IN_PROCESS_AGENT]: New.
17287 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17288 (UNKNOWN_SIDE_EFFECTS): New.
17289 (stop_tracing): New.
17290 (flush_trace_buffer): New.
17291 (stop_tracing_bkpt): New.
17292 (flush_trace_buffer_bkpt): New.
17293 (read_inferior_integer): New.
17294 (read_inferior_uinteger): New.
17295 (read_inferior_data_pointer): New.
17296 (write_inferior_data_pointer): New.
17297 (write_inferior_integer): New.
17298 (write_inferior_uinteger): New.
17299 (struct collect_static_trace_data_action): Delete.
17300 (enum tracepoint_type): New.
17301 (struct tracepoint) <type>: New field `type'.
17302 <actions_str, step_actions, step_actions_str>: Only include in
17304 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17305 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17306 (tracepoints): Use IP_AGENT_EXPORT.
17307 (last_tracepoint): Don't include in the IPA.
17308 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17309 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17310 (alloced_trace_state_variables): New.
17311 (trace_state_variables): Use IP_AGENT_EXPORT.
17312 (traceframe_t): Delete unused variable.
17313 (circular_trace_buffer): Don't include in the IPA.
17314 (trace_buffer_start): Delete.
17315 (struct trace_buffer_control): New.
17316 (trace_buffer_free): Delete.
17317 (struct ipa_trace_buffer_control): New.
17318 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17319 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17321 (trace_buffer_ctrl): New.
17322 (TRACE_BUFFER_CTRL_CURR): New.
17323 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17324 Reimplement as macros.
17325 (trace_buffer_wrap): Delete.
17326 (traceframe_write_count, traceframe_read_count)
17327 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17328 (struct tracepoint_hit_ctx) <type>: New field.
17329 (struct fast_tracepoint_ctx): New.
17330 (memory_barrier): New.
17332 (record_tracepoint_error): Update atomically in the IPA.
17333 (clear_inferior_trace_buffer): New.
17334 (about_to_request_buffer_space): New.
17335 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17336 updating the same buffer.
17337 (add_tracepoint): Default the tracepoint's type to trap
17338 tracepoint, and orig_size to -1.
17339 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17340 internal variables.
17341 (create_trace_state_variable): New parameter `gdb'. Handle it.
17342 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17343 (cmd_qtdp): Handle fast tracepoints.
17344 (cmd_qtdv): Adjust.
17345 (max_jump_pad_size): New.
17346 (gdb_jump_pad_head): New.
17347 (get_jump_space_head): New.
17348 (claim_jump_space): New.
17349 (sort_tracepoints): New.
17350 (MAX_JUMP_SIZE): New.
17351 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17353 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17354 support. Upload fast traceframes, and delete internal IPA
17356 (stop_tracing_handler): New.
17357 (flush_trace_buffer_handler): New.
17358 (cmd_qtstop): Upload fast tracepoints.
17359 (response_tracepoint): Handle fast tracepoints.
17360 (tracepoint_finished_step): Upload fast traceframes. Set the
17361 tracepoint hit context's tracepoint type.
17362 (handle_tracepoint_bkpts): New.
17363 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17364 type. Add comment about fast tracepoints.
17365 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17366 non-existing action_str field.
17367 (get_context_regcache): Handle fast tracepoints.
17368 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17370 (fast_tracepoint_from_jump_pad_address): New.
17371 (fast_tracepoint_from_ipa_tpoint_address): New.
17372 (collecting_t): New.
17373 (force_unlock_trace_buffer): New.
17374 (fast_tracepoint_collecting): New.
17376 (gdb_collect): New.
17377 (write_inferior_data_ptr): New.
17378 (target_tp_heap): New.
17379 (target_malloc): New.
17380 (download_agent_expr): New.
17382 (download_tracepoints): New.
17383 (download_trace_state_variables): New.
17384 (upload_fast_traceframes): New.
17385 (IPA_FIRST_TRACEFRAME): New.
17386 (IPA_NEXT_TRACEFRAME_1): New.
17387 (IPA_NEXT_TRACEFRAME): New.
17388 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17389 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17390 (gdb_jump_pad_buffer_end): New.
17391 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17392 (initialize_tracepoint): Adjust.
17393 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17394 buffer. Initialize the low module.
17395 * utils.c (PREFIX, TOOLNAME): New.
17396 (malloc_failure): Use PREFIX.
17397 (error): In the IPA, an error causes an exit.
17398 (fatal, warning): Use PREFIX.
17399 (internal_error): Use TOOLNAME.
17400 (NUMCELLS): Increase to 10.
17401 * configure, config.in: Regenerate.
17403 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17405 * server.c (handle_query) <qSupported>: Do two passes over the
17406 qSupported string to avoid nesting strtok.
17408 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17410 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17412 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17413 -Wl,--dynamic-list.
17414 * configure: Regenerate.
17415 * proc-service.list: New.
17417 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17419 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17422 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17424 * gdbreplay.c (remote_open): Check error return from socket() call by
17425 its equality to -1 not by it being negative.
17426 * remote-utils.c (remote_open): Likewise.
17428 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17430 * config.h: Regenerate.
17432 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17434 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17435 doesn't provide PTRACE_GET_THREAD_AREA.
17437 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17439 * linux-m68k-low.c: Include <asm/ptrace.h>
17440 (ps_get_thread_area): Implement.
17442 2010-05-03 Doug Evans <dje@google.com>
17444 * event-loop.c (struct callback_event): New struct.
17445 (callback_list): New global.
17446 (append_callback_event, delete_callback_event): New functions.
17447 (process_callback): New function.
17448 (start_event_loop): Call it.
17449 * remote-utils.c (NOT_SCHEDULED): Define.
17450 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17451 moved out of readchar.
17452 (readchar): Rewrite. Call reschedule before returning.
17453 (reset_readchar): New function.
17454 (remote_close): Call it.
17455 (process_remaining, reschedule): New functions.
17456 * server.h (callback_handler_func): New typedef.
17457 (append_callback_event, delete_callback_event): Declare.
17459 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17461 * proc-service.c (ps_pglobal_lookup): Use
17462 thread_db_look_up_one_symbol.
17463 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17464 parameter. Use it instead of all_symbols_looked_up.
17465 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17467 (all_symbols_looked_up): Don't declare.
17468 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17469 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17471 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17472 Set all_symbols_looked_up here.
17473 (thread_db_look_up_one_symbol): New.
17474 (thread_db_get_tls_address): Adjust.
17475 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17476 thread_db object on the heap, and tentatively set it in the
17478 (thread_db_init): Don't set all_symbols_looked_up here.
17479 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17481 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17483 * linux-low.c (linux_kill, linux_detach): Adjust.
17484 (status_pending_p_callback): Remove redundant statement. Check
17485 for !TARGET_WAITIKIND_IGNORE, instead of
17486 TARGET_WAITKIND_STOPPED.
17487 (handle_tracepoints): Make sure LWP is locked. Adjust.
17488 (linux_wait_for_event_1): Adjust.
17489 (linux_cancel_breakpoints): New.
17490 (unsuspend_one_lwp): New.
17491 (unsuspend_all_lwps): New.
17492 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17493 (send_sigstop_callback): Change return type to int, add new
17494 `except' parameter and handle it.
17495 (suspend_and_send_sigstop_callback): New.
17496 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17497 pass them down. If SUSPEND, also increment the lwp's suspend
17499 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17500 (need_step_over_p): Don't consider suspended LWPs.
17501 (start_step_over): Adjust.
17502 (proceed_one_lwp): Change return type to int, add new `except'
17503 parameter and handle it.
17504 (unsuspend_and_proceed_one_lwp): New.
17505 (proceed_all_lwps): Use find_inferior instead of
17507 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17508 also decrement the suspend count of LWPs. Pass `except' down,
17509 instead of hacking its suspend count.
17510 (linux_pause_all): Add `freeze' parameter. Adjust.
17511 (linux_unpause_all): New.
17512 (linux_target_ops): Install linux_unpause_all.
17513 * server.c (handle_status): Adjust.
17514 * target.h (struct target_ops): New fields `unpause_all' and
17515 `cancel_breakpoints'. Add new parameter to `pause_all'.
17516 (pause_all): Add new `freeze' parameter.
17517 (unpause_all): New.
17518 (cancel_breakpoints): New.
17519 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17520 cancel breakpoints.
17521 (cmd_qtstart): Pause threads.
17522 (stop_tracing): Pause threads, and cancel breakpoints.
17523 * win32-low.c (win32_target_ops): Adjust.
17525 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17527 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17528 the inferior right away from here...
17529 (linux_wait_1): ... to here, and adjust to check the thread's
17530 last_resume_kind instead of the lwp's step or stop_expected flags.
17532 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17534 * README: Use consistent `GDB' and `GDBserver' spellings.
17536 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17538 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17539 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17540 (linux_detach_one_lwp): Assume the lwp is stopped.
17541 (any_thread_of): Delete.
17542 (linux_detach): Stop all lwps here. Don't blindly delete all
17544 (delete_lwp_callback): New.
17545 (linux_mourn): Delete all lwps of the process that is gone.
17546 (linux_wait_1): Don't delete the last lwp of the process here.
17547 * mem-break.h (mark_breakpoints_out): Declare.
17548 * mem-break.c (mark_breakpoints_out): New.
17549 (free_all_breakpoints): Use it.
17550 * server.c (handle_target_event): If the process is gone, mark
17552 * thread-db.c (struct thread_db) <create_bp>: New field.
17553 (thread_db_enable_reporting): Fix prototype. Store a thread event
17554 breakpoint reference in the thread_db struct.
17555 (thread_db_load_search): Clear the thread_db object.
17556 (try_thread_db_load_1): Ditto.
17557 (switch_to_process): New.
17558 (disable_thread_event_reporting): Use it.
17559 (remove_thread_event_breakpoints): New.
17560 (thread_db_detach, thread_db_mourn): Use it.
17562 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17564 * linux-low.c (linux_enable_event_reporting): New.
17565 (linux_wait_for_event_1, handle_extended_wait): Use it.
17567 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17569 * linux-low.c (linux_kill_one_lwp, linux_kill)
17570 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17571 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17572 SIGSTOP even if the LWP is stopped.
17573 (send_sigstop_callback): New.
17574 (stop_all_lwps): Use send_sigstop_callback instead.
17575 (linux_resume_one_thread): Adjust.
17576 (proceed_one_lwp): Still proceed an LWP that the client has
17577 requested to stop, if we haven't reported it as stopped yet. Make
17578 sure that LWPs the client want stopped, have a pending SIGSTOP.
17580 2010-04-26 Doug Evans <dje@google.com>
17582 * server.c (handle_general_set): Make static.
17584 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17585 Print received char after testing for error/eof instead of before.
17586 (input_interrupt): Tweak comment.
17588 2010-04-23 Doug Evans <dje@google.com>
17590 * server.c (start_inferior): Print inferior argv if --debug.
17592 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17594 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17595 * nto-x86-low.c: Include server.h
17597 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17599 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17600 be consistent with other sources of this directory.
17601 (init_registers_amd64): Correct name of source file of this function
17604 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17606 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17607 64-bit executables.
17609 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17611 * win32-i386-low.c: Add 64-bit support.
17612 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17613 (init_registers_amd64): Declare.
17614 (mappings): Add 64-bit version of array.
17615 (init_windows_x86): New function.
17616 (the_low_target): Change init_arch field to init_windows_x86.
17618 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17620 * win32-low.c: Adapt to support also 64-bit architecture.
17621 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17622 (get_image_name): Use SIZE_T type for local variable `done'.
17623 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17624 (toolhelp_get_dll_name): Idem.
17625 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17626 Use uintptr_t typecast to avoid warning.
17627 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17628 (handle_exception): Use phex_nz to avoid warning.
17629 (win32_wait): Remove unused local variable `process'.
17631 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17633 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17636 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17638 * configure.ac: Use `ws2_32' library for srv_mingw.
17639 * configure: Regenerate.
17640 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17641 * remote-utils.c: Likewise.
17643 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17645 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17646 if __x86_64__ is defined.
17648 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17650 * configure: Regenerate.
17652 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17654 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17655 * target.h (target_ops): New get_tib_address field.
17656 * win32-low.h (win32_thread_info): Add thread_local_base field.
17657 * win32-low.c (child_add_thread): Add tlb argument.
17658 Set thread_local_base field to TLB.
17659 (get_child_debug_event): Adapt to child_add_thread change.
17660 (win32_get_tib_address): New function.
17661 (win32_target_ops): Set get_tib_address field to
17662 win32_get_tib_address.
17663 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17665 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17667 * linux-low.c (linux_mourn): Also remove the process.
17668 * server.c (handle_target_event): Don't remove the process here.
17669 * nto-low.c (nto_mourn): New.
17670 (nto_target_ops): Install it.
17671 * spu-low.c (spu_mourn): New.
17672 (spu_target_ops): Install it.
17673 * win32-low.c (win32_mourn): New.
17674 (win32_target_ops): Install it.
17676 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17678 * server.h (buffer_xml_printf): Remove redundant `;'.
17680 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17682 * regcache.c (set_register_cache): Invalidate regcaches before
17683 changing the register cache layout.
17684 (regcache_invalidate_one): Allow a NULL regcache.
17685 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17686 regcaches before changing the register cache layout or the target
17689 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17691 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17692 variable warning on Linux/x86-64.
17694 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17696 GDBserver disconnected tracing support.
17698 * linux-low.c (linux_remove_process): Delete.
17699 (add_lwp): Don't set last_resume_kind here.
17700 (linux_kill): Use `mourn'.
17701 (linux_detach): Use `thread_db_detach', and `mourn'.
17702 (linux_mourn): New.
17703 (linux_attach_lwp_1): Adjust comment.
17704 (linux_attach): last_resume_kind moved the thread_info; adjust.
17705 (status_pending_p_callback): Adjust.
17706 (linux_wait_for_event_1): Adjust.
17707 (count_events_callback, select_singlestep_lwp_callback)
17708 (select_event_lwp_callback, cancel_breakpoints_callback)
17709 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17710 (proceed_one_lwp): Adjust.
17711 (linux_async): Add debug output.
17712 (linux_thread_stopped): New.
17713 (linux_pause_all): New.
17714 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17716 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17717 (thread_db_free): Delete declaration.
17718 (thread_db_detach, thread_db_mourn): Declare.
17719 * thread-db.c (thread_db_init): Use thread_db_mourn.
17720 (thread_db_free): Delete, split in two.
17721 (disable_thread_event_reporting): New.
17722 (thread_db_detach): New.
17723 (thread_db_mourn): New.
17725 * server.h (struct thread_info) <last_resume_kind>: New field.
17726 <attached>: Add comment.
17727 <gdb_detached>: New field.
17728 (handler_func): Change return type to int.
17729 (handle_serial_event, handle_target_event): Ditto.
17730 (gdb_connected): Declare.
17732 (disconnected_tracing): Declare.
17733 (stop_tracing): Declare.
17735 * server.c (handle_query) <qSupported>: Report support for
17736 disconnected tracing.
17737 (queue_stop_reply_callback): Account for running threads.
17738 (gdb_wants_thread_stopped): New.
17739 (gdb_wants_all_threads_stopped): New.
17740 (gdb_reattached_process): New.
17741 (handle_status): Clear the `gdb_detached' flag of all processes.
17742 In all-stop, stop all threads.
17743 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17744 (process_serial_event): If the remote connection breaks, or if an
17745 exit was forced with "monitor exit", force an event loop exit.
17746 Handle disconnected tracing on detach.
17747 (handle_serial_event): Adjust.
17748 (handle_target_event): If GDB isn't connected, forward events back
17749 to the inferior, unless the last process exited, in which case,
17750 exit gdbserver. Adjust interface.
17752 * remote-utils.c (remote_open): Don't block in accept. Instead
17753 register an event loop source on the listen socket file
17754 descriptor. Refactor bits into ...
17755 (listen_desc): ... this new global.
17756 (gdb_connected): ... this new function.
17757 (enable_async_notification): ... this new function.
17758 (handle_accept_event): ... this new function.
17759 (remote_close): Clear remote_desc.
17761 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17763 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17765 (mourn_inferior): Define.
17766 (target_process_qsupported): Avoid the dangling else problem.
17767 (thread_stopped): Define.
17768 (pause_all): Define.
17769 (target_waitstatus_to_string): Declare.
17770 * target.c (target_waitstatus_to_string): New.
17772 * tracepoint.c (tracing): Make extern.
17773 (disconnected_tracing): New.
17774 (stop_tracing): Make extern. Handle tracing stops due to GDB
17776 (cmd_qtdisconnected): New.
17777 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17778 (handle_tracepoint_general_set): Handle QTDisconnected.
17780 * event-loop.c (event_handler_func): Change return type to int.
17781 (process_event): Bail out if the event handler wants the event
17783 (handle_file_event): Ditto.
17784 (start_event_loop): Bail out if the event handler wants the event
17787 * nto-low.c (nto_target_ops): Adjust.
17788 * spu-low.c (spu_wait): Don't remove the process here.
17789 (spu_target_ops): Adjust.
17790 * win32-low.c (win32_wait): Don't remove the process here.
17791 (win32_target_ops): Adjust.
17793 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17795 * regcache.c (realloc_register_cache): Invalidate inferior's
17796 regcache before recreating it.
17798 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17800 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17802 2010-04-09 Stan Shebs <stan@codesourcery.com>
17803 Pedro Alves <pedro@codesourcery.com>
17805 * server.h (LONGEST): New.
17806 (struct thread_info) <while_stepping>: New field.
17807 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17809 (initialize_tracepoint, handle_tracepoint_general_set)
17810 (handle_tracepoint_query, tracepoint_finished_step)
17811 (tracepoint_was_hit, release_while_stepping_state_list):
17812 (current_traceframe): Declare.
17813 * server.c (handle_general_set): Handle tracepoint packets.
17814 (read_memory): New.
17815 (write_memory): New.
17816 (handle_search_memory_1): Use read_memory.
17817 (handle_query): Report support for conditional tracepoints, trace
17818 state variables, and tracepoint sources. Handle tracepoint
17820 (main): Initialize the tracepoints module.
17821 (process_serial_event): Handle traceframe reads/writes.
17823 * linux-low.c (handle_tracepoints): New.
17824 (linux_wait_1): Call it.
17825 (linux_resume_one_lwp): Handle while-stepping.
17826 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17827 (linux_target_ops): Install them.
17828 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17830 * linux-x86-low.c (x86_supports_tracepoints): New.
17831 (the_low_target). Install it.
17833 * mem-break.h (delete_breakpoint): Declare.
17834 * mem-break.c (delete_breakpoint): Make external.
17836 * target.h (struct target_ops): Add `supports_tracepoints',
17837 `read_pc', and `write_pc' fields.
17838 (target_supports_tracepoints): Define.
17839 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17842 * regcache.h (struct regcache) <registers_owned>: New field.
17843 (init_register_cache, regcache_cpy): Declare.
17844 (regcache_read_pc, regcache_write_pc): Declare.
17845 (register_cache_size): Declare.
17846 (supply_regblock): Declare.
17847 * regcache.c (init_register_cache): New.
17848 (new_register_cache): Use it.
17849 (regcache_cpy): New.
17850 (register_cache_size): New.
17851 (supply_regblock): New.
17852 (regcache_read_pc, regcache_write_pc): New.
17854 * tracepoint.c: New.
17856 * Makefile.in (OBS): Add tracepoint.o.
17857 (tracepoint.o): New rule.
17859 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17861 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17863 (i386-mmx.c): Likewise.
17864 (i386-mmx-linux.o): Likewise.
17865 (i386-mmx-linux.c): Likewise.
17867 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17868 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17869 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17870 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17872 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17873 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17874 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17876 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17878 * Makefile.in (clean): Updated.
17880 (i386-avx.c): Likewise.
17881 (i386-avx-linux.o): Likewise.
17882 (i386-avx-linux.c): Likewise.
17883 (amd64-avx.o): Likewise.
17884 (amd64-avx.c): Likewise.
17885 (amd64-avx-linux.o): Likewise.
17886 (amd64-avx-linux.c): Likewise.
17888 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17889 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17890 (srv_amd64_regobj): Add amd64-avx.o.
17891 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17892 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17893 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17894 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17895 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17896 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17897 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17899 * i387-fp.c: Include "i386-xstate.h".
17901 (i387_cache_to_xsave): Likewise.
17902 (i387_xsave_to_cache): Likewise.
17903 (x86_xcr0): Likewise.
17905 * i387-fp.h (i387_cache_to_xsave): Likewise.
17906 (i387_xsave_to_cache): Likewise.
17907 (x86_xcr0): Likewise.
17909 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17910 * linux-crisv32-low.c (target_regsets): Likewise.
17911 * linux-m68k-low.c (target_regsets): Likewise.
17912 * linux-mips-low.c (target_regsets): Likewise.
17913 * linux-ppc-low.c (target_regsets): Likewise.
17914 * linux-s390-low.c (target_regsets): Likewise.
17915 * linux-sh-low.c (target_regsets): Likewise.
17916 * linux-sparc-low.c (target_regsets): Likewise.
17917 * linux-xtensa-low.c (target_regsets): Likewise.
17919 * linux-low.c: Include <sys/uio.h>.
17920 (regsets_fetch_inferior_registers): Support nt_type.
17921 (regsets_store_inferior_registers): Likewise.
17922 (linux_process_qsupported): New.
17923 (linux_target_ops): Add linux_process_qsupported.
17925 * linux-low.h (regset_info): Add nt_type.
17926 (linux_target_ops): Add process_qsupported.
17928 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17930 (init_registers_i386_avx_linux): New.
17931 (init_registers_amd64_avx_linux): Likewise.
17932 (xmltarget_i386_linux_no_xml): Likewise.
17933 (xmltarget_amd64_linux_no_xml): Likewise.
17934 (PTRACE_GETREGSET): Likewise.
17935 (PTRACE_SETREGSET): Likewise.
17936 (x86_fill_xstateregset): Likewise.
17937 (x86_store_xstateregset): Likewise.
17938 (use_xml): Likewise.
17939 (x86_linux_update_xmltarget): Likewise.
17940 (x86_linux_process_qsupported): Likewise.
17941 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17942 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17943 init_registers_i386_linux here. Call
17944 x86_linux_update_xmltarget.
17945 (the_low_target): Add x86_linux_process_qsupported.
17947 * server.c (handle_query): Call target_process_qsupported.
17949 * target.h (target_ops): Add process_qsupported.
17950 (target_process_qsupported): New.
17952 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17954 * inferiors.c (add_thread): Set last_status kind to
17955 TARGET_WAITKIND_IGNORE.
17956 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17957 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17958 (linux_wait_1): Move `thread' local definition to block that uses
17959 it. Don't NULL initialize `event_child'.
17960 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17961 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17962 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17964 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17966 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17967 an extended waitstatus, or by a watchpoint.
17968 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17969 thread was stepping or has been stopped by a watchpoint.
17971 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17973 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17974 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17975 of another, then delete the previous, and validate all
17977 (validate_inserted_breakpoint): New.
17978 (delete_disabled_breakpoints): New.
17979 (validate_breakpoints): New.
17980 (check_mem_read): Validate breakpoints before trusting their
17981 shadow. Delete disabled breakpoints.
17982 (check_mem_write): Validate breakpoints before trusting they
17983 should be inserted. Delete disabled breakpoints.
17984 * mem-break.h (validate_breakpoints):
17985 * server.c (handle_query): Validate breakpoints when we see a
17988 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17990 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17991 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17992 if we could tell there's a GDB breakpoint at stop_pc.
17993 (need_step_over_p): Don't do a step over if we find a GDB
17994 breakpoint at the resume PC.
17996 * mem-break.c (struct raw_breakpoint): New.
17997 (enum bkpt_type): New type `gdb_breakpoint'.
17998 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17999 fields. New field `raw'.
18000 (find_raw_breakpoint_at): New.
18001 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18002 breakpoint instead.
18003 (set_breakpoint_at): Adjust.
18004 (delete_raw_breakpoint): New.
18005 (release_breakpoint): New.
18006 (delete_breakpoint): Rename to...
18007 (delete_breakpoint_1): ... this. Add proc parameter. Use
18008 release_breakpoint. Return ENOENT.
18009 (delete_breakpoint): Reimplement.
18010 (find_breakpoint_at): Delete.
18011 (find_gdb_breakpoint_at): New.
18012 (delete_breakpoint_at): Delete.
18013 (set_gdb_breakpoint_at): New.
18014 (delete_gdb_breakpoint_at): New.
18015 (gdb_breakpoint_here): New.
18016 (set_reinsert_breakpoint): Use release_breakpoint.
18017 (uninsert_breakpoint): Rename to ...
18018 (uninsert_raw_breakpoint): ... this.
18019 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18020 (reinsert_raw_breakpoint): Change parameter type to
18022 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18024 (check_breakpoints): Adjust. Use release_breakpoint.
18025 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18026 (breakpoint_inserted_here): Ditto.
18027 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18028 Don't trust the breakpoint's shadow if it is not inserted.
18029 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18030 (delete_all_breakpoints): Adjust.
18031 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18032 use delete_breakpoint_1.
18034 * mem-break.h (breakpoints_supported): Delete declaration.
18035 (set_gdb_breakpoint_at): Declare.
18036 (gdb_breakpoint_here): Declare.
18037 (delete_breakpoint_at): Delete.
18038 (delete_gdb_breakpoint_at): Declare.
18040 * server.h (struct raw_breakpoint): Forward declare.
18041 (struct process_info): New field `raw_breakpoints'.
18043 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18046 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18048 * linux-low.c (status_pending_p_callback): Fix comment.
18049 (linux_wait_for_event_1): Move most of the internal breakpoint
18050 handling from here...
18051 (linux_wait_1): ... to here.
18052 (count_events_callback): New.
18053 (select_singlestep_lwp_callback): New.
18054 (select_event_lwp_callback): New.
18055 (cancel_breakpoints_callback): New.
18056 (select_event_lwp): New.
18057 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18058 priority to all LWPs that have had events that should be reported
18059 to the client. Cancel breakpoints when about to reporting the
18060 event to the client, not while stopping lwps. No longer cancel
18061 finished single-steps here.
18062 (cancel_finished_single_step): Delete.
18063 (cancel_finished_single_steps): Delete.
18065 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18067 * mem-break.c (enum bkpt_type): New.
18068 (struct breakpoint): New field `type'.
18069 (set_breakpoint_at): Change return type to struct breakpoint
18070 pointer. Set type to `other_breakpoint' by default.
18071 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18072 in the breakpoint list.
18073 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18074 (reinsert_breakpoint): Rename to ...
18075 (reinsert_raw_breakpoint): ... this.
18076 (reinsert_breakpoints_at): Adjust.
18077 * mem-break.h (struct breakpoint): Declare.
18078 (set_breakpoint_at): Change return type to struct breakpoint
18081 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18083 * server.c (handle_query): Assign, not compare.
18085 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18087 Teach linux gdbserver to step-over-breakpoints.
18089 * linux-low.c (can_hardware_single_step): New.
18090 (supports_breakpoints): New.
18091 (handle_extended_wait): If stopping threads, read the stop pc of
18092 the new cloned LWP.
18094 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18095 low target doesn't support retrieving the PC.
18096 (add_lwp): Set last_resume_kind to resume_continue.
18097 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18098 (linux_attach): Don't clear stop_expected. Set the lwp's
18099 last_resume_kind to resume_stop.
18100 (linux_detach_one_lwp): Don't check for removed breakpoints.
18101 (check_removed_breakpoint): Delete.
18102 (status_pending_p): Rename to ...
18103 (status_pending_p_callback): ... this. Don't check for removed
18104 breakpoints. Don't consider threads that are stopped from GDB's
18106 (linux_wait_for_lwp): Always read the stop_pc here.
18107 (cancel_breakpoint): New.
18108 (step_over_bkpt): New global.
18109 (linux_wait_for_event_1): Implement stepping over breakpoints.
18110 (gdb_wants_lwp_stopped): New.
18111 (gdb_wants_all_stopped): New.
18112 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18113 single-step traps here. Store the thread's last reported target
18115 (send_sigstop): Don't clear stop_expected. Always set it,
18117 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18118 (cancel_finished_single_step): New.
18119 (cancel_finished_single_steps): New.
18120 (wait_for_sigstop): Don't cancel finished single-step traps here.
18121 (linux_resume_one_lwp): Don't check for removed breakpoints.
18122 Don't set `step' on non-hardware step archs.
18123 (linux_set_resume_request): Ignore resume_stop requests if already
18124 stopping or stopped. Set the lwp's last_resume_kind.
18125 (resume_status_pending_p): Don't check for removed breakpoints.
18126 (need_step_over_p): New.
18127 (start_step_over): New.
18128 (finish_step_over): New.
18129 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18130 requests. Clear the thread's last reported target waitstatus.
18131 Don't use the `suspended' flag. Don't consider pending breakpoints.
18132 (linux_resume): Start a step-over if necessary.
18133 (proceed_one_lwp): New.
18134 (proceed_all_lwps): New.
18135 (unstop_all_lwps): New.
18136 * linux-low.h (struct lwp_info): Rewrite comment for the
18137 `suspended' flag. Add the `stop_pc' field. Delete the
18138 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18139 Add `'last_resume_kind' and `need_step_over' fields.
18140 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18141 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18142 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18143 (set_raw_breakpoint_at): New.
18144 (set_breakpoint_at): Rewrite to use it.
18145 (reinsert_breakpoint_handler): Delete.
18146 (set_reinsert_breakpoint): New.
18147 (reinsert_breakpoint_by_bp): Delete.
18148 (delete_reinsert_breakpoints): New.
18149 (uninsert_breakpoint): Rewrite.
18150 (uninsert_breakpoints_at): New.
18151 (reinsert_breakpoint): Rewrite.
18152 (reinsert_breakpoints_at): New.
18153 (check_breakpoints): Rewrite.
18154 (breakpoint_here): New.
18155 (breakpoint_inserted_here): New.
18156 (check_mem_read): Adjust.
18157 * mem-break.h (breakpoints_supported, breakpoint_here)
18158 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18159 (reinsert_breakpoint_by_bp): Delete declaration.
18160 (delete_reinsert_breakpoints): Declare.
18161 (reinsert_breakpoint): Delete declaration.
18162 (reinsert_breakpoints_at): Declare.
18163 (uninsert_breakpoint): Delete declaration.
18164 (uninsert_breakpoints_at): Declare.
18165 (check_breakpoints): Adjust prototype.
18166 * server.h: Adjust include order.
18167 (struct thread_info): Declare here. Add a `last_status' field.
18169 2010-03-23 Michael Snyder <msnyder@vmware.com>
18171 * server.c (crc32): New function.
18172 (handle_query): Add handling for 'qCRC:' request.
18174 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18176 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18177 lwp had been stopped by a watchpoint.
18179 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18181 * server.h (internal_error): Declare.
18182 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18183 * utils.c (internal_error): New function.
18185 2010-03-15 Andreas Schwab <schwab@redhat.com>
18187 * configure.srv: Fix typo setting srv_regobj.
18189 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18191 * linux-low.c (fetch_register): Avoid passing a non string literal
18193 (usr_store_inferior_registers): Ditto.
18195 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18197 * linux-low.c (linux_write_memory): Bail out early if peeking
18200 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18202 * linux-low.h (struct lwp_info): New fields
18203 `stopped_by_watchpoint' and `stopped_data_address'.
18204 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18205 here, and cache them in the lwp object.
18206 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18208 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18210 (linux_stopped_by_watchpoint): Rewrite.
18211 (linux_stopped_data_address): Rewrite.
18213 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18215 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18216 switching the current inferior, not before.
18218 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18220 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18221 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18222 i386-linux.c and amd64-linux.c.
18223 (reg-i386.o): Removed.
18224 (reg-i386.c): Likewise.
18225 (reg-i386-linux.o): Likewise.
18226 (reg-i386-linux.c): Likewise.
18227 (reg-x86-64.o): Likewise.
18228 (reg-x86-64.c): Likewise.
18229 (reg-x86-64-linux.o): Likewise.
18230 (reg-x86-64-linux.c): Likewise.
18232 (i386.c): Likewise.
18233 (i386-linux.o): Likewise.
18234 (i386-linux.c): Likewise.
18235 (amd64.o): Likewise.
18236 (amd64.c): Likewise.
18237 (amd64-linux.o): Likewise.
18238 (amd64-linux.c): Likewise.
18240 * configure.srv (srv_i386_regobj): New.
18241 (srv_i386_linux_regobj): Likewise.
18242 (srv_amd64_regobj): Likewise.
18243 (srv_amd64_linux_regobj): Likewise.
18244 (srv_i386_32bit_xmlfiles): Likewise.
18245 (srv_i386_64bit_xmlfiles): Likewise.
18246 (srv_i386_xmlfiles): Likewise.
18247 (srv_amd64_xmlfiles): Likewise.
18248 (srv_i386_linux_xmlfiles): Likewise.
18249 (srv_amd64_linux_xmlfiles): Likewise.
18250 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18251 srv_xmlfiles to $srv_i386_xmlfiles.
18252 (i[34567]86-*-mingw32ce*): Likewise.
18253 (i[34567]86-*-mingw*): Likewise.
18254 (i[34567]86-*-nto*): Likewise.
18255 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18256 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18257 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18258 (x86_64-*-linux*): Likewise.
18260 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18261 (init_registers_amd64_linux): New.
18262 (x86_arch_setup): Replace init_registers_x86_64_linux with
18263 init_registers_amd64_linux.
18265 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18267 * configure.ac: Check for libdl. If it is not available link against
18268 static libthread_db.
18269 * configure: Regenerate.
18271 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18275 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18276 handing a read watchpoint.
18277 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18279 2010-02-12 Doug Evans <dje@google.com>
18281 * linux-low.c (linux_supports_tracefork_flag): Document.
18282 (linux_look_up_symbols): Add comment.
18284 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18286 * regcache.c (supply_register): Clear regcache if buf is NULL.
18288 2010-02-02 Nicolas Roche <roche@sourceware.org>
18289 Joel Brobecker <brobecker@adacore.com>
18291 * inferiors.c (find_inferior): Add function documentation.
18292 (unloaded_dll): Handle the case where the unloaded dll has not
18293 been previously registered in the dll list.
18295 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18297 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18298 (thumb2_breakpoint): New.
18299 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18301 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18303 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18304 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18307 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18309 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18311 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18313 * linux-s390-low.c (s390_collect_ptrace_register)
18314 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18316 2010-01-21 Doug Evans <dje@google.com>
18318 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18319 (PTRACE_ARG4_TYPE): New macro.
18320 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18321 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18322 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18323 (usr_store_inferior_registers): Ditto.
18324 (linux_read_memory, linux_write_memory): Ditto.
18325 (linux_test_for_tracefork): Ditto.
18327 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18328 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18330 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18332 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18335 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18337 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18338 prototype to take a regcache. Adjust.
18340 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18342 * regcache.h (struct thread_info): Forward declare.
18343 (struct regcache): New.
18344 (new_register_cache): Adjust prototype.
18345 (get_thread_regcache): Declare.
18346 (free_register_cache): Adjust prototype.
18347 (registers_to_string, registers_from_string): Ditto.
18348 (supply_register, supply_register_by_name, collect_register)
18349 (collect_register_as_string, collect_register_by_name): Ditto.
18350 * regcache.c (struct inferior_regcache_data): Delete.
18351 (get_regcache): Rename to ...
18352 (get_thread_regcache): ... this. Adjust. Switch inferior before
18353 fetching registers.
18354 (regcache_invalidate_one): Adjust.
18355 (regcache_invalidate): Fix prototype.
18356 (new_register_cache): Return the new register cache.
18357 (free_register_cache): Change prototype.
18358 (realloc_register_cache): Adjust.
18359 (registers_to_string): Change prototype to take a regcache. Adjust.
18360 (registers_from_string): Ditto.
18361 (register_data): Ditto.
18362 (supply_register): Ditto.
18363 (supply_register_by_name): Ditto.
18364 (collect_register): Ditto.
18365 (collect_register_as_string): Ditto.
18366 (collect_register_by_name): Ditto.
18367 * server.c (process_serial_event): Adjust.
18368 * linux-low.h (regset_fill_func, regset_store_func): Change
18370 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18372 * linux-low.c (get_stop_pc): Adjust.
18373 (check_removed_breakpoint): Adjust.
18374 (linux_wait_for_event): Adjust.
18375 (linux_resume_one_lwp): Adjust.
18376 (fetch_register): Add regcache parameter. Adjust.
18377 (usr_store_inferior_registers): Ditto.
18378 (regsets_fetch_inferior_registers): Ditto.
18379 (regsets_store_inferior_registers): Ditto.
18380 (linux_fetch_registers, linux_store_registers): Ditto.
18381 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18383 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18385 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18386 prototype to take a regcache.
18387 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18388 * remote-utils.c (convert_ascii_to_int, outreg)
18389 (prepare_resume_reply): Change prototype to take a regcache.
18391 * target.h (struct target_ops) <fetch_registers, store_registers>:
18392 Change prototype to take a regcache.
18393 (fetch_inferior_registers, store_inferior_registers): Change
18394 prototype to take a regcache. Adjust.
18395 * proc-service.c (ps_lgetregs): Adjust.
18396 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18397 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18398 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18399 take a regcache. Adjust.
18400 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18401 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18402 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18403 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18404 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18405 (cris_cannot_fetch_register):
18406 (cris_breakpoint_at): Change prototype to take a regcache.
18408 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18409 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18410 to take a regcache. Adjust.
18411 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18413 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18414 take a regcache. Adjust.
18415 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18416 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18417 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18418 * linux-mips-low.c (mips_get_pc):
18419 (mips_set_pc): Change prototype to take a regcache. Adjust.
18420 (mips_reinsert_addr): Adjust.
18421 (mips_collect_register): Change prototype to take a regcache.
18423 (mips_supply_register):
18424 (mips_collect_register_32bit, mips_supply_register_32bit)
18425 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18426 (mips_store_fpregset): Ditto.
18427 * linux-ppc-low.c (ppc_supply_ptrace_register)
18428 (ppc_supply_ptrace_register): Ditto.
18429 (parse_spufs_run): Adjust.
18430 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18431 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18432 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18433 take a regcache. Adjust.
18434 * linux-s390-low.c (s390_collect_ptrace_register)
18435 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18436 (s390_set_pc): Change prototype to take a regcache. Adjust.
18437 (s390_arch_setup): Adjust.
18438 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18439 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18440 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18441 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18442 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18444 (sparc_breakpoint_at): Adjust.
18445 * linux-xtensa-low.c (xtensa_fill_gregset):
18446 (xtensa_store_gregset):
18447 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18448 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18449 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18450 prototype to take a regcache. Adjust.
18451 * win32-arm-low.c (arm_fetch_inferior_register)
18452 (arm_store_inferior_register): Change prototype to take a
18454 * win32-i386-low.c (i386_fetch_inferior_register)
18455 (i386_store_inferior_register): Change prototype to take a
18457 * win32-low.c (child_fetch_inferior_registers)
18458 (child_store_inferior_registers): Change prototype to take a
18460 (win32_wait): Adjust.
18461 (win32_fetch_inferior_registers): Change prototype to take a
18463 (win32_store_inferior_registers): Adjust.
18464 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18465 store_inferior_register>: Change prototype to take a regcache.
18467 2010-01-20 Doug Evans <dje@google.com>
18469 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18471 (linux_wait_for_event1, linux_init_signals): Ditto.
18472 (W_STOPCODE): Provide definition if missing.
18474 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18476 * linux-low.c (linux_core_of_thread): New.
18477 (compare_ints, show_process, list_threads): New.
18478 (linux_qxfer_osdata): Report threads and cores.
18479 (linux_target_op): Register linux_core_of_thread.
18480 * remote-utils.c (prepare_resume_reply): Report the core.
18481 (buffer_xml_printf): Support %d specifier.
18482 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18484 (handle_query): Handle qXfer:threads. Announce availability
18486 * target.h (struct target_ops): New field core_of_thread.
18488 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18490 * Makefile.in (clean): Remove new generated files.
18491 (reg-s390.o, reg-s390.c): Remove rules.
18492 (reg-s390x.o, reg-s390x.c): Likewise.
18493 (s390-linux32.o, s390-linux32.c): Add rules.
18494 (s390-linux64.o, s390-linux64.c): Likewise.
18495 (s390x-linux64.o, s390x-linux64.c): Likewise.
18496 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18497 * linux-s390-low.c: Include <elf.h>.
18498 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18499 (init_registers_s390): Remove prototype.
18500 (init_registers_s390x): Likewise.
18501 (init_registers_s390_linux32): Add prototype.
18502 (init_registers_s390_linux64): Likewise.
18503 (init_registers_s390x_linux64): Likewise.
18504 (s390_num_regs_3264): New define.
18505 (s390_regmap_3264): New global variable.
18506 (s390_cannot_fetch_register): Remove obsolete check.
18507 (s390_cannot_store_register): Likewise.
18508 (s390_collect_ptrace_register): Handle upper/lower register halves.
18509 (s390_supply_ptrace_register): Likewise.
18510 (s390_fill_gregset): Update to register number changes.
18511 (s390_get_hwcap): New routine.
18512 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18513 Install appropriate regmap and register set.
18515 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18517 * server.c (gdbserver_version): Update copyright year to 2010.
18518 * gdbreplay.c (gdbreplay_version): Likewise.
18520 2009-12-28 Doug Evans <dje@google.com>
18522 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18523 elf/external.h. Include <elf.h> instead but only if necessary.
18525 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18527 * linux-low.c (linux_remove_process): Remove `detaching'
18528 parameter. Don't release/detach from thread_db here.
18529 (linux_kill): Release/detach from thread_db here, ...
18530 (linux_detach): ... and here, before actually detaching.
18531 (linux_wait_1): ... and here, when a process exits.
18532 * thread-db.c (any_thread_of): New.
18533 (thread_db_free): Switch the current inferior to a thread of the
18536 2009-12-21 Doug Evans <dje@google.com>
18538 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18540 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18541 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18542 warning ifndef __NR_tkill. Move setting of errno there too.
18543 Delete unnecessary resetting of errno after syscall.
18544 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18546 * configure.ac: Check for dladdr.
18547 * config.in: Regenerate.
18548 * configure: Regenerate.
18549 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18550 (try_thread_db_load): Update.
18552 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18554 2009-12-18 Doug Evans <dje@google.com>
18556 * event-loop.c: Include unistd.h if it exists.
18558 * linux-low.c (my_waitpid): Move definition away from being in
18559 between linux_tracefork_child/linux_test_for_tracefork.
18561 * gdb_proc_service.h (psaddr_t): Fix type.
18562 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18563 signature to match glibc.
18565 2009-12-16 Doug Evans <dje@google.com>
18567 * linux-low.c (linux_read_memory): Fix argument to read.
18569 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18571 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18572 events, don't leave current_inferior pointing at null.
18574 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18576 * win32-low.c (LOG): Delete.
18577 (OUTMSG): Output to stderr.
18578 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18579 on compile time LOG macro.
18580 (win32_wait): Fix debug output.
18582 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18584 * win32-low.c (win32_add_one_solib): If the dll name is
18585 "ntdll.dll", prepend the system directory to the dll path.
18587 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18589 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18591 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18592 Vladimir Prus <vladimir@codesourcery.com>
18594 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18595 * configure.ac: Check for __mcoldfire__ and set
18596 gdb_cv_m68k_is_coldfire.
18597 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18598 reg-cf.o and reg-m68k.o.
18599 * configure: Regenerated.
18601 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18603 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18604 Pass it to thread_db_free.
18605 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18606 proper `detaching' argument to linux_remove_process.
18607 * linux-low.h (thread_db_free): Add `detaching' parameter.
18608 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18610 (thread_db_free): Add `detaching' parameter. Only
18611 call td_ta_clear_event if detaching from process.
18613 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18615 * thread-db.c (thread_db_free): Fix typo.
18617 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18620 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18622 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18624 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18625 with an i686 compiler.
18626 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18628 * configure: Rebuilt.
18630 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18634 * server.c (handle_search_memory_1): Correct read_addr initialization
18635 in loop for searching subsequent chunks.
18637 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18639 * configure.ac: New --with-libthread-db option.
18640 * thread-db.c: Allow direct dependence on libthread_db.
18641 (thread_db_free): Adjust.
18642 * config.in: Regenerate.
18643 * configure: Likewise.
18645 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18648 * thread-db.c (attach_thread): New function.
18649 (maybe_attach_thread): Return success/failure.
18650 (find_new_threads_callback): Adjust.
18651 (thread_db_find_new_threads): Loop until no new threads.
18653 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18655 * proc-service.c (ps_lgetregs): Formatting.
18657 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18659 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18660 * configure.ac: Adjust.
18661 * linux-low.h (struct process_info_private): Move members to struct
18663 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18664 * linux-low.c (linux_remove_process): Adjust.
18665 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18666 * server.c (handle_query): Move code ...
18667 (handle_monitor_command): ... here. New function.
18668 * target.h (struct target_ops): New member.
18669 * thread-db.c (struct thread_db): New.
18670 (libthread_db_search_path): New variable.
18671 (thread_db_create_event, thread_db_enable_reporting)
18672 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18673 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18674 (try_thread_db_load_1, dladdr_to_soname): New functions.
18675 (try_thread_db_load, thread_db_load_search): New functions.
18676 (thread_db_init): Search for libthread_db.
18677 (thread_db_free): New function.
18678 (thread_db_handle_monitor_command): Likewise.
18679 * config.in: Regenerate.
18680 * configure: Regenerate.
18682 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18684 * spu-low.c (spu_kill): Wait for inferior to terminate.
18685 Call clear_inferiors.
18686 (spu_detach): Call clear_inferiors.
18688 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18690 * aclocal.m4: Regenerate.
18691 * config.in: Likewise.
18692 * configure: Likewise.
18694 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18696 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18697 (parse_spufs_run): New function.
18698 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18699 (ppc_breakpoint_at): Handle SPU breakpoints.
18701 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18703 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18704 (SPUFS_MAGIC): Define.
18705 (spu_enumerate_spu_ids): New function.
18706 (linux_qxfer_spu): New function.
18707 (linux_target_ops): Install linux_qxfer_spu.
18709 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18711 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18712 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18713 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18714 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18715 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18716 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18717 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18718 (init_registers_powerpc_cell32l): Add prototype.
18719 (init_registers_powerpc_cell64l): Likewise.
18720 (ppc_arch_setup): Detect Cell/B.E. architecture.
18722 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18724 * Makefile.in (datarootdir): New variable.
18726 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18728 * linux-low.c (linux_write_memory): Update debugging output.
18729 * Makefile.in (clean): Add new descriptions.
18730 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18731 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18732 * configure.srv: Add new files for arm*-*-linux*.
18733 * linux-arm-low.c: Add new declarations.
18734 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18735 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18736 (HWCAP_VFPv3D16): New.
18737 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18738 instead of __IWMMXT__.
18739 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18740 (arm_arch_setup): New.
18741 (target_regsets): Remove #ifdef. Add VFP regset.
18742 (the_low_target): Use arm_arch_setup.
18744 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18746 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18747 the main thread again.
18749 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18751 Adding Neutrino gdbserver.
18752 * configure: Regenerated.
18753 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18754 * configure.srv (i[34567]86-*-nto*): New target.
18755 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18756 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18757 (nto_comctrl) [__QNX__]: New function.
18758 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18760 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18762 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18765 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18766 Pedro Alves <pedro@codesourcery.com>
18768 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18769 don't support CONTEXT_EXTENDED_REGISTERS.
18770 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18771 (the_low_target): Install them.
18772 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18773 failing with ERROR_PIPE_NOT_CONNECTED.
18775 2009-06-30 Doug Evans <dje@google.com>
18776 Pierre Muller <muller@ics.u-strasbg.fr>
18778 Add h/w watchpoint support to x86-linux, win32-i386.
18779 * Makefile.in (SFILES): Add i386-low.c
18780 (i386_low_h): Define.
18781 (i386-low.o): Add dependencies.
18782 (linux-x86-low.o): Add i386-low.h dependency.
18783 (win32-i386-low.o): Ditto.
18784 * i386-low.c: New file.
18785 * i386-low.h: New file.
18786 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18787 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18788 * linux-low.c (linux_add_process): Initialize arch_private.
18789 (linux_remove_process): Free arch_private.
18790 (add_lwp): Initialize arch_private.
18791 (delete_lwp): Free arch_private.
18792 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18794 * linux-low.h (process_info_private): New member arch_private.
18795 (lwp_info): New member arch_private.
18796 (linux_target_ops): New members new_process, new_thread,
18798 (ptid_of): New macro.
18799 * linux-x86-low.c: Include stddef.h, i386-low.h.
18800 (arch_process_info): New struct.
18801 (arch_lwp_info): New struct.
18802 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18803 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18804 (i386_dr_low_get_status): New function.
18805 (x86_insert_point, x86_remove_point): New functions.
18806 (x86_stopped_by_watchpoint): New function.
18807 (x86_stopped_data_address): New function.
18808 (x86_linux_new_process, x86_linux_new_thread): New functions.
18809 (x86_linux_prepare_to_resume): New function.
18810 (the_low_target): Add entries for insert_point, remove_point,
18811 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18813 * server.c (debug_hw_points): New global.
18814 (monitor_show_help): Document set debug-hw-points.
18815 (handle_query): Process "set debug-hw-points".
18816 * server.h (debug_hw_points): Declare.
18817 (paddress): Declare.
18818 * utils.c (NUMCELLS, CELLSIZE): New macros.
18819 (get_sell, xsnprintf, paddress): New functions.
18820 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18821 remove_point, stopped_by_watchpoint, stopped_data_address.
18822 * win32-i386-low.c: Include i386-low.h.
18823 (debug_reg_state): Replaces dr.
18824 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18825 (i386_dr_low_get_status): New function.
18826 (i386_insert_point, i386_remove_point): New functions.
18827 (i386_stopped_by_watchpoint): New function.
18828 (i386_stopped_data_address): New function.
18829 (i386_initial_stuff): Update.
18830 (get_thread_context,set_thread_context,i386_thread_added): Update.
18831 (the_low_target): Add entries for insert_point,
18832 remove_point, stopped_by_watchpoint, stopped_data_address.
18833 * win32-low.c (win32_insert_watchpoint): New function.
18834 (win32_remove_watchpoint): New function.
18835 (win32_stopped_by_watchpoint): New function.
18836 (win32_stopped_data_address): New function.
18837 (win32_target_ops): Add entries for insert_watchpoint,
18838 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18839 * win32-low.h (win32_target_ops): New members insert_point,
18840 remove_point, stopped_by_watchpoint, stopped_data_address.
18842 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18844 * server.c (process_serial_event): Re-return unsupported, not
18845 error, if the type isn't recognized. Re-allow supporting only
18846 insert or remove packets. Also call require_running for
18847 breakpoints. Add missing break statement to default case. Tidy.
18848 * target.h (struct target_ops): Rename insert_watchpoint to
18849 insert_point, and remove_watchpoint to remove_point.
18851 * linux-low.h (struct linux_target_ops): Likewise.
18852 * linux-low.c (linux_insert_watchpoint): Rename to ...
18853 (linux_insert_point): ... this. Adjust.
18854 (linux_remove_watchpoint): Rename to ...
18855 (linux_remove_point): ... this. Adjust.
18856 (linux_target_ops): Adjust.
18857 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18858 (cris_insert_point): ... this.
18859 (cris_remove_watchpoint): Rename to ...
18860 (cris_remove_point): ... this.
18861 (the_low_target): Adjust.
18863 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18865 * server.c (handle_v_kill): Pass signal_pid to
18866 kill_inferior if multi_process is zero.
18868 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18870 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18871 * target.h (target_ops): Comment for *_watchpoint to make it clear
18872 the functions can get types '0' and '1'.
18874 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18876 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18877 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18878 * regcache.c (get_regcache): Likewise.
18879 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18880 * win32-low.c (child_fetch_inferior_registers): Remove check for
18883 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18884 Pedro Alves <pedro@codesourcery.com>
18886 * target.h (struct target_ops) <supports_multi_process>: New
18888 (target_supports_multi_process): New.
18889 * server.c (handle_query): Even if GDB reports support, only
18890 enable multi-process if the target also supports it. Report
18891 multi-process support only if the target backend supports it.
18892 * linux-low.c (linux_supports_multi_process): New function.
18893 (linux_target_ops): Install it as target_supports_multi_process
18896 2009-05-24 Doug Evans <dje@google.com>
18898 Global renaming of find_thread_pid to find_thread_ptid.
18899 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18900 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18901 All callers updated.
18903 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18904 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18907 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18908 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18909 (linux_resume_one_lwp): Ditto.
18911 2009-05-23 Doug Evans <dje@google.com>
18913 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18914 from struct inferior_list_entry * to struct lwp_info *.
18915 All callers updated.
18917 2009-05-13 Doug Evans <dje@google.com>
18919 * linux-x86-low.c: Don't include assert.h.
18920 (x86_siginfo_fixup): Use fatal, not assert.
18921 (x86_arch_setup): Fix comment.
18923 2009-05-12 Doug Evans <dje@google.com>
18925 Biarch support for i386/amd64 gdbserver.
18926 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18927 Add linux-x86-low.c.
18928 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18929 (linux-x86-low.o): Add.
18930 * linux-x86-64-low.c: Delete.
18931 * linux-i386-low.c: Delete.
18932 * linux-x86-low.c: New file.
18933 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18935 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18937 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18938 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18939 (linux_child_pid_to_exec_file): New function.
18940 (elf_64_header_p, elf_64_file_p): New functions.
18941 (siginfo_fixup): New function.
18942 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18943 give target a chance to convert layout.
18944 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18945 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18947 2009-05-07 Doug Evans <dje@google.com>
18949 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18950 (regsets_store_inferior_registers): Ditto.
18952 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18956 * linux-low.c (must_set_ptrace_flags): Delete.
18957 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18959 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18960 `lwp->must_set_ptrace_flags' instead.
18961 (linux_wait_for_event_1): Set ptrace options here.
18962 (linux_wait_1): ... not here.
18964 2009-04-30 Doug Evans <dje@google.com>
18966 * inferiors.c (started_inferior_callback): New function.
18967 (attached_inferior_callback): New function.
18968 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18969 * server.c (print_started_pid, print_attached_pid): New functions.
18970 (detach_or_kill_for_exit): New function.
18971 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18972 * server.h (have_started_inferiors_p): Declare.
18973 (have_attached_inferiors_p): Declare.
18975 * inferiors.c (remove_process): Fix memory leak, free process.
18976 * linux-low.c (linux_remove_process): New function.
18977 (linux_kill): Call it instead of remove_process.
18978 (linux_detach, linux_wait_1): Ditto.
18980 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18982 * configure.srv: Add x86 Windows CE target.
18984 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18986 * inferiors.c (get_thread_process): Make global.
18987 * server.h (get_thread_process): Add prototype.
18988 * thread-db.c (find_one_thread): Use get_thread_process
18989 instead of current_process.
18990 (thread_db_get_tls_address): Do not crash if called when
18991 thread layer is not yet initialized.
18993 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18995 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18996 * spu-low.c (current_tid): Rename to ...
18997 (current_ptid): ... this.
18998 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18999 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19000 ptid_get_lwp (current_ptid) instead of current_tid.
19001 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19002 instead of current_tid. Use find_process_pid to verify pid
19003 argument is valid. Pass proper argument to remove_process.
19004 (spu_thread_alive): Compare current_ptid instead of current_tid.
19005 (spu_resume): Likewise.
19007 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19009 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19012 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19014 Implement the multiprocess extensions, and add linux multiprocess
19017 * server.h (ULONGEST): Declare.
19018 (struct ptid, ptid_t): New.
19019 (minus_one_ptid, null_ptid): Declare.
19020 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19021 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19022 (struct inferior_list_entry): Change `id' type from unsigned from
19024 (struct sym_cache, struct breakpoint, struct
19025 process_info_private): Forward declare.
19026 (struct process_info): Declare.
19027 (current_process): Declare.
19028 (all_processes): Declare.
19029 (initialize_inferiors): Declare.
19030 (add_thread): Adjust to use ptid_t.
19031 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19032 (add_process, remove_process, find_thread_pid): Declare.
19033 (find_inferior_id): Adjust to use ptid_t.
19034 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19035 (multi_process): Declare.
19036 (push_event): Adjust to use ptid_t.
19037 (read_ptid, write_ptid): Declare.
19038 (prepare_resume_reply): Adjust to use ptid_t.
19039 (clear_symbol_cache): Declare.
19040 * inferiors.c (all_processes): New.
19041 (null_ptid, minus_one_ptid): New.
19042 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19043 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19044 (add_thread): Change unsigned long to ptid. Remove gdb_id
19046 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19047 (gdb_id_to_thread): Rename to ...
19048 (find_thread_pid): ... this. Change unsigned long to ptid.
19049 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19050 (loaded_dll, pull_pid_from_list): Adjust.
19051 (add_process, remove_process, find_process_pid)
19052 (get_thread_process, current_process, initialize_inferiors): New.
19053 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19054 (struct target_waitstatus) <related_pid>: Ditto.
19055 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19056 return type to int.
19057 (struct target_ops) <join>: Add `pid' argument.
19058 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19059 (struct target_ops) <wait>: Add `ptid' field. Change return type
19061 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19062 (mywait): Add `ptid' argument. Change return type to ptid_t.
19063 (target_pid_to_str): Declare.
19064 * target.c (set_desired_inferior): Adjust to use ptids.
19065 (mywait): Add new `ptid' argument. Adjust.
19066 (target_pid_to_str): New.
19067 * mem-break.h (free_all_breakpoints): Declare.
19068 * mem-break.c (breakpoints): Delelete.
19069 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19070 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19071 to use per-process breakpoint list.
19072 (free_all_breakpoints): New.
19073 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19074 (symbol_cache, all_symbols_looked_up): Delete.
19076 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19078 (prepare_resume_reply): Change ptid argument's type from unsigned
19079 long to ptid_t. Adjust. Implement W;process and X;process.
19080 (free_sym_cache, clear_symbol_cache): New.
19081 (look_up_one_symbol): Adjust to per-process symbol cache. *
19082 * server.c (cont_thread, general_thread, step_thread): Change type
19084 (attached): Delete.
19085 (multi_process): New.
19086 (last_ptid): Change type to ptid_t.
19087 (struct vstop_notif) <ptid>: Change type to ptid_t.
19088 (queue_stop_reply, push_event): Change `ptid' argument's type to
19090 (discard_queued_stop_replies): Add `pid' argument.
19091 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19092 changes. Don't reference the `attached' global.
19093 (attach_inferior): Adjust to mywait interface changes.
19094 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19095 features. Handle and report "multiprocess+". Handle
19097 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19099 (handle_v_kill): New.
19100 (handle_v_stopped): Adjust to use target_pid_to_str.
19101 (handle_v_requests): Allow multiple attaches and runs when
19102 multiprocess extensions are in effect. Handle "vKill".
19103 (myresume): Adjust to use ptids.
19104 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19105 (handle_status): Adjust to discard_queued_stop_replies interface
19107 (first_thread_of, kill_inferior_callback)
19108 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19109 (main): Call initialize_inferiors. Adjust to use ptids, killing
19110 and detaching from all inferiors. Handle multiprocess packet
19112 * linux-low.h: Include gdb_proc_service.h.
19113 (struct process_info_private): New.
19114 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19115 <lwpid_of>: Use ptid_get_lwp.
19116 (get_lwp_thread): Adjust.
19117 (struct lwp_info): Add `dead' member.
19118 (find_lwp_pid): Declare.
19119 * linux-low.c (thread_db_active): Delete.
19120 (new_inferior): Adjust comment.
19121 (inferior_pid): Delete.
19122 (linux_add_process): New.
19123 (handle_extended_wait): Adjust.
19124 (add_lwp): Change unsigned long to ptid.
19125 (linux_create_inferior): Add process to processes table. Adjust
19126 to use ptids. Don't set new_inferior here.
19127 (linux_attach_lwp): Rename to ...
19128 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19129 it. Adjust to use ptids.
19130 (linux_attach_lwp): New.
19131 (linux_attach): Add process to processes table. Don't set
19133 (struct counter): New.
19134 (second_thread_of_pid_p, last_thread_of_process_p): New.
19135 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19136 multiple processes.
19137 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19138 processes. Remove process from process table.
19139 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19140 to multiple processes.
19141 (any_thread_of): New.
19142 (linux_detach): Add `pid' argument, and handle it. Remove process
19143 from processes table.
19144 (linux_join): Add `pid' argument. Handle it.
19145 (linux_thread_alive): Change unsighed long argument to ptid_t.
19146 Consider dead lwps as not being alive.
19147 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19148 threads we're not interested in.
19149 (same_lwp, find_lwp_pid): New.
19150 (linux_wait_for_lwp): Change `pid' argument's type from int to
19152 (linux_wait_for_event): Rename to ...
19153 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19154 from int to ptid_t. Adjust.
19155 (linux_wait_for_event): New.
19156 (linux_wait_1): Add `ptid' argument. Change return type to
19157 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19158 that exit from the process table.
19159 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19161 (mark_lwp_dead): New.
19162 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19163 stopping all threads, mark its main lwp as dead.
19164 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19166 (fetch_register, usr_store_inferior_registers)
19167 (regsets_fetch_inferior_registers)
19168 (regsets_store_inferior_registers, linux_read_memory)
19169 (linux_write_memory): Inline `inferior_pid'.
19170 (linux_look_up_symbols): Adjust to use per-process
19171 `thread_db_active'.
19172 (linux_request_interrupt): Adjust to use ptids.
19173 (linux_read_auxv): Inline `inferior_pid'.
19174 (initialize_low): Don't reference thread_db_active.
19175 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19176 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19177 (ps_getpid): Return the pid of the current inferior.
19178 * thread-db.c (proc_handle, thread_agent): Delete.
19179 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19181 (find_one_thread): Change argument type to ptid_t. Adjust to
19183 (maybe_attach_thread): Adjust to per-process data and ptids.
19184 (thread_db_find_new_threads): Ditto.
19185 (thread_db_init): Ditto.
19186 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19187 processes table. Adjust to use ptids.
19188 (spu_kill, spu_detach): Adjust interface. Remove process from
19190 (spu_join, spu_thread_alive): Adjust interface.
19191 (spu_wait): Adjust interface. Remove process from processes
19192 table. Adjust to use ptids.
19193 * win32-low.c (current_inferior_tid): Delete.
19194 (current_inferior_ptid): New.
19195 (debug_event_ptid): New.
19196 (thread_rec): Take a ptid. Adjust.
19197 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19198 (child_delete_thread): Ditto.
19199 (do_initial_child_stuff): Add `attached' argument. Add process to
19201 (child_fetch_inferior_registers, child_store_inferior_registers):
19203 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19204 (win32_attach): Pass 1 to do_initial_child_stuff.
19205 (win32_kill): Adjust interface. Remove process from processes
19207 (win32_detach): Ditto.
19208 (win32_join): Adjust interface.
19209 (win32_thread_alive): Take a ptid.
19210 (win32_resume): Adjust to use ptids.
19211 (get_child_debug_event): Ditto.
19212 (win32_wait): Adjust interface. Remove exiting process from
19215 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19217 Non-stop mode support.
19219 * server.h (non_stop): Declare.
19220 (gdb_client_data, handler_func): Declare.
19221 (delete_file_handler, add_file_handler, start_event_loop):
19223 (handle_serial_event, handle_target_event, push_event)
19224 (putpkt_notif): Declare.
19225 * target.h (enum resume_kind): New.
19226 (struct thread_resume): Replace `step' field by `kind' field.
19227 (TARGET_WNOHANG): Define.
19228 (struct target_ops) <wait>: Add `options' argument.
19229 <supports_non_stop, async, start_non_stop>: New fields.
19230 (target_supports_non_stop, target_async): New.
19231 (start_non_stop): Declare.
19232 (mywait): Add `options' argument.
19233 * target.c (mywait): Add `options' argument. Print child exit
19234 notifications here.
19235 (start_non_stop): New.
19236 * server.c (non_stop, own_buf, mem_buf): New globals.
19237 (struct vstop_notif): New.
19238 (notif_queue): New global.
19239 (queue_stop_reply, push_event, discard_queued_stop_replies)
19240 (send_next_stop_reply): New.
19241 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19243 (attach_inferior): In non-stop mode, don't wait for the target
19245 (handle_general_set): Handle QNonStop.
19246 (handle_query): When handling qC, return the current general
19247 thread, instead of the first thread of the list.
19248 (handle_query): If the backend supports non-stop mode, include
19249 QNonStop+ in the qSupported query response.
19250 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19252 (handle_v_attach, handle_v_run): Handle non-stop mode.
19253 (handle_v_stopped): New.
19254 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19255 (myresume): Adjust to use resume_kind. Handle non-stop.
19256 (queue_stop_reply_callback): New.
19257 (handle_status): Handle non-stop mode.
19258 (main): Clear non_stop flag on reconnection. Use the event-loop.
19259 Refactor serial protocol handling from here ...
19260 (process_serial_event): ... to this new function. When GDB
19261 selects any thread, select one here. In non-stop mode, wait until
19262 GDB acks all pending events before exiting.
19263 (handle_serial_event, handle_target_event): New.
19264 * remote-utils.c (remote_open): Install remote_desc in the event
19266 (remote_close): Remove remote_desc from the event loop.
19267 (putpkt_binary): Rename to...
19268 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19269 (putpkt_binary): New as wrapper around putpkt_binary_1.
19270 (putpkt_notif): New.
19271 (prepare_resume_reply): In non-stop mode, don't change the
19273 * event-loop.c: New.
19274 * Makefile.in (OBJ): Add event-loop.o.
19275 (event-loop.o): New rule.
19277 * linux-low.h (pid_of): Moved here.
19279 (get_lwp_thread): Use lwpid_of.
19280 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19281 * linux-low.c (pid_of): Delete.
19282 (inferior_pid): Use lwpid_of.
19283 (linux_event_pipe): New.
19284 (target_is_async_p): New.
19286 (handle_extended_wait): Use lwpid_of.
19287 (add_lwp): Don't set lwpid field.
19288 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19289 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19290 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19291 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19292 first. Adjust to linux_wait_for_event interface changes. Use
19294 (linux_detach): Don't delete the main lwp here.
19295 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19296 (status_pending_p): Don't consider explicitly suspended lwps.
19297 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19298 pointer. Add OPTIONS argument. Change return type to int. Use
19299 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19300 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19301 pointer. Add status pointer argument. Return a pid instead of a
19302 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19303 changes. In non-stop mode, don't switch to a random thread.
19304 (linux_wait): Rename to...
19305 (linux_wait_1): ... this. Add target_options argument, and handle
19306 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19307 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19308 clean exit and signal exit code. Don't stop all threads in
19309 non-stop mode. In all-stop mode, only stop all threads when
19310 reporting a stop to GDB. Handle explicit thread stop requests.
19311 (async_file_flush, async_file_mark): New.
19313 (send_sigstop): Use lwpid_of.
19314 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19315 interface changes. In non-stop mode, don't switch to a random
19317 (linux_resume_one_lwp): Use lwpid_of.
19318 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19319 (linux_resume_one_thread): ... this. Handle resume_stop. In
19320 non-stop mode, don't look for pending flag in all threads.
19321 (resume_status_pending_p): Don't consider explicitly suspended
19323 (my_waitpid): Reimplement. Emulate __WALL.
19324 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19326 (sigchld_handler, linux_supports_non_stop, linux_async)
19327 (linux_start_non_stop): New.
19328 (linux_target_ops): Register linux_supports_non_stop, linux_async
19329 and linux_start_non_stop.
19330 (initialize_low): Install SIGCHLD handler.
19331 * thread-db.c (thread_db_create_event, find_one_thread)
19332 (thread_db_get_tls_address): Use lwpid_of.
19333 * win32-low.c (win32_detach): Adjust to use resume_kind.
19334 (win32_wait): Add `options' argument.
19335 * spu-low.c (spu_resume): Adjust to use resume_kind.
19336 (spu_wait): Add `options' argument.
19338 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19340 Decouple target code from remote protocol.
19342 * target.h (enum target_waitkind): New.
19343 (struct target_waitstatus): New.
19344 (struct target_ops) <wait>: Return an unsigned long. Take a
19345 target_waitstatus pointer instead of a char pointer.
19346 (mywait): Likewise.
19347 * target.c (mywait): Change prototype to return an unsigned long.
19348 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19349 * server.h (thread_from_wait, old_thread_from_wait): Delete
19351 (prepare_resume_reply): Change prototype to take a
19353 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19354 (last_status, last_ptid): New.
19355 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19356 pid instead of a signal.
19357 (attach_inferior): Remove "status" and "signal" parameters.
19359 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19361 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19362 (handle_v_requests, myresume): Remove "status" and "signal"
19363 parameters. Adjust.
19364 (handle_status): New.
19365 (main): Delete local `status'. Adjust.
19366 * remote-utils.c: Include target.h.
19367 (prepare_resume_reply): Change prototype to take a
19368 target_waitstatus. Adjust.
19370 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19372 * spu-low.c (spu_wait): Adjust.
19373 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19375 (win32_wait): Adjust.
19377 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19379 * target.h (struct thread_resume): Delete leave_stopped member.
19380 (struct target_ops): Add a `n' argument to the `resume' callback.
19381 * server.c (start_inferior): Adjust.
19382 (handle_v_cont, myresume): Adjust.
19383 * linux-low.c (check_removed_breakpoint): Adjust to resume
19384 interface change, and to removed leave_stopped field.
19385 (resume_ptr): Delete.
19386 (struct thread_resume_array): New.
19387 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19388 resume interface change.
19389 (linux_continue_one_thread, linux_queue_one_thread)
19390 (resume_status_pending_p): Check if the resume field is NULL
19391 instead of checking the leave_stopped member.
19392 (linux_resume): Adjust to the target resume interface change.
19393 * spu-low.c (spu_resume): Adjust to the target resume interface
19395 * win32-low.c (win32_detach, win32_resume): Ditto.
19397 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19399 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19401 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19403 (linux_continue_one_thread): Only preserve the stepping flag if
19404 there's a pending breakpoint.
19406 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19408 * server.c (main): After the inferior having exited, call
19409 remote_close before exiting gdbserver.
19411 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19413 Fix size of FPSCR in Power 7 processors.
19414 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19415 (PPC_FEATURE_HAS_DFP): New #define.
19416 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19419 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19421 * server.c (handle_query) Whitespace and formatting.
19423 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19425 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19426 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19427 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19428 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19429 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19430 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19431 Makefile.in, configure.ac: Fix whitespace throughout.
19432 * configure: Regenerate.
19434 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19436 * inferiors.c (find_inferior): Make it safe for the callback
19437 function to delete the currently iterated inferior.
19439 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19441 * Makefile.in (linuw_low_h): Move higher.
19442 (thread-db.o): Depend on $(linux_low_h).
19444 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19446 Rename "process" to "lwp" throughout.
19448 * linux-low.c (all_processes): Rename to...
19449 (all_lwps): ... this.
19450 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19451 (add_process): Rename to ...
19452 (add_lwp): ... this. Adjust.
19453 (linux_create_inferior): Adjust.
19454 (linux_attach_lwp): Adjust.
19455 (linux_attach): Adjust.
19456 (linux_kill_one_process): Rename to ...
19457 (linux_kill_one_lwp): ... this. Adjust.
19458 (linux_kill): Adjust.
19459 (linux_detach_one_process): Rename to ...
19460 (linux_detach_one_lwp): ... this. Adjust.
19461 (linux_detach): Adjust.
19462 (check_removed_breakpoint): Adjust.
19463 (status_pending_p): Adjust.
19464 (linux_wait_for_process): Rename to ...
19465 (linux_wait_for_lwp): ... this. Adjust.
19466 (linux_wait_for_event): Adjust.
19467 (send_sigstop): Adjust.
19468 (wait_for_sigstop): Adjust.
19469 (stop_all_processes): Rename to ...
19470 (stop_all_lwps): ... this.
19471 (linux_resume_one_process): Rename to ...
19472 (linux_resume_one_lwp): ... this. Adjust.
19473 (linux_set_resume_request, linux_continue_one_thread)
19474 (linux_queue_one_thread, resume_status_pending_p)
19475 (usr_store_inferior_registers, regsets_store_inferior_registers)
19476 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19478 * linux-low.h (get_process): Rename to ...
19479 (get_lwp): ... this. Adjust.
19480 (get_thread_process): Rename to ...
19481 (get_thread_lwp): ... this. Adjust.
19482 (get_process_thread): Rename to ...
19483 (get_lwp_thread): ... this. Adjust.
19484 (struct process_info): Rename to ...
19485 (struct lwp_info): ... this.
19486 (all_processes): Rename to ...
19487 (all_lwps): ... this.
19488 * proc-service.c (ps_lgetregs): Adjust.
19489 * thread-db.c (thread_db_create_event, find_one_thread)
19490 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19492 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19494 * server.c (handle_query): Handle "qAttached".
19496 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19498 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19499 GPLv3, update license URL.
19501 2009-03-01 Doug Evans <dje@google.com>
19503 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19504 (server_h): Add gdb_signals.h.
19505 (signals.o): Update.
19506 * server.h (target_signal_from_host,target_signal_to_host_p)
19507 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19509 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19511 * remote-utils.c (getpkt): Also generate remote-debug
19512 information if noack_mode is set.
19514 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19516 * server.c (handle_query): Report qXfer:siginfo:read and
19517 qXfer:siginfo:write as supported and handle them.
19518 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19519 * linux-low.c (linux_xfer_siginfo): New.
19520 (linux_target_ops): Set it.
19522 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19524 * server.c (gdbserver_usage): Mention --remote-debug.
19525 (main): Accept '--remote-debug' switch.
19527 2009-01-18 Doug Evans <dje@google.com>
19529 * regcache.c (new_register_cache): No need to check result of xcalloc.
19530 * server.c (handle_search_memory): Back out calls to xmalloc,
19531 result is checked and error is returned to user upon failure.
19532 (handle_query): Ditto. Add more checks for result of malloc.
19533 (handle_v_cont): Check result of malloc, report error back to
19535 (handle_v_run): Ditto. Call freeargv.
19536 * server.h (freeargv): Declare.
19537 * utils.c (freeargv): New fn.
19539 2009-01-15 Doug Evans <dje@google.com>
19541 * gdbreplay.c (perror_with_name): Make arg const char *.
19542 * server.h (target_signal_to_name): Make return type const char *.
19543 * thread-db.c (thread_db_err_str): Make return type const char *.
19544 * utils.c (perror_with_name): Make arg const char *.
19546 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19548 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19549 when handling a EXIT_PROCESS_DEBUG_EVENT.
19551 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19553 * gdbreplay.c (gdbreplay_version): Update copyright year.
19554 * server.c (gdbserver_version): Likewise.
19556 2009-01-05 Doug Evans <dje@google.com>
19558 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19559 (handle_extended_wait): Improve comment.
19561 2008-12-13 Doug Evans <dje@google.com>
19563 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19564 * server.h (ATTR_MALLOC): New macro.
19565 (xmalloc,xcalloc,xstrdup): Declare.
19566 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19567 * inferiors.c: Ditto.
19568 * linux-low.c: Ditto.
19569 * mem-break.c: Ditto.
19570 * regcache.c: Ditto.
19571 * remote-utils.c: Ditto.
19574 * win32-low.c: Ditto.
19576 2008-12-12 Doug Evans <dje@google.com>
19578 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19579 in debugging printf.
19581 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19583 2008-12-09 Doug Evans <dje@google.com>
19585 * linux-low.h (struct process_info): Delete member tid, unused.
19586 * thread-db.c (find_one_thread): Update.
19587 (maybe_attach_thread): Update.
19589 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19591 * target.h (struct target_ops): Add qxfer_osdata member.
19592 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19594 (linux_qxfer_osdata): New functions.
19595 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19597 * server.c (handle_query): Handle "qXfer:osdata:read:".
19598 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19599 (buffer_xml_printf): New functions.
19600 * server.h (struct buffer): New.
19601 (buffer_grow_str, buffer_grow_str0): New macros.
19602 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19603 (buffer_xml_printf): Declare.
19605 2008-11-24 Doug Evans <dje@google.com>
19607 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19609 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19611 * server.c (handle_v_run): Always use the supplied argument list.
19613 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19615 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19616 (xtensa_regmap_table): Add entry for scompare1.
19618 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19620 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19621 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19622 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19623 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19624 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19625 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19626 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19627 XML target descriptions.
19628 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19629 when inferior is running on an ISA 2.05 or later processor. Add
19630 special case to return offset for full 64-bit slot of FPSCR when
19633 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19635 * Makefile.in (SFILES, clean): Added sparc64 files.
19636 (reg-sparc64.o, reg-sparc64.c): New.
19637 * configure.srv (sparc*-*-linux*): New configuration.
19638 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19639 syscall arguments for SPARC.
19640 (regsets_store_inferior_registers): Likewise.
19641 * linux-sparc-low.c: New file.
19643 2008-10-21 Doug Evans <dje@google.com>
19645 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19646 (READLINE_DIR,READLINE_DEP): Delete.
19647 (INTERNAL_CFLAGS): Update.
19648 (LINTFLAGS): Update.
19650 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19652 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19653 whole argv from the last run, not just argv[0].
19655 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19657 * regcache.c (new_register_cache): Return NULL if the register
19658 cache size isn't known yet.
19659 (free_register_cache): Avoid dereferencing a NULL regcache.
19661 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19663 * configure.srv: Merge MIPS and MIPS64.
19665 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19667 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19669 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19671 * Makefile.in: Add required vsx dependencies.
19673 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19674 Declare init_registers_powerpc_vsx32l.
19675 Declare init_registers_powerpc_vsx64l.
19676 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19677 (ppc_arch_setup): Check for VSX in hwcap.
19678 (ppc_fill_vsxregset): New function.
19679 (ppc_store_vsxregset): New function.
19680 Add new VSX entry in regset_info target_regsets.
19682 * configure.srv: Add new VSX dependencies.
19684 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19686 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19687 (remote_open): Set or clear transport_is_reliable.
19688 (putpkt_binary): Don't expect acks in noack mode.
19689 (getpkt): Don't send ack/nac in noack mode.
19690 * server.c (handle_general_set): Handle QStartNoAckMode.
19691 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19693 (main): Reset noack_mode on every connection.
19694 * server.h (noack_mode): Declare.
19696 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19698 * Makefile.in (GDBREPLAY_OBS): New variable.
19699 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19701 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19702 Daniel Jacobowitz <dan@codesourcery.com>
19704 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19705 (usr_store_inferior_registers): Likewise.
19706 (regsets_store_inferior_registers): Likewise.
19708 2008-07-31 Rolf Jansen <rj@surtec.com>
19709 Pedro Alves <pedro@codesourcery.com>
19711 * configure.ac: Check for memmem declaration.
19712 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19713 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19714 (disable_packet_qfThreadInfo): Unconditionally compile.
19715 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19716 * configure, config.in: Regenerate.
19718 2008-07-28 Doug Kwan <dougkwan@google.com>
19720 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19721 (linux_write_memory): Remove declaration of errno.
19723 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19725 * linux-low.c (handle_extended_wait): Do not use "status"
19726 variable uninitialized.
19728 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19730 * server.c (handle_v_attach): Inhibit reporting dll changes.
19732 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19734 * remote-utils.c (prepare_resume_reply): If requested, don't
19735 output "thread:TID" in the T stop reply.
19737 * server.c (disable_packet_vCont, disable_packet_Tthread)
19738 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19739 (handle_query): If requested, disable support for qC, qfThreadInfo
19741 (handle_v_requests): If requested, disable support for vCont.
19742 (gdbserver_show_disableable): New.
19743 (main): Handle --disable-packet and --disable-packet=LIST.
19745 * server.h (disable_packet_vCont, disable_packet_Tthread)
19746 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19748 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19750 * server.c (gdbserver_usage): Mention --version.
19752 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19754 * Makefile.in (gdbreplay.o): New rule.
19756 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19758 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19759 message, not gdbserver.
19761 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19762 Nathan Sidwell <nathan@codesourcery.com>
19763 Joseph Myers <joseph@codesourcery.com>
19765 * acinclude.m4: Include ../../config/acx.m4.
19766 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19767 * configure, config.in: Regenerate.
19768 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19769 * server.c (gdbserver_version): Print PKGVERSION.
19770 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19771 (main): Adjust gdbserver_usage calls.
19772 * gdbreplay.c (version, host_name): Add declarations.
19773 (gdbreplay_version, gdbreplay_usage): New.
19774 (main): Accept --version and --help options.
19776 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19778 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19779 (arm_breakpoint_at): Handle Thumb.
19780 (the_low_target): Add comment.
19782 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19784 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19786 2008-05-09 Doug Evans <dje@google.com>
19788 * server.h (decode_search_memory_packet): Declare.
19789 * remote-utils.c (decode_search_memory_packet): New fn.
19790 * server.c (handle_search_memory_1): New fn.
19791 (handle_search_memory): New fn.
19792 (handle_query): Process qSearch:memory packets.
19794 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19796 * regcache.c (registers_length): Remove.
19797 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19798 full register packet.
19799 * regcache.h (registers_length): Remove prototype.
19800 * server.h (PBUFSIZ): Define to 16384.
19802 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19804 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19805 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19806 powerpc-64l.o, and powerpc-altivec64l.o.
19807 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19808 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19809 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19810 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19811 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19814 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19815 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19816 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19817 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19818 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19819 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19820 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19821 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19822 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19823 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19826 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19827 (init_registers_powerpc_32l): ... this new prototype.
19828 (init_registers_powerpc_32): Remove, replace by ...
19829 (init_registers_powerpc_altivec32l): ... this new prototype.
19830 (init_registers_powerpc_e500): Remove, replace by ...
19831 (init_registers_powerpc_e500l): ... this new prototype.
19832 (init_registers_ppc64): Remove, replace by ...
19833 (init_registers_powerpc_64l): ... this new prototype.
19834 (init_registers_powerpc_64): Remove, replace by ...
19835 (init_registers_powerpc_altivec64l): ... this new prototype.
19836 (ppc_num_regs): Set to 73.
19837 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19838 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19839 (ppc_cannot_store_register): Handle orig_r3 and trap.
19840 (ppc_arch_setup): Update init_registers_... calls.
19841 (ppc_fill_gregset): Handle orig_r3 and trap.
19843 * inferiors.c (clear_inferiors): Reset current_inferior.
19845 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19847 * acinclude.m4: Add override.m4.
19848 * configure: Regenerate.
19850 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19852 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19853 initial call to init_register_ppc64.
19855 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19857 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19858 single powerpc*-*-linux* case.
19859 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19861 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19863 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19864 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19866 * linux-ppc-low.c: Include <elf.h>.
19867 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19868 (ppc_hwcap): New global variable.
19869 (ppc_regmap): Remove __SPE__ #ifdef sections.
19870 (ppc_regmap_e500): New global variable.
19871 (ppc_cannot_store_register): Update __SPE__ special case.
19872 (ppc_get_hwcap): New function.
19873 (ppc_arch_setup): Use it to determine whether inferior supports
19874 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19875 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19876 Do not access registers if target does not support AltiVec.
19877 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19878 Do not access registers if target does not support SPE.
19879 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19881 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19883 * linux-low.c (disabled_regsets, num_regsets): New.
19884 (use_regsets_p): Delete.
19885 (linux_wait_for_process): Clear disabled_regsets.
19886 (regsets_fetch_inferior_registers): Check and set it.
19887 (regsets_store_inferior_registers): Likewise.
19888 (linux_fetch_registers, linux_store_registers): Do not use
19890 (initialize_low): Allocate disabled_regsets.
19892 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19894 * Makefile.in (LIBOBJS): New.
19895 (OBS): Use LIBOBJS.
19896 (memmem.o): New rule.
19897 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19898 * configure: Regenerated.
19900 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19902 * server.c (handle_query): Never return "unsupported" for
19903 qXfer:features:read queries.
19905 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19907 * server.c (get_features_xml): Fix inverted condition.
19908 (handle_query): Always support qXfer:feature:read.
19910 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19912 * server.c (wrapper_argv): New.
19913 (start_inferior): Handle wrapper_argv. If set, expect an extra
19915 (gdbserver_usage): Document --wrapper.
19916 (main): Parse --wrapper.
19918 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19920 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19921 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19922 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19923 (ppc_set_pc): Likewise.
19924 (ppc_arch_setup): New function.
19925 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19926 of collect_register.
19927 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19929 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19931 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19932 instead of linux-ppc64-low.o.
19933 * linux-ppc64-low.c: Remove file.
19934 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19935 (linux-ppc64-low.o): Remove rule.
19937 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19938 (init_registers_powerpc_64): Likewise.
19939 (ppc_regmap): Conditionally define depending on __powerpc64__.
19940 (ppc_cannot_store_register): Do not special-case "fpscr" when
19941 compiled on __powerpc64__.
19942 (ppc_collect_ptrace_register): New function.
19943 (ppc_supply_ptrace_register): New function.
19944 (ppc_breakpoint): Change type to "unsigned int".
19945 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19946 (the_low_target): Conditionally provide initializers for the
19947 arch_setup member depending on __powerpc64__. Install
19948 collect_ptrace_register and supply_ptrace_register members.
19950 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19952 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19953 * server.c (gdbserver_xmltarget): Define.
19954 (get_features_xml): Use it to replace "target.xml" and arch_string.
19956 * configure.srv: Remove srv_xmltarget. Add XML files that were
19957 mentioned there to srv_xmlfiles instead. Remove conditional tests
19958 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19959 srv_xmlfiles and srv_regobj to include all possible choices.
19960 * configure.ac (srv_xmltarget): Remove.
19961 (srv_xmlfiles): Do not add "target.xml".
19962 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19963 checks for supplementary target information.
19964 * configure: Regenerate.
19965 * Makefile.in (XML_TARGET): Remove.
19966 (target.xml): Remove rule.
19967 (clean): Do not clean up target.xml.
19968 (.PRECIOUS): Do not mention target.xml.
19970 * target.h (struct target_ops): Remove arch_string member.
19971 * linux-low.c (linux_arch_string): Remove.
19972 (linux_target_ops): Remove arch_string initializer.
19973 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19974 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19975 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19976 * spu-low.c (spu_arch_string): Remove.
19977 (spu_target_ops): Remove arch_string initializer.
19978 * win32-low.c (win32_arch_string): Remove.
19979 (win32_target_ops): Remove arch_string initializer.
19980 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19981 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19982 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19984 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19986 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19987 by collect_ptrace_register and supply_ptrace_register hooks.
19988 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19989 instead of checking for the_low_target.left_pad_xfer.
19990 (usr_store_inferior_registers): Use collect_ptrace_register callback
19991 instead of checking for the_low_target.left_pad_xfer.
19993 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19994 (s390_supply_ptrace_register): Likewise.
19995 (s390_fill_gregset): Call s390_collect_ptrace_register.
19996 (the_low_target): Update.
19998 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19999 (ppc_supply_ptrace_register): Likewise.
20000 (the_low_target): Update.
20002 * linux-i386-low.c (the_low_target): Update.
20003 * linux-x86-64-low.c (the_low_target): Update.
20005 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20007 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20008 reg-s390.o and reg-s390x.o.
20010 * linux-low.c (new_inferior): New global variable.
20011 (linux_create_inferior, linux_attach): Set it.
20012 (linux_wait_for_process): Call the_low_target.arch_setup after the
20013 target has stopped for the first time.
20014 (initialize_low): Do not call the_low_target.arch_setup.
20016 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20017 (s390_set_pc): Likewise.
20018 (s390_arch_setup): New function.
20019 (the_low_target): Use s390_arch_setup as arch_setup routine.
20021 * regcache.c (realloc_register_cache): New function.
20022 (set_register_cache): Call it for each existing regcache.
20024 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20026 * server.h (init_registers): Remove prototype.
20028 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20029 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20030 instead of init_registers ().
20031 * linux-arm-low.c (init_registers_arm): Add prototype.
20032 (init_registers_arm_with_iwmmxt): Likewise.
20033 (the_low_target): Add initializer for arch_setup field.
20034 * linux-cris-low.c (init_registers_cris): Add prototype.
20035 (the_low_target): Add initializer for arch_setup field.
20036 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20037 (the_low_target): Add initializer for arch_setup field.
20038 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20039 (the_low_target): Add initializer for arch_setup field.
20040 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20041 (the_low_target): Add initializer for arch_setup field.
20042 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20043 (the_low_target): Add initializer for arch_setup field.
20044 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20045 (the_low_target): Add initializer for arch_setup field.
20046 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20047 (init_registers_mips64_linux): Likewise.
20048 (the_low_target): Add initializer for arch_setup field.
20049 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20050 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20051 (the_low_target): Add initializer for arch_setup field.
20052 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20053 (init_registers_powerpc_64): Likewise.
20054 (the_low_target): Add initializer for arch_setup field.
20055 * linux-s390-low.c (init_registers_s390): Add prototype.
20056 (init_registers_s390x): Likewise.
20057 (the_low_target): Add initializer for arch_setup field.
20058 * linux-sh-low.c (init_registers_sh): Add prototype.
20059 (the_low_target): Add initializer for arch_setup field.
20060 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20061 (the_low_target): Add initializer for arch_setup field.
20062 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20063 (the_low_target): Add initializer for arch_setup field.
20065 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20066 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20067 instead of init_registers ().
20068 * win32-arm-low.c (init_registers_arm): Add prototype.
20069 (the_low_target): Add initializer for arch_setup field.
20070 * win32-i386-low.c (init_registers_i386): Add prototype.
20071 (the_low_target): Add initializer for arch_setup field.
20073 * spu-low.c (init_registers_spu): Add prototype.
20074 (initialize_low): Call initialie_registers_spu () instead of
20075 initialize_registers ().
20077 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20079 * server.c (handle_v_requests): When handling the vRun and vAttach
20080 packets, if already debugging a process, don't kill it. Return an
20083 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20085 * server.c (handle_query): Correct length check.
20087 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20089 * win32-low.c (do_initial_child_stuff): Add process handle
20090 parameter. Set current_process_handle and current_process_id from the
20091 parameters. Clear globals.
20092 (win32_create_inferior): Don't set current_process_handle and
20093 current_process_id here. Instead pass them on the call to
20094 do_initial_child_stuff.
20095 (win32_attach): Likewise.
20096 (win32_clear_inferiors): New.
20097 (win32_kill): Don't close the current process handle or the
20098 current thread handle here. Instead call win32_clear_inferiors.
20099 (win32_detach): Don't open a new handle to the process. Call
20100 win32_clear_inferiors.
20101 (win32_join): Don't rely on current_process_handle; open a new
20102 handle using the process id.
20103 (win32_wait): Call win32_clear_inferiors when the inferior process
20106 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20108 * server.c (monitor_show_help): Add "exit".
20110 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20112 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20113 (clean): Add reg-xtensa.c.
20114 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20115 * configure.srv (xtensa*-*-linux*) New target.
20116 * linux-xtensa-low.c: New.
20117 * xtensa-xtregs.c: New.
20119 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20121 * hostio.c: Don't include errno.h.
20122 (errno_to_fileio_errno): Move to hostio-errno.
20123 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20124 error number outputting to the target->hostio_last_error callback.
20125 (hostio_packet_error): Use FILEIO_EINVAL directly.
20126 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20127 calls to hostio_error.
20128 * hostio-errno.c: New.
20129 * server.h (hostio_last_error_from_errno): Declare.
20130 * target.h (target_ops): Add hostio_last_error member.
20131 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20132 as hostio_last_error handler.
20133 * spu-low.c (spu_target_ops): Likewise.
20134 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20135 (wince_hostio_last_error): New functions.
20136 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20137 as hostio_last_error handler.
20138 (win32_target_ops) [!_WIN32_WCE]: Register
20139 hostio_last_error_from_errno as hostio_last_error handler.
20140 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20141 (hostio-errno.o): New rule.
20142 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20143 * configure.srv (srv_hostio_err_objs): New variable. Default to
20145 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20146 * configure: Regenerate.
20148 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20150 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20151 (linux_kill, linux_detach): Clean up the process list.
20152 * remote-utils.c (remote_open): Improve port number parsing.
20153 (putpkt_binary, input_interrupt): Only send interrupts if the target
20155 * server.c (extended_protocol): Make static.
20156 (attached): Define earlier.
20157 (exit_requested, response_needed, program_argv): New variables.
20158 (target_running): New.
20159 (start_inferior): Clear attached here.
20160 (attach_inferior): Set attached here.
20161 (require_running): Define.
20162 (handle_query): Use require_running and target_running. Implement
20164 (handle_v_attach, handle_v_run): New.
20165 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20166 (gdbserver_usage): Update.
20167 (main): Redo argument parsing. Handle --debug and --multi. Handle
20168 --attach along with other options or after the port. Save
20169 program_argv. Support no initial program. Resynchronize
20170 communication with GDB after an error. Handle "monitor exit".
20171 Use require_running and target_running. Always allow the extended
20172 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20173 restart in extended mode.
20174 * README: Refer to the GDB manual. Update --attach usage.
20176 2007-12-20 Andreas Schwab <schwab@suse.de>
20178 * linux-low.c (STACK_SIZE): Define.
20179 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20180 (linux_test_for_tracefork): Likewise.
20182 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20184 * linux-low.c (linux_wait_for_event): Update messages. Do not
20185 reinsert auto-delete breakpoints.
20186 * mem-break.c (struct breakpoint): Change return type of handler to
20188 (set_breakpoint_at): Update handler type.
20189 (reinsert_breakpoint_handler): Return 1 instead of calling
20191 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20193 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20194 * mem-break.h (set_breakpoint_at): Update handler type.
20195 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20196 * win32-low.c (auto_delete_breakpoint): New.
20197 (get_child_debug_event): Use it.
20199 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20201 * configure.ac: Check for pread and pwrite.
20202 * hostio.c (handle_pread): Fall back to lseek and read.
20203 (handle_pwrite): Fall back to lseek and write.
20204 * config.in, configure: Regenerated.
20206 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20208 * server.c (myresume): Add own_buf argument.
20209 (main): Update calls.
20211 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20213 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20214 * remote-utils.c (remote_open): Do not call disable_async_io.
20215 (block_async_io): Delete.
20216 (unblock_async_io): Make static.
20217 (initialize_async_io): New.
20218 * server.c (handle_v_cont): Handle async I/O here.
20219 (myresume): Likewise. Move other common resume tasks here...
20220 (main): ... from here. Call initialize_async_io. Disable async
20221 I/O before the main loop.
20222 * server.h (initialize_async_io): Declare.
20223 (block_async_io, unblock_async_io): Delete prototypes.
20224 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20226 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20228 * remote-utils.c (readchar): Allow binary data in received messages.
20230 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20232 * win32-low.c (attaching): New global.
20233 (win32_create_inferior): Clear the `attaching' global.
20234 (win32_attach): Set the `attaching' global.
20235 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20236 attaching. Only set a breakpoint at the entry point if not
20239 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20241 * server.c (main): Don't report dll events on the initial
20242 connection on attaches.
20244 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20246 * server.c (main): Relax numerical bases supported for the pid of
20247 the --attach command line argument.
20249 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20251 * win32-low.c (win32_attach): Call OpenProcess before
20252 DebugActiveProcess, not after. Add last error output to error
20255 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20257 * win32-low.c (win32_get_thread_context)
20258 (win32_set_thread_context): New functions.
20259 (thread_rec): Use win32_get_thread_context.
20260 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20261 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20264 2007-12-03 Leo Zayas
20265 Pedro Alves <pedro_alves@portugalmail.pt>
20267 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20269 (child_add_thread): Minor cleanup.
20270 (child_continue): Resume artificially suspended threads before
20271 calling ContinueDebugEvent.
20272 (suspend_one_thread): New.
20273 (fake_breakpoint_event): New.
20274 (get_child_debug_event): Change return type to int. Check here if
20275 gdb sent an interrupt request. If a soft interrupt was requested,
20276 fake a breakpoint event. Return 0 if there is no event to handle,
20278 (win32_wait): Don't check here if gdb sent an interrupt request.
20279 Ensure there is a valid event to handle.
20280 (win32_request_interrupt): Add soft interruption method as last
20283 2007-12-03 Leo Zayas
20284 Pedro Alves <pedro_alves@portugalmail.pt>
20286 * win32-low.h (win32_thread_info): Add descriptions to the
20287 structure members. Replace `suspend_count' counter by a
20289 * win32-low.c (thread_rec): Update condition of when to get the
20290 context from the inferior. Rely on ContextFlags being set if it
20291 has already been retrieved. Only suspend the inferior thread if
20292 we haven't already. Warn if that fails.
20293 (continue_one_thread): s/suspend_count/suspended/. Only call
20294 ResumeThread once. Warn if that fails.
20296 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20298 * win32-low.c (win32_wait): Don't read from the inferior when it
20299 has already exited.
20301 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20303 * Makefile.in (win32_low_h): New variable.
20304 (win32-low.o): Add dependency on $(win32_low_h).
20305 (win32-arm-low.o, win32-i386-low.o): New rules.
20307 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20309 * hostio.c: Correct copyright year.
20311 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20313 * Makefile.in (OBS): Add hostio.o.
20314 (hostio.o): New rule.
20315 * server.h (handle_vFile): Declare.
20316 * hostio.c: New file.
20317 * server.c (handle_v_requests): Take packet_len and new_packet_len
20318 for binary packets. Call handle_vFile.
20319 (main): Update call to handle_v_requests.
20321 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20323 * linux-low.c: Include <sched.h>.
20325 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20327 * linux-low.c (linux_tracefork_grandchild): New.
20328 (linux_tracefork_child): Use clone.
20329 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20331 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20333 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20335 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20337 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20339 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20341 * inferiors.c (change_inferior_id): Delete.
20342 (add_pid_to_list, pull_pid_from_list): New.
20343 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20344 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20345 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20346 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20347 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20348 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20349 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20350 (using_threads): Always set to 1.
20351 (handle_extended_wait): New.
20352 (add_process): Do not set TID.
20353 (linux_create_inferior): Set must_set_ptrace_flags.
20354 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20355 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20356 (linux_thread_alive): Rename TID argument to LWPID.
20357 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20358 (linux_wait_for_event): Do not use TID or check using_threads. Update
20359 call to dead_thread_notify. Call handle_extended_wait.
20360 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20361 (send_sigstop): Delete sigstop_sent.
20362 (wait_for_sigstop): Avoid TID.
20363 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20364 (linux_test_for_tracefork): New.
20365 (linux_lookup_signals): Use thread_db_active and
20366 linux_supports_tracefork_flag.
20367 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20368 * linux-low.h (get_process_thread): Avoid TID.
20369 (struct process_ifo): Move thread_known and tid to the end. Remove
20371 (linux_attach_lwp, thread_db_init): Update prototypes.
20372 * server.h (change_inferior_id): Delete prototype.
20373 (add_pid_to_list, pull_pid_from_list): New prototypes.
20374 * thread-db.c (thread_db_use_events): New.
20375 (find_first_thread): Rename to...
20376 (find_one_thread): ...this. Update callers and messages. Do not
20377 call fatal. Check thread_db_use_events. Do not call
20378 change_inferior_id or new_thread_notify.
20379 (maybe_attach_thread): Update. Do not call new_thread_notify.
20380 (thread_db_init): Set thread_db_use_events. Check use_events.
20381 * utils.c (fatal, warning): Correct message prefix.
20383 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20385 * Makefile.in (clean): Remove new files.
20386 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20387 (powerpc-64.o, powerpc-64.c): New rules.
20388 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20389 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20391 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20393 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20394 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20395 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20396 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20397 (target_regsets): Add AltiVec and SPE register sets.
20398 * configure.ac: Check for AltiVec and SPE.
20399 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20400 (ppc_fill_vrregset, ppc_store_vrregset): New.
20401 (target_regsets): Add AltiVec register set.
20402 * configure: Regenerated.
20404 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20406 * linux-low.c (O_LARGEFILE): Define.
20407 (linux_read_memory): Use /proc/PID/mem.
20408 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20409 * configure, config.in: Regenerated.
20411 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20413 * linux-low.c (linux_wait_for_event): Do not pass signals while
20416 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20418 * win32-low.c (create_process): New.
20419 (win32_create_inferior): Use create_process instead of
20420 CreateProcess. If create_process failed retry appending an ".exe"
20421 suffix. Store the GetLastError result immediatelly after
20422 create_process calls and use it on the call to error.
20424 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20426 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20428 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20430 * configure.ac: Switch license to GPLv3.
20432 2007-08-01 Michael Snyder <msnyder@access-company.com>
20434 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20436 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20438 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20440 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20441 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20442 CloseToolhelp32Snapshot.
20443 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20444 CloseToolhelp32Snapshot.
20446 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20448 * server.c (main): Check for inferior exit before main loop.
20450 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20452 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20453 instead of on tmp_desc.
20455 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20456 Daniel Jacobowitz <dan@codesourcery.com>
20458 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20459 (add_thread): Minor cleanups.
20460 (clear_inferiors): Move lower in the file. Clear the DLL
20462 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20463 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20464 (xml_escape_text): New.
20465 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20467 (handle_v_cont): Report errors.
20468 (gdbserver_version): Update.
20469 (main): Correct size of own_buf. Do not report initial DLL events.
20470 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20471 (unloaded_dll, xml_escape_text): New.
20472 * win32-low.c (enum target_waitkind): Update comments.
20473 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20474 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20475 (win32_EnumProcessModules, win32_GetModuleInformation)
20476 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20477 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20478 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20479 (win32_Module32First, win32_Module32Next, load_toolhelp)
20480 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20481 (get_child_debug_event): Handle DLL events.
20482 (win32_wait): Likewise.
20484 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20486 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20487 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20489 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20491 * win32-low.c (handle_output_debug_string): Ignore event if not
20494 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20496 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20498 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20500 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20502 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20504 * inferiors.c (change_inferior_id): Add comment.
20505 * linux-low.c (check_removed_breakpoint): Add an early
20506 prototype. Improve debug output.
20507 (linux_attach): Doc update.
20508 (linux_detach_one_process, linux_detach): Clean up before releasing
20510 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20511 * linux-low.h (struct process_info): Doc improvement.
20512 * mem-break.c (delete_all_breakpoints): New.
20513 * mem-break.h (delete_all_breakpoints): New prototype.
20514 * thread-db.c (find_first_thread): New.
20515 (thread_db_create_event): Call it instead of
20516 thread_db_find_new_threads. Clean up unused variables.
20517 (maybe_attach_thread): Remove first thread handling.
20518 (thread_db_find_new_threads): Use find_first_thread.
20519 (thread_db_get_tls_address): Likewise.
20521 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20523 * thread-db.c (thread_db_find_new_threads): Add prototype.
20524 (thread_db_create_event): Check for the main thread before adding
20526 (maybe_attach_thread): Only enable event reporting if TID == 0.
20527 (thread_db_get_tls_address): Check for new threads.
20529 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20531 * linux-low.c (linux_create_inferior): Try execv before execvp.
20532 * spu-low.c (spu_create_inferior): Likewise.
20534 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20536 * linux-low.c (linux_create_inferior): Change execv to execvp.
20537 * spu-low.c (spu_create_inferior): Likewies.
20539 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20541 * Makefile.in (clean): Clean new files instead of deleted ones.
20542 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20543 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20545 * configure.srv: Specify XML files and new regformats for MIPS and
20547 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20548 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20549 an entry for the restart register.
20550 (mips_cannot_fetch_register, mips_cannot_store_register)
20551 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20552 register names to match the XML descriptions.
20553 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20554 restart register instead of $0.
20556 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20557 Markus Deuling <deuling@de.ibm.com>
20559 * remote-utils.c (decode_xfer_write): New function.
20560 * server.h (decode_xfer_write): Add prototype.
20561 * server.c (handle_query): Add PACKET_LEN argument. Support
20562 qXfer:spu:read and qXfer:spu:write packets.
20563 (main): Pass packet_len to handle_query.
20564 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20565 * target.h (target_ops): Add qxfer_spu.
20567 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20569 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20570 accessing non-seekable spufs files.
20572 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20574 * server.c (handle_query): Add reply for qC packet.
20576 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20577 Leo Zayas <lerele@champenstudios@com>
20579 * server.h (check_remote_input_interrupt_request): New function.
20580 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20581 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20582 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20583 (check_remote_input_interrupt_request): New function.
20584 * server.h (check_remote_input_interrupt_request): Declare.
20585 * win32-low.c (winapi_DebugBreakProcess,
20586 winapi_GenerateConsoleCtrlEvent): New typedefs.
20587 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20589 (win32_wait): Check for remote interrupt request
20590 with check_remote_input_interrupt_request.
20591 (win32_request_interrupt): New function.
20592 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20594 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20596 * win32-low.c (debug_registers_changed,
20597 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20598 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20599 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20600 (thread_rec): Get context using the low target.
20601 (child_add_thread): Call thread_added on the low target,
20602 which does the same thing.
20604 (do_initial_child_stuff): Remove debug registers references.
20605 Set context using the low target. Resume threads after
20606 setting the contexts.
20607 (child_continue): Remove dead variable. Remove debug
20608 registers references.
20609 (child_fetch_inferior_registers): Go through the low target.
20610 (do_child_store_inferior_registers): Remove.
20611 (child_store_inferior_registers): Go through the low target.
20612 (win32_resume): Remove debug registers references.
20613 Set context using the low target.
20614 (handle_exception): Change return type to void. Don't record
20615 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20616 first chance exception.
20617 (get_child_debug_event): Change return type to void. Remove
20618 goto loop. Always return after waiting for debug event.
20619 (win32_wait): Convert to switch statement. Handle spurious
20622 * win32-i386-low.c (debug_registers_changed,
20623 debug_registers_used): New.
20624 (initial_stuff): Rename to ...
20625 (i386_initial_stuff): ... this. Clear debug registers
20627 (store_debug_registers): Delete.
20628 (i386_get_thread_context): New.
20629 (load_debug_registers): Delete.
20630 (i386_set_thread_context): New.
20631 (i386_thread_added): New.
20632 (single_step): Rename to ...
20633 (i386_single_step): ... this.
20634 (do_fetch_inferior_registers): Rename to ...
20635 (i386_fetch_inferior_register): ... this.
20636 (i386_store_inferior_register): New.
20637 (the_low_target): Adapt to new interface.
20639 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20640 (arm_get_thread_context): New.
20641 (arm_set_thread_context): New.
20643 (do_fetch_inferior_registers): Rename to ...
20644 (arm_fetch_inferior_register): ... this.
20645 (arm_store_inferior_register): New.
20646 (arm_wince_breakpoint): Reimplement as unsigned long.
20647 (arm_wince_breakpoint_len): Define.
20648 (the_low_target): Adapt to new interface.
20650 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20651 load_debug_registers. Add get_thread_context, set_thread_context,
20652 thread_added and store_inferior_register. Rename
20653 fetch_inferior_registers to fetch_inferior_register.
20654 (regptr): Remove declaration.
20656 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20658 * linux-low.c (linux_detach): Change return type to int. Return 0.
20659 * spu-low.c (spu_detach): Likewise.
20661 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20663 * target.h (target_ops): Change return type of detach to int.
20665 (join_inferior): New.
20666 * server.c (main): Don't skip detach support on mingw32.
20667 If the inferior doesn't support detaching return error.
20668 Call join_inferior instead of using waitpid.
20669 * linux-low.c (linux_join): New.
20670 (linux_target_op): Add linux_join.
20671 * spu-low.c (spu_join): New.
20672 (spu_target_ops): Add spu_join.
20673 * win32-low.c (win32_detach): Adapt to new interface.
20674 Reopen current_process_handle before detaching. Issue a child
20675 resume before detaching.
20677 (win32_target_op): Add win32_join.
20679 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20681 * win32-low.c (win32-attach): Fix return value.
20682 * target.h (target_ops): Describe ATTACH return values.
20684 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20686 * win32-low.c (GETPROCADDRESS): Define.
20687 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20688 (winapi_DebugSetProcessKillOnExit): Likewise.
20689 (win32_create_inferior): Force usage of ansi CreateProcessA.
20690 (win32_attach): Use GETPROCADDRESS.
20691 (win32_detach): Likewise.
20693 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20695 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20697 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20699 * win32-low.c: Commit leftover changes from 2007-03-29.
20701 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20703 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20704 fields short instead of int. Add explicit padding.
20705 (i387_cache_to_fsave): Remove unnecessary casts.
20706 (i387_fsave_to_cache): Doc fix.
20707 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20709 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20711 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20712 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20714 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20716 * configure.srv (arm*-*-mingw32ce*): Move near the other
20719 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20721 * configure.ac: Add errno checking.
20722 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20723 sys/file.h and malloc.h.
20724 (AC_CHECK_DECLS): Add perror.
20725 (srv_mingwce): Handle.
20726 * configure.srv (i[34567]86-*-cygwin*): Add
20727 win32-i386-low.o to srv_tgtobj.
20728 (i[34567]86-*-mingw*): Likewise.
20729 (arm*-*-mingw32ce*): Add case.
20730 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20731 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20732 [__MINGW32CE__] (strerror): New function.
20733 [__MINGW32CE__] (errno): Define to GetLastError.
20734 [__MINGW32CE__] (COUNTOF): New macro.
20735 (remote_open): Remove extra close call.
20736 * mem-break.c (delete_breakpoint_at): New function.
20737 * mem-break.h (delete_breakpoint_at): Declare.
20738 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20739 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20740 [USE_WIN32API] (read, write): Add char* casts.
20741 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20742 * server.h: Include wincecompat.h on Windows CE.
20743 [HAVE_ERRNO_H]: Check.
20744 (perror): Declare if not declared.
20745 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20746 (perror_with_name): Remove errno declaration.
20747 * wincecompat.h: New.
20748 * wincecompat.c: New.
20749 * win32-low.h: New.
20750 * win32-arm-low.c: New.
20751 * win32-i386-low.c: New.
20752 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20753 (OUTMSG2): Make it safe.
20755 (COUNTOF): New macro.
20756 (NUM_REGS): Get it from the low target.
20757 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20758 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20759 (thread_rec): Let low target handle debug registers.
20760 (child_add_thread): Likewise.
20761 (child_init_thread_list): Likewise.
20762 (continue_one_thread): Likewise.
20764 (do_child_fetch_inferior_registers): Move to ...
20765 * win32-i386-low.c: ... here, and rename to ...
20766 (do_fetch_inferior_registers): ... this.
20767 * win32-low.c (child_fetch_inferior_registers):
20768 Go through the low target.
20769 (do_child_store_inferior_registers): Use regptr.
20770 (strwinerror): New function.
20771 (win32_create_inferior): Handle Windows CE.
20772 Use strwinerror instead of strerror on Windows error
20773 codes. Add program to the error output.
20774 Don't close the main thread handle on Windows CE.
20775 (win32_attach): Use coredll.dll on Windows CE.
20776 (win32_kill): Close current process and current
20778 (win32_detach): Use coredll.dll on Windows CE.
20779 (win32_resume): Let low target handle debug registers, and
20781 (handle_exception): Add/Remove initial breakpoint. Avoid
20782 non-existant WSTOPSIG on Windows CE.
20783 (win32_read_inferior_memory): Cast to remove warning.
20784 (win32_arch_string): Go through the low target.
20785 (initialize_low): Call set_breakpoint_data with the low
20786 target's breakpoint.
20787 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20788 FOP_REGNUM, mappings): Move to ...
20789 * win32-i386-low.c: ... here.
20790 * win32-low.c (win32_thread_info): Move to ...
20791 * win32-low.h: ... here.
20792 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20793 win32-arm-low.c and wincecompat.c.
20794 (all:): Add $EXEEXT.
20795 (install-only:): Likewise.
20796 (gdbserver:): Likewise.
20797 (gdbreplay:): Likewise.
20798 * config.in: Regenerate.
20799 * configure: Regenerate.
20801 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20803 * win32-low.c: Rename typedef thread_info to
20804 win32_thread_info throughout.
20806 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20808 * win32-i386-low.c: Rename to ...
20809 * win32-low.c: ... this.
20810 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20811 * Makefile.in: Likewise.
20813 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20815 * remote-utils.c (monitor_output): Constify msg parameter.
20816 * server.h (monitor_output): Likewise.
20817 * win32-i386-low.c (handle_output_debug_string): New.
20818 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20819 handle_output_debug_string.
20820 (get_child_debug_event): Likewise.
20822 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20824 * server.c (main): Correct strtoul check.
20826 2007-03-27 Jon Ringle <jon@ringle.org>
20828 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20830 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20832 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20834 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20836 * terminal.h: Check HAVE_SGTTY_H.
20838 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20840 * remote-utils.c (remote_open): Print out the assigned port number.
20842 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20844 * remote-utils.c (monitor_output): New function.
20845 * server.c (debug_threads): Define here.
20846 (monitor_show_help): New function.
20847 (handle_query): Handle qRcmd.
20848 (main): Do not handle 'd' packet.
20849 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20850 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20853 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20855 * Makefile.in (EXEEXT): New.
20856 (clean): Use $(EXEEXT).
20858 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20860 * target.h (target_ops): Rename send_signal to request_interrupt,
20861 and remove enum target_signal parameter.
20862 * linux-low.c (linux_request_interrupt): Rename from
20863 linux_send_signal, and always send SIGINT.
20864 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20865 and always send SIGINT.
20866 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20868 (input_interrupt): Likewise.
20870 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20872 * server.c (get_features_xml): Check if target implemented
20874 * win32-i386-low.c (win32_arch_string): New.
20875 (win32_target_ops): Add win32_arch_string as arch_string member.
20877 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20879 * spu-low.c (spu_arch_string): New.
20880 (spu_target_ops): Add spu_arch_string.
20882 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20884 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20885 * configure.ac: Do not check for terminal.h.
20886 * configure, config.in: Regenerated.
20888 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20890 * Makefile.in (OBS): Add $(XML_BUILTIN).
20891 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20893 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20894 (arm-with-iwmmxt.c): New.
20895 * config.in, configure: Regenerate.
20896 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20897 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20898 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20899 (arm*-*-linux*): Add iWMMXt and regset support.
20900 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20901 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20902 (arm_store_wmmxregset, target_regsets): New.
20903 * server.c (get_features_xml): Take annex argument. Check builtin
20905 (handle_query): Handle multiple annexes.
20907 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20909 * remote-utils.c [USE_WIN32API] (read, write): Define.
20910 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20913 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20915 * linux-i386-low.c (the_low_target): Set arch_string.
20916 * linux-x86-64-low.c (the_low_target): Likewise.
20917 * linux-low.c (linux_arch_string): New.
20918 (linux_target_ops): Add it.
20919 * linux-low.h (struct linux_target_ops): Add arch_string.
20920 * server.c (write_qxfer_response): Use const void * for DATA.
20921 (get_features_xml): New.
20922 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20923 * target.h (struct target_ops): Add arch_string method.
20925 2007-01-03 Denis Pilat <denis.pilat@st.com>
20926 Daniel Jacobowitz <dan@codesourcery.com>
20928 * linux-low.c (linux_kill): Handle being called with no threads.
20929 * win32-i386-low.c (win32_kill): Likewise.
20930 (get_child_debug_event): Clear current_process_handle.
20932 2006-12-30 Denis PILAT <denis.pilat@st.com>
20933 Daniel Jacobowitz <dan@codesourcery.com>
20935 * remote-utils.c (remote_open): Check the type of specified
20936 serial port devices before opening them.
20937 * server.c (main): Kill the inferior if an error occurs during
20938 the first remote_open.
20940 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20942 * README: Update supported targets.
20944 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20946 * Makefile.in (clean): Remove reg-mips64.c.
20947 (reg-mips64.c, reg-mips64.o): New rules.
20948 * configure.srv: Handle mips64. Include regset support for mips.
20949 * linux-mips-low.c (union mips_register): New.
20950 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20951 (mips_breakpoint, mips_breakpoint_at): Use int.
20952 (mips_collect_register, mips_supply_register)
20953 (mips_collect_register_32bit, mips_supply_register_32bit)
20954 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20955 (mips_store_fpregset, target_regsets): New.
20956 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20958 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20960 * configure.srv: Add target "spu*-*-*".
20961 * Makefile.in (clean): Remove reg-spu.c.
20962 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20963 * spu-low.c: New file.
20965 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20967 * configure.ac: Correct td_thr_tls_get_addr test.
20968 * configure: Regenerated.
20970 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20972 * linux-low.c (linux_wait_for_event): Reformat. Use the
20973 pass_signals array.
20974 * remote-utils.c (decode_address_to_semicolon): New.
20975 * server.c (pass_signals, handle_general_set): New.
20976 (handle_query): Mention QPassSignals for qSupported.
20977 (main): Call handle_general_set.
20978 * server.h (pass_signals, decode_address_to_semicolon): New.
20980 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20982 * server.c (handle_query): Correct error handling for read_auxv.
20984 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20986 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20987 and srv_linux_thread_db to yes.
20988 * linux-s390-low.c (s390_fill_gregset): New function.
20989 (target_regsets): Define data structure.
20991 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20993 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20994 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20995 * config.in, configure: Regenerated.
20996 * inferiors.c (gdb_id_to_thread): New function.
20997 (gdb_id_to_thread_id): Use it.
20998 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20999 * linux-low.h (struct process_info): Add th member.
21000 (thread_db_get_tls_address): New prototype.
21001 * remote-utils.c (decode_address): Make non-static.
21002 * server.c (handle_query): Handle qGetTLSAddr.
21003 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21004 * target.h (struct target_ops): Add get_tls_address.
21005 * thread-db.c (maybe_attach_thread): Save the thread handle.
21006 (thread_db_get_tls_address): New.
21008 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21010 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21011 (linux_resume_one_process): Take a siginfo_t *. Update all
21012 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21013 (struct pending_signals): Add a siginfo_t.
21014 (linux_wait_for_process): Always set last_status.
21015 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21016 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21017 * linux-low.h (struct process_info): Add last_status.
21019 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21021 * remote-utils.c (try_rle): New function.
21022 (putpkt_binary): Use it.
21024 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21026 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21027 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21028 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21029 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21030 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21033 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21035 * server.c (terminal_fd): New variable.
21036 (old_foreground_pgrp): Likewise.
21037 (restore_old_foreground_pgrp): New function.
21038 (start_inferior): Record the terminal file descriptor in terminal_fd
21039 and its original foreground group in old_foreground_pgrp. Register
21040 restore_old_foreground_pgrp with atexit().
21042 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21044 * server.c (handle_query): Correct qPart to qXfer.
21046 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21048 * configure.ac: Check for more headers which are missing on
21049 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21050 * configure.srv: Add Cygwin and mingw32.
21051 * remote-utils.c: Don't include headers unconditionally which
21052 are missing on mingw32. Include <winsock.h> for mingw32.
21053 (remote_open): Adjust for mingw32 support. Flush
21054 standard error after writing to it.
21055 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21056 (unblock_async_io, enable_async_io, disable_async_io)
21057 (readchar, getpkt): Update for Winsock support.
21058 (prepare_resume_reply): Expect a protocol signal number.
21059 * server.c: Disable <sys/wait.h> on mingw32.
21060 (start_inferior): Adjust for mingw32 support. Flush
21061 standard error after writing to it.
21062 (attach_inferior): Likewise. Use protocol signal
21064 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21066 * win32-i386-low.c: New file.
21067 * Makefile.in (XM_CLIBS): Set.
21068 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21069 (win32-i386-low.o): New dependency rule.
21070 * linux-low.c (linux_wait): Use target signal numbers.
21071 * target.h (struct target_ops): Doc fix.
21072 * server.h (target_signal_to_name): New prototype.
21073 * gdbreplay.c: Don't include headers unconditionally which
21074 are missing on mingw32. Include <winsock.h> for mingw32.
21075 (remote_close, remote_open): Adjust for Winsock support.
21076 * configure, config.in: Regenerated.
21078 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21080 * server.c (decode_xfer_read, write_qxfer_response): New.
21081 (handle_query): Take a packet length argument. Handle
21082 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21083 the qSupported response.
21084 (main): Update call to handle_query.
21086 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21088 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21089 (putpkt_binary): Renamed from putpkt and adjusted for binary
21091 (putpkt): New wrapper for putpkt_binary.
21092 (readchar): Don't mask off the high bit.
21093 (decode_X_packet): New function.
21094 * server.c (main): Call putpkt_binary if a handler sets the packet
21095 length. Save the length of the incoming packet. Handle 'X'.
21096 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21098 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21100 * server.c (handle_query): Handle qSupported.
21102 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21104 * remote-utils.c (all_symbols_looked_up): New variable.
21105 (look_up_one_symbol): Check it.
21106 * server.h (look_up_one_symbol): New declaration.
21107 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21109 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21111 * Makefile.in (linux-arm-low.o): Update dependencies.
21112 * linux-arm-low.c: Include "gdb_proc_service.h".
21113 (PTRACE_GET_THREAD_AREA): Define.
21114 (ps_get_thread_area): New function.
21116 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21118 * configure.srv (m68k*-*-uclinux*): New target.
21119 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21120 (linux_resume_one_process): Remove extraneous cast.
21121 (linux_read_offsets): New.
21122 (linux_target_op): Add linux_read_offsets on mmuless systems.
21123 * server.c (handle_query): Add qOffsets logic.
21124 * target.h (struct target_ops): Add read_offsets.
21126 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21128 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21129 (PTRACE_GET_THREAD_AREA): Define.
21130 (ps_get_thread_area): New function.
21131 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21132 (linux-x86-64-low.o): Update.
21134 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21136 * configure.ac: Remove checks for prfpregset_t.
21137 * gdb_proc_service.h: New file.
21138 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21139 new "gdb_proc_service.h".
21140 * proc-service.c: Likewise.
21141 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21142 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21143 * Makefile.in (gdb_proc_service_h): Updated.
21144 * configure, config.in: Regenerated.
21146 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21148 * remote-utils.c (prepare_resume_reply): Move declaration
21149 of gdb_id_from_wait to the top of the block.
21151 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21153 * linux-low.c (regsets_store_inferior_registers): Read the regset
21154 from the target before filling it.
21156 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21158 * server.c (attach_inferior): Return SIGTRAP for a successful
21161 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21163 * Makefile.in (OBS): Add version.o.
21164 (STAGESTUFF): Delete.
21165 (version.o): Add dependencies.
21166 (version.c): Replace rule.
21167 (clean): Remove version.c.
21168 * server.c (gdbserver_version): New.
21169 (gdbserver_usage): Use printf.
21170 (main): Handle --version and --help.
21171 * server.h (version, host_name): Add declarations.
21173 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21185 * linux-x86-64-low.c:
21187 * linux-s390-low.c:
21188 * linux-ppc64-low.c:
21190 * linux-mips-low.c:
21191 * linux-m68k-low.c:
21192 * linux-m32r-low.c:
21195 * linux-ia64-low.c:
21196 * linux-i386-low.c:
21197 * linux-crisv32-low.c:
21209 * gdbserver.1: Add (C) after Copyright. Update the FSF
21212 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21214 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21215 (arm_breakpoint_at): Recognize both breakpoints.
21216 (the_low_target): Use the correct breakpoint instruction.
21218 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21220 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21221 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21222 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21223 (the_low_target): Update.
21225 2005-10-25 Andreas Schwab <schwab@suse.de>
21227 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21229 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21230 (ia64_num_regs): Reduce to 462.
21232 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21234 * acinclude.m4: Correct quoting.
21235 * aclocal.m4: Regenerated.
21237 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21238 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21239 (thread_db_init): Call thread_db_err_str.
21240 * configure.ac: Check for TD_VERSION.
21241 * config.in, configure: Regenerated.
21243 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21245 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21247 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21249 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21250 is not available. Define HAVE_PTRACE_GETREGS if it is.
21251 * config.in, configure: Regenerated.
21252 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21253 * linux-i386-low.c, linux-m68k-low.c: Update to use
21254 HAVE_PTRACE_GETREGS.
21255 * linux-low.c (regsets_fetch_inferior_registers)
21256 (regsets_store_inferior_registers): Only return 0 if we processed
21258 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21259 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21261 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21263 * inferiors.c (struct thread_info): Add gdb_id.
21264 (add_thread): Add gdb_id argument.
21265 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21266 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21267 calls to add_thread.
21268 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21269 * server.c (handle_query): Use thread_to_gdb_id.
21270 (handle_v_cont, main): Use gdb_id_to_thread_id.
21271 * server.h (add_thread): Update prototype.
21272 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21275 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21277 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21278 left-padded registers.
21279 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21280 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21282 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21284 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21285 * configure: Regenerate.
21286 * config.in: Regenerate.
21287 * server.h (NEED_DECLARATION_STRERROR):
21288 Replace with !HAVE_DECL_STRERROR.
21290 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21292 * linux-low.c (linux_wait, linux_send_signal): Don't test
21293 an unsigned long variable for > 0 if it could be MAX_ULONG.
21294 * server.c (myresume): Likewise.
21295 * target.c (set_desired_inferior): Likewise.
21297 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21299 * configure.ac: Simplify and improve check for socklen_t.
21300 * configure, config.in: Regenerate.
21302 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21304 * acconfig.h: Remove.
21305 * configure.ac: Add a test for socklen_t. Use three-argument
21306 AC_DEFINE throughout.
21307 * config.in: Regenerated using autoheader 2.59.
21308 * configure: Regenerated.
21310 * gdbreplay.c (socklen_t): Provide a default.
21311 (remote_open): Use socklen_t.
21312 * remote-utils.c (socklen_t): Provide a default.
21313 (remote_open): Use socklen_t.
21314 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21317 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21319 * linux-low.c (linux_read_memory, linux_write_memory)
21320 (linux_read_auxv): Likewise.
21321 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21322 (check_mem_write): Likewise.
21323 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21325 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21326 (registers_from_string, register_data): Likewise.
21327 * server.c (handle_query, main): Likewise.
21328 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21329 (decode_M_packet): Likewise.
21330 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21331 * target.h (struct target_ops): Update read_memory, write_memory,
21333 (read_inferior_memory, write_inferior_memory): Update.
21334 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21335 to unsigned char *.
21336 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21337 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21338 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21339 linux-s390-low.c, linux-sh-low.c: Update for changes in
21340 read_inferior_memory and the_low_target->breakpoint.
21342 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21344 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21345 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21346 * configure.srv: Add powerpc64-*-linux*.
21347 * linux-ppc64-low.c: New file.
21349 2005-05-23 Orjan Friberg <orjanf@axis.com>
21351 * linux-cris-low.c: New file with support for CRIS.
21352 * linux-crisv32-low.c: Ditto for CRISv32.
21353 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21354 (clean): Add reg-cris.c and reg-crisv32.c.
21355 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21356 reg-crisv32.o, and reg-crisv32.c to make rules.
21357 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21358 recognized targets.
21360 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21362 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21363 of sizeof (PTRACE_XFER_TYPE).
21364 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21366 2005-05-12 Orjan Friberg <orjanf@axis.com>
21368 * target.h (struct target_ops): Add insert_watchpoint,
21369 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21370 pointers for hardware watchpoint support.
21371 * linux-low.h (struct linux_target_ops): Ditto.
21372 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21373 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21374 to linux_target_ops.
21375 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21377 * server.c (main): Recognize 'Z' and 'z' packets.
21379 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21381 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21382 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21383 (the_low_target): Add new members.
21385 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21387 * proc-service.c (ps_lgetregs): Search all_processes instead of
21390 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21392 * server.c (start_inferior): Change return type to int.
21393 (attach_inferior): Change sigptr to int *.
21394 (handle_v_cont, handle_v_requests): Change signal to int *.
21395 (main): Change signal to int.
21397 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21399 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21400 * configure.srv: Add m32r*-*-linux*.
21401 * linux-m32r-low.c: New file.
21403 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21405 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21407 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21409 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21410 Take unsigned long arguments for PIDs.
21411 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21412 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21413 (wait_for_sigstop, linux_resume_one_process)
21414 (regsets_fetch_inferior_registers, linux_send_signal)
21415 (linux_read_auxv): Likewise. Update the types of variables holding
21416 PIDs. Update format string specifiers.
21417 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21418 * remote-utils.c (prepare_resume_reply): Likewise.
21419 * server.c (cont_thread, general_thread, step_thread)
21420 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21422 (handle_query): Update format specifiers.
21423 (handle_v_cont, main): Use strtoul for thread IDs.
21424 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21425 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21426 (general_thread, step_thread, thread_from_wait)
21427 (old_thread_from_wait): Update.
21428 * target.h (struct thread_resume): Use unsigned long for THREAD.
21429 (struct target_ops): Use unsigned long for arguments to attach and
21432 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21434 * acinclude.m4: Include bfd/bfd.m4 directly.
21435 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21436 <agriffis@toolchain.org>.
21437 * aclocal.m4, configure: Regenerated.
21439 2005-01-07 Andrew Cagney <cagney@gnu.org>
21441 * configure.ac: Rename configure.in, require autoconf 2.59.
21442 * configure: Re-generate.
21444 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21446 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21447 LIBS when finished.
21448 * aclocal.m4: Regenerated.
21449 * configure: Regenerated.
21451 2004-11-21 Andreas Schwab <schwab@suse.de>
21453 * linux-m68k-low.c (m68k_num_gregs): Define.
21454 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21455 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21456 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21457 (m68k_breakpoint_at): New. Add to the_low_target.
21459 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21460 srv_linux_thread_db to yes.
21462 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21464 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21465 (ARCH_SET_FS): Likewise.
21466 (ARCH_GET_FS): Likewise.
21467 (ARCH_GET_GS): Likewise.
21469 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21471 * linux-i386-low.c (ps_get_thread_area): New.
21472 * linux-x86-64-low.c (ps_get_thread_area): New.
21473 * linux-low.c: Include <sys/syscall.h>.
21474 (linux_kill_one_process): Don't kill the first thread here.
21475 (linux_kill): Kill the first thread here.
21476 (kill_lwp): New function.
21477 (send_sigstop, linux_send_signal): Use it.
21478 * proc-service.c: Clean up #ifdefs.
21479 (fpregset_info): Delete.
21480 (ps_lgetregs): Update and enable implementation.
21481 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21483 * remote-utils.c (struct sym_cache, symbol_cache): New.
21484 (input_interrupt): Print a clearer message.
21485 (async_io_enabled): New variable.
21486 (enable_async_io, disable_async_io): Use it. Update comments.
21487 (look_up_one_symbol): Use the symbol cache.
21488 * thread-db.c (thread_db_look_up_symbols): New function.
21489 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21491 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21493 * configure.in: Test for -rdynamic.
21494 * configure: Regenerated.
21495 * Makefile (INTERNAL_LDFLAGS): New.
21496 (gdbserver, gdbreplay): Use it.
21498 2004-09-02 Andrew Cagney <cagney@gnu.org>
21500 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21502 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21504 * linux-low.c (linux_wait): Clear all_processes list also.
21506 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21508 * linux-low.c: Include <errno.h>. Remove extern declaration of
21511 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21513 * gdbreplay.c, server.h, utils.c: Update copyright years.
21515 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21517 * server.c (main): Print child status or termination signal from
21518 variable 'signal', not 'sig'.
21520 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21522 * linux-low.c (linux_read_memory): Change return type to
21523 int. Check for and return error from ptrace().
21524 * target.c (read_inferior_memory): Change return type to int. Pass
21525 back return status from the_target->read_memory().
21526 * target.h (struct target_ops): Adapt *read_memory() prototype.
21528 (read_inferior_memory): Adapt prototype.
21529 * server.c (main): Return an error packet if
21530 read_inferior_memory() returns an error.
21532 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21534 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21535 Unify with other clean targets.
21537 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21539 * server.c (handle_v_cont): Call set_desired_inferior.
21541 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21543 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21545 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21547 * linux-low.c (linux_wait): Unblock async I/O.
21548 (linux_resume): Block and enable async I/O.
21549 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21550 * server.h (block_async_io, unblock_async_io): Add prototypes.
21552 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21554 * remote-utils.c (remote_open): Print a status notice after
21555 opening a TCP port.
21556 * server.c (attach_inferior): Print a status notice after
21559 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21561 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21563 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21565 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21567 * server.c, target.h: Update copyright years.
21569 2004-02-25 Roland McGrath <roland@redhat.com>
21571 * target.h (struct target_ops): New member `read_auxv'.
21572 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21573 * linux-low.c (linux_read_auxv): New function.
21574 (linux_target_ops): Initialize `read_auxv' member to that.
21576 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21578 Committed by Jim Blandy <jimb@redhat.com>.
21580 * linux-s390-low.c (s390_num_regs): Update.
21581 (s390_regmap): Remove control registers. Use __s390x__ predefine
21582 instead of GPR_SIZE to distiguish s390 and s390x targets.
21584 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21586 * linux-low.c: Update copyright year.
21587 (check_removed_breakpoint): Clear pending_is_breakpoint.
21588 (linux_set_resume_request, linux_queue_one_thread)
21589 (resume_status_pending_p): New functions.
21590 (linux_continue_one_thread): Use process->resume.
21591 (linux_resume): Only resume threads if there are no pending events.
21592 * linux-low.h (struct process_info): Add resume request
21595 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21597 * regcache.c (new_register_cache): Clear the allocated register
21598 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21600 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21602 * linux-low.c (linux_resume): Take a struct thread_resume *
21604 (linux_wait): Update call.
21605 (resume_ptr): New static variable.
21606 (linux_continue_one_thread): Renamed from
21607 linux_continue_one_process. Use resume_ptr.
21608 (linux_resume): Use linux_continue_one_thread.
21609 * server.c (handle_v_cont, handle_v_requests): New functions.
21610 (myresume): New function.
21611 (main): Handle 'v' case.
21612 * target.h (struct thread_resume): New type.
21613 (struct target_ops): Change argument of "resume" to struct
21615 (myresume): Delete macro.
21617 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21619 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21620 (uninstall): Support DESTDIR.
21622 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21624 * configure.srv: Add xscale*linux copy of arm*linux entry.
21626 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21628 * linux-arm-low.c (arm_reinsert_addr): New function.
21629 (the_low_target): Add arm_reinsert_addr.
21631 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21633 * mem-break.c: Remove whitespace at end of file.
21635 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21637 * configure.in: Check whether we need to prototype strerror.
21638 * server.h: Optionally prototype strerror.
21639 * gdbreplay.c (perror_with_name): Use strerror.
21640 * linux-low.c (linux_attach_lwp): Use strerror.
21641 * utils.c (perror_with_name): Use strerror.
21642 * config.in, configure: Regenerated.
21644 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21646 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21647 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21649 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21651 * Makefile.in (SFILES): Update.
21652 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21653 low-sun3.c: Remove files.
21655 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21657 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21658 (linux_detach_one_process, linux_detach): New functions.
21659 (linux_target_ops): Add linux_detach.
21660 * server.c (main): Handle 'D' packet.
21661 * target.h (struct target_ops): Add "detach" member.
21662 (detach_inferior): Define.
21664 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21666 From Kelley Cook <kelleycook@wideopenwest.com>:
21667 * configure.srv: Accept i[34567]86 variants.
21669 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21671 * linux-low.c (linux_wait_for_event): Correct comment typos.
21672 (linux_resume_one_process): Call check_removed_breakpoint.
21673 (linux_send_signal): New function.
21674 (linux_target_ops): Add linux_send_signal.
21675 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21677 * target.h (struct target_ops): Add send_signal.
21679 2003-05-29 Jim Blandy <jimb@redhat.com>
21681 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21682 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21683 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21684 away part of the register's value.
21686 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21688 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21689 (linux_wait_for_event, linux_init_signals): Likewise.
21691 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21693 * configure.in: Check for stdlib.h.
21694 * configure: Regenerated.
21695 * config.in: Regenerated.
21697 2003-01-04 Andreas Schwab <schwab@suse.de>
21699 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21701 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21703 * Makefile.in: Remove obsolete code.
21705 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21707 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21708 defined(PT_FPR0_HI).
21710 2002-11-17 Stuart Hughes <seh@zee2.com>
21712 * linux-arm-low.c (arm_num_regs): Increase.
21713 (arm_regmap): Include status register.
21715 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21717 * linux-low.c (register_addr): Remove incorrect -1 check.
21719 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21721 * linux-low.c (linux_create_inferior): Call setpgid. Return
21723 (unstopped_p, linux_signal_pid): Remove.
21724 (linux_target_ops): Remove linux_signal_pid.
21725 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21726 global instead of target method.
21727 * target.h (struct target_ops): Remove signal_pid. Update comment
21728 for create_inferior.
21729 * server.c (signal_pid): New variable.
21730 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21731 gdbserver. Set the child to be the foreground process group.
21732 (attach_inferior): Set signal_pid.
21734 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21736 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21738 2002-08-20 Jim Blandy <jimb@redhat.com>
21740 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21743 2002-08-01 Andrew Cagney <cagney@redhat.com>
21745 * Makefile.in: Make chill references obsolete.
21747 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21749 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21750 * configure: Regenerate.
21751 * config.in: Regenerate.
21753 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21755 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21756 (perror_with_name, remote_close, remote_open, expect, play): Static.
21758 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21760 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21761 byte offsets instead of an array of indexes.
21762 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21764 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21766 * regcache.c: Add comment.
21768 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21770 * thread-db.c: New file.
21771 * proc-service.c: New file.
21772 * acinclude.m4: New file.
21773 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21774 proc-service.o, and thread-db.o.
21775 (linux-low.o): Add USE_THREAD_DB.
21776 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21777 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21778 * aclocal.m4: Regenerated.
21779 * config.in: Regenerated.
21780 * configure: Regenerated.
21781 * configure.in: Check for proc_service.h, sys/procfs.h,
21782 thread_db.h, and linux/elf.h headrs.
21783 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21784 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21785 Check for -lthread_db and thread support.
21786 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21787 PowerPC, and SuperH.
21788 * i387-fp.c: Constify arguments.
21789 * i387-fp.h: Likewise.
21790 * inferiors.c: (struct thread_info): Renamed from
21791 `struct inferior_info'. Remove PID member. Use generic inferior
21792 list header. All uses updated.
21793 (inferiors, signal_pid): Removed.
21794 (all_threads): New variable.
21795 (get_thread): Define.
21796 (add_inferior_to_list): New function.
21797 (for_each_inferior): New function.
21798 (change_inferior_id): New function.
21799 (add_inferior): Removed.
21800 (remove_inferior): New function.
21801 (add_thread): New function.
21802 (free_one_thread): New function.
21803 (remove_thread): New function.
21804 (clear_inferiors): Use for_each_inferior and free_one_thread.
21805 (find_inferior): New function.
21806 (find_inferior_id): New function.
21807 (inferior_target_data): Update argument type.
21808 (set_inferior_target_data): Likewise.
21809 (inferior_regcache_data): Likewise.
21810 (set_inferior_regcache_data): Likewise.
21811 * linux-low.c (linux_bp_reinsert): Remove.
21812 (all_processes, stopping_threads, using_thrads)
21813 (struct pending_signals, debug_threads, pid_of): New.
21814 (inferior_pid): Replace with macro.
21815 (struct inferior_linux_data): Remove.
21816 (get_stop_pc, add_process): New functions.
21817 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21818 Use add_process and add_thread.
21819 (linux_attach_lwp): New function, based on old linux_attach. Use
21820 add_process and add_thread. Set stop_expected for new threads.
21821 (linux_attach): New function.
21822 (linux_kill_one_process): New function.
21823 (linux_kill): Kill all LWPs.
21824 (linux_thread_alive): Use find_inferior_id.
21825 (check_removed_breakpoints, status_pending_p): New functions.
21826 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21827 Update. Use WNOHANG. Wait for cloned processes also. Update process
21828 struct for the found process.
21829 (linux_wait_for_event): New function.
21830 (linux_wait): Use it. Support LWPs.
21831 (send_sigstop, wait_for_sigstop, stop_all_processes)
21832 (linux_resume_one_process, linux_continue_one_process): New functions.
21833 (linux_resume): Support LWPs.
21834 (REGISTER_RAW_SIZE): Remove.
21835 (fetch_register): Use register_size instead. Call supply_register.
21836 (usr_store_inferior_registers): Likewise. Call collect_register.
21837 Fix recursive case.
21838 (regsets_fetch_inferior_registers): Improve error message.
21839 (regsets_store_inferior_registers): Add debugging.
21840 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21841 (unstopped_p, linux_signal_pid): New functions.
21842 (linux_target_ops): Add linux_signal_pid.
21843 (linux_init_signals): New function.
21844 (initialize_low): Call it. Initialize using_threads.
21845 * regcache.c (inferior_regcache_data): Add valid
21847 (get_regcache): Fetch registers lazily. Add fetch argument
21848 and update all callers.
21849 (regcache_invalidate_one, regcache_invalidate): New
21851 (new_register_cache): Renamed from create_register_cache.
21852 Return the new regcache.
21853 (free_register_cache): Change argument to a void *.
21854 (registers_to_string, registers_from_string): Call get_regcache
21855 with fetch flag set.
21856 (register_data): Make static. Pass fetch flag to get_regcache.
21857 (supply_register): Call get_regcache with fetch flag clear.
21858 (collect_register): Call get_regcache with fetch flag set.
21859 (collect_register_as_string): New function.
21860 * regcache.h: Update.
21861 * remote-utils.c (putpkt): Flush after debug output and use
21863 Handle input interrupts while waiting for an ACK.
21864 (input_interrupt): Use signal_pid method.
21865 (getpkt): Flush after debug output and use stderr.
21866 (outreg): Use collect_register_as_string.
21867 (new_thread_notify, dead_thread_notify): New functions.
21868 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21869 and general_thread.
21870 (look_up_one_symbol): Flush after debug output.
21871 * server.c (step_thread, server_waiting): New variables.
21872 (start_inferior): Don't use signal_pid. Update call to mywait.
21873 (attach_inferior): Update call to mywait.
21874 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21875 (main): Don't fetch/store registers explicitly. Use
21876 set_desired_inferior. Support proposed ``Hs'' packet. Update
21878 * server.h: Update.
21879 (struct inferior_list, struct_inferior_list_entry): New.
21880 * target.c (set_desired_inferior): New.
21881 (write_inferior_memory): Constify.
21882 (mywait): New function.
21883 * target.h: Update.
21884 (struct target_ops): New signal_pid method.
21885 (mywait): Removed macro, added prototype.
21887 * linux-low.h (regset_func): Removed.
21888 (regset_fill_func, regset_store_func): New.
21889 (enum regset_type): New.
21890 (struct regset_info): Add type field. Use new operation types.
21891 (struct linux_target_ops): stop_pc renamed to get_pc.
21892 Add decr_pc_after_break and breakpoint_at.
21893 (get_process, get_thread_proess, get_process_thread)
21894 (strut process_info, all_processes, linux_attach_lwp)
21895 (thread_db_init): New.
21897 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21898 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21899 (the_low_target): Add new members.
21900 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21901 (i386_store_fpxregset): Constify.
21902 (target_regsets): Add new kind identifier.
21903 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21904 (i386_set_pc): Add debugging.
21905 (i386_breakpoint_at): New function.
21906 (the_low_target): Add new members.
21907 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21908 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21909 (mips_breakpoint_at): New.
21910 (the_low_target): Add new members.
21911 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21912 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21913 (the_low_target): Add new members.
21914 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21915 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21916 (the_low_target): Add new members.
21917 * linux-x86-64-low.c (target_regsets): Add new kind
21920 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21922 From Martin Pool <mbp@samba.org>:
21923 * server.c (gdbserver_usage): New function.
21926 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21928 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21929 stop_at -> stop_pc.
21931 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21933 * Makefile.in: Remove obsolete code.
21935 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21937 * linux-low.c (regsets_fetch_inferior_registers),
21938 (regsets_store_inferior_registers): Removed cast to int from
21940 * regcache.h: Added declaration of struct inferior_info.
21942 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21944 * inferiors.c (struct inferior_info): Add regcache_data.
21945 (add_inferior): Call create_register_cache.
21946 (clear_inferiors): Call free_register_cache.
21947 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21948 * regcache.c (struct inferior_regcache_data): New.
21949 (registers): Remove.
21950 (get_regcache): New function.
21951 (create_register_cache, free_register_cache): New functions.
21952 (set_register_cache): Don't initialize the register cache here.
21953 (registers_to_string, registers_from_string, register_data): Call
21955 * regcache.h: Add prototypes.
21956 * server.h: Likewise.
21958 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21960 * mem-break.c: New file.
21961 * mem-break.h: New file.
21962 * Makefile.in: Add mem-break.o rule; update server.h
21964 * inferiors.c (struct inferior_info): Add target_data
21966 (clear_inferiors): Free target_data member if set.
21967 (inferior_target_data, set_inferior_target_data): New functions.
21968 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21969 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21970 * linux-low.c (linux_bp_reinsert): New variable.
21971 (struct inferior_linux_data): New.
21972 (linux_create_inferior): Use set_inferior_target_data.
21973 (linux_attach): Likewise. Call add_inferior.
21974 (linux_wait_for_one_inferior): New function.
21975 (linux_wait): Call it.
21976 (linux_write_memory): Add const.
21977 (initialize_low): Call set_breakpoint_data.
21978 * linux-low.h (struct linux_target_ops): Add breakpoint
21980 * server.c (attach_inferior): Remove extra add_inferior
21982 * server.h: Include mem-break.h. Update inferior.c
21984 * target.c (read_inferior_memory)
21985 (write_inferior_memory): New functions.
21986 * target.h (read_inferior_memory)
21987 (write_inferior_memory): Change macros to prototypes.
21988 (struct target_ops): Update comments. Add const to write_memory
21991 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21993 * linux-low.c (usr_store_inferior_registers): Support
21994 registers which are allowed to fail to store.
21995 * linux-low.h (linux_target_ops): Likewise.
21996 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21997 (ppc_cannot_store_register): FPSCR may not be storable.
21999 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22001 * server.h: Include <string.h> if HAVE_STRING_H.
22002 * ChangeLog: Correct paths in last ChangeLog entry.
22004 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22006 * linux-low.h: Remove obsolete prototypes.
22007 (struct linux_target_ops): New.
22008 (extern the_low_target): New.
22009 * linux-low.c (num_regs, regmap): Remove declarations.
22010 (register_addr): Use the_low_target explicitly.
22011 (fetch_register): Likewise.
22012 (usr_fetch_inferior_registers): Likewise.
22013 (usr_store_inferior_registers): Likewise.
22014 * linux-arm-low.c (num_regs): Remove.
22015 (arm_num_regs): Define.
22016 (arm_regmap): Renamed from regmap, made static.
22017 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22019 (arm_cannot_store_register): Renamed from cannot_store_register,
22021 (the_low_target): New.
22022 * linux-i386-low.c (num_regs): Remove.
22023 (i386_num_regs): Define.
22024 (i386_regmap): Renamed from regmap, made static.
22025 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22027 (i386_cannot_store_register): Renamed from cannot_store_register,
22029 (the_low_target): New.
22030 * linux-ia64-low.c (num_regs): Remove.
22031 (ia64_num_regs): Define.
22032 (ia64_regmap): Renamed from regmap, made static.
22033 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22035 (ia64_cannot_store_register): Renamed from cannot_store_register,
22037 (the_low_target): New.
22038 * linux-m68k-low.c (num_regs): Remove.
22039 (m68k_num_regs): Define.
22040 (m68k_regmap): Renamed from regmap, made static.
22041 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22043 (m68k_cannot_store_register): Renamed from cannot_store_register,
22045 (the_low_target): New.
22046 * linux-mips-low.c (num_regs): Remove.
22047 (mips_num_regs): Define.
22048 (mips_regmap): Renamed from regmap, made static.
22049 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22051 (mips_cannot_store_register): Renamed from cannot_store_register,
22053 (the_low_target): New.
22054 * linux-ppc-low.c (num_regs): Remove.
22055 (ppc_num_regs): Define.
22056 (ppc_regmap): Renamed from regmap, made static.
22057 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22059 (ppc_cannot_store_register): Renamed from cannot_store_register,
22061 (the_low_target): New.
22062 * linux-s390-low.c (num_regs): Remove.
22063 (s390_num_regs): Define.
22064 (s390_regmap): Renamed from regmap, made static.
22065 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22067 (s390_cannot_store_register): Renamed from cannot_store_register,
22069 (the_low_target): New.
22070 * linux-sh-low.c (num_regs): Remove.
22071 (sh_num_regs): Define.
22072 (sh_regmap): Renamed from regmap, made static.
22073 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22075 (sh_cannot_store_register): Renamed from cannot_store_register,
22077 (the_low_target): New.
22078 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22079 (the_low_target): New.
22081 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22083 * Makefile.in: Add stamp-h target.
22084 * configure.in: Create stamp-h.
22085 * configure: Regenerated.
22087 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22089 * inferiors.c: New file.
22090 * target.c: New file.
22091 * target.h: New file.
22092 * Makefile.in: Add target.o and inferiors.o. Update
22094 * linux-low.c (inferior_pid): New static variable,
22095 moved from server.c.
22096 (linux_create_inferior): Renamed from create_inferior.
22097 Call add_inferior. Return 0 on success instead of a PID.
22098 (linux_attach): Renamed from myattach.
22099 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22100 (linux_thread_alive): Renamed from mythread_alive.
22101 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22103 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22104 (regsets_store_inferior_registers): Correct error message.
22105 Add missing ``return 0''.
22106 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22107 (linux_store_registers): Renamed from store_inferior_registers.
22108 (linux_read_memory): Renamed from read_inferior_memory.
22109 (linux_write_memory): Renamed from write_inferior_memory.
22110 (linux_target_ops): New structure.
22111 (initialize_low): Call set_target_ops ().
22112 * remote-utils.c (unhexify): New function.
22113 (hexify): New function.
22114 (input_interrupt): Send signals to ``signal_pid''.
22115 * server.c (inferior_pid): Remove.
22116 (start_inferior): Update create_inferior call.
22117 (attach_inferior): Call add_inferior.
22118 (handle_query): New function.
22119 (main): Call handle_query for `q' packets.
22120 * server.h: Include "target.h". Remove obsolete prototypes.
22121 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22123 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22125 * Makefile.in: Add WARN_CFLAGS. Update configury
22127 * configure.in: Check for <string.h>
22128 * configure: Regenerate.
22129 * config.in: Regenerate.
22130 * gdbreplay.c: Include needed system headers.
22131 (remote_open): Remove strchr prototype.
22132 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22133 * regcache.c (supply_register): Change buf argument to const void *.
22134 (supply_register_by_name): Likewise.
22135 (collect_register): Change buf argument to void *.
22136 (collect_register_by_name): Likewise.
22137 * regcache.h: Add missing prototypes.
22138 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22139 * server.c (handle_query): New function.
22140 (attached): New static variable, moved out of main.
22141 (main): Quiet longjmp clobber warnings.
22142 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22143 * utils.c (error): Remove NORETURN.